!function(t,n,o){const{tec:i}=window;o.selectors={dismissButton:"[data-tec-conditional-content-dismiss-button]",dismissedContainer:"[data-tec-conditional-content-dismiss-container]"},o.onDismissClick=n=>{n.preventDefault();let i=t(n.target);i.is(o.selectors.dismissButton)||(i=i.parents(o.selectors.dismissButton).eq(0));const e=i.parents(o.selectors.dismissedContainer).eq(0);if(!e.length)return;let s=i.data("tecConditionalContentDismissSlug");s||(s=e.data("tecConditionalContentDismissSlug"));let c=i.data("tecConditionalContentDismissNonce");c||(c=e.data("tecConditionalContentDismissNonce")),s&&c&&t.ajax(ajaxurl,{dataType:"json",method:"POST",data:{action:"tec_conditional_content_dismiss",slug:s,nonce:c},complete:()=>{e.remove()}})},t(document).on("click",o.selectors.dismissButton,o.onDismissClick),i.conditionalContent=o}(jQuery,window.wp,{}),window.tec=window.tec||{},window.tec.common=window.tec.common||{},window.tec.common.admin=window.tec.common.admin||{},window.tec.common.admin.conditionalContent={};