File: //home/swifizcd/buyease.com.ng/wp-content/plugins/facebook-conversion-pixel/pixel-cat.min.js
jQuery(document).ready(function(t){function e(t,e,a){(i("Facebook Pixel")||i("Conversions API"))&&c(t,e,a,"Facebook"),i("TikTok")&&c(t,e,a,"TikTok"),i("Snapchat"),i("Pinterest")&&c(t,e,a,"Pinterest"),(i("GA3")||i("GA4")||i("Adwords"))&&c(t,e,a,"Google Analytics")}function c(e,c,r,s){var p=r?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!==d(e[c])&&(t[e[c]]=d(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}(r):null,f=new Date(t.now()).toUTCString(),l=new Date(f).valueOf()/1e3,u=a(),_=function(){var t=n("pixelcat_id");""==t&&""!=(t=a())&&null!=t&&o("pixelcat_id",t,365);return t}();if("undefined"!=typeof fbq)if("trackCustom"===e&&"Facebook"===s)fbq(e,c,p,{event_id:u,external_id:_}),fcaPcOptions.capis.hasOwnProperty("Conversions API")&&t.ajax({url:fcaPcOptions.ajax_url,type:"POST",data:{action:"fca_pc_capi_event",event_name:c,event_time:l,event_id:u,click_id:d("fbclid"),external_id:_,client_user_agent:navigator.userAgent,event_source_url:window.location.origin+window.location.pathname,custom_data:JSON.stringify(p),nonce:fcaPcOptions.nonce}});else{var P=(C=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);P&&(fbq(e,P,p,{event_id:u,external_id:_}),i("Conversions API")&&t.ajax({url:fcaPcOptions.ajax_url,type:"POST",data:{action:"fca_pc_capi_event",event_name:P,event_time:l,event_id:u,click_id:d("fbclid"),external_id:_,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 h=(C=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);h&&(snaptr(e,h,p,{event_id:u,external_id:_}),fcaPcOptions.capis.hasOwnProperty("Snapchat")&&t.ajax({url:fcaPcOptions.ajax_url,type:"POST",data:{action:"fca_pc_snapchat_api_event",event_name:h,event_time:l,event_id:u,external_id:_,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 ttq){var k=(C=new Map([["PageViewTiktok","PageView"],["ViewContentTiktok","ViewContent"],["AddToCartTiktok","AddToCart"],["AddToWishlistTiktok","AddToWishlist"],["InitiateCheckoutTiktok","InitiateCheckout"],["AddPaymentInfoTiktok","AddPaymentInfo"],["PurchaseTiktok","CompletePayment"],["CompleteRegistrationTiktok","CompleteRegistration"]])).get(c),g=function(e,c){var a={},o={};c&&((a=JSON.parse(JSON.stringify(c))).event_id=e,c.content_id&&(a.content_id=c.content_id.toString()),c.content_ids&&(a.content_ids=c.content_ids.toString()),["content_id","content_name"].forEach(function(t){a.hasOwnProperty(t)&&(o[t]=a[t])}),0==t.isEmptyObject(o)&&(a.contents=[o]));return a}(u,p);"trackCustom"===e&&"TikTok"===s&&(ttq.track(c,g),fcaPcOptions.capis.hasOwnProperty("TikTok")&&t.ajax({url:fcaPcOptions.ajax_url,type:"POST",data:{action:"fca_pc_tiktok_api_event",event_name:c,event_time:l,event_id:u,external_id:_,client_user_agent:navigator.userAgent,event_source_url:window.location.origin+window.location.pathname,custom_data:JSON.stringify(g),nonce:fcaPcOptions.nonce}})),k&&(ttq.track(k,g),fcaPcOptions.capis.hasOwnProperty("TikTok")&&t.ajax({url:fcaPcOptions.ajax_url,type:"POST",data:{action:"fca_pc_tiktok_api_event",event_name:k,event_time:l,event_id:u,external_id:_,client_user_agent:navigator.userAgent,event_source_url:window.location.origin+window.location.pathname,custom_data:JSON.stringify(g),nonce:fcaPcOptions.nonce}}))}if("undefined"!=typeof pintrk){var m=function(t,e){var c={};e&&((c=JSON.parse(JSON.stringify(e))).event_id=t);return c}(u,p);if("trackCustom"===e&&"Pinterest"===s)pintrk("track",c,m),fcaPcOptions.capis.hasOwnProperty("Pinterest")&&t.ajax({url:fcaPcOptions.ajax_url,type:"POST",data:{action:"fca_pc_pinterest_api_event",event_name:c,event_time:l,event_id:m.event_id,external_id:_,client_user_agent:navigator.userAgent,event_source_url:window.location.origin+window.location.pathname,custom_data:JSON.stringify(m),nonce:fcaPcOptions.nonce}});else{var y=(C=new Map([["AddToCartPinterest","AddToCart"],["PurchasePinterest","Checkout"],["LeadPinterest","Lead"],["ViewContentPinterest","ViewContent"],["CompleteRegistrationPinterest","Signup"],["AddPaymentInfoPinterest","AddPaymentInfo"],["InitiateCheckoutPinterest","InitiateCheckout"]])).get(c);y&&(pintrk("track",y,m),fcaPcOptions.capis.hasOwnProperty("Pinterest")&&t.ajax({url:fcaPcOptions.ajax_url,type:"POST",data:{action:"fca_pc_pinterest_api_event",event_name:y,event_time:l,event_id:m.event_id,external_id:_,client_user_agent:navigator.userAgent,event_source_url:window.location.origin+window.location.pathname,custom_data:JSON.stringify(m),nonce:fcaPcOptions.nonce}}))}}if("undefined"!=typeof gtag){if("track"===e){var C=new Map([["AddToCartGA","add_to_cart"],["AddPaymentInfoGA","add_payment_info"],["AddToWishlistGA","add_to_wishlist"],["PurchaseGA","purchase"],["InitiateCheckoutGA","begin_checkout"],["ViewContentGA","view_item"]]),w=C.get(c);w&>ag("event",w,p)}"trackCustom"===e&&"Google Analytics"===s&>ag("event",c,p)}}function a(){return"xxxxxxxxxx".replace(/[x]/g,function(t){return Math.floor(16*Math.random()).toString(16)})}function o(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=/"}function n(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""}function i(t){return-1!==fcaPcOptions.pixel_types.indexOf(t)}function d(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 r(){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,s=fcaPcEvents[e].pixel_type;switch(n){case"css":t(i).on("click",{name:a,params:o,apiAction:d,pixelType:s},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:s},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<=r()&&(t(window).off(e),c(a,o,n,i))}).trigger("scroll")},1e3*fcaPcEvents[e].delay,fcaPcEvents[e].scroll,d,a,o,s):fcaPcEvents[e].hasOwnProperty("delay")?setTimeout(c,1e3*fcaPcEvents[e].delay,d,a,o,s):c(d,a,o,s);break;case"url":t("a").each(function(){t(this).attr("href")===i&&t(this).on("click",{name:a,params:o,apiAction:d,pixelType:s},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<=r()&&(t(window).off(e),c(a,o,n,i))}).trigger("scroll")},1e3*fcaPcEvents[e].delay,fcaPcEvents[e].scroll,d,a,o,s):fcaPcEvents[e].hasOwnProperty("delay")?setTimeout(c,1e3*fcaPcEvents[e].delay,d,a,o,s):c(d,a,o,s))}}}(),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)),(i("Facebook Pixel")||i("Conversions API"))&&c("track","PageView"),n("fca_pc_advanced_matching")&&o("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&&((i("Facebook")||i("Conversions API"))&&c("track","AddToCart",t.facebook),i("TikTok")&&c("track","AddToCartTiktok",t.tiktok),i("Snapchat")&&c("track","AddToCartSnapchat",t.snapchat),i("Pinterest")&&c("track","AddToCartPinterest",t.pinterest),(i("GA3")||i("GA4")||i("Adwords"))&&c("track","AddToCartGA",t.ga))}})}),n("fca_pc_woo_add_to_cart")&&(c("track","AddToCart",JSON.parse(decodeURIComponent(n("fca_pc_woo_add_to_cart").replace(/\+/g,"%20")))),o("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&&(fcaPcOptions.woo_order_cookie?n("fcaPcWooPurchase_"+fcaPcWooPurchase.transaction_id)||(c("track","Purchase",fcaPcWooPurchase),o("fcaPcWooPurchase_"+fcaPcWooPurchase.transaction_id,!0,365)):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)})),n("fca_pc_woo_add_to_cart_tiktok")&&(c("track","AddToCartTiktok",JSON.parse(decodeURIComponent(n("fca_pc_woo_add_to_cart_tiktok").replace(/\+/g,"%20")))),o("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&&(fcaPcOptions.woo_order_cookie?n("fcaPcWooPurchaseTiktok_"+fcaPcWooPurchaseTiktok.transaction_id)||(c("track","PurchaseTiktok",fcaPcWooPurchaseTiktok),o("fcaPcWooPurchaseTiktok_"+fcaPcWooPurchaseTiktok.transaction_id,!0,365)):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)})),n("fca_pc_woo_add_to_cart_pinterest")&&(c("track","AddToCartPinterest",JSON.parse(decodeURIComponent(n("fca_pc_woo_add_to_cart_pinterest").replace(/\+/g,"%20")))),o("fca_pc_woo_add_to_cart_pinterest","")),"undefined"!=typeof fcaPcWooCheckoutCartPinterest&&(c("track","InitiateCheckoutPinterest",fcaPcWooCheckoutCartPinterest),t("form.checkout").on("checkout_place_order",function(t){return c("track","AddPaymentInfoPinterest",fcaPcWooCheckoutCartPinterest),!0})),"undefined"!=typeof fcaPcWooPurchasePinterest&&(fcaPcOptions.woo_order_cookie?n("fcaPcWooPurchasePinterest_"+fcaPcWooPurchasePinterest.transaction_id)||(c("track","PurchasePinterest",fcaPcWooPurchasePinterest),o("fcaPcWooPurchasePinterest_"+fcaPcWooPurchasePinterest.transaction_id,!0,365)):c("track","PurchasePinterest",fcaPcWooPurchasePinterest)),"undefined"!=typeof fcaPcWooProductPinterest&&(fcaPcOptions.woo_delay?setTimeout(c,1e3*fcaPcOptions.woo_delay,"track","ViewContentPinterest",fcaPcWooProductPinterest):c("track","ViewContentPinterest",fcaPcWooProductPinterest)),n("fca_pc_woo_add_to_cart_snapchat")&&(c("track","AddToCartSnapchat",JSON.parse(decodeURIComponent(n("fca_pc_woo_add_to_cart_snapchat").replace(/\+/g,"%20")))),o("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&&(fcaPcOptions.woo_order_cookie?n("fcaPcWooPurchaseSnapchat_"+fcaPcWooPurchaseSnapchat.transaction_id)||(c("track","PurchaseSnapchat",fcaPcWooPurchaseSnapchat),o("fcaPcWooPurchaseSnapchat_"+fcaPcWooPurchaseSnapchat.transaction_id,!0,365)):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)})),n("fca_pc_woo_add_to_cart_ga")&&(c("track","AddToCartGA",JSON.parse(decodeURIComponent(n("fca_pc_woo_add_to_cart_ga").replace(/\+/g,"%20")))),o("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&&(fcaPcOptions.woo_order_cookie?n("fcaPcWooPurchaseGA_"+fcaPcWooPurchaseGA.transaction_id)||(c("track","PurchaseGA",fcaPcWooPurchaseGA),o("fcaPcWooPurchaseGA_"+fcaPcWooPurchaseGA.transaction_id,!0,365)):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(i("Facebook")||i("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(i("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(i("GA3")||i("GA4")||i("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(i("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(i("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(i("Facebook")||i("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(i("GA3")||i("GA4")||i("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(i("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(i("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})),n("fca_pc_edd_purchase")&&(c("track","Purchase",JSON.parse(decodeURIComponent(n("fca_pc_edd_purchase").replace(/\+/g,"%20")))),o("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)),n("fca_pc_edd_purchase_ga")&&(c("track","PurchaseGA",JSON.parse(decodeURIComponent(n("fca_pc_edd_purchase_ga").replace(/\+/g,"%20")))),o("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})),n("fca_pc_edd_purchase_tiktok")&&(c("track","PurchaseTiktok",JSON.parse(decodeURIComponent(n("fca_pc_edd_purchase_tiktok").replace(/\+/g,"%20")))),o("fca_pc_edd_purchase_tiktok","")),"undefined"!=typeof fcaPcEddCheckoutCartPinterest&&(c("track","InitiateCheckoutPinterest",fcaPcEddCheckoutCartPinterest),t("#edd_purchase_form").on("submit",function(t){return c("track","AddPaymentInfoPinterest",fcaPcEddCheckoutCartPinterest),!0})),"undefined"!=typeof fcaPcEddProductPinterest&&(fcaPcOptions.edd_delay?setTimeout(c,1e3*fcaPcOptions.edd_delay,"track","ViewContentPinterest",fcaPcEddProductPinterest):c("track","ViewContentPinterest",fcaPcEddProductPinterest)),n("fca_pc_edd_purchase_pinterest")&&(c("track","PurchasePinterest",JSON.parse(decodeURIComponent(n("fca_pc_edd_purchase_pinterest").replace(/\+/g,"%20")))),o("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)),n("fca_pc_edd_purchase_snapchat")&&(c("track","PurchaseSnapchat",JSON.parse(decodeURIComponent(n("fca_pc_edd_purchase_snapchat").replace(/\+/g,"%20")))),o("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})})}});