{"version":3,"file":"odx-angular-components-notification-testing.mjs","sources":["../../../../libs/angular/components/notification/testing/src/lib/test-helpers.ts","../../../../libs/angular/components/notification/testing/src/odx-angular-components-notification-testing.ts"],"sourcesContent":["import { Notification, NotificationCollection, NotificationOptions, NotificationRef } from '@odx/angular/components/notification';\n\nexport const ICON_NAME_MOCK = 'core::placeholder';\n\nexport function mockNotification(props?: Partial<Notification>): Notification {\n  return {\n    title: 'TEST_NOTIFICATION_TITLE',\n    description: 'TEST_NOTIFICATION_DESCRIPTION',\n    ...props,\n  };\n}\n\nexport function mockNotificationOptions(props?: Partial<NotificationOptions>): NotificationOptions {\n  return {\n    dismissable: false,\n    icon: ICON_NAME_MOCK,\n    tags: ['TEST_NOTIFICATION_TAG'],\n    ...props,\n  };\n}\n\nexport function mockNotificationRef(props?: Partial<NotificationRef>): NotificationRef {\n  return {\n    id: 'TEST_NOTIFICATION',\n    createdAt: Date.now(),\n    hasBeenSeen: false,\n    item: mockNotification(props?.item),\n    options: mockNotificationOptions(props?.options),\n    ...props,\n  };\n}\n\nexport function mockNotificationCollection(refs: NotificationRef[]): NotificationCollection {\n  return {\n    values: refs,\n    count: refs.length,\n    isEmpty: refs.length === 0,\n  };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAEO,MAAM,cAAc,GAAG;AAExB,SAAU,gBAAgB,CAAC,KAA6B,EAAA;IAC5D,OAAO;AACL,QAAA,KAAK,EAAE,yBAAyB;AAChC,QAAA,WAAW,EAAE,+BAA+B;AAC5C,QAAA,GAAG,KAAK;KACT;AACH;AAEM,SAAU,uBAAuB,CAAC,KAAoC,EAAA;IAC1E,OAAO;AACL,QAAA,WAAW,EAAE,KAAK;AAClB,QAAA,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,CAAC,uBAAuB,CAAC;AAC/B,QAAA,GAAG,KAAK;KACT;AACH;AAEM,SAAU,mBAAmB,CAAC,KAAgC,EAAA;IAClE,OAAO;AACL,QAAA,EAAE,EAAE,mBAAmB;AACvB,QAAA,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;AACrB,QAAA,WAAW,EAAE,KAAK;AAClB,QAAA,IAAI,EAAE,gBAAgB,CAAC,KAAK,EAAE,IAAI,CAAC;AACnC,QAAA,OAAO,EAAE,uBAAuB,CAAC,KAAK,EAAE,OAAO,CAAC;AAChD,QAAA,GAAG,KAAK;KACT;AACH;AAEM,SAAU,0BAA0B,CAAC,IAAuB,EAAA;IAChE,OAAO;AACL,QAAA,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,IAAI,CAAC,MAAM;AAClB,QAAA,OAAO,EAAE,IAAI,CAAC,MAAM,KAAK,CAAC;KAC3B;AACH;;ACtCA;;AAEG;;;;"}