ordering-ui-external 1.1.2 → 1.1.3

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 (23) hide show
  1. package/_bundles/{0.ordering-ui.61d857607dc95f3ab08c.js → 0.ordering-ui.6d646b995521e7aa65da.js} +0 -0
  2. package/_bundles/{1.ordering-ui.61d857607dc95f3ab08c.js → 1.ordering-ui.6d646b995521e7aa65da.js} +0 -0
  3. package/_bundles/{3.ordering-ui.61d857607dc95f3ab08c.js → 3.ordering-ui.6d646b995521e7aa65da.js} +0 -0
  4. package/_bundles/{4.ordering-ui.61d857607dc95f3ab08c.js → 4.ordering-ui.6d646b995521e7aa65da.js} +0 -0
  5. package/_bundles/{5.ordering-ui.61d857607dc95f3ab08c.js → 5.ordering-ui.6d646b995521e7aa65da.js} +0 -0
  6. package/_bundles/{6.ordering-ui.61d857607dc95f3ab08c.js → 6.ordering-ui.6d646b995521e7aa65da.js} +0 -0
  7. package/_bundles/{7.ordering-ui.61d857607dc95f3ab08c.js → 7.ordering-ui.6d646b995521e7aa65da.js} +1 -1
  8. package/_bundles/{7.ordering-ui.61d857607dc95f3ab08c.js.LICENSE.txt → 7.ordering-ui.6d646b995521e7aa65da.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.61d857607dc95f3ab08c.js → 8.ordering-ui.6d646b995521e7aa65da.js} +0 -0
  10. package/_bundles/{9.ordering-ui.61d857607dc95f3ab08c.js → 9.ordering-ui.6d646b995521e7aa65da.js} +0 -0
  11. package/_bundles/{ordering-ui.61d857607dc95f3ab08c.js → ordering-ui.6d646b995521e7aa65da.js} +2 -2
  12. package/_bundles/{ordering-ui.61d857607dc95f3ab08c.js.LICENSE.txt → ordering-ui.6d646b995521e7aa65da.js.LICENSE.txt} +0 -0
  13. package/_modules/themes/five/index.js +8 -0
  14. package/_modules/themes/five/src/components/OrderDetails/index.js +72 -27
  15. package/_modules/themes/five/src/components/ReviewOrder/index.js +4 -4
  16. package/_modules/themes/five/src/components/ReviewProduct/index.js +4 -4
  17. package/_modules/themes/five/src/components/ReviewProduct/styles.js +6 -6
  18. package/package.json +1 -1
  19. package/src/themes/five/index.js +2 -0
  20. package/src/themes/five/src/components/OrderDetails/index.js +45 -28
  21. package/src/themes/five/src/components/ReviewOrder/index.js +1 -1
  22. package/src/themes/five/src/components/ReviewProduct/index.js +1 -1
  23. package/src/themes/five/src/components/ReviewProduct/styles.js +0 -14
@@ -357,6 +357,12 @@ Object.defineProperty(exports, "OrderDetailsKiosk", {
357
357
  return _Kiosk2.OrderDetails;
358
358
  }
359
359
  });
360
+ Object.defineProperty(exports, "OrderItAgain", {
361
+ enumerable: true,
362
+ get: function get() {
363
+ return _OrderItAgain.OrderItAgain;
364
+ }
365
+ });
360
366
  Object.defineProperty(exports, "OrderProgress", {
361
367
  enumerable: true,
362
368
  get: function get() {
@@ -728,6 +734,8 @@ var _OrderDetails = require("./src/components/OrderDetails");
728
734
 
729
735
  var _Kiosk2 = require("./src/components/OrderDetails/layouts/Kiosk");
730
736
 
737
+ var _OrderItAgain = require("./src/components/OrderItAgain");
738
+
731
739
  var _OrdersOption = require("./src/components/OrdersOption");
732
740
 
733
741
  var _OrderProgress = require("./src/components/OrderProgress");
@@ -61,18 +61,18 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
61
61
 
62
62
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
63
63
 
64
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
65
-
66
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
67
-
68
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
69
-
70
64
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
71
65
 
72
66
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
73
67
 
74
68
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
75
69
 
70
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
71
+
72
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
73
+
74
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
75
+
76
76
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
77
77
 
78
78
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -86,7 +86,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
86
86
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
87
87
 
88
88
  var OrderDetailsUI = function OrderDetailsUI(props) {
89
- var _configs$google_maps_, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _orderingTheme$theme19, _orderingTheme$theme20, _orderingTheme$theme21, _orderingTheme$theme22, _orderingTheme$theme23, _orderingTheme$theme24, _orderingTheme$theme25, _orderingTheme$theme26, _orderingTheme$theme27, _orderingTheme$theme28, _orderingTheme$theme29, _orderingTheme$theme30, _orderingTheme$theme31, _orderingTheme$theme32, _orderingTheme$theme33, _orderingTheme$theme34, _orderingTheme$theme35, _orderingTheme$theme36, _orderingTheme$theme37, _orderingTheme$theme38, _orderingTheme$theme39, _orderingTheme$theme40, _orderingTheme$theme41, _orderingTheme$theme42, _orderingTheme$theme43, _orderingTheme$theme44, _orderingTheme$theme45, _orderingTheme$theme46, _orderingTheme$theme47, _orderingTheme$theme48, _orderingTheme$theme49, _orderingTheme$theme50, _orderingTheme$theme51, _orderingTheme$theme52, _orderingTheme$theme53, _orderingTheme$theme54, _orderingTheme$theme55, _orderingTheme$theme56, _orderingTheme$theme57, _orderingTheme$theme58, _orderingTheme$theme59, _orderingTheme$theme60, _orderingTheme$theme61, _orderingTheme$theme62, _orderingTheme$theme63, _orderingTheme$theme64, _orderingTheme$theme65, _orderingTheme$theme66, _orderingTheme$theme67, _orderingTheme$theme68, _orderingTheme$theme69, _orderingTheme$theme70, _orderingTheme$theme71, _orderingTheme$theme72, _orderingTheme$theme73, _orderingTheme$theme74, _orderingTheme$theme75, _orderingTheme$theme76, _orderingTheme$theme77, _orderingTheme$theme78, _orderingTheme$theme79, _orderingTheme$theme80, _orderingTheme$theme81, _orderingTheme$theme82, _orderingTheme$theme83, _orderingTheme$theme84, _orderingTheme$theme85, _orderingTheme$theme86, _orderingTheme$theme87, _orderingTheme$theme88, _orderingTheme$theme89, _orderingTheme$theme90, _orderingTheme$theme91, _orderingTheme$theme92, _orderingTheme$theme93, _orderingTheme$theme94, _orderingTheme$theme95, _orderingTheme$theme96, _orderingTheme$theme97, _order$driver, _order$driver2, _theme$images, _theme$images$dummies, _order$business, _order$business2, _theme$images2, _theme$images2$dummie, _order$customer, _order$customer2, _theme$images3, _theme$images3$dummie, _theme$defaultLanguag28, _configs$guest_uuid_a, _orderTypes$find, _getOrderStatus, _getOrderStatus2, _theme$defaultLanguag29, _order$business3, _order$business4, _order$business5, _order$business6, _order$business7, _order$place, _order$place2, _getOrderStatus3, _getOrderStatus4, _order$business8, _order$customer3, _order$customer4, _order$customer5, _order$customer6, _order$customer7, _order$customer8, _order$customer9, _order$customer10, _theme$defaultLanguag30, _order$driver4, _order$driver5, _order$driver6, _order$driver7, _order$driver8, _order$driver9, _order$driver10, _order$products, _theme$defaultLanguag31, _theme$defaultLanguag32, _theme$defaultLanguag33, _openTaxModal$data, _openTaxModal$data2, _openTaxModal$data3, _openTaxModal$data4, _openTaxModal$data$fi, _openTaxModal$data5, _openTaxModal$data6;
89
+ var _configs$google_maps_, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _orderingTheme$theme19, _orderingTheme$theme20, _orderingTheme$theme21, _orderingTheme$theme22, _orderingTheme$theme23, _orderingTheme$theme24, _orderingTheme$theme25, _orderingTheme$theme26, _orderingTheme$theme27, _orderingTheme$theme28, _orderingTheme$theme29, _orderingTheme$theme30, _orderingTheme$theme31, _orderingTheme$theme32, _orderingTheme$theme33, _orderingTheme$theme34, _orderingTheme$theme35, _orderingTheme$theme36, _orderingTheme$theme37, _orderingTheme$theme38, _orderingTheme$theme39, _orderingTheme$theme40, _orderingTheme$theme41, _orderingTheme$theme42, _orderingTheme$theme43, _orderingTheme$theme44, _orderingTheme$theme45, _orderingTheme$theme46, _orderingTheme$theme47, _orderingTheme$theme48, _orderingTheme$theme49, _orderingTheme$theme50, _orderingTheme$theme51, _orderingTheme$theme52, _orderingTheme$theme53, _orderingTheme$theme54, _orderingTheme$theme55, _orderingTheme$theme56, _orderingTheme$theme57, _orderingTheme$theme58, _orderingTheme$theme59, _orderingTheme$theme60, _orderingTheme$theme61, _orderingTheme$theme62, _orderingTheme$theme63, _orderingTheme$theme64, _orderingTheme$theme65, _orderingTheme$theme66, _orderingTheme$theme67, _orderingTheme$theme68, _orderingTheme$theme69, _orderingTheme$theme70, _orderingTheme$theme71, _orderingTheme$theme72, _orderingTheme$theme73, _orderingTheme$theme74, _orderingTheme$theme75, _orderingTheme$theme76, _orderingTheme$theme77, _orderingTheme$theme78, _orderingTheme$theme79, _orderingTheme$theme80, _orderingTheme$theme81, _orderingTheme$theme82, _orderingTheme$theme83, _orderingTheme$theme84, _orderingTheme$theme85, _orderingTheme$theme86, _orderingTheme$theme87, _orderingTheme$theme88, _orderingTheme$theme89, _orderingTheme$theme90, _orderingTheme$theme91, _orderingTheme$theme92, _orderingTheme$theme93, _orderingTheme$theme94, _orderingTheme$theme95, _orderingTheme$theme96, _orderingTheme$theme97, _order$driver, _order$driver2, _theme$images, _theme$images$dummies, _order$business2, _order$business3, _theme$images2, _theme$images2$dummie, _order$customer, _order$customer2, _theme$images3, _theme$images3$dummie, _theme$defaultLanguag28, _configs$guest_uuid_a, _orderTypes$find, _getOrderStatus, _getOrderStatus2, _theme$defaultLanguag29, _order$business4, _order$business5, _order$business6, _order$business7, _order$business8, _order$place, _order$place2, _getOrderStatus3, _getOrderStatus4, _order$business9, _order$customer3, _order$customer4, _order$customer5, _order$customer6, _order$customer7, _order$customer8, _order$customer9, _order$customer10, _theme$defaultLanguag30, _order$driver4, _order$driver5, _order$driver6, _order$driver7, _order$driver8, _order$driver9, _order$driver10, _order$products, _theme$defaultLanguag31, _theme$defaultLanguag32, _theme$defaultLanguag33, _openTaxModal$data, _openTaxModal$data2, _openTaxModal$data3, _openTaxModal$data4, _openTaxModal$data$fi, _openTaxModal$data5, _openTaxModal$data6;
90
90
 
91
91
  var userCustomerId = props.userCustomerId,
92
92
  handleChangeOrderStatus = props.handleChangeOrderStatus,
@@ -209,6 +209,11 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
209
209
  confirm = _useState22[0],
210
210
  setConfirm = _useState22[1];
211
211
 
212
+ var _useState23 = (0, _react.useState)(true),
213
+ _useState24 = _slicedToArray(_useState23, 2),
214
+ isShowBusinessLogo = _useState24[0],
215
+ setIsShowBusinessLogo = _useState24[1];
216
+
212
217
  var _props$order = props.order,
213
218
  order = _props$order.order,
214
219
  loading = _props$order.loading,
@@ -393,10 +398,55 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
393
398
  });
394
399
  };
395
400
 
401
+ var validateImage = function validateImage(src) {
402
+ return new Promise(function (resolve, reject) {
403
+ if (!src || typeof src !== 'string') {
404
+ resolve(false);
405
+ }
406
+
407
+ try {
408
+ var image = new Image();
409
+ image.src = src;
410
+ image.complete ? resolve(true) : resolve(false);
411
+ } catch (err) {
412
+ resolve(false);
413
+ }
414
+ });
415
+ };
416
+
417
+ var businessLogoUrlValidation = /*#__PURE__*/function () {
418
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
419
+ var _order$business;
420
+
421
+ var isValidImage;
422
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
423
+ while (1) {
424
+ switch (_context.prev = _context.next) {
425
+ case 0:
426
+ _context.next = 2;
427
+ return validateImage(order === null || order === void 0 ? void 0 : (_order$business = order.business) === null || _order$business === void 0 ? void 0 : _order$business.logo);
428
+
429
+ case 2:
430
+ isValidImage = _context.sent;
431
+ setIsShowBusinessLogo(isValidImage);
432
+
433
+ case 4:
434
+ case "end":
435
+ return _context.stop();
436
+ }
437
+ }
438
+ }, _callee);
439
+ }));
440
+
441
+ return function businessLogoUrlValidation() {
442
+ return _ref.apply(this, arguments);
443
+ };
444
+ }();
445
+
396
446
  var locations = [_objectSpread(_objectSpread({}, order === null || order === void 0 ? void 0 : (_order$driver = order.driver) === null || _order$driver === void 0 ? void 0 : _order$driver.location), {}, {
397
447
  icon: (order === null || order === void 0 ? 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 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.driverPhoto)
398
- }), _objectSpread(_objectSpread({}, order === null || order === void 0 ? void 0 : (_order$business = order.business) === null || _order$business === void 0 ? void 0 : _order$business.location), {}, {
399
- icon: (order === null || order === void 0 ? void 0 : (_order$business2 = order.business) === null || _order$business2 === void 0 ? void 0 : _order$business2.logo) || ((_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$dummie = _theme$images2.dummies) === null || _theme$images2$dummie === void 0 ? void 0 : _theme$images2$dummie.businessLogo)
448
+ }), _objectSpread(_objectSpread({}, order === null || order === void 0 ? void 0 : (_order$business2 = order.business) === null || _order$business2 === void 0 ? void 0 : _order$business2.location), {}, {
449
+ icon: (order === null || order === void 0 ? 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 ? void 0 : (_theme$images2$dummie = _theme$images2.dummies) === null || _theme$images2$dummie === void 0 ? void 0 : _theme$images2$dummie.businessLogo)
400
450
  }), _objectSpread(_objectSpread({}, order === null || order === void 0 ? void 0 : (_order$customer = order.customer) === null || _order$customer === void 0 ? void 0 : _order$customer.location), {}, {
401
451
  icon: (order === null || order === void 0 ? void 0 : (_order$customer2 = order.customer) === null || _order$customer2 === void 0 ? void 0 : _order$customer2.photo) || ((_theme$images3 = theme.images) === null || _theme$images3 === void 0 ? void 0 : (_theme$images3$dummie = _theme$images3.dummies) === null || _theme$images3$dummie === void 0 ? void 0 : _theme$images3$dummie.customerPhoto)
402
452
  })];
@@ -485,10 +535,10 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
485
535
  open: true,
486
536
  content: t('QUESTION_DELETE_PRODUCTS_FROM_CART', 'Are you sure that you want to delete all products from cart?'),
487
537
  handleOnAccept: function () {
488
- var _handleOnAccept = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
489
- return _regeneratorRuntime().wrap(function _callee$(_context) {
538
+ var _handleOnAccept = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
539
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
490
540
  while (1) {
491
- switch (_context.prev = _context.next) {
541
+ switch (_context2.prev = _context2.next) {
492
542
  case 0:
493
543
  handleRemoveCart();
494
544
  setConfirm(_objectSpread(_objectSpread({}, confirm), {}, {
@@ -497,10 +547,10 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
497
547
 
498
548
  case 2:
499
549
  case "end":
500
- return _context.stop();
550
+ return _context2.stop();
501
551
  }
502
552
  }
503
- }, _callee);
553
+ }, _callee2);
504
554
  }));
505
555
 
506
556
  function handleOnAccept() {
@@ -588,6 +638,7 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
588
638
  });
589
639
 
590
640
  setIsService(_isService);
641
+ businessLogoUrlValidation();
591
642
  }, [order]);
592
643
 
593
644
  var OrderMapSection = function OrderMapSection(props) {
@@ -637,7 +688,7 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
637
688
  }, isService ? t('YOUR_APPOINTMENTS', 'Your appointments') : t('YOUR_ORDERS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag27 = theme.defaultLanguages) === null || _theme$defaultLanguag27 === void 0 ? void 0 : _theme$defaultLanguag27.YOUR_ORDERS) || 'Your Orders'))));
638
689
  };
639
690
 
640
- return /*#__PURE__*/_react.default.createElement(_styles.Container, null, !loading && order && Object.keys(order).length > 0 && !(openMessages.driver || openMessages.business) && /*#__PURE__*/_react.default.createElement(_styles.WrapperContainer, null, /*#__PURE__*/_react.default.createElement(_styles.WrapperLeftContainer, null, /*#__PURE__*/_react.default.createElement(_styles.OrderInfo, null, /*#__PURE__*/_react.default.createElement(_styles.TitleContainer, null, /*#__PURE__*/_react.default.createElement("h1", null, isService ? t('APPOINTMENT', 'Appointment') : t('ORDER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag28 = theme.defaultLanguages) === null || _theme$defaultLanguag28 === void 0 ? void 0 : _theme$defaultLanguag28.ORDER) || 'Order'), " #", order === null || order === void 0 ? void 0 : order.id), parseInt(configs === null || configs === void 0 ? void 0 : (_configs$guest_uuid_a = configs.guest_uuid_access) === null || _configs$guest_uuid_a === void 0 ? void 0 : _configs$guest_uuid_a.value, 10) && (order === null || order === void 0 ? void 0 : order.hash_key) && /*#__PURE__*/_react.default.createElement(_styles.Content, {
691
+ return /*#__PURE__*/_react.default.createElement(_styles.Container, null, !loading && order && Object.keys(order).length > 0 && !(openMessages.driver || openMessages.business) && /*#__PURE__*/_react.default.createElement(_styles.WrapperContainer, null, /*#__PURE__*/_react.default.createElement(_styles.WrapperLeftContainer, null, /*#__PURE__*/_react.default.createElement(_styles.OrderInfo, null, /*#__PURE__*/_react.default.createElement(_styles.TitleContainer, null, /*#__PURE__*/_react.default.createElement(_styles.OrderIdSec, null, isService ? t('APPOINTMENT', 'Appointment') : t('ORDER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag28 = theme.defaultLanguages) === null || _theme$defaultLanguag28 === void 0 ? void 0 : _theme$defaultLanguag28.ORDER) || 'Order'), " #", order === null || order === void 0 ? void 0 : order.id), parseInt(configs === null || configs === void 0 ? void 0 : (_configs$guest_uuid_a = configs.guest_uuid_access) === null || _configs$guest_uuid_a === void 0 ? void 0 : _configs$guest_uuid_a.value, 10) && (order === null || order === void 0 ? void 0 : order.hash_key) && /*#__PURE__*/_react.default.createElement(_styles.Content, {
641
692
  className: "order-content"
642
693
  }, /*#__PURE__*/_react.default.createElement(_styles.ShareOrder, null, /*#__PURE__*/_react.default.createElement("div", {
643
694
  className: "wrap"
@@ -667,13 +718,7 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
667
718
  disabled: reorderState === null || reorderState === void 0 ? void 0 : reorderState.loading
668
719
  }, reorderState !== null && reorderState !== void 0 && reorderState.loading ? t('LOADING', 'Loading...') : t('REORDER', 'Reorder')))), showDeliveryProgress && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.StatusBar, {
669
720
  percentage: (_getOrderStatus = getOrderStatus(order === null || order === void 0 ? void 0 : order.status)) === null || _getOrderStatus === void 0 ? void 0 : _getOrderStatus.percentage
670
- }), /*#__PURE__*/_react.default.createElement("div", {
671
- style: {
672
- display: 'flex',
673
- flexDirection: 'row',
674
- justifyContent: 'space-between'
675
- }
676
- }, /*#__PURE__*/_react.default.createElement("p", {
721
+ }), /*#__PURE__*/_react.default.createElement(_styles.OrderStatusAndLinkContainer, null, /*#__PURE__*/_react.default.createElement("p", {
677
722
  className: "order-status"
678
723
  }, (_getOrderStatus2 = getOrderStatus(order === null || order === void 0 ? void 0 : order.status)) === null || _getOrderStatus2 === void 0 ? void 0 : _getOrderStatus2.value), /*#__PURE__*/_react.default.createElement(_styles.LinkWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.ReviewOrderLink, {
679
724
  active: true,
@@ -690,13 +735,13 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
690
735
  }, t('REVIEW_ORDER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag29 = theme.defaultLanguages) === null || _theme$defaultLanguag29 === void 0 ? void 0 : _theme$defaultLanguag29.REVIEW_ORDER) || 'Review your Order'))))))), /*#__PURE__*/_react.default.createElement(_styles.OrderBusiness, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessExternalWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessWrapper, {
691
736
  w: "calc(100% - 20px)" // borderBottom={showOrderActions}
692
737
 
693
- }, /*#__PURE__*/_react.default.createElement("img", {
694
- src: order === null || order === void 0 ? void 0 : (_order$business3 = order.business) === null || _order$business3 === void 0 ? void 0 : _order$business3.logo
695
- }), /*#__PURE__*/_react.default.createElement(_styles.BusinessInfo, null, /*#__PURE__*/_react.default.createElement("h2", null, order === null || order === void 0 ? void 0 : (_order$business4 = order.business) === null || _order$business4 === void 0 ? void 0 : _order$business4.name), /*#__PURE__*/_react.default.createElement(_ActionsSection.ActionsSection, _extends({}, ActionsSectionProps, {
738
+ }, isShowBusinessLogo && /*#__PURE__*/_react.default.createElement("img", {
739
+ src: order === null || order === void 0 ? void 0 : (_order$business4 = order.business) === null || _order$business4 === void 0 ? void 0 : _order$business4.logo
740
+ }), /*#__PURE__*/_react.default.createElement(_styles.BusinessInfo, null, /*#__PURE__*/_react.default.createElement("h2", null, order === null || order === void 0 ? void 0 : (_order$business5 = order.business) === null || _order$business5 === void 0 ? void 0 : _order$business5.name), /*#__PURE__*/_react.default.createElement(_ActionsSection.ActionsSection, _extends({}, ActionsSectionProps, {
696
741
  actionType: "business",
697
742
  showPhone: showBusinessPhone,
698
743
  showMessages: showBusinessMessages
699
- })), showBusinessEmail && /*#__PURE__*/_react.default.createElement("p", null, order === null || order === void 0 ? void 0 : (_order$business5 = order.business) === null || _order$business5 === void 0 ? void 0 : _order$business5.email), showBusinessPhone && /*#__PURE__*/_react.default.createElement("p", null, order === null || order === void 0 ? void 0 : (_order$business6 = order.business) === null || _order$business6 === void 0 ? void 0 : _order$business6.cellphone), showBusinessAddress && /*#__PURE__*/_react.default.createElement("p", null, order === null || order === void 0 ? void 0 : (_order$business7 = order.business) === null || _order$business7 === void 0 ? void 0 : _order$business7.address), (order === null || order === void 0 ? void 0 : (_order$place = order.place) === null || _order$place === void 0 ? void 0 : _order$place.name) && /*#__PURE__*/_react.default.createElement(_styles.PlaceSpotSection, null, /*#__PURE__*/_react.default.createElement("p", null, yourSpotString, ": ", order === null || order === void 0 ? void 0 : (_order$place2 = order.place) === null || _order$place2 === void 0 ? void 0 : _order$place2.name)))), showDeliveryType && placeSpotTypes.includes(order === null || order === void 0 ? void 0 : order.delivery_type) && /*#__PURE__*/_react.default.createElement(_styles.BusinessWrapper, {
744
+ })), showBusinessEmail && /*#__PURE__*/_react.default.createElement("p", null, order === null || order === void 0 ? void 0 : (_order$business6 = order.business) === null || _order$business6 === void 0 ? void 0 : _order$business6.email), showBusinessPhone && /*#__PURE__*/_react.default.createElement("p", null, order === null || order === void 0 ? void 0 : (_order$business7 = order.business) === null || _order$business7 === void 0 ? void 0 : _order$business7.cellphone), showBusinessAddress && /*#__PURE__*/_react.default.createElement("p", null, order === null || order === void 0 ? void 0 : (_order$business8 = order.business) === null || _order$business8 === void 0 ? void 0 : _order$business8.address), (order === null || order === void 0 ? void 0 : (_order$place = order.place) === null || _order$place === void 0 ? void 0 : _order$place.name) && /*#__PURE__*/_react.default.createElement(_styles.PlaceSpotSection, null, /*#__PURE__*/_react.default.createElement("p", null, yourSpotString, ": ", order === null || order === void 0 ? void 0 : (_order$place2 = order.place) === null || _order$place2 === void 0 ? void 0 : _order$place2.name)))), showDeliveryType && placeSpotTypes.includes(order === null || order === void 0 ? void 0 : order.delivery_type) && /*#__PURE__*/_react.default.createElement(_styles.BusinessWrapper, {
700
745
  w: "calc(100% - 20px)",
701
746
  borderTop: true
702
747
  }, /*#__PURE__*/_react.default.createElement(_PlaceSpot.PlaceSpot, {
@@ -731,7 +776,7 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
731
776
  }, (_getOrderStatus4 = getOrderStatus(21)) === null || _getOrderStatus4 === void 0 ? void 0 : _getOrderStatus4.value))))), googleMapsApiKey && /*#__PURE__*/_react.default.createElement(_styles.MapWrapper, null, /*#__PURE__*/_react.default.createElement(OrderMapSection, {
732
777
  isMapImg: true,
733
778
  validStatuses: [order === null || order === void 0 ? void 0 : order.status],
734
- location: order === null || order === void 0 ? void 0 : (_order$business8 = order.business) === null || _order$business8 === void 0 ? void 0 : _order$business8.location,
779
+ location: order === null || order === void 0 ? void 0 : (_order$business9 = order.business) === null || _order$business9 === void 0 ? void 0 : _order$business9.location,
735
780
  mapStyle: {
736
781
  width: '100%'
737
782
  }
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _reactHookForm = require("react-hook-form");
13
13
 
14
- var _orderingComponentsExternal = require("ordering-components-external");
14
+ var _orderingComponents = require("ordering-components");
15
15
 
16
16
  var _MdClose = _interopRequireDefault(require("@meronex/icons/md/MdClose"));
17
17
 
@@ -74,11 +74,11 @@ var ReviewOrderUI = function ReviewOrderUI(props) {
74
74
  setIsReviewed = props.setIsReviewed,
75
75
  setStars = props.setStars;
76
76
 
77
- var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
77
+ var _useLanguage = (0, _orderingComponents.useLanguage)(),
78
78
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
79
79
  t = _useLanguage2[1];
80
80
 
81
- var _useUtils = (0, _orderingComponentsExternal.useUtils)(),
81
+ var _useUtils = (0, _orderingComponents.useUtils)(),
82
82
  _useUtils2 = _slicedToArray(_useUtils, 1),
83
83
  optimizeImage = _useUtils2[0].optimizeImage;
84
84
 
@@ -336,7 +336,7 @@ var ReviewOrder = function ReviewOrder(props) {
336
336
  defaultStar: (_props$defaultStar = props === null || props === void 0 ? void 0 : props.defaultStar) !== null && _props$defaultStar !== void 0 ? _props$defaultStar : 0
337
337
  });
338
338
 
339
- return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.OrderReview, ReviewOrderProps);
339
+ return /*#__PURE__*/_react.default.createElement(_orderingComponents.OrderReview, ReviewOrderProps);
340
340
  };
341
341
 
342
342
  exports.ReviewOrder = ReviewOrder;
@@ -9,7 +9,7 @@ exports.ReviewProduct = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _orderingComponentsExternal = require("ordering-components-external");
12
+ var _orderingComponents = require("ordering-components");
13
13
 
14
14
  var _reactHookForm = require("react-hook-form");
15
15
 
@@ -72,7 +72,7 @@ var SingleProductReview = function SingleProductReview(props) {
72
72
  handleChangeFormState = props.handleChangeFormState,
73
73
  formState = props.formState;
74
74
 
75
- var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
75
+ var _useLanguage = (0, _orderingComponents.useLanguage)(),
76
76
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
77
77
  t = _useLanguage2[1];
78
78
 
@@ -212,7 +212,7 @@ var ReviewProductUI = function ReviewProductUI(props) {
212
212
  handleSendProductReview = props.handleSendProductReview,
213
213
  setIsProductReviewed = props.setIsProductReviewed;
214
214
 
215
- var _useLanguage3 = (0, _orderingComponentsExternal.useLanguage)(),
215
+ var _useLanguage3 = (0, _orderingComponents.useLanguage)(),
216
216
  _useLanguage4 = _slicedToArray(_useLanguage3, 2),
217
217
  t = _useLanguage4[1];
218
218
 
@@ -323,7 +323,7 @@ var ReviewProduct = function ReviewProduct(props) {
323
323
  isToast: true
324
324
  });
325
325
 
326
- return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.ReviewProduct, reviewProductProps);
326
+ return /*#__PURE__*/_react.default.createElement(_orderingComponents.ReviewProduct, reviewProductProps);
327
327
  };
328
328
 
329
329
  exports.ReviewProduct = ReviewProduct;
@@ -23,7 +23,7 @@ var ReviewProductContainer = _styledComponents.default.form(_templateObject || (
23
23
 
24
24
  exports.ReviewProductContainer = ReviewProductContainer;
25
25
 
26
- var ActionBlock = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 30px;\n width: 100%;\n\n span {\n cursor: pointer;\n font-weight: 600;\n font-size: 16px;\n user-select: none;\n }\n\n button {\n font-size: 14px;\n padding: 6px 20px;\n\n svg {\n color: white;\n font-size: 21px;\n vertical-align: middle;\n margin-left: 8px;\n ", "\n }\n }\n"])), function (props) {
26
+ var ActionBlock = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 30px;\n width: 100%;\n span {\n cursor: pointer;\n font-weight: 600;\n font-size: 16px;\n user-select: none;\n }\n button {\n font-size: 14px;\n padding: 6px 20px;\n svg {\n color: white;\n font-size: 21px;\n vertical-align: middle;\n margin-left: 8px;\n ", "\n }\n }\n"])), function (props) {
27
27
  var _props$theme;
28
28
 
29
29
  return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 0;\n margin-right: 8px;\n transform: rotateZ(180deg);\n "])));
@@ -35,7 +35,7 @@ var SingleProductReviewContainer = _styledComponents.default.div(_templateObject
35
35
 
36
36
  exports.SingleProductReviewContainer = SingleProductReviewContainer;
37
37
 
38
- var HandReviewWrapper = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n p {\n font-size: 15px;\n color: ", ";\n margin: 0;\n color: #344050;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])), function (props) {
38
+ var HandReviewWrapper = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n p {\n font-size: 15px;\n color: ", ";\n margin: 0;\n color: #344050;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])), function (props) {
39
39
  var _props$theme2;
40
40
 
41
41
  return (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.colors.headingColor;
@@ -47,7 +47,7 @@ var HandReviewContent = _styledComponents.default.div(_templateObject6 || (_temp
47
47
 
48
48
  exports.HandReviewContent = HandReviewContent;
49
49
 
50
- var HandIconWrapper = _styledComponents.default.span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-left: 15px;\n\n ", "\n\n svg {\n font-size: 24px;\n color: #B1BCCC;\n cursor: pointer;\n transition: all 0.3s linear;\n }\n\n ", "\n"])), function (props) {
50
+ var HandIconWrapper = _styledComponents.default.span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-left: 15px;\n ", "\n svg {\n font-size: 24px;\n color: #B1BCCC;\n cursor: pointer;\n transition: all 0.3s linear;\n }\n ", "\n"])), function (props) {
51
51
  var _props$theme3;
52
52
 
53
53
  return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin-right: 15px;\n margin-left: 0;\n "])));
@@ -66,7 +66,7 @@ var AdditionCommentsWrapper = _styledComponents.default.div(_templateObject10 ||
66
66
 
67
67
  exports.AdditionCommentsWrapper = AdditionCommentsWrapper;
68
68
 
69
- var AddCommentHideShow = _styledComponents.default.p(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n text-decoration: underline;\n text-align: center;\n user-select: none;\n cursor: pointer;\n margin: 0;\n transition: all 0.3s linear;\n color: #909BA9;\n font-size: 13px;\n\n &:hover {\n color: ", ";\n }\n \n ", "\n"])), function (props) {
69
+ var AddCommentHideShow = _styledComponents.default.p(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n text-decoration: underline;\n text-align: center;\n user-select: none;\n cursor: pointer;\n margin: 0;\n transition: all 0.3s linear;\n color: #909BA9;\n font-size: 13px;\n &:hover {\n color: ", ";\n }\n \n ", "\n"])), function (props) {
70
70
  var _props$theme5;
71
71
 
72
72
  return (_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.colors.primary;
@@ -81,14 +81,14 @@ var AddCommentHideShow = _styledComponents.default.p(_templateObject11 || (_temp
81
81
 
82
82
  exports.AddCommentHideShow = AddCommentHideShow;
83
83
 
84
- var Comments = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-top: 50px;\n\n p {\n margin-top: 0;\n margin-bottom: 8px;\n font-size: 14px;\n color: #344050;\n }\n\n textarea {\n width: 100%;\n box-sizing: border-box;\n border-radius: 7.6px;\n min-height: 100px;\n }\n"])));
84
+ var Comments = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-top: 50px;\n p {\n margin-top: 0;\n margin-bottom: 8px;\n font-size: 14px;\n color: #344050;\n }\n textarea {\n width: 100%;\n box-sizing: border-box;\n border-radius: 7.6px;\n min-height: 100px;\n }\n"])));
85
85
 
86
86
  exports.Comments = Comments;
87
87
 
88
88
  var CommentsList = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-top: 20px;\n"])));
89
89
 
90
90
  exports.CommentsList = CommentsList;
91
- var ButtonCustomized = (0, _styledComponents.default)(_Buttons.Button)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n border-radius: 50px;\n margin-bottom: 18px;\n margin-right: 18px;\n font-size: 13px;\n color: #414954;\n background: #E9ECEF;\n border: 1px solid #E9ECEF;\n transition: all 0.3s linear;\n\n ", "\n\n svg {\n vertical-align: middle;\n margin-left: 5px;\n\n ", "\n }\n\n ", "\n"])), function (props) {
91
+ var ButtonCustomized = (0, _styledComponents.default)(_Buttons.Button)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n border-radius: 50px;\n margin-bottom: 18px;\n margin-right: 18px;\n font-size: 13px;\n color: #414954;\n background: #E9ECEF;\n border: 1px solid #E9ECEF;\n transition: all 0.3s linear;\n ", "\n svg {\n vertical-align: middle;\n margin-left: 5px;\n ", "\n }\n ", "\n"])), function (props) {
92
92
  var _props$theme7;
93
93
 
94
94
  return ((_props$theme7 = props.theme) === null || _props$theme7 === void 0 ? void 0 : _props$theme7.rtl) && (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n margin-left: 18px;\n margin-right: 0;\n "])));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Ordering UI Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -54,6 +54,7 @@ import { NotNetworkConnectivity } from './src/components/NotNetworkConnectivity'
54
54
  import { Modal } from './src/components/Modal'
55
55
  import { OrderDetails } from './src/components/OrderDetails'
56
56
  import { OrderDetails as OrderDetailsKiosk } from './src/components/OrderDetails/layouts/Kiosk'
57
+ import { OrderItAgain } from './src/components/OrderItAgain'
57
58
  import { OrdersOption } from './src/components/OrdersOption'
58
59
  import { OrderProgress } from './src/components/OrderProgress'
59
60
  import { OrderTypeSelectorContent } from './src/components/OrderTypeSelectorContent'
@@ -158,6 +159,7 @@ export {
158
159
  NotFoundSource,
159
160
  NotNetworkConnectivity,
160
161
  OrderDetails,
162
+ OrderItAgain,
161
163
  OrderDetailsKiosk,
162
164
  OrdersOption,
163
165
  OrderTypeSelectorContent,
@@ -38,6 +38,7 @@ import {
38
38
  BusinessWrapper,
39
39
  BusinessInfo,
40
40
  OrderInfo,
41
+ OrderIdSec,
41
42
  StatusBar,
42
43
  OrderCustomer,
43
44
  PhotoBlock,
@@ -61,6 +62,7 @@ import {
61
62
  HeaderTitle,
62
63
  PlaceSpotSection,
63
64
  BtsOrderStatus,
65
+ OrderStatusAndLinkContainer,
64
66
  LinkWrapper,
65
67
  MapWrapper,
66
68
  BusinessExternalWrapper
@@ -108,7 +110,7 @@ const OrderDetailsUI = (props) => {
108
110
  const [isService, setIsService] = useState(false)
109
111
  const [isOrderHistory, setIsOrderHistory] = useState(false)
110
112
  const [confirm, setConfirm] = useState({ open: false, content: null, handleOnAccept: null })
111
-
113
+ const [isShowBusinessLogo, setIsShowBusinessLogo] = useState(true)
112
114
  const { order, loading, businessData, error } = props.order
113
115
  const yourSpotString = order?.delivery_type === 3 ? t('TABLE_NUMBER', 'Table number') : t('SPOT_NUMBER', 'Spot number')
114
116
  const acceptedStatus = [1, 2, 5, 6, 10, 11, 12]
@@ -183,6 +185,26 @@ const OrderDetailsUI = (props) => {
183
185
  setUnreadAlert({ business, driver })
184
186
  }
185
187
 
188
+ const validateImage = (src) => {
189
+ return new Promise((resolve, reject) => {
190
+ if (!src || typeof src !== 'string') {
191
+ resolve(false)
192
+ }
193
+ try {
194
+ const image = new Image()
195
+ image.src = src
196
+ image.complete ? resolve(true) : resolve(false)
197
+ } catch (err) {
198
+ resolve(false)
199
+ }
200
+ })
201
+ }
202
+
203
+ const businessLogoUrlValidation = async () => {
204
+ const isValidImage = await validateImage(order?.business?.logo)
205
+ setIsShowBusinessLogo(isValidImage)
206
+ }
207
+
186
208
  const locations = [
187
209
  { ...order?.driver?.location, icon: order?.driver?.photo || theme.images?.dummies?.driverPhoto },
188
210
  { ...order?.business?.location, icon: order?.business?.logo || theme.images?.dummies?.businessLogo },
@@ -311,6 +333,7 @@ const OrderDetailsUI = (props) => {
311
333
  if (!order) return
312
334
  const _isService = order.products.some(product => product.type === 'service')
313
335
  setIsService(_isService)
336
+ businessLogoUrlValidation()
314
337
  }, [order])
315
338
 
316
339
  const OrderMapSection = (props) => {
@@ -384,7 +407,7 @@ const OrderDetailsUI = (props) => {
384
407
  <WrapperLeftContainer>
385
408
  <OrderInfo>
386
409
  <TitleContainer>
387
- <h1>{isService ? t('APPOINTMENT', 'Appointment') : t('ORDER', theme?.defaultLanguages?.ORDER || 'Order')} #{order?.id}</h1>
410
+ <OrderIdSec>{isService ? t('APPOINTMENT', 'Appointment') : t('ORDER', theme?.defaultLanguages?.ORDER || 'Order')} #{order?.id}</OrderIdSec>
388
411
  {parseInt(configs?.guest_uuid_access?.value, 10) && order?.hash_key && (
389
412
  <Content className='order-content'>
390
413
  <ShareOrder>
@@ -419,40 +442,34 @@ const OrderDetailsUI = (props) => {
419
442
  acceptedStatus.includes(parseInt(order?.status, 10)) ||
420
443
  !isOriginalLayout
421
444
  ) && (
422
- <ReOrder>
445
+ <ReOrder>
446
+ <Button
447
+ color='primary'
448
+ outline
449
+ onClick={() => handleStartNewOrder(order.id)}
450
+ disabled={reorderState?.loading}
451
+ >
452
+ {t('START_NEW_ORDER', 'Start new order')}
453
+ </Button>
454
+ {completedStatus.includes(parseInt(order?.status, 10)) && (
423
455
  <Button
424
456
  color='primary'
425
457
  outline
426
- onClick={() => handleStartNewOrder(order.id)}
458
+ onClick={() => handleClickReorder(order)}
427
459
  disabled={reorderState?.loading}
428
460
  >
429
- {t('START_NEW_ORDER', 'Start new order')}
461
+ {reorderState?.loading
462
+ ? t('LOADING', 'Loading...')
463
+ : t('REORDER', 'Reorder')}
430
464
  </Button>
431
- {completedStatus.includes(parseInt(order?.status, 10)) && (
432
- <Button
433
- color='primary'
434
- outline
435
- onClick={() => handleClickReorder(order)}
436
- disabled={reorderState?.loading}
437
- >
438
- {reorderState?.loading
439
- ? t('LOADING', 'Loading...')
440
- : t('REORDER', 'Reorder')}
441
- </Button>
442
- )}
443
- </ReOrder>
444
- )}
465
+ )}
466
+ </ReOrder>
467
+ )}
445
468
  </TitleContainer>
446
469
  {showDeliveryProgress && (
447
470
  <>
448
471
  <StatusBar percentage={getOrderStatus(order?.status)?.percentage} />
449
- <div
450
- style={{
451
- display: 'flex',
452
- flexDirection: 'row',
453
- justifyContent: 'space-between'
454
- }}
455
- >
472
+ <OrderStatusAndLinkContainer>
456
473
  <p className='order-status'>{getOrderStatus(order?.status)?.value}</p>
457
474
  <LinkWrapper>
458
475
  <ReviewOrderLink
@@ -472,7 +489,7 @@ const OrderDetailsUI = (props) => {
472
489
  <span onClick={handleOpenReview}>{t('REVIEW_ORDER', theme?.defaultLanguages?.REVIEW_ORDER || 'Review your Order')}</span>
473
490
  </ReviewOrderLink>
474
491
  </LinkWrapper>
475
- </div>
492
+ </OrderStatusAndLinkContainer>
476
493
  </>
477
494
  )}
478
495
  </OrderInfo>
@@ -482,7 +499,7 @@ const OrderDetailsUI = (props) => {
482
499
  w='calc(100% - 20px)'
483
500
  // borderBottom={showOrderActions}
484
501
  >
485
- <img src={order?.business?.logo} />
502
+ {isShowBusinessLogo && <img src={order?.business?.logo} />}
486
503
  <BusinessInfo>
487
504
  <h2>{order?.business?.name}</h2>
488
505
  <ActionsSection
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useEffect } from 'react'
2
2
  import { useForm } from 'react-hook-form'
3
3
 
4
- import { useLanguage, useUtils, OrderReview as ReviewOrderController } from 'ordering-components-external'
4
+ import { useLanguage, useUtils, OrderReview as ReviewOrderController } from 'ordering-components'
5
5
  import MdClose from '@meronex/icons/md/MdClose'
6
6
  import BsArrowRight from '@meronex/icons/bs/BsArrowRight'
7
7
  import {
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useEffect } from 'react'
2
- import { useLanguage, ReviewProduct as ReviewProductController } from 'ordering-components-external'
2
+ import { useLanguage, ReviewProduct as ReviewProductController } from 'ordering-components'
3
3
  import { useForm } from 'react-hook-form'
4
4
 
5
5
  import {