2024-04-17 11:32:24 +02:00
/******/ ( ( ) => { // webpackBootstrap
2023-04-26 17:39:43 +02:00
/******/ "use strict" ;
/******/ // The require scope
/******/ var _ _webpack _require _ _ = { } ;
/******/
/************************************************************************/
/******/ /* webpack/runtime/define property getters */
2024-04-17 11:32:24 +02:00
/******/ ( ( ) => {
2023-04-26 17:39:43 +02:00
/******/ // define getter functions for harmony exports
2024-04-17 11:32:24 +02:00
/******/ _ _webpack _require _ _ . d = ( exports , definition ) => {
2023-04-26 17:39:43 +02:00
/******/ 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 ] } ) ;
/******/ }
/******/ }
/******/ } ;
2024-04-17 11:32:24 +02:00
/******/ } ) ( ) ;
2023-04-26 17:39:43 +02:00
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
2024-04-17 11:32:24 +02:00
/******/ ( ( ) => {
/******/ _ _webpack _require _ _ . o = ( obj , prop ) => ( Object . prototype . hasOwnProperty . call ( obj , prop ) )
/******/ } ) ( ) ;
2023-04-26 17:39:43 +02:00
/******/
/******/ /* webpack/runtime/make namespace object */
2024-04-17 11:32:24 +02:00
/******/ ( ( ) => {
2023-04-26 17:39:43 +02:00
/******/ // define __esModule on exports
2024-04-17 11:32:24 +02:00
/******/ _ _webpack _require _ _ . r = ( exports ) => {
2023-04-26 17:39:43 +02:00
/******/ if ( typeof Symbol !== 'undefined' && Symbol . toStringTag ) {
/******/ Object . defineProperty ( exports , Symbol . toStringTag , { value : 'Module' } ) ;
/******/ }
/******/ Object . defineProperty ( exports , '__esModule' , { value : true } ) ;
/******/ } ;
2024-04-17 11:32:24 +02:00
/******/ } ) ( ) ;
2023-04-26 17:39:43 +02:00
/******/
/************************************************************************/
var _ _webpack _exports _ _ = { } ;
// ESM COMPAT FLAG
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
// EXPORTS
_ _webpack _require _ _ . d ( _ _webpack _exports _ _ , {
2024-04-17 11:32:24 +02:00
_ _dangerousOptInToUnstableAPIsOnlyForCoreModules : ( ) => ( /* reexport */ _ _dangerousOptInToUnstableAPIsOnlyForCoreModules )
2023-04-26 17:39:43 +02:00
} ) ;
2025-04-25 12:30:07 +02:00
; // ./node_modules/@wordpress/private-apis/build-module/implementation.js
2025-12-12 13:15:55 +01:00
const CORE _MODULES _USING _PRIVATE _APIS = [
"@wordpress/block-directory" ,
"@wordpress/block-editor" ,
"@wordpress/block-library" ,
"@wordpress/blocks" ,
"@wordpress/commands" ,
"@wordpress/components" ,
"@wordpress/core-commands" ,
"@wordpress/core-data" ,
"@wordpress/customize-widgets" ,
"@wordpress/data" ,
"@wordpress/edit-post" ,
"@wordpress/edit-site" ,
"@wordpress/edit-widgets" ,
"@wordpress/editor" ,
"@wordpress/format-library" ,
"@wordpress/patterns" ,
"@wordpress/preferences" ,
"@wordpress/reusable-blocks" ,
"@wordpress/router" ,
"@wordpress/sync" ,
"@wordpress/dataviews" ,
"@wordpress/fields" ,
"@wordpress/media-utils" ,
"@wordpress/upload-media"
] ;
2023-04-26 17:39:43 +02:00
const registeredPrivateApis = [ ] ;
2025-12-12 13:15:55 +01:00
const requiredConsent = "I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress." ;
2025-04-25 12:30:07 +02:00
const allowReRegistration = true ? false : 0 ;
2023-04-26 17:39:43 +02:00
const _ _dangerousOptInToUnstableAPIsOnlyForCoreModules = ( consent , moduleName ) => {
if ( ! CORE _MODULES _USING _PRIVATE _APIS . includes ( moduleName ) ) {
2025-12-12 13:15:55 +01:00
throw new Error (
` You tried to opt-in to unstable APIs as module " ${ moduleName } ". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases. `
) ;
2023-04-26 17:39:43 +02:00
}
if ( ! allowReRegistration && registeredPrivateApis . includes ( moduleName ) ) {
2025-12-12 13:15:55 +01:00
throw new Error (
` You tried to opt-in to unstable APIs as module " ${ moduleName } " which is already registered. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases. `
) ;
2023-04-26 17:39:43 +02:00
}
if ( consent !== requiredConsent ) {
2025-12-12 13:15:55 +01:00
throw new Error (
` You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release. `
) ;
2023-04-26 17:39:43 +02:00
}
registeredPrivateApis . push ( moduleName ) ;
return {
lock ,
unlock
} ;
} ;
function lock ( object , privateData ) {
if ( ! object ) {
2025-12-12 13:15:55 +01:00
throw new Error ( "Cannot lock an undefined object." ) ;
2023-04-26 17:39:43 +02:00
}
2025-04-25 12:30:07 +02:00
const _object = object ;
if ( ! ( _ _private in _object ) ) {
_object [ _ _private ] = { } ;
2023-04-26 17:39:43 +02:00
}
2025-04-25 12:30:07 +02:00
lockedData . set ( _object [ _ _private ] , privateData ) ;
2023-04-26 17:39:43 +02:00
}
function unlock ( object ) {
if ( ! object ) {
2025-12-12 13:15:55 +01:00
throw new Error ( "Cannot unlock an undefined object." ) ;
2023-04-26 17:39:43 +02:00
}
2025-04-25 12:30:07 +02:00
const _object = object ;
if ( ! ( _ _private in _object ) ) {
2025-12-12 13:15:55 +01:00
throw new Error (
"Cannot unlock an object that was not locked before. "
) ;
2023-04-26 17:39:43 +02:00
}
2025-04-25 12:30:07 +02:00
return lockedData . get ( _object [ _ _private ] ) ;
2023-04-26 17:39:43 +02:00
}
2025-12-12 13:15:55 +01:00
const lockedData = /* @__PURE__ */ new WeakMap ( ) ;
const _ _private = Symbol ( "Private API ID" ) ;
2023-04-26 17:39:43 +02:00
function allowCoreModule ( name ) {
CORE _MODULES _USING _PRIVATE _APIS . push ( name ) ;
}
function resetAllowedCoreModules ( ) {
while ( CORE _MODULES _USING _PRIVATE _APIS . length ) {
CORE _MODULES _USING _PRIVATE _APIS . pop ( ) ;
}
}
function resetRegisteredPrivateApis ( ) {
while ( registeredPrivateApis . length ) {
registeredPrivateApis . pop ( ) ;
}
}
2025-12-12 13:15:55 +01:00
2025-04-25 12:30:07 +02:00
; // ./node_modules/@wordpress/private-apis/build-module/index.js
2023-04-26 17:39:43 +02:00
2025-12-12 13:15:55 +01:00
2023-04-26 17:39:43 +02:00
( window . wp = window . wp || { } ) . privateApis = _ _webpack _exports _ _ ;
/******/ } ) ( )
;