Files
klz-cables.com/.pnpm-store/v10/files/9e/9c165f550532bbbdc760b482301f8c245bff958d3c877ae6ae89729389a4c25750c4f5001683628812ea9bdeafeb4022bb96110c1082eabcbca7dd46b2bdd5
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

45 lines
1.2 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Pill, useTranslation } from '@payloadcms/ui';
import React from 'react';
import { VersionPillLabel } from '../../../Version/VersionPillLabel/VersionPillLabel.js';
const baseClass = 'autosave-cell';
export const AutosaveCell = t0 => {
const $ = _c(5);
const {
currentlyPublishedVersion,
latestDraftVersion,
rowData
} = t0;
const {
t
} = useTranslation();
let t1;
if ($[0] !== currentlyPublishedVersion || $[1] !== latestDraftVersion || $[2] !== rowData || $[3] !== t) {
t1 = _jsxs("div", {
className: `${baseClass}__items`,
children: [rowData?.autosave && _jsx(Pill, {
size: "small",
children: t("version:autosave")
}), _jsx(VersionPillLabel, {
currentlyPublishedVersion,
disableDate: true,
doc: rowData,
labelFirst: false,
labelStyle: "pill",
latestDraftVersion
})]
});
$[0] = currentlyPublishedVersion;
$[1] = latestDraftVersion;
$[2] = rowData;
$[3] = t;
$[4] = t1;
} else {
t1 = $[4];
}
return t1;
};
//# sourceMappingURL=index.js.map