(()=>{"use strict";const e=window.wp.data,t=window.wp.i18n,c="cb-legacy-carousel-warning";let i=!1,o=null;(0,e.subscribe)((()=>{const s=(0,e.select)("core/block-editor").getBlocks().some((e=>"cb/carousel"===e.name));s!==o&&(o=s,!s||i||"undefined"!=typeof cbLegacySettings&&cbLegacySettings.hideLegacyNotice||((0,e.dispatch)("core/notices").createNotice("warning",(0,t.__)("You're using a legacy Carousel Slider block (v1). Transform it to the new Carousel Slider block from the block toolbar (first button). The HTML and design will change, but your block settings will stay the same.","cb"),{id:c,isDismissible:!0,actions:[{label:(0,t.__)("Open settings to enable/disable legacy blocks","cb"),url:"/wp-admin/options-general.php?page=cb-carousel-settings",variant:"link"}]}),i=!0),!s&&i&&((0,e.dispatch)("core/notices").removeNotice(c),i=!1))}))})();