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

68 lines
1.8 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import React, { Fragment } from 'react';
import { useDocumentInfo } from '../../providers/DocumentInfo/index.js';
import { useDocumentTitle } from '../../providers/DocumentTitle/index.js';
import { IDLabel } from '../IDLabel/index.js';
import './index.scss';
const baseClass = 'render-title';
export const RenderTitle = props => {
const $ = _c(10);
const {
className,
element: t0,
fallback,
title: titleFromProps
} = props;
const element = t0 === undefined ? "h1" : t0;
const {
id,
isInitializing
} = useDocumentInfo();
const {
title: titleFromContext
} = useDocumentTitle();
const title = titleFromProps || titleFromContext || fallback;
const idAsTitle = title === id;
const Tag = element;
let t1;
if ($[0] !== Tag || $[1] !== className || $[2] !== id || $[3] !== idAsTitle || $[4] !== isInitializing || $[5] !== title) {
const EmptySpace = _jsx(Fragment, {
children: "\xA0"
});
const t2 = idAsTitle && `${baseClass}--has-id`;
let t3;
if ($[7] !== className || $[8] !== t2) {
t3 = [className, baseClass, t2].filter(Boolean);
$[7] = className;
$[8] = t2;
$[9] = t3;
} else {
t3 = $[9];
}
t1 = _jsx(Tag, {
className: t3.join(" "),
"data-doc-id": id,
title,
children: isInitializing ? EmptySpace : _jsx(Fragment, {
children: idAsTitle ? _jsx(IDLabel, {
className: `${baseClass}__id`,
id
}) : title || EmptySpace
})
});
$[0] = Tag;
$[1] = className;
$[2] = id;
$[3] = idAsTitle;
$[4] = isInitializing;
$[5] = title;
$[6] = t1;
} else {
t1 = $[6];
}
return t1;
};
//# sourceMappingURL=index.js.map