window.BINGOPRESS_PLUGIN={...window.BINGOPRESS_PLUGIN,init_setting:()=>{jQuery(".field_option_animation_element").each(function(){let e=jQuery(this);e.select2({data:window.BINGOPRESS_PLUGIN.animateCSSAnimation});e.data("selected");e.data("selected")&&(e.val(e.data("selected")),e.trigger("change"))}),jQuery("#setting-form .select2").select2(),window.BINGOPRESS_PLUGIN.renderTinyMce(),window.BINGOPRESS_PLUGIN.init_setting_design(),jQuery(document).on("click",".smooth-scroll",window.BINGOPRESS_PLUGIN.smoothScroll),jQuery(document).on("click",".bingopress-container ul.nav-tab-general li.nav-nonurl",window.BINGOPRESS_PLUGIN.triggerSectionTab),jQuery(document).on("click",".bingopress-container ul.nav-tab-jconfirm li",window.BINGOPRESS_PLUGIN.triggerSectionTab),jQuery(document).on("click",".bingopress-container .bingopress-menu-responsive .menu-item",window.BINGOPRESS_PLUGIN.triggerSectionTab),jQuery(document).on("change.select2",'#setting-form .select2[name="field_option_animation_logo"]',window.BINGOPRESS_PLUGIN.triggerSectionAnimateLogo),window.BINGOPRESS_PLUGIN.triggerOptionSettingValue(),window.BINGOPRESS_PLUGIN.triggerResetOptionButton()},init_setting_design:()=>{let e=jQuery("#field_option_design_modal_size");e.select2({placeholder:"--choose--",data:[{id:"xsmall",text:"XSmall"},{id:"small",text:"Small"},{id:"medium",text:"Medium"},{id:"large",text:"Large"},{id:"xlarge",text:"XLarge"},{id:"custom",text:"Custom"}]}),e.val(e.data("selected")),e.on("select2:select",window.BINGOPRESS_PLUGIN.triggerDesignSize),e.trigger("change"),window.BINGOPRESS_PLUGIN.triggerDesignSize()},smoothScroll(e){if(""!==this.hash){e.preventDefault();var t=this.hash;jQuery("html, body").animate({scrollTop:jQuery(t).offset().top},800,function(){window.location.hash=t})}},triggerSectionTab(){let e=`animate__animated animate__${window.BINGOPRESS_PLUGIN.options.bingopress_animation.elements.tab}`;window.BINGOPRESS_PLUGIN.animate(jQuery("div",this),e);let t=jQuery(this).parent(),i=jQuery(this).attr("data-tab"),n=jQuery(`#${i}`);jQuery("li",t).removeClass("tab-active"),jQuery(".content .tab-content").removeClass("current"),jQuery(this).addClass("tab-active"),n.addClass("current"),window.BINGOPRESS_PLUGIN.animate(n,`animate__animated animate__${window.BINGOPRESS_PLUGIN.options.bingopress_animation.elements.content}`)},triggerSectionAnimateLogo(e){let t=e.target.value;jQuery("#setting-form .bg-cover-image img").attr("class",`animate__animated animate__${t}`)},triggerOptionSettingValue(){jQuery(".option_settings").change(function(){let e=jQuery(this).data("option"),t=jQuery(this).is(":checked")?"true":"false";jQuery(`#${e}`).val(t)})},triggerDesignSize(){let e=jQuery("#setting_design_custom_size");"custom"===jQuery("#field_option_design_modal_size").val()?e.show():e.hide()},triggerResetOptionButton(){jQuery(".reset-option").click(function(){jQuery.confirm({icon:"fas fa-sync",closeIcon:!0,animation:"scale",columnClass:"j-small",title:"Reset",content:jQuery("#clear-config").html(),buttons:{confirm:function(){jQuery("#clear-config-form ").submit()},cancel:function(){}}})})},animate:(e,t)=>(jQuery(e).addClass(t),jQuery(e).on("animationend",()=>{jQuery(e).removeClass(t)}),jQuery(e)),camelize:(e,t="_")=>e.split(t).map(e=>e.replace(/./,e=>e.toUpperCase())).join(),_autop_newline_preservation_helper:e=>e[0].replace("\n",""),wpautop:(e,t)=>{void 0===t&&(t=!0);var i={};if(""===e.trim())return"";if((e+="\n").indexOf("
-1){var n=e.split(""),o=n.pop();e="",n.forEach(function(t,n){var o=t.indexOf("";i[a]=t.substr(o)+"",e+=t.substr(0,o)+a}else e+=t}),e+=o}var a="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";(e=(e=(e=(e=e.replace(/
\s*
/,"\n\n")).replace(new RegExp("(<"+a+"[^>]*>)","gmi"),"\n$1")).replace(new RegExp("("+a+">)","gmi"),"$1\n\n")).replace(/\r\n|\r/,"\n")).indexOf("")),e.indexOf("")>-1&&(e=(e=(e=e.replace(/(")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/gim,"$1")),(e.indexOf("-1||e.indexOf("