"use strict";function ownKeys(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function _objectSpread(e){for(var t=1;t0?window.upsells[window.upsell_productindex||0]:window.ctrwowUpsell.productListData.getProductList().prices[window.upsell_productindex||0];var t=window.localStorage.getItem("doubleQuantity")?e.quantity/2:e.quantity;return{products:[{productId:o+e.productId,sku:e.sku,total_usd:(e.productPrices.DiscountedPrice.Value+e.shippings[window.shippingIndex||0].price).toFixed(2),quantity:t}],sku:e.sku}},I=function(){var e="other";try{[{kore:"Kore"},{mindinsole:"Kore"},{starscope:"GadgetCrate"},{blast:"Etshera"},{blaux:"Etshera"},{heatcore:"Etshera"},{bulb:"Etshera"},{buzzbgone:"Etshera"},{clubcrush:"Kore"},{divinair:"Etshera"},{drgoodrow:"Etshera"},{goldweasel:"Etshera"},{qbkraftz:"Etshera"},{automend:"GadgetCrate"},{blx:"GadgetCrate"},{hajimari:"GadgetCrate"},{herculian:"GadgetCrate"},{infiniti:"GadgetCrate"},{kaydia:"GadgetCrate"},{nerlos:"GadgetCrate"},{novawave:"GadgetCrate"},{rangextd:"GadgetCrate"},{renuback:"GadgetCrate"},{snapshot:"GadgetCrate"},{soloforce:"GadgetCrate"},{actionhero:"SharkTrack"},{dreast:"Kainero"},{equalplus:"Kainero"},{feverpatrol:"Kainero"},{fotia:"Kainero"},{hvn:"Kainero"},{inheat:"Kainero"},{laidback:"Kainero"},{mobileklean:"Kainero"},{onehand:"Kainero"},{opti:"Kainero"},{oshen:"Kainero"},{outstyle:"Kainero"},{perropal:"Kainero"},{quietbud:"Kainero"},{raptor:"Kainero"},{rudy:"Kainero"},{second:"Kainero"},{spectroseal:"Kainero"},{tapncharge:"Kainero"},{twohand:"Kainero"},{vitahair:"Kainero"},{washwand:"Kainero"},{wrapslice:"Kainero"},{karben:"GadgetCrate"},{mhamo:"Etshera"},{outfind:"Kainero"},{drfizz:"Kainero"},{honjo:"Etshera"}].forEach(function(t){var o=Object.keys(t);location.hostname.indexOf(o)>-1&&(e=t[Object.keys(t)])})}catch(e){console.log("Get Store Source Fail")}return e},O=function(){var e=!1;try{var t=document.querySelector('[name="email"]').value.split("@")[1];t&&window.blacklistDomain&&window.blacklistDomain.indexOf(t)>-1&&(e=!0)}catch(e){console.log("check black list error")}return e},q=function(e){try{var t=window.__CTRWOW_CONFIG?window.__CTRWOW_CONFIG.offerName:"",o=window.__CTRWOW_CONFIG?window.__CTRWOW_CONFIG.offerId:"",n=window.__CTRWOW_CONFIG?window.__CTRWOW_CONFIG.PAGE_TYPE:"",a=null;m&&(a=w||document.querySelector('[name="phoneNumber"]').value);var r=null;g||(r=document.querySelector('[name="email"]').value);var i={data:{type:"subscription",attributes:{profile:{data:{type:"profile",attributes:{properties:{client:c||!1,guid:window.ctrwowUtils.handleParam.getQueryParameter("guid")||"",custom_source:"[Parent campaign: ".concat(t,"] - [CampaignID: ").concat(o,"] - [Page type: ").concat(n,"]"),domain_blacklist:O()},meta:{patch_properties:{append:{},unappend:{}}},email:r,phone_number:a,first_name:document.querySelector('[name="firstName"]').value||"",last_name:document.querySelector('[name="lastName"]').value||""}}}},relationships:{list:{data:{type:"list",id:e}}}}},l=I();return l&&(i.data.attributes.profile.data.attributes.properties["".concat(l.toLowerCase(),"_lead")]=!0),c||(i.data.attributes.profile.data.attributes.properties.internal_lead=!0),i}catch(e){return console.log(e),{}}},N=function(){try{var e={data:{type:"profile",attributes:{email:null,phone_number:null,first_name:document.querySelector('[name="firstName"]').value||"",last_name:document.querySelector('[name="lastName"]').value||"",location:{address1:document.querySelector('[name="address1"]').value,address2:document.querySelector('[name="address1"]').value,city:document.querySelector('[name="city"]').value,country:document.querySelector('[name="countryCode"]').value,region:document.querySelector('[name="state"]').value,zip:document.querySelector('[name="zipCode"]').value,timezone:u()},properties:{}},meta:{identifiers:{email:null,phone_number:null}}}};return m&&(e.data.attributes.phone_number=w||document.querySelector('[name="phoneNumber"]').value,e.data.meta.identifiers.phone_number=w||document.querySelector('[name="phoneNumber"]').value),g||(e.data.attributes.email=document.querySelector('[name="email"]').value,e.data.meta.identifiers.email=document.querySelector('[name="email"]').value),e}catch(e){return console.log(e),{}}};n=function(){try{var e={first_name:document.querySelector('[name="firstName"]').value||"",last_name:document.querySelector('[name="lastName"]').value||"",ship_city:document.querySelector('[name="city"]').value,ship_address:document.querySelector('[name="address1"]').value,ship_state:document.querySelector('[name="state"]').value,ship_zip:document.querySelector('[name="zipCode"]').value,ship_country:document.querySelector('[name="countryCode"]').value,customer_language:document.querySelector("html").getAttribute("lang")||"",joined_at:u(),fingerprint_id:window._EA_ID,landing_base_url:window.location.href,referrer:document.referrer};c?e.client=!0:(e.client=!1,e.internal_lead=!0),window.CC_Code&&(e.coupon=window.CC_Code),m&&(e=_objectSpread(_objectSpread({},e),{},{phone_number:w||document.querySelector('[name="phoneNumber"]').value,phone_valid:m,phone_linetype:p,phone_carrier:_})),g||(e=_objectSpread(_objectSpread({},e),{},{email:document.querySelector('[name="email"]').value,event_domain_blacklist:O()}));var t=I();return t&&(e["event_".concat(t.toLowerCase(),"_lead")]=!0),e}catch(e){return console.log(e),{}}};var P=function(e){try{var t=window.localStorage.getItem("realDoubleQuantity")?e.quantity/2:e.quantity,n=window.location.href,a=n.split("?")[0],r={email:document.querySelector('[name="email"]').value||"",first_name:document.querySelector('[name="firstName"]').value||"",last_name:document.querySelector('[name="lastName"]').value||"",product_ids:[o+e.productId],total_usd:[(e.productPrices.DiscountedPrice.Value+e.shippings[window.shippingIndex||0].price).toFixed(2)],quantity:[t],items:[{productId:o+e.productId,sku:e.sku,total_usd:(e.productPrices.DiscountedPrice.Value+e.shippings[window.shippingIndex||0].price).toFixed(2),quantity:t}],sku:e.sku,currency:window.localStorage.getItem("currencyCode"),landing_base_url:a,customer_language:document.querySelector("html").getAttribute("lang")||""};c?r.client=!0:(r.client=!1,r.internal_lead=!0),m&&(r.phone_number=w||document.querySelector('[name="phoneNumber"]').value);var i=I();return i&&(r["event_".concat(i.toLowerCase(),"_lead")]=!0),r.event_domain_blacklist=O(),r}catch(e){return console.log(e),{}}},D=function(e,t,o){try{if(void 0===t)return;var n="https://a.klaviyo.com/client/subscriptions/?company_id=".concat(t),a=q(o);if(!a.data.attributes.profile.data.attributes.email&&!a.data.attributes.profile.data.attributes.phone_number)return;var r=new Date,i=r.getFullYear(),c=r.getMonth()+1<10?"0".concat(r.getMonth()+1):r.getMonth()+1,l=r.getDate()<10?"0".concat(r.getDate()):r.getDate(),d="".concat(i,"-").concat(c,"-").concat(l),u={method:"POST",headers:{revision:d,"content-type":"application/json"},body:JSON.stringify(a)};window.ctrwowUtils.callAjax(n,u).then(function(){console.log("submited data to subscribe API: "+e)}).catch(function(){console.log("submitDataToConsentSubscribe fail: "+e)})}catch(t){console.log("submitDataToConsentSubscribe fail: "+e)}},E=function(){b.forEach(function(e){D(e.account,e.publish_key,e.list_id)}),window.isDeplayCallSubmitted=!0},K=function(){clearTimeout(S),S=setTimeout(E,5e3)},T=function(){window.isDeplayCallSubmitted||(clearTimeout(S),E())},j=function(e,t){try{if(void 0===t)return;var o="https://a.klaviyo.com/client/profiles/?company_id=".concat(t),n=N();if(!n.data.attributes.email&&!n.data.attributes.phone_number)return;var a=new Date,r=a.getFullYear(),i=a.getMonth()+1<10?"0".concat(a.getMonth()+1):a.getMonth()+1,c=a.getDate()<10?"0".concat(a.getDate()):a.getDate(),l="".concat(r,"-").concat(i,"-").concat(c),d={method:"POST",headers:{revision:l,"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)};window.ctrwowUtils.callAjax(o,d).then(function(){console.log("submited data to update profile: "+e)}).catch(function(){console.log("submitDataToUpdateProfile fail:"+e)})}catch(t){console.log("submitDataToUpdateProfile fail: "+e)}},F=function(){b.forEach(function(e){j(e.account,e.publish_key)})},A={handleMouseOut:function(e){e.pageY-window.pageYOffset<=0&&T()}},L=function(t){if(t){var o=t.value&&!t.classList.contains("error"),i="https://salessupport.tryemanagecrm.com/api/validation/verify-email/?email=".concat(t.value);o&&window.ctrwowUtils.callAjax(i,{headers:{X_CID:"584ea331-0cd2-4c48-85d9-737f9dddfa0b","Content-Type":"application/json"}}).then(function(t){if(!t)throw"Error";if(t.isVerified&&t.isValid){window.ctrwowUtils.events.emit("onValidEmail"),window.localStorage.removeItem("isInvalidEmail"),g=!1,a=!0;var o=n();window._learnq.push(["identify",{$email:o.email}]),setTimeout(function(){console.log("Klaviyo identify=======================>\n",o),window._learnq.push(["track","identify",o]);var e=window.ctrwowCheckout.checkoutData.getProduct(),t=P(e);console.log("Klaviyo add_to_cart ========================>\n",t),window._learnq.push(["track","add_to_cart",t]),K()},1e3);var i=window.__productListData?window.__productListData.data.productList.location:null;r.track("visit",e,{email:o.email,first_name:o.first_name,event_type:"visit",landing_base_url:o.landing_base_url,fingerprint_id:o.fingerprint_id,customer_language:o.customer_language,location:{country_code:i.countryCode,country_name:i.countryName,region_code:i.regionCode,region_name:i.regionName,city:i.city,zip_code:i.zipCode?i.zipCode:""}})}else window.localStorage.setItem("isInvalidEmail",!0),g=!0,a=!1}).catch(function(e){window.localStorage.setItem("isInvalidEmail",!0),g=!0,console.log(e)})}},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=window.location.href,r=a.split("?")[0],i=localStorage.getItem("ctr_checkout_url")||"",d=i.split("?")[0],m=null,p=[];m=n?k():C();for(var _=m.products,w=0,g=_.length;w\n",e),window._learnq.push(["track","identify",e]);var t=window.ctrwowCheckout.checkoutData.getProduct(),o=P(t);o.one_click_purchase_reference=y,console.log("Klaviyo add_to_cart ========================>\n",o),window._learnq.push(["track","add_to_cart",o])}var a=x(e,!0);console.log("Klaviyo checkout ================>\n",a),window._learnq.push(["track","checkout",a]),F()},U=function(){var e=JSON.parse(window.localStorage.getItem("prevItem")),t=window.localStorage.getItem("orderInfo"),n=window.localStorage.getItem("userPaymentType"),a=window.localStorage.getItem("location");if(e){for(var r=window.localStorage.getItem("doubleQuantity")?e.quantity/2:e.quantity,i=[{productId:o+e.productId,sku:e.sku,total_usd:(e.productPrices.DiscountedPrice.Value+e.shippings[window.shippingIndex||0].price).toFixed(2),quantity:r}],l=e.sku,d=[],m=0,p=i.length;m\n",a),window._learnq.push(["track","identify",a]),K())):"1"===t("validPhone")&&r.removeClass("correct-phone")),"1"===t("validPhone")){if(o.country&&i.value.toLowerCase()!==o.country.toLowerCase()&&i.querySelector('option[value="'.concat(o.country,'"]'))&&!e){c=!0,i.value=o.country,i.dispatchEvent(new Event("change"));$('form[name="shippingAddress"]').validate().element(i)}r.rules("add",{cphone:!0});$('form[name="customer"]').validate().element(r),c=!1}}catch(e){console.log(e)}};i&&i.addEventListener("change",function(){c||u(!0)}),y&&(u(),L(window._q('input[name="email"]'))),o.forEach(function(e){e.addEventListener("blur",function(e){try{a=n(),"email"===e.currentTarget.getAttribute("name")&&e.currentTarget.classList.contains("valid")&&window.currentEmail!==e.currentTarget.value&&(console.log("Klaviyo - Fire identify"),window.currentEmail=e.currentTarget.value,window.isDeplayCallSubmitted=!1,L(e.currentTarget)),"phoneNumber"===e.currentTarget.getAttribute("name")&&window.currentPhone!==e.currentTarget.value&&(window.currentPhone=e.currentTarget.value,d=!1,window.isDeplayCallSubmitted=!1,u())}catch(e){console.log(e)}})}),window.pauseCheckoutProcessing={isPause:!0,delay:500},document.querySelector("body").insertAdjacentHTML("beforeend",''),window.ctrwowUtils.events.on("afterSubmitOrder",function(e){e&&e.referenceId&&e.useCreditCard&&(y=e.referenceId,z())}),window.ctrwowUtils.events.on("declinePayment",function(){if(y){var e=U();e&&(console.log("Klaviyo decline ==============>\n",e),window._learnq.push(["track","decline",e]))}}),window.ctrwowUtils.events.on("onAfterActivePopup",function(){try{window.CC_Code=window.ctrwowCheckout.checkoutData.getCouponCode(),a=n(),g||(console.log("Klavity identify ==============>\n",a),window._learnq.push(["track","identify",a]))}catch(e){console.log(e)}}),window.ctrwowUtils.events.on("beforeSubmitOrder",function(){try{a=n(),g||(console.log("Klavity identify ==============>\n",a),window._learnq.push(["track","identify",a])),window.localStorage.setItem("identifyData",JSON.stringify(a));var e=window.ctrwowCheckout.checkoutData.getProduct();e.campaignName=f,window.localStorage.setItem("prevItem",JSON.stringify(e)),console.log("Klaviyo - Fire checkout");var t=x(a);console.log("Klaviyo checkout ==============>\n",t),window._learnq.push(["track","checkout",t]),T()}catch(e){console.log(e)}}),window.localStorage.setItem("location",JSON.stringify(l.location)),window.ctrwowCheckout.checkoutData.onProductChange(function(){try{var t=window.ctrwowCheckout.checkoutData.getProduct();if(t.productId===e.productId)return;var o=P(e),n=P(t);document.querySelector('[name="email"]')&&document.querySelector('[name="email"]').classList.contains("valid")&&(g||(console.log("Klaviyo removed and add_to_cart========================>\n",n),window._learnq.push(["track","remove_from_cart",o]),window._learnq.push(["track","add_to_cart",n]))),e=window.ctrwowCheckout.checkoutData.getProduct()}catch(e){console.log(e)}})}catch(e){console.log("Warning: orderPageEvents")}};!function(){try{if(d.indexOf("/order")>-1||window.__CTRWOW_CONFIG&&2===window.__CTRWOW_CONFIG.PAGE_TYPE){G();var t=0,n=setInterval(function(){t++,window.__productListData&&window.__productListData.data&&window.__productListData.data.productList&&window._EA_ID&&(G(),clearInterval(n)),50===t&&clearInterval(n)},300);return void document.addEventListener("mouseout",A.handleMouseOut)}var a=window.localStorage.getItem("orderInfo"),i=window.localStorage.getItem("location"),l=window.localStorage.getItem("isInvalidEmail"),m=window.localStorage.getItem("isFiredMainOrderBlueshift"),p=window._EA_ID||window.localStorage.getItem("_vid");window.localStorage.getItem("referrerUrl")||window.localStorage.setItem("referrerUrl",document.referrer);var _=function(e,t){try{var n=e.orderNumber,a=window.localStorage.getItem("doubleQuantity")?Math.ceil(e.quantity/2):e.quantity,r=Number(e.orderTotalFull),l=[{productId:o+e.orderedProducts[0].pid,sku:e.orderedProducts[0].sku,total_usd:e.orderTotalFull,quantity:a}],d=e.orderedProducts[0].sku;if(e.upsellUrls&&e.upsellUrls.length>0)for(var m=0,p=e.upsellUrls.length;m\n",w),window._learnq.push(["track","identify",w]))),m){if(a.upsellUrls&&a.upsellUrls.length>0){var g=a.upsellUrls.length-1,h=a.upsellUrls[g],v=localStorage.getItem("subOrderNumber");a.upsellUrls[g].isFired||a.upsellUrls[g].orderNumber===v||(a.upsellUrls[g].isFired="fired",console.log("Klaviyo - Fire Purchase"),"true"!==l&&(console.log("Klavity purchase ==============>\n",_(a,h)),window._learnq.push(["track","purchase",_(a,h)])))}}else{if(console.log("Klaviyo - Fire Purchase"),a.upsellUrls&&a.upsellUrls.length>0&&localStorage.setItem("subOrderNumber",a.upsellUrls[0].orderNumber),"true"!==l){var y=_(a);console.log("purchased",y),console.log("Klavity purchase ==============>\n",y),window._learnq.push(["track","purchase",y]);var b=window.__productListData?window.__productListData.data.productList.location:null;r.track("purchased",e,{email:y.email,order_number:y.order_number,first_name:y.first_name||"",event_type:"purchased",landing_base_url:y.landing_base_url,fingerprint_id:window._EA_ID,customer_language:y.customer_language,location:{country_code:b.countryCode,country_name:b.countryName,region_code:b.regionCode,region_name:b.regionName,city:b.city,zip_code:b.zipCode?b.zipCode:""}})}window.localStorage.setItem("isFiredMainOrderBlueshift",!0)}window.localStorage.setItem("orderInfo",JSON.stringify(a))}if(window.ctrwowUtils.events.on("onBeforePlaceUpsellOrder",function(){var e;e="object"===_typeof(window.upsells)&&window.upsells.length>0?window.upsells[window.upsell_productindex||0]:window.ctrwowUpsell.productListData.getProductList().prices[window.upsell_productindex||0],e.campaignName=f,window.localStorage.setItem("prevItem",JSON.stringify(e));var t=window.localStorage.getItem("identifyData");if(t){t=JSON.parse(t);var o=x(t,!1,!0);console.log("Klaviyo checkout upsell ================>\n",o),window._learnq.push(["track","checkout",o])}}),d.indexOf("decline")>-1){var S=U();if(S){console.log("Klaviyo decline ================>\n",S),window._learnq.push(["track","decline",S]);var C=window.localStorage.getItem("location");C&&(C=JSON.parse(C)),r.track("declined",e,{email:S.email,first_name:window.localStorage.getItem("user_firstname")||"",event_type:"declined",landing_base_url:S.landing_base_url,fingerprint_id:window._EA_ID,customer_language:S.customer_language,location:{country_code:C.countryCode,country_name:C.countryName,region_code:C.regionCode,region_name:C.regionName,city:C.city,zip_code:C.zipCode?C.zipCode:""}})}}}catch(e){console.log(e)}}(),"1"===t("validPhone")&&function(){try{var e={en:"Please enter a international phone number or update your country.",de:"Bitte geben Sie eine gültige Telefonnummer ein.",fr:"Veuillez saisir un numéro de téléphone valide.",jp:"有効な電話番号を入力してください。",cn:"请输入有效电话号码。",br:"Por favor insira um telefone válido.",es:"Por favor introduzca un número de teléfono válido.",pt:"Por favor insira um número de telefone válido."};window.phoneMsg=e.en,d.indexOf("/de/")>-1&&(window.phoneMsg=e.de),d.indexOf("/fr/")>-1&&(window.phoneMsg=e.fr),d.indexOf("/jp/")>-1&&(window.phoneMsg=e.jp),d.indexOf("/cn/")>-1&&(window.phoneMsg=e.cn),d.indexOf("/br/")>-1&&(window.phoneMsg=e.br),d.indexOf("/es/")>-1&&(window.phoneMsg=e.es),d.indexOf("/pt/")>-1&&(window.phoneMsg=e.pt),$.validator.addMethod("cphone",function(e,t){return $(t).hasClass("correct-phone")},window.phoneMsg)}catch(e){console.log(e)}}()}catch(e){console.log(e)}}function t(e){var t=function t(o){!o.toElement&&!o.relatedTarget&&o.clientY<10&&a&&(document.removeEventListener("mouseout",t),r.abandon(e))};document.addEventListener("mouseout",t)}function o(){if(window.location.href.toLowerCase().indexOf("affid=fcai")>-1){var e={event_type:"visit",customer_language:document.querySelector("html").getAttribute("lang")||"",fingerprint_id:window._EA_ID,landing_base_url:window.location.href,referrer:document.referrer};fetch("https://www.firstcontactai.com/fcai-track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){if(e.ok)return e.json()}).then(function(e){console.log("send_data_to_fcai_va successfully => ",e)}).catch(function(e){console.log("send_data_to_fcai_va fail",e)})}}if(console.log("Klaviyo-Otc5-2023"),void 0===window.isLoadedBsFile){window.isLoadedBsFile=!0;var n,a=!1,r={send_data_to_fcai_va:function(e){e.domain=location.hostname,e.full_url=window.location.href;var t=!1,o=location.hostname,n=["tryactionhero.com","bestpicks4u.com","yourbuzzbgone.com","getthebuzzbgone.com","officialbuzzbgone.com","trendygadgettalk.com","trendygadgetswave.com","trendygadgetswave.com","mybuzzbgone.com","getbuzzbgone.com","buzzbgoneshop.com","buzzbgone.com"];for(var a in n)if(o.indexOf(n[a])>-1){t=!0;break}var r=!1,i=["outfind"];for(var c in i)if(o.indexOf(i[c])>-1){r=!0;break}!e.email||""===e.email.trim()||t||r?(console.log("isBuzzBGone: ",t),console.log("isPause: ",r)):(console.log("send_data_to_fcai_va ==================>",e),fetch("https://www.firstcontactai.com/fcai-va-fe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){if(e.ok)return e.json()}).then(function(e){console.log("send_data_to_fcai_va successfully => ",e)}).catch(function(e){console.log("send_data_to_fcai_va fail",e)}))},visit:function(e){var t=document.querySelector('[name="firstName"]');t&&""!==t.value.trim()&&sessionStorage.fcai_va_visit_email!==e.email?(e.first_name=t.value.trim(),r.send_data_to_fcai_va(e),console.log("fcai-va visit fired"),sessionStorage.fcai_va_visit_email=e.email):t.addEventListener("blur",function(){var o=document.querySelector('input[name="email"]');sessionStorage.fcai_va_visit_email!==o.value.trim()&&""!==t.value.trim()&&(e.first_name=t.value.trim(),e.email=o.value.trim(),r.send_data_to_fcai_va(e),console.log("fcai-va visit fired"),sessionStorage.fcai_va_visit_email=o.value.trim())})},purchased:function(e){sessionStorage.fcai_va_purchased_email!==e.email&&(r.send_data_to_fcai_va(e),console.log("fcai-va purchased fired"),sessionStorage.fcai_va_purchased_email=e.email)},abandon:function(e){if(e)return void console.log("FCAI doesn't support for client sites");var t=n(),o=window.__productListData?window.__productListData.data.productList.location:null,a={email:t.email,first_name:document.querySelector('[name="firstName"]').value||"",event_type:"abandon",landing_base_url:t.landing_base_url,fingerprint_id:t.fingerprint_id,customer_language:t.customer_language,location:{country_code:o.countryCode,country_name:o.countryName,region_code:o.regionCode,region_name:o.regionName,city:o.city,zip_code:o.zipCode?o.zipCode:""}};console.log("fcai-va abandon fired"),r.send_data_to_fcai_va(a)},declined:function(e){sessionStorage.fcai_va_declined_email!==e.email&&(r.send_data_to_fcai_va(e),console.log("fcai-va declined fired"),sessionStorage.fcai_va_declined_email=e.email)},track:function(e,t,o){if(t)return void console.log("FCAI doesn't support for client sites");switch(e){case"visit":r.visit(o);break;case"purchased":r.purchased(o);break;case"declined":r.declined(o)}}},i={init_lib:function(){window._learnq=window._learnq||[];var e=document.createElement("script");e.src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=TufT7Q",e.async=!0,document.head.appendChild(e)}};!function(){window.addEventListener("load",function(){if(o(),window.__CTRWOW_CONFIG)if(window.__ctrPageConfiguration&&window.__ctrPageConfiguration.sourceConfig&&window.__ctrPageConfiguration.sourceConfig.source)e(window.__ctrPageConfiguration.sourceConfig.source);else{var n=window.__CTRWOW_CONFIG.X_CID;n&&fetch("https://salessupport.tryemanagecrm.com/api/clients/settings",{headers:{X_CID:n}}).then(function(e){return e.json()}).then(function(o){o&&(e(o.clientCode),t(o.clientCode))}).catch(function(e){return console.log(e)})}})}(),function(){try{var e=document.createElement("script");e.src="https://d16hdrba6dusey.cloudfront.net/sitecommon/js/components/blacklist.js?v=1",e.defer=!0,document.body.appendChild(e)}catch(e){console.log("init black list error")}}(),function(){try{var e=document.createElement("script");e.src="https://d16hdrba6dusey.cloudfront.net/sitecommon/js/libs/libphonenumber-min_1_7_6.js?v=1",e.defer=!0,document.body.appendChild(e)}catch(e){console.log("init google lib error")}}()}}();