(()=>{"use strict";const e=window.wp.data,c=window.wp.i18n,t="cb-legacy-carousel-warning";let o=!1,i=null;(0,e.subscribe)((()=>{const s=(0,e.select)("core/block-editor").getBlocks().some((e=>"cb/carousel"===e.name));s!==i&&(i=s,!s||o||"undefined"!=typeof cbLegacySettings&&cbLegacySettings.hideLegacyNotice||((0,e.dispatch)("core/notices").createNotice("warning",(0,c.__)("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:t,isDismissible:!0}),o=!0),!s&&o&&((0,e.dispatch)("core/notices").removeNotice(t),o=!1))}))})();