{
  "version": 3,
  "sources": ["../../src/store/types.ts"],
  "sourcesContent": ["/**\n * Object describing a user action option associated with a notice.\n */\nexport type NoticeAction = {\n\t/**\n\t * Message to use as action label.\n\t */\n\tlabel: string;\n\n\t/**\n\t * Optional URL of resource if action incurs browser navigation.\n\t */\n\turl?: string;\n\n\t/**\n\t * Optional function to invoke when action is triggered by user.\n\t */\n\tonClick?: VoidFunction;\n};\n\n/**\n * Notice object.\n */\nexport type Notice = {\n\t/**\n\t * Unique identifier of notice.\n\t */\n\tid: string;\n\n\t/**\n\t * Status of notice, one of `success`, `info`, `error`, or `warning`. Defaults to `info`.\n\t */\n\tstatus: 'success' | 'info' | 'error' | 'warning';\n\n\t/**\n\t * Notice message.\n\t */\n\tcontent: string;\n\n\t/**\n\t * Audibly announced message text used by assistive technologies.\n\t */\n\tspokenMessage: string | null;\n\n\t/**\n\t * Notice message as raw HTML. Intended to serve primarily for compatibility of server-rendered notices,\n\t * and SHOULD NOT be used for notices. It is subject to removal without notice.\n\t */\n\t__unstableHTML?: boolean;\n\n\t/**\n\t * Whether the notice can be dismissed by user. Defaults to `true`.\n\t */\n\tisDismissible: boolean;\n\n\t/**\n\t * Whether the notice includes an explicit dismiss button and can't be dismissed by clicking the body of the notice. Only applies when type is `snackbar`.\n\t */\n\texplicitDismiss?: boolean;\n\n\t/**\n\t * Called when the notice is dismissed.\n\t */\n\tonDismiss?: VoidFunction;\n\n\t/**\n\t * Type of notice, one of `default`, or `snackbar`.\n\t *\n\t * @default 'default'\n\t */\n\ttype: 'default' | 'snackbar' | ( string & {} );\n\n\t/**\n\t * User actions to present with notice.\n\t */\n\tactions: NoticeAction[];\n\n\t/**\n\t * An icon displayed with the notice. Only used when type is `snackbar`.\n\t */\n\ticon?: string | null;\n};\n\nexport type NoticeOptions = {\n\t/**\n\t * Context under which to group notice.\n\t * @default 'global'\n\t */\n\tcontext?: string;\n\n\t/**\n\t * Identifier for notice. Automatically assigned if not specified.\n\t */\n\tid?: string;\n\n\t/**\n\t * Whether the notice can be dismissed by user.\n\t * @default true\n\t */\n\tisDismissible?: boolean;\n\n\t/**\n\t * Type of notice, one of `default`, or `snackbar`.\n\t * @default 'default'\n\t */\n\ttype?: 'default' | 'snackbar' | ( string & {} );\n\n\t/**\n\t * Whether the notice content should be announced to screen readers.\n\t * @default true\n\t */\n\tspeak?: boolean;\n\n\t/**\n\t * User actions to be presented with notice.\n\t */\n\tactions?: NoticeAction[];\n\n\t/**\n\t * An icon displayed with the notice. Only used when type is set to `snackbar`.\n\t */\n\ticon?: string | null;\n\n\t/**\n\t * Whether the notice includes an explicit dismiss button and can't be dismissed by clicking the body of the notice. Only applies when type is set to `snackbar`.\n\t */\n\texplicitDismiss?: boolean;\n\n\t/**\n\t * Called when the notice is dismissed.\n\t */\n\tonDismiss?: VoidFunction;\n\n\t/**\n\t * Notice message as raw HTML. Intended to serve primarily for compatibility of server-rendered notices,\n\t * and SHOULD NOT be used for notices. It is subject to removal without notice.\n\t */\n\t__unstableHTML?: boolean;\n};\n\nexport type ReducerAction =\n\t| {\n\t\t\ttype: 'CREATE_NOTICE';\n\t\t\tcontext: string;\n\t\t\tnotice: Notice;\n\t  }\n\t| {\n\t\t\ttype: 'REMOVE_NOTICE';\n\t\t\tcontext: string;\n\t\t\tid: string;\n\t  }\n\t| {\n\t\t\ttype: 'REMOVE_NOTICES';\n\t\t\tcontext: string;\n\t\t\tids: Array< string >;\n\t  }\n\t| {\n\t\t\ttype: 'REMOVE_ALL_NOTICES';\n\t\t\tcontext: string;\n\t\t\tnoticeType: string;\n\t  }\n\t| {\n\t\t\t/**\n\t\t\t * Represents any action not explicitly handled by this reducer,\n\t\t\t * allowing TypeScript's discriminated union narrowing to work correctly.\n\t\t\t */\n\t\t\ttype: '@@UNKNOWN_ACTION';\n\t\t\tcontext?: string;\n\t  };\n"],
  "mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;",
  "names": []
}
