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

76 lines
2.1 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import { useListDrawerContext } from '../../../elements/ListDrawer/Provider.js';
import { DefaultCell } from '../../../elements/Table/DefaultCell/index.js';
import { useTableColumns } from '../../../providers/TableColumns/index.js';
import './index.scss';
const baseClass = 'default-cell';
const CellPropsContext = /*#__PURE__*/React.createContext(null);
export const useCellProps = () => React.use(CellPropsContext);
export const RenderDefaultCell = t0 => {
const $ = _c(9);
const {
clientProps,
columnIndex,
isLinkedColumn
} = t0;
const {
drawerSlug,
onSelect
} = useListDrawerContext();
const {
LinkedCellOverride
} = useTableColumns();
let t1;
if ($[0] !== LinkedCellOverride || $[1] !== clientProps || $[2] !== columnIndex || $[3] !== drawerSlug || $[4] !== isLinkedColumn || $[5] !== onSelect) {
const propsToPass = {
...clientProps,
columnIndex
};
if (isLinkedColumn && drawerSlug) {
propsToPass.className = `${baseClass}__first-cell`;
propsToPass.link = false;
let t2;
if ($[7] !== onSelect) {
t2 = t3 => {
const {
collectionSlug: rowColl,
rowData
} = t3;
if (typeof onSelect === "function") {
onSelect({
collectionSlug: rowColl,
doc: rowData,
docID: rowData.id
});
}
};
$[7] = onSelect;
$[8] = t2;
} else {
t2 = $[8];
}
propsToPass.onClick = t2;
}
t1 = _jsx(CellPropsContext, {
value: propsToPass,
children: isLinkedColumn && LinkedCellOverride ? LinkedCellOverride : _jsx(DefaultCell, {
...propsToPass
})
});
$[0] = LinkedCellOverride;
$[1] = clientProps;
$[2] = columnIndex;
$[3] = drawerSlug;
$[4] = isLinkedColumn;
$[5] = onSelect;
$[6] = t1;
} else {
t1 = $[6];
}
return t1;
};
//# sourceMappingURL=index.js.map