(()=>{"use strict";const e=window.wp.apiFetch;(({noticeId:t,dismissPath:n,extraData:i={}})=>{const c=()=>{const c=document.getElementById(t),s=c?.querySelector("button.notice-dismiss");if(!c||!s)return;const o=c.dataset.nonce;if(!o)return;const a=async()=>{s.removeEventListener("click",a);try{await e({path:n,method:"POST",data:{...i,nonce:o}})}catch(e){console.error(`Failed to dismiss admin notice "${t}":`,e),s.addEventListener("click",a)}};s.addEventListener("click",a)};"function"==typeof window.requestIdleCallback?window.requestIdleCallback(c):window.setTimeout(c,0)})({noticeId:"careers__admin_notice",dismissPath:"/careers/v1/admin-notice"})})();