Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the custom-facebook-feed domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/cklass/public_html/wp-includes/functions.php on line 6260

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the the7mk2 domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/cklass/public_html/wp-includes/functions.php on line 6260

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the searchwp domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/cklass/public_html/wp-includes/functions.php on line 6260

Warning: Cannot modify header information - headers already sent by (output started at /home/cklass/public_html/wp-includes/functions.php:6260) in /home/cklass/public_html/wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 299
function collapse_init(){ jQuery('.force_content_collapse').each(function(index){ jQuery(this).css('display', 'none'); }); jQuery('.collapseomatic:not(.colomat-close)').each(function(index){ var thisid=jQuery(this).attr('id'); jQuery('#target-'+thisid).css('display', 'none'); }); jQuery('.collapseomatic.colomat-close').each(function(index){ var thisid=jQuery(this).attr('id'); if(jQuery("#swap-"+thisid).length > 0){ swapTitle(this, "#swap-"+thisid); } if(jQuery("#swapexcerpt-"+thisid).length > 0){ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid); } jQuery('[id^=extra][id$='+thisid+']').each(function(index){ if(jQuery(this).data('swaptitle')){ old_swap_title=jQuery(this).data('swaptitle'); old_title=jQuery(this).html(); jQuery(this).html(old_swap_title); jQuery(this).data('swaptitle', old_title); }}); }); } function swapTitle(origObj, swapObj){ if(jQuery(origObj).prop("tagName")=='IMG'){ var origsrc=jQuery(origObj).prop('src'); var swapsrc=jQuery(swapObj).prop('src'); jQuery(origObj).prop('src',swapsrc); jQuery(swapObj).prop('src',origsrc); }else{ var orightml=jQuery(origObj).html(); var swaphtml=jQuery(swapObj).html(); jQuery(origObj).html(swaphtml); jQuery(swapObj).html(orightml); if(swaphtml.indexOf(" 0){ swapTitle(this, "#swap-"+id); } if(jQuery("#swapexcerpt-"+id).length > 0){ swapTitle("#exerpt-"+id, "#swapexcerpt-"+id); } jQuery('[id^=extra][id$='+id+']').each(function(index){ if(jQuery(this).data('swaptitle')){ old_swap_title=jQuery(this).data('swaptitle'); old_title=jQuery(this).html(); jQuery(this).html(old_swap_title); jQuery(this).data('swaptitle', old_title); }}); toggleState (jQuery(this), id, false, false); var ancestors=jQuery('.collapseomatic', '#target-'+id); ancestors.each(function(index){ jQuery(this).removeClass('colomat-close'); var thisid=jQuery(this).attr('id'); jQuery('#target-'+thisid).css('display', 'none'); }) }}); } function closeOtherRelMembers(rel, id){ jQuery('.collapseomatic[rel="' + rel +'"]').each(function(index){ closeOtherMembers(this, id); }); } function closeOtherTogMembers(togname, id){ jQuery('.collapseomatic[data-togglegroup="' + togname +'"]').each(function(index){ closeOtherMembers(this, id); }); } function closeOtherMembers(obj, id){ if(jQuery(obj).hasClass('colomat-expand-only')&&jQuery(obj).hasClass('colomat-close')){ return; } if(jQuery(obj).attr('id')!=id&&jQuery(obj).hasClass('colomat-close')){ jQuery(obj).removeClass('colomat-close'); var thisid=jQuery(obj).attr('id'); jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight'); if(jQuery("#swap-"+thisid).length > 0){ swapTitle(obj, "#swap-"+thisid); } if(jQuery("#swapexcerpt-"+thisid).length > 0){ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid); } jQuery('[id^=extra][id$='+thisid+']').each(function(index){ if(jQuery(this).data('swaptitle')){ old_swap_title=jQuery(this).data('swaptitle'); old_title=jQuery(this).html(); jQuery(this).html(old_swap_title); jQuery(this).data('swaptitle', old_title); }}); if(!jQuery(obj).hasClass('colomat-close')&&jQuery(obj).hasClass('snap-shut')){ jQuery('#target-'+thisid).hide(); }else{ toggleState (jQuery(obj), thisid, false, false); } var ancestors=jQuery('.collapseomatic', '#target-'+id); ancestors.each(function(index){ if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){ return; } var pre_id=id.split('-'); if(pre_id[0].indexOf('extra')!='-1'){ pre=pre_id.splice(0, 1); id=pre_id.join('-'); if(jQuery(this).hasClass('scroll-to-trigger')){ var target_offset=jQuery('#'+id).offset(); offset_top=target_offset.top; } if(jQuery('#'+id).hasClass('scroll-to-trigger')){ offset_top=jQuery('#scrollonclose-'+id).attr('name'); if(offset_top=='auto'){ var target_offset=jQuery('#'+id).offset(); offset_top=target_offset.top; }} jQuery('#'+id).toggleClass('colomat-close'); jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close'); } if(jQuery(this).attr('id').indexOf('bot-')=='-1'){ jQuery(this).removeClass('colomat-close'); var thisid=jQuery(this).attr('id'); if(jQuery("#swap-"+thisid).length > 0){ swapTitle(this, "#swap-"+thisid); } if(jQuery("#swapexcerpt-"+thisid).length > 0){ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid); } jQuery('[id^=extra][id$='+thisid+']').each(function(index){ if(jQuery(this).data('swaptitle')){ old_swap_title=jQuery(this).data('swaptitle'); old_title=jQuery(this).html(); jQuery(this).html(old_swap_title); jQuery(this).data('swaptitle', old_title); }}); jQuery('#target-'+thisid).css('display', 'none'); }}) }} function colomat_expandall(loop_items){ if(!loop_items){ loop_items=jQuery('.collapseomatic:not(.colomat-close)'); } loop_items.each(function(index){ jQuery(this).addClass('colomat-close'); var thisid=jQuery(this).attr('id'); jQuery('#parent-'+thisid).addClass('colomat-parent-highlight'); if(jQuery("#swap-"+thisid).length > 0){ swapTitle(this, "#swap-"+thisid); } if(jQuery("#swapexcerpt-"+thisid).length > 0){ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid); } jQuery('[id^=extra][id$='+thisid+']').each(function(index){ if(jQuery(this).data('swaptitle')){ old_swap_title=jQuery(this).data('swaptitle'); old_title=jQuery(this).html(); jQuery(this).html(old_swap_title); jQuery(this).data('swaptitle', old_title); }}); toggleState(jQuery(this), thisid, true, false); }); } function colomat_collapseall(loop_items){ if(!loop_items){ loop_items=jQuery('.collapseomatic.colomat-close'); } loop_items.each(function(index){ if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){ return; } jQuery(this).removeClass('colomat-close'); var thisid=jQuery(this).attr('id'); jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight'); if(jQuery("#swap-"+thisid).length > 0){ swapTitle(this, "#swap-"+thisid); } if(jQuery("#swapexcerpt-"+thisid).length > 0){ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid); } jQuery('[id^=extra][id$='+thisid+']').each(function(index){ if(jQuery(this).data('swaptitle')){ old_swap_title=jQuery(this).data('swaptitle'); old_title=jQuery(this).html(); jQuery(this).html(old_swap_title); jQuery(this).data('swaptitle', old_title); }}); toggleState(jQuery(this), thisid, false, false); }); } jQuery(document).ready(function(){ com_binding='click'; if(com_options.colomattouchstart){ com_binding='click touchstart'; } if(com_options.colomatpauseInit){ init_pause=setTimeout(collapse_init, com_options.colomatpauseInit); }else{ collapse_init(); } jQuery(document.body).on('post-load', function (){ collapse_init(); }); jQuery('.content_collapse_wrapper').each(function(index){ jQuery(this).css('display', 'inline'); }); jQuery(document).on({ mouseenter: function(){ jQuery(this).addClass('colomat-hover'); }, mouseleave: function(){ jQuery(this).removeClass('colomat-hover'); }, focusin: function(){ jQuery(this).addClass('colomat-hover'); }, focusout: function(){ jQuery(this).removeClass('colomat-hover'); }}, '.collapseomatic'); jQuery(document).on('keypress','.collapseomatic', function(event){ if(event.which==13){ event.currentTarget.click(); };}); jQuery(document.body).on(com_binding, '.collapseomatic', function(event){ var offset_top; if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){ return; } if(jQuery(this).attr('rel')&&jQuery(this).attr('rel').toString().indexOf('-highlander')!='-1'&&jQuery(this).hasClass('must-be-one')&&jQuery(this).hasClass('colomat-close')){ return; } if(jQuery(this).data('togglegroup')&&jQuery(this).data('togglegroup').toString().indexOf('-highlander')!='-1'&&jQuery(this).hasClass('must-be-one')&&jQuery(this).hasClass('colomat-close')){ return; } var id=jQuery(this).attr('id'); if(jQuery(this).hasClass('colomat-close')&&jQuery(this).hasClass('scroll-to-trigger')){ offset_top=jQuery('#scrollonclose-'+id).attr('name'); if(offset_top=='auto'){ var target_offset=jQuery('#'+id).offset(); offset_top=target_offset.top; }} var id_arr=id.split('-'); if(id_arr[0].indexOf('extra')!='-1'){ pre=id_arr.splice(0, 1); id=id_arr.join('-'); if(jQuery(this).hasClass('scroll-to-trigger')){ var target_offset=jQuery('#'+id).offset(); offset_top=target_offset.top; } if(jQuery('#'+id).hasClass('scroll-to-trigger')){ offset_top=jQuery('#scrollonclose-'+id).attr('name'); if(offset_top=='auto'){ var target_offset=jQuery('#'+id).offset(); offset_top=target_offset.top; }} jQuery('#'+id).toggleClass('colomat-close'); jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close'); } else if(id.indexOf('bot-')!='-1'){ id=id.substr(4); jQuery('#'+id).toggleClass('colomat-close'); if(jQuery(this).hasClass('scroll-to-trigger')){ var target_offset=jQuery('#'+id).offset(); offset_top=target_offset.top; } if(jQuery('#'+id).hasClass('scroll-to-trigger')){ offset_top=jQuery('#scrollonclose-'+id).attr('name'); if(offset_top=='auto'){ var target_offset=jQuery('#'+id).offset(); offset_top=target_offset.top; }} }else{ jQuery(this).toggleClass('colomat-close'); jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close'); } if(jQuery("#swap-"+id).length > 0){ swapTitle(jQuery('#'+id), "#swap-"+id); } if(jQuery("#swapexcerpt-"+id).length > 0){ swapTitle("#excerpt-"+id, "#swapexcerpt-"+id); } jQuery('[id^=extra][id$='+id+']').each(function(index){ if(jQuery(this).data('swaptitle')){ old_swap_title=jQuery(this).data('swaptitle'); old_title=jQuery(this).html(); jQuery(this).html(old_swap_title); jQuery(this).data('swaptitle', old_title); }}); jQuery(this).addClass('colomat-visited'); var parentID='parent-'+id; jQuery('#' + parentID).toggleClass('colomat-parent-highlight'); if(!jQuery(this).hasClass('colomat-close')&&jQuery(this).hasClass('snap-shut')){ jQuery('#target-'+id).hide(); }else{ toggleState (jQuery(this), id, true, id); } if(jQuery(this).attr('rel')!==undefined){ var rel=jQuery(this).attr('rel').toString(); if(rel.indexOf('-highlander')!='-1'){ closeOtherRelMembers(rel, id); }else{ closeOtherGroups(rel); }} if(jQuery(this).data('togglegroup')!==undefined){ var togname=jQuery(this).data('togglegroup').toString(); if(togname.indexOf('-highlander')!='-1'){ closeOtherTogMembers(togname, id); }} if(offset_top){ jQuery('html, body').animate({scrollTop:offset_top}, 500); }}); jQuery(document).on(com_binding, '.expandall', function(event){ if(jQuery(this).attr('rel')!==undefined){ var rel=jQuery(this).attr('rel'); var loop_items=jQuery('.collapseomatic:not(.colomat-close)[rel="' + rel +'"]'); } else if(jQuery(this).attr('data-togglegroup')!==undefined){ var toggroup=jQuery(this).attr('data-togglegroup'); var loop_items=jQuery('.collapseomatic:not(.colomat-close)[data-togglegroup="' + toggroup +'"]'); }else{ var loop_items=jQuery('.collapseomatic:not(.colomat-close)'); } colomat_expandall(loop_items); }); jQuery(document).on(com_binding, '.collapseall', function(event){ if(jQuery(this).attr('rel')!==undefined){ var rel=jQuery(this).attr('rel'); var loop_items=jQuery('.collapseomatic.colomat-close[rel="' + rel +'"]'); } else if(jQuery(this).attr('data-togglegroup')!==undefined){ var toggroup=jQuery(this).attr('data-togglegroup'); var loop_items=jQuery('.collapseomatic.colomat-close[data-togglegroup="' + toggroup +'"]'); }else{ var loop_items=jQuery('.collapseomatic.colomat-close'); } colomat_collapseall(loop_items); }); var fullurl=document.location.toString(); if(fullurl.match('#(?!\!)')){ hashmaster(fullurl); } jQuery(document).on('click', 'a.colomat-nolink', function(event){ event.preventDefault(); }); jQuery(window).on('hashchange', function (e){ fullurl=document.location.toString(); if(fullurl.match('#(?!\!)')){ hashmaster(fullurl); }}); function hashmaster(fullurl){ if(fullurl.match('#(?!\!)')){ var anchor_arr=fullurl.split(/#(?!\!)/); if(anchor_arr.length > 1){ junk=anchor_arr.splice(0, 1); anchor=anchor_arr.join('#'); }else{ anchor=anchor_arr[0]; } if(jQuery('#' + anchor).length){ jQuery('#' + anchor).parents('.collapseomatic_content').each(function(index){ parent_arr=jQuery(this).attr('id').split('-'); junk=parent_arr.splice(0, 1); parent=parent_arr.join('-'); if(!jQuery('#' + parent).hasClass('colomat-close')){ jQuery('#' + parent).click(); }}) if(!jQuery('#' + anchor).hasClass('colomat-close')){ jQuery('#' + anchor).click(); }} if(typeof colomatoffset!=='undefined'){ var anchor_offset=jQuery('#' + anchor).offset(); colomatoffset=colomatoffset + anchor_offset.top; jQuery('html, body').animate({scrollTop:colomatoffset}, 50); }} }}); function wpae_add_honeypot_field(){ jQuery('form.mc4wp-form').append(wpa_hidden_field); jQuery('form.quform-form').append(wpa_hidden_field); jQuery(wpa_hidden_field).insertAfter('input.wpae_initiator'); jQuery('form.avia_ajax_form').append(wpa_hidden_field); jQuery('.nf-form-layout form').append(wpa_hidden_field); jQuery('#edd-blocks-form__register').append(wpa_hidden_field); jQuery('form.brxe-form').append(wpa_hidden_field); jQuery('form.forminator-custom-form').append(wpa_hidden_field); jQuery('form.wpmtst-submission-form').append(wpa_hidden_field); jQuery('form.fc-form').append(wpa_hidden_field); jQuery('form#order_review').append(wpa_hidden_field); jQuery('form.mailpoet_form').append(wpa_hidden_field); jQuery('form.wsf-form').append(wpa_hidden_field); jQuery('form.jet-form-builder').append(wpa_hidden_field); jQuery('form.brxe-brf-pro-forms').append(wpa_hidden_field); jQuery('form.sib_signup_form').append(wpa_hidden_field); jQuery('form.youzify-membership-login-form').append(wpa_hidden_field); jQuery('form.fl-contact-form').append(wpa_hidden_field); jQuery('form.srfm-form').append(wpa_hidden_field); jQuery('form.everest-form').append(wpa_hidden_field); jQuery('.bit-form form').append(wpa_hidden_field); if(jQuery('form.woocommerce-checkout input#wpae_initiator').length===0){ jQuery('form.woocommerce-checkout').append(wpa_hidden_field); }} jQuery(document).ready(function(){ jQuery(document).on('gform_post_render', function(event, form_id, current_page){ wpae_reinitalize_after_form_load(); }); jQuery(document).on('edd_gateway_loaded', function (gateway){ wpae_reinitalize_after_form_load(); }); jQuery(document).on('nfFormReady', function(){ wpae_reinitalize_after_form_load(); }); if(typeof nfRadio!=='undefined'){ nfRadio.channel("forms").on("before:submit", function(e){ $honeypotLen=jQuery('input[name='+wpa_field_name+']').length; if(parseInt($honeypotLen) > 0){ var extra=e.get('extra'); extra.wpa_field_name=wpa_field_name extra.wpa_field_value=jQuery('input[name='+wpa_field_name+']').val(); extra.alt_s=jQuery('input[name=alt_s]').val(); e.set('extra', extra); }}); } if(typeof MailPoet!=='undefined'&&typeof MailPoet.Ajax!=='undefined'&&typeof MailPoet.Ajax.getParams==='function'){ (function(wapeMailpoetGetParams){ MailPoet.Ajax.getParams=function(){ const wapeMailpoetParams=wapeMailpoetGetParams.call(this); wapeMailpoetParams[wpa_field_name]=jQuery('input[name='+wpa_field_name+']').val(); wapeMailpoetParams.alt_s=jQuery('input[name=alt_s]').val(); return wapeMailpoetParams; };})(MailPoet.Ajax.getParams); } jQuery(document).on('wsf-rendered', function(e, form, form_id, instance_id){ wpae_reinitalize_after_form_load(); }); jQuery(document).on('yith_welrp_popup_template_loaded', function(event, popup, context){ jQuery('form.yith-welrp-form').append(wpa_hidden_field); }); jQuery.ajaxSetup({ beforeSend: function(jqXHR, settings){ if(typeof settings.data==='string'&&settings.data.includes('action=fl_builder_email')){ var wpaFieldName=wpa_field_name; var wpaFieldValue=jQuery('input[name=' + wpaFieldName + ']').val(); var altSValue=jQuery('input[name=alt_s]').val(); settings.data +='&' + encodeURIComponent(wpaFieldName) + '=' + encodeURIComponent(wpaFieldValue); settings.data +='&alt_s=' + encodeURIComponent(altSValue); }} }); }); jQuery(document).ajaxComplete(function(event, xhr, settings){ wpae_reinitalize_after_form_load(); }); function wpae_reinitalize_after_form_load(){ jQuery('.wpa_hidden_field').remove(); jQuery('#altEmail_container, .altEmail_container').remove(); wpa_add_honeypot_field(); wpae_add_honeypot_field(); if(wpa_add_test=='yes'){ wpa_add_test_block(); }}; var Hammer,cff_init,hashRegex,tagRegex,cff_js_exists=void 0!==cff_js_exists;function cffAddMasonry(t){var e,i=jQuery.Event("cffbeforemasonry");i.$self=t,jQuery(window).trigger(i),"function"==typeof t.masonry&&(e=!1,800<(i=jQuery(window).width())?t.hasClass("masonry-1-desktop")||(e=!0,t.addClass("cff-masonry cff-masonry-js").removeClass("cff-disable-masonry")):400'+t+""}function cffReplaceTags(t){t=jQuery.trim(t);return''+t+""}function cffEncodeHTML(t){if(void 0===t)return"";t=t.replace(/(>)/g,">");return t=(t=(t=t.replace(/(<)/g,"<")).replace(/(<br\/>)/g,"
")).replace(/(<br>)/g,"
")}function cffLoadCommentReplies(e){var t="",i="",n=jQuery("#cff_"+e.parent().attr("data-id")).closest("#cff");n.hasClass("cff-group")&&(t="&usegrouptoken=true"),"true"==n.attr("data-own-token")&&(i="&useowntoken=true");var a=(void 0!==e.closest(".cff-item").attr("data-page-id")?e.closest(".cff-item"):jQuery(".cff-lightbox-wrapper")).attr("data-page-id"),o=cffGetShortcodeToken(n),s=e.parent(),r=s.siblings(".cff-comment-replies-box");cffsiteurl,s.attr("data-id");s.hasClass("cff-hide")?(r.hide(),s.removeClass("cff-hide")):(r.show(),s.addClass("cff-hide"),r.hasClass("cff-empty")&&((i=s.find("a")).append('
'),s.find(".cff-loader").css("background-color",i.css("color")),a={action:"cff_comments",id:s.attr("data-id"),pageid:a},n.hasClass("cff-group")&&(a.usegrouptoken=!0),"true"==n.attr("data-own-token")&&(a.useowntoken=!0),""!==o&&(o=o.split("="),a.at=o[1]),cffAjax(a,function(t){s.find(".cff-loader").remove();var t=JSON.parse(t),o="";void 0!==t.comments&&jQuery.each(t.comments.data,function(t,e){var i=void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven,n=!0;cff_comment_from_id=void 0!==e.from?e.from.id:(n=!1,""),o+='
'+e.from.name+"":o+=''+e.from.name+"");var a=cffEncodeHTML(e.message);o+=a,0'+e.like_count+""),o+="

",void 0!==e.attachment&&(o+=i?''+e.attachment.title+'':''),o+="
",n&&(o+=i?'
Avatar
':'
'),o+="
"}),r.html(o).removeClass("cff-empty"),!e.closest("#cff").hasClass("cff-masonry-js")||e.closest("#cff").hasClass("cff-masonry-css")||e.closest("#cff").hasClass("cff-opaque-comments")||cffAddMasonry(e.closest("#cff"))})))}function cffLightbox(){function x(){return document.createElement("video").canPlayType}(function(){var w=jQuery,e=(t.prototype.albumLabel=function(t,e){return t+" / "+e},t);function t(){this.fadeDuration=300,this.fitImagesInViewport=!0,this.resizeDuration=400,this.positionFromTop=50,this.showImageNumberLabel=!0,this.alwaysShowNavOnTouchDevices=!1,this.wrapAround=!1}var i=function(){function t(t){this.options=t,this.album=[],this.currentImageIndex=void 0,this.init()}t.prototype.init=function(){this.enable(),this.build()},t.prototype.enable=function(){var e=this;w("body").on("click","a[data-cff-lightbox], area[data-cff-lightbox]",function(t){return e.start(w(t.currentTarget)),!1})},t.prototype.build=function(){var t="";w(".cff.cff-no-svgs").length&&(t="cff-no-svgs");var e,n=this;w("
").appendTo(w("body")),jQuery("#cff").attr("data-cff-theme")&&"default_theme"!==jQuery("#cff").attr("data-cff-theme")&&(e=jQuery("#cff").attr("data-cff-theme"),jQuery("#cff-lightbox-wrapper").addClass("cff-theme cff-"+e)),"function"!=typeof jQuery("#cff-lightbox-wrapper").find(".cff-lightbox-dataContainer").hammer&&(t={Manager:{prototype:{}}},e=function(i,t){var n;i.fn.hammer=function(t){return this.each(function(){})},t.Manager.prototype.emit=(n=t.Manager.prototype.emit,function(t,e){n.call(this,t,e),i(this.element).trigger({type:t,gesture:e})})},"function"==typeof define&&define.amd?define(["jquery","hammerjs"],e):"object"==typeof exports?e(require("jquery"),require("hammerjs")):e(jQuery,t)),this.$lightbox=w("#cff-lightbox-wrapper"),this.$overlay=w("#cff-lightbox-overlay"),this.$outerContainer=this.$lightbox.find(".cff-lightbox-outerContainer"),this.$container=this.$lightbox.find(".cff-lightbox-container"),this.containerTopPadding=parseInt(this.$container.css("padding-top"),10),this.containerRightPadding=parseInt(this.$container.css("padding-right"),10),this.containerBottomPadding=parseInt(this.$container.css("padding-bottom"),10),this.containerLeftPadding=parseInt(this.$container.css("padding-left"),10),this.$overlay.hide().on("click",function(){return n.end(),x()&&w("#cff-lightbox-wrapper video.cff-lightbox-video").length&&w("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),w("#cff-lightbox-wrapper iframe").attr("src",""),w("body").length&&w("body").removeClass("cff_no_scroll"),!1}),this.$lightbox.hide().on("click",function(t){return n.album.length=0,"cff-lightbox-wrapper"===w(t.target).attr("id")&&(n.end(),x()&&w("#cff-lightbox-wrapper video.cff-lightbox-video").length&&w("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),w("#cff-lightbox-wrapper iframe").attr("src",""),w("body").length&&w("body").removeClass("cff_no_scroll")),!1}),this.$outerContainer.on("click",function(t){return"cff-lightbox-wrapper"===w(t.target).attr("id")&&(n.album.length=0,n.end(),x()&&w("#cff-lightbox-wrapper video.cff-lightbox-video").length&&w("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),w("#cff-lightbox-wrapper iframe").attr("src","")),!1}),this.$lightbox.find(".cff-lightbox-prev").on("click",function(){return 0===n.currentImageIndex?n.changeImage(n.album.length-1):n.changeImage(n.currentImageIndex-1),x()&&w("#cff-lightbox-wrapper video.cff-lightbox-video").length&&w("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),w("#cff-lightbox-wrapper iframe").attr("src",""),!1}),this.$lightbox.find(".cff-lightbox-next").on("click",function(){return n.currentImageIndex===n.album.length-1?n.changeImage(0):n.changeImage(n.currentImageIndex+1),x()&&w("#cff-lightbox-wrapper video.cff-lightbox-video").length&&w("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),w("#cff-lightbox-wrapper iframe").attr("src",""),!1}),this.$lightbox.find(".cff-lightbox-outerContainer").hammer().on("swipeleft",function(){return n.currentImageIndex===n.album.length-1?n.changeImage(0):n.changeImage(n.currentImageIndex+1),x()&&w("#cff-lightbox-wrapper video.cff-lightbox-video").length&&w("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),w("#cff-lightbox-wrapper iframe").attr("src",""),!1}),this.$lightbox.find(".cff-lightbox-outerContainer").hammer().on("swiperight",function(){return 0===n.currentImageIndex?n.changeImage(n.album.length-1):n.changeImage(n.currentImageIndex-1),x()&&w("#cff-lightbox-wrapper video.cff-lightbox-video").length&&w("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),w("#cff-lightbox-wrapper iframe").attr("src",""),!1}),w(".cff-lightbox-thumbs").on("click",".cff-lightbox-attachment",function(){var t=w(this),e=t.find("img"),i=t.attr("data-caption");return""!=i&&"undefined"!=i||(i=t.attr("orig-caption")),n.changeImage(parseInt(t.attr("data-cff-lightbox-order")),t.attr("href"),e.attr("width"),e.attr("height"),t.attr("data-facebook"),i),!1}),this.$lightbox.find(".cff-lightbox-loader, .cff-lightbox-close").on("click",function(){return n.album.length=0,n.end(),x()&&w("#cff-lightbox-wrapper video.cff-lightbox-video").length&&w("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),w("#cff-lightbox-wrapper iframe").attr("src",""),w("body").length&&w("body").removeClass("cff_no_scroll"),!1})},t.prototype.start=function(i){var r=this,t=w(window);t.on("resize",w.proxy(this.sizeOverlay,this)),w("body").length&&w("body").addClass("cff_no_scroll"),w("select, object, embed").css({visibility:"hidden"}),this.sizeOverlay(),0==this.album.length&&(this.album=[]);var n=0;function e(i){o=(i.closest(".cff-posts-wrap").hasClass("cff_owl-carousel")?i.closest(".cff-posts-wrap .cff_owl-item"):i.closest(".cff-posts-wrap")).children("div").attr("class"),linkParentPostID="",void 0!==o&&(linkParentPostID=i.closest("."+o.split(" ")[0]).attr("id"),linkParentPostID="undefined"!==linkParentPostID?linkParentPostID.replace("cff_",""):linkParentPostID);var t,e,n,a,o,s=!1;w.each(r.album,function(t,e){e.link==i.attr("href")&&e.postid==linkParentPostID&&(s=!0)}),!w(".cff-duplicate-video-thumbnails").length&&1==s||(t=parseInt(i.closest(".cff").attr("data-cff-index")-1),e=i.attr("data-video"),n=i.attr("data-iframe"),a=i.attr("href"),void(o=0)===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven||(""!==n&&(n="link"),""!==e&&(e="link"),i.closest(".cff-album-item").length&&void 0!==i.closest(".cff-album-item").attr("data-count")&&(o=i.closest(".cff-album-item").attr("data-count"))),r.album.push({link:a,title:i.attr("data-title")||i.attr("title"),postid:i.attr("data-id"),showthumbs:i.attr("data-thumbs"),facebookurl:i.attr("data-url"),video:e,iframe:n,type:i.attr("data-type"),cffgroupalbums:i.attr("data-cffgroupalbums"),isthumbnail:i.attr("data-cff-isthumbnail"),pagename:i.parent().attr("data-cff-page-name"),posttime:i.parent().attr("data-cff-post-time"),lbcomments:i.attr("data-lb-comments"),feedIndex:t,count:o}))}var a,o=i.attr("data-cff-lightbox");if(w(".cff-lightbox-wrapper").attr("data-page-id",i.parents(".cff-item").attr("data-page-id")),o){a=w(i.prop("tagName")+'[data-cff-lightbox="'+o+'"]');for(var s=0;so||p.height>i)&&(p.width/o>p.height/i?(e=o,t=parseInt(p.height/(p.width/e),10)):(t=i,e=parseInt(p.width/(p.height/t),10)),m.width(e),m.height(t))),d.sizeContainer(m.width(),m.height())},p.src=this.album[imageNumber].link,this.currentImageIndex=imageNumber},t.prototype.sizeOverlay=function(){this.$overlay.width(w(window).width()).height(w(document).height())},t.prototype.sizeContainer=function(t,e){var i=this,n=this.$outerContainer.outerWidth(),a=this.$outerContainer.outerHeight(),o=t+this.containerLeftPadding+this.containerRightPadding,s=e+this.containerTopPadding+this.containerBottomPadding;function r(){i.$lightbox.find(".cff-lightbox-dataContainer").width(o),i.$lightbox.find(".cff-lightbox-prevLink").height(s),i.$lightbox.find(".cff-lightbox-nextLink").height(s),i.showImage()}n!==o||a!==s?this.$outerContainer.animate({width:o,height:s},this.options.resizeDuration,"swing",function(){r()}):r()},t.prototype.showImage=function(){this.$lightbox.find(".cff-lightbox-loader").hide(),this.$lightbox.find(".cff-lightbox-image").fadeIn("slow"),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},t.prototype.updateNav=function(){var t=!1;try{document.createEvent("TouchEvent"),t=!!this.options.alwaysShowNavOnTouchDevices}catch(t){}this.$lightbox.find(".cff-lightbox-nav").show(),1');var a,o,e,i,n,s,t="true"==this.album[this.currentImageIndex].lbcomments&&"false"!=w("#cff_"+this.album[this.currentImageIndex].postid+" .cff-lightbox-link").attr("data-lb-comments");w(window).width()<=640&&(t=!1),t?(t=this.album[this.currentImageIndex].postid.split("_")[0],a=this.album[this.currentImageIndex].pagename,o=this.album[this.currentImageIndex].posttime,e=w(".cff-lightbox-container .cff-lightbox-sidebar"),i=w(".cff-lightbox-thumbs-holder"),v=w("#cff_"+this.album[this.currentImageIndex].postid).attr("data-cff-from"),w(".cff-lightbox-wrapper").addClass("cff-enable-lb-comments"),w(".cff-lightbox-dataContainer").css("width",w(".cff-lightbox-dataContainer").innerWidth()+300),e.css("display","block"),m="",m=(void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven)&&void 0!==v?(r=v!=t?w("#cff_"+this.album[this.currentImageIndex].postid).find(".cff-author-img").find(".cff-feed-image").attr("src"):"https://graph.facebook.com/"+v+"/picture?type=square","

"+o+"

"+a+"
"):"

"+o+"

",w(".cff-lightbox-dataContainer .cff-lightbox-close").remove(),e.html("
"+m+"

"+w(".cff-lightbox-caption-text").html()+"

"+w("#cff_"+this.album[this.currentImageIndex].postid+" .cff-comments-box")[0].outerHTML),this.$lightbox.find(".cff-lightbox-close").on("click",function(){return c.end(),c.album.length=0,x()&&w("#cff-lightbox-wrapper video.cff-lightbox-video").length&&w("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),w("#cff-lightbox-wrapper iframe").attr("src",""),w("body").length&&w("body").removeClass("cff_no_scroll"),!1}),setTimeout(function(){1')}),e.find(".cff-comment-replies a").on("click",function(){cffLoadCommentReplies(w(this))}),e.find(".cff-show-more-comments a").attr("href",e.find(".cff-comment-on-facebook a").attr("href"))):(w(".cff-lightbox-wrapper .cff-lightbox-sidebar").html(""),w(".cff-lightbox-wrapper").removeClass("cff-enable-lb-comments")),w("#cff-lightbox-wrapper").removeClass("cff-has-iframe cff-fb-player cff-has-thumbs"),void 0!==this.album[this.currentImageIndex].iframe&&this.album[this.currentImageIndex].iframe.length&&"link"!==this.album[this.currentImageIndex].iframe&&(n=this.album[this.currentImageIndex].iframe,w("#cff-lightbox-wrapper").addClass("cff-has-iframe"),-1!=n.indexOf("https://www.facebook.com/v2.3/plugins/video.php?")&&w("#cff-lightbox-wrapper").addClass("cff-fb-player"),s=-1',0'+d+"").addClass("cff-animate"),w(".cff-lightbox-wrapper").addClass("cff-has-thumbs"),jQuery(".cff-lightbox-thumbs-holder a").imgLiquid({fill:!0,useBackgroundSize:!0}),w(".cff-loader").hide(),w(".cff-lightbox-thumbs-holder").css("min-height",0)):("undefined"!=typeof cffsiteurl&&""!=cffsiteurl||(cffsiteurl=window.location.host+"/wp-content/plugins"),r=w("#cff_"+l).closest(".cff"),g=w("#cff_"+l).attr("data-page-id"),m=cffGetShortcodeToken(r),p="","true"==r.attr("data-own-token")&&(p="&useowntoken=true"),v=cffsiteurl+"/custom-facebook-feed-pro/thumbs.php?id="+l+"&pageid="+g+p+m,h=[],u&&(v+="&albumsonly=true",void 0!==window.cff&&void 0!==window.cff.feeds&&!window.cff.feeds[0].settings.consentGiven||w(".cff-lightbox-thumbs-holder").css("min-height",45).after('
')),(p=this.album[this.currentImageIndex].cffgroupalbums)&&(v=v+"&usegrouptoken="+p),g={action:"cff_thumbs",id:l,pageid:g},""!==m&&(m=m.split("="),g.at=m[1]),"true"==r.attr("data-own-token")&&(g.useowntoken=!0),p&&(g.usegrouptoken=p),u&&(g.albumsonly=!0),w(".cff-gdpr-more-link").remove(),window.cff.feeds[this.album[this.currentImageIndex].feedIndex].settings.consentGiven?(u&&(jQuery(".cff-lightbox-container").addClass("cff-album-loading"),jQuery(".cff-lightbox-prev, .cff-lightbox-next").hide()),cffAjax(g,function(t){t&&(t=JSON.parse(t),u?w.each(t.data,function(t,e){var i="";e.name&&(i=e.name),i=(i=cffLinkify(i)).replace(hashRegex,cffReplaceHashtags),i=String(i).replace(/& /g,"& ").replace(//g,">").replace(/"/g,""").replace(/\n/g,"
"),f=String(f).replace(/& /g,"& ").replace(//g,">").replace(/"/g,""").replace(/\n/g,"
");var n,a=parseInt(c.currentImageIndex)+parseInt(t),o=e.source,s=e.width,r=e.height;void 0!==e.images[0]&&(o=e.images[0].source,s=e.images[0].width,r=e.images[0].height),n=void 0!==e.images[e.images.length-2]?e.images[e.images.length-2].source:o,d+='',h.push([o,s,r,"http://facebook.com/"+e.id,i,f,void 0,void 0,n]),0/g,">").replace(/"/g,""").replace(/\n/g,"
");var n=parseInt(c.currentImageIndex)+parseInt(t);d+='',h.push([e.media.image.src,e.media.image.width,e.media.image.height,e.url,i,f,a,o]),0'+d+"").addClass("cff-animate"),w(".cff-lightbox-wrapper").addClass("cff-has-thumbs")),jQuery(".cff-lightbox-thumbs-holder .cff-lightbox-attachment").imgLiquid({fill:!0,useBackgroundSize:!0}),w(".cff-loader").hide(),w(".cff-lightbox-thumbs-holder").css("min-height",0),y[l]=h,u&&(jQuery(".cff-lightbox-container").removeClass("cff-album-loading"),jQuery(".cff-lightbox-prev, .cff-lightbox-next").show()))})):0
+'+this.album[this.currentImageIndex].count+''),w(".cff-gdpr-more-link").imgLiquid({fill:!0,useBackgroundSize:!0}),setTimeout(function(){w(".cff-gdpr-more-link span").css({"margin-top":"-"+w(".cff-gdpr-more-link span").height()/2+"px","margin-right":"-"+w(".cff-gdpr-more-link span").width()/2+"px",display:"block"})},200)))):w(".cff-lightbox-thumbs").hide(),w(".cff-lightbox-attachment").removeClass("cff-selected"),w(".cff-lightbox-attachment[href='"+w(".cff-lightbox-image").attr("src")+"']").addClass("cff-selected"),this.$lightbox.find(".cff-lightbox-caption").fadeIn("fast"),void 0!==this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title?(f=(f=this.album[this.currentImageIndex].title).replace(hashRegex,cffReplaceHashtags),f=String(f).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"'),g=(p=this.$lightbox.find(".cff-lightbox-caption")).find(".cff-lightbox-caption-text"),this.album[this.currentImageIndex].link==w(".cff-lightbox-image").attr("src")&&g.html(f.includes("")?f:cffLinkify(f))," "==g.text()||""==g.text()?p.addClass("cff-no-caption"):p.removeClass("cff-no-caption")):(!u&&void 0!==this.album[this.currentImageIndex].title||this.$lightbox.find(".cff-lightbox-caption-text").html(""),this.$lightbox.find(".cff-lightbox-caption .cff-lightbox-caption-text").text().length<1&&this.$lightbox.find(".cff-lightbox-caption").addClass("cff-no-caption").find(".cff-lightbox-caption-text").html("")),this.$lightbox.find(".cff-lightbox-facebook, .cff-lightbox-caption-text a, .cff-lightbox-sidebar a:not(.cff-comment-replies-a), .cff_gdpr_notice, .cff-gdpr-more-link").off("click").on("click",function(t){window.open(w(this).attr("href"),"_blank")}),1this.currentImageIndex+1&&((new Image).src=this.album[this.currentImageIndex+1].link),0\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",t=a.console&&(a.console.warn||a.console.log);return t&&t.call(a.console,n,e),i.apply(this,arguments)}}function e(t,e,i){var n=e.prototype,e=t.prototype=Object.create(n);e.constructor=t,e._super=n,i&&it(e,i)}function n(t,e){return function(){return t.apply(e,arguments)}}function f(t,e){return typeof t==Z?t.apply(e&&e[0]||c,e):t}function l(t,e){return t===c?e:t}function d(e,t,i){s(p(t),function(t){e.addEventListener(t,i,!1)})}function u(e,t,i){s(p(t),function(t){e.removeEventListener(t,i,!1)})}function h(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function m(t,e){return-1e[i]}):n.sort()),n}function y(t,e){for(var i,n=e[0].toUpperCase()+e.slice(1),a=0;att(a.y)?a.x:a.y,e.scale=s?function(t,e){return z(e[0],e[1],_t)/z(t[0],t[1],_t)}(s.pointers,n):1,e.rotation=s?function(t,e){return E(e[1],e[0],_t)+E(t[1],t[0],_t)}(s.pointers,n):0,e.maxPointers=!i.prevInput||e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers,function(t,e){var i,n,a,o,s,r=t.lastInterval||e,f=e.timeStamp-r.timeStamp;e.eventType!=mt&&(dttt(s.y)?s.x:s.y,o=A(a,o),t.lastInterval=e):(s=r.velocity,i=r.velocityX,n=r.velocityY,o=r.direction),e.velocity=s,e.velocityX=i,e.velocityY=n,e.direction=o}(i,e),t=t.element,h(e.srcEvent.target,t)&&(t=e.srcEvent.target),e.target=t}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function k(t){for(var e=[],i=0;i=tt(e)?t<0?gt:vt:e<0?bt:yt}function z(t,e,i){var n=e[(i=i||kt)[0]]-t[i[0]],i=e[i[1]]-t[i[1]];return Math.sqrt(n*n+i*i)}function E(t,e,i){var n=e[(i=i||kt)[0]]-t[i[0]],i=e[i[1]]-t[i[1]];return 180*Math.atan2(i,n)/Math.PI}function j(){this.evEl=At,this.evWin=zt,this.pressed=!1,x.apply(this,arguments)}function T(){this.evEl=Tt,this.evWin=Ft,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function F(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,x.apply(this,arguments)}function D(){this.evTarget=St,this.targetIds={},x.apply(this,arguments)}function B(){x.apply(this,arguments);var t=n(this.handler,this);this.touch=new D(this.manager,t),this.mouse=new j(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function S(t){var e,i,t=t.changedPointers[0];t.identifier===this.primaryTouch&&(e={x:t.clientX,y:t.clientY},this.lastTouches.push(e),i=this.lastTouches,setTimeout(function(){var t=i.indexOf(e);-1e.threshold&&a&e.direction},attrTest:function(t){return q.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=R(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),e(N,q,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){var e;1!==t.scale&&(e=t.scale<1?"in":"out",t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),e(W,Q,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distancee.time;if(this._input=t,!n||!i||t.eventType&(ht|mt)&&!a)this.reset();else if(t.eventType&ut)this.reset(),this._timer=o(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&ht)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&ht?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=et(),this.manager.emit(this.options.event,this._input)))}}),e($,q,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),e(H,q,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:wt|xt,pointers:1},getTouchAction:function(){return P.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(wt|xt)?e=t.overallVelocity:i&wt?e=t.overallVelocityX:i&xt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&tt(e)>this.options.velocity&&t.eventType&ht},emit:function(t){var e=R(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),e(G,Q,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Mt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance