Files
klz-cables.com/.pnpm-store/v10/files/d9/4789bfb3f1b28dbb88b6d0ff38172dea2ab78791f6c3ca4703f6af1ee47ab56bcc6c917b9db4b5122e6a8fff46bd89997a02947a1dcb4adfaaf9fc467248b8
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

61 lines
1.3 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import { useNav } from '@payloadcms/ui';
import React from 'react';
/**
* @internal
*/
export const NavWrapper = props => {
const $ = _c(11);
const {
baseClass,
children
} = props;
const {
hydrated,
navOpen,
navRef,
shouldAnimate
} = useNav();
const t0 = navOpen && `${baseClass}--nav-open`;
const t1 = shouldAnimate && `${baseClass}--nav-animate`;
const t2 = hydrated && `${baseClass}--nav-hydrated`;
let t3;
if ($[0] !== baseClass || $[1] !== t0 || $[2] !== t1 || $[3] !== t2) {
t3 = [baseClass, t0, t1, t2].filter(Boolean);
$[0] = baseClass;
$[1] = t0;
$[2] = t1;
$[3] = t2;
$[4] = t3;
} else {
t3 = $[4];
}
const t4 = t3.join(" ");
const t5 = !navOpen ? true : undefined;
const t6 = `${baseClass}__scroll`;
let t7;
if ($[5] !== children || $[6] !== navRef || $[7] !== t4 || $[8] !== t5 || $[9] !== t6) {
t7 = _jsx("aside", {
className: t4,
inert: t5,
children: _jsx("div", {
className: t6,
ref: navRef,
children
})
});
$[5] = children;
$[6] = navRef;
$[7] = t4;
$[8] = t5;
$[9] = t6;
$[10] = t7;
} else {
t7 = $[10];
}
return t7;
};
//# sourceMappingURL=index.js.map