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.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("()","gmi"),"$1\n\n")).replace(/\r\n|\r/,"\n")).indexOf("-1&&(e=(e=e.replace(/\s*\s*/gim,"")),e.indexOf("")>-1&&(e=(e=(e=e.replace(/(]*>)\s*/gim,"$1")).replace(/\s*<\/object>/gim,"")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/gim,"$1")),(e.indexOf("-1||e.indexOf("-1)&&(e=(e=(e=e.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/gim,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/gim,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/gim,"$1"));var d=(e=e.replace(/\n\n+/gim,"\n\n")).split(/\n\s*\n/);return e="",d.forEach(function(t){e+="

"+t.replace(/^\s+|\s+$/g,"")+"

\n"}),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/

\s*<\/p>/gim,"")).replace(/

([^<]+)<\/(div|address|form)>/gim,"

$1

")).replace(new RegExp("

s*(]*>)s*

","gmi"),"$1",e)).replace(/

(/gim,"$1")).replace(/

]*)>/gim,"

")).replace(/<\/blockquote><\/p>/gim,"

")).replace(new RegExp("

s*(]*>)","gmi"),"$1")).replace(new RegExp("(]*>)s*

","gmi"),"$1"),t&&(e=(e=(e=e.replace(/<(script|style)(?:.|\n)*?<\/\\1>/gim,window.BINGOPRESS_PLUGIN._autop_newline_preservation_helper)).replace(/(
)?\s*\n/gim,"
\n")).replace("","\n")),e=(e=(e=e.replace(new RegExp("(]*>)s*
","gmi"),"$1")).replace(/
(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/gim,"$1")).replace(/\n<\/p>$/gim,"

"),Object.keys(i).length&&(e=e.replace(new RegExp(Object.keys(i).join("|"),"gi"),function(e){return i[e]})),e},isEmail:e=>{return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},isNumeric:e=>"string"==typeof e&&(!isNaN(e)&&!isNaN(parseFloat(e))),validate_form:(e,t)=>{let i={status:!0,message:""};const n=(e,t="")=>{let i=e.split("_");return i.splice(0,1),(i=window.BINGOPRESS_PLUGIN.camelize(i.join("_")).replace(","," "))+t};return e.required.some(o=>{let a={position:-1,value:""};return t.some((e,t)=>{if(e.name===o)return a.position=t,a.value=e.value,!0}),-1!==a.position&&a.value?!(!e.types||!e.types[o]||("email"!==e.types[o]||window.BINGOPRESS_PLUGIN.isEmail(a.value)?"integer"!==e.types[o]||Number.isInteger(e.types[o])||(i.status=!1,i.message=e.messages&&e.messages[o]?e.messages[o]:n(o," field is not valid! Please input valid integer number!")):(i.status=!1,i.message=e.messages&&e.messages[o]?e.messages[o]:n(o," field is not valid! Please input valid email address!")),i.status))||void 0:(i.status=!1,i.message=e.messages&&e.messages[o]?e.messages[o]:n(o," field is required!"),!0)}),i},animateCSSAnimation:[{text:"Attention Seekers",children:[{id:"bounce",text:"bounce"},{id:"flash",text:"flash"},{id:"pulse",text:"pulse"},{id:"rubberBand",text:"rubberBand"},{id:"shakeX",text:"shakeX"},{id:"shakeY",text:"shakeY"},{id:"headShake",text:"headShake"},{id:"swing",text:"swing"},{id:"tada",text:"tada"},{id:"wobble",text:"wobble"},{id:"jello",text:"jello"},{id:"heartBeat",text:"heartBeat"}]},{text:"Back entrances",children:[{id:"backInDown",text:"backInDown"},{id:"backInLeft",text:"backInLeft"},{id:"backInRight",text:"backInRight"},{id:"backInUp",text:"backInUp"}]},{text:"Back exits",children:[{id:"backOutDown",text:"backOutDown"},{id:"backOutLeft",text:"backOutLeft"},{id:"backOutRight",text:"backOutRight"},{id:"backOutUp",text:"backOutUp"}]},{text:"Bouncing entrances",children:[{id:"bounceIn",text:"bounceIn"},{id:"bounceInDown",text:"bounceInDown"},{id:"bounceInLeft",text:"bounceInLeft"},{id:"bounceInRight",text:"bounceInRight"},{id:"bounceInUp",text:"bounceInUp"}]},{text:"Bouncing exits",children:[{id:"bounceOut",text:"bounceOut"},{id:"bounceOutDown",text:"bounceOutDown"},{id:"bounceOutLeft",text:"bounceOutLeft"},{id:"bounceOutRight",text:"bounceOutRight"},{id:"bounceOutUp",text:"bounceOutUp"}]},{text:"Fading entrances",children:[{id:"fadeIn",text:"fadeIn"},{id:"fadeInDown",text:"fadeInDown"},{id:"fadeInDownBig",text:"fadeInDownBig"},{id:"fadeInLeft",text:"fadeInLeft"},{id:"fadeInLeftBig",text:"fadeInLeftBig"},{id:"fadeInRight",text:"fadeInRight"},{id:"fadeInRightBig",text:"fadeInRightBig"},{id:"fadeInUp",text:"fadeInUp"},{id:"fadeInUpBig",text:"fadeInUpBig"},{id:"fadeInTopLeft",text:"fadeInTopLeft"},{id:"fadeInTopRight",text:"fadeInTopRight"},{id:"fadeInBottomLeft",text:"fadeInBottomLeft"},{id:"fadeInBottomRight",text:"fadeInBottomRight"}]},{text:"Fading exits",children:[{id:"fadeOut",text:"fadeOut"},{id:"fadeOutDown",text:"fadeOutDown"},{id:"fadeOutDownBig",text:"fadeOutDownBig"},{id:"fadeOutLeft",text:"fadeOutLeft"},{id:"fadeOutLeftBig",text:"fadeOutLeftBig"},{id:"fadeOutRight",text:"fadeOutRight"},{id:"fadeOutRightBig",text:"fadeOutRightBig"},{id:"fadeOutUp",text:"fadeOutUp"},{id:"fadeOutUpBig",text:"fadeOutUpBig"},{id:"fadeOutTopLeft",text:"fadeOutTopLeft"},{id:"fadeOutTopRight",text:"fadeOutTopRight"},{id:"fadeOutBottomRight",text:"fadeOutBottomRight"},{id:"fadeOutBottomLeft",text:"fadeOutBottomLeft"}]},{text:"Flippers",children:[{id:"flip",text:"flip"},{id:"flipInX",text:"flipInX"},{id:"flipInY",text:"flipInY"},{id:"flipOutX",text:"flipOutX"},{id:"flipOutY",text:"flipOutY"}]},{text:"Lightspeed",children:[{id:"lightSpeedInRight",text:"lightSpeedInRight"},{id:"lightSpeedInLeft",text:"lightSpeedInLeft"},{id:"lightSpeedOutRight",text:"lightSpeedOutRight"},{id:"lightSpeedOutLeft",text:"lightSpeedOutLeft"}]},{text:"Rotating entrances",children:[{id:"rotateIn",text:"rotateIn"},{id:"rotateInDownLeft",text:"rotateInDownLeft"},{id:"rotateInDownRight",text:"rotateInDownRight"},{id:"rotateInUpLeft",text:"rotateInUpLeft"},{id:"rotateInUpRight",text:"rotateInUpRight"}]},{text:"Rotating exits",children:[{id:"rotateOut",text:"rotateOut"},{id:"rotateOutDownLeft",text:"rotateOutDownLeft"},{id:"rotateOutDownRight",text:"rotateOutDownRight"},{id:"rotateOutUpLeft",text:"rotateOutUpLeft"},{id:"rotateOutUpRight",text:"rotateOutUpRight"}]},{text:"Specials",children:[{id:"hinge",text:"hinge"},{id:"jackInTheBox",text:"jackInTheBox"},{id:"rollIn",text:"rollIn"},{id:"rollOut",text:"rollOut"}]},{text:"Zooming entrances",children:[{id:"zoomIn",text:"zoomIn"},{id:"zoomInDown",text:"zoomInDown"},{id:"zoomInLeft",text:"zoomInLeft"},{id:"zoomInRight",text:"zoomInRight"},{id:"zoomInUp",text:"zoomInUp"}]},{text:"Zooming exits",children:[{id:"zoomOut",text:"zoomOut"},{id:"zoomOutDown",text:"zoomOutDown"},{id:"zoomOutLeft",text:"zoomOutLeft"},{id:"zoomOutRight",text:"zoomOutRight"},{id:"zoomOutUp",text:"zoomOutUp"}]},{text:"Sliding entrances",children:[{id:"slideInDown",text:"slideInDown"},{id:"slideInLeft",text:"slideInLeft"},{id:"slideInRight",text:"slideInRight"},{id:"slideInUp",text:"slideInUp"}]},{text:"Sliding exits",children:[{id:"slideOutDown",text:"slideOutDown"},{id:"slideOutLeft",text:"slideOutLeft"},{id:"slideOutRight",text:"slideOutRight"},{id:"slideOutUp",text:"slideOutUp"}]}]};