Files
klz-cables.com/.pnpm-store/v10/files/5b/0221359a63b40b1451e82e38cd1193749554ffd09f5db7ba042cd96e79c5e6822cd4fa4f19d5ad32f7f56572534f898c8839b17a5dd6ea5e513fd3d5df6f46
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.9 KiB
Plaintext

{"version":3,"file":"attachViewActions.js","names":["getViewActions","editConfig","viewKey","actions","getSubViewActions","collectionOrGlobal","viewKeyArg","admin","components","views","edit"],"sources":["../../../src/views/Root/attachViewActions.ts"],"sourcesContent":["import type {\n CustomComponent,\n EditConfig,\n SanitizedCollectionConfig,\n SanitizedGlobalConfig,\n} from 'payload'\n\nexport function getViewActions({\n editConfig,\n viewKey,\n}: {\n editConfig: EditConfig\n viewKey: keyof EditConfig\n}): CustomComponent[] {\n if (editConfig && viewKey in editConfig && 'actions' in editConfig[viewKey]) {\n return editConfig[viewKey].actions ?? []\n }\n\n return []\n}\n\nexport function getSubViewActions({\n collectionOrGlobal,\n viewKeyArg,\n}: {\n collectionOrGlobal: SanitizedCollectionConfig | SanitizedGlobalConfig\n viewKeyArg?: keyof EditConfig\n}): CustomComponent[] {\n if (collectionOrGlobal?.admin?.components?.views?.edit) {\n let viewKey = viewKeyArg || 'default'\n if ('root' in collectionOrGlobal.admin.components.views.edit) {\n viewKey = 'root'\n }\n\n const actions = getViewActions({\n editConfig: collectionOrGlobal.admin?.components?.views?.edit,\n viewKey,\n })\n\n return actions\n }\n\n return []\n}\n"],"mappings":"AAOA,OAAO,SAASA,eAAe;EAC7BC,UAAU;EACVC;AAAO,CAIR;EACC,IAAID,UAAA,IAAcC,OAAA,IAAWD,UAAA,IAAc,aAAaA,UAAU,CAACC,OAAA,CAAQ,EAAE;IAC3E,OAAOD,UAAU,CAACC,OAAA,CAAQ,CAACC,OAAO,IAAI,EAAE;EAC1C;EAEA,OAAO,EAAE;AACX;AAEA,OAAO,SAASC,kBAAkB;EAChCC,kBAAkB;EAClBC;AAAU,CAIX;EACC,IAAID,kBAAA,EAAoBE,KAAA,EAAOC,UAAA,EAAYC,KAAA,EAAOC,IAAA,EAAM;IACtD,IAAIR,OAAA,GAAUI,UAAA,IAAc;IAC5B,IAAI,UAAUD,kBAAA,CAAmBE,KAAK,CAACC,UAAU,CAACC,KAAK,CAACC,IAAI,EAAE;MAC5DR,OAAA,GAAU;IACZ;IAEA,MAAMC,OAAA,GAAUH,cAAA,CAAe;MAC7BC,UAAA,EAAYI,kBAAA,CAAmBE,KAAK,EAAEC,UAAA,EAAYC,KAAA,EAAOC,IAAA;MACzDR;IACF;IAEA,OAAOC,OAAA;EACT;EAEA,OAAO,EAAE;AACX","ignoreList":[]}