import { CONSENT_CATEGORIES } from '../../modules/consent/categories.js'; /** * Fields for the CookieSettings global — GDPR consent banner copy, editable * per locale. The privacy-policy link TARGET is NOT stored here: it comes from * the pages module (system page role 'privacyPolicy'), keeping one source of * truth. Only the link's visible text lives here (privacyLinkLabel). */ export const cookieSettingsFields = [ { name: 'message', type: 'textarea', admin: { description: 'Main consent message shown in the banner.' }, localized: true }, { name: 'settingsTitle', type: 'text', admin: { description: 'Heading for the detailed settings panel.' }, localized: true }, { name: 'privacyLinkLabel', type: 'text', admin: { description: 'Text of the privacy-policy link in the banner, e.g. "Privacy policy". The link target is the page assigned as Privacy Policy in Site Settings → System Pages. Empty → the page title is used.' }, localized: true }, { name: 'buttons', type: 'group', admin: { description: 'Button labels.' }, fields: [ { name: 'acceptAll', type: 'text', localized: true }, { name: 'reject', type: 'text', localized: true }, { name: 'settings', type: 'text', localized: true }, { name: 'save', type: 'text', localized: true }, { name: 'back', type: 'text', localized: true } ] }, { name: 'categories', type: 'array', admin: { description: 'Per-category titles and descriptions.' }, fields: [ { name: 'key', type: 'select', options: CONSENT_CATEGORIES.map((c)=>({ label: c, value: c })), required: true }, { name: 'title', type: 'text', localized: true }, { name: 'description', type: 'textarea', localized: true } ] } ]; //# sourceMappingURL=fields.js.map