"use strict"; function searchMolds(molds, keyword) { const trimmed = keyword.trim().toLowerCase(); if (!trimmed) return molds; return molds.filter((mold) => { const fields = [ mold.name, mold.styleNo ?? "", mold.barcodeNo ?? "", mold.style ?? "" ]; return fields.some((f) => f.toLowerCase().includes(trimmed)); }); } exports.searchMolds = searchMolds; //# sourceMappingURL=../../.sourcemap/mp-weixin/utils/moldSearch.js.map