(window.webpackJsonp = window.webpackJsonp || []).push([
    [9],
    {
        131: function (e, t, a) {
            "use strict";
            var r = (function (e) {
                    return e && "object" == typeof e && "default" in e ? e.default : e;
                })(a(0)),
                n = !1;
            "undefined" != typeof window && (n = "ontouchstart" in window || (window.DocumentTouch && document instanceof window.DocumentTouch));
            var o = n,
                i = { borderRadius: "inherit", height: "100%", left: 0, position: "absolute", top: 0, width: "100%" };
            function l(e, t, a, r) {
                return a * ((e = e / r - 1) * e * e * e * e + 1) + t;
            }
            var c = Math.sqrt(2),
                s = Math.cos,
                d = Math.max,
                u = Math.min;
            function m(e) {
                return u(e.duration, Date.now() - e.mouseDown);
            }
            function p(e) {
                return 0 < e.mouseUp ? Date.now() - e.mouseUp : 0;
            }
            function g(e) {
                var t = e.duration,
                    a = e.radius,
                    r = 0.85 * l(m(e), 0, a, t),
                    n = 0.15 * l(p(e), 0, a, t),
                    o = 0.02 * a * s(Date.now() / t);
                return d(0, r + n + o);
            }
            function h(e, t, a) {
                return a || u(0.6 * d(e, t));
            }
            function f(e, t) {
                return l(p(e), t, -t, e.duration);
            }
            function v(e, t) {
                return u(f(e, t), l(m(e), 0, 0.3, 3 * e.duration));
            }
            function y(e, t, a) {
                return u(1, ((g(e) / t) * 2) / c) * (a / 2 - e.x);
            }
            function b(e, t, a) {
                return u(1, ((g(e) / t) * 2) / c) * (a / 2 - e.y);
            }
            function S(e) {
                return g(e) / e.radius;
            }
            var _ = function (e) {
                var t = e.mouseUp,
                    a = e.duration;
                return !t || Date.now() - t < a;
            };
            function E(e) {
                var t,
                    a = [],
                    r = !1,
                    n = {
                        each: function (e, t) {
                            for (var r = 0, n = a.length; r < n; r++) e.call(t, a[r]);
                        },
                        play: function () {
                            r || ((r = !0), n.update());
                        },
                        stop: function () {
                            (r = !1), cancelAnimationFrame(t);
                        },
                        getTotalOpacity: function (e) {
                            for (var t = 0, r = 0, n = a.length; r < n; r++) t += v(a[r], e);
                            return t;
                        },
                        update: function () {
                            (a = a.filter(_)).length ? (t = requestAnimationFrame(n.update)) : n.stop(), e();
                        },
                        add: function (e) {
                            a.push(e), n.play();
                        },
                        release: function (e) {
                            for (var t = a.length - 1; 0 <= t; t--) if (!a[t].mouseUp) return (a[t].mouseUp = e);
                        },
                    };
                return n;
            }
            function x() {
                for (var e = arguments, t = {}, a = 0; a < arguments.length; a++) {
                    var r = e[a];
                    if (r) for (var n in r) t[n] = r[n];
                }
                return t;
            }
            var k = 2 * Math.PI,
                w = { background: !0, className: "ink", duration: 1e3, opacity: 0.25, recenter: !0, hasTouch: o },
                O = (function (e) {
                    function t(t) {
                        e.apply(this, arguments), (this.state = { color: "transparent", density: 1, height: 0, store: E(this.tick.bind(this)), width: 0 }), (this.touchEvents = this.touchEvents());
                    }
                    return (
                        e && (t.__proto__ = e),
                        (((t.prototype = Object.create(e && e.prototype)).constructor = t).prototype.touchEvents = function () {
                            return this.props.hasTouch
                                ? { onTouchStart: this.t.bind(this), onTouchEnd: this.n.bind(this), onTouchCancel: this.n.bind(this) }
                                : { onMouseDown: this.t.bind(this), onMouseUp: this.n.bind(this), onMouseLeave: this.n.bind(this) };
                        }),
                        (t.prototype.tick = function () {
                            var e = this.state,
                                t = e.ctx,
                                a = e.color,
                                r = e.density,
                                n = e.height,
                                o = e.width,
                                i = e.store;
                            t.save(),
                                t.scale(r, r),
                                t.clearRect(0, 0, o, n),
                                (t.fillStyle = a),
                                this.props.background && ((t.globalAlpha = i.getTotalOpacity(this.props.opacity)), t.fillRect(0, 0, o, n)),
                                i.each(this.makeBlot, this),
                                t.restore();
                        }),
                        (t.prototype.makeBlot = function (e) {
                            var t = this.state,
                                a = t.ctx,
                                r = t.height,
                                n = t.width,
                                o = e.x,
                                i = e.y,
                                l = e.radius;
                            if (((a.globalAlpha = f(e, this.props.opacity)), a.beginPath(), this.props.recenter)) {
                                var c = Math.max(r, n);
                                (o += y(e, c, n)), (i += b(e, c, r));
                            }
                            a.arc(o, i, l * S(e), 0, k), a.closePath(), a.fill();
                        }),
                        (t.prototype.componentWillUnmount = function () {
                            this.state.store.stop();
                        }),
                        (t.prototype.pushBlot = function (e, t, a) {
                            var r = this,
                                n = this.canvas;
                            n.getDOMNode && "function" == typeof n.getDOMNode && (n = n.getDOMNode());
                            var o = n.getBoundingClientRect(),
                                i = o.top,
                                l = o.bottom,
                                c = o.left,
                                s = o.right,
                                d = window.getComputedStyle(n).color,
                                u = this.state.ctx || n.getContext("2d"),
                                m = (function (e) {
                                    return (window.devicePixelRatio || 1) / (e.webkitBackingStorePixelRatio || e.mozBackingStorePixelRatio || e.msBackingStorePixelRatio || e.oBackingStorePixelRatio || e.backingStorePixelRatio || 1);
                                })(u),
                                p = l - i,
                                g = s - c,
                                f = h(p, g, this.props.radius);
                            this.setState({ color: d, ctx: u, density: m, height: p, width: g }, function () {
                                r.state.store.add({ duration: r.props.duration, mouseDown: e, mouseUp: 0, radius: f, x: t - c, y: a - i });
                            });
                        }),
                        (t.prototype.setCanvas = function (e) {
                            this.canvas = e;
                        }),
                        (t.prototype.render = function () {
                            var e = this.state,
                                t = e.density,
                                a = e.height,
                                n = e.width,
                                o = this.props,
                                l = o.className,
                                c = o.style,
                                s = x({ className: l, ref: this.setCanvas.bind(this), height: a * t, width: n * t, onDragOver: this.n, style: x(i, c) }, this.touchEvents);
                            return r.createElement("canvas", s);
                        }),
                        (t.prototype.t = function (e) {
                            var t = e.button,
                                a = e.ctrlKey,
                                r = e.clientX,
                                n = e.clientY,
                                o = e.changedTouches,
                                i = Date.now();
                            if (o)
                                for (var l = 0; l < o.length; l++) {
                                    var c = o[l],
                                        s = c.clientX,
                                        d = c.clientY;
                                    this.pushBlot(i, s, d);
                                }
                            else 0 !== t || a || this.pushBlot(i, r, n);
                        }),
                        (t.prototype.n = function () {
                            this.state.store.release(Date.now());
                        }),
                        t
                    );
                })(r.PureComponent);
            (O.defaultProps = w), (e.exports = O);
        },
        141: function (e, t, a) {
            "use strict";
            var r = a(22),
                n = a(23),
                o = a(25),
                i = a(24),
                l = a(26),
                c = a(0),
                s = a.n(c),
                d = (function (e) {
                    function t() {
                        var e, a;
                        Object(r.a)(this, t);
                        for (var n = arguments.length, l = new Array(n), c = 0; c < n; c++) l[c] = arguments[c];
                        return (
                            ((a = Object(o.a)(this, (e = Object(i.a)(t)).call.apply(e, [this].concat(l)))).state = { orderStatusName: "" }),
                            (a.getOrderStatusName = function (e) {
                                switch (e) {
                                    case 1:
                                        a.setState({ orderStatusName: localStorage.getItem("generalText_orderPlaced") });
                                        break;
                                    case 2:
                                        a.setState({ orderStatusName: localStorage.getItem("generalText_orderAccepted") });
                                        break;
                                    case 3:
                                        a.setState({ orderStatusName: localStorage.getItem("generalText_deliveryGuyAssigned") });
                                        break;
                                    case 4:
                                        a.setState({ orderStatusName: localStorage.getItem("generalText_orderPickedUp") });
                                        break;
                                    case 5:
                                        a.setState({ orderStatusName: localStorage.getItem("generalText_orderCompleted") });
                                        break;
                                    case 6:
                                        a.setState({ orderStatusName: localStorage.getItem("generalText_orderCanceled") });
                                        break;
                                    case 7:
                                        a.setState({ orderStatusName: localStorage.getItem("generalText_orderReadyForPickup") });
                                        break;
                                    case 8:
                                        a.setState({ orderStatusName: "Awaiting Payment" });
                                        break;
                                    case 9:
                                        a.setState({ orderStatusName: "Payment Failed" });
                                        break;
                                    case 10:
                                        a.setState({ orderStatusName: localStorage.getItem("generalText_orderScheduled") });
                                        break;
                                    case 11:
                                        a.setState({ orderStatusName: localStorage.getItem("generalText_confirmedScheduledOrder") });
                                        break;
                                    default:
                                        a.setState({ orderStatusName: "---" });
                                }
                            }),
                            a
                        );
                    }
                    return (
                        Object(l.a)(t, e),
                        Object(n.a)(t, [
                            {
                                key: "componentDidMount",
                                value: function () {
                                    this.getOrderStatusName(this.props.orderstatus_id);
                                },
                            },
                            {
                                key: "componentWillReceiveProps",
                                value: function (e) {
                                    this.props.orderstatus_id !== e.orderstatus_id && this.getOrderStatusName(e.orderstatus_id);
                                },
                            },
                            {
                                key: "render",
                                value: function () {
                                    return s.a.createElement("span", null, this.state.orderStatusName);
                                },
                            },
                        ]),
                        t
                    );
                })(c.Component);
            t.a = d;
        },
        160: function (e, t, a) {
            "use strict";
            a.d(t, "d", function () {
                return l;
            }),
                a.d(t, "g", function () {
                    return c;
                }),
                a.d(t, "b", function () {
                    return s;
                }),
                a.d(t, "a", function () {
                    return d;
                }),
                a.d(t, "f", function () {
                    return u;
                }),
                a.d(t, "e", function () {
                    return m;
                }),
                a.d(t, "c", function () {
                    return p;
                });
            var r = a(68),
                n = a(17),
                o = a(15),
                i = a.n(o),
                l = function (e, t, a) {
                    return function (o) {
                        return i.a
                            .post(n.p, { token: e, order_id: t, store_id: a })
                            .then(function (e) {
                                var t = e.data;
                                return o({ type: r.a, payload: t });
                            })
                            .catch(function (e) {
                                console.log(e);
                            });
                    };
                },
                c = function () {
                    return function (e) {
                        return e({ type: r.a, payload: null });
                    };
                },
                s = function (e, t, a) {
                    return function (o) {
                        return i.a
                            .post(n.b, { token: e, order_id: t, store_id: a })
                            .then(function (e) {
                                var t = e.data;
                                return o({ type: r.a, payload: t });
                            })
                            .catch(function (e) {
                                console.log(e);
                            });
                    };
                },
                d = function (e, t, a) {
                    return function (o) {
                        return i.a
                            .post(n.a, { token: e, order_id: t, store_id: a })
                            .then(function (e) {
                                var t = e.data;
                                return o({ type: r.a, payload: t });
                            })
                            .catch(function (e) {
                                console.log(e);
                            });
                    };
                },
                u = function (e, t, a) {
                    return function (o) {
                        return i.a
                            .post(n.v, { token: e, order_id: t, store_id: a })
                            .then(function (e) {
                                var t = e.data;
                                return o({ type: r.a, payload: t });
                            })
                            .catch(function (e) {
                                console.log(e);
                            });
                    };
                },
                m = function (e, t, a) {
                    return function (o) {
                        return i.a
                            .post(n.u, { token: e, order_id: t, store_id: a })
                            .then(function (e) {
                                var t = e.data;
                                return o({ type: r.a, payload: t });
                            })
                            .catch(function (e) {
                                console.log(e);
                            });
                    };
                },
                p = function (e, t, a) {
                    return function (o) {
                        return i.a
                            .post(n.c, { token: e, order_id: t, store_id: a })
                            .then(function (e) {
                                var t = e.data;
                                return o({ type: r.a, payload: t });
                            })
                            .catch(function (e) {
                                console.log(e);
                            });
                    };
                };
        },
        166: function (e, t, a) {
            "use strict";
            var r = a(1),
                n = a(4),
                o = a(20),
                i = a(0),
                l = a(14),
                c = a(27),
                s = a(55),
                d = a(236),
                u = a(222),
                m = a(221),
                p = a(28),
                g = a(220),
                h = { enter: p.b.enteringScreen, exit: p.b.leavingScreen },
                f = i.forwardRef(function (e, t) {
                    var a = e.BackdropProps,
                        o = e.children,
                        c = e.classes,
                        p = e.className,
                        f = e.disableBackdropClick,
                        v = void 0 !== f && f,
                        y = e.disableEscapeKeyDown,
                        b = void 0 !== y && y,
                        S = e.fullScreen,
                        _ = void 0 !== S && S,
                        E = e.fullWidth,
                        x = void 0 !== E && E,
                        k = e.maxWidth,
                        w = void 0 === k ? "sm" : k,
                        O = e.onBackdropClick,
                        N = e.onClose,
                        C = e.onEnter,
                        P = e.onEntered,
                        I = e.onEntering,
                        D = e.onEscapeKeyDown,
                        j = e.onExit,
                        T = e.onExited,
                        A = e.onExiting,
                        W = e.open,
                        F = e.PaperComponent,
                        B = void 0 === F ? g.a : F,
                        M = e.PaperProps,
                        R = void 0 === M ? {} : M,
                        U = e.scroll,
                        L = void 0 === U ? "paper" : U,
                        Y = e.TransitionComponent,
                        q = void 0 === Y ? m.a : Y,
                        X = e.transitionDuration,
                        J = void 0 === X ? h : X,
                        K = e.TransitionProps,
                        $ = e["aria-describedby"],
                        H = e["aria-labelledby"],
                        z = Object(n.a)(e, [
                            "BackdropProps",
                            "children",
                            "classes",
                            "className",
                            "disableBackdropClick",
                            "disableEscapeKeyDown",
                            "fullScreen",
                            "fullWidth",
                            "maxWidth",
                            "onBackdropClick",
                            "onClose",
                            "onEnter",
                            "onEntered",
                            "onEntering",
                            "onEscapeKeyDown",
                            "onExit",
                            "onExited",
                            "onExiting",
                            "open",
                            "PaperComponent",
                            "PaperProps",
                            "scroll",
                            "TransitionComponent",
                            "transitionDuration",
                            "TransitionProps",
                            "aria-describedby",
                            "aria-labelledby",
                        ]),
                        G = i.useRef();
                    return i.createElement(
                        d.a,
                        Object(r.a)(
                            { className: Object(l.a)(c.root, p), BackdropComponent: u.a, BackdropProps: Object(r.a)({ transitionDuration: J }, a), closeAfterTransition: !0 },
                            v ? { disableBackdropClick: v } : {},
                            { disableEscapeKeyDown: b, onEscapeKeyDown: D, onClose: N, open: W, ref: t },
                            z
                        ),
                        i.createElement(
                            q,
                            Object(r.a)({ appear: !0, in: W, timeout: J, onEnter: C, onEntering: I, onEntered: P, onExit: j, onExiting: A, onExited: T, role: "none presentation" }, K),
                            i.createElement(
                                "div",
                                {
                                    className: Object(l.a)(c.container, c["scroll".concat(Object(s.a)(L))]),
                                    onMouseUp: function (e) {
                                        e.target === e.currentTarget && e.target === G.current && ((G.current = null), O && O(e), !v && N && N(e, "backdropClick"));
                                    },
                                    onMouseDown: function (e) {
                                        G.current = e.target;
                                    },
                                },
                                i.createElement(
                                    B,
                                    Object(r.a)({ elevation: 24, role: "dialog", "aria-describedby": $, "aria-labelledby": H }, R, {
                                        className: Object(l.a)(c.paper, c["paperScroll".concat(Object(s.a)(L))], c["paperWidth".concat(Object(s.a)(String(w)))], R.className, _ && c.paperFullScreen, x && c.paperFullWidth),
                                    }),
                                    o
                                )
                            )
                        )
                    );
                });
            t.a = Object(c.a)(
                function (e) {
                    return {
                        root: { "@media print": { position: "absolute !important" } },
                        scrollPaper: { display: "flex", justifyContent: "center", alignItems: "center" },
                        scrollBody: { overflowY: "auto", overflowX: "hidden", textAlign: "center", "&:after": { content: '""', display: "inline-block", verticalAlign: "middle", height: "100%", width: "0" } },
                        container: { height: "100%", "@media print": { height: "auto" }, outline: 0 },
                        paper: { margin: 32, position: "relative", overflowY: "auto", "@media print": { overflowY: "visible", boxShadow: "none" } },
                        paperScrollPaper: { display: "flex", flexDirection: "column", maxHeight: "calc(100% - 64px)" },
                        paperScrollBody: { display: "inline-block", verticalAlign: "middle", textAlign: "left" },
                        paperWidthFalse: { maxWidth: "calc(100% - 64px)" },
                        paperWidthXs: { maxWidth: Math.max(e.breakpoints.values.xs, 444), "&$paperScrollBody": Object(o.a)({}, e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 64), { maxWidth: "calc(100% - 64px)" }) },
                        paperWidthSm: { maxWidth: e.breakpoints.values.sm, "&$paperScrollBody": Object(o.a)({}, e.breakpoints.down(e.breakpoints.values.sm + 64), { maxWidth: "calc(100% - 64px)" }) },
                        paperWidthMd: { maxWidth: e.breakpoints.values.md, "&$paperScrollBody": Object(o.a)({}, e.breakpoints.down(e.breakpoints.values.md + 64), { maxWidth: "calc(100% - 64px)" }) },
                        paperWidthLg: { maxWidth: e.breakpoints.values.lg, "&$paperScrollBody": Object(o.a)({}, e.breakpoints.down(e.breakpoints.values.lg + 64), { maxWidth: "calc(100% - 64px)" }) },
                        paperWidthXl: { maxWidth: e.breakpoints.values.xl, "&$paperScrollBody": Object(o.a)({}, e.breakpoints.down(e.breakpoints.values.xl + 64), { maxWidth: "calc(100% - 64px)" }) },
                        paperFullWidth: { width: "calc(100% - 64px)" },
                        paperFullScreen: { margin: 0, width: "100%", maxWidth: "100%", height: "100%", maxHeight: "none", borderRadius: 0, "&$paperScrollBody": { margin: 0, maxWidth: "100%" } },
                    };
                },
                { name: "MuiDialog" }
            )(f);
        },
        239: function (e, t, a) {
            "use strict";
            a.r(t);
            var r = a(22),
                n = a(23),
                o = a(25),
                i = a(24),
                l = a(26),
                c = a(0),
                s = a.n(c),
                d = a(34),
                u = a(160),
                m = a(141),
                p = (function (e) {
                    function t() {
                        return Object(r.a)(this, t), Object(o.a)(this, Object(i.a)(t).apply(this, arguments));
                    }
                    return (
                        Object(l.a)(t, e),
                        Object(n.a)(t, [
                            {
                                key: "render",
                                value: function () {
                                    var e = this.props.item;
                                    return s.a.createElement(
                                        s.a.Fragment,
                                        null,
                                        s.a.createElement(
                                            "div",
                                            { className: "d-flex justify-content-between" },
                                            s.a.createElement("div", null, s.a.createElement("span", { className: "order-item-quantity" }, e.quantity, "x")),
                                            s.a.createElement("div", { style: { maxWidth: "200px", minWidth: "200px" } }, s.a.createElement("strong", null, e.name)),
                                            s.a.createElement(
                                                "div",
                                                { className: "cart-item-price actual-item-price" },
                                                // s.a.createElement(
                                                //     s.a.Fragment,
                                                //     null,
                                                //     "left" === localStorage.getItem("currencySymbolAlign") && localStorage.getItem("currencyFormat"),
                                                //     e.price * e.quantity,
                                                //     "right" === localStorage.getItem("currencySymbolAlign") && localStorage.getItem("currencyFormat")
                                                // )
                                            )
                                        ),
                                        s.a.createElement(
                                            "div",
                                            { className: "items-addons-block" },
                                            e &&
                                                e.order_item_addons.map(function (t, a) {
                                                    return s.a.createElement(
                                                        "div",
                                                        { className: "d-flex justify-content-between", key: e.id + t.id + a },
                                                        s.a.createElement("div", { className: "invisible" }, s.a.createElement("span", { className: "order-item-quantity" }, e.quantity, "x")),
                                                        s.a.createElement("div", { style: { maxWidth: "200px", minWidth: "200px" } }, t.addon_name),
                                                        s.a.createElement("div", { className: "cart-item-price cart-addon-price" }, localStorage.getItem("currencyFormat"), t.addon_price)
                                                    );
                                                })
                                        ),
                                        s.a.createElement("hr", null)
                                    );
                                },
                            },
                        ]),
                        t
                    );
                })(c.Component),
                g = s.a.createRef(),
                h = s.a.createRef(),
                f = "ontouchstart" in document.documentElement,
                v = (function (e) {
                    function t() {
                        var e, a;
                        Object(r.a)(this, t);
                        for (var n = arguments.length, l = new Array(n), c = 0; c < n; c++) l[c] = arguments[c];
                        return (
                            ((a = Object(o.a)(this, (e = Object(i.a)(t)).call.apply(e, [this].concat(l)))).isDragging = !1),
                            (a.sliderLeft = 0),
                            (a.state = {}),
                            (a.onDrag = function (e) {
                                a.unmounted ||
                                    a.state.unlocked ||
                                    (a.isDragging && ((a.sliderLeft = f ? Math.min(Math.max(0, e.touches[0].clientX - a.startX), a.containerWidth) : Math.min(Math.max(0, e.clientX - a.startX), a.containerWidth)), a.updateSliderStyle()));
                            }),
                            (a.updateSliderStyle = function () {
                                a.unmounted || a.state.unlocked || (g.current.style.left = a.sliderLeft + 80 + "px");
                            }),
                            (a.stopDrag = function () {
                                a.unmounted ||
                                    a.state.unlocked ||
                                    (a.isDragging &&
                                        ((a.isDragging = !1),
                                        a.sliderLeft > 0.9 * a.containerWidth ? ((a.sliderLeft = a.containerWidth), a.onSuccess(), a.props.onSuccess && a.props.onSuccess()) : ((a.sliderLeft = 0), a.props.onFailure && a.props.onFailure()),
                                        a.updateSliderStyle()));
                            }),
                            (a.startDrag = function (e) {
                                a.unmounted || a.state.unlocked || ((a.isDragging = !0), (a.startX = f ? e.touches && e.touches[0].clientX : e.clientX));
                            }),
                            (a.onSuccess = function () {
                                (h.current.style.width = h.current.clientWidth + "px"), a.setState({ unlocked: !0 });
                            }),
                            (a.getText = function () {
                                return a.state.unlocked ? a.props.text_unlocked || s.a.createElement("i", { className: "si si-check" }) : a.props.text || "Slide to Proceed";
                            }),
                            (a.reset = function () {
                                a.unmounted ||
                                    a.setState({ unlocked: !1 }, function () {
                                        (a.sliderLeft = 0), a.updateSliderStyle();
                                    });
                            }),
                            a
                        );
                    }
                    return (
                        Object(l.a)(t, e),
                        Object(n.a)(t, [
                            {
                                key: "componentDidMount",
                                value: function () {
                                    f
                                        ? (document.addEventListener("touchmove", this.onDrag), document.addEventListener("touchend", this.stopDrag))
                                        : (document.addEventListener("mousemove", this.onDrag), document.addEventListener("mouseup", this.stopDrag)),
                                        (this.containerWidth = h.current.clientWidth - 80);
                                },
                            },
                            {
                                key: "componentWillReceiveProps",
                                value: function (e) {
                                    e.reset && this.reset();
                                },
                            },
                            {
                                key: "componentWillUnmount",
                                value: function () {
                                    this.unmounted = !0;
                                },
                            },
                            {
                                key: "render",
                                value: function () {
                                    return s.a.createElement(
                                        "div",
                                        { className: "ReactSwipeButton" },
                                        s.a.createElement(
                                            "div",
                                            { className: "rsbContainer slider-bg-color ".concat(this.state.unlocked && "rsbContainerUnlocked"), ref: h },
                                            s.a.createElement(
                                                "div",
                                                { className: "rsbcSlider", ref: g, onMouseDown: this.startDrag, onTouchStart: this.startDrag },
                                                s.a.createElement("span", { className: "rsbcSliderText" }, this.getText()),
                                                s.a.createElement("span", { className: "rsbcSliderArrow" })
                                            ),
                                            s.a.createElement("div", { className: "rsbcText" }, this.getText())
                                        )
                                    );
                                },
                            },
                        ]),
                        t
                    );
                })(c.Component),
                y = a(131),
                b = a.n(y),
                S = a(6),
                _ = a(166),
                E = a(46),
                x = a(148),
                k = a.n(x),
                w = (function (e) {
                    function t() {
                        var e, a;
                        Object(r.a)(this, t);
                        for (var n = arguments.length, l = new Array(n), c = 0; c < n; c++) l[c] = arguments[c];
                        return (
                            ((a = Object(o.a)(this, (e = Object(i.a)(t)).call.apply(e, [this].concat(l)))).state = { loading: !0, reset: !1, cancelConfirmationOpen: !1, orderReadyConfirmationOpen: !1, already_accepted: !1, showErrorMessage: !1 }),
                            (a.__acceptOrder = function () {
                                a.setState({ loading: !0 }),
                                    a.props.acceptOrder(a.props.user.data.auth_token, a.props.single_order.id, localStorage.getItem("selected_store_id")).then(function (e) {
                                        e.payload && e.payload.already_action && a.setState({ showErrorMessage: !0 });
                                    });
                            }),
                            (a.__markSelfpickupAsReady = function () {
                                a.setState({ loading: !0 }),
                                a.props.markSelfpickupAsReady(a.props.user.data.auth_token, a.props.single_order.id, localStorage.getItem("selected_store_id")).then(function (e) {
                                    window.location.reload();
                                });
                            }),
                            (a.__markSelfpickupAsCompleted = function () {
                                a.setState({ loading: !0 }), a.props.markSelfpickupAsCompleted(a.props.user.data.auth_token, a.props.single_order.id, localStorage.getItem("selected_store_id"));
                            }),
                            (a.__cancelOrder = function () {
                                a.setState({ loading: !0 }), a.props.cancelOrder(a.props.user.data.auth_token, a.props.single_order.id, localStorage.getItem("selected_store_id")), a.closeCancelConfirmationDialog();
                            }),
                            (a.openCancelConfirmationDialog = function () {
                                a.setState({ cancelConfirmationOpen: !0 });
                            }),
                            (a.closeCancelConfirmationDialog = function () {
                                a.setState({ cancelConfirmationOpen: !1 });
                            }),
                            (a.openOrderReadyConfirmationDialog = function () {
                                a.setState({ orderReadyConfirmationOpen: !0 });
                            }),
                            (a.closeOrderReadyConfirmationDialog = function () {
                                a.setState({ orderReadyConfirmationOpen: !1 });
                            }),
                            (a.__confirmScheduledOrder = function () {
                                a.props.confirmScheduledOrder(a.props.user.data.auth_token, a.props.single_order.id, localStorage.getItem("selected_store_id"));
                            }),
                            (a.__printFromAndroid = function () {
                                if (
                                    (console.log("Print btn clicked..."),
                                    "FoodomaaAndroidWebViewUA" === navigator.userAgent &&
                                        "undefined" !== window.Android &&
                                        "true" === localStorage.getItem("printer_enable_thermal_printer") &&
                                        ("network" === localStorage.getItem("printer_connection_method") && (console.log("network print command sent"), window.Android.printFromAndroid("network", JSON.stringify(a.props.single_order))),
                                        "bluetooth" === localStorage.getItem("printer_connection_method") && (console.log("bluetooth print command sent"), window.Android.printFromAndroid("bluetooth", JSON.stringify(a.props.single_order))),
                                        "webprint" === localStorage.getItem("printer_connection_method")))
                                ) {
                                    console.log("webprint print command sent");
                                    var e = "/order/" + a.props.single_order.id + "/print";
                                    a.context.router.history.push(e);
                                }
                            }),
                            (a.__goBackAndLandOnNewOrder = function () {
                                localStorage.setItem("ordersTabIndex", 0), localStorage.setItem("storeTabIndex", 2), a.context.router.history.push("/");
                            }),
                            a
                        );
                    }
                    return (
                        Object(l.a)(t, e),
                        Object(n.a)(t, [
                            {
                                key: "componentDidMount",
                                value: function () {
                                    var e = this,
                                        t = this.props.match.params.order_id,
                                        a = this.props.user;
                                    a.success &&
                                        this.props.getSingleOrder(a.data.auth_token, t, localStorage.getItem("selected_store_id")).then(function (t) {
                                            t &&
                                                t.payload &&
                                                t.payload.id &&
                                                new Promise(function (e) {
                                                    localStorage.setItem("selected_store_id", t.payload.restaurant_id), e("Saved");
                                                }).then(function () {
                                                    e.setState({ loading: !1 });
                                                });
                                        });
                                },
                            },
                            {
                                key: "componentWillReceiveProps",
                                value: function (e) {
                                    e.single_order !== this.props.single_order && this.setState({ loading: !1, reset: !0 });
                                },
                            },
                            {
                                key: "componentWillUnmount",
                                value: function () {
                                    this.props.removeSingleOrderFromState();
                                },
                            },
                            {
                                key: "render",
                                value: function () {
                                    var e = this.props,
                                        t = e.user,
                                        a = e.single_order;
                                    return t.success
                                        ? s.a.createElement(
                                              s.a.Fragment,
                                              null,
                                              this.state.showErrorMessage &&
                                                  s.a.createElement(
                                                      "div",
                                                      { className: "delivery-error delivery-already-accepted-error" },
                                                      s.a.createElement("div", { className: "error-shake" }, localStorage.getItem("orderPage_orderAlreadyAcceptedMsg"))
                                                  ),
                                              s.a.createElement(
                                                  "div",
                                                  { className: "pageTitle bg-primary-gradient" },
                                                  s.a.createElement(
                                                      "div",
                                                      { className: "d-flex justify-content-between align-items-center" },
                                                      s.a.createElement("div", { onClick: this.__goBackAndLandOnNewOrder }, s.a.createElement("i", { className: "si si-arrow-left text-white mr-5" })),
                                                      s.a.createElement("div", null, localStorage.getItem("orderPage_title")),
                                                      s.a.createElement("div", { className: "invisible" }, s.a.createElement("i", { className: "si si-arrow-left" }))
                                                  )
                                              ),
                                              this.state.loading && s.a.createElement(S.a, null),
                                              s.a.createElement(
                                                  "div",
                                                  { className: "pageContents" },
                                                  a &&
                                                      a.hasOwnProperty("id") &&
                                                      s.a.createElement(
                                                          "div",
                                                          null,
                                                          s.a.createElement(
                                                              "div",
                                                              { style: { marginTop: "-1.4rem" }, className: "bg-white p-3" },
                                                              s.a.createElement("div", { className: "text-center singleOrderRestaurantName" }, a.restaurant.name),
                                                              s.a.createElement("div", { className: "text-center singleOrderUniqueOrderId" }, a.unique_order_id),
                                                              s.a.createElement("div", { className: "text-center singleOrderOrderTime" }, s.a.createElement(k.a, { format: "DD/MM/YYYY hh:mma" }, a.created_at)),
                                                              s.a.createElement(
                                                                  "div",
                                                                  { className: "text-center singleOrderDeliveryType" },
                                                                  1 === a.delivery_type
                                                                      ? s.a.createElement("span", null, localStorage.getItem("orderPage_typeDeliveryOrder"))
                                                                      : s.a.createElement("span", null, localStorage.getItem("orderPage_typeSelfPickupOrder"))
                                                              )
                                                          ),
                                                          s.a.createElement(
                                                              "div",
                                                              { className: "custom-card mx-15 mt-15 text-center singleOrderOrderStatus ".concat(6 === a.orderstatus_id && "singleOrderOrderStatus--canceled") },
                                                              s.a.createElement(m.a, { orderstatus_id: a.orderstatus_id }),
                                                              null !== a.schedule_slot &&
                                                                  s.a.createElement(
                                                                      s.a.Fragment,
                                                                      null,
                                                                      s.a.createElement(
                                                                          "div",
                                                                          { className: "singleOrder-scheduled-slot" },
                                                                          JSON.parse(a.schedule_date).day,
                                                                          ",",
                                                                          " ",
                                                                          s.a.createElement(k.a, { format: "DD/MM/YYYY" }, JSON.parse(a.schedule_date).date),
                                                                          "-- ",
                                                                          JSON.parse(a.schedule_slot).open,
                                                                          "-",
                                                                          " ",
                                                                          JSON.parse(a.schedule_slot).close
                                                                      )
                                                                  ),
                                                               1 === a.is_third_party_delivery && 0 === a.is_third_party_reassign && (
                                                                s.a.createElement(
                                                                s.a.Fragment,
                                                                null,
                                                                    s.a.createElement(
                                                                    "div", { className: "text-left" },
                                                                    s.a.createElement("p", { className: "small font-w700 mb-2" }, "Delivery Details"),
                                                                    s.a.createElement("p", { className: "small mb-1" }, "Delivery Partner : ", a.delivery_name),
                                                                    s.a.createElement("a", {href: "tel:" + a.delivery_phone }, s.a.createElement("p", { className: "small mb-1" }, "Phone :", " ", a.delivery_phone)),
                                                                    s.a.createElement("a", { href: a.track_url, target: "_blank", rel: "noopener noreferrer" }, s.a.createElement("p", { className: "small mb-1" }, "Track Order :", " ", s.a.createElement("span", { className: "text-primary" }, a.track_url))),
                                                                    s.a.createElement("p", { className: "small mb-1" }, "Status : ", a.thirdParty_status),
                                                                    ),
                                                               )),
                                                              a.orderstatus_id > 2 &&
                                                                  a.orderstatus_id < 6 &&
                                                                  s.a.createElement(
                                                                      s.a.Fragment,
                                                                      null,
                                                                      a.accept_delivery &&
                                                                          a.accept_delivery.user &&
                                                                          s.a.createElement("div", { className: "small" }, "(", localStorage.getItem("orderPage_deliveryBy"), ":", " ", a.accept_delivery.user.name, ")")
                                                                  )
                                                          ),
                                                          s.a.createElement(
                                                              "div",
                                                              { className: "custom-card mx-15 mt-15 bg-white position-relative singleOrderCustomerDetails" },
                                                              s.a.createElement(
                                                                  "div",
                                                                  { className: "p-3" },
                                                                  s.a.createElement("p", { className: "font-w700 mb-2" }, localStorage.getItem("orderPage_customerDetailsTitle")),
                                                                  s.a.createElement("p", { className: "mb-1" }, localStorage.getItem("orderPage_customerName"), ": ", a.user.name),
                                                                  "false" === localStorage.getItem("hideCustomerDetailsFromStoreOwner") || 1 === a.show_customer_to_store &&
                                                                      s.a.createElement(
                                                                          s.a.Fragment,
                                                                          null,
                                                                          s.a.createElement("p", { className: "mb-1" }, localStorage.getItem("orderPage_customerEmail"), ":", " ", a.user.email),
                                                                          s.a.createElement("p", { className: "mb-1" }, localStorage.getItem("orderPage_customerPhone"), ":", " ", a.user.phone),
                                                                          1 === a.delivery_type && s.a.createElement("p", { className: "mb-1" }, localStorage.getItem("orderPage_customerAddress"), ":", " ", a.address),
                                                                          a.restaurant && a.restaurant.latitude && a.restaurant.longitude && s.a.createElement("p", { className: "mb-1" }, "Store Lat Lng:", " ", a.restaurant.latitude, ",", a.restaurant.longitude),
                                                                          a.location && s.a.createElement("p", { className: "mb-1" }, "Customer Lat Lng:", " ", JSON.parse(a.location).lat, ",", JSON.parse(a.location).lng),
                                                                          a.location && s.a.createElement(
                                                                              "button",
                                                                              {
                                                                                  className: "btn btn-success btn-block mt-2",
                                                                                  onClick: function() {
                                                                                      var location = JSON.parse(a.location);
                                                                                      var directionUrl = "http://maps.google.com/maps?q=" + location.lat + "," + location.lng;
                                                                                      window.open(directionUrl, "_blank");
                                                                                  }
                                                                              },
                                                                              "Get Direction"
                                                                          )
                                                                      )
                                                              ),
                                                              "false" === localStorage.getItem("hideCustomerDetailsFromStoreOwner") &&
                                                                  s.a.createElement("a", { className: "singleOrderCustomerCallBtn", href: "tel:" + a.user.phone }, s.a.createElement("i", { className: "si si-phone" })),
                                                                //   1 === a.third_party_delivery_id && 0 === a.is_third_party_reassign && 
                                                                //   s.a.createElement(
                                                                //     "div",
                                                                //     { className: "p-3" },
                                                                //         s.a.createElement("p", { className: "font-w700 mb-2" }, "Delivery Details"),
                                                                //         s.a.createElement("p", { className: "mb-1" }, localStorage.getItem("orderPage_customerName"), ": ", a.delivery_name),
                                                                //         1 === a.third_party_delivery_id && 0 === a.is_third_party_reassign &&
                                                                //             s.a.createElement(
                                                                //                 s.a.Fragment,
                                                                //                 null,
                                                                //                 s.a.createElement("p", { className: "mb-1" }, localStorage.getItem("orderPage_customerPhone"), ":", " ", a.delivery_phone)
                                                                //             )
                                                                //     ),
                                                          ),
                                                          null !== a.order_comment && s.a.createElement("div", { className: "custom-card mx-15 mt-15 bg-white position-relative p-3 singleOrder-orderComment" }, a.order_comment),
                                                          s.a.createElement(
                                                              "div",
                                                              { className: "custom-card mx-15 mt-15 bg-white position-relative" },
                                                              s.a.createElement(
                                                                  "div",
                                                                  { className: "p-3" },
                                                                  s.a.createElement("p", { className: "font-w700 mb-3" }, localStorage.getItem("orderPage_itemDetailsTitle")),
                                                                  a.orderitems.map(function (e) {
                                                                      return s.a.createElement(p, { item: e, key: e.id });
                                                                  })
                                                              )
                                                          ),
                                                          s.a.createElement(
                                                              "div",
                                                              { className: "custom-card mx-15 mt-15 bg-white position-relative p-3 delivery-charge-subtotal-section" },
                                                              s.a.createElement(
                                                                  "div",
                                                                  { className: "d-flex justify-content-between mb-1 subtotal-section" },
                                                                  s.a.createElement("div", null, localStorage.getItem("orderPage_subtotal")),
                                                                  s.a.createElement("div", null, localStorage.getItem("currencyFormat"), a.sub_total)
                                                              ),
                                                              null !== a.coupon_name &&
                                                                  s.a.createElement(
                                                                      "div",
                                                                      { className: "d-flex justify-content-between mb-1 coupon-name-section" },
                                                                      s.a.createElement("div", null, localStorage.getItem("orderPage_coupon")),
                                                                      s.a.createElement("div", null, a.coupon_name)
                                                                  ),
                                                              null !== a.restaurant_charge &&
                                                                  s.a.createElement(
                                                                      "div",
                                                                      { className: "d-flex justify-content-between mb-1 store-charges-section" },
                                                                      s.a.createElement("div", null, localStorage.getItem("orderPage_storeCharge")),
                                                                      s.a.createElement("div", null, s.a.createElement(s.a.Fragment, null, localStorage.getItem("currencyFormat"), a.restaurant_charge))
                                                                  ),
                                                              null !== a.delivery_charge &&
                                                                  s.a.createElement(
                                                                      "div",
                                                                      { className: "d-flex justify-content-between mb-1 delivery-charge-section" },
                                                                      s.a.createElement("div", null, localStorage.getItem("orderPage_deliveryCharge")),
                                                                      s.a.createElement("div", null, s.a.createElement(s.a.Fragment, null, localStorage.getItem("currencyFormat"), a.delivery_charge))
                                                                  ),
                                                              null !== a.tax &&
                                                                  s.a.createElement(
                                                                      "div",
                                                                      { className: "d-flex justify-content-between mb-1 order-tax-section" },
                                                                      s.a.createElement("div", null, localStorage.getItem("orderPage_Tax")),
                                                                      s.a.createElement("div", null, s.a.createElement(s.a.Fragment, null, localStorage.getItem("currencyFormat"), a.tax))
                                                                  ),
                                                              null !== a.wallet_amount &&
                                                                  s.a.createElement(
                                                                      "div",
                                                                      { className: "d-flex justify-content-between mb-1 wallet-amount-section" },
                                                                      s.a.createElement("div", null, localStorage.getItem("orderPage_walletAmount")),
                                                                      s.a.createElement("div", null, s.a.createElement(s.a.Fragment, null, localStorage.getItem("currencyFormat"), a.wallet_amount))
                                                                  )
                                                          ),
                                                          s.a.createElement(
                                                              "div",
                                                              { className: "custom-card mx-15 mt-15 bg-white position-relative mb-20 order-total-section" },
                                                              s.a.createElement(
                                                                  "div",
                                                                  { className: "d-flex justify-content-between p-3" },
                                                                  s.a.createElement("div", { className: "font-w700" }, localStorage.getItem("orderPage_Total")),
                                                                  s.a.createElement("div", { className: "font-w700" }, s.a.createElement(s.a.Fragment, null, localStorage.getItem("currencyFormat"), a.total))
                                                              )
                                                          ),
                                                          1 === a.orderstatus_id &&
                                                              s.a.createElement(
                                                                  "div",
                                                                  { className: "delivery-action" },
                                                                  s.a.createElement(v, {
                                                                      text: localStorage.getItem("orderPage_acceptOrder"),
                                                                      color: localStorage.getItem("storeAppPrimaryColor"),
                                                                      onSuccess: this.__acceptOrder,
                                                                      reset: this.state.reset,
                                                                  })
                                                              ),
                                                          10 === a.orderstatus_id &&
                                                              s.a.createElement(
                                                                  "div",
                                                                  { className: "delivery-action" },
                                                                  s.a.createElement(v, {
                                                                      text: localStorage.getItem("orderPage_confirmScheduledOrder"),
                                                                      color: localStorage.getItem("storeAppPrimaryColor"),
                                                                      onSuccess: this.__confirmScheduledOrder,
                                                                      reset: this.state.reset,
                                                                  })
                                                              ),
                                                          2 === a.orderstatus_id &&
                                                              2 === a.delivery_type &&
                                                              s.a.createElement(
                                                                  "div",
                                                                  { className: "delivery-action" },
                                                                  s.a.createElement(v, {
                                                                      text: localStorage.getItem("orderPage_markAsReady"),
                                                                      color: localStorage.getItem("storeAppPrimaryColor"),
                                                                      onSuccess: this.__markSelfpickupAsReady,
                                                                      reset: this.state.reset,
                                                                  })
                                                              ),
                                                          7 === a.orderstatus_id &&
                                                              2 === a.delivery_type &&
                                                              s.a.createElement(
                                                                  "div",
                                                                  { className: "delivery-action" },
                                                                  s.a.createElement(v, {
                                                                      text: localStorage.getItem("orderPage_markAsCompleted"),
                                                                      color: localStorage.getItem("storeAppPrimaryColor"),
                                                                      onSuccess: this.__markSelfpickupAsCompleted,
                                                                      reset: this.state.reset,
                                                                  })
                                                              ),
                                                          s.a.createElement(
                                                              s.a.Fragment,
                                                              null,
                                                              s.a.createElement(
                                                                  "div",
                                                                  { className: "d-flex justify-content-center align-items-center mb-100 mt-30" },
                                                                  1 === a.orderstatus_id &&
                                                                      s.a.createElement(
                                                                          s.a.Fragment,
                                                                          null,
                                                                          s.a.createElement(
                                                                              "button",
                                                                              {
                                                                                  className: "btn btn-lg singleOrderCancelBtn position-relative ".concat("true" === localStorage.getItem("printer_enable_thermal_printer") && "mr-4"),
                                                                                  onClick: this.openCancelConfirmationDialog,
                                                                              },
                                                                              localStorage.getItem("orderPage_cancelOrder"),
                                                                              s.a.createElement(b.a, { duration: "500", hasTouch: "true" })
                                                                          ),
                                                                          s.a.createElement(
                                                                              _.a,
                                                                              {
                                                                                  fullWidth: !0,
                                                                                  fullScreen: !1,
                                                                                  open: this.state.cancelConfirmationOpen,
                                                                                  onClose: this.closeCancelConfirmationDialog,
                                                                                  style: { width: "100%", margin: "auto" },
                                                                                  PaperProps: { style: { backgroundColor: "#fff", borderRadius: "4px" } },
                                                                              },
                                                                              s.a.createElement(
                                                                                  "div",
                                                                                  { className: "container", style: { borderRadius: "5px" } },
                                                                                  s.a.createElement(
                                                                                      s.a.Fragment,
                                                                                      null,
                                                                                      s.a.createElement(
                                                                                          "div",
                                                                                          { className: "col-12 py-3" },
                                                                                          s.a.createElement("h1", { className: "mt-2 mb-2 font-weight-black h4 text-center" }, localStorage.getItem("generalText_confirmation")),
                                                                                          s.a.createElement("hr", null),
                                                                                          s.a.createElement("p", { className: "mb-1 text-center" }, localStorage.getItem("orderPage_cancelOrderMessage"))
                                                                                      ),
                                                                                      s.a.createElement(
                                                                                          "div",
                                                                                          { className: "d-flex justify-content-around align-items-center mb-20 mt-10" },
                                                                                          s.a.createElement(
                                                                                              "button",
                                                                                              { className: "btn btn-md btn-default cancelOrderDialogBtn", onClick: this.closeCancelConfirmationDialog },
                                                                                              localStorage.getItem("orderPage_dontCancelButton")
                                                                                          ),
                                                                                          s.a.createElement(
                                                                                              "button",
                                                                                              { className: "btn btn-md btn-danger cancelOrderDialogBtn", onClick: this.__cancelOrder },
                                                                                              localStorage.getItem("orderPage_cancelOrder")
                                                                                          )
                                                                                      )
                                                                                  )
                                                                              )
                                                                          )
                                                                      ),
                                                                  2 === a.orderstatus_id && 0 === a.is_third_party_delivery &&
                                                                      s.a.createElement(
                                                                          s.a.Fragment,
                                                                          null,
                                                                          s.a.createElement(
                                                                              "button",
                                                                              {
                                                                                  className: "btn btn-lg singleOrderCancelBtn position-relative ".concat("true" === localStorage.getItem("printer_enable_thermal_printer") && "mr-4"),
                                                                                  onClick: this.openOrderReadyConfirmationDialog,
                                                                              },
                                                                              "Order Ready",
                                                                              s.a.createElement(b.a, { duration: "500", hasTouch: "true" })
                                                                          ),
                                                                          s.a.createElement(
                                                                              _.a,
                                                                              {
                                                                                  fullWidth: !0,
                                                                                  fullScreen: !1,
                                                                                  open: this.state.orderReadyConfirmationOpen,
                                                                                  onClose: this.closeOrderReadyConfirmationDialog,
                                                                                  style: { width: "100%", margin: "auto" },
                                                                                  PaperProps: { style: { backgroundColor: "#fff", borderRadius: "4px" } },
                                                                              },
                                                                              s.a.createElement(
                                                                                  "div",
                                                                                  { className: "container", style: { borderRadius: "5px" } },
                                                                                  s.a.createElement(
                                                                                      s.a.Fragment,
                                                                                      null,
                                                                                      s.a.createElement(
                                                                                          "div",
                                                                                          { className: "col-12 py-3" },
                                                                                          s.a.createElement("h1", { className: "mt-2 mb-2 font-weight-black h4 text-center" }, localStorage.getItem("generalText_confirmation")),
                                                                                          s.a.createElement("hr", null),
                                                                                          s.a.createElement("p", { className: "mb-1 text-center" }, "Are you sure you want to make order ready?")
                                                                                      ),
                                                                                      s.a.createElement(
                                                                                          "div",
                                                                                          { className: "d-flex justify-content-around align-items-center mb-20 mt-10" },
                                                                                          s.a.createElement(
                                                                                              "button",
                                                                                              { className: "btn btn-md btn-default cancelOrderDialogBtn", onClick: this.closeOrderReadyConfirmationDialog },
                                                                                              "Not yet"
                                                                                          ),
                                                                                          s.a.createElement(
                                                                                              "button",
                                                                                              { className: "btn btn-md btn-danger cancelOrderDialogBtn", onClick: this.__markSelfpickupAsReady },
                                                                                              "Yes, Order Ready"
                                                                                          )
                                                                                      )
                                                                                  )
                                                                              )
                                                                          )
                                                                      ),
                                                                      1 === a.is_third_party_delivery && 1 === a.is_third_party_reassign &&
                                                                      s.a.createElement(
                                                                          s.a.Fragment,
                                                                          null,
                                                                          s.a.createElement(
                                                                              "button",
                                                                              {
                                                                                  className: "btn btn-lg singleOrderCancelBtn position-relative ".concat("true" === localStorage.getItem("printer_enable_thermal_printer") && "mr-4"),
                                                                                  onClick: this.openOrderReadyConfirmationDialog,
                                                                              },
                                                                              "Order Ready",
                                                                              s.a.createElement(b.a, { duration: "500", hasTouch: "true" })
                                                                          ),
                                                                          s.a.createElement(
                                                                              _.a,
                                                                              {
                                                                                  fullWidth: !0,
                                                                                  fullScreen: !1,
                                                                                  open: this.state.orderReadyConfirmationOpen,
                                                                                  onClose: this.closeOrderReadyConfirmationDialog,
                                                                                  style: { width: "100%", margin: "auto" },
                                                                                  PaperProps: { style: { backgroundColor: "#fff", borderRadius: "4px" } },
                                                                              },
                                                                              s.a.createElement(
                                                                                  "div",
                                                                                  { className: "container", style: { borderRadius: "5px" } },
                                                                                  s.a.createElement(
                                                                                      s.a.Fragment,
                                                                                      null,
                                                                                      s.a.createElement(
                                                                                          "div",
                                                                                          { className: "col-12 py-3" },
                                                                                          s.a.createElement("h1", { className: "mt-2 mb-2 font-weight-black h4 text-center" }, localStorage.getItem("generalText_confirmation")),
                                                                                          s.a.createElement("hr", null),
                                                                                          s.a.createElement("p", { className: "mb-1 text-center" }, "Are you sure you want to make order ready?")
                                                                                      ),
                                                                                      s.a.createElement(
                                                                                          "div",
                                                                                          { className: "d-flex justify-content-around align-items-center mb-20 mt-10" },
                                                                                          s.a.createElement(
                                                                                              "button",
                                                                                              { className: "btn btn-md btn-default cancelOrderDialogBtn", onClick: this.closeOrderReadyConfirmationDialog },
                                                                                              "Not yet"
                                                                                          ),
                                                                                          s.a.createElement(
                                                                                              "button",
                                                                                              { className: "btn btn-md btn-danger cancelOrderDialogBtn", onClick: this.__markSelfpickupAsReady },
                                                                                              "Yes, Order Ready"
                                                                                          )
                                                                                      )
                                                                                  )
                                                                              )
                                                                          )
                                                                      ),
                                                              )
                                                          ),
                                                          s.a.createElement("div", { className: "mb-100" })
                                                      )
                                              )
                                          )
                                        : s.a.createElement(E.a, { to: "/login" });
                                },
                            },
                        ]),
                        t
                    );
                })(c.Component);
            w.contextTypes = {
                router: function () {
                    return null;
                },
            };
            t.default = Object(d.b)(
                function (e) {
                    return { user: e.user.user, single_order: e.single_order.single_order };
                },
                { getSingleOrder: u.d, removeSingleOrderFromState: u.g, cancelOrder: u.b, acceptOrder: u.a, markSelfpickupAsReady: u.f, markSelfpickupAsCompleted: u.e, confirmScheduledOrder: u.c }
            )(w);
        },
        46: function (e, t, a) {
            "use strict";
            var r = a(0),
                n = a.n(r),
                o = a(2),
                i = a.n(o),
                l = a(9),
                c = a.n(l),
                s = a(10),
                d = a.n(s),
                u = a(44),
                m = a(59),
                p = a.n(m),
                g = {},
                h = 0,
                f = function () {
                    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "/",
                        t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
                    return "/" === e
                        ? e
                        : (function (e) {
                              var t = e,
                                  a = g[t] || (g[t] = {});
                              if (a[e]) return a[e];
                              var r = p.a.compile(e);
                              return h < 1e4 && ((a[e] = r), h++), r;
                          })(e)(t, { pretty: !0 });
                },
                v =
                    Object.assign ||
                    function (e) {
                        for (var t = 1; t < arguments.length; t++) {
                            var a = arguments[t];
                            for (var r in a) Object.prototype.hasOwnProperty.call(a, r) && (e[r] = a[r]);
                        }
                        return e;
                    };
            var y = (function (e) {
                function t() {
                    return (
                        (function (e, t) {
                            if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
                        })(this, t),
                        (function (e, t) {
                            if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
                            return !t || ("object" !== typeof t && "function" !== typeof t) ? e : t;
                        })(this, e.apply(this, arguments))
                    );
                }
                return (
                    (function (e, t) {
                        if ("function" !== typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
                        (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t));
                    })(t, e),
                    (t.prototype.isStatic = function () {
                        return this.context.router && this.context.router.staticContext;
                    }),
                    (t.prototype.componentWillMount = function () {
                        d()(this.context.router, "You should not use <Redirect> outside a <Router>"), this.isStatic() && this.perform();
                    }),
                    (t.prototype.componentDidMount = function () {
                        this.isStatic() || this.perform();
                    }),
                    (t.prototype.componentDidUpdate = function (e) {
                        var t = Object(u.b)(e.to),
                            a = Object(u.b)(this.props.to);
                        Object(u.c)(t, a) ? c()(!1, "You tried to redirect to the same route you're currently on: \"" + a.pathname + a.search + '"') : this.perform();
                    }),
                    (t.prototype.computeTo = function (e) {
                        var t = e.computedMatch,
                            a = e.to;
                        return t ? ("string" === typeof a ? f(a, t.params) : v({}, a, { pathname: f(a.pathname, t.params) })) : a;
                    }),
                    (t.prototype.perform = function () {
                        var e = this.context.router.history,
                            t = this.props.push,
                            a = this.computeTo(this.props);
                        t ? e.push(a) : e.replace(a);
                    }),
                    (t.prototype.render = function () {
                        return null;
                    }),
                    t
                );
            })(n.a.Component);
            (y.propTypes = { computedMatch: i.a.object, push: i.a.bool, from: i.a.string, to: i.a.oneOfType([i.a.string, i.a.object]).isRequired }),
                (y.defaultProps = { push: !1 }),
                (y.contextTypes = { router: i.a.shape({ history: i.a.shape({ push: i.a.func.isRequired, replace: i.a.func.isRequired }).isRequired, staticContext: i.a.object }).isRequired });
            t.a = y;
        },
    },
]);
