;(window.BINGOPRESS_THEME = { ...window.BINGOPRESS_THEME, init: () => { window.BINGOPRESS_THEME.modalSearch(), window.BINGOPRESS_THEME.siteMobileNav() }, jQueryConfirmBINGOPRESS: () => { jQuery('.bingopress-container .bingopress-links').each(function () { 'link' != jQuery(this).data('type') && jQuery(this).click(function () { let e = window.BINGOPRESS_THEME.dialogs || {}, n = jQuery(this).data('modal'), o = `#${n}`, i = jQuery(o).data('title'), t = jQuery(this).data('hotkey') t && (i += `
`) let r = `j-${window.BINGOPRESS_THEME.options.bingopress_design.size.type}` ;(e[n] = jQuery.dialog({ title: i, icon: jQuery(o).data('icon'), columnClass: r, content: jQuery(o).html(), escapeKey: !0, backgroundDismiss: !0, onOpen: function () { let e = this, n = jQuery(e.content) ;(n = (n = void 0 !== n[0] ? jQuery(n[0]) : jQuery(n)).data( 'id' )), new (window.MutationObserver || window.WebKitMutationObserver)( function () { let o = jQuery(`#${n}`).html() e.setContent(o) } ).observe(document.getElementById(n), { subtree: !0, attributes: !0, }) }, })), (window.BINGOPRESS_THEME.dialogs = e), setTimeout(function () { jQuery('.jconfirm-closeIcon').html('esc') }, 100) }) }) }, bingopressCloseDialogs: () => { let e = window.BINGOPRESS_THEME.dialogs || {} for (let n in e) e[n].close() }, bingopressHotkeysInit: () => { jQuery('.bingopress-links').each(function () { let e = jQuery(this).data('hotkey') if (e) { let n = jQuery(this).attr('id') jQuery(document).bind('keydown', e.toString(), function () { window.BINGOPRESS_THEME.bingopressCloseDialogs() let e = jQuery(`#${n}`) e.attr('href') ? '_blank' === e.attr('target') ? window.open(e.attr('href')) : (window.location = e.attr('href')) : e.trigger('click') }) } }) }, modalSearch: () => { jQuery('.bingopress-search-button').click(function () { let e = '#bingopress-search-dom', n = { title: '', icon: jQuery(e).data('icon'), content: jQuery(e).children(':first'), draggable: !0, escapeKey: !0, backgroundDismiss: !0, closeIconClass: 'fas fa-times text-base', animation: 'fabcustomcloseanimation', closeAnimation: 'fabcustomcloseanimation', animationSpeed: '1000', onOpenBefore: function () { let e = jQuery('.jconfirm-box-container') e.hide(), setTimeout(function () { e.show(), e.addClass('jconfirm-animation-fabmodalopen') }, 1) let n = 'bingopress-search-modal jconfirm-medium ' ;(n += this.draggable ? 'bingopress-modal-draggable ' : 'bingopress-modal-notdraggable'), jQuery('.jconfirm').addClass(n) }, onOpen: function () { jQuery('.jconfirm-closeIcon').before( '' ), jQuery('.jconfirm-closeIcon').prepend('