Files
klz-cables.com/.pnpm-store/v10/files/ed/d1daddfdb0ec69b74d3ac0e52a9e428ddb9b97b2c76a49f5d57a0426c3d5a7dde2de0eb2e9c08ad4c876181a78d9b6d99fc9abbb647023c4946987457544c9
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

52 lines
1.3 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 React from 'react';
import { useTranslation } from '../../providers/Translation/index.js';
import './index.scss';
const baseClass = 'field-description';
export const FieldDescription = props => {
const $ = _c(8);
const {
className,
description,
marginPlacement,
path
} = props;
const {
i18n
} = useTranslation();
if (description) {
const t0 = `field-description-${path?.replace(/\./g, "__")}`;
const t1 = marginPlacement && `${baseClass}--margin-${marginPlacement}`;
let t2;
if ($[0] !== className || $[1] !== t0 || $[2] !== t1) {
t2 = [baseClass, className, t0, t1].filter(Boolean);
$[0] = className;
$[1] = t0;
$[2] = t1;
$[3] = t2;
} else {
t2 = $[3];
}
const t3 = t2.join(" ");
let t4;
if ($[4] !== description || $[5] !== i18n || $[6] !== t3) {
t4 = _jsx("div", {
className: t3,
children: getTranslation(description, i18n)
});
$[4] = description;
$[5] = i18n;
$[6] = t3;
$[7] = t4;
} else {
t4 = $[7];
}
return t4;
}
return null;
};
//# sourceMappingURL=index.js.map