Files
klz-cables.com/.pnpm-store/v10/files/8f/7f59e5c4ef279249ddadfc2c6f03a812e61df0a368dab5dbdff1ba0799720ecc5884e4f62f1bb558b857d29d32618864d5b26302cc4ad6ff6344831f8f535e
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.8 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import { getTranslation } from '@payloadcms/translations';
import { useTranslation } from '@payloadcms/ui';
import React from 'react';
import { useSelectedLocales } from '../../../Default/SelectedLocalesContext.js';
import { DiffCollapser } from '../../DiffCollapser/index.js';
import { RenderVersionFieldsToDiff } from '../../RenderVersionFieldsToDiff.js';
const baseClass = 'collapsible-diff';
export const Collapsible = t0 => {
const $ = _c(8);
const {
baseVersionField,
comparisonValue: valueFrom,
field,
parentIsLocalized,
versionValue: valueTo
} = t0;
const {
i18n
} = useTranslation();
const {
selectedLocales
} = useSelectedLocales();
if (!baseVersionField.fields?.length) {
return null;
}
let t1;
if ($[0] !== baseVersionField.fields || $[1] !== field || $[2] !== i18n || $[3] !== parentIsLocalized || $[4] !== selectedLocales || $[5] !== valueFrom || $[6] !== valueTo) {
t1 = _jsx("div", {
className: baseClass,
children: _jsx(DiffCollapser, {
fields: field.fields,
Label: "label" in field && field.label && typeof field.label !== "function" && _jsx("span", {
children: getTranslation(field.label, i18n)
}),
locales: selectedLocales,
parentIsLocalized: parentIsLocalized || field.localized,
valueFrom,
valueTo,
children: _jsx(RenderVersionFieldsToDiff, {
versionFields: baseVersionField.fields
})
})
});
$[0] = baseVersionField.fields;
$[1] = field;
$[2] = i18n;
$[3] = parentIsLocalized;
$[4] = selectedLocales;
$[5] = valueFrom;
$[6] = valueTo;
$[7] = t1;
} else {
t1 = $[7];
}
return t1;
};
//# sourceMappingURL=index.js.map