(()=>{"use strict";jQuery(document).ready((function(){const e=jQuery,{ajaxurl:t,options:a,placeholder_html:n}=devnet_fsl_ajax,o={showing:!1},i=()=>{const a=e('.fsl-wrapper[data-updatable="1"]');return!!a.length&&(e.ajax({type:"get",url:t,data:{action:"fsl_update_progress_bar"},beforeSend(){},success(t){t||(t=n),a.each(((a,n)=>{e(n).replaceWith(t)}))}}),!1)},s=()=>(o.showing||"0"===a.notice_bar?.enable_bar||!a.notice_bar?.enable_bar||(o.showing=!0,e.ajax({type:"get",url:t,data:{action:"fsl_show_notice_bar"},beforeSend(){e(".devnet_fsl-free-shipping.notice-bar").fadeOut((function(){e(this).parent(".fsl-wrapper").remove()}))},success(t){if(t){const n=(new DOMParser).parseFromString(t,"text/html"),o=e(n).find(".fsl-wrapper"),i=e(n).find(".notice-bar");if(i.append('<span class="fsl-close-notice-bar">✕</span>'),i.length>1){const e=["fsl-multiple-notice-bars","notice-bar",1==a.notice_bar.autohide?"autohide":"hold",a.notice_bar.position];o.addClass(e.join(" ")),o.css({"--fsl-notice-bar-margin-y":a.notice_bar.margin_y,"--fsl-notice-bar-margin-x":a.notice_bar.margin_x})}t=(new XMLSerializer).serializeToString(n),e("body").append(t)}},complete(){o.showing=!1}})),!1);
}))})();