@wordpress/edit-post 8.37.0 → 8.37.1-next.06ee73755.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/CHANGELOG.md +0 -2
  2. package/LICENSE.md +1 -1
  3. package/build/commands/{use-commands.js → use-commands.cjs} +1 -1
  4. package/build/components/back-button/{fullscreen-mode-close.js → fullscreen-mode-close.cjs} +1 -1
  5. package/build/components/back-button/{index.js → index.cjs} +3 -3
  6. package/build/components/browser-url/{index.js → index.cjs} +1 -1
  7. package/build/components/editor-initialization/{index.js → index.cjs} +2 -2
  8. package/build/components/editor-initialization/{listener-hooks.js → listener-hooks.cjs} +2 -2
  9. package/build/components/init-pattern-modal/{index.js → index.cjs} +1 -3
  10. package/build/components/init-pattern-modal/{index.js.map → index.cjs.map} +2 -2
  11. package/build/components/keyboard-shortcuts/{index.js → index.cjs} +2 -2
  12. package/build/components/layout/{index.js → index.cjs} +18 -16
  13. package/build/components/layout/{index.js.map → index.cjs.map} +2 -2
  14. package/build/components/layout/{use-should-iframe.js → use-should-iframe.cjs} +2 -2
  15. package/build/components/meta-boxes/{index.js → index.cjs} +4 -4
  16. package/build/components/meta-boxes/{meta-box-visibility.js → meta-box-visibility.cjs} +1 -1
  17. package/build/components/meta-boxes/meta-boxes-area/{index.js → index.cjs} +2 -2
  18. package/build/components/meta-boxes/{use-meta-box-initialization.js → use-meta-box-initialization.cjs} +2 -2
  19. package/build/components/more-menu/{index.js → index.cjs} +5 -5
  20. package/build/components/more-menu/{manage-patterns-menu-item.js → manage-patterns-menu-item.cjs} +1 -1
  21. package/build/components/more-menu/{welcome-guide-menu-item.js → welcome-guide-menu-item.cjs} +1 -1
  22. package/build/components/preferences-modal/{enable-custom-fields.js → enable-custom-fields.cjs} +2 -2
  23. package/build/components/preferences-modal/{enable-panel.js → enable-panel.cjs} +2 -2
  24. package/build/components/preferences-modal/{index.js → index.cjs} +3 -3
  25. package/build/components/preferences-modal/{meta-boxes-section.js → meta-boxes-section.cjs} +5 -5
  26. package/build/components/welcome-guide/{default.js → default.cjs} +3 -3
  27. package/build/components/welcome-guide/{image.js → image.cjs} +1 -1
  28. package/build/components/welcome-guide/{index.js → index.cjs} +4 -4
  29. package/build/components/welcome-guide/{template.js → template.cjs} +3 -3
  30. package/build/{deprecated.js → deprecated.cjs} +2 -2
  31. package/build/hooks/{use-navigate-to-entity-record.js → use-navigate-to-entity-record.cjs} +28 -8
  32. package/build/hooks/use-navigate-to-entity-record.cjs.map +7 -0
  33. package/build/{index.js → index.cjs} +7 -7
  34. package/build/{index.js.map → index.cjs.map} +1 -1
  35. package/build/{lock-unlock.js → lock-unlock.cjs} +1 -1
  36. package/build/store/{actions.js → actions.cjs} +3 -3
  37. package/build/store/{constants.js → constants.cjs} +1 -1
  38. package/build/store/{index.js → index.cjs} +5 -5
  39. package/build/store/{reducer.js → reducer.cjs} +1 -1
  40. package/build/store/{selectors.js → selectors.cjs} +2 -2
  41. package/build/utils/{meta-boxes.js → meta-boxes.cjs} +1 -1
  42. package/build-module/commands/{use-commands.js → use-commands.mjs} +1 -1
  43. package/build-module/components/back-button/{fullscreen-mode-close.js → fullscreen-mode-close.mjs} +1 -1
  44. package/build-module/components/back-button/{index.js → index.mjs} +3 -3
  45. package/build-module/components/browser-url/{index.js → index.mjs} +1 -1
  46. package/build-module/components/editor-initialization/{index.js → index.mjs} +2 -2
  47. package/build-module/components/editor-initialization/{listener-hooks.js → listener-hooks.mjs} +2 -2
  48. package/build-module/components/init-pattern-modal/{index.js → index.mjs} +1 -3
  49. package/build-module/components/init-pattern-modal/{index.js.map → index.mjs.map} +2 -2
  50. package/build-module/components/keyboard-shortcuts/{index.js → index.mjs} +2 -2
  51. package/build-module/components/layout/{index.js → index.mjs} +18 -16
  52. package/build-module/components/layout/{index.js.map → index.mjs.map} +2 -2
  53. package/build-module/components/layout/{use-should-iframe.js → use-should-iframe.mjs} +2 -2
  54. package/build-module/components/meta-boxes/{index.js → index.mjs} +4 -4
  55. package/build-module/components/meta-boxes/{meta-box-visibility.js → meta-box-visibility.mjs} +1 -1
  56. package/build-module/components/meta-boxes/meta-boxes-area/{index.js → index.mjs} +2 -2
  57. package/build-module/components/meta-boxes/{use-meta-box-initialization.js → use-meta-box-initialization.mjs} +2 -2
  58. package/build-module/components/more-menu/{index.js → index.mjs} +5 -5
  59. package/build-module/components/more-menu/{manage-patterns-menu-item.js → manage-patterns-menu-item.mjs} +1 -1
  60. package/build-module/components/more-menu/{welcome-guide-menu-item.js → welcome-guide-menu-item.mjs} +1 -1
  61. package/build-module/components/preferences-modal/{enable-custom-fields.js → enable-custom-fields.mjs} +2 -2
  62. package/build-module/components/preferences-modal/{enable-panel.js → enable-panel.mjs} +2 -2
  63. package/build-module/components/preferences-modal/{index.js → index.mjs} +3 -3
  64. package/build-module/components/preferences-modal/{meta-boxes-section.js → meta-boxes-section.mjs} +5 -5
  65. package/build-module/components/welcome-guide/{default.js → default.mjs} +3 -3
  66. package/build-module/components/welcome-guide/{image.js → image.mjs} +1 -1
  67. package/build-module/components/welcome-guide/{index.js → index.mjs} +4 -4
  68. package/build-module/components/welcome-guide/{template.js → template.mjs} +3 -3
  69. package/build-module/{deprecated.js → deprecated.mjs} +2 -2
  70. package/build-module/hooks/{use-navigate-to-entity-record.js → use-navigate-to-entity-record.mjs} +29 -9
  71. package/build-module/hooks/use-navigate-to-entity-record.mjs.map +7 -0
  72. package/build-module/{index.js → index.mjs} +6 -6
  73. package/build-module/{lock-unlock.js → lock-unlock.mjs} +1 -1
  74. package/build-module/store/{actions.js → actions.mjs} +3 -3
  75. package/build-module/store/{constants.js → constants.mjs} +1 -1
  76. package/build-module/store/{index.js → index.mjs} +5 -5
  77. package/build-module/store/{reducer.js → reducer.mjs} +1 -1
  78. package/build-module/store/{selectors.js → selectors.mjs} +2 -2
  79. package/build-module/utils/{meta-boxes.js → meta-boxes.mjs} +1 -1
  80. package/build-style/classic-rtl.css +4 -0
  81. package/build-style/classic.css +4 -0
  82. package/build-style/style-rtl.css +8 -120
  83. package/build-style/style.css +8 -120
  84. package/package.json +45 -37
  85. package/src/components/init-pattern-modal/index.js +0 -2
  86. package/src/components/layout/index.js +2 -0
  87. package/src/hooks/use-navigate-to-entity-record.js +40 -8
  88. package/src/style.scss +0 -2
  89. package/build/hooks/use-navigate-to-entity-record.js.map +0 -7
  90. package/build-module/hooks/use-navigate-to-entity-record.js.map +0 -7
  91. /package/build/commands/{use-commands.js.map → use-commands.cjs.map} +0 -0
  92. /package/build/components/back-button/{fullscreen-mode-close.js.map → fullscreen-mode-close.cjs.map} +0 -0
  93. /package/build/components/back-button/{index.js.map → index.cjs.map} +0 -0
  94. /package/build/components/browser-url/{index.js.map → index.cjs.map} +0 -0
  95. /package/build/components/editor-initialization/{index.js.map → index.cjs.map} +0 -0
  96. /package/build/components/editor-initialization/{listener-hooks.js.map → listener-hooks.cjs.map} +0 -0
  97. /package/build/components/keyboard-shortcuts/{index.js.map → index.cjs.map} +0 -0
  98. /package/build/components/layout/{use-should-iframe.js.map → use-should-iframe.cjs.map} +0 -0
  99. /package/build/components/meta-boxes/{index.js.map → index.cjs.map} +0 -0
  100. /package/build/components/meta-boxes/{meta-box-visibility.js.map → meta-box-visibility.cjs.map} +0 -0
  101. /package/build/components/meta-boxes/meta-boxes-area/{index.js.map → index.cjs.map} +0 -0
  102. /package/build/components/meta-boxes/{use-meta-box-initialization.js.map → use-meta-box-initialization.cjs.map} +0 -0
  103. /package/build/components/more-menu/{index.js.map → index.cjs.map} +0 -0
  104. /package/build/components/more-menu/{manage-patterns-menu-item.js.map → manage-patterns-menu-item.cjs.map} +0 -0
  105. /package/build/components/more-menu/{welcome-guide-menu-item.js.map → welcome-guide-menu-item.cjs.map} +0 -0
  106. /package/build/components/preferences-modal/{enable-custom-fields.js.map → enable-custom-fields.cjs.map} +0 -0
  107. /package/build/components/preferences-modal/{enable-panel.js.map → enable-panel.cjs.map} +0 -0
  108. /package/build/components/preferences-modal/{index.js.map → index.cjs.map} +0 -0
  109. /package/build/components/preferences-modal/{meta-boxes-section.js.map → meta-boxes-section.cjs.map} +0 -0
  110. /package/build/components/welcome-guide/{default.js.map → default.cjs.map} +0 -0
  111. /package/build/components/welcome-guide/{image.js.map → image.cjs.map} +0 -0
  112. /package/build/components/welcome-guide/{index.js.map → index.cjs.map} +0 -0
  113. /package/build/components/welcome-guide/{template.js.map → template.cjs.map} +0 -0
  114. /package/build/{deprecated.js.map → deprecated.cjs.map} +0 -0
  115. /package/build/{lock-unlock.js.map → lock-unlock.cjs.map} +0 -0
  116. /package/build/store/{actions.js.map → actions.cjs.map} +0 -0
  117. /package/build/store/{constants.js.map → constants.cjs.map} +0 -0
  118. /package/build/store/{index.js.map → index.cjs.map} +0 -0
  119. /package/build/store/{reducer.js.map → reducer.cjs.map} +0 -0
  120. /package/build/store/{selectors.js.map → selectors.cjs.map} +0 -0
  121. /package/build/utils/{meta-boxes.js.map → meta-boxes.cjs.map} +0 -0
  122. /package/build-module/commands/{use-commands.js.map → use-commands.mjs.map} +0 -0
  123. /package/build-module/components/back-button/{fullscreen-mode-close.js.map → fullscreen-mode-close.mjs.map} +0 -0
  124. /package/build-module/components/back-button/{index.js.map → index.mjs.map} +0 -0
  125. /package/build-module/components/browser-url/{index.js.map → index.mjs.map} +0 -0
  126. /package/build-module/components/editor-initialization/{index.js.map → index.mjs.map} +0 -0
  127. /package/build-module/components/editor-initialization/{listener-hooks.js.map → listener-hooks.mjs.map} +0 -0
  128. /package/build-module/components/keyboard-shortcuts/{index.js.map → index.mjs.map} +0 -0
  129. /package/build-module/components/layout/{use-should-iframe.js.map → use-should-iframe.mjs.map} +0 -0
  130. /package/build-module/components/meta-boxes/{index.js.map → index.mjs.map} +0 -0
  131. /package/build-module/components/meta-boxes/{meta-box-visibility.js.map → meta-box-visibility.mjs.map} +0 -0
  132. /package/build-module/components/meta-boxes/meta-boxes-area/{index.js.map → index.mjs.map} +0 -0
  133. /package/build-module/components/meta-boxes/{use-meta-box-initialization.js.map → use-meta-box-initialization.mjs.map} +0 -0
  134. /package/build-module/components/more-menu/{index.js.map → index.mjs.map} +0 -0
  135. /package/build-module/components/more-menu/{manage-patterns-menu-item.js.map → manage-patterns-menu-item.mjs.map} +0 -0
  136. /package/build-module/components/more-menu/{welcome-guide-menu-item.js.map → welcome-guide-menu-item.mjs.map} +0 -0
  137. /package/build-module/components/preferences-modal/{enable-custom-fields.js.map → enable-custom-fields.mjs.map} +0 -0
  138. /package/build-module/components/preferences-modal/{enable-panel.js.map → enable-panel.mjs.map} +0 -0
  139. /package/build-module/components/preferences-modal/{index.js.map → index.mjs.map} +0 -0
  140. /package/build-module/components/preferences-modal/{meta-boxes-section.js.map → meta-boxes-section.mjs.map} +0 -0
  141. /package/build-module/components/welcome-guide/{default.js.map → default.mjs.map} +0 -0
  142. /package/build-module/components/welcome-guide/{image.js.map → image.mjs.map} +0 -0
  143. /package/build-module/components/welcome-guide/{index.js.map → index.mjs.map} +0 -0
  144. /package/build-module/components/welcome-guide/{template.js.map → template.mjs.map} +0 -0
  145. /package/build-module/{deprecated.js.map → deprecated.mjs.map} +0 -0
  146. /package/build-module/{index.js.map → index.mjs.map} +0 -0
  147. /package/build-module/{lock-unlock.js.map → lock-unlock.mjs.map} +0 -0
  148. /package/build-module/store/{actions.js.map → actions.mjs.map} +0 -0
  149. /package/build-module/store/{constants.js.map → constants.mjs.map} +0 -0
  150. /package/build-module/store/{index.js.map → index.mjs.map} +0 -0
  151. /package/build-module/store/{reducer.js.map → reducer.mjs.map} +0 -0
  152. /package/build-module/store/{selectors.js.map → selectors.mjs.map} +0 -0
  153. /package/build-module/utils/{meta-boxes.js.map → meta-boxes.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- ## 8.37.0 (2025-12-23)
6
-
7
5
  ## 8.36.0 (2025-11-26)
8
6
 
9
7
  ### Internal
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Gutenberg
2
2
 
3
- Copyright 2016-2025 by the contributors
3
+ Copyright 2016-2026 by the contributors
4
4
 
5
5
  **License for Contributions (on and after April 15, 2021)**
6
6
 
@@ -62,4 +62,4 @@ function useCommands() {
62
62
  }
63
63
  });
64
64
  }
65
- //# sourceMappingURL=use-commands.js.map
65
+ //# sourceMappingURL=use-commands.cjs.map
@@ -160,4 +160,4 @@ function FullscreenModeClose({ showTooltip, icon, href, initialPost }) {
160
160
  );
161
161
  }
162
162
  var fullscreen_mode_close_default = FullscreenModeClose;
163
- //# sourceMappingURL=fullscreen-mode-close.js.map
163
+ //# sourceMappingURL=fullscreen-mode-close.cjs.map
@@ -34,8 +34,8 @@ __export(back_button_exports, {
34
34
  module.exports = __toCommonJS(back_button_exports);
35
35
  var import_editor = require("@wordpress/editor");
36
36
  var import_components = require("@wordpress/components");
37
- var import_fullscreen_mode_close = __toESM(require("./fullscreen-mode-close"));
38
- var import_lock_unlock = require("../../lock-unlock");
37
+ var import_fullscreen_mode_close = __toESM(require("./fullscreen-mode-close.cjs"));
38
+ var import_lock_unlock = require("../../lock-unlock.cjs");
39
39
  var import_jsx_runtime = require("react/jsx-runtime");
40
40
  var { BackButton: BackButtonFill } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
41
41
  var slideX = {
@@ -60,4 +60,4 @@ function BackButton({ initialPost }) {
60
60
  ) });
61
61
  }
62
62
  var back_button_default = BackButton;
63
- //# sourceMappingURL=index.js.map
63
+ //# sourceMappingURL=index.cjs.map
@@ -63,4 +63,4 @@ function BrowserURL() {
63
63
  0 && (module.exports = {
64
64
  getPostEditURL
65
65
  });
66
- //# sourceMappingURL=index.js.map
66
+ //# sourceMappingURL=index.cjs.map
@@ -22,9 +22,9 @@ __export(editor_initialization_exports, {
22
22
  default: () => EditorInitialization
23
23
  });
24
24
  module.exports = __toCommonJS(editor_initialization_exports);
25
- var import_listener_hooks = require("./listener-hooks");
25
+ var import_listener_hooks = require("./listener-hooks.cjs");
26
26
  function EditorInitialization() {
27
27
  (0, import_listener_hooks.useUpdatePostLinkListener)();
28
28
  return null;
29
29
  }
30
- //# sourceMappingURL=index.js.map
30
+ //# sourceMappingURL=index.cjs.map
@@ -26,7 +26,7 @@ var import_data = require("@wordpress/data");
26
26
  var import_element = require("@wordpress/element");
27
27
  var import_editor = require("@wordpress/editor");
28
28
  var import_core_data = require("@wordpress/core-data");
29
- var import_constants = require("../../store/constants");
29
+ var import_constants = require("../../store/constants.cjs");
30
30
  var useUpdatePostLinkListener = () => {
31
31
  const { isViewable, newPermalink } = (0, import_data.useSelect)((select) => {
32
32
  const { getPostType } = select(import_core_data.store);
@@ -57,4 +57,4 @@ var useUpdatePostLinkListener = () => {
57
57
  0 && (module.exports = {
58
58
  useUpdatePostLinkListener
59
59
  });
60
- //# sourceMappingURL=listener-hooks.js.map
60
+ //# sourceMappingURL=listener-hooks.cjs.map
@@ -70,14 +70,12 @@ function InitPatternModal() {
70
70
  onChange: setTitle,
71
71
  placeholder: (0, import_i18n.__)("My pattern"),
72
72
  className: "patterns-create-modal__name-input",
73
- __nextHasNoMarginBottom: true,
74
73
  __next40pxDefaultSize: true
75
74
  }
76
75
  ),
77
76
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
78
77
  import_components.ToggleControl,
79
78
  {
80
- __nextHasNoMarginBottom: true,
81
79
  label: (0, import_i18n._x)("Synced", "pattern (singular)"),
82
80
  help: (0, import_i18n.__)(
83
81
  "Sync this pattern across multiple locations."
@@ -107,4 +105,4 @@ function InitPatternModal() {
107
105
  }
108
106
  ) });
109
107
  }
110
- //# sourceMappingURL=index.js.map
108
+ //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/init-pattern-modal/index.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { __, _x } from '@wordpress/i18n';\nimport {\n\tModal,\n\tButton,\n\t__experimentalHStack as HStack,\n\t__experimentalVStack as VStack,\n\tToggleControl,\n\tTextControl,\n} from '@wordpress/components';\nimport { useState } from '@wordpress/element';\nimport { store as editorStore } from '@wordpress/editor';\n\nexport default function InitPatternModal() {\n\tconst { editPost } = useDispatch( editorStore );\n\tconst [ syncType, setSyncType ] = useState( undefined );\n\tconst [ title, setTitle ] = useState( '' );\n\n\tconst isNewPost = useSelect(\n\t\t( select ) => select( editorStore ).isCleanNewPost(),\n\t\t[]\n\t);\n\n\tconst [ isModalOpen, setIsModalOpen ] = useState( () => isNewPost );\n\n\tif ( ! isNewPost ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{ isModalOpen && (\n\t\t\t\t<Modal\n\t\t\t\t\ttitle={ __( 'Create pattern' ) }\n\t\t\t\t\tonRequestClose={ () => {\n\t\t\t\t\t\tsetIsModalOpen( false );\n\t\t\t\t\t} }\n\t\t\t\t\toverlayClassName=\"reusable-blocks-menu-items__convert-modal\"\n\t\t\t\t>\n\t\t\t\t\t<form\n\t\t\t\t\t\tonSubmit={ ( event ) => {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\tsetIsModalOpen( false );\n\t\t\t\t\t\t\teditPost( {\n\t\t\t\t\t\t\t\ttitle,\n\t\t\t\t\t\t\t\tmeta: {\n\t\t\t\t\t\t\t\t\twp_pattern_sync_status: syncType,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} }\n\t\t\t\t\t>\n\t\t\t\t\t\t<VStack spacing=\"5\">\n\t\t\t\t\t\t\t<TextControl\n\t\t\t\t\t\t\t\tlabel={ __( 'Name' ) }\n\t\t\t\t\t\t\t\tvalue={ title }\n\t\t\t\t\t\t\t\tonChange={ setTitle }\n\t\t\t\t\t\t\t\tplaceholder={ __( 'My pattern' ) }\n\t\t\t\t\t\t\t\tclassName=\"patterns-create-modal__name-input\"\n\t\t\t\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\t\t\t\tlabel={ _x( 'Synced', 'pattern (singular)' ) }\n\t\t\t\t\t\t\t\thelp={ __(\n\t\t\t\t\t\t\t\t\t'Sync this pattern across multiple locations.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tchecked={ ! syncType }\n\t\t\t\t\t\t\t\tonChange={ () => {\n\t\t\t\t\t\t\t\t\tsetSyncType(\n\t\t\t\t\t\t\t\t\t\t! syncType ? 'unsynced' : undefined\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<HStack justify=\"right\">\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t\t\t\ttype=\"submit\"\n\t\t\t\t\t\t\t\t\tdisabled={ ! title }\n\t\t\t\t\t\t\t\t\taccessibleWhenDisabled\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Create' ) }\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</HStack>\n\t\t\t\t\t\t</VStack>\n\t\t\t\t\t</form>\n\t\t\t\t</Modal>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAuC;AACvC,kBAAuB;AACvB,wBAOO;AACP,qBAAyB;AACzB,oBAAqC;AAmBnC;AAjBa,SAAR,mBAAoC;AAC1C,QAAM,EAAE,SAAS,QAAI,yBAAa,cAAAA,KAAY;AAC9C,QAAM,CAAE,UAAU,WAAY,QAAI,yBAAU,MAAU;AACtD,QAAM,CAAE,OAAO,QAAS,QAA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;AAAA,gBACL,UAAW,CAAE;AAAA,gBACb,wBAAsB;AAAA,gBAEpB,8BAAI,QAAS;AAAA;AAAA,YAChB,GACD;AAAA,aACD;AAAA;AAAA,MACD;AAAA;AAAA,EACD,GAEF;AAEF;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { __, _x } from '@wordpress/i18n';\nimport {\n\tModal,\n\tButton,\n\t__experimentalHStack as HStack,\n\t__experimentalVStack as VStack,\n\tToggleControl,\n\tTextControl,\n} from '@wordpress/components';\nimport { useState } from '@wordpress/element';\nimport { store as editorStore } from '@wordpress/editor';\n\nexport default function InitPatternModal() {\n\tconst { editPost } = useDispatch( editorStore );\n\tconst [ syncType, setSyncType ] = useState( undefined );\n\tconst [ title, setTitle ] = useState( '' );\n\n\tconst isNewPost = useSelect(\n\t\t( select ) => select( editorStore ).isCleanNewPost(),\n\t\t[]\n\t);\n\n\tconst [ isModalOpen, setIsModalOpen ] = useState( () => isNewPost );\n\n\tif ( ! isNewPost ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{ isModalOpen && (\n\t\t\t\t<Modal\n\t\t\t\t\ttitle={ __( 'Create pattern' ) }\n\t\t\t\t\tonRequestClose={ () => {\n\t\t\t\t\t\tsetIsModalOpen( false );\n\t\t\t\t\t} }\n\t\t\t\t\toverlayClassName=\"reusable-blocks-menu-items__convert-modal\"\n\t\t\t\t>\n\t\t\t\t\t<form\n\t\t\t\t\t\tonSubmit={ ( event ) => {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\tsetIsModalOpen( false );\n\t\t\t\t\t\t\teditPost( {\n\t\t\t\t\t\t\t\ttitle,\n\t\t\t\t\t\t\t\tmeta: {\n\t\t\t\t\t\t\t\t\twp_pattern_sync_status: syncType,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} }\n\t\t\t\t\t>\n\t\t\t\t\t\t<VStack spacing=\"5\">\n\t\t\t\t\t\t\t<TextControl\n\t\t\t\t\t\t\t\tlabel={ __( 'Name' ) }\n\t\t\t\t\t\t\t\tvalue={ title }\n\t\t\t\t\t\t\t\tonChange={ setTitle }\n\t\t\t\t\t\t\t\tplaceholder={ __( 'My pattern' ) }\n\t\t\t\t\t\t\t\tclassName=\"patterns-create-modal__name-input\"\n\t\t\t\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\t\t\tlabel={ _x( 'Synced', 'pattern (singular)' ) }\n\t\t\t\t\t\t\t\thelp={ __(\n\t\t\t\t\t\t\t\t\t'Sync this pattern across multiple locations.'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\tchecked={ ! syncType }\n\t\t\t\t\t\t\t\tonChange={ () => {\n\t\t\t\t\t\t\t\t\tsetSyncType(\n\t\t\t\t\t\t\t\t\t\t! syncType ? 'unsynced' : undefined\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<HStack justify=\"right\">\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t\t\t\ttype=\"submit\"\n\t\t\t\t\t\t\t\t\tdisabled={ ! title }\n\t\t\t\t\t\t\t\t\taccessibleWhenDisabled\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ __( 'Create' ) }\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</HStack>\n\t\t\t\t\t\t</VStack>\n\t\t\t\t\t</form>\n\t\t\t\t</Modal>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAuC;AACvC,kBAAuB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kBAC3B;AAAA,gBACD;AAAA;AAAA,YACD;AAAA,YACA,4CAAC,kBAAAC,sBAAA,EAAO,SAAQ,SACf;AAAA,cAAC;AAAA;AAAA,gBACA,uBAAqB;AAAA,gBACrB,SAAQ;AAAA,gBACR,MAAK;AAAA,gBACL,UAAW,CAAE;AAAA,gBACb,wBAAsB;AAAA,gBAEpB,8BAAI,QAAS;AAAA;AAAA,YAChB,GACD;AAAA,aACD;AAAA;AAAA,MACD;AAAA;AAAA,EACD,GAEF;AAEF;",
6
6
  "names": ["editorStore", "VStack", "HStack"]
7
7
  }
@@ -26,7 +26,7 @@ var import_element = require("@wordpress/element");
26
26
  var import_data = require("@wordpress/data");
27
27
  var import_keyboard_shortcuts = require("@wordpress/keyboard-shortcuts");
28
28
  var import_i18n = require("@wordpress/i18n");
29
- var import_store = require("../../store");
29
+ var import_store = require("../../store/index.cjs");
30
30
  function KeyboardShortcuts() {
31
31
  const { toggleFullscreenMode } = (0, import_data.useDispatch)(import_store.store);
32
32
  const { registerShortcut } = (0, import_data.useDispatch)(import_keyboard_shortcuts.store);
@@ -47,4 +47,4 @@ function KeyboardShortcuts() {
47
47
  return null;
48
48
  }
49
49
  var keyboard_shortcuts_default = KeyboardShortcuts;
50
- //# sourceMappingURL=index.js.map
50
+ //# sourceMappingURL=index.cjs.map
@@ -51,20 +51,20 @@ var import_html_entities = require("@wordpress/html-entities");
51
51
  var import_core_data = require("@wordpress/core-data");
52
52
  var import_components = require("@wordpress/components");
53
53
  var import_compose = require("@wordpress/compose");
54
- var import_back_button = __toESM(require("../back-button"));
55
- var import_editor_initialization = __toESM(require("../editor-initialization"));
56
- var import_keyboard_shortcuts = __toESM(require("../keyboard-shortcuts"));
57
- var import_init_pattern_modal = __toESM(require("../init-pattern-modal"));
58
- var import_browser_url = __toESM(require("../browser-url"));
59
- var import_meta_boxes = __toESM(require("../meta-boxes"));
60
- var import_more_menu = __toESM(require("../more-menu"));
61
- var import_welcome_guide = __toESM(require("../welcome-guide"));
62
- var import_store = require("../../store");
63
- var import_lock_unlock = require("../../lock-unlock");
64
- var import_use_commands = __toESM(require("../../commands/use-commands"));
65
- var import_use_should_iframe = require("./use-should-iframe");
66
- var import_use_navigate_to_entity_record = __toESM(require("../../hooks/use-navigate-to-entity-record"));
67
- var import_use_meta_box_initialization = require("../meta-boxes/use-meta-box-initialization");
54
+ var import_back_button = __toESM(require("../back-button/index.cjs"));
55
+ var import_editor_initialization = __toESM(require("../editor-initialization/index.cjs"));
56
+ var import_keyboard_shortcuts = __toESM(require("../keyboard-shortcuts/index.cjs"));
57
+ var import_init_pattern_modal = __toESM(require("../init-pattern-modal/index.cjs"));
58
+ var import_browser_url = __toESM(require("../browser-url/index.cjs"));
59
+ var import_meta_boxes = __toESM(require("../meta-boxes/index.cjs"));
60
+ var import_more_menu = __toESM(require("../more-menu/index.cjs"));
61
+ var import_welcome_guide = __toESM(require("../welcome-guide/index.cjs"));
62
+ var import_store = require("../../store/index.cjs");
63
+ var import_lock_unlock = require("../../lock-unlock.cjs");
64
+ var import_use_commands = __toESM(require("../../commands/use-commands.cjs"));
65
+ var import_use_should_iframe = require("./use-should-iframe.cjs");
66
+ var import_use_navigate_to_entity_record = __toESM(require("../../hooks/use-navigate-to-entity-record.cjs"));
67
+ var import_use_meta_box_initialization = require("../meta-boxes/use-meta-box-initialization.cjs");
68
68
  var import_jsx_runtime = require("react/jsx-runtime");
69
69
  var { useCommandContext } = (0, import_lock_unlock.unlock)(import_commands.privateApis);
70
70
  var { Editor, FullscreenMode } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
@@ -336,7 +336,8 @@ function Layout({
336
336
  const {
337
337
  currentPost: { postId: currentPostId, postType: currentPostType },
338
338
  onNavigateToEntityRecord,
339
- onNavigateToPreviousEntityRecord
339
+ onNavigateToPreviousEntityRecord,
340
+ previousSelectedBlockPath
340
341
  } = (0, import_use_navigate_to_entity_record.default)(
341
342
  initialPostId,
342
343
  initialPostType,
@@ -511,6 +512,7 @@ function Layout({
511
512
  disableIframe: !shouldIframe,
512
513
  autoFocus: !isWelcomeGuideVisible,
513
514
  onActionPerformed,
515
+ initialSelection: previousSelectedBlockPath,
514
516
  extraSidebarPanels: showMetaBoxes && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_meta_boxes.default, { location: "side" }),
515
517
  extraContent: !isDistractionFree && showMetaBoxes && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
516
518
  MetaBoxesMain,
@@ -542,4 +544,4 @@ function Layout({
542
544
  ] }) });
543
545
  }
544
546
  var layout_default = Layout;
545
- //# sourceMappingURL=index.js.map
547
+ //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/layout/index.js"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { NavigableRegion } from '@wordpress/admin-ui';\nimport {\n\tAutosaveMonitor,\n\tLocalAutosaveMonitor,\n\tUnsavedChangesWarning,\n\tEditorKeyboardShortcutsRegister,\n\tEditorSnackbars,\n\tErrorBoundary,\n\tPostLockedModal,\n\tstore as editorStore,\n\tprivateApis as editorPrivateApis,\n} from '@wordpress/editor';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { getLayoutStyles } from '@wordpress/global-styles-engine';\nimport { PluginArea } from '@wordpress/plugins';\nimport { __, sprintf } from '@wordpress/i18n';\nimport {\n\tuseCallback,\n\tuseEffect,\n\tuseMemo,\n\tuseId,\n\tuseRef,\n\tuseState,\n} from '@wordpress/element';\nimport { chevronDown, chevronUp } from '@wordpress/icons';\nimport { store as noticesStore } from '@wordpress/notices';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { privateApis as commandsPrivateApis } from '@wordpress/commands';\nimport { privateApis as blockLibraryPrivateApis } from '@wordpress/block-library';\nimport { addQueryArgs } from '@wordpress/url';\nimport { decodeEntities } from '@wordpress/html-entities';\nimport { store as coreStore } from '@wordpress/core-data';\nimport {\n\tIcon,\n\tResizableBox,\n\tSlotFillProvider,\n\tTooltip,\n\tVisuallyHidden,\n\t__unstableUseNavigateRegions as useNavigateRegions,\n} from '@wordpress/components';\nimport {\n\tuseEvent,\n\tuseMediaQuery,\n\tuseRefEffect,\n\tuseViewportMatch,\n} from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport BackButton from '../back-button';\nimport EditorInitialization from '../editor-initialization';\nimport EditPostKeyboardShortcuts from '../keyboard-shortcuts';\nimport InitPatternModal from '../init-pattern-modal';\nimport BrowserURL from '../browser-url';\nimport MetaBoxes from '../meta-boxes';\nimport PostEditorMoreMenu from '../more-menu';\nimport WelcomeGuide from '../welcome-guide';\nimport { store as editPostStore } from '../../store';\nimport { unlock } from '../../lock-unlock';\nimport useEditPostCommands from '../../commands/use-commands';\nimport { useShouldIframe } from './use-should-iframe';\nimport useNavigateToEntityRecord from '../../hooks/use-navigate-to-entity-record';\nimport { useMetaBoxInitialization } from '../meta-boxes/use-meta-box-initialization';\n\nconst { useCommandContext } = unlock( commandsPrivateApis );\nconst { Editor, FullscreenMode } = unlock( editorPrivateApis );\nconst { BlockKeyboardShortcuts } = unlock( blockLibraryPrivateApis );\nconst DESIGN_POST_TYPES = [\n\t'wp_template',\n\t'wp_template_part',\n\t'wp_block',\n\t'wp_navigation',\n];\n\nfunction useEditorStyles( settings ) {\n\tconst { hasThemeStyleSupport } = useSelect( ( select ) => {\n\t\treturn {\n\t\t\thasThemeStyleSupport:\n\t\t\t\tselect( editPostStore ).isFeatureActive( 'themeStyles' ),\n\t\t};\n\t}, [] );\n\n\t// Compute the default styles.\n\treturn useMemo( () => {\n\t\tconst presetStyles =\n\t\t\tsettings.styles?.filter(\n\t\t\t\t( style ) =>\n\t\t\t\t\tstyle.__unstableType && style.__unstableType !== 'theme'\n\t\t\t) ?? [];\n\n\t\tconst defaultEditorStyles = [\n\t\t\t...( settings?.defaultEditorStyles ?? [] ),\n\t\t\t...presetStyles,\n\t\t];\n\n\t\t// Has theme styles if the theme supports them and if some styles were not preset styles (in which case they're theme styles).\n\t\tconst hasThemeStyles =\n\t\t\thasThemeStyleSupport &&\n\t\t\tpresetStyles.length !== ( settings.styles?.length ?? 0 );\n\n\t\t// If theme styles are not present or displayed, ensure that\n\t\t// base layout styles are still present in the editor.\n\t\tif ( ! settings.disableLayoutStyles && ! hasThemeStyles ) {\n\t\t\tdefaultEditorStyles.push( {\n\t\t\t\tcss: getLayoutStyles( {\n\t\t\t\t\tstyle: {},\n\t\t\t\t\tselector: 'body',\n\t\t\t\t\thasBlockGapSupport: false,\n\t\t\t\t\thasFallbackGapSupport: true,\n\t\t\t\t\tfallbackGapValue: '0.5em',\n\t\t\t\t} ),\n\t\t\t} );\n\t\t}\n\n\t\treturn hasThemeStyles ? settings.styles ?? [] : defaultEditorStyles;\n\t}, [\n\t\tsettings.defaultEditorStyles,\n\t\tsettings.disableLayoutStyles,\n\t\tsettings.styles,\n\t\thasThemeStyleSupport,\n\t] );\n}\n\n/**\n * @param {Object} props\n * @param {boolean} props.isLegacy True when the editor canvas is not in an iframe.\n */\nfunction MetaBoxesMain( { isLegacy } ) {\n\tconst [ isOpen, openHeight, hasAnyVisible ] = useSelect( ( select ) => {\n\t\tconst { get } = select( preferencesStore );\n\t\tconst { isMetaBoxLocationVisible } = select( editPostStore );\n\t\treturn [\n\t\t\t!! get( 'core/edit-post', 'metaBoxesMainIsOpen' ),\n\t\t\tget( 'core/edit-post', 'metaBoxesMainOpenHeight' ),\n\t\t\tisMetaBoxLocationVisible( 'normal' ) ||\n\t\t\t\tisMetaBoxLocationVisible( 'advanced' ) ||\n\t\t\t\tisMetaBoxLocationVisible( 'side' ),\n\t\t];\n\t}, [] );\n\tconst { set: setPreference } = useDispatch( preferencesStore );\n\tconst metaBoxesMainRef = useRef();\n\tconst isShort = useMediaQuery( '(max-height: 549px)' );\n\n\tconst [ { min, max }, setHeightConstraints ] = useState( () => ( {} ) );\n\t// Keeps the resizable area\u2019s size constraints updated taking into account\n\t// editor notices. The constraints are also used to derive the value for the\n\t// aria-valuenow attribute on the separator.\n\tconst effectSizeConstraints = useRefEffect( ( node ) => {\n\t\tconst container = node.closest(\n\t\t\t'.interface-interface-skeleton__content'\n\t\t);\n\t\tif ( ! container ) {\n\t\t\treturn;\n\t\t}\n\t\tconst noticeLists = container.querySelectorAll(\n\t\t\t':scope > .components-notice-list'\n\t\t);\n\t\tconst resizeHandle = container.querySelector(\n\t\t\t'.edit-post-meta-boxes-main__presenter'\n\t\t);\n\t\tconst deriveConstraints = () => {\n\t\t\tconst fullHeight = container.offsetHeight;\n\t\t\tlet nextMax = fullHeight;\n\t\t\tfor ( const element of noticeLists ) {\n\t\t\t\tnextMax -= element.offsetHeight;\n\t\t\t}\n\t\t\tconst nextMin = resizeHandle.offsetHeight;\n\t\t\tsetHeightConstraints( { min: nextMin, max: nextMax } );\n\t\t};\n\t\tconst observer = new window.ResizeObserver( deriveConstraints );\n\t\tobserver.observe( container );\n\t\tfor ( const element of noticeLists ) {\n\t\t\tobserver.observe( element );\n\t\t}\n\t\treturn () => observer.disconnect();\n\t}, [] );\n\n\tconst resizeDataRef = useRef( {} );\n\tconst separatorRef = useRef();\n\tconst separatorHelpId = useId();\n\n\t/**\n\t * @param {number|'auto'} [candidateHeight] Height in pixels or 'auto'.\n\t * @param {boolean} isPersistent Whether to persist the height in preferences.\n\t * @param {boolean} isInstant Whether to update the height in the DOM.\n\t */\n\tconst applyHeight = (\n\t\tcandidateHeight = 'auto',\n\t\tisPersistent,\n\t\tisInstant\n\t) => {\n\t\tif ( candidateHeight === 'auto' ) {\n\t\t\tisPersistent = false; // Just in case \u2014 \u201Cauto\u201D should never persist.\n\t\t} else {\n\t\t\tcandidateHeight = Math.min( max, Math.max( min, candidateHeight ) );\n\t\t}\n\t\tif ( isPersistent ) {\n\t\t\tsetPreference(\n\t\t\t\t'core/edit-post',\n\t\t\t\t'metaBoxesMainOpenHeight',\n\t\t\t\tcandidateHeight\n\t\t\t);\n\t\t}\n\t\t// Updates aria-valuenow only when not persisting the value because otherwise\n\t\t// it's done by the render that persisting the value causes.\n\t\telse if ( ! isShort ) {\n\t\t\tseparatorRef.current.ariaValueNow =\n\t\t\t\tgetAriaValueNow( candidateHeight );\n\t\t}\n\t\tif ( isInstant ) {\n\t\t\tmetaBoxesMainRef.current.updateSize( {\n\t\t\t\theight: candidateHeight,\n\t\t\t\t// Oddly, when the event that triggered this was not from the mouse (e.g. keydown),\n\t\t\t\t// if `width` is left unspecified a subsequent drag gesture applies a fixed\n\t\t\t\t// width and the pane fails to widen/narrow with parent width changes from\n\t\t\t\t// sidebars opening/closing or window resizes.\n\t\t\t\twidth: 'auto',\n\t\t\t} );\n\t\t}\n\t};\n\tconst getRenderValues = useEvent( () => ( { isOpen, openHeight, min } ) );\n\t// Sets the height to 'auto' when not resizable (isShort) and to the\n\t// preferred height when resizable.\n\tuseEffect( () => {\n\t\tconst fresh = getRenderValues();\n\t\t// Tests for `min` having a value to skip the first render.\n\t\tif ( fresh.min !== undefined && metaBoxesMainRef.current ) {\n\t\t\tconst usedOpenHeight = isShort ? 'auto' : fresh.openHeight;\n\t\t\tconst usedHeight = fresh.isOpen ? usedOpenHeight : fresh.min;\n\t\t\tapplyHeight( usedHeight, false, true );\n\t\t}\n\t}, [ isShort ] );\n\n\tif ( ! hasAnyVisible ) {\n\t\treturn;\n\t}\n\n\tconst contents = (\n\t\t<div\n\t\t\t// The class name 'edit-post-layout__metaboxes' is retained because some plugins use it.\n\t\t\tclassName=\"edit-post-layout__metaboxes edit-post-meta-boxes-main__liner\"\n\t\t\thidden={ ! isLegacy && ! isOpen }\n\t\t>\n\t\t\t<MetaBoxes location=\"normal\" />\n\t\t\t<MetaBoxes location=\"advanced\" />\n\t\t</div>\n\t);\n\n\tif ( isLegacy ) {\n\t\treturn contents;\n\t}\n\n\tconst isAutoHeight = openHeight === undefined;\n\tconst getAriaValueNow = ( height ) =>\n\t\tMath.round( ( ( height - min ) / ( max - min ) ) * 100 );\n\tconst usedAriaValueNow =\n\t\tmax === undefined || isAutoHeight ? 50 : getAriaValueNow( openHeight );\n\n\tconst persistIsOpen = ( to = ! isOpen ) =>\n\t\tsetPreference( 'core/edit-post', 'metaBoxesMainIsOpen', to );\n\n\t// TODO: Support more/all keyboard interactions from the window splitter pattern:\n\t// https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/\n\tconst onSeparatorKeyDown = ( event ) => {\n\t\tconst delta = { ArrowUp: 20, ArrowDown: -20 }[ event.key ];\n\t\tif ( delta ) {\n\t\t\tconst pane = metaBoxesMainRef.current.resizable;\n\t\t\tconst fromHeight = isAutoHeight ? pane.offsetHeight : openHeight;\n\t\t\tconst nextHeight = delta + fromHeight;\n\t\t\tapplyHeight( nextHeight, true, true );\n\t\t\tpersistIsOpen( nextHeight > min );\n\t\t\tevent.preventDefault();\n\t\t}\n\t};\n\tconst paneLabel = __( 'Meta Boxes' );\n\n\tconst toggle = (\n\t\t<button\n\t\t\taria-expanded={ isOpen }\n\t\t\tonClick={ ( { detail } ) => {\n\t\t\t\tconst { isToggleInferred } = resizeDataRef.current;\n\t\t\t\tif ( isShort || ! detail || isToggleInferred ) {\n\t\t\t\t\tpersistIsOpen();\n\t\t\t\t\tconst usedOpenHeight = isShort ? 'auto' : openHeight;\n\t\t\t\t\tconst usedHeight = isOpen ? min : usedOpenHeight;\n\t\t\t\t\tapplyHeight( usedHeight, false, true );\n\t\t\t\t}\n\t\t\t} }\n\t\t\t// Prevents resizing in short viewports.\n\t\t\t{ ...( isShort && {\n\t\t\t\tonMouseDown: ( event ) => event.stopPropagation(),\n\t\t\t\tonTouchStart: ( event ) => event.stopPropagation(),\n\t\t\t} ) }\n\t\t>\n\t\t\t{ paneLabel }\n\t\t\t<Icon icon={ isOpen ? chevronUp : chevronDown } />\n\t\t</button>\n\t);\n\n\tconst separator = ! isShort && (\n\t\t<>\n\t\t\t<Tooltip text={ __( 'Drag to resize' ) }>\n\t\t\t\t<button // eslint-disable-line jsx-a11y/role-supports-aria-props\n\t\t\t\t\tref={ separatorRef }\n\t\t\t\t\trole=\"separator\" // eslint-disable-line jsx-a11y/no-interactive-element-to-noninteractive-role\n\t\t\t\t\taria-valuenow={ usedAriaValueNow }\n\t\t\t\t\taria-label={ __( 'Drag to resize' ) }\n\t\t\t\t\taria-describedby={ separatorHelpId }\n\t\t\t\t\tonKeyDown={ onSeparatorKeyDown }\n\t\t\t\t/>\n\t\t\t</Tooltip>\n\t\t\t<VisuallyHidden id={ separatorHelpId }>\n\t\t\t\t{ __(\n\t\t\t\t\t'Use up and down arrow keys to resize the meta box panel.'\n\t\t\t\t) }\n\t\t\t</VisuallyHidden>\n\t\t</>\n\t);\n\n\tconst paneProps = /** @type {Parameters<typeof ResizableBox>[0]} */ ( {\n\t\tas: NavigableRegion,\n\t\tref: metaBoxesMainRef,\n\t\tclassName: 'edit-post-meta-boxes-main',\n\t\tdefaultSize: { height: isOpen ? openHeight : 0 },\n\t\tminHeight: min,\n\t\tmaxHeight: max,\n\t\tenable: { top: true },\n\t\thandleClasses: { top: 'edit-post-meta-boxes-main__presenter' },\n\t\thandleComponent: {\n\t\t\ttop: (\n\t\t\t\t<>\n\t\t\t\t\t{ toggle }\n\t\t\t\t\t{ separator }\n\t\t\t\t</>\n\t\t\t),\n\t\t},\n\t\t// Avoids hiccups while dragging over objects like iframes and ensures that\n\t\t// the event to end the drag is captured by the target (resize handle)\n\t\t// whether or not it\u2019s under the pointer.\n\t\tonPointerDown: ( { pointerId, target } ) => {\n\t\t\tif ( separatorRef.current?.parentElement.contains( target ) ) {\n\t\t\t\ttarget.setPointerCapture( pointerId );\n\t\t\t}\n\t\t},\n\t\tonResizeStart: ( { timeStamp }, direction, elementRef ) => {\n\t\t\tif ( isAutoHeight ) {\n\t\t\t\t// Sets the starting height to avoid visual jumps in height and\n\t\t\t\t// aria-valuenow being `NaN` for the first (few) resize events.\n\t\t\t\tapplyHeight( elementRef.offsetHeight, false, true );\n\t\t\t}\n\t\t\telementRef.classList.add( 'is-resizing' );\n\t\t\tresizeDataRef.current = { timeStamp, maxDelta: 0 };\n\t\t},\n\t\tonResize: ( event, direction, elementRef, delta ) => {\n\t\t\tconst { maxDelta } = resizeDataRef.current;\n\t\t\tconst newDelta = Math.abs( delta.height );\n\t\t\tresizeDataRef.current.maxDelta = Math.max( maxDelta, newDelta );\n\t\t\tapplyHeight( metaBoxesMainRef.current.state.height );\n\t\t},\n\t\tonResizeStop: ( event, direction, elementRef ) => {\n\t\t\telementRef.classList.remove( 'is-resizing' );\n\t\t\tconst duration = event.timeStamp - resizeDataRef.current.timeStamp;\n\t\t\tconst wasSeparator = event.target === separatorRef.current;\n\t\t\tconst { maxDelta } = resizeDataRef.current;\n\t\t\tconst isToggleInferred =\n\t\t\t\tmaxDelta < 1 || ( duration < 144 && maxDelta < 5 );\n\t\t\tif ( isShort || ( ! wasSeparator && isToggleInferred ) ) {\n\t\t\t\tresizeDataRef.current.isToggleInferred = true;\n\t\t\t} else {\n\t\t\t\tconst { height } = metaBoxesMainRef.current.state;\n\t\t\t\tconst nextIsOpen = height > min;\n\t\t\t\tpersistIsOpen( nextIsOpen );\n\t\t\t\t// Persists height only if still open. This is so that when closed by a drag the\n\t\t\t\t// prior height can be restored by the toggle button instead of having to drag\n\t\t\t\t// the pane open again. Also, if already closed, a click on the separator won\u2019t\n\t\t\t\t// persist the height as the minimum.\n\t\t\t\tif ( nextIsOpen ) {\n\t\t\t\t\tapplyHeight( height, true );\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t} );\n\n\treturn (\n\t\t<ResizableBox aria-label={ paneLabel } { ...paneProps }>\n\t\t\t<meta ref={ effectSizeConstraints } />\n\t\t\t{ contents }\n\t\t</ResizableBox>\n\t);\n}\n\nfunction Layout( {\n\tpostId: initialPostId,\n\tpostType: initialPostType,\n\tsettings,\n\tinitialEdits,\n} ) {\n\tuseEditPostCommands();\n\tconst shouldIframe = useShouldIframe();\n\tconst { createErrorNotice } = useDispatch( noticesStore );\n\tconst {\n\t\tcurrentPost: { postId: currentPostId, postType: currentPostType },\n\t\tonNavigateToEntityRecord,\n\t\tonNavigateToPreviousEntityRecord,\n\t} = useNavigateToEntityRecord(\n\t\tinitialPostId,\n\t\tinitialPostType,\n\t\t'post-only'\n\t);\n\tconst isEditingTemplate = currentPostType === 'wp_template';\n\tconst {\n\t\tmode,\n\t\tisFullscreenActive,\n\t\thasResolvedMode,\n\t\thasActiveMetaboxes,\n\t\thasBlockSelected,\n\t\tshowIconLabels,\n\t\tisDistractionFree,\n\t\tshowMetaBoxes,\n\t\tisWelcomeGuideVisible,\n\t\ttemplateId,\n\t\tisDevicePreview,\n\t} = useSelect(\n\t\t( select ) => {\n\t\t\tconst { get } = select( preferencesStore );\n\t\t\tconst { isFeatureActive, hasMetaBoxes } = select( editPostStore );\n\t\t\tconst { canUser, getPostType, getTemplateId } = unlock(\n\t\t\t\tselect( coreStore )\n\t\t\t);\n\n\t\t\tconst supportsTemplateMode = settings.supportsTemplateMode;\n\t\t\tconst isViewable =\n\t\t\t\tgetPostType( currentPostType )?.viewable ?? false;\n\t\t\tconst canViewTemplate = canUser( 'read', {\n\t\t\t\tkind: 'postType',\n\t\t\t\tname: 'wp_template',\n\t\t\t} );\n\t\t\tconst { getBlockSelectionStart, isZoomOut } = unlock(\n\t\t\t\tselect( blockEditorStore )\n\t\t\t);\n\t\t\tconst { getEditorMode, getDefaultRenderingMode, getDeviceType } =\n\t\t\t\tunlock( select( editorStore ) );\n\t\t\tconst isNotDesignPostType =\n\t\t\t\t! DESIGN_POST_TYPES.includes( currentPostType );\n\t\t\tconst isDirectlyEditingPattern =\n\t\t\t\tcurrentPostType === 'wp_block' &&\n\t\t\t\t! onNavigateToPreviousEntityRecord;\n\t\t\tconst _templateId = getTemplateId( currentPostType, currentPostId );\n\t\t\tconst defaultMode = getDefaultRenderingMode( currentPostType );\n\n\t\t\treturn {\n\t\t\t\tmode: getEditorMode(),\n\t\t\t\tisFullscreenActive: isFeatureActive( 'fullscreenMode' ),\n\t\t\t\thasActiveMetaboxes: hasMetaBoxes(),\n\t\t\t\thasResolvedMode:\n\t\t\t\t\tdefaultMode === 'template-locked'\n\t\t\t\t\t\t? !! _templateId\n\t\t\t\t\t\t: defaultMode !== undefined,\n\t\t\t\thasBlockSelected: !! getBlockSelectionStart(),\n\t\t\t\tshowIconLabels: get( 'core', 'showIconLabels' ),\n\t\t\t\tisDistractionFree: get( 'core', 'distractionFree' ),\n\t\t\t\tshowMetaBoxes:\n\t\t\t\t\t( isNotDesignPostType && ! isZoomOut() ) ||\n\t\t\t\t\tisDirectlyEditingPattern,\n\t\t\t\tisWelcomeGuideVisible: isFeatureActive( 'welcomeGuide' ),\n\t\t\t\ttemplateId:\n\t\t\t\t\tsupportsTemplateMode &&\n\t\t\t\t\tisViewable &&\n\t\t\t\t\tcanViewTemplate &&\n\t\t\t\t\t! isEditingTemplate\n\t\t\t\t\t\t? _templateId\n\t\t\t\t\t\t: null,\n\t\t\t\tisDevicePreview: getDeviceType() !== 'Desktop',\n\t\t\t};\n\t\t},\n\t\t[\n\t\t\tcurrentPostType,\n\t\t\tcurrentPostId,\n\t\t\tisEditingTemplate,\n\t\t\tsettings.supportsTemplateMode,\n\t\t\tonNavigateToPreviousEntityRecord,\n\t\t]\n\t);\n\n\tuseMetaBoxInitialization( hasActiveMetaboxes && hasResolvedMode );\n\n\t// Set the right context for the command palette\n\tconst commandContext = hasBlockSelected\n\t\t? 'block-selection-edit'\n\t\t: 'entity-edit';\n\tuseCommandContext( commandContext );\n\tconst styles = useEditorStyles( settings );\n\tconst editorSettings = useMemo(\n\t\t() => ( {\n\t\t\t...settings,\n\t\t\tstyles,\n\t\t\tonNavigateToEntityRecord,\n\t\t\tonNavigateToPreviousEntityRecord,\n\t\t\tdefaultRenderingMode: 'post-only',\n\t\t} ),\n\t\t[\n\t\t\tsettings,\n\t\t\tstyles,\n\t\t\tonNavigateToEntityRecord,\n\t\t\tonNavigateToPreviousEntityRecord,\n\t\t]\n\t);\n\n\t// We need to add the show-icon-labels class to the body element so it is applied to modals.\n\tif ( showIconLabels ) {\n\t\tdocument.body.classList.add( 'show-icon-labels' );\n\t} else {\n\t\tdocument.body.classList.remove( 'show-icon-labels' );\n\t}\n\n\tconst navigateRegionsProps = useNavigateRegions();\n\n\tconst className = clsx( 'edit-post-layout', 'is-mode-' + mode, {\n\t\t'has-metaboxes': hasActiveMetaboxes,\n\t} );\n\n\tfunction onPluginAreaError( name ) {\n\t\tcreateErrorNotice(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %s: plugin name */\n\t\t\t\t__(\n\t\t\t\t\t'The \"%s\" plugin has encountered an error and cannot be rendered.'\n\t\t\t\t),\n\t\t\t\tname\n\t\t\t)\n\t\t);\n\t}\n\n\tconst { createSuccessNotice } = useDispatch( noticesStore );\n\n\tconst onActionPerformed = useCallback(\n\t\t( actionId, items ) => {\n\t\t\tswitch ( actionId ) {\n\t\t\t\tcase 'move-to-trash':\n\t\t\t\t\t{\n\t\t\t\t\t\tdocument.location.href = addQueryArgs( 'edit.php', {\n\t\t\t\t\t\t\ttrashed: 1,\n\t\t\t\t\t\t\tpost_type: items[ 0 ].type,\n\t\t\t\t\t\t\tids: items[ 0 ].id,\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'duplicate-post':\n\t\t\t\t\t{\n\t\t\t\t\t\tconst newItem = items[ 0 ];\n\t\t\t\t\t\tconst title =\n\t\t\t\t\t\t\ttypeof newItem.title === 'string'\n\t\t\t\t\t\t\t\t? newItem.title\n\t\t\t\t\t\t\t\t: newItem.title?.rendered;\n\t\t\t\t\t\tcreateSuccessNotice(\n\t\t\t\t\t\t\tsprintf(\n\t\t\t\t\t\t\t\t// translators: %s: Title of the created post or template, e.g: \"Hello world\".\n\t\t\t\t\t\t\t\t__( '\"%s\" successfully created.' ),\n\t\t\t\t\t\t\t\tdecodeEntities( title ) || __( '(no title)' )\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t\t\t\t\tid: 'duplicate-post-action',\n\t\t\t\t\t\t\t\tactions: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tlabel: __( 'Edit' ),\n\t\t\t\t\t\t\t\t\t\tonClick: () => {\n\t\t\t\t\t\t\t\t\t\t\tconst postId = newItem.id;\n\t\t\t\t\t\t\t\t\t\t\tdocument.location.href =\n\t\t\t\t\t\t\t\t\t\t\t\taddQueryArgs( 'post.php', {\n\t\t\t\t\t\t\t\t\t\t\t\t\tpost: postId,\n\t\t\t\t\t\t\t\t\t\t\t\t\taction: 'edit',\n\t\t\t\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t},\n\t\t[ createSuccessNotice ]\n\t);\n\n\tconst initialPost = useMemo( () => {\n\t\treturn {\n\t\t\ttype: initialPostType,\n\t\t\tid: initialPostId,\n\t\t};\n\t}, [ initialPostType, initialPostId ] );\n\n\tconst backButton =\n\t\tuseViewportMatch( 'medium' ) && isFullscreenActive ? (\n\t\t\t<BackButton initialPost={ initialPost } />\n\t\t) : null;\n\n\treturn (\n\t\t<SlotFillProvider>\n\t\t\t<ErrorBoundary canCopyContent>\n\t\t\t\t<WelcomeGuide postType={ currentPostType } />\n\t\t\t\t<div\n\t\t\t\t\tclassName={ navigateRegionsProps.className }\n\t\t\t\t\t{ ...navigateRegionsProps }\n\t\t\t\t\tref={ navigateRegionsProps.ref }\n\t\t\t\t>\n\t\t\t\t\t<Editor\n\t\t\t\t\t\tsettings={ editorSettings }\n\t\t\t\t\t\tinitialEdits={ initialEdits }\n\t\t\t\t\t\tpostType={ currentPostType }\n\t\t\t\t\t\tpostId={ currentPostId }\n\t\t\t\t\t\ttemplateId={ templateId }\n\t\t\t\t\t\tclassName={ className }\n\t\t\t\t\t\tforceIsDirty={ hasActiveMetaboxes }\n\t\t\t\t\t\tdisableIframe={ ! shouldIframe }\n\t\t\t\t\t\t// We should auto-focus the canvas (title) on load.\n\t\t\t\t\t\t// eslint-disable-next-line jsx-a11y/no-autofocus\n\t\t\t\t\t\tautoFocus={ ! isWelcomeGuideVisible }\n\t\t\t\t\t\tonActionPerformed={ onActionPerformed }\n\t\t\t\t\t\textraSidebarPanels={\n\t\t\t\t\t\t\tshowMetaBoxes && <MetaBoxes location=\"side\" />\n\t\t\t\t\t\t}\n\t\t\t\t\t\textraContent={\n\t\t\t\t\t\t\t! isDistractionFree &&\n\t\t\t\t\t\t\tshowMetaBoxes && (\n\t\t\t\t\t\t\t\t<MetaBoxesMain\n\t\t\t\t\t\t\t\t\tisLegacy={\n\t\t\t\t\t\t\t\t\t\t! shouldIframe || isDevicePreview\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t<PostLockedModal />\n\t\t\t\t\t\t<EditorInitialization />\n\t\t\t\t\t\t<FullscreenMode isActive={ isFullscreenActive } />\n\t\t\t\t\t\t<BrowserURL />\n\t\t\t\t\t\t<UnsavedChangesWarning />\n\t\t\t\t\t\t<AutosaveMonitor />\n\t\t\t\t\t\t<LocalAutosaveMonitor />\n\t\t\t\t\t\t<EditPostKeyboardShortcuts />\n\t\t\t\t\t\t<EditorKeyboardShortcutsRegister />\n\t\t\t\t\t\t<BlockKeyboardShortcuts />\n\t\t\t\t\t\t{ currentPostType === 'wp_block' && (\n\t\t\t\t\t\t\t<InitPatternModal />\n\t\t\t\t\t\t) }\n\t\t\t\t\t\t<PluginArea onError={ onPluginAreaError } />\n\t\t\t\t\t\t<PostEditorMoreMenu />\n\t\t\t\t\t\t{ backButton }\n\t\t\t\t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AAA,YACA,UAAW;AAAA,YACX;AAAA,YACA,UAAW;AAAA,YACX,QAAS;AAAA,YACT;AAAA,YACA;AAAA,YACA,cAAe;AAAA,YACf,eAAgB,CAAE;AAAA,YAGlB,WAAY,CAAE;AAAA,YACd;AAAA,YACA,oBACC,iBAAiB,4CAAC,kBAAAV,SAAA,EAAU,UAAS,QAAO;AAAA,YAE7C,cACC,CAAE,qBACF,iBACC;AAAA,cAAC;AAAA;AAAA,gBACA,UACC,CAAE,gBAAgB;AAAA;AAAA,YAEpB;AAAA,YAIF;AAAA,0DAAC,iCAAgB;AAAA,cACjB,4CAAC,6BAAAW,SAAA,EAAqB;AAAA,cACtB,4CAAC,kBAAe,UAAW,oBAAqB;AAAA,cAChD,4CAAC,mBAAAC,SAAA,EAAW;AAAA,cACZ,4CAAC,uCAAsB;AAAA,cACvB,4CAAC,iCAAgB;AAAA,cACjB,4CAAC,sCAAqB;AAAA,cACtB,4CAAC,0BAAAC,SAAA,EAA0B;AAAA,cAC3B,4CAAC,iDAAgC;AAAA,cACjC,4CAAC,0BAAuB;AAAA,cACtB,oBAAoB,cACrB,4CAAC,0BAAAC,SAAA,EAAiB;AAAA,cAEnB,4CAAC,6BAAW,SAAU,mBAAoB;AAAA,cAC1C,4CAAC,iBAAAC,SAAA,EAAmB;AAAA,cAClB;AAAA,cACF,4CAAC,iCAAgB;AAAA;AAAA;AAAA,QAClB;AAAA;AAAA,IACD;AAAA,KACD,GACD;AAEF;AAEA,IAAO,iBAAQ;",
4
+ "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { NavigableRegion } from '@wordpress/admin-ui';\nimport {\n\tAutosaveMonitor,\n\tLocalAutosaveMonitor,\n\tUnsavedChangesWarning,\n\tEditorKeyboardShortcutsRegister,\n\tEditorSnackbars,\n\tErrorBoundary,\n\tPostLockedModal,\n\tstore as editorStore,\n\tprivateApis as editorPrivateApis,\n} from '@wordpress/editor';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { getLayoutStyles } from '@wordpress/global-styles-engine';\nimport { PluginArea } from '@wordpress/plugins';\nimport { __, sprintf } from '@wordpress/i18n';\nimport {\n\tuseCallback,\n\tuseEffect,\n\tuseMemo,\n\tuseId,\n\tuseRef,\n\tuseState,\n} from '@wordpress/element';\nimport { chevronDown, chevronUp } from '@wordpress/icons';\nimport { store as noticesStore } from '@wordpress/notices';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { privateApis as commandsPrivateApis } from '@wordpress/commands';\nimport { privateApis as blockLibraryPrivateApis } from '@wordpress/block-library';\nimport { addQueryArgs } from '@wordpress/url';\nimport { decodeEntities } from '@wordpress/html-entities';\nimport { store as coreStore } from '@wordpress/core-data';\nimport {\n\tIcon,\n\tResizableBox,\n\tSlotFillProvider,\n\tTooltip,\n\tVisuallyHidden,\n\t__unstableUseNavigateRegions as useNavigateRegions,\n} from '@wordpress/components';\nimport {\n\tuseEvent,\n\tuseMediaQuery,\n\tuseRefEffect,\n\tuseViewportMatch,\n} from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport BackButton from '../back-button';\nimport EditorInitialization from '../editor-initialization';\nimport EditPostKeyboardShortcuts from '../keyboard-shortcuts';\nimport InitPatternModal from '../init-pattern-modal';\nimport BrowserURL from '../browser-url';\nimport MetaBoxes from '../meta-boxes';\nimport PostEditorMoreMenu from '../more-menu';\nimport WelcomeGuide from '../welcome-guide';\nimport { store as editPostStore } from '../../store';\nimport { unlock } from '../../lock-unlock';\nimport useEditPostCommands from '../../commands/use-commands';\nimport { useShouldIframe } from './use-should-iframe';\nimport useNavigateToEntityRecord from '../../hooks/use-navigate-to-entity-record';\nimport { useMetaBoxInitialization } from '../meta-boxes/use-meta-box-initialization';\n\nconst { useCommandContext } = unlock( commandsPrivateApis );\nconst { Editor, FullscreenMode } = unlock( editorPrivateApis );\nconst { BlockKeyboardShortcuts } = unlock( blockLibraryPrivateApis );\nconst DESIGN_POST_TYPES = [\n\t'wp_template',\n\t'wp_template_part',\n\t'wp_block',\n\t'wp_navigation',\n];\n\nfunction useEditorStyles( settings ) {\n\tconst { hasThemeStyleSupport } = useSelect( ( select ) => {\n\t\treturn {\n\t\t\thasThemeStyleSupport:\n\t\t\t\tselect( editPostStore ).isFeatureActive( 'themeStyles' ),\n\t\t};\n\t}, [] );\n\n\t// Compute the default styles.\n\treturn useMemo( () => {\n\t\tconst presetStyles =\n\t\t\tsettings.styles?.filter(\n\t\t\t\t( style ) =>\n\t\t\t\t\tstyle.__unstableType && style.__unstableType !== 'theme'\n\t\t\t) ?? [];\n\n\t\tconst defaultEditorStyles = [\n\t\t\t...( settings?.defaultEditorStyles ?? [] ),\n\t\t\t...presetStyles,\n\t\t];\n\n\t\t// Has theme styles if the theme supports them and if some styles were not preset styles (in which case they're theme styles).\n\t\tconst hasThemeStyles =\n\t\t\thasThemeStyleSupport &&\n\t\t\tpresetStyles.length !== ( settings.styles?.length ?? 0 );\n\n\t\t// If theme styles are not present or displayed, ensure that\n\t\t// base layout styles are still present in the editor.\n\t\tif ( ! settings.disableLayoutStyles && ! hasThemeStyles ) {\n\t\t\tdefaultEditorStyles.push( {\n\t\t\t\tcss: getLayoutStyles( {\n\t\t\t\t\tstyle: {},\n\t\t\t\t\tselector: 'body',\n\t\t\t\t\thasBlockGapSupport: false,\n\t\t\t\t\thasFallbackGapSupport: true,\n\t\t\t\t\tfallbackGapValue: '0.5em',\n\t\t\t\t} ),\n\t\t\t} );\n\t\t}\n\n\t\treturn hasThemeStyles ? settings.styles ?? [] : defaultEditorStyles;\n\t}, [\n\t\tsettings.defaultEditorStyles,\n\t\tsettings.disableLayoutStyles,\n\t\tsettings.styles,\n\t\thasThemeStyleSupport,\n\t] );\n}\n\n/**\n * @param {Object} props\n * @param {boolean} props.isLegacy True when the editor canvas is not in an iframe.\n */\nfunction MetaBoxesMain( { isLegacy } ) {\n\tconst [ isOpen, openHeight, hasAnyVisible ] = useSelect( ( select ) => {\n\t\tconst { get } = select( preferencesStore );\n\t\tconst { isMetaBoxLocationVisible } = select( editPostStore );\n\t\treturn [\n\t\t\t!! get( 'core/edit-post', 'metaBoxesMainIsOpen' ),\n\t\t\tget( 'core/edit-post', 'metaBoxesMainOpenHeight' ),\n\t\t\tisMetaBoxLocationVisible( 'normal' ) ||\n\t\t\t\tisMetaBoxLocationVisible( 'advanced' ) ||\n\t\t\t\tisMetaBoxLocationVisible( 'side' ),\n\t\t];\n\t}, [] );\n\tconst { set: setPreference } = useDispatch( preferencesStore );\n\tconst metaBoxesMainRef = useRef();\n\tconst isShort = useMediaQuery( '(max-height: 549px)' );\n\n\tconst [ { min, max }, setHeightConstraints ] = useState( () => ( {} ) );\n\t// Keeps the resizable area\u2019s size constraints updated taking into account\n\t// editor notices. The constraints are also used to derive the value for the\n\t// aria-valuenow attribute on the separator.\n\tconst effectSizeConstraints = useRefEffect( ( node ) => {\n\t\tconst container = node.closest(\n\t\t\t'.interface-interface-skeleton__content'\n\t\t);\n\t\tif ( ! container ) {\n\t\t\treturn;\n\t\t}\n\t\tconst noticeLists = container.querySelectorAll(\n\t\t\t':scope > .components-notice-list'\n\t\t);\n\t\tconst resizeHandle = container.querySelector(\n\t\t\t'.edit-post-meta-boxes-main__presenter'\n\t\t);\n\t\tconst deriveConstraints = () => {\n\t\t\tconst fullHeight = container.offsetHeight;\n\t\t\tlet nextMax = fullHeight;\n\t\t\tfor ( const element of noticeLists ) {\n\t\t\t\tnextMax -= element.offsetHeight;\n\t\t\t}\n\t\t\tconst nextMin = resizeHandle.offsetHeight;\n\t\t\tsetHeightConstraints( { min: nextMin, max: nextMax } );\n\t\t};\n\t\tconst observer = new window.ResizeObserver( deriveConstraints );\n\t\tobserver.observe( container );\n\t\tfor ( const element of noticeLists ) {\n\t\t\tobserver.observe( element );\n\t\t}\n\t\treturn () => observer.disconnect();\n\t}, [] );\n\n\tconst resizeDataRef = useRef( {} );\n\tconst separatorRef = useRef();\n\tconst separatorHelpId = useId();\n\n\t/**\n\t * @param {number|'auto'} [candidateHeight] Height in pixels or 'auto'.\n\t * @param {boolean} isPersistent Whether to persist the height in preferences.\n\t * @param {boolean} isInstant Whether to update the height in the DOM.\n\t */\n\tconst applyHeight = (\n\t\tcandidateHeight = 'auto',\n\t\tisPersistent,\n\t\tisInstant\n\t) => {\n\t\tif ( candidateHeight === 'auto' ) {\n\t\t\tisPersistent = false; // Just in case \u2014 \u201Cauto\u201D should never persist.\n\t\t} else {\n\t\t\tcandidateHeight = Math.min( max, Math.max( min, candidateHeight ) );\n\t\t}\n\t\tif ( isPersistent ) {\n\t\t\tsetPreference(\n\t\t\t\t'core/edit-post',\n\t\t\t\t'metaBoxesMainOpenHeight',\n\t\t\t\tcandidateHeight\n\t\t\t);\n\t\t}\n\t\t// Updates aria-valuenow only when not persisting the value because otherwise\n\t\t// it's done by the render that persisting the value causes.\n\t\telse if ( ! isShort ) {\n\t\t\tseparatorRef.current.ariaValueNow =\n\t\t\t\tgetAriaValueNow( candidateHeight );\n\t\t}\n\t\tif ( isInstant ) {\n\t\t\tmetaBoxesMainRef.current.updateSize( {\n\t\t\t\theight: candidateHeight,\n\t\t\t\t// Oddly, when the event that triggered this was not from the mouse (e.g. keydown),\n\t\t\t\t// if `width` is left unspecified a subsequent drag gesture applies a fixed\n\t\t\t\t// width and the pane fails to widen/narrow with parent width changes from\n\t\t\t\t// sidebars opening/closing or window resizes.\n\t\t\t\twidth: 'auto',\n\t\t\t} );\n\t\t}\n\t};\n\tconst getRenderValues = useEvent( () => ( { isOpen, openHeight, min } ) );\n\t// Sets the height to 'auto' when not resizable (isShort) and to the\n\t// preferred height when resizable.\n\tuseEffect( () => {\n\t\tconst fresh = getRenderValues();\n\t\t// Tests for `min` having a value to skip the first render.\n\t\tif ( fresh.min !== undefined && metaBoxesMainRef.current ) {\n\t\t\tconst usedOpenHeight = isShort ? 'auto' : fresh.openHeight;\n\t\t\tconst usedHeight = fresh.isOpen ? usedOpenHeight : fresh.min;\n\t\t\tapplyHeight( usedHeight, false, true );\n\t\t}\n\t}, [ isShort ] );\n\n\tif ( ! hasAnyVisible ) {\n\t\treturn;\n\t}\n\n\tconst contents = (\n\t\t<div\n\t\t\t// The class name 'edit-post-layout__metaboxes' is retained because some plugins use it.\n\t\t\tclassName=\"edit-post-layout__metaboxes edit-post-meta-boxes-main__liner\"\n\t\t\thidden={ ! isLegacy && ! isOpen }\n\t\t>\n\t\t\t<MetaBoxes location=\"normal\" />\n\t\t\t<MetaBoxes location=\"advanced\" />\n\t\t</div>\n\t);\n\n\tif ( isLegacy ) {\n\t\treturn contents;\n\t}\n\n\tconst isAutoHeight = openHeight === undefined;\n\tconst getAriaValueNow = ( height ) =>\n\t\tMath.round( ( ( height - min ) / ( max - min ) ) * 100 );\n\tconst usedAriaValueNow =\n\t\tmax === undefined || isAutoHeight ? 50 : getAriaValueNow( openHeight );\n\n\tconst persistIsOpen = ( to = ! isOpen ) =>\n\t\tsetPreference( 'core/edit-post', 'metaBoxesMainIsOpen', to );\n\n\t// TODO: Support more/all keyboard interactions from the window splitter pattern:\n\t// https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/\n\tconst onSeparatorKeyDown = ( event ) => {\n\t\tconst delta = { ArrowUp: 20, ArrowDown: -20 }[ event.key ];\n\t\tif ( delta ) {\n\t\t\tconst pane = metaBoxesMainRef.current.resizable;\n\t\t\tconst fromHeight = isAutoHeight ? pane.offsetHeight : openHeight;\n\t\t\tconst nextHeight = delta + fromHeight;\n\t\t\tapplyHeight( nextHeight, true, true );\n\t\t\tpersistIsOpen( nextHeight > min );\n\t\t\tevent.preventDefault();\n\t\t}\n\t};\n\tconst paneLabel = __( 'Meta Boxes' );\n\n\tconst toggle = (\n\t\t<button\n\t\t\taria-expanded={ isOpen }\n\t\t\tonClick={ ( { detail } ) => {\n\t\t\t\tconst { isToggleInferred } = resizeDataRef.current;\n\t\t\t\tif ( isShort || ! detail || isToggleInferred ) {\n\t\t\t\t\tpersistIsOpen();\n\t\t\t\t\tconst usedOpenHeight = isShort ? 'auto' : openHeight;\n\t\t\t\t\tconst usedHeight = isOpen ? min : usedOpenHeight;\n\t\t\t\t\tapplyHeight( usedHeight, false, true );\n\t\t\t\t}\n\t\t\t} }\n\t\t\t// Prevents resizing in short viewports.\n\t\t\t{ ...( isShort && {\n\t\t\t\tonMouseDown: ( event ) => event.stopPropagation(),\n\t\t\t\tonTouchStart: ( event ) => event.stopPropagation(),\n\t\t\t} ) }\n\t\t>\n\t\t\t{ paneLabel }\n\t\t\t<Icon icon={ isOpen ? chevronUp : chevronDown } />\n\t\t</button>\n\t);\n\n\tconst separator = ! isShort && (\n\t\t<>\n\t\t\t<Tooltip text={ __( 'Drag to resize' ) }>\n\t\t\t\t<button // eslint-disable-line jsx-a11y/role-supports-aria-props\n\t\t\t\t\tref={ separatorRef }\n\t\t\t\t\trole=\"separator\" // eslint-disable-line jsx-a11y/no-interactive-element-to-noninteractive-role\n\t\t\t\t\taria-valuenow={ usedAriaValueNow }\n\t\t\t\t\taria-label={ __( 'Drag to resize' ) }\n\t\t\t\t\taria-describedby={ separatorHelpId }\n\t\t\t\t\tonKeyDown={ onSeparatorKeyDown }\n\t\t\t\t/>\n\t\t\t</Tooltip>\n\t\t\t<VisuallyHidden id={ separatorHelpId }>\n\t\t\t\t{ __(\n\t\t\t\t\t'Use up and down arrow keys to resize the meta box panel.'\n\t\t\t\t) }\n\t\t\t</VisuallyHidden>\n\t\t</>\n\t);\n\n\tconst paneProps = /** @type {Parameters<typeof ResizableBox>[0]} */ ( {\n\t\tas: NavigableRegion,\n\t\tref: metaBoxesMainRef,\n\t\tclassName: 'edit-post-meta-boxes-main',\n\t\tdefaultSize: { height: isOpen ? openHeight : 0 },\n\t\tminHeight: min,\n\t\tmaxHeight: max,\n\t\tenable: { top: true },\n\t\thandleClasses: { top: 'edit-post-meta-boxes-main__presenter' },\n\t\thandleComponent: {\n\t\t\ttop: (\n\t\t\t\t<>\n\t\t\t\t\t{ toggle }\n\t\t\t\t\t{ separator }\n\t\t\t\t</>\n\t\t\t),\n\t\t},\n\t\t// Avoids hiccups while dragging over objects like iframes and ensures that\n\t\t// the event to end the drag is captured by the target (resize handle)\n\t\t// whether or not it\u2019s under the pointer.\n\t\tonPointerDown: ( { pointerId, target } ) => {\n\t\t\tif ( separatorRef.current?.parentElement.contains( target ) ) {\n\t\t\t\ttarget.setPointerCapture( pointerId );\n\t\t\t}\n\t\t},\n\t\tonResizeStart: ( { timeStamp }, direction, elementRef ) => {\n\t\t\tif ( isAutoHeight ) {\n\t\t\t\t// Sets the starting height to avoid visual jumps in height and\n\t\t\t\t// aria-valuenow being `NaN` for the first (few) resize events.\n\t\t\t\tapplyHeight( elementRef.offsetHeight, false, true );\n\t\t\t}\n\t\t\telementRef.classList.add( 'is-resizing' );\n\t\t\tresizeDataRef.current = { timeStamp, maxDelta: 0 };\n\t\t},\n\t\tonResize: ( event, direction, elementRef, delta ) => {\n\t\t\tconst { maxDelta } = resizeDataRef.current;\n\t\t\tconst newDelta = Math.abs( delta.height );\n\t\t\tresizeDataRef.current.maxDelta = Math.max( maxDelta, newDelta );\n\t\t\tapplyHeight( metaBoxesMainRef.current.state.height );\n\t\t},\n\t\tonResizeStop: ( event, direction, elementRef ) => {\n\t\t\telementRef.classList.remove( 'is-resizing' );\n\t\t\tconst duration = event.timeStamp - resizeDataRef.current.timeStamp;\n\t\t\tconst wasSeparator = event.target === separatorRef.current;\n\t\t\tconst { maxDelta } = resizeDataRef.current;\n\t\t\tconst isToggleInferred =\n\t\t\t\tmaxDelta < 1 || ( duration < 144 && maxDelta < 5 );\n\t\t\tif ( isShort || ( ! wasSeparator && isToggleInferred ) ) {\n\t\t\t\tresizeDataRef.current.isToggleInferred = true;\n\t\t\t} else {\n\t\t\t\tconst { height } = metaBoxesMainRef.current.state;\n\t\t\t\tconst nextIsOpen = height > min;\n\t\t\t\tpersistIsOpen( nextIsOpen );\n\t\t\t\t// Persists height only if still open. This is so that when closed by a drag the\n\t\t\t\t// prior height can be restored by the toggle button instead of having to drag\n\t\t\t\t// the pane open again. Also, if already closed, a click on the separator won\u2019t\n\t\t\t\t// persist the height as the minimum.\n\t\t\t\tif ( nextIsOpen ) {\n\t\t\t\t\tapplyHeight( height, true );\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t} );\n\n\treturn (\n\t\t<ResizableBox aria-label={ paneLabel } { ...paneProps }>\n\t\t\t<meta ref={ effectSizeConstraints } />\n\t\t\t{ contents }\n\t\t</ResizableBox>\n\t);\n}\n\nfunction Layout( {\n\tpostId: initialPostId,\n\tpostType: initialPostType,\n\tsettings,\n\tinitialEdits,\n} ) {\n\tuseEditPostCommands();\n\tconst shouldIframe = useShouldIframe();\n\tconst { createErrorNotice } = useDispatch( noticesStore );\n\tconst {\n\t\tcurrentPost: { postId: currentPostId, postType: currentPostType },\n\t\tonNavigateToEntityRecord,\n\t\tonNavigateToPreviousEntityRecord,\n\t\tpreviousSelectedBlockPath,\n\t} = useNavigateToEntityRecord(\n\t\tinitialPostId,\n\t\tinitialPostType,\n\t\t'post-only'\n\t);\n\tconst isEditingTemplate = currentPostType === 'wp_template';\n\tconst {\n\t\tmode,\n\t\tisFullscreenActive,\n\t\thasResolvedMode,\n\t\thasActiveMetaboxes,\n\t\thasBlockSelected,\n\t\tshowIconLabels,\n\t\tisDistractionFree,\n\t\tshowMetaBoxes,\n\t\tisWelcomeGuideVisible,\n\t\ttemplateId,\n\t\tisDevicePreview,\n\t} = useSelect(\n\t\t( select ) => {\n\t\t\tconst { get } = select( preferencesStore );\n\t\t\tconst { isFeatureActive, hasMetaBoxes } = select( editPostStore );\n\t\t\tconst { canUser, getPostType, getTemplateId } = unlock(\n\t\t\t\tselect( coreStore )\n\t\t\t);\n\n\t\t\tconst supportsTemplateMode = settings.supportsTemplateMode;\n\t\t\tconst isViewable =\n\t\t\t\tgetPostType( currentPostType )?.viewable ?? false;\n\t\t\tconst canViewTemplate = canUser( 'read', {\n\t\t\t\tkind: 'postType',\n\t\t\t\tname: 'wp_template',\n\t\t\t} );\n\t\t\tconst { getBlockSelectionStart, isZoomOut } = unlock(\n\t\t\t\tselect( blockEditorStore )\n\t\t\t);\n\t\t\tconst { getEditorMode, getDefaultRenderingMode, getDeviceType } =\n\t\t\t\tunlock( select( editorStore ) );\n\t\t\tconst isNotDesignPostType =\n\t\t\t\t! DESIGN_POST_TYPES.includes( currentPostType );\n\t\t\tconst isDirectlyEditingPattern =\n\t\t\t\tcurrentPostType === 'wp_block' &&\n\t\t\t\t! onNavigateToPreviousEntityRecord;\n\t\t\tconst _templateId = getTemplateId( currentPostType, currentPostId );\n\t\t\tconst defaultMode = getDefaultRenderingMode( currentPostType );\n\n\t\t\treturn {\n\t\t\t\tmode: getEditorMode(),\n\t\t\t\tisFullscreenActive: isFeatureActive( 'fullscreenMode' ),\n\t\t\t\thasActiveMetaboxes: hasMetaBoxes(),\n\t\t\t\thasResolvedMode:\n\t\t\t\t\tdefaultMode === 'template-locked'\n\t\t\t\t\t\t? !! _templateId\n\t\t\t\t\t\t: defaultMode !== undefined,\n\t\t\t\thasBlockSelected: !! getBlockSelectionStart(),\n\t\t\t\tshowIconLabels: get( 'core', 'showIconLabels' ),\n\t\t\t\tisDistractionFree: get( 'core', 'distractionFree' ),\n\t\t\t\tshowMetaBoxes:\n\t\t\t\t\t( isNotDesignPostType && ! isZoomOut() ) ||\n\t\t\t\t\tisDirectlyEditingPattern,\n\t\t\t\tisWelcomeGuideVisible: isFeatureActive( 'welcomeGuide' ),\n\t\t\t\ttemplateId:\n\t\t\t\t\tsupportsTemplateMode &&\n\t\t\t\t\tisViewable &&\n\t\t\t\t\tcanViewTemplate &&\n\t\t\t\t\t! isEditingTemplate\n\t\t\t\t\t\t? _templateId\n\t\t\t\t\t\t: null,\n\t\t\t\tisDevicePreview: getDeviceType() !== 'Desktop',\n\t\t\t};\n\t\t},\n\t\t[\n\t\t\tcurrentPostType,\n\t\t\tcurrentPostId,\n\t\t\tisEditingTemplate,\n\t\t\tsettings.supportsTemplateMode,\n\t\t\tonNavigateToPreviousEntityRecord,\n\t\t]\n\t);\n\n\tuseMetaBoxInitialization( hasActiveMetaboxes && hasResolvedMode );\n\n\t// Set the right context for the command palette\n\tconst commandContext = hasBlockSelected\n\t\t? 'block-selection-edit'\n\t\t: 'entity-edit';\n\tuseCommandContext( commandContext );\n\tconst styles = useEditorStyles( settings );\n\tconst editorSettings = useMemo(\n\t\t() => ( {\n\t\t\t...settings,\n\t\t\tstyles,\n\t\t\tonNavigateToEntityRecord,\n\t\t\tonNavigateToPreviousEntityRecord,\n\t\t\tdefaultRenderingMode: 'post-only',\n\t\t} ),\n\t\t[\n\t\t\tsettings,\n\t\t\tstyles,\n\t\t\tonNavigateToEntityRecord,\n\t\t\tonNavigateToPreviousEntityRecord,\n\t\t]\n\t);\n\n\t// We need to add the show-icon-labels class to the body element so it is applied to modals.\n\tif ( showIconLabels ) {\n\t\tdocument.body.classList.add( 'show-icon-labels' );\n\t} else {\n\t\tdocument.body.classList.remove( 'show-icon-labels' );\n\t}\n\n\tconst navigateRegionsProps = useNavigateRegions();\n\n\tconst className = clsx( 'edit-post-layout', 'is-mode-' + mode, {\n\t\t'has-metaboxes': hasActiveMetaboxes,\n\t} );\n\n\tfunction onPluginAreaError( name ) {\n\t\tcreateErrorNotice(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %s: plugin name */\n\t\t\t\t__(\n\t\t\t\t\t'The \"%s\" plugin has encountered an error and cannot be rendered.'\n\t\t\t\t),\n\t\t\t\tname\n\t\t\t)\n\t\t);\n\t}\n\n\tconst { createSuccessNotice } = useDispatch( noticesStore );\n\n\tconst onActionPerformed = useCallback(\n\t\t( actionId, items ) => {\n\t\t\tswitch ( actionId ) {\n\t\t\t\tcase 'move-to-trash':\n\t\t\t\t\t{\n\t\t\t\t\t\tdocument.location.href = addQueryArgs( 'edit.php', {\n\t\t\t\t\t\t\ttrashed: 1,\n\t\t\t\t\t\t\tpost_type: items[ 0 ].type,\n\t\t\t\t\t\t\tids: items[ 0 ].id,\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'duplicate-post':\n\t\t\t\t\t{\n\t\t\t\t\t\tconst newItem = items[ 0 ];\n\t\t\t\t\t\tconst title =\n\t\t\t\t\t\t\ttypeof newItem.title === 'string'\n\t\t\t\t\t\t\t\t? newItem.title\n\t\t\t\t\t\t\t\t: newItem.title?.rendered;\n\t\t\t\t\t\tcreateSuccessNotice(\n\t\t\t\t\t\t\tsprintf(\n\t\t\t\t\t\t\t\t// translators: %s: Title of the created post or template, e.g: \"Hello world\".\n\t\t\t\t\t\t\t\t__( '\"%s\" successfully created.' ),\n\t\t\t\t\t\t\t\tdecodeEntities( title ) || __( '(no title)' )\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t\t\t\t\tid: 'duplicate-post-action',\n\t\t\t\t\t\t\t\tactions: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tlabel: __( 'Edit' ),\n\t\t\t\t\t\t\t\t\t\tonClick: () => {\n\t\t\t\t\t\t\t\t\t\t\tconst postId = newItem.id;\n\t\t\t\t\t\t\t\t\t\t\tdocument.location.href =\n\t\t\t\t\t\t\t\t\t\t\t\taddQueryArgs( 'post.php', {\n\t\t\t\t\t\t\t\t\t\t\t\t\tpost: postId,\n\t\t\t\t\t\t\t\t\t\t\t\t\taction: 'edit',\n\t\t\t\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t},\n\t\t[ createSuccessNotice ]\n\t);\n\n\tconst initialPost = useMemo( () => {\n\t\treturn {\n\t\t\ttype: initialPostType,\n\t\t\tid: initialPostId,\n\t\t};\n\t}, [ initialPostType, initialPostId ] );\n\n\tconst backButton =\n\t\tuseViewportMatch( 'medium' ) && isFullscreenActive ? (\n\t\t\t<BackButton initialPost={ initialPost } />\n\t\t) : null;\n\n\treturn (\n\t\t<SlotFillProvider>\n\t\t\t<ErrorBoundary canCopyContent>\n\t\t\t\t<WelcomeGuide postType={ currentPostType } />\n\t\t\t\t<div\n\t\t\t\t\tclassName={ navigateRegionsProps.className }\n\t\t\t\t\t{ ...navigateRegionsProps }\n\t\t\t\t\tref={ navigateRegionsProps.ref }\n\t\t\t\t>\n\t\t\t\t\t<Editor\n\t\t\t\t\t\tsettings={ editorSettings }\n\t\t\t\t\t\tinitialEdits={ initialEdits }\n\t\t\t\t\t\tpostType={ currentPostType }\n\t\t\t\t\t\tpostId={ currentPostId }\n\t\t\t\t\t\ttemplateId={ templateId }\n\t\t\t\t\t\tclassName={ className }\n\t\t\t\t\t\tforceIsDirty={ hasActiveMetaboxes }\n\t\t\t\t\t\tdisableIframe={ ! shouldIframe }\n\t\t\t\t\t\t// We should auto-focus the canvas (title) on load.\n\t\t\t\t\t\t// eslint-disable-next-line jsx-a11y/no-autofocus\n\t\t\t\t\t\tautoFocus={ ! isWelcomeGuideVisible }\n\t\t\t\t\t\tonActionPerformed={ onActionPerformed }\n\t\t\t\t\t\tinitialSelection={ previousSelectedBlockPath }\n\t\t\t\t\t\textraSidebarPanels={\n\t\t\t\t\t\t\tshowMetaBoxes && <MetaBoxes location=\"side\" />\n\t\t\t\t\t\t}\n\t\t\t\t\t\textraContent={\n\t\t\t\t\t\t\t! isDistractionFree &&\n\t\t\t\t\t\t\tshowMetaBoxes && (\n\t\t\t\t\t\t\t\t<MetaBoxesMain\n\t\t\t\t\t\t\t\t\tisLegacy={\n\t\t\t\t\t\t\t\t\t\t! shouldIframe || isDevicePreview\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t<PostLockedModal />\n\t\t\t\t\t\t<EditorInitialization />\n\t\t\t\t\t\t<FullscreenMode isActive={ isFullscreenActive } />\n\t\t\t\t\t\t<BrowserURL />\n\t\t\t\t\t\t<UnsavedChangesWarning />\n\t\t\t\t\t\t<AutosaveMonitor />\n\t\t\t\t\t\t<LocalAutosaveMonitor />\n\t\t\t\t\t\t<EditPostKeyboardShortcuts />\n\t\t\t\t\t\t<EditorKeyboardShortcutsRegister />\n\t\t\t\t\t\t<BlockKeyboardShortcuts />\n\t\t\t\t\t\t{ currentPostType === 'wp_block' && (\n\t\t\t\t\t\t\t<InitPatternModal />\n\t\t\t\t\t\t) }\n\t\t\t\t\t\t<PluginArea onError={ onPluginAreaError } />\n\t\t\t\t\t\t<PostEditorMoreMenu />\n\t\t\t\t\t\t{ backButton }\n\t\t\t\t\t\t<EditorSnackbars />\n\t\t\t\t\t</Editor>\n\t\t\t\t</div>\n\t\t\t</ErrorBoundary>\n\t\t</SlotFillProvider>\n\t);\n}\n\nexport default Layout;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAKjB,sBAAgC;AAChC,oBAUO;AACP,kBAAuC;AACvC,0BAA0C;AAC1C,kCAAgC;AAChC,qBAA2B;AAC3B,kBAA4B;AAC5B,qBAOO;AACP,mBAAuC;AACvC,qBAAsC;AACtC,yBAA0C;AAC1C,sBAAmD;AACnD,2BAAuD;AACvD,iBAA6B;AAC7B,2BAA+B;AAC/B,uBAAmC;AACnC,wBAOO;AACP,qBAKO;AAKP,yBAAuB;AACvB,mCAAiC;AACjC,gCAAsC;AACtC,gCAA6B;AAC7B,yBAAuB;AACvB,wBAAsB;AACtB,uBAA+B;AAC/B,2BAAyB;AACzB,mBAAuC;AACvC,yBAAuB;AACvB,0BAAgC;AAChC,+BAAgC;AAChC,2CAAsC;AACtC,yCAAyC;AAgLvC;AA9KF,IAAM,EAAE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tB,oBAAoB,cACrB,4CAAC,0BAAAC,SAAA,EAAiB;AAAA,cAEnB,4CAAC,6BAAW,SAAU,mBAAoB;AAAA,cAC1C,4CAAC,iBAAAC,SAAA,EAAmB;AAAA,cAClB;AAAA,cACF,4CAAC,iCAAgB;AAAA;AAAA;AAAA,QAClB;AAAA;AAAA,IACD;AAAA,KACD,GACD;AAEF;AAEA,IAAO,iBAAQ;",
6
6
  "names": ["commandsPrivateApis", "editorPrivateApis", "blockLibraryPrivateApis", "editPostStore", "preferencesStore", "MetaBoxes", "useEditPostCommands", "noticesStore", "useNavigateToEntityRecord", "coreStore", "blockEditorStore", "editorStore", "useNavigateRegions", "clsx", "BackButton", "WelcomeGuide", "EditorInitialization", "BrowserURL", "EditPostKeyboardShortcuts", "InitPatternModal", "PostEditorMoreMenu"]
7
7
  }
@@ -26,7 +26,7 @@ var import_editor = require("@wordpress/editor");
26
26
  var import_data = require("@wordpress/data");
27
27
  var import_blocks = require("@wordpress/blocks");
28
28
  var import_block_editor = require("@wordpress/block-editor");
29
- var import_lock_unlock = require("../../lock-unlock");
29
+ var import_lock_unlock = require("../../lock-unlock.cjs");
30
30
  var isGutenbergPlugin = globalThis.IS_GUTENBERG_PLUGIN ? true : false;
31
31
  function useShouldIframe() {
32
32
  return (0, import_data.useSelect)((select) => {
@@ -48,4 +48,4 @@ function useShouldIframe() {
48
48
  0 && (module.exports = {
49
49
  useShouldIframe
50
50
  });
51
- //# sourceMappingURL=use-should-iframe.js.map
51
+ //# sourceMappingURL=use-should-iframe.cjs.map
@@ -33,9 +33,9 @@ __export(meta_boxes_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(meta_boxes_exports);
35
35
  var import_data = require("@wordpress/data");
36
- var import_meta_boxes_area = __toESM(require("./meta-boxes-area"));
37
- var import_meta_box_visibility = __toESM(require("./meta-box-visibility"));
38
- var import_store = require("../../store");
36
+ var import_meta_boxes_area = __toESM(require("./meta-boxes-area/index.cjs"));
37
+ var import_meta_box_visibility = __toESM(require("./meta-box-visibility.cjs"));
38
+ var import_store = require("../../store/index.cjs");
39
39
  var import_jsx_runtime = require("react/jsx-runtime");
40
40
  function MetaBoxes({ location }) {
41
41
  const metaBoxes = (0, import_data.useSelect)(
@@ -47,4 +47,4 @@ function MetaBoxes({ location }) {
47
47
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_meta_boxes_area.default, { location })
48
48
  ] });
49
49
  }
50
- //# sourceMappingURL=index.js.map
50
+ //# sourceMappingURL=index.cjs.map
@@ -47,4 +47,4 @@ function MetaBoxVisibility({ id }) {
47
47
  }, [id, isVisible]);
48
48
  return null;
49
49
  }
50
- //# sourceMappingURL=meta-box-visibility.js.map
50
+ //# sourceMappingURL=meta-box-visibility.cjs.map
@@ -36,7 +36,7 @@ var import_clsx = __toESM(require("clsx"));
36
36
  var import_element = require("@wordpress/element");
37
37
  var import_components = require("@wordpress/components");
38
38
  var import_data = require("@wordpress/data");
39
- var import_store = require("../../../store");
39
+ var import_store = require("../../../store/index.cjs");
40
40
  var import_jsx_runtime = require("react/jsx-runtime");
41
41
  function MetaBoxesArea({ location }) {
42
42
  const container = (0, import_element.useRef)(null);
@@ -73,4 +73,4 @@ function MetaBoxesArea({ location }) {
73
73
  ] });
74
74
  }
75
75
  var meta_boxes_area_default = MetaBoxesArea;
76
- //# sourceMappingURL=index.js.map
76
+ //# sourceMappingURL=index.cjs.map
@@ -25,7 +25,7 @@ module.exports = __toCommonJS(use_meta_box_initialization_exports);
25
25
  var import_data = require("@wordpress/data");
26
26
  var import_editor = require("@wordpress/editor");
27
27
  var import_element = require("@wordpress/element");
28
- var import_store = require("../../store");
28
+ var import_store = require("../../store/index.cjs");
29
29
  var useMetaBoxInitialization = (enabled) => {
30
30
  const isEnabledAndEditorReady = (0, import_data.useSelect)(
31
31
  (select) => enabled && select(import_editor.store).__unstableIsEditorReady(),
@@ -42,4 +42,4 @@ var useMetaBoxInitialization = (enabled) => {
42
42
  0 && (module.exports = {
43
43
  useMetaBoxInitialization
44
44
  });
45
- //# sourceMappingURL=use-meta-box-initialization.js.map
45
+ //# sourceMappingURL=use-meta-box-initialization.cjs.map
@@ -37,10 +37,10 @@ var import_compose = require("@wordpress/compose");
37
37
  var import_editor = require("@wordpress/editor");
38
38
  var import_keycodes = require("@wordpress/keycodes");
39
39
  var import_preferences = require("@wordpress/preferences");
40
- var import_lock_unlock = require("../../lock-unlock");
41
- var import_manage_patterns_menu_item = __toESM(require("./manage-patterns-menu-item"));
42
- var import_welcome_guide_menu_item = __toESM(require("./welcome-guide-menu-item"));
43
- var import_preferences_modal = __toESM(require("../preferences-modal"));
40
+ var import_lock_unlock = require("../../lock-unlock.cjs");
41
+ var import_manage_patterns_menu_item = __toESM(require("./manage-patterns-menu-item.cjs"));
42
+ var import_welcome_guide_menu_item = __toESM(require("./welcome-guide-menu-item.cjs"));
43
+ var import_preferences_modal = __toESM(require("../preferences-modal/index.cjs"));
44
44
  var import_jsx_runtime = require("react/jsx-runtime");
45
45
  var { ToolsMoreMenuGroup, ViewMoreMenuGroup } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
46
46
  var MoreMenu = () => {
@@ -68,4 +68,4 @@ var MoreMenu = () => {
68
68
  ] });
69
69
  };
70
70
  var more_menu_default = MoreMenu;
71
- //# sourceMappingURL=index.js.map
71
+ //# sourceMappingURL=index.cjs.map
@@ -45,4 +45,4 @@ function ManagePatternsMenuItem() {
45
45
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.MenuItem, { role: "menuitem", href: url, children: (0, import_i18n.__)("Manage patterns") });
46
46
  }
47
47
  var manage_patterns_menu_item_default = ManagePatternsMenuItem;
48
- //# sourceMappingURL=manage-patterns-menu-item.js.map
48
+ //# sourceMappingURL=manage-patterns-menu-item.cjs.map
@@ -41,4 +41,4 @@ function WelcomeGuideMenuItem() {
41
41
  }
42
42
  );
43
43
  }
44
- //# sourceMappingURL=welcome-guide-menu-item.js.map
44
+ //# sourceMappingURL=welcome-guide-menu-item.cjs.map
@@ -30,7 +30,7 @@ var import_data = require("@wordpress/data");
30
30
  var import_editor = require("@wordpress/editor");
31
31
  var import_preferences = require("@wordpress/preferences");
32
32
  var import_url = require("@wordpress/url");
33
- var import_lock_unlock = require("../../lock-unlock");
33
+ var import_lock_unlock = require("../../lock-unlock.cjs");
34
34
  var import_jsx_runtime = require("react/jsx-runtime");
35
35
  var { PreferenceBaseOption } = (0, import_lock_unlock.unlock)(import_preferences.privateApis);
36
36
  function submitCustomFieldsForm() {
@@ -82,4 +82,4 @@ function EnableCustomFieldsOption({ label }) {
82
82
  0 && (module.exports = {
83
83
  CustomFieldsConfirmation
84
84
  });
85
- //# sourceMappingURL=enable-custom-fields.js.map
85
+ //# sourceMappingURL=enable-custom-fields.cjs.map
@@ -25,7 +25,7 @@ module.exports = __toCommonJS(enable_panel_exports);
25
25
  var import_data = require("@wordpress/data");
26
26
  var import_editor = require("@wordpress/editor");
27
27
  var import_preferences = require("@wordpress/preferences");
28
- var import_lock_unlock = require("../../lock-unlock");
28
+ var import_lock_unlock = require("../../lock-unlock.cjs");
29
29
  var import_jsx_runtime = require("react/jsx-runtime");
30
30
  var { PreferenceBaseOption } = (0, import_lock_unlock.unlock)(import_preferences.privateApis);
31
31
  function EnablePanelOption(props) {
@@ -52,4 +52,4 @@ function EnablePanelOption(props) {
52
52
  }
53
53
  );
54
54
  }
55
- //# sourceMappingURL=enable-panel.js.map
55
+ //# sourceMappingURL=enable-panel.cjs.map
@@ -35,8 +35,8 @@ module.exports = __toCommonJS(preferences_modal_exports);
35
35
  var import_i18n = require("@wordpress/i18n");
36
36
  var import_preferences = require("@wordpress/preferences");
37
37
  var import_editor = require("@wordpress/editor");
38
- var import_lock_unlock = require("../../lock-unlock");
39
- var import_meta_boxes_section = __toESM(require("./meta-boxes-section"));
38
+ var import_lock_unlock = require("../../lock-unlock.cjs");
39
+ var import_meta_boxes_section = __toESM(require("./meta-boxes-section.cjs"));
40
40
  var import_jsx_runtime = require("react/jsx-runtime");
41
41
  var { PreferenceToggleControl } = (0, import_lock_unlock.unlock)(import_preferences.privateApis);
42
42
  var { PreferencesModal } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
@@ -55,4 +55,4 @@ function EditPostPreferencesModal() {
55
55
  };
56
56
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PreferencesModal, { extraSections });
57
57
  }
58
- //# sourceMappingURL=index.js.map
58
+ //# sourceMappingURL=index.cjs.map
@@ -37,10 +37,10 @@ var import_i18n = require("@wordpress/i18n");
37
37
  var import_data = require("@wordpress/data");
38
38
  var import_editor = require("@wordpress/editor");
39
39
  var import_preferences = require("@wordpress/preferences");
40
- var import_enable_custom_fields = __toESM(require("./enable-custom-fields"));
41
- var import_enable_panel = __toESM(require("./enable-panel"));
42
- var import_store = require("../../store");
43
- var import_lock_unlock = require("../../lock-unlock");
40
+ var import_enable_custom_fields = __toESM(require("./enable-custom-fields.cjs"));
41
+ var import_enable_panel = __toESM(require("./enable-panel.cjs"));
42
+ var import_store = require("../../store/index.cjs");
43
+ var import_lock_unlock = require("../../lock-unlock.cjs");
44
44
  var import_jsx_runtime = require("react/jsx-runtime");
45
45
  var { PreferencesModalSection } = (0, import_lock_unlock.unlock)(import_preferences.privateApis);
46
46
  function MetaBoxesSection({
@@ -79,4 +79,4 @@ var meta_boxes_section_default = (0, import_data.withSelect)((select) => {
79
79
  0 && (module.exports = {
80
80
  MetaBoxesSection
81
81
  });
82
- //# sourceMappingURL=meta-boxes-section.js.map
82
+ //# sourceMappingURL=meta-boxes-section.cjs.map
@@ -36,8 +36,8 @@ var import_data = require("@wordpress/data");
36
36
  var import_components = require("@wordpress/components");
37
37
  var import_i18n = require("@wordpress/i18n");
38
38
  var import_element = require("@wordpress/element");
39
- var import_image = __toESM(require("./image"));
40
- var import_store = require("../../store");
39
+ var import_image = __toESM(require("./image.cjs"));
40
+ var import_store = require("../../store/index.cjs");
41
41
  var import_jsx_runtime = require("react/jsx-runtime");
42
42
  function WelcomeGuideDefault() {
43
43
  const { toggleFeature } = (0, import_data.useDispatch)(import_store.store);
@@ -136,4 +136,4 @@ function WelcomeGuideDefault() {
136
136
  }
137
137
  );
138
138
  }
139
- //# sourceMappingURL=default.js.map
139
+ //# sourceMappingURL=default.cjs.map
@@ -35,4 +35,4 @@ function WelcomeGuideImage({ nonAnimatedSrc, animatedSrc }) {
35
35
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: animatedSrc, width: "312", height: "240", alt: "" })
36
36
  ] });
37
37
  }
38
- //# sourceMappingURL=image.js.map
38
+ //# sourceMappingURL=image.cjs.map