: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
const spinAnimation = emotion_react_browser_esm_keyframes`
transform: rotate(360deg);
const StyledSpinner = /*#__PURE__*/emotion_styled_base_browser_esm("svg", true ? {
} : 0)("width:", config_values.spinnerSize, "px;height:", config_values.spinnerSize, "px;display:inline-block;margin:5px 11px 0;position:relative;color:", COLORS.theme.accent, ";overflow:visible;opacity:1;background-color:transparent;" + ( true ? "" : 0));
const commonPathProps = true ? {
styles: "fill:transparent;stroke-width:1.5px"
const SpinnerTrack = /*#__PURE__*/emotion_styled_base_browser_esm("circle", true ? {
} : 0)(commonPathProps, ";stroke:", COLORS.gray[300], ";" + ( true ? "" : 0));
const SpinnerIndicator = /*#__PURE__*/emotion_styled_base_browser_esm("path", true ? {
} : 0)(commonPathProps, ";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ", spinAnimation, ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/spinner/index.js
function UnforwardedSpinner({
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(StyledSpinner, {
className: dist_clsx('components-spinner', className),
xmlns: "http://www.w3.org/2000/svg",
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpinnerTrack, {
vectorEffect: "non-scaling-stroke"
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpinnerIndicator, {
d: "m 50 0 a 50 50 0 0 1 50 50",
vectorEffect: "non-scaling-stroke"
* `Spinner` is a component used to notify users that their action is being processed.
* import { Spinner } from '@wordpress/components';
const Spinner = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedSpinner);
/* harmony default export */ const spinner = (Spinner);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/surface/component.js
function UnconnectedSurface(props, forwardedRef) {
const surfaceProps = useSurface(props);
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
* `Surface` is a core component that renders a primary background color.
* In the example below, notice how the `Surface` renders in white (or dark gray if in dark mode).
* __experimentalSurface as Surface,
* __experimentalText as Text,
* } from '@wordpress/components';
* <Text>Code is Poetry</Text>
const component_Surface = contextConnect(UnconnectedSurface, 'Surface');
/* harmony default export */ const surface_component = (component_Surface);
;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/tab/tab-store.js
function createTabStore(props = {}) {
const syncState = (_a = props.store) == null ? void 0 : _a.getState();
const composite = createCompositeStore(_chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, props), {
orientation: defaultValue(
syncState == null ? void 0 : syncState.orientation,
focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
const panels = createCollectionStore();
const initialState = _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, composite.getState()), {
selectedId: defaultValue(
syncState == null ? void 0 : syncState.selectedId,
selectOnMove: defaultValue(
syncState == null ? void 0 : syncState.selectOnMove,
const tab = createStore(initialState, composite, props.store);
() => sync(tab, ["moves"], () => {
const { activeId, selectOnMove } = tab.getState();
const tabItem = composite.item(activeId);
tab.setState("selectedId", tabItem.id);
(state) => tab.setState("activeId", state.selectedId)
() => sync(tab, ["selectedId", "renderedItems"], (state) => {
if (state.selectedId !== void 0)
const { activeId, renderedItems } = tab.getState();
const tabItem = composite.item(activeId);
if (tabItem && !tabItem.disabled && !tabItem.dimmed) {
tab.setState("selectedId", tabItem.id);
const tabItem2 = renderedItems.find(
(item) => !item.disabled && !item.dimmed
tab.setState("selectedId", tabItem2 == null ? void 0 : tabItem2.id);
() => sync(tab, ["renderedItems"], (state) => {
const tabs = state.renderedItems;
return sync(panels, ["renderedItems"], (state2) => {
const items = state2.renderedItems;
const hasOrphanPanels = items.some((panel) => !panel.tabId);
items.forEach((panel, i) => {
panels.renderItem(_chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, panel), { tabId: tabItem.id }));
return _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues(_chunks_4R3V3JGP_spreadValues({}, composite), tab), {
setSelectedId: (id) => tab.setState("selectedId", id),
tab.setState("selectedId", id);
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/CQMDBRG5.js
function useTabStoreProps(store, update, props) {
store = useCompositeStoreProps(store, update, props);
useStoreProps(store, props, "selectedId", "setSelectedId");
useStoreProps(store, props, "selectOnMove");
const [panels, updatePanels] = EKQEJRUF_useStore(() => store.panels, {});
useUpdateEffect(updatePanels, [store, updatePanels]);
return (0,external_React_.useMemo)(() => _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, store), { panels }), [store, panels]);
function useTabStore(props = {}) {
const [store, update] = EKQEJRUF_useStore(createTabStore, props);
return useTabStoreProps(store, update, props);
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/4B73HROV.js
// src/tab/tab-context.tsx
var _4B73HROV_ctx = createStoreContext(
[CompositeContextProvider],
[CompositeScopedContextProvider]
var useTabContext = _4B73HROV_ctx.useContext;
var useTabScopedContext = _4B73HROV_ctx.useScopedContext;
var useTabProviderContext = _4B73HROV_ctx.useProviderContext;
var TabContextProvider = _4B73HROV_ctx.ContextProvider;
var TabScopedContextProvider = _4B73HROV_ctx.ScopedContextProvider;
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/tab/tab-list.js
var useTabList = createHook((_a) => {
var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
const context = useTabProviderContext();
store = store || context;
const orientation = store.useState(
(state) => state.orientation === "both" ? void 0 : state.orientation
(element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(TabScopedContextProvider, { value: store, children: element }),
props = _4R3V3JGP_spreadValues({
"aria-orientation": orientation
props = useComposite(_4R3V3JGP_spreadValues({ store }, props));
var tab_list_TabList = createComponent((props) => {
const htmlProps = useTabList(props);
return _3ORBWXWF_createElement("div", htmlProps);
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/tab/tab.js
accessibleWhenDisabled = true,
} = _b, props = __objRest(_b, [
"accessibleWhenDisabled",
const context = useTabScopedContext();
store = store || context;
const defaultId = useId();
const id = props.id || defaultId;
const dimmed = disabledFromProps(props);
const getItem = (0,external_React_.useCallback)(
const nextItem = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, item), { dimmed });
return getItemProp(nextItem);
const onClickProp = props.onClick;
const onClick = useEvent((event) => {
onClickProp == null ? void 0 : onClickProp(event);
if (event.defaultPrevented)
store == null ? void 0 : store.setSelectedId(id);
const panelId = store.panels.useState(
return (_a2 = state.items.find((item) => item.tabId === id)) == null ? void 0 : _a2.id;
const selected = store.useState((state) => !!id && state.selectedId === id);
props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
"aria-selected": selected,
"aria-controls": panelId || void 0
props = useCompositeItem(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
shouldRegisterItem: !!defaultId ? props.shouldRegisterItem : false
var Tab = createMemoComponent((props) => {
const htmlProps = useTab(props);
return _3ORBWXWF_createElement("button", htmlProps);
;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/tab/tab-panel.js
var useTabPanel = createHook(
var _b = _a, { store, tabId: tabIdProp, getItem: getItemProp } = _b, props = __objRest(_b, ["store", "tabId", "getItem"]);
const context = useTabProviderContext();
store = store || context;
const ref = (0,external_React_.useRef)(null);
const id = useId(props.id);
const [hasTabbableChildren, setHasTabbableChildren] = (0,external_React_.useState)(false);
(0,external_React_.useEffect)(() => {
const element = ref.current;
const tabbable = getAllTabbableIn(element);
setHasTabbableChildren(!!tabbable.length);
const getItem = (0,external_React_.useCallback)(
const nextItem = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, item), { id: id || item.id, tabId: tabIdProp });
return getItemProp(nextItem);
[id, tabIdProp, getItemProp]
(element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(TabScopedContextProvider, { value: store, children: element }),
const tabId = store.panels.useState(
return tabIdProp || ((_a2 = store == null ? void 0 : store.panels.item(id)) == null ? void 0 : _a2.tabId);
const open = store.useState(
(state) => !!tabId && state.selectedId === tabId
props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
"aria-labelledby": tabId || void 0
ref: useMergeRefs(ref, props.ref)
const disclosure = useDisclosureStore({ open });
props = useFocusable(_4R3V3JGP_spreadValues({ focusable: !hasTabbableChildren }, props));
props = useDisclosureContent(_4R3V3JGP_spreadValues({ store: disclosure }, props));
props = useCollectionItem(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({ store: store.panels }, props), { getItem }));
var TabPanel = createComponent((props) => {
const htmlProps = useTabPanel(props);
return _3ORBWXWF_createElement("div", htmlProps);