PageSourceSearch

https://www.i973hits.com/js/facebook-pixel.js

js i973hits.com collected 2026-09-26 04:03:25 UTC 45,830 bytes, 1 lines download raw bytes

1var fBSettings=window.omegaFBSettings||JSON.parse(localStorage.getItem("ot_omega_settings")),ot_feature_settings=fBSettings?.settings?.feature_settings||null,ot_endPointUrl=ot_feature_settings?.app_api_url||fBSettings?.endpoint_capi_url||"https://app.twoowls.io/base-facebook-pixels",ot_rootLinkCapi=ot_feature_settings?.core_api_url||fBSettings?.core_capi_url||"https://api.twoowls.io/core-facebook-pixels",ot_rootLinkTracking=ot_feature_settings?.core_api_url||"https://api.twoowls.io/core-facebook-pixels",ot_tracking_path=ot_feature_settings?.tracking_path||"/conversion-api",ot_external_path=ot_feature_settings?.external_path||"/api/external",rootlinkFBPixel=ot_endPointUrl+ot_external_path;function otTransformURL(t){var e=t.split("?")[1];return void 0!==e?-1!==e.indexOf("&")?(e=e.slice(e.indexOf("&")+1,e.length),t.split("?")[0]+"?"+e):t.split("?")[0]:t}function otConvertShopName(){return null!=localStorage.getItem("ot_fb_shop")?localStorage.getItem("ot_fb_shop"):""}function otDetectAttributeWindow(){return"undefined"!=typeof omegaFBSettings&&void 0!==omegaFBSettings.settings.attributes_window?Math.max(1,parseInt(omegaFBSettings.settings.attributes_window,10)||14):14}function otSetCookieByAttributeWindow(t,e){var o=new Date,n=otDetectAttributeWindow(),n=(o.setTime(o.getTime()+24*n*60*60*1e3),"expires="+o.toGMTString());document.cookie=t+"="+e+";"+n+";path=/"}function otConvertPageUrl(){var t=window.location.href,e=t.indexOf("/wpm@"),o=t.indexOf("/sandbox/modern")+"/sandbox/modern".length,e=t.slice(e,o);return t.replace(e,"")}function otIsJsonString(t){try{JSON.parse(t)}catch(t){return!1}return!0}function deleteCookie(t){document.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"}function otSetCookie(t,e,o){var n=new Date,o=(n.setTime(n.getTime()+24*o*60*60*1e3),"expires="+n.toGMTString());document.cookie=t+"="+e+";"+o+";path=/"}function otGetCookie(t){var o=t+"=",n=(document.cookie,document.cookie.split(";"));for(let e=0;e<n.length;e++){let t=n[e];for(;" "==t.charAt(0);)t=t.substring(1);if(0==t.indexOf(o))return t.substring(o.length,t.length)}return""}function otDeleteCookie(t,e="/",o){var n=new Date,n=(n.setTime(n.getTime()+0),"expires="+n.toUTCString());document.cookie=t+"=0;"+n+";path="+e,o&&(document.cookie=t+"=0;"+n+`;path=${e};domain=`+o)}function generateEventID(t){for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890".split(""),o=[],n=0;n<t;n++){var a=(Math.random()*(e.length-1)).toFixed(0);o[n]=e[a]}return o.join("")}function ot_getUrlParam(t){t=window.location.search.match("[?&]"+t+"(?:&|$|=([^&]*))");return t?t[1]||"":null}function getRandomInt(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t)+t)}async function sha256(t){t=(new TextEncoder).encode(t),t=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(t)).map(t=>t.toString(16).padStart(2,"0")).join("")}function otTrackEventConversionAPI(t,e){fetch(t,{method:"POST",body:e}).then(function(t){}).catch(function(t){console.log(t)})}function otSaveAdvancedMatchings(t){var e=null!=t.email?t.email:"",o=null!=t.shippingAddress.city?t.shippingAddress.city.toLowerCase():"",n=null!=t.shippingAddress.phone?t.shippingAddress.phone:"",a=null!=t.shippingAddress.zip?t.shippingAddress.zip:"",i=null!=t.shippingAddress.firstName?t.shippingAddress.firstName.toLowerCase():"",r=null!=t.shippingAddress.lastName?t.shippingAddress.lastName.toLowerCase():"",c=null!=t.shippingAddress.countryCode?t.shippingAddress.countryCode.toLowerCase():"",t=null!=t.shippingAddress.provinceCode?t.shippingAddress.provinceCode.toLowerCase():"",s={em:e,ct:o,ph:n,zp:a,fn:i,ln:r,external_id:externalID,country:c,st:t},c=Object.keys(s);if(0<c.length)for(var d of c)""==s[d]&&delete s[d];window.localStorage.setItem("OT_DATA_CUSTOMER__TRACK_FB",JSON.stringify(s)),OT_DATA_CUSTOMER__TRACK_FB=s,window.localStorage.setItem("OT_DATA_CUSTOMER",JSON.stringify({em:e,ct:o,ph:n,zp:a,first_name:i,last_name:r,external_id:externalID}))}function otGetContentCategories(t){let o=[];return t.forEach(function(t,e){o.push(t.variant.product.type)}),(o=[...new Set(o)]).filter(t=>""!==t).toString()}function removeElementInObject(t,e){var o=Object.keys(t);if(0<o.length)for(var n of o)t[n]==e&&delete t[n];return t}function otGetAttributeFBCAndFBP(){var t=(new Date).getTime()+getRandomInt(1,1e5),e=(new Date).getTime();return{fbc:otDetectFbc("1",e),fbp:otDetectFbp("1",e,t)}}function otDetectFbc(t,e){let o=null;var n=otGetCookie("_fbc"),a=otGetCookie("OT_FBCLID"),i=ot_getUrlParam("fbclid");
1return o=null!=i?(otSetCookieByAttributeWindow("OT_FBCLID",t=`fb.${t}.${e}.`+i),t):""!=a?a:null,o=""!==n?n:o}function otFBDetectExternalID(){var t=otGetCookie("c_user"),e=otGetCookie("ex_id");return null!=t&&""!==t?(otSetCookieByAttributeWindow("ex_id",e),t):(null!=e&&""!==e||otSetCookieByAttributeWindow("ex_id",e=generateEventID(10)),e)}function otFBDetectSectionOrderID(){var t=otGetCookie("section_order_id");return null!=t&&""!==t||otSetCookieByAttributeWindow("section_order_id",t=generateEventID(10)),t}function otDetectFbp(t,e,o){var n=otGetCookie("OT_FBPLID"),a=otGetCookie("_fbp");return""!==a?a:""!==n?n:(otSetCookieByAttributeWindow("OT_FBPLID",a=`fb.${t}.${e}.`+o),a)}function otAddUtmField(t,e=!1){var o=ot_getUrlParam(t),t=t.replace("omega_",""),n=(e&&otDeleteCookie("ot_fb_"+t),ot_getUrlParam(t));if(null!==n||null!==o){if(null!==o)return e&&otDeleteCookie("ot_fb_"+t),otSetCookieByAttributeWindow("ot_fb_"+t,o),{status:"success",data:""!=o?o:"undetectable"};if(null!==n)return e&&otDeleteCookie("ot_fb_"+t),otSetCookieByAttributeWindow("ot_fb_"+t,n),{status:"success",data:""!=n?n:"undetectable"}}else if(""!==otGetCookie("ot_fb_"+t))return e&&otDeleteCookie("ot_fb_"+t),{status:"success",data:otGetCookie("ot_fb_"+t)};return{status:"false",data:null}}function OtDetectAdsUrl(){let e=!1;return["fbclid","omega_utm_campaign","omega_ad_name","omega_adset_name","omega_utm_source","utm_campaign","ad_name","utm_source","adset_name","campaign_id","adset_id","ad_id"].every(t=>!window.location.search.includes(t)||!(e=!0)),e}function otDetectField(t){var e=ot_getUrlParam(t),t=t.replace("omega_",""),o=ot_getUrlParam(t);
1return null!=e?(otSetCookieByAttributeWindow("ot_fb_"+t,e),e):null!=o?(otSetCookieByAttributeWindow("ot_fb_"+t,o),o):(otSetCookieByAttributeWindow("ot_fb_"+t,"undetectable"),"undetectable")}function otDetectUTMUrl(){var e={utm_source:otDetectField("utm_source"),utm_campaign:otDetectField("utm_campaign"),adset_name:otDetectField("adset_name"),ad_name:otDetectField("ad_name"),campaign_id:otDetectField("campaign_id"),adset_id:otDetectField("adset_id"),ad_id:otDetectField("ad_id")},t=JSON.parse(localStorage.getItem("OT_LIST_CAMPAIGNS"))||[];return(t=t.filter(function(t){return""!==otGetCookie("ot_list_"+t.campaign_id)})).some(function(t){return JSON.stringify(t)===JSON.stringify(e)})||(t.push(e),localStorage.setItem("OT_LIST_CAMPAIGNS",JSON.stringify(t)),otSetCookieByAttributeWindow("ot_list_"+e.campaign_id,"active")),e}function otDetectUTMCookie(){return{utm_source:otGetCookie("ot_fb_utm_source"),utm_campaign:otGetCookie("ot_fb_utm_campaign"),adset_name:otGetCookie("ot_fb_adset_name"),ad_name:otGetCookie("ot_fb_ad_name"),campaign_id:otGetCookie("ot_fb_campaign_id"),adset_id:otGetCookie("ot_fb_adset_id"),ad_id:otGetCookie("ot_fb_ad_id")}}function otFBDetectCampaign(){return(OtDetectAdsUrl()?otDetectUTMUrl:otDetectUTMCookie)()}function otGetContentProduct(t){return t.map(t=>({id:1,name:"",quantity:""}))}function getIP(){return fetch("https://www.cloudflare.com/cdn-cgi/trace").then(t=>t.text())}function isIPv6(t){return/^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$/gm.test(t)}function ipv4ToIpv6(t){t=t.split(".").map(t=>parseInt(t,10));if(4!==t.length||t.some(t=>isNaN(t)||t<0||255<t))throw new Error("Invalid IPv4 address format");return`::ffff:${t[0].toString(16).padStart(2,"0")}:${t[1].toString(16).padStart(2,"0")}:${t[2].toString(16).padStart(2,"0")}:`+t[3].toString(16).padStart(2,"0")}function isIPv4(t){return/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(t)}async function otDetectIP(){try{let e=["duong-test-px3.myshopify.com","juntestpx.myshopify.com","12b241-2.myshopify.com","personalizeddoghouse.myshopify.com","mellydecor.myshopify.com","creek-lander.myshopify.com","custype.myshopify.com","ericajewelstoronro.myshopify.com","blunico.myshopify.com","fitin30s.myshopify.com","petti-store-japan.myshopify.com","seniors-bra.myshopify.com","vevacare.myshopify.com","b71922.myshopify.com","8b47b5.myshopify.com","theuptest.myshopify.com","a0224c.myshopify.com","39220c.myshopify.com","mocono.myshopify.com","superladystar.myshopify.com","gerhau.myshopify.com","pawspawty.myshopify.com","meroeu.myshopify.com","reibiifurniture.myshopify.com","49a829-89.myshopify.com","4vw6v6-ey.myshopify.com","socialitte.myshopify.com","40b8b1-2e.myshopify.com","healifeco2.myshopify.com","russoleather.myshopify.com","40b8b1-2e.myshopify.com","2vnpww-33.myshopify.com","latatva.myshopify.com"];if(""!=ot_ip)return ot_ip;let o="";return await getIP().then(t=>{null==(ip=t.split("ip=")[1].split("\n")[0])||null==ip||!e.includes(ot_fb_shop)&&1!=omegaFBSettings?.settings?.feature_settings?.fix_ip_address||!isIPv4(ip)&&!isIPv6(ip)||isIPv6(o=ip)||(o=ipv4ToIpv6(ip))}),o}catch(t){return""}}function otDetectMatchingParams(t,e){var o=t[e]??null,n=t.shipping_address?t.shipping_address[e]??null:null,t=t.billing_address?t.billing_address[e]??null:null;return o??n??t??""}function getItemOnCartPageFB(e){fetch("/cart.js").then(t=>{if(t.ok)return t.json();throw new Error("Network response was not ok")}).then(t=>{localStorage.setItem("ot_cart",JSON.stringify(t)),"function"==typeof e&&e(t)}).catch(t=>{console.error("There was a problem with the fetch operation:",t)})}function initFacebookEventScript(){var t,e,o;e=window,o=document,e.fbq||(t=e.fbq=function(){t.callMethod?t.callMethod.apply(t,arguments):t.queue.push(arguments)},e._fbq||(e._fbq=t),(t.push=t).loaded=!0,t.version="2.0",t.queue=[],(e=o.createElement("script")).async=!0,e.src="https://connect.facebook.net/en_US/fbevents.js",(o=o.getElementsByTagName("script")[0]).parentNode.insertBefore(e,o))}function otCheckEnableTracking(t){if(!omegaFBSettings?.settings?.feature_settings?.plan_id&&t?.includes("capi_"))return!1;var e,o;let n=window?.location?.origin;return!["halipax.com","ausmenics.myshopify.com"].some(t=>n?.includes(t))&&!(!omegaFBSettings||!omegaFBSettings?.settings)&&(e=!("FREE"==omegaFBSettings?.settings?.plan_configs?.plan_type&&omegaFBSettings?.settings?.plan_configs?.order_remain<=0),o=null==omegaFBSettings?.settings?.[t]||"1"==omegaFBSettings?.settings?.[t],["capi_track_addtocart","capi_track_checkout","capi_track_purchase"].includes(t)?o:o&&e)}function detectInfoATCByProductId(e,t){return t.filter(t=>t.product_id==e).map(t=>({url:"https://"+ot_fb_shop+t.url??"",title:t.title,id:e}))}function detectLastInfoATCByProductId(e,t){return 0<t?.length&&(t=t.filter(t=>t.product_id==e)[0])?[{url:"https://"+ot_fb_shop+t?.url??"",title:t?.variant_title?t?.product_title+" - "+t?.variant_title:t?.product_title,id:e??""}]:[]}function convertToFormData(e,t,n){let a=t||new URLSearchParams;for(var i in e)if(e.hasOwnProperty(i)){let o=n?`${n}[${i}]`:i,t=e[i];null!==t&&"null"!==t||(t=""),Array.isArray(t)?t.forEach((t,e)=>{e=o+`[${e}]`;"object"==typeof t&&null!==t?convertToFormData(t,a,e):a.append(e,null===t||"null"===t?"":t)}):"object"==typeof t&&null!==t?convertToFormData(t,a,o):a.append(o,t)}return a}
1async function otDisagreeForTracking(){let t=!1;var e=window?.Shopify?.shop;if(["livefresh-juice.myshopify.com","long-testapp.myshopify.com","0d1a37-4.myshopify.com","quickstart-7683b804.myshopify.com","dccomics-shop.myshopify.com"].includes(e))try{await new Promise((e,o)=>{window?.Shopify?.loadFeatures?window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],t=>{t?o(t):e()}):o(new Error("Shopify.loadFeatures not available"))}),(t="yes"!==window?.Shopify?.customerPrivacy?.getTrackingConsent())&&(otDeleteCookie("_fbp","/","."+e),otDeleteCookie("obj_fbp_fbc"),otDeleteCookie("OT_FBPLID")),console.log("%c Omega Facebook pixels - Disagree For Tracking: "+t,"color: red; background: white;padding: 5px; border-radius: 5px")}catch(t){console.error("[Omega] Error loading consent-tracking-api:",t)}else"amicajewels.myshopify.com"!==e&&e!==window.otStoreIntegrateCookie&&(t=!1);return t||initFacebookEventScript(),t}async function fetchWithTimeout(t,o=5e3){var e=new Promise((t,e)=>setTimeout(()=>e(new Error("Request timed out")),o)),t=fetch(t);try{var n=await Promise.race([t,e]);return n.ok?await n.json():null}catch(t){return null}}var ot_fb_shop=Shopify.shop,fb_pageURL=(localStorage.setItem("ot_fb_shop",ot_fb_shop),window.location.href),fb_pageURL,ot_ip=("undefined"!=typeof __st&&void 0!==__st.pageurl&&(fb_pageURL="https://"+__st.pageurl),""),ot_information_campaign=(null!==localStorage.getItem("ot_ip_v6")&&(ot_ip=localStorage.getItem("ot_ip_v6")),"undefined"!=typeof arrayFBPixelTrack&&localStorage.setItem("ot_omega_px",arrayFBPixelTrack),fb_pageURL=otTransformURL(fb_pageURL),otFBDetectCampaign()),externalID=(localStorage.setItem("ot_information_campaign",JSON.stringify(ot_information_campaign)),"undefined"!=typeof omegaFBSettings&&localStorage.setItem("ot_omega_settings",JSON.stringify(omegaFBSettings)),otFBDetectExternalID()),sectionOrderId=otFBDetectSectionOrderID(),obj_fbp_fbc=otGetAttributeFBCAndFBP(),OT_LIST_CAMPAIGNS=(otSetCookieByAttributeWindow("obj_fbp_fbc",JSON.stringify(obj_fbp_fbc??{})),[]),OT_DATA_CUSTOMER=(null!==localStorage.getItem("OT_LIST_CAMPAIGNS")&&(OT_LIST_CAMPAIGNS=JSON.parse(localStorage.getItem("OT_LIST_CAMPAIGNS"))),{external_id:externalID,section_order_id:sectionOrderId}),OT_DATA_CUSTOMER__TRACK_FB=(null!==localStorage.getItem("OT_DATA_CUSTOMER")&&otIsJsonString(localStorage.getItem("OT_DATA_CUSTOMER"))&&(OT_DATA_CUSTOMER=JSON.parse(localStorage.getItem("OT_DATA_CUSTOMER"))),{external_id:externalID}),otListAllCustomEvents=(null!==localStorage.getItem("OT_DATA_CUSTOMER__TRACK_FB")&&otIsJsonString(localStorage.getItem("OT_DATA_CUSTOMER__TRACK_FB"))&&(OT_DATA_CUSTOMER__TRACK_FB=JSON.parse(localStorage.getItem("OT_DATA_CUSTOMER__TRACK_FB"))),[]),otListAllCustomAddToCart=[],otListAllCustomCheckout=[],otListAllCustomLead=[],isCustomEventPage=ot_getUrlParam("otCustomEvent"),conditionIncludeFileEventSetup=sessionStorage.getItem("OT_FACEBOOK_EVENT_SETUP"),currency=Shopify.currency.active,cart_url="//"+window.location.hostname+"/cart.json",itemInCart,otFBElementButtonAddToCart=".product-form__add-button, .product-form__add-button .loader-button__loader,[data-add-to-cart-text],.ProductForm__AddToCart,#teeAtcButton,#new-form-atc,.single_add_to_cart_button,#AddToCartForm button,.product__form button.add-to-cart, #AddToCart-product-template,.product-form__cart-submit,[name^='add']",otFBElementButtonCheckout='.bettercart_checkout,[name^="checkout"],[name^="checkout"] .loader-button__text,.shopify-payment-button__button,.btn-checkout,a.fbq-checkout,.checkout_btn,.OTCheckout,.OTCheckout span,#cart .action_button.right, shop-pay-wallet-button, shop-pay-wallet-button button, shop-pay-wallet-button slot';if("undefined"==typeof $&&(t=>{t.src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js",t.integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT",t.crossOrigin="anonymous",t.onload=function(){$=jQuery.noConflict()},document.head.appendChild(t)})(document.createElement("script")),((d,_)=>{d.otfbq||(d.otfbq=async function(){if(otLogNameBaseCode("Omega"),!("FREE"==omegaFBSettings?.settings?.plan_configs?.plan_type&&omegaFBSettings?.settings?.plan_configs?.order_remain<=0)&&0<arguments.length){"string"==typeof arguments[0]&&(r=""+arguments[0]),"string"==typeof arguments[1]&&(t=arguments[1]),"object"==typeof arguments[2]&&(e=arguments[2]),void 0!==arguments[3]&&(o=arguments[3]),void 0!==arguments[4]&&(nameCustomEvent=arguments[4]),""!=o&&void 0!==o||(o=(new Date).getTime()+getRandomInt(1,1e5));var t,e,o,n=[];if("string"==typeof r&&""!=r.replace(/\s+/gi,"")&&"string"==typeof t&&t.replace(/\s+/gi,"")){switch(n.push("id="+encodeURIComponent(r)),t){case"PageView":case"ViewContent":case"Search":case"AddToCart":case"InitiateCheckout":case"AddPaymentInfo":case"Lead":case"CompleteRegistration":case"Purchase":case"AddToWishlist":n.push("ev="+encodeURIComponent(t));break;case"trackCustom":n.push("ev="+encodeURIComponent(nameCustomEvent));break;default:return}if(n.push("dl="+encodeURIComponent(fb_pageURL)),_.referrer&&n.push("rl="+encodeURIComponent(_.referrer)),n.push("if=false"),n.push("ts="+(new Date).getTime()),"object"==typeof e)for(var a in e)if("object"==typeof e[a]&&e[a]instanceof Array){if(0<e[a].length){for(var i=0;i<e[a].length;i++)e[a][i]=(e[a][i]+"").replace(/^\s+|\s+$/gi,"").replace(/\s+/gi," ").replace(/,/gi,"§");n.push("cd["+a+"]="+encodeURIComponent(e[a].join(",").replace(/^/gi,"['").replace(/$/gi,"']").replace(/,/gi,"','").replace(/§/gi,",")))}}else n.push("cd["+a+"]="+encodeURIComponent(e[a]));var r=Object.keys(OT_DATA_CUSTOMER__TRACK_FB);if(0<r.length)for(var c of r)n.push("&ud["+c+"]="+await sha256(OT_DATA_CUSTOMER__TRACK_FB[c]));""!=ot_ip&&n.push("&ud[client_ip_address]="+await sha256(ot_ip)),n.push("v="+encodeURIComponent("2.7.19"));var s=(new Date).getTime(),r=_.createElement("img");r.id="fb_"+s,r.src="https://www.facebook.com/tr/?eid="+o+"&"+n.join("&"),r.width=1,r.height=1,r.style="display:none;",_.body.appendChild(r),d.setTimeout(function(){var t=_.getElementById("fb_"+s);t.parentElement.removeChild(t)},5e3)}}})})(window,document),window.otBaseCodeFB=function(){var e,o,n,a;if((otLogNameBaseCode("FB"),!("FREE"==omegaFBSettings?.settings?.plan_configs?.plan_type&&omegaFBSettings?.settings?.plan_configs?.order_remain<=0))&&(0<arguments.length&&("string"==typeof arguments[0]&&(e=""+arguments[0]),"string"==typeof arguments[1]&&(o=arguments[1]),"object"==typeof arguments[2]&&(n=arguments[2]),void 0!==arguments[3]&&(a=arguments[3]),void 0!==arguments[4]&&(nameCustomEvent=arguments[4]),""!=a&&void 0!==a||(a=(new Date).getTime()+getRandomInt(1,1e5)),"string"==typeof e)&&""!=e.replace(/\s+/gi,"")&&"string"==typeof o&&o.replace(/\s+/gi,""))){let t={...OT_DATA_CUSTOMER__TRACK_FB};switch(""!=ot_ip&&(t={...t,client_ip_address:ot_ip}),fbq("init",e,t),o){case"PageView":fbq("trackSingle",e,"PageView",{},{eventID:a});break;case"ViewContent":case"Search":case"AddToCart":case"InitiateCheckout":case"AddPaymentInfo":case"Lead":case"CompleteRegistration":case"Purchase":case"AddToWishlist":fbq("trackSingle",e,o,n,{eventID:a});break;case"trackCustom":fbq("trackSingle",e,nameCustomEvent,n,{eventID:a});break;default:return}}},window.addEventListener("message",async t=>{var e;"ot_omega_get"==t.data?(e=Array.from(document.querySelectorAll('iframe[sandbox="allow-scripts allow-forms"]')).filter(t=>t.src.includes("custom/web-pixel")),"undefined"!=typeof arrayFBPixelTrack&&0<e.length&&e.forEach(t=>{t.contentWindow.postMessage("ot_omega_px:"+arrayFBPixelTrack,"*"),t.contentWindow.postMessage("ot_omega_settings:"+JSON.stringify(omegaFBSettings),"*")})):"string"==typeof t.data&&t.data.includes("ot_track_add_to_cart")&&omegaFBSettings&&"1"==omegaFBSettings.settings.enable&&omegaCallBackAddToCartTrigger(JSON.parse(t.data.slice(21)))}),void 0===window.otFbPixelCheckExistFile&&(otFacebookPixelInit(),window.otFbPixelCheckExistFile=!1),"undefined"!=typeof omegaFBSettings&&(omegaFBSettings.settings.is_enable_trigger,1)){let domeSandBox=Array.from(document.querySelectorAll('iframe[sandbox="allow-scripts allow-forms"]')).filter(t=>t.src.includes("custom/web-pixel"));"undefined"!=typeof arrayFBPixelTrack&&0<domeSandBox.length&&domeSandBox.forEac
1h(t=>{t.contentWindow.postMessage("ot_omega_px:"+arrayFBPixelTrack,"*"),t.contentWindow.postMessage("ot_omega_settings:"+JSON.stringify(omegaFBSettings),"*")})}async function otFacebookPixelInit(){if(""!=(ot_ip=""==ot_ip?await otDetectIP():ot_ip)&&localStorage.setItem("ot_ip_v6",ot_ip),await otDisagreeForTracking())return!0;var t=[],e="undefined"!=typeof omegaFBSettings,o=(t=e?omegaFBSettings:await otFacebookPixelCheckExpireApp(rootlinkFBPixel,ot_fb_shop)).settings;"1"==o.is_custome_event&&t.list_all_custom_events.forEach(t=>{0==t.event_type&&otListAllCustomEvents.push(t),1==t.event_type&&otListAllCustomLead.push(t),2==t.event_type&&otListAllCustomAddToCart.push(t),3==t.event_type&&otListAllCustomCheckout.push(t)}),e?"1"==omegaFBSettings.settings.enable&&otDetectEventCodeBase(o):"1"==t.enableApp&&otDetectEventCodeBase(o)}function otDetectEventCodeBase(t){otFBAddAttributeClickIdToOrder(t);var e="1"==t.content_type_event?"product":"product_group";"1"==t.use_basecode_fb&&(window.otfbq=window.otBaseCodeFB),"undefined"!=typeof arrayFBPixelTrack?(detectCustomEvents(arrayFBPixelTrack,otListAllCustomEvents),detectLeadEvents(arrayFBPixelTrack,otListAllCustomLead),void 0!==t.is_enable_web_pixel&&"0"!=t.is_enable_web_pixel||otMultiFacebookPixel(t,e)):void 0!==t.is_enable_web_pixel&&"2"==t.is_enable_web_pixel||(handleCheckPageIsThankYouPage(t,e,Shopify),void 0!==Shopify.Checkout&&void 0!==Shopify.Checkout.isOrderStatusPage&&trackOrderStatusPage())}async function otMultiFacebookPixel(o,r){if("undefined"!=typeof arrayFBPixelTrack&&0<arrayFBPixelTrack.length&&"0"==omegaFBSettings.settings.is_enable_trigger){let e=generateEventID(36);if(-1==fb_pageURL.indexOf("/products/")&&otCheckEnableTracking("pixel_track_pageview")&&arrayFBPixelTrack.forEach(function(t){otfbq(""+t,"PageView","",e)}),-1<fb_pageURL.indexOf("/products/")){var c=await otGetInfoProductByLink(-1<fb_pageURL.indexOf("?")?fb_pageURL.split("?")[0]+".json":fb_pageURL+".json");-1<c.title.indexOf("'")&&(c.title=c.title.replace(/'/g,""));let o=generateEventID(36),n=(otCheckEnableTracking("pixel_track_pageview")&&arrayFBPixelTrack.forEach(function(t){otfbq(""+t,"PageView","",o)}),ot_getUrlParam("variant")),a=null!==n?""+n:""+meta.product.variants[0].id,i=("product_group"==r&&(a=void 0!==c.id?""+c.id:""+meta.product.id),c.variants[0].price);
1null!=n&&meta.product.variants.forEach((t,e)=>{t.id==n&&(i=parseInt(t.price)/100)}),otCheckEnableTracking("pixel_track_viewcontent")&&arrayFBPixelTrack.forEach(function(t,e){otfbq(""+t,"ViewContent",{content_ids:[a],content_type:r,value:i,content_name:c.title,currency:Shopify.currency.active},o)}),!otCheckEnableTracking("capi_track_viewcontent")||"FREE"==omegaFBSettings?.settings?.plan_configs?.plan_type&&omegaFBSettings?.settings?.plan_configs?.order_remain<=0||trackEventFBConversionAPI(0,{action:"ViewContent",event_id:o,event_source_url:fb_pageURL,content_ids:[a],content_type:r,value:i,content_name:c.title,currency:Shopify.currency.active,pixels:arrayFBPixelTrack,shop:Shopify.shop,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign})}if(-1<fb_pageURL.indexOf("/search")){let e=generateEventID(36);otCheckEnableTracking("pixel_track_search")&&arrayFBPixelTrack.forEach(function(t){otfbq(""+t,"Search","",e)}),otCheckEnableTracking("capi_track_search")&&trackEventFBConversionAPI(0,{action:"Search",event_id:e,event_source_url:fb_pageURL,pixels:arrayFBPixelTrack,shop:Shopify.shop,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign})}-1<fb_pageURL.indexOf("/cart")&&getItemOnCartPageFB(function(a){let i=(itemInCart=a).items[0];var t=localStorage.getItem("OTPX"),e=localStorage.getItem("OTPXADDED");if((t!=a.item_count||null==t)&&1!=e){localStorage.setItem("OTPXADDED",0),localStorage.setItem("OTPX",a.item_count);let o=""+i.variant_id,n=("product_group"==r&&(o=""+i.product_id),generateEventID(36));otCheckEnableTracking("pixel_track_addtocart")&&arrayFBPixelTrack.forEach(function(t,e){otfbq(""+t,"AddToCart",{content_ids:[o],content_type:r,value:parseInt(a.total_price)/100,content_name:i.product_title,currency:Shopify.currency.active},n)});t=detectLastInfoATCByProductId(i.product_id,a.items);otCheckEnableTracking("capi_track_addtocart")&&trackEventFBConversionAPI(0,{action:"AddToCart",event_id:n,event_source_url:fb_pageURL,content_ids:[o],content_type:r,value:parseInt(a.total_price)/100,content_name:i.product_title,currency:Shopify.currency.active,pixels:arrayFBPixelTrack,shop:Shopify.shop,products:t,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign})}}),document.addEventListener("click",function(t){otEventClickIsMatchesDom(t,otFBElementButtonAddToCart,otListAllCustomAddToCart)&&setTimeout(()=>{getItemOnCartPageFB(function(t){otTrackATC(arrayFBPixelTrack,o,t,r)})},1500),otEventClickIsMatchesDom(t,otFBElementButtonCheckout,otListAllCustomCheckout)&&window.omegaCallBackCheckout()})}else-1<fb_pageURL.indexOf("/products/")?omegaCallBackViewContent():-1<fb_pageURL.indexOf("/cart")&&null!=localStorage.getItem("OT_DATA_TRIGGER_ATC")&&omegaCallBackAddToCartTrigger(JSON.parse(localStorage.getItem("OT_DATA_TRIGGER_ATC")))}async function trackOrderStatusPage(){var t=await otGetAllPixel(),o=generateEventID(36);0<t?.length&&otCheckEnableTracking("pixel_track_pageview")&&t.forEach(function(t,e){otfbq(""+t,"PageView","",o)})}function ABTestOtGetAllPixel(o){return new Promise(t=>{var e=new XMLHttpRequest;e.onreadystatechange=function(){4==this.readyState&&200==this.status&&t(JSON.parse(e.responseText))}
1,e.open("GET",rootlinkFBPixel+`/get-all-pixels-by-product?shop=${ot_fb_shop}&productIDs=`+o,!0),e.send()})}function otFacebookPixelCheckExpireApp(o,n){return new Promise((e,t)=>{fetch(o+"/check-expire?shop="+n).then(t=>t.json()).then(t=>{e(t)})})}function handleCheckPageIsThankYouPage(n,t,e){var a,i,r,c;e.Checkout&&e.Checkout.page&&(-1<e.Checkout.page.indexOf("thank_you")||-1<e.Checkout.page.indexOf("thank-you"))&&(handleAddEventMatching(n),null==localStorage.getItem("otfb_"+e.checkout.order_id))&&(a=[],i=[],r=[],c=0,e.checkout.line_items.forEach(function(t,e){var o;c+=t.quantity,o=""!=t.variant_title?t.title+" - "+t.variant_title:t.title,a.push(t.product_id),r.push(o),"1"==n.content_type_event?i.push(""+t.variant_id):i.push(""+t.product_id)}),addEventPurchaseInThankYouPage(a,i,c,n,t))}async function addEventPurchaseInThankYouPage(t,a,i,r,c){var s,d={};let _=Shopify.checkout,e=(localStorage.setItem("otfb_"+_.order_id,_.order_id),await ABTestOtGetAllPixel(t)),l=[];if(0<e.length&&e.forEach((t,e)=>{l.push(t.pixel_id)}),0<e.length){s=1==r.include_shippping_cost?_.total_price:_.subtotal_price;let e=generateEventID(36);otCheckEnableTracking("pixel_track_pageview")&&l.forEach(function(t){otfbq(""+t,"PageView","",e)}),otCheckEnableTracking("pixel_track_purchase")&&l.forEach(function(t){otfbq(""+t,"Purchase",{currency:Shopify?.checkout?.presentment_currency??Shopify.currency.active,value:s,content_ids:a,content_type:c,num_items:i},_.order_id)});t=otGetAttributeFBCAndFBP();if(localStorage.setItem("item_count",0),otCheckEnableTracking("capi_track_purchase")){let o=[],n=[];_.line_items.forEach((t,e)=>{o.push(t.title),n.push({id:t.product_id,title:t.title})});r={user_data:{external_id:[externalID],section_order_id:[sectionOrderId],...OT_DATA_CUSTOMER,...ot_information_campaign,client_user_agent:window.navigator.userAgent,subscription_id:_.customer_id??"",...t,obj_fbp_fbc:t},content_ids:a,content_name:o,content_type:c,num_items:i,currency:Shopify.currency.active,event_source_url:fb_pageURL,value:s,...ot_information_campaign,event_id:_.order_id,section_order_id:sectionOrderId};""!=ot_ip&&(r.user_data.client_ip_address=ot_ip,trackEventFBConversionAPI(d,{action:"Purchase",order_id:_.order_id,pixels:l,event_source_url:fb_pageURL,shop:Shopify.shop,order_value:s,suborder_value:_.subtotal_price,products:n,data_post:r,event_id:_.order_id,obj_fbp_fbc:t,section_order_id:sectionOrderId}))}}deleteCookie("section_order_id")}function getFbClientId(){var t=/_fbp=(fb\.1\.\d+\.\d+)/.exec(window.document.cookie);return t&&t[1]?t[1]:null}function otGetAllPixel(){return new Promise(t=>{var e=new XMLHttpRequest;e.onreadystatechange=function(){4==this.readyState&&200==this.status&&t(JSON.parse(e.responseText))}
1,e.open("GET",rootlinkFBPixel+`/get-all-pixels?shop=${ot_fb_shop}&action=getAllPixel`,!0),e.send()})}function otGetInfoProductByLink(o){return new Promise((e,t)=>{fetch(o,{method:"GET",headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}}).then(t=>t.json()).then(t=>{"string"==typeof t&&(t=JSON.parse(t)),e(t.product)})})}function trackEventFBConversionAPIByBeacon(t,e){let o={...e,external_id:externalID,section_order_id:sectionOrderId,logs:JSON.stringify(OT_LIST_CAMPAIGNS)};var n,e=new convertToFormData(o=""!=ot_ip?{...o,client_ip_address:ot_ip}:o),a=new URLSearchParams;for(n of e)a.append(n[0],n[1]);navigator.sendBeacon(ot_rootLinkCapi+ot_tracking_path,a)}function trackEventFBConversionAPI(t,e){let o={...e,external_id:externalID,section_order_id:sectionOrderId,logs:JSON.stringify(OT_LIST_CAMPAIGNS)};var n=new convertToFormData(o=""!=ot_ip?{...o,client_ip_address:ot_ip}:o),e="Purchase"!==e?.action&&"InitiateCheckout"!==e?.action?""+ot_rootLinkTracking+ot_tracking_path:""+ot_rootLinkCapi+ot_tracking_path;fetch(e,{method:"POST",body:n}).catch(t=>console.log(t))}function trackEventTimeOnPage(e,o){if("1"==o.isTimeOnPage){let t=1e3*parseInt(o.intervalTrackTimeOnPage),n=t;setInterval(()=>{let o=(new Date).getTime()+getRandomInt(1,1e5)+n;e.forEach(function(t,e){window.otfbq(t,"trackCustom",{time:n},o,"TimeOnPage")}),trackEventFBConversionAPI($,{action:"TimeOnPage",event_id:o,event_source_url:fb_pageURL,pixels:e,shop:Shopify.shop,timeOnPage:n,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign}),n+=t},t)}}function detectCustomEvents(o,t){0<t.length&&t.forEach(function(e){document.addEventListener("click",function(t){""!==e.button_fires_by_class_id&&t.target.textContent.match(e.button_fires_by_text)&&t.target.matches(e.button_fires_by_class_id)?(console.log("match class,id: "+e.button_fires_by_class_id+" and text: "+e.button_fires_by_text),trackCustomEvent(o,e.event_name)):""==e.button_fires_by_class_id&&0==t.target?.classList?.length&&t.target.textContent.match(e.button_fires_by_text)&&(console.log("match text: "+e.button_fires_by_text),trackCustomEvent(o,e.event_name))})})}function detectLeadEvents(o,t){0<t.length&&t.forEach(function(e){document.addEventListener("click",function(t){""!==e.button_fires_by_class_id&&t.target.textContent.match(e.button_fires_by_text)&&t.target.matches(e.button_fires_by_class_id)?(console.log("match class,id: "+e.button_fires_by_class_id+" and text: "+e.button_fires_by_text),trackLeadEvent(o)):""==e.button_fires_by_class_id&&0==t.target?.classList?.length&&t.target.textContent.match(e.button_fires_by_text)&&(console.log("match text: "+e.button_fires_by_text),trackLeadEvent(o))})})}function trackLeadEvent(t){let e=(new Date).getTime()+getRandomInt(1,1e5);t.forEach(function(t){otfbq(t,"Lead","",e)}),trackEventFBConversionAPI($,{action:"Custom",event_name:"Lead",event_id:e,event_source_url:fb_pageURL,pixels:t,shop:Shopify.shop,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign})}function callbackIntegrateApp(e,t){var o=[{otShopName:"laura-kincade-australia.myshopify.com",events:[{name:"LEAD",type:"quote-submit"}]},{otShopName:"valtrainc.myshopify.com",events:[{name:"Submit Quote",type:"quote-submit"}]},{otShopName:"huyen-test-app.myshopify.com",events:[{name:"test-integrate-submit",type:"quote-submit"}]},{otShopName:"iaecdj-ea.myshopify.com",events:[{name:"Quote submission",type:"quote-submit"}]}].find(t=>t.otShopName===ot_fb_shop);o&&(o=o.events.find(t=>t.type===e),trackCustomEvent(arrayFBPixelTrack,o.name,t))}function otFBPixelATC(t){trackCustomEvent(arrayFBPixelTrack,"SubmitQuote",t)}function trackCustomEvent(t,a,i=""){if(t&&0!=t?.length){let n=(new Date).getTime()+getRandomInt(1,1e5);t.forEach(function(t){var e="add to cart"==a?.toLowerCase();let o="initiate checkout"==a?.toLowerCase()?"InitiateCheckout":e?"AddToCart":"trackCustom";window.otfbq(""+t,o,i,n,a)}),trackEventFBConversionAPIByBeacon({},{action:"Custom",event_name:a,event_id:n,event_source_url:fb_pageURL,pixels:t,shop:Shopify.shop,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign})}}function otTrackATC(t,e,a,i){var r={},c=a,a=(localStorage.setItem("OTPXADDED",1),+localStorage.getItem("item_count"));if(a!=c.item_count)if(0<c.items.length){window.localStorage.setItem("item_count",c.item_count);let o=c.items[0],n=generateEventID(36),a=""+o.variant_id;"product_group"==i&&(a=""+o.product_id),otCheckEnableTracking("pixel_track_addtocart")&&t.forEach(function(t,e){otfbq(t,"AddToCart",{content_ids:[a],content_type:i,value:parseInt(c.total_price)/100,content_name:o.product_title,currency:Shopify.currency.active},n)});var s=detectLastInfoATCByProductId(o.product_id,c.items);otCheckEnableTracking("capi_track_addtocart")&&trackEventFBConversionAPI(r,{action:"AddToCart",event_id:n,event_source_url:fb_pageURL,content_ids:[a],content_type:i,value:parseInt(c.total_price)/100,content_name:o.product_title,currency:Shopify.currency.active,pixels:t,shop:Shopify.shop,products:s,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign})}else if(void 0!==meta.product){a=ot_getUrlParam("variant");let o=null!==a?""+a:""+meta.product.variants[0].id,n=("product_group"==i&&(o=""+meta.product.id),generateEventID(36));otCheckEnableTracking("pixel_track_addtocart")&&t.forEach(function(t,e){otfbq(t,"AddToCart",{content_ids:[o],content_type:i,value:parseInt(meta.product.variants[0].price)/100,content_name:meta.product.variants[0].name,currency:Shopify.currency.active},n)});s=[{url:fb_pageURL,title:meta.product.variants[0].name,id:meta.product.id}];otCheckEnableTracking("capi_track_addtocart")&&trackEventFBConversionAPI(r,{action:"AddToCart",event_id:n,event_source_url:fb_pageURL,content_ids:[o],content_type:i,value:parseInt(meta.product.variants[0].price)/100,content_name:meta.product.variants[0].name,currency:Shopify.currency.active,pixels:t,shop:Shopify.shop,products:s,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign})}else{let o=generateEventID(36);otCheckEnableTracking("pixel_track_addtocart")&&t.forEach(function(t,e){otfbq(t,"AddToCart",{},o)})}else 0==c.item_count&&setTimeout(()=>{omegaCallBackAddToCart()},1e3)}function otEventClickIsMatchesDom(e,t,o){var n=!1;
1return!!e.target.closest(t)||(o.forEach(t=>{""!==t.button_fires_by_class_id&&e.target.textContent.match(t.button_fires_by_text)&&e.target.closest(t.button_fires_by_class_id)?(console.log("match class,id: "+t.button_fires_by_class_id+" and text: "+t.button_fires_by_text),n=!0):""==t.button_fires_by_class_id&&0==e.target?.classList?.length&&e.target.textContent.match(t.button_fires_by_text)&&(console.log("match text: "+t.button_fires_by_text),n=!0)}),n)}function otLogNameBaseCode(t){void 0===window.otLogInformationCode&&"soka-home.myshopify.com"!==Shopify.shop&&(console.log(`%c Omega Facebook pixels: Event tracking using the ${t} codebase`,"color: white; background: #9500ff;padding: 5px; border-radius: 5px"),window.otLogInformationCode=!1)}function otFBAddAttributeClickIdToOrder(e){if(1==e.accept_permission_fb_ads&&1==e.capi_track_purchase&&"agenda-bookshop-webee.myshopify.com"!==ot_fb_shop){ot_fbc_fbp=otGetAttributeFBCAndFBP();let t={ot_fbc_fbp:JSON.stringify(ot_fbc_fbp),obj_campaign:JSON.stringify(ot_information_campaign),external_id:externalID,section_order_id:sectionOrderId};""!=ot_ip&&(t={...t,client_ip_address:ot_ip});e=localStorage.getItem("OT_LIST_CAMPAIGNS")||"[]";t={...t,logs:e},fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:t})}).then(t=>t.json()).then(t=>{console.log("Add ttclid: "+JSON.stringify(ot_fbc_fbp))}).catch(t=>{console.error("Error:",t)})}}async function omegaCallBackViewContent(){var t=[],t="1"==(t="undefined"!=typeof omegaFBSettings?omegaFBSettings:t).settings.content_type_event?"product":"product_group",e=await otGetInfoProductByLink(-1<fb_pageURL.indexOf("?")?fb_pageURL.split("?")[0]+".json":fb_pageURL+".json");-1<e.title.indexOf("'")&&(e.title=e.title.replace(/'/g,""));let o=generateEventID(36),n=ot_getUrlParam("variant"),a=null!==n?""+n:""+meta.product.variants[0].id,i=("product_group"==t&&(a=void 0!==e.id?""+e.id:""+meta.product.id),e.variants[0].price);
1null!=n&&meta.product.variants.forEach(t=>{t.id==n&&(i=parseInt(t.price)/100)});var r=JSON.stringify([{id:a,name:e.title,quantity:1,item_price:i,item_category:meta.product.type}]);let c={content_ids:[a],content_type:t,value:i,content_name:e.title,currency:Shopify.currency.active,content_category:e.product_type,content_brand:e.vendor,contents:r};arrayFBPixelTrack.forEach(function(t){otCheckEnableTracking("pixel_track_pageview")&&otfbq(""+t,"PageView","",o),otCheckEnableTracking("pixel_track_viewcontent")&&otfbq(t,"ViewContent",c,o)}),!otCheckEnableTracking("capi_track_viewcontent")||"FREE"==omegaFBSettings?.settings?.plan_configs?.plan_type&&omegaFBSettings?.settings?.plan_configs?.order_remain<=0||trackEventFBConversionAPI($,{action:"ViewContent",...c,event_id:o,event_source_url:fb_pageURL,pixels:arrayFBPixelTrack,shop:Shopify.shop,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign})}function omegaCallBackAddToCart(){"undefined"!=typeof omegaFBSettings&&(FbPixelCheckExpireApp=omegaFBSettings),getItemOnCartPageFB(n=>{var t=localStorage.getItem("item_count");if(localStorage.setItem("OTPXADDED",1),t!=n.item_count&&window.localStorage.setItem("item_count",n.item_count),t<n.item_count)if(0<n.items.length){let e=n.items[0],o=generateEventID(36);otCheckEnableTracking("pixel_track_addtocart")&&arrayFBPixelTrack.forEach(function(t){otfbq(t,"AddToCart",{content_ids:[""+e.variant_id],content_type:"product",value:parseInt(n.total_price)/100,content_name:e.product_title,currency:Shopify.currency.active},o)});var a=detectLastInfoATCByProductId(e.product_id,n.items);otCheckEnableTracking("capi_track_addtocart")&&trackEventFBConversionAPI($,{action:"AddToCart",event_id:o,event_source_url:fb_pageURL,content_ids:[""+e.variant_id],content_type:"product",value:parseInt(n.total_price)/100,content_name:e.product_title,currency:Shopify.currency.active,pixels:arrayFBPixelTrack,shop:Shopify.shop,products:a,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign})}else if(void 0!==meta.product){let e=ot_getUrlParam("variant"),o=generateEventID(36);otCheckEnableTracking("pixel_track_addtocart")&&arrayFBPixelTrack.forEach(function(t){otfbq(t,"AddToCart",{content_ids:null!==e?[""+e]:[""+meta.product.variants[0].id],content_type:"product",value:parseInt(meta.product.variants[0].price)/100,content_name:meta.product.variants[0].name,currency:Shopify.currency.active},o)});a=[{url:fb_pageURL,title:meta.product.variants[0].name,id:meta.product.id}];otCheckEnableTracking("capi_track_addtocart")&&trackEventFBConversionAPI($,{action:"AddToCart",event_id:o,event_source_url:fb_pageURL,content_ids:null!==e?[""+e]:[""+meta.product.variants[0].id],content_type:"product",value:parseInt(meta.product.variants[0].price)/100,content_name:meta.product.variants[0].name,currency:Shopify.currency.active,pixels:arrayFBPixelTrack,shop:Shopify.shop,products:a,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign})}else{let e=generateEventID(36);otCheckEnableTracking("pixel_track_addtocart")&&arrayFBPixelTrack.forEach(function(t){otfbq(t,"AddToCart",{},e)})}})}async function omegaCallBackAddToCartTrigger(i){let r="1"==("undefined"!=typeof omegaFBSettings?omegaFBSettings:await otFacebookPixelCheckExpireApp(rootlinkFBPixel,ot_fb_shop)).settings.content_type_event?"product":"product_group";getItemOnCartPageFB(t=>{var e,o=localStorage.getItem("item_count"),a=detectLastInfoATCByProductId(i.data.cartLine.merchandise.product.id,t.items);if(localStorage.setItem("OTPXADDED",1),window.localStorage.setItem("item_count",t.item_count),o!=t.item_count&&0<t.items.length&&(localStorage.removeItem("OT_DATA_TRIGGER_ATC"),localStorage.removeItem("OT_DATA_TRIGGER_ATC_NEW_TRIGGER"),"shipping-protection"!=t.items[0].handle)){let o=generateEventID(36),t=""+i.data.cartLine.merchandise.id,n={content_ids:[t="product_group"==r?""+i.data.cartLine.merchandise.product.id:t],content_type:r,value:i.data.cartLine.merchandise.price.amount,content_name:i.data.cartLine.merchandise.product.title,currency:i.data.cartLine.merchandise.price.currencyCode,content_category:i.data.cartLine.merchandise.product.type,content_brand:i.data.cartLine.merchandise.product.vendor,contents:JSON.stringify([{id:t,name:i.data.cartLine.merchandise.product.title,quantity:1,item_price:i.data.cartLine.merchandise.price.amount,item_category:i.data.cartLine.merchandise.product.type}])};0<arrayFBPixelTrack.length&&(otCheckEnableTracking("pixel_track_addtocart")&&arrayFBPixelTrack.forEach(function(t,e){otfbq(""+t,"AddToCart",n,o)}),e=void 0!==e?e:{},otCheckEnableTracking("capi_track_addtocart"))&&trackEventFBConversionAPI(e,{...n,action:"AddToCart",event_id:o,event_source_url:fb_pageURL,num_items:1,pixels:arrayFBPixelTrack,shop:Shopify.shop,products:a,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign})}})}function handleAddEventMatching(t){if(Shopify.Checkout&&Shopify.Checkout.page&&(-1<Shopify.Checkout.page.indexOf("thank_you")||-1<Shopify.Checkout.page.indexOf("thank-you"))){var e=Shopify.checkout,t=t.group_accept_information_customer,o=t.isEmail?otDetectMatchingParams(e,"email"):"",n=t.isPhone?otDetectMatchingParams(e,"phone"):"",a=t.isCity?otDetectMatchingParams(e,"city"):"",i=t.isZipCode?otDetectMatchingParams(e,"zip"):"",r=t.isCountry?otDetectMatchingParams(e,"country_code"):"",c=t.isFirstName?otDetectMatchingParams(e,"first_name"):"",t=t.isLastName?otDetectMatchingParams(e,"last_name"):"",e={em:o,ph:n,zp:i,ct:a,country:r,external_id:externalID},s={...e,ct:a.toLowerCase(),fn:c.toLowerCase(),ln:t.toLowerCase(),country:r.toLowerCase()},o=Object.keys(s);if(0<o.length)for(var d of o)""==s[d]&&delete s[d];window.localStorage.setItem("OT_DATA_CUSTOMER__TRACK_FB",JSON.stringify(s)),OT_DATA_CUSTOMER__TRACK_FB=s,OT_DATA_CUSTOMER={...e,first_name:c,last_name:t,section_order_id:sectionOrderId},window.localStorage.setItem("OT_DATA_CUSTOMER",JSON.stringify(OT_DATA_CUSTOMER))}}window.omegaCallBackCheckout=function(){omegaFBSettings.settings;getItemOnCartPageFB(i=>{var r="1"==omegaFBSettings.settings.content_type_event?"product":"product_group",c={};if(0<i.items.length){let n=[],a=[];var s=[];
1i.items.forEach(function(t,e){if(s.push({id:t.product_id,title:t.product_title}),"product_group"==r?n.push(""+t.product_id):n.push(""+t.variant_id),a.push(t.product_title),e==i.items.length-1){let o=generateEventID(36);otCheckEnableTracking("pixel_track_checkout")&&arrayFBPixelTrack.forEach(function(t,e){otfbq(""+t,"InitiateCheckout",{content_type:r,content_ids:n,currency:Shopify.currency.active,value:parseFloat(i.total_price)/100,num_items:i.item_count,content_name:a},o)}),otCheckEnableTracking("capi_track_checkout")&&trackEventFBConversionAPIByBeacon(c,{action:"InitiateCheckout",event_id:o,event_source_url:fb_pageURL,content_ids:n,content_type:r,num_items:i.item_count,value:parseFloat(i.total_price)/100,content_name:a,currency:Shopify.currency.active,pixels:arrayFBPixelTrack,shop:Shopify.shop,products:s,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign})}})}else if("undefined"!=typeof meta&&void 0!==meta.product){let o="product_group"==r?[""+meta.product.id]:[""+meta.product.variants[0].id],n=generateEventID(36);otCheckEnableTracking("pixel_track_checkout")&&arrayFBPixelTrack.forEach(function(t,e){otfbq(""+t,"InitiateCheckout",{content_type:r,content_ids:o,currency:Shopify.currency.active,value:meta.product.variants[0].price/100,num_items:1,content_name:meta.product.variants[0].name},n)}),otCheckEnableTracking("capi_track_checkout")&&trackEventFBConversionAPIByBeacon(c,{action:"InitiateCheckout",event_id:n,event_source_url:fb_pageURL,content_ids:o,content_type:r,num_items:1,products:[{id:meta.product.id,title:meta.product.variants[0].name}],value:meta.product.variants[0].price/100,content_name:meta.product.variants[0].name,currency:Shopify.currency.active,pixels:arrayFBPixelTrack,shop:Shopify.shop,obj_fbp_fbc:otGetAttributeFBCAndFBP(),...OT_DATA_CUSTOMER,...ot_information_campaign})}else{let o=generateEventID(36);otCheckEnableTracking("pixel_track_checkout")&&arrayFBPixelTrack.forEach(function(t,e){otfbq(""+t,"InitiateCheckout",{},o)})}})},"undefined"!=typeof supportCodes&&eval(atob(supportCodes)),"undefined"!=typeof supportCodeIC&&eval(atob(supportCodeIC));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.