Files
klz-cables.com/.pnpm-store/v10/files/d6/0fa328661da3a0ebae6130ca737b39b745da31b072a9d6b83aa6f2ac89418edbb25f67cf918baaec5d4e303689ff9cc24f99a5c5f7afd7d26d03148bae8c27
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.7 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { getTranslation } from '@payloadcms/translations';
import React from 'react';
import { ChevronIcon } from '../../../icons/Chevron/index.js';
import { useLocale } from '../../../providers/Locale/index.js';
import { useTranslation } from '../../../providers/Translation/index.js';
import './index.scss';
const baseClass = 'localizer-button';
export const LocalizerLabel = props => {
const $ = _c(8);
const {
ariaLabel,
className
} = props;
const locale = useLocale();
const {
i18n,
t
} = useTranslation();
let t0;
if ($[0] !== ariaLabel || $[1] !== className || $[2] !== i18n || $[3] !== locale || $[4] !== t) {
let t1;
if ($[6] !== className) {
t1 = [baseClass, className].filter(Boolean);
$[6] = className;
$[7] = t1;
} else {
t1 = $[7];
}
t0 = _jsxs("div", {
"aria-label": ariaLabel || t("general:locale"),
className: t1.join(" "),
"data-locale": locale ? locale.code : undefined,
children: [_jsxs("div", {
className: `${baseClass}__label`,
children: [`${t("general:locale")}:`, "\xA0"]
}), _jsxs("div", {
className: `${baseClass}__current`,
children: [_jsx("span", {
className: `${baseClass}__current-label`,
children: `${getTranslation(locale.label, i18n)}`
}), _jsx(ChevronIcon, {
className: `${baseClass}__chevron`
})]
})]
});
$[0] = ariaLabel;
$[1] = className;
$[2] = i18n;
$[3] = locale;
$[4] = t;
$[5] = t0;
} else {
t0 = $[5];
}
return t0;
};
//# sourceMappingURL=index.js.map