OwlCyberSecurity - MANAGER
Edit File: pixel-cat.min.js
jQuery(document).ready(function(t){function e(t,e,a){(n("Facebook Pixel")||n("Conversions API"))&&c(t,e,a,"Facebook"),n("TikTok")&&c(t,e,a,"TikTok"),n("Snapchat"),n("Pinterest")&&c(t,e,a,"Pinterest"),(n("GA3")||n("GA4")||n("Adwords"))&&c(t,e,a,"Google Analytics")}function c(e,c,i,d){var p=i?function(t){for(var e in t)"string"==typeof t[e]&&(t[e]=t[e].replace("{post_id}",fcaPcPost.id).replace("{post_title}",fcaPcPost.title).replace("{post_type}",fcaPcPost.type).replace("{post_category}",fcaPcPost.categories.join(", ")));fcaPcOptions.utm_support&&(t=function(t){for(var e=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],c=0;c<e.length;c++)null!==r(e[c])&&(t[e[c]]=r(e[c]));return t}(t));fcaPcOptions.user_parameters&&(t=function(t){for(var e=["referrer","language","logged_in","post_tag","post_category"],c=0;c<e.length;c++)fcaPcUserParams[e[c]]&&(t[e[c]]=fcaPcUserParams[e[c]]);return t}(t));return t}(i):null;if("undefined"!=typeof fbq){var s=a(),f=o(),l=new Date(t.now()).toUTCString(),u=new Date(l).valueOf()/1e3;if("trackCustom"===e&&"Facebook"===d)fbq(e,c,p,{event_id:s,external_id:f}),n("Conversions API")&&t.ajax({url:fcaPcOptions.ajax_url,type:"POST",data:{action:"fca_pc_capi_event",event_name:c,event_time:u,event_id:s,external_id:f,client_user_agent:navigator.userAgent,event_source_url:window.location.origin+window.location.pathname,custom_data:JSON.stringify(p),nonce:fcaPcOptions.nonce}});else{var _=(g=new Map([["AddPaymentInfo","AddPaymentInfo"],["AddToCart","AddToCart"],["AddToWishlist","AddToWishlist"],["CompleteRegistration","CompleteRegistration"],["Contact","Contact"],["CustomizeProduct","CustomizeProduct"],["Donate","Donate"],["FindLocation","FindLocation"],["InitiateCheckout","InitiateCheckout"],["Lead","Lead"],["PageView","PageView"],["Purchase","Purchase"],["Schedule","Schedule"],["Search","Search"],["StartTrial","StartTrial"],["SubmitApplication","SubmitApplication"],["Subscribe","Subscribe"],["ViewContent","ViewContent"]])).get(c);_&&(fbq(e,_,p,{event_id:s,external_id:f}),n("Conversions API")&&t.ajax({url:fcaPcOptions.ajax_url,type:"POST",data:{action:"fca_pc_capi_event",event_name:_,event_time:u,event_id:s,external_id:f,client_user_agent:navigator.userAgent,event_source_url:window.location.origin+window.location.pathname,custom_data:JSON.stringify(p),nonce:fcaPcOptions.nonce}}))}}if("undefined"!=typeof snaptr){var s=a(),f=o(),P=(g=new Map([["PageViewSnapchat","PAGE_VIEW"],["ViewContentSnapchat","VIEW_CONTENT"],["PurchaseSnapchat","PURCHASE"],["AddToCartSnapchat","ADD_CART"],["InitiateCheckoutSnapchat","START_CHECKOUT"],["AddToWishlistSnapchat","ADD_TO_WISHLIST"],["AddPaymentInfoSnapchat","ADD_BILLING"]])).get(c);P&&snaptr(e,P,p,{event_id:s,external_id:f})}if("undefined"!=typeof ttq){var h=(g=new Map([["PageViewTiktok","PageView"],["ViewContentTiktok","ViewContent"],["AddToCartTiktok","AddToCart"],["AddToWishlistTiktok","AddToWishlist"],["InitiateCheckoutTiktok","InitiateCheckout"],["AddPaymentInfoTiktok","AddPaymentInfo"],["PurchaseTiktok","CompletePayment"],["CompleteRegistrationTiktok","CompleteRegistration"]])).get(c);h&&ttq.track(h,p),"trackCustom"===e&&"TikTok"===d&&ttq.track(c,p)}if("undefined"!=typeof pintrk)if("trackCustom"===e&&"Pinterest"===d)pintrk("track",c,p);else{var k=(g=new Map([["AddToCartPinterest","AddToCart"],["PurchasePinterest","Checkout"],["LeadPinterest","Lead"],["ViewContentPinterest","PageVisit"],["CompleteRegistrationPinterest","Signup"]])).get(c);k&&pintrk("track",k,p)}if("undefined"!=typeof gtag){if("track"===e){var g=new Map([["AddToCartGA","add_to_cart"],["AddPaymentInfoGA","add_payment_info"],["AddToWishlistGA","add_to_wishlist"],["PurchaseGA","purchase"],["InitiateCheckoutGA","begin_checkout"],["ViewContentGA","view_item"]]),m=g.get(c);m&>ag("event",m,p)}"trackCustom"===e&&"Google Analytics"===d&>ag("event",c,p)}}function a(){return"xxxxxxxxxx".replace(/[x]/g,function(t){return Math.floor(16*Math.random()).toString(16)})}function o(){var t=function(t){for(var e=t+"=",c=document.cookie.split(";"),a=0;a<c.length;a++){for(var o=c[a];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}("pixelcat_id");return""==t&&""!=(t=a())&&null!=t&&function(t,e,c){var a=new Date;a.setTime(a.getTime()+24*c*60*60*1e3);var o="expires="+a.toUTCString();document.cookie=t+"="+e+";"+o+";path=/"}("pixelcat_id",t,365),t}function n(t){return-1!==fcaPcOptions.pixel_types.indexOf(t)}function i(t,e){document.cookie=t+"="+e+";path=/"}function d(t){var e=("; "+document.cookie).split("; "+t+"=");return 2===e.length&&e.pop().split(";").shift()}function r(t){for(var e=[],c=location.search.substr(1).split("&"),a=0;a<c.length;a++)if((e=c[a].split("="))[0]===t)return decodeURIComponent(e[1]).replace(/\+/g," ");return null}function p(){var e=t(window).scrollTop(),c=t(document).height()-t(window).height();return 0==c?100:e/c*100}if(function(){for(var e=0;e<fcaPcEvents.length;e++){var a=fcaPcEvents[e].event,o=fcaPcEvents[e].parameters,n=fcaPcEvents[e].triggerType,i=fcaPcEvents[e].trigger,d=fcaPcEvents[e].apiAction,r=fcaPcEvents[e].pixel_type;switch(n){case"css":t(i).on("click",{name:a,params:o,apiAction:d,pixelType:r},function(t){c(t.data.apiAction,t.data.name,t.data.params,t.data.pixelType)});break;case"hover":t(i).on("mouseenter",{name:a,params:o,apiAction:d,trigger:i,pixelType:r},function(e){c(e.data.apiAction,e.data.name,e.data.params,e.data.pixelType),t(e.data.trigger).off("mouseenter")});break;case"post":fcaPcEvents[e].hasOwnProperty("delay")&&fcaPcEvents[e].hasOwnProperty("scroll")?setTimeout(function(e,a,o,n,i){t(window).scroll({scrollTarget:e,apiAction:a,eventName:o,parameters:n,pixelType:i},function(e){e.data.scrollTarget<=p()&&(t(window).off(e),c(a,o,n,i))}).trigger("scroll")},1e3*fcaPcEvents[e].delay,fcaPcEvents[e].scroll,d,a,o,r):fcaPcEvents[e].hasOwnProperty("delay")?setTimeout(c,1e3*fcaPcEvents[e].delay,d,a,o,r):c(d,a,o,r);break;case"url":t("a").each(function(){t(this).attr("href")===i&&t(this).on("click",{name:a,params:o,apiAction:d,pixelType:r},function(t){c(t.data.apiAction,t.data.name,t.data.params,t.data.pixelType)})});break;case"exact_url":window.location.href===i&&(fcaPcEvents[e].hasOwnProperty("delay")&&fcaPcEvents[e].hasOwnProperty("scroll")?setTimeout(function(e,a,o,n,i){t(window).scroll({scrollTarget:e,apiAction:a,eventName:o,parameters:n,pixelType:i},function(e){e.data.scrollTarget<=p()&&(t(window).off(e),c(a,o,n,i))}).trigger("scroll")},1e3*fcaPcEvents[e].delay,fcaPcEvents[e].scroll,d,a,o,r):fcaPcEvents[e].hasOwnProperty("delay")?setTimeout(c,1e3*fcaPcEvents[e].delay,d,a,o,r):c(d,a,o,r))}}}(),fcaPcOptions.debug&&(console.log("pixel cat events:"),console.log(fcaPcEvents),console.log("pixel cat post:"),console.log(fcaPcPost),console.log("pixel cat options:"),console.log(fcaPcOptions)),(n("Facebook Pixel")||n("Conversions API"))&&c("track","PageView"),d("fca_pc_advanced_matching")&&i("fca_pc_advanced_matching",""),"undefined"!=typeof fcaPcSearchQuery&&c("track","Search",fcaPcSearchQuery),fcaPcOptions.woo_enabled&&(fcaPcOptions.debug&&console.log("adding woo events"),t("body").on("added_to_cart",function(){t.ajax({url:fcaPcOptions.ajax_url,type:"POST",data:{action:"fca_pc_woo_ajax_add_to_cart",product_id:fcaPcPost.id},success:function(t){t.success&&((n("Facebook")||n("Conversions API"))&&c("track","AddToCart",t.facebook),n("TikTok")&&c("track","AddToCartTiktok",t.tiktok),n("Snapchat")&&c("track","AddToCartSnapchat",t.snapchat),n("Pinterest")&&c("track","AddToCartPinterest",t.pinterest),(n("GA3")||n("GA4")||n("Adwords"))&&c("track","AddToCartGA",t.ga))}})}),d("fca_pc_woo_add_to_cart")&&(c("track","AddToCart",JSON.parse(decodeURIComponent(d("fca_pc_woo_add_to_cart").replace(/\+/g,"%20")))),i("fca_pc_woo_add_to_cart","")),"undefined"!=typeof fcaPcWooCheckoutCart&&(c("track","InitiateCheckout",fcaPcWooCheckoutCart),t("form.checkout").on("checkout_place_order",function(t){return c("track","AddPaymentInfo",fcaPcWooCheckoutCart),!0})),"undefined"!=typeof fcaPcWooPurchase&&c("track","Purchase",fcaPcWooPurchase),"undefined"!=typeof fcaPcWooProduct&&(fcaPcOptions.woo_delay?setTimeout(c,1e3*fcaPcOptions.woo_delay,"track","ViewContent",fcaPcWooProduct):c("track","ViewContent",fcaPcWooProduct),t(".wl-add-to, .add_to_wishlist").on("click",function(t){c("track","AddToWishlist",fcaPcWooProduct)})),d("fca_pc_woo_add_to_cart_tiktok")&&(c("track","AddToCartTiktok",JSON.parse(decodeURIComponent(d("fca_pc_woo_add_to_cart_tiktok").replace(/\+/g,"%20")))),i("fca_pc_woo_add_to_cart_tiktok","")),"undefined"!=typeof fcaPcWooCheckoutCartTiktok&&(c("track","InitiateCheckoutTiktok",fcaPcWooCheckoutCartTiktok),t("form.checkout").on("checkout_place_order",function(t){return c("track","AddPaymentInfoTiktok",fcaPcWooCheckoutCartTiktok),!0})),"undefined"!=typeof fcaPcWooPurchaseTiktok&&c("track","PurchaseTiktok",fcaPcWooPurchaseTiktok),"undefined"!=typeof fcaPcWooProductTiktok&&(fcaPcOptions.woo_delay?setTimeout(c,1e3*fcaPcOptions.woo_delay,"track","ViewContentTiktok",fcaPcWooProductTiktok):c("track","ViewContentTiktok",fcaPcWooProductTiktok),t(".wl-add-to, .add_to_wishlist").on("click",function(t){c("track","AddToWishlistTiktok",fcaPcWooProductTiktok)})),d("fca_pc_woo_add_to_cart_pinterest")&&(c("track","AddToCartPinterest",JSON.parse(decodeURIComponent(d("fca_pc_woo_add_to_cart_pinterest").replace(/\+/g,"%20")))),i("fca_pc_woo_add_to_cart_pinterest","")),"undefined"!=typeof fcaPcWooPurchasePinterest&&c("track","PurchasePinterest",fcaPcWooPurchasePinterest),"undefined"!=typeof fcaPcWooProductPinterest&&(fcaPcOptions.woo_delay?setTimeout(c,1e3*fcaPcOptions.woo_delay,"track","ViewContentPinterest",fcaPcWooProductPinterest):c("track","ViewContentPinterest",fcaPcWooProductPinterest)),d("fca_pc_woo_add_to_cart_snapchat")&&(c("track","AddToCartSnapchat",JSON.parse(decodeURIComponent(d("fca_pc_woo_add_to_cart_snapchat").replace(/\+/g,"%20")))),i("fca_pc_woo_add_to_cart_snapchat","")),"undefined"!=typeof fcaPcWooCheckoutCartSnapchat&&(c("track","InitiateCheckoutSnapchat",fcaPcWooCheckoutCartSnapchat),t("form.checkout").on("checkout_place_order",function(t){return c("track","AddPaymentInfoSnapchat",fcaPcWooCheckoutCartSnapchat),!0})),"undefined"!=typeof fcaPcWooPurchaseSnapchat&&c("track","PurchaseSnapchat",fcaPcWooPurchaseSnapchat),"undefined"!=typeof fcaPcWooProductSnapchat&&(fcaPcOptions.woo_delay?setTimeout(c,1e3*fcaPcOptions.woo_delay,"track","ViewContentSnapchat",fcaPcWooProductSnapchat):c("track","ViewContentSnapchat",fcaPcWooProductSnapchat),t(".wl-add-to, .add_to_wishlist").on("click",function(t){c("track","AddToWishlistSnapchat",fcaPcWooProductSnapchat)})),d("fca_pc_woo_add_to_cart_ga")&&(c("track","AddToCartGA",JSON.parse(decodeURIComponent(d("fca_pc_woo_add_to_cart_ga").replace(/\+/g,"%20")))),i("fca_pc_woo_add_to_cart_ga","")),"undefined"!=typeof fcaPcWooCheckoutCartGA&&(c("track","InitiateCheckoutGA",fcaPcWooCheckoutCartGA),t("form.checkout").on("checkout_place_order",function(t){return c("track","AddPaymentInfoGA",fcaPcWooCheckoutCartGA),!0})),"undefined"!=typeof fcaPcWooPurchaseGA&&c("track","PurchaseGA",fcaPcWooPurchaseGA),"undefined"!=typeof fcaPcWooProductGA&&(fcaPcOptions.woo_delay?setTimeout(c,1e3*fcaPcOptions.woo_delay,"track","ViewContentGA",fcaPcWooProductGA):c("track","ViewContentGA",fcaPcWooProductGA),t(".wl-add-to, .add_to_wishlist").on("click",function(t){c("track","AddToWishlistGA",fcaPcWooProductGA)}))),fcaPcOptions.edd_enabled&&(fcaPcOptions.debug&&console.log("adding edd events"),t(".edd-add-to-cart").on("click",function(e){if(n("Facebook")||n("Conversions API"))if("undefined"!=typeof fcaPcEddProduct)c("track","AddToCart",fcaPcEddProduct);else{c("track","AddToCart",a={value:t(this).data("price"),currency:fcaPcOptions.edd_currency,content_name:"Easy Digital Download ID "+t(this).data("download-id"),content_ids:t(this).data("download-id"),content_type:"no"==t(this).data("variable-price")?"product":"product_group"})}if(n("TikTok"))if("undefined"!=typeof fcaPcEddProduct)c("track","AddToCartTiktok",fcaPcEddProductTiktok);else{c("track","AddToCartTiktok",a={value:t(this).data("price"),currency:fcaPcOptions.edd_currency,content_name:"Easy Digital Download ID "+t(this).data("download-id"),content_ids:t(this).data("download-id"),content_type:"no"==t(this).data("variable-price")?"product":"product_group"})}if(n("GA3")||n("GA4")||n("Adwords"))if("undefined"!=typeof fcaPcEddProductGA)c("track","AddToCartGA",fcaPcEddProductGA);else{c("track","AddToCartGA",a={value:t(this).data("price"),currency:fcaPcOptions.edd_currency,items:[{item_id:t(this).data("download-id"),item_name:"Easy Digital Download ID "+t(this).data("download-id")}]})}if(n("Pinterest"))if("undefined"!=typeof fcaPcEddProductPinterest)c("track","AddToCartPinterest",fcaPcEddProductPinterest);else{c("track","AddToCartPinterest",a={value:t(this).data("price"),currency:fcaPcOptions.edd_currency,product_name:"Easy Digital Download ID "+t(this).data("download-id"),product_id:t(this).data("download-id")})}if(n("Snapchat"))if("undefined"!=typeof fcaPcEddProductSnapchat)c("track","AddToCartSnapchat",fcaPcEddProductSnapchat);else{var a={price:t(this).data("price"),currency:fcaPcOptions.edd_currency,description:"Easy Digital Download ID "+t(this).data("download-id"),item_ids:[t(this).data("download-id")]};c("track","AddToCartSnapchat",a)}}),t(".wl-add-to, .add_to_wishlist").on("click",function(e){if(n("Facebook")||n("Conversions API"))if("undefined"!=typeof fcaPcEddProduct)c("track","AddToWishlist",fcaPcEddProduct);else{c("track","AddToWishlist",a={value:t(this).data("price"),currency:fcaPcOptions.edd_currency,content_name:"Easy Digital Download ID "+t(this).data("download-id"),content_ids:t(this).data("download-id"),content_type:"no"==t(this).data("variable-price")?"product":"product_group"})}if(n("GA3")||n("GA4")||n("Adwords"))if("undefined"!=typeof fcaPcEddProductGA)c("track","AddToWishlistGA",fcaPcEddProductGA);else{c("track","AddToWishlistGA",a={value:t(this).data("price"),currency:fcaPcOptions.edd_currency,items:[{item_id:t(this).data("download-id"),item_name:"Easy Digital Download ID "+t(this).data("download-id")}]})}if(n("TikTok"))if("undefined"!=typeof fcaPcEddProductTiktok)c("track","AddToWishlistTiktok",fcaPcEddProductTiktok);else{c("track","AddToWishlistTiktok",a={price:t(this).data("price"),currency:fcaPcOptions.edd_currency,description:"Easy Digital Download ID "+t(this).data("download-id"),item_ids:[t(this).data("download-id")]})}if(n("Snapchat"))if("undefined"!=typeof fcaPcEddProductSnapchat)c("track","AddToWishlistSnapchat",fcaPcEddProductSnapchat);else{var a={price:t(this).data("price"),currency:fcaPcOptions.edd_currency,description:"Easy Digital Download ID "+t(this).data("download-id"),item_ids:[t(this).data("download-id")]};c("track","AddToWishlistSnapchat",a)}}),"undefined"!=typeof fcaPcEddProduct&&(fcaPcPost.edd_delay?setTimeout(c,1e3*fcaPcPost.edd_delay,"track","ViewContent",fcaPcEddProduct):c("track","ViewContent",fcaPcEddProduct)),"undefined"!=typeof fcaPcEddCheckoutCart&&(c("track","InitiateCheckout",fcaPcEddCheckoutCart),t("#edd_purchase_form").on("submit",function(t){return c("track","AddPaymentInfo",fcaPcEddCheckoutCart),!0})),d("fca_pc_edd_purchase")&&(c("track","Purchase",JSON.parse(decodeURIComponent(d("fca_pc_edd_purchase").replace(/\+/g,"%20")))),i("fca_pc_edd_purchase","")),"undefined"!=typeof fcaPcEddCheckoutCartGA&&(c("track","InitiateCheckoutGA",fcaPcEddCheckoutCartGA),t("#edd_purchase_form").on("submit",function(t){return c("track","AddPaymentInfoGA",fcaPcEddCheckoutCartGA),!0})),"undefined"!=typeof fcaPcEddProductGA&&(fcaPcOptions.edd_delay?setTimeout(c,1e3*fcaPcOptions.edd_delay,"track","ViewContent",fcaPcEddProductGA):c("track","ViewContentGA",fcaPcEddProductGA)),d("fca_pc_edd_purchase_ga")&&(c("track","PurchaseGA",JSON.parse(decodeURIComponent(d("fca_pc_edd_purchase_ga").replace(/\+/g,"%20")))),i("fca_pc_edd_purchase_ga","")),"undefined"!=typeof fcaPcEddProductTiktok&&(fcaPcPost.edd_delay?setTimeout(c,1e3*fcaPcPost.edd_delay,"track","ViewContentTiktok",fcaPcEddProductTiktok):c("track","ViewContentTiktok",fcaPcEddProductTiktok)),"undefined"!=typeof fcaPcEddCheckoutCartTiktok&&(c("track","InitiateCheckoutTiktok",fcaPcEddCheckoutCartTiktok),t("#edd_purchase_form").on("submit",function(t){return c("track","AddPaymentInfoTiktok",fcaPcEddCheckoutCartTiktok),!0})),d("fca_pc_edd_purchase_tiktok")&&(c("track","PurchaseTiktok",JSON.parse(decodeURIComponent(d("fca_pc_edd_purchase_tiktok").replace(/\+/g,"%20")))),i("fca_pc_edd_purchase_tiktok","")),"undefined"!=typeof fcaPcEddCheckoutCartGA&&(c("track","InitiateCheckoutGA",fcaPcEddCheckoutCartGA),t("#edd_purchase_form").on("submit",function(t){return c("track","AddPaymentInfoGA",fcaPcEddCheckoutCartGA),!0})),"undefined"!=typeof fcaPcEddProductGA&&(fcaPcOptions.edd_delay?setTimeout(c,1e3*fcaPcOptions.edd_delay,"track","ViewContent",fcaPcEddProductGA):c("track","ViewContentGA",fcaPcEddProductGA)),d("fca_pc_edd_purchase_ga")&&(c("track","PurchaseGA",JSON.parse(decodeURIComponent(d("fca_pc_edd_purchase_ga").replace(/\+/g,"%20")))),i("fca_pc_edd_purchase_ga","")),"undefined"!=typeof fcaPcEddProductPinterest&&(fcaPcOptions.edd_delay?setTimeout(c,1e3*fcaPcOptions.edd_delay,"track","ViewContentPinterest",fcaPcEddProductPinterest):c("track","ViewContentPinterest",fcaPcEddProductPinterest)),d("fca_pc_edd_purchase_pinterest")&&(c("track","PurchasePinterest",JSON.parse(decodeURIComponent(d("fca_pc_edd_purchase_pinterest").replace(/\+/g,"%20")))),i("fca_pc_edd_purchase_pinterest","")),"undefined"!=typeof fcaPcEddCheckoutCartSnapchat&&(c("track","InitiateCheckoutSnapchat",fcaPcEddCheckoutCartSnapchat),t("#edd_purchase_form").on("submit",function(t){return c("track","AddPaymentInfoSnapchat",fcaPcEddCheckoutCartSnapchat),!0})),"undefined"!=typeof fcaPcEddProductSnapchat&&(fcaPcOptions.edd_delay?setTimeout(c,1e3*fcaPcOptions.edd_delay,"track","ViewContentSnapchat",fcaPcEddProductSnapchat):c("track","ViewContentSnapchat",fcaPcEddProductSnapchat)),d("fca_pc_edd_purchase_snapchat")&&(c("track","PurchaseSnapchat",JSON.parse(decodeURIComponent(d("fca_pc_edd_purchase_snapchat").replace(/\+/g,"%20")))),i("fca_pc_edd_purchase_snapchat",""))),"undefined"!=typeof fcaPcVideos&&(fcaPcVideos.forEach(function(t){t.on("pixel_event",function(t,e,a){c(t,e,a)})}),fcaPcOptions.debug&&(console.log("fcaPcVideos:"),console.log(fcaPcVideos))),"undefined"!=typeof fcaPcLandingPageCatEnabled&&t("#fca-lpc-optin-button").on("click",function(e){var a;if(a=!(0!==t("#fca-lpc-gdpr-consent").length)||"checked"===t("#fca-lpc-gdpr-consent").attr("checked"),t("#fca-lpc-email-input").val()){t("#fca-lpc-email-input").val(),t("#fca-lpc-name-input").val();if(a)return c("track","Lead",{content_name:fcaPcPost.title}),!0}}),"undefined"!=typeof fcaPcOptinCatEnabled&&t(".fca_eoi_form").submit(function(e){var a=!0,o=t(this).find('input[name="name"]').val(),n=t(this).find('input[name="email"]').val();t(this).find('input[name="i_agree"]').length&&"checked"!==t(this).find(".fca_eoi_gdpr_consent").attr("checked")&&(a=!1),n&&a&&c("track","Lead",{content_name:fcaPcPost.title,form_id:t(this).find("#fca_eoi_form_id").val()})}),"undefined"!=typeof fcaPcEptEnabled&&t(".ptp-checkout-button, .ptp-button, .fca-ept-button").on("click",function(e){-1!==t(this).attr("href").indexOf("?edd_action=add_to_cart&download_id")&&fcaPcOptions.edd_enabled||-1!==t(this).attr("href").indexOf("add-to-cart=")&&fcaPcOptions.woo_enabled||c("track","InitiateCheckout",{content_name:fcaPcPost.title,pricing_table_id:function(t){var e=[];if(t.closest(".ptp-pricing-table").length)e=t.closest(".ptp-pricing-table");else if(t.closest(".pricing_container").length)e=t.closest(".pricing_container");else if(t.closest(".ptp-stylish-pricingtable").length)e=t.closest(".ptp-stylish-pricingtable");else if(t.closest(".ptp-design4-pricingtable").length)e=t.closest(".ptp-design4-pricingtable");else if(t.closest(".ptp-dg5-pricing-table").length)e=t.closest(".ptp-dg5-pricing-table");else if(t.closest(".cd-pricing-container").length)e=t.closest(".cd-pricing-container");else if(t.closest(".ptp-comparison1-pricingtable").length)e=t.closest(".ptp-comparison1-pricingtable");else if(t.closest(".ptp-comparison2-pricingtable").length)e=t.closest(".ptp-comparison2-pricingtable");else if(t.closest(".ptp-comparison3-pricingtable").length)e=t.closest(".ptp-comparison3-pricingtable");else if(t.closest(".fca-ept-main").length)return(e=t.closest(".fca-ept-main")).attr("id").replace("fca-ept-table-","");return e.length?e.attr("id").replace("ptp-",""):""}(t(this)),plan_name:function(t){var e=[];return t.closest(".ptp-col").find(".ptp-plan").length?e=t.closest(".ptp-col").find(".ptp-plan"):t.closest(".pricing_item").find(".name").length?e=t.closest(".pricing_item").find(".name"):t.closest(".ptp-stylish-column").find(".title").length?e=t.closest(".ptp-stylish-column").find(".title"):t.closest(".ptp-design4-col").find(".ptp-design4-title").length?e=t.closest(".ptp-design4-col").find(".ptp-design4-title").eq(0):t.closest(".ptp-dg5-col").find(".ptp-dg5-plan").length?e=t.closest(".ptp-dg5-col").find(".ptp-dg5-plan"):t.closest(".ptp-dg6-col").find(".ptp-dg6-pricing-header h2").length?e=t.closest(".ptp-dg6-col").find(".ptp-dg6-pricing-header h2"):t.closest(".ptp-dg7-col").find(".ptp-dg7-pricing-header h2").length?e=t.closest(".ptp-dg7-col").find(".ptp-dg7-pricing-header h2"):t.closest(".ptp-price-table").find(".ptp-plan-title h2").length?e=t.closest(".ptp-price-table").find(".ptp-plan-title h2"):t.closest(".ptp-cp2-price-table").find(".ptp-cp2-plan-title h2").length?e=t.closest(".ptp-cp2-price-table").find(".ptp-cp2-plan-title h2"):t.closest(".ptp-cp3-price-table").find(".ptp-cp3-plan-title h2").length?e=t.closest(".ptp-cp3-price-table").find(".ptp-cp3-plan-title h2"):t.closest(".fca-ept-column").find(".fca-ept-plan").length&&(e=t.closest(".fca-ept-column").find(".fca-ept-plan")),e.length?e.text():""}(t(this)),price:function(t){var e=[];return t.closest(".ptp-col").find(".ptp-price").length?e=t.closest(".ptp-col").find(".ptp-price"):t.closest(".pricing_item").find(".price").length?e=t.closest(".pricing_item").find(".price"):t.closest(".ptp-stylish-column").find(".price").length?e=t.closest(".ptp-stylish-column").find(".price"):t.closest(".ptp-design4-col").find(".ptp-design4-price").length?e=t.closest(".ptp-design4-col").find(".ptp-design4-price"):t.closest(".ptp-dg5-col").find(".ptp-dg5-price").length?e=t.closest(".ptp-dg5-col").find(".ptp-dg5-price"):t.closest(".ptp-dg6-col").find(".ptp-dg6-price").length?e=t.closest(".ptp-dg6-col").find(".ptp-dg6-price"):t.closest(".ptp-dg7-col").find(".ptp-dg7-price").length?e=t.closest(".ptp-dg7-col").find(".ptp-dg7-price"):t.closest(".ptp-price-table").find(".cp1-ptp-price").length?e=t.closest(".ptp-price-table").find(".cp1-ptp-price"):t.closest(".ptp-cp2-price-table").find(".ptp-cp2-row-id-0").length?e=t.closest(".ptp-cp2-price-table").find(".ptp-cp2-row-id-0"):t.closest(".ptp-cp3-price-table").find(".cp3-ptp-price").length?e=t.closest(".ptp-cp3-price-table").find(".cp3-ptp-price"):t.closest(".fca-ept-column").find(".fca-ept-price").length&&(e=t.closest(".fca-ept-column").find(".fca-ept-price")),e.length?Number(e.text().replace(/[^0-9\.]+/g,"")):""}(t(this))})}),"undefined"!=typeof fcaPcQuizCatEnabled){t(".fca_qc_start_button").on("click",function(c){return e("trackCustom","QuizStart",{quiz_id:parseInt(t(this).closest(".fca_qc_quiz").prop("id").replace("fca_qc_quiz_","")),quiz_name:t(this).closest(".fca_qc_quiz").find(".fca_qc_quiz_title").text()}),!0}),t(".fca_qc_share_link").on("click",function(c){return e("trackCustom","QuizShare",{quiz_id:parseInt(t(this).closest(".fca_qc_quiz").prop("id").replace("fca_qc_quiz_","")),quiz_name:t(this).closest(".fca_qc_quiz").find(".fca_qc_quiz_title").text()}),!0}),t(".fca_qc_submit_email_button").on("click",function(e){var a;if(a=!(0!==t(".fca-qc-gdpr-consent").length)||"checked"===t(".fca-qc-gdpr-consent").attr("checked"),t(this).siblings("#fca_qc_email_input").val()){var o=parseInt(t(this).closest(".fca_qc_quiz").prop("id").replace("fca_qc_quiz_","")),n=t(this).closest(".fca_qc_quiz").find(".fca_qc_quiz_title").text();t(this).siblings("#fca_qc_email_input").val(),t(this).siblings("#fca_qc_name_input").val();if(a)return c("track","Lead",{quiz_id:o,quiz_name:n}),!0}});var s=new MutationObserver(function(c,a){var o=t(c[0].target);e("trackCustom","QuizCompletion",{quiz_id:parseInt(o.closest(".fca_qc_quiz").prop("id").replace("fca_qc_quiz_","")),quiz_name:o.closest(".fca_qc_quiz").find(".fca_qc_quiz_title").text(),quiz_result:o.text()}),a.disconnect()});t(".fca_qc_score_title").each(function(){s.observe(this,{attributes:!0,childList:!0})})}});