var e8i0l32eu87j3_dd_product_id; var e8i0l32eu87j3_dd_default_variant_id; (function() { var features = JSON.parse(`{"inlineDiscounts":true,"quantitySelector":false,"autoRefreshCartQuantity":false,"info":true,"title":true,"markers":true,"discountsTable":true}`); var quantitySelector = `form[action=\'/cart/add\'] #Quantity-product-template, form[action=\'/cart/add\'] #Quantity, form[action=\'/cart/add\'] #quantity,form[action=\'/cart/add\'] #product-quantity,form[action=\'/cart/add\'] input[name=\'quantity\']:not([type=\'hidden\']),quantity-input input` var quantitySelectorButton1 = `form[action=\'/cart/add\'],quantity-input input` var quantitySelectorButton2 = `` var hiddenInput = `` var discounts=[{"discount":100,"volume":1,"label":"Free","description":"Free","__typename":"dd_discount"},{"discount":1e-9,"volume":2,"label":"$3.00","description":"Actual rate applied","__typename":"dd_discount"},{"discount":0.25,"volume":26,"label":"$2.75","description":"$0.25 discount","__typename":"dd_discount"},{"discount":0.5,"volume":101,"label":"$2.50","description":"$0.50 discount","__typename":"dd_discount"}]; var translates={"title":"Buy more pay less 🔥🔥","quantity":"qty","nodiscountdescription":"Buy more to unlock more discount on this product !","nodiscounttitle":"No discount for the moment","volumeincartmessage":"in cart","discountTableDiscount":"Price per item","discountTableQuantity":"Quantity"}; var countersHtml=`
Buy more pay less 🔥🔥
* in cart
qty:
10
Free
1
$3.00
2
$2.75
26
$2.50
101
$3.00

Actual rate applied

Quantity
Price per item
1
Free
2
$3.00
26
$2.75
101
$2.50
` var volumewidgetcss=`` const _0x19cd=['form[action=\x27/cart/add\x27]\x20[name=\x27add\x27],\x20form[action=\x27/cart/add\x27]\x20[type=\x27submit\x27],\x20form[action=\x27/cart/add\x27]\x20[id=\x27add-to-cart\x27],form[action=\x27/cart/add\x27]>*:first-child','769696iaReBi','.product-form__item--submit','querySelector','getElementsByClassName','product-form__item\x20product-form__item--submit','innerHTML','.dd-96432873539463920925272-progress-monobar-active','json','#dd-96432873539463920925272-progress-monobar-title-value','732','.dd-96432873539463920925272-widget-progress-bar-plus-btn','beforebegin','nodiscounttitle','1825559YDzWkM','insertAdjacentHTML','--progress-bar-fit-together-radius','theme','1756497ZzunFj','head','style','796','nodiscountdescription','click','--progress-bar-width','#dd-96432873539463920925272-widget-incart-volume','form[action=\x27/cart/add\x27]\x20.payment-and-quantity','addEventListener','#dd-96432873539463920925272-widget-quantity','items','AddToCart--product-template','product-single__shopify-payment-btn','730','label','autoRefreshCartQuantity','1nLokVt','forEach','quantitySelector','description','product_id','theme_store_id','775','605165xZzkrD','beforeend','.dd-96432873539463920925272-progress-monobar-container','1545105VEXAHN','volume','AddToCart','innerText','discount','value','0px','dd-96432873539463920925272-widget-monobar-info-description','getElementById','1376650SNBMSU','setProperty','.dd-96432873539463920925272-progress-monobar-incart','.dd-96432873539463920925272-widget-progress-bar-minus-btn','change','/cart.js','380','dd-96432873539463920925272-widget-monobar-info-title','578','customWidgetPosition','length','1010990vkgunO','quantity'];const _0x2328=function(_0xe5a6bb,_0x56563b){_0xe5a6bb=_0xe5a6bb-(0x8ac+-0xdfc+-0x2*-0x399);let _0x5143e6=_0x19cd[_0xe5a6bb];return _0x5143e6;};const _0x10c169=_0x2328;(function(_0x544b01,_0x596d19){const _0x2cc0e2=_0x2328;while(!![]){try{const _0x305631=parseInt(_0x2cc0e2(0x1e9))+parseInt(_0x2cc0e2(0x201))+-parseInt(_0x2cc0e2(0x1e5))+parseInt(_0x2cc0e2(0x218))+-parseInt(_0x2cc0e2(0x21b))+-parseInt(_0x2cc0e2(0x20d))+parseInt(_0x2cc0e2(0x204))*parseInt(_0x2cc0e2(0x1fa));if(_0x305631===_0x596d19)break;else _0x544b01['push'](_0x544b01['shift']());}catch(_0x4e8ccf){_0x544b01['push'](_0x544b01['shift']());}}}(_0x19cd,0x119775+0x16523f+-0x197af8));async function getCartProductQuantity(_0xb2d759){const _0x4530bb=_0x2328;let _0x170b0c=await fetch(_0x4530bb(0x212)),_0x145546=await _0x170b0c[_0x4530bb(0x222)]();q=0x1b7b+0x1f3*-0x3+-0x15a2;for(let _0x4f164f of _0x145546[_0x4530bb(0x1f4)]){_0x4f164f[_0x4530bb(0x1fe)]==_0xb2d759&&(q+=_0x4f164f[_0x4530bb(0x219)]);}return q;}let quantity=parseInt(document[_0x10c169(0x21d)](quantitySelector)?.[_0x10c169(0x209)]);document[_0x10c169(0x21d)](quantitySelector)?.[_0x10c169(0x1f2)](_0x10c169(0x211),_0x58da6a=>{setTimeout(function(){const _0x31f525=_0x2328;quantity=parseInt(document[_0x31f525(0x21d)](quantitySelector)?.[_0x31f525(0x209)]),document[_0x31f525(0x21d)](_0x31f525(0x1f3))&&(document[_0x31f525(0x21d)](_0x31f525(0x1f3))[_0x31f525(0x209)]=quantity),updateWidget();},0x3a*-0x4+0x11*-0xca+0xe5c);});quantitySelectorButton1&&document[_0x10c169(0x21d)](quantitySelectorButton1)?.[_0x10c169(0x1f2)](_0x10c169(0x1ee),_0x56e949=>{setTimeout(function(){const _0x1cf867=_0x2328;let _0x2f9a9d=parseInt(document[_0x1cf867(0x21d)](quantitySelector)?.[_0x1cf867(0x209)]);quantity=_0x2f9a9d?_0x2f9a9d:quantity,document[_0x1cf867(0x21d)](_0x1cf867(0x1f3))&&(document[_0x1cf867(0x21d)](_0x1cf867(0x1f3))[_0x1cf867(0x209)]=quantity),updateWidget();},0xf30+0xb87*-0x2+-0x1fa*-0x4);});quantitySelectorButton2&&document[_0x10c169(0x21d)](quantitySelectorButton2)?.[_0x10c169(0x1f2)](_0x10c169(0x1ee),_0x1aa9e3=>{setTimeout(function(){const _0x348bce=_0x2328;let _0x17b6b1=parseInt(document[_0x348bce(0x21d)](quantitySelector)?.[_0x348bce(0x209)]);quantity=_0x17b6b1?_0x17b6b1:quantity,document[_0x348bce(0x21d)](_0x348bce(0x1f3))&&(document[_0x348bce(0x21d)](_0x348bce(0x1f3))[_0x348bce(0x209)]=quantity),updateWidget();},0x9c0+-0x4b9+0x4fd*-0x1);});async function refreshCartQuantity(){return new Promise(async(_0x29eab1,_0x15ebf7)=>{const _0x1068c1=_0x2328;let _0x28cf5c=await getCartProductQuantity(e8i0l32eu87j3_dd_product_id);if(cartQuantity==undefined)cartQuantity=_0x28cf5c;else{if(_0x28cf5c!=cartQuantity){let _0x20a949=_0x28cf5c-cartQuantity;_0x20a949!=quantity&&(cartQuantity=_0x28cf5c);}}return _0x28cf5c>0xed9*-0x1+-0x12b3*-0x2+-0xfb*0x17&&document[_0x1068c1(0x21d)](_0x1068c1(0x203))[_0x1068c1(0x1eb)][_0x1068c1(0x20e)](_0x1068c1(0x1e7),_0x1068c1(0x20a)),updateWidget(),_0x29eab1(cartQuantity);});}if(!quantity||quantity<=-0x5*0x465+-0x1bc7+0x31c0)quantity=0x98*-0x9+0xcba+-0x1*0x761;let cartQuantity;refreshCartQuantity();features[_0x10c169(0x1f9)]==!![]&&setInterval(()=>{refreshCartQuantity();},-0x17f*0x1a+-0x941*-0x1+-0xb2f*-0x3);function getMaxDiscountVolume(){const _0x3e6b64=_0x10c169;let _0x3f9c3d=-0x78*-0xe+0x866+0x77b*-0x2;discounts[_0x3e6b64(0x1fb)](_0x11ade5=>{const _0x45c7a5=_0x3e6b64;if(parseInt(_0x11ade5[_0x45c7a5(0x205)])>_0x3f9c3d)_0x3f9c3d=parseInt(_0x11ade5[_0x45c7a5(0x205)]);});if(discounts[_0x3e6b64(0x217)]==-0x10c8+0xef7+-0x1*-0x1d2)return _0x3f9c3d*(-0x2f*-0x72+-0xd57*0x2+-0x5c2*-0x1);return _0x3f9c3d;}function getCartBarPercentage(){let _0x43e29b=cartQuantity/getMaxDiscountVolume()*(0x1619+-0x49*-0x12+-0x1aff)+(-0x2e*0x6a+0x1de6+-0xada)+'%';return _0x43e29b;}function getBarPercentage(){let _0x39cb9c=quantity/getMaxDiscountVolume()*(-0x1*-0xc99+-0x621+-0x63c)+(-0xaf*0x22+-0x1*-0x20d4+-0x982*0x1)+'%';return _0x39cb9c;}function getCurrentDiscount(){const _0x25b6c9=_0x10c169;let _0x40d115={'discount':{},'volume':0x0};for(let _0x2190de of discounts){quantity+cartQuantity>=parseInt(_0x2190de[_0x25b6c9(0x205)])&&_0x2190de[_0x25b6c9(0x205)]>_0x40d115[_0x25b6c9(0x205)]&&(_0x40d115[_0x25b6c9(0x208)]=_0x2190de,_0x40d115[_0x25b6c9(0x205)]=parseInt(_0x2190de[_0x25b6c9(0x205)]));}return _0x40d115[_0x25b6c9(0x208)][_0x25b6c9(0x205)]?_0x40d115[_0x25b6c9(0x208)]:undefined;}function updateDiscountInfo(){const _0x1a69fc=_0x10c169;let _0x54ee61=getCurrentDiscount();!_0x54ee61&&(_0x54ee61={'label':translates[_0x1a69fc(0x1e4)],'description':translates[_0x1a69fc(0x1ed)]});if(document[_0x1a69fc(0x21e)](_0x1a69fc(0x20b))?.[_0x1a69fc(0x217)]>0x1528+0x1de6+-0x330e)document[_0x1a69fc(0x21e)](_0x1a69fc(0x20b))[-0x5b*-0x2d+-0x1247+0x1*0x248][_0x1a69fc(0x207)]=_0x54ee61[_0x1a69fc(0x1fd)];if(document[_0x1a69fc(0x21e)](_0x1a69fc(0x214))?.[_0x1a69fc(0x217)]>0x26a9*-0x1+-0x7e1*0x1+0x2e8a)document[_0x1a69fc(0x21e)](_0x1a69fc(0x214))[0x19f+0x1c30+-0x1dcf][_0x1a69fc(0x207)]=_0x54ee61[_0x1a69fc(0x1f8)];}function updateBarPercentage(){const _0x4add69=_0x10c169;let _0xa2851c=getBarPercentage(),_0x49f736=getCartBarPercentage();if(document[_0x4add69(0x21d)](_0x4add69(0x223)))document[_0x4add69(0x21d)](_0x4add69(0x223))[_0x4add69(0x220)]=quantity;if(document[_0x4add69(0x21d)](_0x4add69(0x1f0)))document[_0x4add69(0x21d)](_0x4add69(0x1f0))[_0x4add69(0x220)]=cartQuantity!=undefined?cartQuantity:'';document[_0x4add69(0x21d)](_0x4add69(0x20f))[_0x4add69(0x1eb)][_0x4add69(0x20e)](_0x4add69(0x1ef),_0x49f736),document[_0x4add69(0x21d)](_0x4add69(0x221))[_0x4add69(0x1eb)][_0x4add69(0x20e)](_0x4add69(0x1ef),_0xa2851c);}function updateQuantitySelector(){const _0x42c3cd=_0x10c169;if(!document[_0x42c3cd(0x21d)](quantitySelector))return;document[_0x42c3cd(0x21d)](quantitySelector)[_0x42c3cd(0x209)]=quantity;}function updateWidget(){updateBarPercentage(),updateDiscountInfo(),updateQuantitySelector();}function getVolumeWidgetPosition(){const _0x4735c6=_0x10c169;if(features[_0x4735c6(0x216)]!=undefined)return eval(features[_0x4735c6(0x216)]);else{if(Shopify[_0x4735c6(0x1e8)][_0x4735c6(0x1ff)]==_0x4735c6(0x1ec))return document[_0x4735c6(0x21e)](_0x4735c6(0x21f))[0x23a2+0x100*-0x3+-0x20a2];else{if(Shopify[_0x4735c6(0x1e8)][_0x4735c6(0x1ff)]==_0x4735c6(0x213))return document[_0x4735c6(0x20c)](_0x4735c6(0x206));else{if(Shopify[_0x4735c6(0x1e8)][_0x4735c6(0x1ff)]==_0x4735c6(0x215))return document[_0x4735c6(0x21e)](_0x4735c6(0x1f6))[0x1ea8+-0x160b+0x89d*-0x1];else{if(Shopify[_0x4735c6(0x1e8)][_0x4735c6(0x1ff)]==_0x4735c6(0x200))return document[_0x4735c6(0x21d)](_0x4735c6(0x21c));else{if(Shopify[_0x4735c6(0x1e8)][_0x4735c6(0x1ff)]==_0x4735c6(0x1f7))return document[_0x4735c6(0x20c)](_0x4735c6(0x1f5));else return Shopify[_0x4735c6(0x1e8)][_0x4735c6(0x1ff)]==_0x4735c6(0x224)?document[_0x4735c6(0x21d)](_0x4735c6(0x1f1)):document[_0x4735c6(0x21d)](_0x4735c6(0x21a));}}}}}}getVolumeWidgetPosition()[_0x10c169(0x1e6)](_0x10c169(0x1e3),countersHtml),document[_0x10c169(0x1ea)][_0x10c169(0x1e6)](_0x10c169(0x202),volumewidgetcss);(!features||features[_0x10c169(0x1fc)])&&(getVolumeWidgetPosition()[_0x10c169(0x1e6)](_0x10c169(0x1e3),hiddenInput),document[_0x10c169(0x21d)](_0x10c169(0x1e2))[_0x10c169(0x1f2)](_0x10c169(0x1ee),_0x5d025b=>{const _0x429df7=_0x10c169;quantity+=0xc6e+0x2174+-0x2de1,document[_0x429df7(0x21d)](_0x429df7(0x1f3))&&(document[_0x429df7(0x21d)](_0x429df7(0x1f3))[_0x429df7(0x209)]=quantity),document[_0x429df7(0x21d)](quantitySelector)&&(document[_0x429df7(0x21d)](quantitySelector)[_0x429df7(0x209)]=quantity),updateWidget();}),document[_0x10c169(0x21d)](_0x10c169(0x210))[_0x10c169(0x1f2)](_0x10c169(0x1ee),_0x4ff085=>{const _0x3f2df9=_0x10c169;quantity=quantity-(0x1b*0xdf+-0x7d1*0x4+0x7c0)>0x9a7+0x8d0+-0x1277?quantity-(0x71*-0x47+0x1132*-0x2+0x41bc):quantity,document[_0x3f2df9(0x21d)](_0x3f2df9(0x1f3))&&(document[_0x3f2df9(0x21d)](_0x3f2df9(0x1f3))[_0x3f2df9(0x209)]=quantity),document[_0x3f2df9(0x21d)](quantitySelector)&&(document[_0x3f2df9(0x21d)](quantitySelector)[_0x3f2df9(0x209)]=quantity),updateWidget();}));updateWidget(); })()