(()=>{"use strict";const t=window.wp.data,e=window.wp.hooks;let s=!1,i=!1;(0,t.subscribe)(()=>{const o=(0,t.select)("core/editor"),a=o.isSavingPost(),n=o.isAutosavingPost();if(!s&&a&&(s=!0,i=n),s&&!a){if(!i){const t=o.getEditedPostAttribute("status");"draft"!==t&&"auto-draft"!==t&&(0,e.doAction)("kadence.postSaved",{post:o.getCurrentPost(),permalink:o.getPermalink(),suffix:o.getPermalinkParts()?.suffix})}s=!1,i=!1}}),(this.kadence=this.kadence||{})["post-saved-event"]={}})();