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

32 lines
1.0 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TextContainer = void 0;
var text_1 = require("../css/layout/text");
var TextContainer = /** @class */ (function () {
function TextContainer(context, node, styles) {
this.text = transform(node.data, styles.textTransform);
this.textBounds = text_1.parseTextBounds(context, this.text, styles, node);
}
return TextContainer;
}());
exports.TextContainer = TextContainer;
var transform = function (text, transform) {
switch (transform) {
case 1 /* LOWERCASE */:
return text.toLowerCase();
case 3 /* CAPITALIZE */:
return text.replace(CAPITALIZE, capitalize);
case 2 /* UPPERCASE */:
return text.toUpperCase();
default:
return text;
}
};
var CAPITALIZE = /(^|\s|:|-|\(|\))([a-z])/g;
var capitalize = function (m, p1, p2) {
if (m.length > 0) {
return p1 + p2.toUpperCase();
}
return m;
};
//# sourceMappingURL=text-container.js.map