(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
    [8649], {
        60249: function(e, r, n) {
            "use strict";
            var t, i, a = this && this.__makeTemplateObject || function(e, r) {
                    return Object.defineProperty ? Object.defineProperty(e, "raw", {
                        value: r
                    }) : e.raw = r, e
                },
                o = this && this.__createBinding || (Object.create ? function(e, r, n, t) {
                    void 0 === t && (t = n), Object.defineProperty(e, t, {
                        enumerable: !0,
                        get: function() {
                            return r[n]
                        }
                    })
                } : function(e, r, n, t) {
                    void 0 === t && (t = n), e[t] = r[n]
                }),
                l = this && this.__setModuleDefault || (Object.create ? function(e, r) {
                    Object.defineProperty(e, "default", {
                        enumerable: !0,
                        value: r
                    })
                } : function(e, r) {
                    e.default = r
                }),
                s = this && this.__importStar || function(e) {
                    if (e && e.__esModule) return e;
                    var r = {};
                    if (null != e)
                        for (var n in e) "default" !== n && Object.prototype.hasOwnProperty.call(e, n) && o(r, e, n);
                    return l(r, e), r
                },
                d = this && this.__importDefault || function(e) {
                    return e && e.__esModule ? e : {
                        default: e
                    }
                };
            Object.defineProperty(r, "__esModule", {
                value: !0
            }), r.Quarter = r.Thirds = r.FullToHalf = r.FullWidth = r.GridSpan = r.GridWrap = void 0;
            var c = s(n(67294)),
                u = d(n(31666)),
                f = n(76446),
                p = f.OMGTheme.breakpoints;
            r.GridWrap = u.default.div(t || (t = a(["\n  display: grid;\n  grid-template-columns: repeat(2, 1fr); // xs\n  min-width: ", ";\n  column-gap: 24px;\n  margin: 0 ", ";\n  @media (min-width: ", ") { //sm\n    display: grid;\n    grid-template-columns: repeat(6, 1fr);\n  }\n  @media (min-width: ", ") { //md\n    display: grid;\n    grid-template-columns: repeat(12, 1fr);\n    column-gap: 16px;\n  }\n  @media (min-width: ", ") { //lg\n    display: grid;\n    grid-template-columns: repeat(12, 1fr);\n    column-gap: 32px;\n  }\n  @media (min-width: ", ") { //xl\n    margin: 0 auto;\n    max-width: ", ";\n  }\n"], ["\n  display: grid;\n  grid-template-columns: repeat(2, 1fr); // xs\n  min-width: ", ";\n  column-gap: 24px;\n  margin: 0 ", ";\n  @media (min-width: ", ") { //sm\n    display: grid;\n    grid-template-columns: repeat(6, 1fr);\n  }\n  @media (min-width: ", ") { //md\n    display: grid;\n    grid-template-columns: repeat(12, 1fr);\n    column-gap: 16px;\n  }\n  @media (min-width: ", ") { //lg\n    display: grid;\n    grid-template-columns: repeat(12, 1fr);\n    column-gap: 32px;\n  }\n  @media (min-width: ", ") { //xl\n    margin: 0 auto;\n    max-width: ", ";\n  }\n"])), p.xs, f.OMGTheme.gridGutter, p.sm, p.md, p.lg, p.xl, p.xl);
            var m = function(e) {
                var r = "";
                return e.xs && (r += "grid-column: span " + e.xs + ";"), e.sm && (r += "@media (min-width: " + p.sm + ") { grid-column: span " + e.sm + "; }"), e.md && (r += "@media (min-width: " + p.md + ") { grid-column: span " + e.md + "; }"), e.lg && (r += "@media (min-width: " + p.lg + ") { grid-column: span " + e.lg + "; }"), e.xl && (r += "@media (min-width: " + p.xl + ") { grid-column: span " + e.xl + "; }"), r
            };
            r.GridSpan = u.default.div(i || (i = a(["\n  ", "\n"], ["\n  ", "\n"])), function(e) {
                return m(e)
            });
            var g = function(e) {
                var n = e.children;
                return c.createElement(r.GridSpan, {
                    xs: "2",
                    sm: "6",
                    md: "12",
                    lg: "12"
                }, n)
            };
            r.FullWidth = g;
            var v = function(e) {
                var n = e.children;
                return c.createElement(r.GridSpan, {
                    xs: "2",
                    sm: "3",
                    md: "6"
                }, n)
            };
            r.FullToHalf = v;
            var h = function(e) {
                var n = e.children;
                return c.createElement(r.GridSpan, {
                    xs: "2",
                    sm: "2",
                    md: "4"
                }, n)
            };
            r.Thirds = h;
            var y = function(e) {
                var n = e.children;
                return c.createElement(r.GridSpan, {
                    xs: "2",
                    sm: "6",
                    md: "3"
                }, n)
            };
            r.Quarter = y
        },
        21018: function(e, r, n) {
            "use strict";
            Object.defineProperty(r, "__esModule", {
                value: !0
            }), r.colors = void 0;
            var t = n(66489);
            r.colors = {
                gearGreen: t.palette.primary.primary,
                gearGreenHover: t.palette.primary.hover,
                gearGreenDisabled: t.palette.primary.disabled,
                slate: t.palette.secondary.slate,
                slateHover: t.palette.secondary.slateHover,
                slateDisabled: t.palette.secondary.slateDisabled,
                slateTertiary: t.palette.secondary.tertiaryActive,
                textMain: t.palette.monochrome.mainText,
                textInput: "#807F7F",
                textPlaceholder: t.palette.monochrome.inputPlaceholder,
                inputBg: t.palette.monochrome.inputBackground,
                greyBorder: t.palette.secondary.border,
                greyDivider: t.palette.secondary.divider,
                greyBackground: "#FCFCFC",
                stateHighlight: t.palette.monochrome[300],
                stateSuccess: t.palette.primary.success,
                stateSuccessBg: t.palette.primary.successBackground,
                stateError: t.palette.signifier.error.error,
                stateErrorHover: t.palette.signifier.error.errorHover,
                stateErrorBg: t.palette.signifier.error.background,
                stateWarning: t.palette.signifier.warning.warning,
                stateWarningBg: t.palette.signifier.warning.background,
                stateWarningHover: t.palette.signifier.warning.warningHover,
                stateInfo: t.palette.signifier.informational.informational,
                stateInfoHover: t.palette.signifier.informational.informationalHover,
                stateInfoBg: t.palette.signifier.informational.background,
                white: t.palette.monochrome.white,
                coral: t.palette.signifier.error.coral,
                primary: t.palette.primary.primary,
                primaryHover: t.palette.primary.hover,
                primaryDisable: t.palette.primary.disabled,
                secondary: t.palette.secondary.slate,
                secondaryHover: t.palette.secondary.slateHover,
                secondaryDisable: t.palette.secondary.slateDisabled,
                alert: t.palette.signifier.error.error,
                alertDisable: t.palette.signifier.error[100],
                info: t.palette.signifier.informational.informational,
                infoDisable: t.palette.signifier.informational[100],
                warning: t.palette.signifier.warning.warning,
                warningDisable: t.palette.signifier.warning[100],
                darkGray: "#2a2e39",
                textGray: t.palette.monochrome[700],
                inputGray: t.palette.monochrome.inputPlaceholder,
                containerGray: "#BECAD6",
                lineGray: "#EAEDF3",
                backgroundGray: "#FCFCFC"
            }
        },
        76446: function(e, r, n) {
            "use strict";
            Object.defineProperty(r, "__esModule", {
                value: !0
            }), r.getPillColor = r.getPillTextColor = r.adjustHexOpacity = r.OMGTheme = void 0;
            var t = n(27209);
            Object.defineProperty(r, "adjustHexOpacity", {
                enumerable: !0,
                get: function() {
                    return t.adjustHexOpacity
                }
            }), Object.defineProperty(r, "getPillTextColor", {
                enumerable: !0,
                get: function() {
                    return t.getPillTextColor
                }
            }), Object.defineProperty(r, "getPillColor", {
                enumerable: !0,
                get: function() {
                    return t.getPillColor
                }
            });
            var i = n(21018),
                a = n(66489);
            r.OMGTheme = {
                colors: i.colors,
                palette: a.palette,
                bodyBg: i.colors.greyBackground,
                bodyColor: i.colors.textMain,
                border: "1px solid " + i.colors.greyBorder,
                breakpoints: {
                    xs: "375px",
                    sm: "768px",
                    md: "1024px",
                    lg: "1440px",
                    xl: "1680px",
                    navCustomBreak: "1150px"
                },
                gridGutter: "1rem",
                fontColorBase: i.colors.textMain,
                fontFamilyBase: '"Avenir Next", Montserrat, Sans-Serif',
                fontFamilySerif: 'Georgia, "Times New Roman", Times, serif',
                fontFamilyMonospace: 'Menlo, Monaco, Consolas, "Courier New", monospace',
                fontSizeRoot: "16px",
                fontSizeBase: "1em",
                secondaryFontFamily: '"Avenir Next", Montserrat, Sans-Serif',
                lineHight: "1.3",
                linkColor: i.colors.stateInfo,
                linkDecoration: "underline",
                linkHoverColor: "#005bbd",
                linkHoverDecoration: "underline",
                states: {
                    error: i.colors.stateError,
                    highlight: i.colors.stateHighlight,
                    info: i.colors.stateInfo,
                    success: i.colors.stateSuccess,
                    warning: i.colors.stateWarning
                }
            }
        },
        66489: function(e, r) {
            "use strict";
            var n = this && this.__assign || function() {
                return (n = Object.assign || function(e) {
                    for (var r, n = 1, t = arguments.length; n < t; n++)
                        for (var i in r = arguments[n]) Object.prototype.hasOwnProperty.call(r, i) && (e[i] = r[i]);
                    return e
                }).apply(this, arguments)
            };
            Object.defineProperty(r, "__esModule", {
                value: !0
            }), r.palette = void 0;
            var t = {
                    primary: {
                        50: "#f4faf0",
                        100: "#badea2",
                        200: "#9fd37d",
                        300: "#74be43",
                        400: "#5fad2b",
                        500: "#559c26",
                        600: "#498521",
                        700: "#397015",
                        800: "#325917",
                        900: "#284514"
                    },
                    secondary: {
                        50: "#f1f3f7",
                        100: "#E8ECF2",
                        200: "#b4bac7",
                        300: "#959dad",
                        400: "#838b9c",
                        500: "#727a8b",
                        600: "#606778",
                        700: "#4c5262",
                        800: "#353a48",
                        900: "#212530"
                    },
                    monochrome: {
                        0: "#ffffff",
                        100: "#f8f8f8",
                        200: "#e9e9e9",
                        300: "#d8d8d8",
                        400: "#b5b6b5",
                        500: "#807f7f",
                        600: "#686868",
                        700: "#333333",
                        800: "#171717",
                        1e3: "#000000"
                    },
                    signifier: {
                        error: {
                            50: "#fbebeb",
                            100: "#f3b3a6",
                            200: "#ed8469",
                            300: "#e15c45",
                            400: "#eb2c2a",
                            500: "#ce0404",
                            600: "#b20000",
                            700: "#920c0c",
                            800: "#700000",
                            900: "#580101"
                        },
                        informational: {
                            50: "#f2f8ff",
                            100: "#c5e0ff",
                            200: "#a9d1ff",
                            300: "#8dc2ff",
                            400: "#6db1ff",
                            500: "#3697ff",
                            600: "#007bff",
                            700: "#005bbd",
                            800: "#00438a",
                            900: "#002c5a"
                        },
                        warning: {
                            50: "#fcfaf3",
                            100: "#ffe9ac",
                            200: "#ffe084",
                            300: "#ffd556",
                            400: "#ffc414",
                            500: "#f8b900",
                            600: "#c89600",
                            700: "#9a7400",
                            800: "#694f00",
                            900: "#4b3900"
                        }
                    },
                    accent: {
                        50: "#dfe0ff",
                        100: "#bdbfff",
                        200: "#a4a7ff",
                        300: "#8e8ed6",
                        400: "#7a7eec",
                        500: "#676bdc",
                        600: "#4447b6",
                        700: "#373aa1",
                        800: "#1b1e8b",
                        900: "#020469"
                    }
                },
                i = {
                    primary: {
                        successBackground: t.primary[50],
                        disabled: t.primary[100],
                        primary: t.primary[300],
                        success: t.primary[300],
                        hover: t.primary[500]
                    },
                    secondary: {
                        tertiaryActive: t.secondary[50],
                        highlight: t.secondary[100],
                        tertiaryHover: t.secondary[100],
                        divider: t.secondary[100],
                        border: t.secondary[200],
                        slate: t.secondary[800],
                        slateHover: t.secondary[900],
                        slateDisabled: t.secondary[100]
                    },
                    monochrome: {
                        white: t.monochrome[0],
                        inputBackground: t.monochrome[100],
                        inputPlaceholder: t.monochrome[500],
                        mainText: t.monochrome[700],
                        black: t.monochrome[1e3]
                    },
                    signifier: {
                        error: {
                            background: t.signifier.error[50],
                            coral: t.signifier.error[200],
                            error: t.signifier.error[500],
                            errorHover: t.signifier.error[700]
                        },
                        informational: {
                            background: t.signifier.informational[50],
                            informational: t.signifier.informational[600],
                            informationalHover: t.signifier.informational[700]
                        },
                        warning: {
                            background: t.signifier.warning[50],
                            warning: t.signifier.warning[400],
                            warningHover: t.signifier.warning[500]
                        }
                    },
                    accent: {
                        lightDocumentation: t.accent[200],
                        documentation: t.accent[500]
                    }
                };
            r.palette = {
                primary: n(n({}, t.primary), i.primary),
                secondary: n(n({}, t.secondary), i.secondary),
                monochrome: n(n({}, t.monochrome), i.monochrome),
                accent: n(n({}, t.accent), i.accent),
                signifier: {
                    error: n(n({}, t.signifier.error), i.signifier.error),
                    informational: n(n({}, t.signifier.informational), i.signifier.informational),
                    warning: n(n({}, t.signifier.warning), i.signifier.warning)
                }
            }
        },
        27209: function(e, r) {
            "use strict";

            function n(e, r) {
                var n = parseInt(e.slice(1, 3), 16),
                    t = parseInt(e.slice(3, 5), 16),
                    i = parseInt(e.slice(5, 7), 16);
                return "rgba(" + n + ", " + t + ", " + i + ", " + r + ")"
            }
            Object.defineProperty(r, "__esModule", {
                value: !0
            }), r.getPillTextColor = r.getPillColor = r.adjustHexOpacity = void 0, r.adjustHexOpacity = n;
            var t = "#777474",
                i = "#74BE43",
                a = "#904FE1",
                o = "#F69202",
                l = "#CA1717",
                s = "#FFCC04",
                d = {
                    grey: {
                        background: n(t, .1),
                        text: t
                    },
                    green: {
                        background: n(i, .1),
                        text: i
                    },
                    purple: {
                        background: n(a, .1),
                        text: a
                    },
                    orange: {
                        background: n(o, .1),
                        text: o
                    },
                    red: {
                        background: n(l, .1),
                        text: l
                    },
                    yellow: {
                        background: n(s, .1),
                        text: s
                    },
                    white: {
                        backgound: n("#FFFFFF", .1),
                        text: t
                    }
                };
            r.getPillTextColor = function(e) {
                var r = d[e.color];
                return r ? r.text : e.color
            }, r.getPillColor = function(e) {
                var r = d[e.color];
                return r ? r.background : n(e.color, .1)
            }
        },
        76641: function(e, r, n) {
            (window.__NEXT_P = window.__NEXT_P || []).push(["/category/[category_id]", function() {
                return n(24810)
            }])
        },
        35834: function(e, r, n) {
            "use strict";
            n.d(r, {
                V: function() {
                    return i
                }
            });
            var t, i = function(e) {
                var r, n;
                return null !== (t = null == e ? void 0 : null === (r = e.linked) || void 0 === r ? void 0 : null === (n = r.order_products) || void 0 === n ? void 0 : n.reduce(function(e, r) {
                    return e + r.quantity
                }, 0)) && void 0 !== t ? t : 0
            }
        },
        24810: function(e, r, n) {
            "use strict";
            n.r(r), n.d(r, {
                __N_SSP: function() {
                    return B
                },
                default: function() {
                    return E
                },
                serverSidePropsHandler: function() {
                    return D
                }
            });
            var t, i = n(47568),
                a = n(828),
                o = n(10092),
                l = n(25201),
                s = n(96657),
                d = n(64232),
                c = n(2038),
                u = n(71512),
                f = n(35834),
                p = n(85893),
                m = n(67294),
                g = n(28994),
                v = n(54797),
                h = n(79002),
                y = n(1649),
                b = n(86896),
                x = n(44012),
                _ = n(95321),
                w = n(85551),
                C = n(68096),
                j = n(45509),
                k = n(10136),
                G = n(11163),
                F = n(71969),
                P = n(16460),
                S = n(92177),
                O = n(50520),
                H = function(e) {
                    var r, n, t, i, o, l, s = e.products,
                        d = e.category,
                        c = e.store,
                        u = e.dealer,
                        f = e.subcategories,
                        H = e.cartCount,
                        M = e.categoryNav,
                        B = e.template,
                        D = e.isRedemptionStore,
                        E = e.giftCards,
                        T = e.showKlarna,
                        q = e.codeGroups,
                        N = e.codeGroupCategories,
                        I = e.codeGroupStore,
                        A = (0, G.useRouter)(),
                        Z = A.query,
                        W = (0, b.Z)().formatMessage,
                        R = (0, _.Fg)().theme,
                        V = (0, a.Z)(m.useState(""), 2),
                        z = V[0],
                        K = V[1],
                        Q = (0, a.Z)(m.useState(null), 2),
                        L = Q[0],
                        X = Q[1];
                    (0, m.useEffect)(function() {
                        X(f.find(function(e) {
                            return e.id === Z.subcategory
                        }) || null)
                    }, [Z, f]);
                    var Y = function(e) {
                            X(e);
                            var r = "/category/".concat(Z.category_id, "/").concat(e ? "?subcategory=".concat(e.id) : "");
                            A.push(r, void 0, {
                                shallow: !0
                            })
                        },
                        J = f.filter(function(e) {
                            return e.name.toLowerCase().includes(z.toLowerCase())
                        }).map(function(e) {
                            return {
                                id: e.id,
                                value: e.name
                            }
                        });
                    J.unshift({
                        id: "null",
                        value: W({
                            id: "allCategoryButton",
                            defaultMessage: "All"
                        })
                    });
                    var U = s.filter(function(e) {
                            return !L || e.subcategory_id === L.id
                        }),
                        $ = function(e) {
                            var r, n = e.id;
                            Y(null !== (r = f.find(function(e) {
                                return e.id === n
                            })) && void 0 !== r ? r : null)
                        },
                        ee = f.length > 0,
                        er = ee && f.length < 9,
                        en = ee && f.length >= 9,
                        et = W({
                            id: "searchPlaceholder",
                            defaultMessage: "Filter by subcategory"
                        }),
                        ei = (0, j.bM)(null == c ? void 0 : null === (r = c.payment_method) || void 0 === r ? void 0 : r.hide_prices, D),
                        ea = null === (i = I && (null == I ? void 0 : I.filteredCategoriesNav.filter(function(e) {
                            return e.id === Z.category_id
                        }).length) === 1 && I.codeGroup.id) || void 0 === i || i;
                    return (0, p.jsx)(k.u9, {
                        initialState: B,
                        children: (0, p.jsx)(F.e8, {
                            coupons: E,
                            saleCode: c.sale_code,
                            isCodeGroup: !!(null == q ? void 0 : q.id),
                            products: q ? null == q ? void 0 : null === (n = q.links) || void 0 === n ? void 0 : n.products : [],
                            codeGroupCategories: N,
                            codeGroupStore: I || {},
                            children: (0, p.jsxs)("div", {
                                children: [(0, p.jsx)(S.M, {
                                    sale: c
                                }), (0, p.jsx)(y.I, {}), (0, p.jsx)(g.D, {
                                    dealer: u,
                                    cartCount: void 0 === H ? 0 : H,
                                    categories: M,
                                    store: c,
                                    isRedemptionStore: D,
                                    giftCards: E
                                }), (0, p.jsx)(v.i, {
                                    store: c,
                                    timezone: u.timezone
                                }), (0, p.jsx)(P.hI, {
                                    children: (0, p.jsx)(P.PY, {
                                        children: ea ? (0, p.jsxs)(p.Fragment, {
                                            children: [(0, p.jsxs)(P.Gh, {
                                                children: [(0, p.jsx)(P.gI, {
                                                    children: d
                                                }), er && (0, p.jsxs)(P.qO, {
                                                    "data-testid": "button-container",
                                                    children: [(0, p.jsx)(P._m, {
                                                        color: L ? R.textMain : R.primary,
                                                        onClick: function() {
                                                            return Y(null)
                                                        },
                                                        fill: L ? "transparent" : void 0,
                                                        isActive: null === L,
                                                        "data-testid": "All",
                                                        children: (0, p.jsx)(x.Z, {
                                                            id: "allCategoryButton",
                                                            defaultMessage: "All"
                                                        })
                                                    }), f.map(function(e) {
                                                        var r = (null == L ? void 0 : L.id) === e.id;
                                                        return (0, p.jsx)(P._m, {
                                                            onClick: function() {
                                                                return Y(e)
                                                            },
                                                            color: r ? R.primary : R.textMain,
                                                            fill: r ? void 0 : "transparent",
                                                            isActive: r,
                                                            "data-testid": e.name,
                                                            children: e.name
                                                        }, e.id)
                                                    })]
                                                }), en && (0, p.jsx)(P.eB, {
                                                    "data-testid": "desktop-search-container",
                                                    children: (0, p.jsx)(w.Fj, {
                                                        inputWidth: "100%",
                                                        onSearch: function(e) {
                                                            return K(e.target.value)
                                                        },
                                                        onItemSelect: $,
                                                        placeholder: et,
                                                        items: J,
                                                        searchValue: z,
                                                        value: null !== (o = null == L ? void 0 : L.name) && void 0 !== o ? o : ""
                                                    })
                                                }), ee && (0, p.jsx)(P.Vs, {
                                                    "data-testid": "mobile-search-container",
                                                    children: (0, p.jsx)(w.Fj, {
                                                        inputWidth: "100%",
                                                        onSearch: function(e) {
                                                            return K(e.target.value)
                                                        },
                                                        onItemSelect: $,
                                                        placeholder: et,
                                                        items: J,
                                                        searchValue: z,
                                                        value: null !== (l = null == L ? void 0 : L.name) && void 0 !== l ? l : ""
                                                    })
                                                })]
                                            }), (0, p.jsx)(C.eQ, {
                                                disableCardClick: !1,
                                                saleHidePrices: ei,
                                                products: U,
                                                priceDisplayType: R.priceDisplayType,
                                                priceDisplayKlarna: T && R.priceDisplayKlarna
                                            })]
                                        }) : (0, p.jsx)(O.Z, {
                                            templateExists: (null == B ? void 0 : null === (t = B.template) || void 0 === t ? void 0 : t.id) !== void 0,
                                            type: "category"
                                        })
                                    })
                                }), (0, p.jsx)(h.h, {
                                    dealer: u,
                                    store: c
                                })]
                            })
                        })
                    })
                },
                M = n(99747),
                B = !0,
                D = (t = (0, i.Z)(function(e) {
                    var r, n, t, i, p, m, g, v, h, y, b, x, _, w, C, j, k, G, F, P, S, O, H, B, D, E, T, q, N, I, A, Z;
                    return (0, o.__generator)(this, function(o) {
                        switch (o.label) {
                            case 0:
                                return o.trys.push([0, 3, , 4]), g = null === (r = e.req.session) || void 0 === r ? void 0 : r.sale.id, v = e.req.session.codeGroup, h = null === (n = e.params) || void 0 === n ? void 0 : n.category_id, [4, Promise.all([(0, s.F)(e.req, g), (0, l.iZ)(e.req, g, h), (0, d.D)(e.req, g), (0, c.F)(e.req, g), (0, c.c)(e.req, g)])];
                            case 1:
                                return b = (y = a.Z.apply(void 0, [o.sent(), 5]))[0], x = y[1], _ = y[2], w = y[3], C = y[4], [4, (0, d.R)(e.req, null === (t = null == _ ? void 0 : _.sale_homepage_templates[0]) || void 0 === t ? void 0 : null === (i = t.links) || void 0 === i ? void 0 : i.sale_homepage_component)];
                            case 2:
                                if (j = o.sent(), (k = (0, u.Z)(x)) || (k = (0, u.Z)(b)) || (k = (0, u.Z)(_)) || (k = (0, u.Z)(w))) return [2, k];
                                if (0 === (G = x.products.filter(function(e) {
                                        return !Object.keys(e.bundle).length || !e.bundle.id
                                    })).length) return [2, {
                                    redirect: {
                                        permanent: !1,
                                        destination: "/not_found/"
                                    }
                                }];
                                return F = b.categories.reduce(function(e, r) {
                                    return r.subNav && r.subNav.length > 0 && r.subNav.forEach(function(r) {
                                        e.push({
                                            id: r.id,
                                            name: null == r ? void 0 : r.name,
                                            is_archived: r.is_archived
                                        })
                                    }), e
                                }, []), P = G.reduce(function(e, r) {
                                    return e.add(r.subcategory_id)
                                }, new Set), S = F.filter(function(e) {
                                    return P.has(e.id)
                                }), O = {
                                    template: (null == _ ? void 0 : null === (p = _.sale_homepage_templates) || void 0 === p ? void 0 : p.length) !== 0 ? _.sale_homepage_templates[0] : {},
                                    components: j.sale_homepage_components
                                }, H = 1 === w.payment_methods.length && "redemption" === w.payment_methods[0].payment_method_type, D = (B = !!v) ? null == v ? void 0 : v.filteredProducts.filter(function(e) {
                                    return e.category_id === h
                                }).filter(function(e) {
                                    return !e.bundle.id
                                }) : G, E = B ? v.filteredCategoriesNav : b.categories, T = B ? v.codeGroup : {}, q = B ? E.filter(function(e) {
                                    return e.id === h
                                }).map(function(e) {
                                    return null == e ? void 0 : e.subNav
                                }).flat().filter(Boolean) : S, N = (0, M.R)(H, C.payment_methods, e.req.session.dealer.klarna_enabled, e.req.session.dealer.klarna_all_stores_enabled, !1, e.req.session.sale), [2, {
                                    props: {
                                        store: e.req.session.sale,
                                        dealer: e.req.session.dealer,
                                        products: D,
                                        category: x.products[0].category,
                                        subcategories: q,
                                        cartCount: (0, f.V)(null === (m = e.req.session) || void 0 === m ? void 0 : m.order),
                                        categoryNav: E,
                                        branding: null !== (I = e.req.branding) && void 0 !== I ? I : null,
                                        template: O,
                                        isRedemptionStore: H,
                                        giftCards: e.req.session.giftCards || [],
                                        showKlarna: N,
                                        codeGroups: T,
                                        codeGroupCategories: (null == v ? void 0 : v.codeGroupCategory) || [],
                                        codeGroupStore: null != v ? v : null
                                    }
                                }];
                            case 3:
                                return A = o.sent(), null === (Z = e.req.log) || void 0 === Z || Z.error(A, "Failed to load server props for category page"), [2, {
                                    redirect: {
                                        permanent: !1,
                                        destination: "/_error/"
                                    }
                                }];
                            case 4:
                                return [2]
                        }
                    })
                }), function(e) {
                    return t.apply(this, arguments)
                }),
                E = H
        }
    },
    function(e) {
        e.O(0, [5865, 2740, 6128, 4216, 5551, 8480, 8912, 8096, 5949, 367, 9774, 2888, 179], function() {
            return e(e.s = 76641)
        }), _N_E = e.O()
    }
]);