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

1 line
1.2 KiB
Plaintext

{"version":3,"sources":["../../src/utilities/appendNonTrashedFilter.ts"],"sourcesContent":["import type { Where } from '../types/index.js'\n\nexport const appendNonTrashedFilter = ({\n deletedAtPath = 'deletedAt',\n enableTrash,\n trash,\n where,\n}: {\n deletedAtPath?: string\n enableTrash: boolean\n trash?: boolean\n where: Where\n}): Where => {\n if (!enableTrash || trash) {\n return where\n }\n\n const notTrashedFilter = {\n [deletedAtPath]: { exists: false },\n }\n\n if (where?.and) {\n return {\n ...where,\n and: [...where.and, notTrashedFilter],\n }\n }\n\n return {\n and: [notTrashedFilter, ...(where ? [where] : [])],\n }\n}\n"],"names":["appendNonTrashedFilter","deletedAtPath","enableTrash","trash","where","notTrashedFilter","exists","and"],"mappings":"AAEA,OAAO,MAAMA,yBAAyB,CAAC,EACrCC,gBAAgB,WAAW,EAC3BC,WAAW,EACXC,KAAK,EACLC,KAAK,EAMN;IACC,IAAI,CAACF,eAAeC,OAAO;QACzB,OAAOC;IACT;IAEA,MAAMC,mBAAmB;QACvB,CAACJ,cAAc,EAAE;YAAEK,QAAQ;QAAM;IACnC;IAEA,IAAIF,OAAOG,KAAK;QACd,OAAO;YACL,GAAGH,KAAK;YACRG,KAAK;mBAAIH,MAAMG,GAAG;gBAAEF;aAAiB;QACvC;IACF;IAEA,OAAO;QACLE,KAAK;YAACF;eAAsBD,QAAQ;gBAACA;aAAM,GAAG,EAAE;SAAE;IACpD;AACF,EAAC"}