if(void 0===orichiElementButtonAddToCart){var orichiPixelApiUrl="https://pixel-track.orichicommerce.com",orichiPixelParameter,orichiElementButtonAddToCart="[name='add'], button[data-add-to-cart-text],.shp_add_to_cart_btn, #AddToCart,.button--addToCart, #so-btn-add-to-cart-copy, .lh-add_to_cart, .product-add-to-cart, button[data-add-to-cart-text], .single_add_to_cart_button, #addToCart, .product-form--atc-button,.gt_atom-gfJyZItCdWdircv_productButtonBuyItNow,.product-form__cart-submit,#teeAtcButton,#new-form-atc,.single_add_to_cart_button,#AddToCartForm button,.product__form button.add-to-cart, #AddToCart-product-template,.product-form__cart-submit,button[data-pf-type='ProductATC'], .ProductForm__AddToCart,.product-form__add-button,.add-to-cart-btn,.ProductForm__AddToCart span,.tt-btn-addtocart,.btn-addtocart,.mfy-sticky-add-to-cart span,[name^='add'] span, .so-btn-add-to-cart-vanity-copy, .btn-addtocart span, .stickyaddtocart span, .vtl-ub-suggestion__add-to-cart",orichiElementButtonCheckout='button.cart__checkout, #CartDrawer-Checkout, #cartButtonSubmit, #mu-checkout-button, .shopify-payment-button__button,form[action^="/checkout"] :submit[name^="checkout"],form[action^="/checkout"] .checkout-button,.checkout_btn,.OTCheckout,[name^="checkout"],form[action^="/cart"] :submit[name^="checkout"],form[action^="/cart"] .checkout-button,#cart .action_button.right, .btn-checkout, a[href="/checkout"],.cb-bundle_custom_checkout_button_selector span, .cart_button_secure[href^="/checkout"], button[data-checkout="checkout"]',currency=null!=Shopify.currency?Shopify.currency.active:"USD",orichiPixelCurrency=null!=Shopify.currency?Shopify.currency.active:"USD",orichiTiktokPixelUsingId=[9982,15954,15778,9724,13367,16016,14584,15818,16038,14667,9460,16023,15275,4824,16230,16264,6865,12737,16341,16457,13062,16498,17001,16667,16682,16592,14259,16776,16816,16900,10283,16833,15839,15956,16888,17223,17269,17599,17526,17659,13915,19075,19076,19353,19311,19573,19260,19888,19799,19937,17759,17753,19938,17442,19741,19798,17752,17506,17448,20025,19662,17761,20022,19869,17754,19796,17755,17756,20024,17443,19101,17692,17613,19602,20398,19500,20897,20937,21096,20762],o$,orichiPixelCartItemCount,orichiPixelCartItems,pageURL=window.location.href;(pageURL="undefined"!=typeof __st&&void 0!==__st.pageurl?"https://"+__st.pageurl:window.location.href).indexOf("&")&&(pageURL=pageURL.split("&")[0]),!Shopify.Checkout||"thank_you"!=Shopify.Checkout.page&&"checkout_one_thank_you"!=Shopify.Checkout.page||"hello-8241.myshopify.com"!=Shopify.shop||(orichiPixelCurrency=Shopify.Checkout.currency);var isUseProductID=["gurudreads.myshopify.com","bonorganik-kids.myshopify.com","almarieswimwear.myshopify.com"].indexOf(Shopify.shop)>=0,notIncludeShippingFee=[].indexOf(Shopify.shop)>=0,notUsingPurchase=["nossalojabuzz.myshopify.com"].indexOf(Shopify.shop)>=0,orichiPixelEvents=null,orichiPixelCheckInitiateCheckoutFire=0,orichiPixelUserDataFromIP=null,orichiPixelInit=[],orichiPixelIPAddress="",orichiPixelUserAgent="";try{void 0===Shopify.shop&&void 0!==window.orichiShopDomain&&(Shopify.shop=window.orichiShopDomain),void 0===Shopify.currency&&void 0!==window.orichiCurrencyDefault&&(Shopify.currency.active=window.orichiCurrencyDefault)}catch(error){}}async function orichiInitFacebookPixel(){let pixels=await orichiGetAllFacebookPixelsV2($);if(localStorage.setItem("orichi_cookie",window.document.cookie),localStorage.setItem("orichi_shop_name",Shopify.shop),window.pixels=pixels,pixels.length>0){try{if("1"==orPixelGetPara("Proxy-Active")&&(orichiPixelApiUrl="/apps/orichi-pixel"),"1"==orPixelGetPara("ApiUrl-Update")&&(orichiPixelApiUrl="https://pixel-track.orichicommerce.com"),""!=orPixelGetPara("Var-ATC-Add")&&(orichiElementButtonAddToCart+=","+orPixelGetPara("Var-ATC-Add")),""!=orPixelGetPara("Var-ATC-Set")&&(orichiElementButtonAddToCart=orPixelGetPara("Var-ATC-Set")),""!=orPixelGetPara("Var-CB-Add")&&(orichiElementButtonCheckout+=","+orPixelGetPara("Var-CB-Add")),""!=orPixelGetPara("Var-CB-Set")&&(orichiElementButtonCheckout=orPixelGetPara("Var-CB-Set")),"1"==orPixelGetPara("Ev-ProductID-Use")&&(isUseProductID=!0),"1"==orPixelGetPara("Var-Currency-Reset")&&(currency=Shopify.currency.active,orichiPixelCurrency=Shopify.currency.active),"1"==orPixelGetPara("Price-Currency-SetDefault")&&"undefined"!=typeof orichiCurrencyDefault&&(currency=orichiCurrencyDefault,orichiPixelCurrency=orichiCurrencyDefault),"1"==orPixelGetPara("Var-Currency-COPresent")&&(!Shopify.Checkout||"thank_you"!=Shopify.Checkout.page&&"checkout_one_thank_you"!=Shopify.Checkout.page||(orichiPixelCurrency=Shopify.Checkout.currency,currency=Shopify.Checkout.currency)),"1"==orPixelGetPara("Price-Currency-SetDefault")){var rate=Shopify.currency.rate,code=Shopify.currency.active;null==localStorage.getItem("or_pixel_currencyrate")||!Shopify.Checkout||"thank_you"!=Shopify.Checkout.page&&"checkout_one_thank_you"!=Shopify.Checkout.page||(rate=localStorage.getItem("or_pixel_currencyrate")),"undefined"!=typeof orichiCurrencyDefault&&(code=orichiCurrencyDefault),localStorage.setItem("or_pixel_currencycode",code),localStorage.setItem("or_pixel_currencyrate",rate)}if("1"==orPixelGetPara("Ev-ATC-CustomSupport")&&orichiCustomAddToCart(),"1"==orPixelGetPara("Ev-IC-ITCfunc-Integrate")){if("undefined"!=typeof itcCartDrawerPayPal){var oritcCartDrawerPayPal=itcCartDrawerPayPal;itcCartDrawerPayPal=event=>{orichiTrackInitiateCheckout(),oritcCartDrawerPayPal(event)}}if("undefined"!=typeof itcCartDrawerCheckout){var oritcCartDrawerCheckout=itcCartDrawerCheckout;itcCartDrawerCheckout=event=>{orichiTrackInitiateCheckout(),oritcCartDrawerCheckout(event)}}}}catch(error){}if(trackPageView(pixels),null!=pageURL&&pageURL.indexOf("/products/")>-1){var product_url;if(pageURL.indexOf("?")>-1)product_url=(product_url=pageURL.split("?"))[0]+".json";else var product_url=pageURL+".json";var product=await otGetInfoProductByLink(product_url,$);trackViewContent(pixels,product)}if(window.orichiSetting&&window.orichiSetting.ShopID>22448||"1"==orPixelGetPara("Ev-ATC-QueueSupport")?orichiPixelQueue(pixels):document.addEventListener("click",(function(event){if("borealis-watch-company.myshopify.com"!=Shopify.shop&&"sunlu3d.myshopify.com"!=Shopify.shop&&"mesaudaprofessional.myshopify.com"!=Shopify.shop&&"mesaudacosmetics.myshopify.com"!=Shopify.shop&&(event.target.matches(orichiElementButtonAddToCart)&&trackAddToCart(pixels),("cozy-drippy.myshopify.com"==Shopify.shop||""!=orPixelGetPara("Ev-IC-EventListen"))&&(event.target.matches(".shopify-payment-button__button")||event.target.matches(orPixelGetPara("Ev-IC-EventListen")))))if("undefined"!=typeof itemInCart&&void 0!==itemInCart.items){var cart=itemInCart;if(cart.items.length>0){let content_ids=[],content_name=[];o$.each(cart.items,(function(index,value){content_ids.push(value.variant_id),content_name.push(value.product_title),index==cart.items.length-1&&trackInitiateCheckout(pixels,content_ids,content_name,cart)}))}}else o$.ajax({type:"GET",url:"/cart.js",dataType:"json"}).done(cart=>{if(cart.items.length>0){let content_ids=[],content_name=[];o$.each(cart.items,(function(index,value){content_ids.push(value.variant_id),content_name.push(value.product_title),index==cart.items.length-1&&trackInitiateCheckout(pixels,content_ids,content_name,cart)}))}}).fail((function(jqXHR,textStatus){}))})),(window.orichiSetting&&window.orichiSetting.ShopID<=22448||"1"==orPixelGetPara("Ev-IC-ListenDom"))&&o$("body").on("click",orichiElementButtonCheckout,(function(e){if("sua-ferramenta-shop.myshopify.com"!=Shopify.shop)if("undefined"!=typeof itemInCart&&void 0!==itemInCart.items){var cart=itemInCart;if(cart.items.length>0){let content_ids=[],content_name=[];o$.each(cart.items,(function(index,value){content_ids.push(isUseProductID?value.product_id:value.variant_id),content_name.push(value.product_title),index==cart.items.length-1&&trackInitiateCheckout(pixels,content_ids,content_name,cart)}))}}else o$.ajax({type:"GET",url:"/cart.js",dataType:"json"}).done(cart=>{if(cart.items.length>0){let content_ids=[],content_name=[];o$.each(cart.items,(function(index,value){content_ids.push(isUseProductID?value.product_id:value.variant_id),content_name.push(value.product_title),index==cart.items.length-1&&trackInitiateCheckout(pixels,content_ids,content_name,cart)}))}}).fail((function(jqXHR,textStatus){}))})),Shopify.Checkout&&("thank_you"==Shopify.Checkout.page||"checkout_one_thank_you"==Shopify.Checkout.page)){var productIds=[],productNames=[],quantity=0;Shopify.checkout.line_items.forEach((function(item,index){if(quantity+=item.quantity,""!=item.variant_title)var prod_name=item.title+" - "+item.variant_title;else var prod_name=item.title;productNames.push(prod_name),productIds.push(isUseProductID?item.product_id:item.variant_id)})),trackPurchase($,productIds,quantity,pixels)}if(""!=orPixelGetPara("Ev-Lead-Add")&&window.location.href.indexOf(orPixelGetPara("Ev-Lead-Add"))>-1&&orfbq(pixels,"Lead"),""!=orPixelGetPara("Ev-SurveyV-Add")&&window.location.href.indexOf(orPixelGetPara("Ev-SurveyV-Addd"))>-1&&orfbq(pixels,"SurveyView"),"sunlu3d.myshopify.com"==Shopify.shop&&o$("body").on("click",".orichi-checkout-button",(function(e){if(o$("#cart_agree").length>0&&o$("#cart_agree").prop("checked"))if("undefined"!=typeof itemInCart&&void 0!==itemInCart.items){var cart=itemInCart;if(cart.items.length>0){let content_ids=[],content_name=[];o$.each(cart.items,(function(index,value){content_ids.push(value.variant_id),content_name.push(value.product_title),index==cart.items.length-1&&trackInitiateCheckout(pixels,content_ids,content_name,cart)}))}}else o$.ajax({type:"GET",url:"/cart.js",dataType:"json"}).done(cart=>{if(cart.items.length>0){let content_ids=[],content_name=[];o$.each(cart.items,(function(index,value){content_ids.push(value.variant_id),content_name.push(value.product_title),index==cart.items.length-1&&trackInitiateCheckout(pixels,content_ids,content_name,cart)}))}}).fail((function(jqXHR,textStatus){}));o$('[name="checkout"]').click()})),"hobby-stories.myshopify.com"==Shopify.shop&&"collection"==__st.p&&o$("body").on("click",".gf_add-to-cart",(function(e){var prid=o$(this).parent().attr("data-pid"),productJson=JSON.parse(o$("#product-json"+prid).html()),event_id=(new Date).getTime()+getRandomInt(1,1e5);orfbq(pixels,"AddToCart",{content_ids:productJson.id,content_type:"product",value:parseInt(productJson.price)/100,content_name:productJson.title,currency:orichiPixelCurrency},event_id)})),"hobbyparati-es.myshopify.com"==Shopify.shop&&o$("body").on("click",".rebuy-product-actions .rebuy-button",(function(e){trackAddToCart(pixels)})),""!=orPixelGetPara("Ev-CB-Override")){var element=orPixelGetPara("Ev-CB-Override");setInterval((function(){if(o$(element).length>0&&0==o$(".Orichi-dynamic-checkout-button").length){var checkoutHtml=o$(element)[0].outerHTML;o$(element).first().replaceWith(`
${checkoutHtml}
`)}}),100)}var pixelIds=null!=ShopifyAnalytics&&null!=ShopifyAnalytics.lib&&null!=ShopifyAnalytics.lib.config["Facebook Pixel"]&&null!=ShopifyAnalytics.lib.config["Facebook Pixel"].pixelIds?ShopifyAnalytics.lib.config["Facebook Pixel"].pixelIds.join(","):"";pixelIds!=window.orichiSetting.DoubleIssueCheck&&o$.ajax({url:`${orichiPixelApiUrl}/Customer/UpdateDoubleIssue?shop=`+Shopify.shop+"&pixelCheck="+pixelIds,type:"GET",success:function(res){}}),!Shopify.Checkout||"thank_you"!=Shopify.Checkout.page&&"checkout_one_thank_you"!=Shopify.Checkout.page||o$("body").append(`