diff --git a/auto_cart.html b/auto_cart.html index 59bfff4..ae8ec34 100644 --- a/auto_cart.html +++ b/auto_cart.html @@ -1 +1 @@ -Автокорзина

Автокорзина

Собираем продукты под ваши настройки

Ваша корзина на -
84 товара • 12 020 ₽
    Показать ещё - товаров

    Настройте корзину под себя

    Чем больше вы расскажете, тем точнее будет подбор

    📅
    На сколько дней собираем корзину?
    👤
    Кто будет есть?
    2 человека
    Добавить человека +
    ❤️
    Предпочтения
    Категории продуктов

    Выберите группы продуктов, которые хотите видеть в корзине

    \ No newline at end of file +Автокорзина

    Автокорзина

    Собираем продукты под ваши настройки

    Ваша корзина на -
    84 товара12 020 ₽
    С запасами до 13 дней
      сбор корзины
      Показать ещё - товаров

      Настройте корзину под себя

      Чем больше вы расскажете, тем точнее будет подбор

      календарь
      На сколько дней собираем корзину?
      семья
      Кто будет есть?
      2 человека
      Предпочтения
      Не указаны

      Что добавить в корзину?

      Выберите группы продуктов, которые хотите видеть в корзине

      Мороженое Baskin Robbins

      Мороженое "Baskin Robbins" Банан с клубникой, 90 мл

      1 шт · 200 ₽

      Ещё вариант
      \ No newline at end of file diff --git a/autocart.js b/autocart.js index eff8087..68d9d20 100644 --- a/autocart.js +++ b/autocart.js @@ -1 +1 @@ -const _0x18740f=_0xed21;(function(_0x2a4298,_0x41372d){const _0x5bfed2=_0xed21,_0x73a0cd=_0x2a4298();while(!![]){try{const _0x85dea0=parseInt(_0x5bfed2(0x18e))/0x1+parseInt(_0x5bfed2(0x1b1))/0x2+-parseInt(_0x5bfed2(0x188))/0x3*(-parseInt(_0x5bfed2(0x1c7))/0x4)+parseInt(_0x5bfed2(0x19d))/0x5+-parseInt(_0x5bfed2(0x1fd))/0x6+parseInt(_0x5bfed2(0x1db))/0x7*(parseInt(_0x5bfed2(0x215))/0x8)+-parseInt(_0x5bfed2(0x187))/0x9;if(_0x85dea0===_0x41372d)break;else _0x73a0cd['push'](_0x73a0cd['shift']());}catch(_0xcb789b){_0x73a0cd['push'](_0x73a0cd['shift']());}}}(_0x2301,0x5469e));function _0xed21(_0x55bf8c,_0x4b4873){_0x55bf8c=_0x55bf8c-0x17f;const _0x230183=_0x2301();let _0xed2144=_0x230183[_0x55bf8c];return _0xed2144;}const host=_0x18740f(0x1d3);function throttle(_0x260e61,_0x52c060,_0x45ed15){var _0x303305,_0x50cb44,_0x3f788a,_0x5e2d64=null,_0x3b0d13=0x0;if(!_0x45ed15)_0x45ed15={};var _0x3c55b6=function(){const _0xc7260d=_0xed21;_0x3b0d13=_0x45ed15[_0xc7260d(0x181)]===![]?0x0:Date[_0xc7260d(0x240)](),_0x5e2d64=null,_0x3f788a=_0x260e61[_0xc7260d(0x1aa)](_0x303305,_0x50cb44);if(!_0x5e2d64)_0x303305=_0x50cb44=null;};return function(){const _0x1452d1=_0xed21;var _0x368d60=Date['now']();if(!_0x3b0d13&&_0x45ed15[_0x1452d1(0x181)]===![])_0x3b0d13=_0x368d60;var _0x48f367=_0x52c060-(_0x368d60-_0x3b0d13);_0x303305=this,_0x50cb44=arguments;if(_0x48f367<=0x0||_0x48f367>_0x52c060){_0x5e2d64&&(clearTimeout(_0x5e2d64),_0x5e2d64=null);_0x3b0d13=_0x368d60,_0x3f788a=_0x260e61['apply'](_0x303305,_0x50cb44);if(!_0x5e2d64)_0x303305=_0x50cb44=null;}else!_0x5e2d64&&_0x45ed15['trailing']!==![]&&(_0x5e2d64=setTimeout(_0x3c55b6,_0x48f367));return _0x3f788a;};}function refreshToken(){const _0x2333b9=_0x18740f;return fetch(host+'/api/guest/refresh_cookie',{'method':_0x2333b9(0x230),'credentials':_0x2333b9(0x1b3)})[_0x2333b9(0x1d6)](_0x33b2e9=>{return _0x33b2e9['json']();});}function initToken(){const _0x37ed68=_0x18740f;return fetch(host+_0x37ed68(0x1f1),{'method':_0x37ed68(0x230),'credentials':'include'})['then'](_0x53fde7=>{const _0x297ce8=_0x37ed68;return _0x53fde7[_0x297ce8(0x225)]();});}const requestWithRefresh=async function(_0x47576c,_0x2c4107){const _0xc48066=_0x18740f;return fetch(_0x47576c,{..._0x2c4107,'credentials':_0xc48066(0x1b3)})[_0xc48066(0x1d6)](async _0x581104=>_0x581104[_0xc48066(0x225)]())['then'](async _0xe11895=>{const _0x348b1e=_0xc48066;if(_0xe11895['error_message']===_0x348b1e(0x1bf))return refreshToken()[_0x348b1e(0x1d6)](_0x52c432=>{const _0x5abf97=_0x348b1e;return console[_0x5abf97(0x1b6)](_0x5abf97(0x231),_0x47576c),fetch(_0x47576c,{..._0x2c4107,'credentials':_0x5abf97(0x1b3)})['then'](_0x1570ea=>_0x1570ea['json']());});return _0xe11895;});},replaceProduct=async function(_0x566080){const _0x1da9be=_0x18740f;return requestWithRefresh(host+_0x1da9be(0x1e5),{'method':_0x1da9be(0x230),'headers':{'Content-Type':_0x1da9be(0x1f5)},'body':JSON[_0x1da9be(0x1bc)]({'product_name':_0x566080})})[_0x1da9be(0x1d6)](async()=>{updateCart();});},deleteProduct=async function(_0x4a5801){const _0x4bf861=_0x18740f;return requestWithRefresh(host+'/api/promo/delete_item',{'method':'POST','headers':{'Content-Type':_0x4bf861(0x1f5)},'body':JSON[_0x4bf861(0x1bc)]({'product_name':_0x4a5801})});},updateCart=throttle(async function(){const _0x14a511=_0x18740f;return requestWithRefresh(host+_0x14a511(0x1e4),{'headers':{'Content-Type':_0x14a511(0x1f5)}})[_0x14a511(0x1d6)](_0x281752=>{const _0x4d1f1a=_0x14a511;_0x281752['status']!==_0x4d1f1a(0x237)&&(initialData_g['excess']=_0x281752[_0x4d1f1a(0x1f8)][_0x4d1f1a(0x222)],initialData_g[_0x4d1f1a(0x1dd)]=_0x281752[_0x4d1f1a(0x1f8)]['precision'],_0x281752[_0x4d1f1a(0x1ad)]===_0x4d1f1a(0x20c)&&(allProducts=[],visibleProducts=[],renderProducts(),allProducts=_0x281752[_0x4d1f1a(0x1f8)]['chunk'],visibleProducts=_0x281752[_0x4d1f1a(0x1f8)][_0x4d1f1a(0x20d)]),_0x281752[_0x4d1f1a(0x1ad)]===_0x4d1f1a(0x1d9)&&_0x281752['payload'][_0x4d1f1a(0x20d)][_0x4d1f1a(0x193)](_0x143520=>{const _0x1a516b=_0x4d1f1a;let _0x377435=allProducts[_0x1a516b(0x19a)](_0x211108=>_0x211108[_0x1a516b(0x19b)]===_0x143520[_0x1a516b(0x19b)]);_0x377435===-0x1?(allProducts[_0x1a516b(0x244)]({..._0x143520,'image':_0x143520[_0x1a516b(0x1e1)]?.[_0x1a516b(0x1e6)](_0x1a516b(0x20b),_0x1a516b(0x212))}),visibleProducts[_0x1a516b(0x190)]===allProducts[_0x1a516b(0x190)]-0x1&&(visibleProducts=allProducts)):(allProducts[_0x377435]['n']+=_0x143520['n'],_0x377435{updateCart();});},0xbb8),setOption=(_0x2091eb,_0x4dcb2b)=>{const _0xd4d201=_0x18740f;return requestWithRefresh(host+_0xd4d201(0x241),{'method':_0xd4d201(0x230),'headers':{'Content-Type':_0xd4d201(0x1f5)},'body':JSON[_0xd4d201(0x1bc)]({[_0x2091eb]:_0x4dcb2b})})['then'](async _0x2234fe=>{wholeRender(await loadInitData()),updateCart();});},loadInitData=async function(){const _0x1cb8c3=_0x18740f;return fetch(host+_0x1cb8c3(0x23b),{'credentials':_0x1cb8c3(0x1b3)})[_0x1cb8c3(0x1d6)](async _0xf1167b=>{const _0x50e6d3=_0x1cb8c3,_0x3a8b1b=await _0xf1167b['json']();if(_0xf1167b[_0x50e6d3(0x1ad)]===0x191&&_0x3a8b1b[_0x50e6d3(0x204)]!==_0x50e6d3(0x1bf))return await initToken()[_0x50e6d3(0x1d6)](_0x4d0d8d=>{const _0x4a4188=_0x50e6d3;return fetch(host+_0x4a4188(0x23b),{'credentials':_0x4a4188(0x1b3)})[_0x4a4188(0x1d6)](_0x463f73=>_0x463f73[_0x4a4188(0x225)]());});if(_0xf1167b[_0x50e6d3(0x1ad)]===0x193||_0x3a8b1b[_0x50e6d3(0x204)]==='need_refresh')return await refreshToken()[_0x50e6d3(0x1d6)](_0x2ee50c=>{const _0x26993b=_0x50e6d3;return fetch(host+_0x26993b(0x23b),{'credentials':'include'})[_0x26993b(0x1d6)](_0x34a8fc=>_0x34a8fc[_0x26993b(0x225)]());});return _0x3a8b1b;})['then'](_0x5ebfdd=>{return updateCart(),_0x5ebfdd;})[_0x1cb8c3(0x21b)](_0x19d596=>{return console['log'](_0x19d596),Promise['reject']();});};function debounce(_0x452d14,_0x26094d){let _0x18adf;return function(..._0x275461){clearTimeout(_0x18adf),_0x18adf=setTimeout(()=>{const _0x57aa50=_0xed21;_0x452d14[_0x57aa50(0x1aa)](this,_0x275461);},_0x26094d);};}let allProducts,visibleProducts;function renderProduct(_0x3c8055,_0x8641c4){const _0x5d381d=_0x18740f,_0x266d6c=document[_0x5d381d(0x1a8)]('li');_0x266d6c[_0x5d381d(0x18c)]='cart-item';const _0x3bf759=_0x3c8055[_0x5d381d(0x207)]==='g'?_0x3c8055['n']+'\x20г':_0x3c8055['n']+_0x5d381d(0x191);return _0x266d6c[_0x5d381d(0x23c)]=cartPolicy['createHTML']('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3bf759+_0x5d381d(0x1ac)+Math[_0x5d381d(0x186)](_0x3c8055[_0x5d381d(0x198)]*0x64)/0x64+_0x5d381d(0x1cc)+_0x8641c4+_0x5d381d(0x22d)),_0x266d6c;}let cartList,scrollWrapper,showMoreBtn,remainingSpan,initialData_g;const cartPolicy=trustedTypes['createPolicy'](_0x18740f(0x239),{'createHTML':_0x115070=>_0x115070});function renderProducts(){const _0x3d34c4=_0x18740f;cartList['innerHTML']=cartPolicy[_0x3d34c4(0x1de)](''),visibleProducts[_0x3d34c4(0x193)]((_0x3a6efb,_0x217f76)=>{const _0x45459e=_0x3d34c4;cartList[_0x45459e(0x224)](renderProduct(_0x3a6efb,_0x217f76));});const _0x5855b2=allProducts['length']-visibleProducts['length'];_0x5855b2>0x0?(showMoreBtn[_0x3d34c4(0x1f3)]['remove']('hidden'),remainingSpan[_0x3d34c4(0x1b2)]=_0x5855b2):showMoreBtn[_0x3d34c4(0x1f3)][_0x3d34c4(0x195)](_0x3d34c4(0x1af)),updateSummaryCount(),calculateListHeight();}function updateSummaryCount(){const _0x7be527=_0x18740f,_0x445a38=new Intl[(_0x7be527(0x1c6))](_0x7be527(0x1b8),{'style':_0x7be527(0x1b4),'currency':_0x7be527(0x1f2)})[_0x7be527(0x211)](Math[_0x7be527(0x186)](allProducts[_0x7be527(0x1c8)]((_0x8c8d11,_0x28425d)=>_0x8c8d11+_0x28425d[_0x7be527(0x19f)],0x0)*0x64)/0x64),_0x5191c8=Math[_0x7be527(0x186)](initialData_g['days']*initialData_g['excess']+initialData_g['days']);document[_0x7be527(0x1a3)](_0x7be527(0x1e3))[_0x7be527(0x23c)]=cartPolicy[_0x7be527(0x1de)](allProducts[_0x7be527(0x190)]+'\x20'+declension(allProducts[_0x7be527(0x190)],[_0x7be527(0x227),_0x7be527(0x1f7),_0x7be527(0x1e2)])+_0x7be527(0x243)+_0x445a38+_0x7be527(0x19e)+_0x5191c8+'\x20'+declension(_0x5191c8,[_0x7be527(0x189),_0x7be527(0x180),'дней'])+_0x7be527(0x1b0)+Math[_0x7be527(0x186)](initialData_g['precision']*0x64)/0x64+'%'),document['getElementById'](_0x7be527(0x18d))['innerHTML']=cartPolicy[_0x7be527(0x1de)](''+_0x445a38),allProducts[_0x7be527(0x190)]===0x0&&(document[_0x7be527(0x1a3)](_0x7be527(0x1e3))[_0x7be527(0x23c)]=cartPolicy['createHTML']('0\x20товаров\x20•\x20'+_0x445a38+'\x20₽'));}function calculateListHeight(){const _0x5c37b2=_0x18740f,_0x178eaa=document[_0x5c37b2(0x218)]('.col-left');if(!_0x178eaa)return;const _0x2ae1e5=_0x178eaa[_0x5c37b2(0x218)]('h1'),_0x3717d7=_0x178eaa['querySelector'](_0x5c37b2(0x23f)),_0x560751=_0x178eaa['querySelector']('.cart-summary'),_0x588575=_0x178eaa[_0x5c37b2(0x218)](_0x5c37b2(0x1a4)),_0x4b99eb=_0x178eaa[_0x5c37b2(0x218)]('.show-more');let _0x858c60=0x0;if(_0x2ae1e5)_0x858c60+=_0x2ae1e5['offsetHeight']+0x6;if(_0x3717d7)_0x858c60+=_0x3717d7[_0x5c37b2(0x21d)]+0x1c;if(_0x560751)_0x858c60+=_0x560751[_0x5c37b2(0x21d)]+0x18;if(_0x4b99eb&&!_0x4b99eb[_0x5c37b2(0x1f3)][_0x5c37b2(0x1be)](_0x5c37b2(0x1af)))_0x858c60+=_0x4b99eb[_0x5c37b2(0x21d)];if(_0x588575)_0x858c60+=_0x588575[_0x5c37b2(0x21d)]+0x14;const _0x98bf72=0x3c,_0x51f160=_0x178eaa[_0x5c37b2(0x1f0)](),_0x3335a8=window['innerHeight']-_0x51f160[_0x5c37b2(0x23e)]-_0x98bf72-0x14,_0x5890ec=_0x3335a8-_0x858c60;_0x5890ec>0x64&&(scrollWrapper[_0x5c37b2(0x194)][_0x5c37b2(0x1f4)]=_0x5890ec+'px',scrollWrapper[_0x5c37b2(0x194)][_0x5c37b2(0x185)]='auto');}function declension(_0x306349,_0x4c5afe){const _0x17213a=_0x18740f,_0x3975ba=[0x2,0x0,0x1,0x1,0x1,0x2],_0x5c271f=_0x306349%0x64>0x4&&_0x306349%0x64<0x14?0x2:_0x3975ba[Math[_0x17213a(0x22f)](_0x306349%0xa,0x5)];return _0x4c5afe[_0x5c271f];}function wholeRender(_0x19230a){const _0x4eb237=_0x18740f;initialData_g=_0x19230a,document[_0x4eb237(0x218)]('.summary-days')[_0x4eb237(0x1b2)]=initialData_g['days']+'\x20'+declension(initialData_g[_0x4eb237(0x18a)],[_0x4eb237(0x189),_0x4eb237(0x180),_0x4eb237(0x1b5)]),allProducts=(Array[_0x4eb237(0x1cf)](initialData_g[_0x4eb237(0x20e)])?initialData_g[_0x4eb237(0x20e)]:[]??[])[_0x4eb237(0x1cd)]()[_0x4eb237(0x184)](_0x27dd5f=>{const _0x2bf2a3=_0x4eb237;return{..._0x27dd5f,'image':_0x27dd5f[_0x2bf2a3(0x1e1)]?.[_0x2bf2a3(0x1e6)](_0x2bf2a3(0x20b),_0x2bf2a3(0x212))};}),visibleProducts=allProducts[_0x4eb237(0x196)](0x0,visibleProducts?visibleProducts[_0x4eb237(0x190)]:0x5),document['querySelectorAll'](_0x4eb237(0x1fc))['forEach'](_0x23ccd4=>{const _0xd60ce6=_0x4eb237;_0x23ccd4[_0xd60ce6(0x1ee)]['trim']()===''+initialData_g[_0xd60ce6(0x18a)]&&_0x23ccd4[_0xd60ce6(0x1f3)]['add']('active');}),console['log'](initialData_g);let _0x51af81=initialData_g[_0x4eb237(0x221)];cartList=document[_0x4eb237(0x1a3)]('cart-list'),scrollWrapper=document['getElementById']('scroll-wrapper'),showMoreBtn=document['getElementById']('show-more-btn'),remainingSpan=document['getElementById'](_0x4eb237(0x1fa)),renderProducts(),document['addEventListener'](_0x4eb237(0x206),function(_0xa753cf){const _0x3c9cb9=_0x4eb237,_0x4e643a=_0xa753cf[_0x3c9cb9(0x183)][_0x3c9cb9(0x1ce)](_0x3c9cb9(0x214)),_0x4efa57=_0xa753cf['target']['closest'](_0x3c9cb9(0x21a)),_0x56ea3c=_0xa753cf['target'][_0x3c9cb9(0x1ce)](_0x3c9cb9(0x1dc)),_0x16e619=_0xa753cf[_0x3c9cb9(0x183)][_0x3c9cb9(0x1ce)](_0x3c9cb9(0x1d5)),_0xb8e604=_0xa753cf[_0x3c9cb9(0x183)][_0x3c9cb9(0x1ce)]('.reorder-btn');if(_0x4e643a){const _0x47ecb6=_0x4e643a[_0x3c9cb9(0x216)],_0x33caf5=_0x47ecb6[_0x3c9cb9(0x1f3)][_0x3c9cb9(0x1be)]('active');document[_0x3c9cb9(0x228)](_0x3c9cb9(0x1c0))[_0x3c9cb9(0x193)](_0x4b04cf=>_0x4b04cf['classList'][_0x3c9cb9(0x1b7)](_0x3c9cb9(0x21c))),!_0x33caf5&&_0x47ecb6[_0x3c9cb9(0x1f3)]['add']('active'),_0xa753cf['stopPropagation']();}else!_0x4efa57&&document['querySelectorAll'](_0x3c9cb9(0x1c0))[_0x3c9cb9(0x193)](_0x1bc461=>_0x1bc461['classList'][_0x3c9cb9(0x1b7)]('active'));if(_0x56ea3c){const _0x45bdd5=_0x56ea3c[_0x3c9cb9(0x1ce)](_0x3c9cb9(0x1d8)),_0xc8f1d6=_0x45bdd5[_0x3c9cb9(0x1ce)](_0x3c9cb9(0x1c3));_0xc8f1d6[_0x3c9cb9(0x1f3)][_0x3c9cb9(0x195)](_0x3c9cb9(0x1c4));const _0x193882=Array[_0x3c9cb9(0x20a)](cartList[_0x3c9cb9(0x1c2)])['indexOf'](_0xc8f1d6);replaceProduct(allProducts[_0x193882][_0x3c9cb9(0x19b)])[_0x3c9cb9(0x1d6)](()=>{const _0x156393=_0x3c9cb9;_0xc8f1d6[_0x156393(0x1b7)](),document[_0x156393(0x228)]('.menu-dropdown.active')[_0x156393(0x193)](_0x31198a=>_0x31198a[_0x156393(0x1f3)]['remove'](_0x156393(0x21c))),visibleProducts[_0x156393(0x1e9)](_0x193882,0x1),allProducts[_0x156393(0x1e9)](_0x193882,0x1),visibleProducts[_0x156393(0x190)]{const _0x49a8f6=_0x3c9cb9;_0x2f75f7[_0x49a8f6(0x1b7)](),document[_0x49a8f6(0x228)](_0x49a8f6(0x1c0))[_0x49a8f6(0x193)](_0x529d3a=>_0x529d3a['classList'][_0x49a8f6(0x1b7)]('active')),visibleProducts[_0x49a8f6(0x1e9)](_0x36f498,0x1),allProducts['splice'](_0x36f498,0x1),visibleProducts[_0x49a8f6(0x190)]{const _0x2d55d8=_0x3c9cb9;document[_0x2d55d8(0x1ae)][_0x2d55d8(0x1c5)]();});}),showMoreBtn[_0x4eb237(0x17f)](_0x4eb237(0x206),()=>{const _0xbaa738=_0x4eb237;while(visibleProducts['length']{const _0x126d1f=_0x4eb237;_0x499b1c[_0x126d1f(0x17f)](_0x126d1f(0x206),function(){const _0x2543f1=_0x126d1f,_0x1ca94a=this['closest']('.accordion-item'),_0xc3d7a2=_0x1ca94a[_0x2543f1(0x1f3)][_0x2543f1(0x1be)](_0x2543f1(0x203));document['querySelectorAll'](_0x2543f1(0x245))[_0x2543f1(0x193)](_0x44666a=>_0x44666a[_0x2543f1(0x1f3)][_0x2543f1(0x1b7)](_0x2543f1(0x203))),!_0xc3d7a2&&_0x1ca94a['classList']['add'](_0x2543f1(0x203));});}),document['querySelectorAll'](_0x4eb237(0x1e0))[_0x4eb237(0x193)](_0x5944bc=>{const _0x3214a0=_0x4eb237;_0x5944bc[_0x3214a0(0x17f)](_0x3214a0(0x206),function(){const _0x2db85a=_0x3214a0,_0x266286=this['closest']('.days-options');_0x266286[_0x2db85a(0x228)](_0x2db85a(0x1e0))['forEach'](_0x4737d3=>_0x4737d3['classList'][_0x2db85a(0x1b7)](_0x2db85a(0x21c))),this['classList']['add'](_0x2db85a(0x21c)),setOption(_0x2db85a(0x18a),this['dataset']['days']),document[_0x2db85a(0x218)](_0x2db85a(0x1d2))['textContent']=this[_0x2db85a(0x1d1)][_0x2db85a(0x18a)]+'\x20'+declension(this[_0x2db85a(0x1d1)][_0x2db85a(0x18a)],[_0x2db85a(0x189),_0x2db85a(0x180),'дней']);});});const _0x1327e2=document[_0x4eb237(0x1a3)]('family-list'),_0x210f46=document['getElementById'](_0x4eb237(0x1d0));let _0x252942=null;function _0x476b5a(){const _0x5f1e7f=_0x4eb237;_0x1327e2[_0x5f1e7f(0x23c)]=cartPolicy[_0x5f1e7f(0x1de)](''),_0x51af81[_0x5f1e7f(0x193)]((_0x4b2507,_0x3c011)=>{const _0x58ea7e=_0x5f1e7f,_0x4cf073='🥦',_0x26a95a=document[_0x58ea7e(0x1a8)]('div');_0x26a95a[_0x58ea7e(0x18c)]=_0x58ea7e(0x220),_0x26a95a[_0x58ea7e(0x1d1)]['index']=_0x3c011,_0x26a95a[_0x58ea7e(0x23c)]=cartPolicy[_0x58ea7e(0x1de)](_0x58ea7e(0x242)+_0x4cf073+_0x58ea7e(0x219)+_0x4b2507[_0x58ea7e(0x19b)]+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4b2507[_0x58ea7e(0x213)]+'\x20лет\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{const _0xecd416=_0x5f1e7f;_0x25d88e['addEventListener'](_0xecd416(0x206),function(_0x3fadad){const _0x343828=_0xecd416;_0x3fadad[_0x343828(0x208)]();const _0x1a3160=parseInt(this[_0x343828(0x1d1)]['index']);_0x51af81[_0x343828(0x1e9)](_0x1a3160,0x1),_0x476b5a(),setOption(_0x343828(0x221),_0x51af81);});});}_0x476b5a(),_0x1327e2[_0x4eb237(0x17f)]('click',function(_0x299fbb){const _0x14520c=_0x4eb237,_0x8f768b=_0x299fbb[_0x14520c(0x183)]['closest'](_0x14520c(0x1b9));if(!_0x8f768b)return;if(_0x299fbb[_0x14520c(0x183)][_0x14520c(0x1ce)](_0x14520c(0x1a7)))return;const _0x1e5972=parseInt(_0x8f768b[_0x14520c(0x1d1)][_0x14520c(0x182)]);_0x4b1076(_0x1e5972);});const _0x1d0682=document[_0x4eb237(0x1a3)]('personModal'),_0x816676=document['getElementById'](_0x4eb237(0x205)),_0x52e0a2=document[_0x4eb237(0x1a3)](_0x4eb237(0x22b)),_0x39cd5b=document['getElementById'](_0x4eb237(0x1ef)),_0x263eff=document['getElementById'](_0x4eb237(0x236)),_0x4e2152=document[_0x4eb237(0x228)](_0x4eb237(0x1bb)),_0x5dd092=initialData_g['available_groups'];function _0x4b1076(_0xf4ef5d=null){const _0x42ba16=_0x4eb237;_0x252942=_0xf4ef5d,document[_0x42ba16(0x228)](_0x42ba16(0x238))['forEach'](_0x236bd0=>_0x236bd0[_0x42ba16(0x23c)]=cartPolicy[_0x42ba16(0x1de)](''));if(_0x252942!==null){_0x263eff['textContent']='Редактировать\x20человека';const _0x46366c=_0x51af81[_0x252942];document[_0x42ba16(0x1a3)](_0x42ba16(0x197))['value']=_0x46366c[_0x42ba16(0x19b)],document['getElementById'](_0x42ba16(0x1c9))[_0x42ba16(0x1a1)]=_0x46366c[_0x42ba16(0x213)],document[_0x42ba16(0x1a3)](_0x42ba16(0x200))['value']=_0x46366c[_0x42ba16(0x23d)],document[_0x42ba16(0x1a3)]('inputHeight')[_0x42ba16(0x1a1)]=_0x46366c[_0x42ba16(0x226)],_0x4e2152[_0x42ba16(0x193)](_0x1de9bc=>{const _0x3cf3e0=_0x42ba16;_0x1de9bc[_0x3cf3e0(0x1f3)][_0x3cf3e0(0x18b)](_0x3cf3e0(0x21c),_0x1de9bc['dataset'][_0x3cf3e0(0x1ba)]===_0x46366c[_0x3cf3e0(0x1ba)]);});if(_0x46366c[_0x42ba16(0x209)])_0x46366c[_0x42ba16(0x209)]['forEach'](_0x2fa182=>_0x5bc887(_0x2fa182,_0x42ba16(0x209),![]));if(_0x46366c[_0x42ba16(0x1e7)])_0x46366c[_0x42ba16(0x1e7)][_0x42ba16(0x193)](_0x4dffad=>_0x5bc887(_0x4dffad,_0x42ba16(0x1e7),![]));}else _0x263eff[_0x42ba16(0x1b2)]='Добавить\x20человека',document[_0x42ba16(0x1a3)](_0x42ba16(0x197))[_0x42ba16(0x1a1)]='',document[_0x42ba16(0x1a3)](_0x42ba16(0x1c9))[_0x42ba16(0x1a1)]='',document['getElementById'](_0x42ba16(0x200))[_0x42ba16(0x1a1)]='',document['getElementById'](_0x42ba16(0x1ff))[_0x42ba16(0x1a1)]='',_0x4e2152[_0x42ba16(0x193)](_0x7bdb53=>_0x7bdb53[_0x42ba16(0x1f3)][_0x42ba16(0x1b7)](_0x42ba16(0x21c))),document[_0x42ba16(0x218)]('.gender-btn[data-gender=\x22m\x22]')[_0x42ba16(0x1f3)][_0x42ba16(0x195)](_0x42ba16(0x21c));_0x1d0682['style']['display']=_0x42ba16(0x1a6),calculateListHeight();}_0x816676[_0x4eb237(0x17f)](_0x4eb237(0x206),()=>_0x4b1076(null));function _0x4e2c2a(){const _0x3b71a4=_0x4eb237;_0x1d0682[_0x3b71a4(0x194)][_0x3b71a4(0x1fe)]=_0x3b71a4(0x202);}_0x52e0a2[_0x4eb237(0x17f)](_0x4eb237(0x206),_0x4e2c2a),_0x1d0682[_0x4eb237(0x17f)](_0x4eb237(0x206),function(_0x4e8989){const _0x288fc2=_0x4eb237;if(_0x4e8989[_0x288fc2(0x183)]===this)_0x4e2c2a();}),_0x4e2152['forEach'](_0x29cd59=>{const _0x2ca3bc=_0x4eb237;_0x29cd59['addEventListener'](_0x2ca3bc(0x206),function(){const _0x2db9cd=_0x2ca3bc;_0x4e2152[_0x2db9cd(0x193)](_0x219716=>_0x219716[_0x2db9cd(0x1f3)][_0x2db9cd(0x1b7)](_0x2db9cd(0x21c))),this[_0x2db9cd(0x1f3)][_0x2db9cd(0x195)]('active');});});function _0x5bc887(_0x4e599f,_0x4e5243,_0x3e7568=!![]){const _0x12809a=_0x4eb237,_0x54337c=document[_0x12809a(0x218)](_0x12809a(0x1c1)+_0x4e5243+'\x22]'),_0x3f8d15=_0x54337c['querySelectorAll'](_0x12809a(0x1ea));for(let _0x4d5860 of _0x3f8d15){if(_0x4d5860[_0x12809a(0x1b2)][_0x12809a(0x21e)]()[_0x12809a(0x1e6)]('×','')[_0x12809a(0x21e)]()===_0x4e599f)return;}const _0x13ca4c=_0x4e5243==='avoid'?_0x12809a(0x1e7):_0x12809a(0x209),_0x3b1b03=document[_0x12809a(0x218)](_0x12809a(0x1c1)+_0x13ca4c+'\x22]'),_0xcc249f=_0x3b1b03[_0x12809a(0x228)](_0x12809a(0x1ea));for(let _0xf7465a of _0xcc249f){if(_0xf7465a['textContent']['trim']()['replace']('×','')['trim']()===_0x4e599f){_0xf7465a[_0x12809a(0x1b7)]();break;}}const _0xf6f553=document[_0x12809a(0x1a8)](_0x12809a(0x1d4));_0xf6f553['className']=_0x12809a(0x1ab)+(_0x4e5243==='avoid'?_0x12809a(0x1eb):_0x12809a(0x1e8)),_0xf6f553[_0x12809a(0x23c)]=cartPolicy[_0x12809a(0x1de)](_0x4e599f+_0x12809a(0x1f9)),_0xf6f553[_0x12809a(0x218)](_0x12809a(0x1cb))[_0x12809a(0x17f)](_0x12809a(0x206),function(){_0xf6f553['remove']();}),_0x54337c[_0x12809a(0x224)](_0xf6f553);}document[_0x4eb237(0x228)](_0x4eb237(0x1ca))['forEach'](_0x4f5732=>{const _0x992783=_0x4eb237,_0x4a5e50=_0x4f5732[_0x992783(0x1d1)][_0x992783(0x1a0)],_0x190c5d=document['querySelector'](_0x992783(0x19c)+_0x4a5e50+'\x22]'),_0x4f789f=document[_0x992783(0x218)]('#personModal\x20.tags-wrap[data-target=\x22'+_0x4a5e50+'\x22]');_0x4f5732['addEventListener'](_0x992783(0x1da),function(){const _0x12a83e=_0x992783,_0x4f834c=this['value'][_0x12a83e(0x223)]();_0x190c5d[_0x12a83e(0x23c)]=cartPolicy['createHTML']('');const _0xf0da63=new Set();document[_0x12a83e(0x228)](_0x12a83e(0x22a))[_0x12a83e(0x193)](_0x1f761a=>{const _0x525be9=_0x12a83e,_0x828830=_0x1f761a[_0x525be9(0x1b2)][_0x525be9(0x21e)]()[_0x525be9(0x1e6)]('×','')[_0x525be9(0x21e)]();if(_0x828830)_0xf0da63[_0x525be9(0x195)](_0x828830);});if(_0x4f834c[_0x12a83e(0x190)]>0x0){const _0x5e56f3=_0x5dd092['filter'](_0x1161cc=>_0x1161cc[_0x12a83e(0x223)]()[_0x12a83e(0x1d7)](_0x4f834c)&&!_0xf0da63[_0x12a83e(0x232)](_0x1161cc));_0x5e56f3[_0x12a83e(0x190)]>0x0?(_0x190c5d[_0x12a83e(0x1f3)][_0x12a83e(0x195)]('active'),_0x5e56f3[_0x12a83e(0x193)](_0x3f74ca=>{const _0x93a854=_0x12a83e,_0x150d52=document[_0x93a854(0x1a8)](_0x93a854(0x1d4));_0x150d52['textContent']=_0x3f74ca,_0x150d52[_0x93a854(0x17f)](_0x93a854(0x206),function(){const _0x3457fb=_0x93a854;_0x5bc887(_0x3f74ca,_0x4a5e50),_0x4f5732[_0x3457fb(0x1a1)]='',_0x190c5d[_0x3457fb(0x1f3)]['remove'](_0x3457fb(0x21c));}),_0x190c5d[_0x93a854(0x224)](_0x150d52);})):_0x190c5d[_0x12a83e(0x1f3)][_0x12a83e(0x1b7)](_0x12a83e(0x21c));}else _0x190c5d[_0x12a83e(0x1f3)]['remove'](_0x12a83e(0x21c));}),document[_0x992783(0x17f)](_0x992783(0x206),function(_0xfb192f){const _0x35437a=_0x992783;!_0x4f5732['contains'](_0xfb192f['target'])&&!_0x190c5d[_0x35437a(0x1be)](_0xfb192f[_0x35437a(0x183)])&&_0x190c5d['classList'][_0x35437a(0x1b7)](_0x35437a(0x21c));});}),_0x39cd5b['addEventListener'](_0x4eb237(0x206),()=>{const _0x5aac38=_0x4eb237,_0x3ec2c0=document['getElementById'](_0x5aac38(0x197))['value'][_0x5aac38(0x21e)](),_0x2677ae=document['getElementById'](_0x5aac38(0x1c9))['value'][_0x5aac38(0x21e)](),_0x403fb0=document[_0x5aac38(0x1a3)](_0x5aac38(0x200))[_0x5aac38(0x1a1)]['trim'](),_0x2b622c=document[_0x5aac38(0x1a3)](_0x5aac38(0x1ff))[_0x5aac38(0x1a1)][_0x5aac38(0x21e)](),_0x286753=document[_0x5aac38(0x218)]('.gender-btn.active')['dataset'][_0x5aac38(0x1ba)];if(!_0x3ec2c0){alert(_0x5aac38(0x234));return;}if(!_0x2677ae||parseInt(_0x2677ae)<0x7){alert(_0x5aac38(0x235));return;}const _0x5ae7d5=[];document[_0x5aac38(0x218)]('#personModal\x20.tags-wrap[data-target=\x22avoid\x22]')[_0x5aac38(0x228)](_0x5aac38(0x1ea))[_0x5aac38(0x193)](_0x464eca=>{const _0x21902c=_0x5aac38;_0x5ae7d5[_0x21902c(0x244)](_0x464eca['textContent'][_0x21902c(0x21e)]()[_0x21902c(0x1e6)]('×','')[_0x21902c(0x21e)]());});const _0x4945b5=[];document[_0x5aac38(0x218)]('#personModal\x20.tags-wrap[data-target=\x22favorite\x22]')[_0x5aac38(0x228)](_0x5aac38(0x1ea))['forEach'](_0x20a489=>{const _0x4321ce=_0x5aac38;_0x4945b5['push'](_0x20a489[_0x4321ce(0x1b2)][_0x4321ce(0x21e)]()[_0x4321ce(0x1e6)]('×','')[_0x4321ce(0x21e)]());});const _0x1a458f={'name':_0x3ec2c0,'age':_0x2677ae,'weight':_0x403fb0,'height':_0x2b622c,'gender':_0x286753,'avoid':_0x5ae7d5,'favorite':_0x4945b5};_0x252942!==null?(_0x51af81[_0x252942]=_0x1a458f,_0x252942=null):_0x51af81['push'](_0x1a458f),_0x476b5a(),setOption(_0x5aac38(0x221),_0x51af81),_0x4e2c2a();});const _0x51865d=initialData_g['available_groups'],_0x53a9a0=initialData_g['initial_groups'];let _0x47d785=[..._0x53a9a0],_0x4dcc2d=![];const _0x2d1503=0x9,_0x4e17dc=debounce(async()=>{const _0x577720=_0x4eb237;return setOption(_0x577720(0x22e),_0x47d785);},0x5dc),_0x4f94e0=document[_0x4eb237(0x1a3)]('categories-grid'),_0x405bd8=document[_0x4eb237(0x1a3)](_0x4eb237(0x1f6));function _0x52e3ee(){const _0x5b17b1=_0x4eb237;_0x4f94e0['innerHTML']=cartPolicy[_0x5b17b1(0x1de)]('');const _0x393a4a=_0x4dcc2d?_0x51865d:_0x51865d[_0x5b17b1(0x196)](0x0,_0x2d1503);_0x393a4a[_0x5b17b1(0x193)](_0x2b6a87=>{const _0x44a295=_0x5b17b1,_0x3549aa=document['createElement'](_0x44a295(0x233));_0x3549aa['className']=_0x44a295(0x22c)+(_0x47d785[_0x44a295(0x1d7)](_0x2b6a87)?_0x44a295(0x21c):_0x44a295(0x1a5)),_0x3549aa[_0x44a295(0x1b2)]=_0x2b6a87,_0x3549aa[_0x44a295(0x1d1)]['category']=_0x2b6a87,_0x3549aa[_0x44a295(0x17f)]('click',function(){const _0x379d8c=_0x44a295,_0x2d34ec=this['dataset'][_0x379d8c(0x210)];_0x47d785[_0x379d8c(0x1d7)](_0x2d34ec)?_0x47d785=_0x47d785[_0x379d8c(0x1a9)](_0x46cd6b=>_0x46cd6b!==_0x2d34ec):_0x47d785[_0x379d8c(0x244)](_0x2d34ec),_0x52e3ee(),_0x4e17dc();}),_0x4f94e0[_0x44a295(0x224)](_0x3549aa);}),_0x4dcc2d?_0x405bd8[_0x5b17b1(0x1f3)][_0x5b17b1(0x1b7)](_0x5b17b1(0x1fb)):_0x405bd8[_0x5b17b1(0x1f3)][_0x5b17b1(0x195)](_0x5b17b1(0x1fb));}_0x405bd8[_0x4eb237(0x17f)](_0x4eb237(0x206),function(){_0x4dcc2d=!_0x4dcc2d,_0x52e3ee();}),_0x52e3ee();}document[_0x18740f(0x17f)](_0x18740f(0x1bd),async()=>{wholeRender(await loadInitData());}),document[_0x18740f(0x17f)]('DOMContentLoaded',function(){const _0x3ba25b=_0x18740f,_0x389a28=document['getElementById'](_0x3ba25b(0x192)),_0x53f541=document['getElementById']('cookie-accept');!localStorage[_0x3ba25b(0x1df)](_0x3ba25b(0x1ec))&&setTimeout(()=>{const _0x28cdaf=_0x3ba25b;_0x389a28['classList'][_0x28cdaf(0x195)]('show');},0x1f4),_0x53f541[_0x3ba25b(0x17f)]('click',function(){const _0x10e6b9=_0x3ba25b;localStorage['setItem'](_0x10e6b9(0x1ec),_0x10e6b9(0x23a)),_0x389a28[_0x10e6b9(0x1f3)]['remove']('show'),_0x389a28[_0x10e6b9(0x1f3)][_0x10e6b9(0x195)](_0x10e6b9(0x199)),setTimeout(()=>{const _0x505ea3=_0x10e6b9;_0x389a28['style']['display']=_0x505ea3(0x202);},0x190);});});function _0x2301(){const _0x769a2b=['createHTML','getItem','.day-btn','image','товаров','summary-details','/api/promo/get_updates','/api/promo/replace_item','replace','favorite','tag-green','splice','.tag','tag-red','cookie_accepted','500px','innerText','savePersonBtn','getBoundingClientRect','/api/guest/init_cookie?utm_source=hvatilo_promo','RUB','classList','maxHeight','application/json','expand-categories','товара','payload','\x20×','remaining-count','collapsed','.days-options\x20.day-btn','2677044woyngs','display','inputHeight','inputWeight','\x22>×\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','none','open','error_message','addMemberBtn','click','unit','stopPropagation','avoid','from','{SIZE}','clear','chunk','cart','Не\x20указаны','category','format','65,fit','age','.menu-btn','181648oDAVrp','nextElementSibling','waiting','querySelector','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','.menu-dropdown','catch','active','offsetHeight','trim','.accordion-header','family-member','users','excess','toLowerCase','appendChild','json','height','товар','querySelectorAll','человека','#personModal\x20.tags-wrap\x20.tag','closeModalBtn','category-btn\x20','\x22>⋮\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
        \x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Заменить\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Удалить\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
      \x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','categories','min','POST','url','has','button','Пожалуйста,\x20введите\x20имя.','Возраст\x20должен\x20быть\x20от\x207\x20лет.','modalTitle','complete','#personModal\x20.tags-wrap','cartPolicy','true','/api/promo/get_initial_data','innerHTML','weight','top','.subtitle','now','/api/promo/set_option','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20•\x20','push','.accordion-item','addEventListener','дня','leading','index','target','map','overflowY','round','7053957LHgEhz','841053dEQhgZ','день','days','toggle','className','total-price','478766luLuLD','\x22\x20alt=\x22\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','\x20шт','cookie-popup','forEach','style','add','slice','inputName','price','hide','findIndex','name','#personModal\x20.autocomplete-list[data-type=\x22','249750IorhWq','\x20~\x20с\x20запасами\x20на\x20','total_price','type','value','человек','getElementById','.cart-footer','inactive','flex','.delete-member','createElement','filter','apply','tag\x20','\x20×\x20','status','location','hidden',',\x20точность\x20','109746OUDUcL','textContent','include','currency','дней','log','remove','ru-RU','.family-member','gender','.gender-btn','stringify','DOMContentLoaded','contains','need_refresh','.menu-dropdown.active','#personModal\x20.tags-wrap[data-target=\x22','children','.cart-item','replacing','reload','NumberFormat','8MmFsuM','reduce','inputAge','#personModal\x20.pref-input','.tag-close','\x20₽\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_0x3425b6){_0x260d42&&(clearTimeout(_0x260d42),_0x260d42=null);_0x5ed0c9=_0x4f4952,_0x4106e5=_0x14c962[_0x4d6e69(0x1d7)](_0x341b20,_0x4af32c);if(!_0x260d42)_0x341b20=_0x4af32c=null;}else!_0x260d42&&_0x41fa1e['trailing']!==![]&&(_0x260d42=setTimeout(_0x469639,_0x77039));return _0x4106e5;};}function refreshToken(){const _0x5dce16=_0x4fba01;return fetch(host+_0x5dce16(0x32e),{'method':_0x5dce16(0x2ec),'credentials':_0x5dce16(0x1f3)})['then'](_0x409e94=>{const _0x56904d=_0x5dce16;if(_0x409e94[_0x56904d(0x25a)]===0x190)return fetch(host+_0x56904d(0x2b9),{'method':'POST','credentials':_0x56904d(0x1f3)})[_0x56904d(0x277)](async _0x35b055=>{return await new Promise(_0x168bf5=>setTimeout(_0x168bf5,0x64)),initToken();});return _0x409e94[_0x56904d(0x2cb)]();});}function initToken(){const _0x17146d=_0x4fba01;return fetch(host+'/api/guest/init_cookie?utm_source=hvatilo_promo',{'method':_0x17146d(0x2ec),'credentials':'include'})['then'](_0x17432c=>{const _0x5162c6=_0x17146d;return _0x17432c[_0x5162c6(0x2cb)]();});}const requestWithRefresh=async function(_0x348adc,_0x7572f4){const _0x53b92b=_0x4fba01;return fetch(_0x348adc,{..._0x7572f4,'credentials':_0x53b92b(0x1f3)})[_0x53b92b(0x277)](async _0x2ac6d7=>_0x2ac6d7[_0x53b92b(0x2cb)]())[_0x53b92b(0x277)](async _0x2b5a7a=>{const _0x1c6f27=_0x53b92b;if(_0x2b5a7a[_0x1c6f27(0x281)]===_0x1c6f27(0x193))return refreshToken()[_0x1c6f27(0x277)](_0x115423=>{const _0xcf3bcc=_0x1c6f27;return console['log'](_0xcf3bcc(0x241),_0x348adc),fetch(_0x348adc,{..._0x7572f4,'credentials':_0xcf3bcc(0x1f3)})[_0xcf3bcc(0x277)](_0x39058b=>_0x39058b[_0xcf3bcc(0x2cb)]());});return _0x2b5a7a;});},replaceProduct=async function(_0x1d5410){const _0x5787d5=_0x4fba01;return requestWithRefresh(host+'/api/promo/replace_item',{'method':_0x5787d5(0x2ec),'headers':{'Content-Type':'application/json'},'body':JSON[_0x5787d5(0x280)]({'product_name':_0x1d5410})})[_0x5787d5(0x277)](async()=>{updateCart();});},deleteProduct=async function(_0x4d548d){const _0x148dad=_0x4fba01;return requestWithRefresh(host+_0x148dad(0x28e),{'method':_0x148dad(0x2ec),'headers':{'Content-Type':_0x148dad(0x2fa)},'body':JSON[_0x148dad(0x280)]({'product_name':_0x4d548d})});},updateCart=throttle(async function(){const _0xcc75f7=_0x4fba01;return document['getElementById']('summary-loader')['classList'][_0xcc75f7(0x2c2)](_0xcc75f7(0x155)),document['getElementById'](_0xcc75f7(0x2cf))[_0xcc75f7(0x27a)]['add'](_0xcc75f7(0x155)),requestWithRefresh(host+'/api/promo/get_updates',{'headers':{'Content-Type':_0xcc75f7(0x2fa)}})['then'](_0x72949=>{const _0x2b7ee2=_0xcc75f7;_0x72949[_0x2b7ee2(0x25a)]!==_0x2b7ee2(0x1b6)?(initialData_g[_0x2b7ee2(0x302)]=_0x72949[_0x2b7ee2(0x191)][_0x2b7ee2(0x302)],initialData_g['precision']=_0x72949[_0x2b7ee2(0x191)][_0x2b7ee2(0x248)],_0x72949['status']===_0x2b7ee2(0x153)&&(allProducts=[],visibleProducts=[],renderProducts(),allProducts=_0x72949['payload']['chunk'],visibleProducts=_0x72949[_0x2b7ee2(0x191)][_0x2b7ee2(0x261)]),_0x72949[_0x2b7ee2(0x25a)]===_0x2b7ee2(0x335)&&_0x72949[_0x2b7ee2(0x191)][_0x2b7ee2(0x261)]['forEach'](_0x10136d=>{const _0x136789=_0x2b7ee2;let _0x80ff7d=allProducts['findIndex'](_0x3b2459=>_0x3b2459[_0x136789(0x1e8)]===_0x10136d['name']);_0x80ff7d===-0x1?(allProducts['push']({..._0x10136d,'image':_0x10136d[_0x136789(0x1cc)]?.[_0x136789(0x210)]('{SIZE}',_0x136789(0x1d5))}),visibleProducts[_0x136789(0x271)]===allProducts[_0x136789(0x271)]-0x1&&(visibleProducts=allProducts)):(allProducts[_0x80ff7d]['n']+=_0x10136d['n'],_0x80ff7d{updateCart();});},0xbb8),setOption=(_0xbd1bc0,_0x499e99)=>{const _0x5ef55f=_0x4fba01;return requestWithRefresh(host+_0x5ef55f(0x1b4),{'method':'POST','headers':{'Content-Type':_0x5ef55f(0x2fa)},'body':JSON[_0x5ef55f(0x280)]({[_0xbd1bc0]:_0x499e99})})[_0x5ef55f(0x277)](async _0x52c282=>{return wholeRender(await loadInitData()),updateCart(),_0x52c282;})[_0x5ef55f(0x183)](()=>{const _0x20b89b=_0x5ef55f;return console[_0x20b89b(0x233)](_0x20b89b(0x2f3)),new Promise((_0x56df8d,_0x1ad371)=>{setTimeout(()=>{const _0x45099a=_0x12da;console['log']('end\x20catch'),_0x1ad371(_0x45099a(0x24d));},0x3e8);});});},mockData={'existing':0x1538,'available_groups':['Приправы','Овощи',_0x4fba01(0x195),'Сыр',_0x4fba01(0x336),_0x4fba01(0x33e),_0x4fba01(0x21c),_0x4fba01(0x257),'Масло\x20для\x20готовки',_0x4fba01(0x236),'Соусы',_0x4fba01(0x243),'Горячие\x20напитки',_0x4fba01(0x1cb),_0x4fba01(0x1da),_0x4fba01(0x1a3),_0x4fba01(0x187),_0x4fba01(0x2d5),_0x4fba01(0x23f),_0x4fba01(0x268),_0x4fba01(0x1a5),_0x4fba01(0x291),_0x4fba01(0x311),_0x4fba01(0x2b4),_0x4fba01(0x284),'Консервы',_0x4fba01(0x2ce),_0x4fba01(0x2e4),'Вермишель','Рыба',_0x4fba01(0x150),'Грибы',_0x4fba01(0x1f2),_0x4fba01(0x22b),_0x4fba01(0x24c),'Молочные',_0x4fba01(0x15c),_0x4fba01(0x1d4),_0x4fba01(0x2a4),_0x4fba01(0x200),_0x4fba01(0x158),_0x4fba01(0x165)],'initial_groups':[_0x4fba01(0x31a),_0x4fba01(0x311),_0x4fba01(0x2ab),_0x4fba01(0x336),_0x4fba01(0x2b4),_0x4fba01(0x284),_0x4fba01(0x257),_0x4fba01(0x165),_0x4fba01(0x2da),_0x4fba01(0x1b5)],'days':0x7,'users':[{'id':-0x1,'name':_0x4fba01(0x1ac),'gender':'m','age':0x1e,'weight':0x57,'height':0xb4,'avoid':[_0x4fba01(0x291)],'favorite':[]},{'id':-0x2,'name':_0x4fba01(0x253),'gender':'f','age':0x1c,'weight':0x41,'height':0xa0,'avoid':[_0x4fba01(0x291)],'favorite':['Яблоко']},{'id':-0x3,'name':_0x4fba01(0x16d),'gender':'m','age':0xa,'weight':0x2d,'height':0x8c,'avoid':[_0x4fba01(0x2d5),_0x4fba01(0x1cb),'Острое'],'favorite':[]}],'cart':[[{'name':_0x4fba01(0x1c0),'n':0x4b0,'price':23.799,'total_price':142.79399999999998,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x254),'unit':'g'},{'name':'Картофель\x20фри,\x201кг','n':0x12c,'price':21.799,'total_price':43.598,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/66/06/226606.jpg','unit':'g'},{'name':_0x4fba01(0x2ee),'n':0x190,'price':27.99,'total_price':111.96,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/46/04/384604.jpg','unit':'g'},{'name':_0x4fba01(0x2a6),'n':0x1,'price':47.49,'total_price':47.49,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1e0),'unit':'pcs'},{'name':_0x4fba01(0x15d),'n':0x1,'price':72.49,'total_price':72.49,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/98/53/4399853.jpg','unit':_0x4fba01(0x33b)},{'name':'Хренодер\x20ФЭГ\x20ядрёный,\x20240г','n':0x1,'price':131.99,'total_price':131.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1bc),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x168),'n':0x7d0,'price':41.99,'total_price':419.90000000000003,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/36/73/483673.jpg','unit':'g'},{'name':'Продукт\x20кисломолочный\x20творожный\x20Exponenta\x20Топленое\x20молоко\x200%,\x20250г','n':0x2,'price':191.99,'total_price':383.98,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/03/28/4180328.jpg','unit':'pcs'}],[{'name':_0x4fba01(0x32f),'n':0x2,'price':47.99,'total_price':95.98,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x264),'unit':'pcs'},{'name':_0x4fba01(0x1a8),'n':0x708,'price':31.99,'total_price':383.88,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x23e),'unit':'g'},{'name':'Крем-суп\x20протеиновый\x20Bionova\x20Томатный,\x2020г','n':0x1,'price':71.99,'total_price':71.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2a8),'unit':'pcs'},{'name':'Креветки\x20королевские\x20варёно-мороженые\x20Agama\x20очищенные,\x20300г','n':0x1,'price':769.99,'total_price':769.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x285),'unit':'pcs'},{'name':_0x4fba01(0x25e),'n':0x1,'price':54.99,'total_price':54.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1ba),'unit':'pcs'},{'name':_0x4fba01(0x151),'n':0x1,'price':184.99,'total_price':184.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x26e),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x258),'n':0x1,'price':216.99,'total_price':216.99,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/48/03/4224803.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x2cd),'n':0x12c,'price':45.999,'total_price':137.997,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x20c),'unit':'g'},{'name':_0x4fba01(0x2ae),'n':0x1,'price':32.99,'total_price':32.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1b3),'unit':'pcs'}],[{'name':_0x4fba01(0x2aa),'n':0x3,'price':109.99,'total_price':329.96999999999997,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1fa),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x1ae),'n':0x2,'price':19.99,'total_price':39.98,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x18e),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x26c),'n':0x2,'price':25.99,'total_price':51.98,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x14e),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x171),'n':0x258,'price':59.999,'total_price':359.994,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x18c),'unit':'g'},{'name':_0x4fba01(0x148),'n':0x6,'price':92.99,'total_price':557.9399999999999,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x27b),'unit':'pcs'},{'name':_0x4fba01(0x205),'n':0x3,'price':216.99,'total_price':650.97,'currency':'rub','image':_0x4fba01(0x2c6),'unit':_0x4fba01(0x33b)},{'name':'Семена\x20горчицы\x20Мастер\x20Дак,\x2015\x20г','n':0x1,'price':6.49,'total_price':6.49,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2bb),'unit':_0x4fba01(0x33b)},{'name':'Конфета\x2035\x20со\x20вкусом\x20Шоколада,\x2020г','n':0x2,'price':19.99,'total_price':39.98,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/54/45/3505445.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x1dc),'n':0x2,'price':173.99,'total_price':347.98,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/33/28/3943328.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x2c5),'n':0x1,'price':351.99,'total_price':351.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x29a),'unit':'pcs'},{'name':_0x4fba01(0x1f4),'n':0x1,'price':449.99,'total_price':449.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x297),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x260),'n':0x1,'price':609.99,'total_price':609.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x174),'unit':_0x4fba01(0x33b)},{'name':'Соус\x20соевый\x20Тай-Со\x20Классический,\x20250мл','n':0x1,'price':69.99,'total_price':69.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1d1),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x2bd),'n':0x4b0,'price':27.399,'total_price':164.394,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x251),'unit':'g'},{'name':_0x4fba01(0x29e),'n':0x1,'price':51.49,'total_price':51.49,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x272),'unit':'pcs'},{'name':_0x4fba01(0x189),'n':0x1,'price':32.99,'total_price':32.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x216),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x221),'n':0x1,'price':199.99,'total_price':199.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1fb),'unit':'pcs'},{'name':_0x4fba01(0x338),'n':0x1,'price':709.99,'total_price':709.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x314),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x19d),'n':0x1,'price':203.99,'total_price':203.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2ba),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x1a2),'n':0x1,'price':72.99,'total_price':72.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x252),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x22a),'n':0x1,'price':218.99,'total_price':218.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x242),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x317),'n':0x960,'price':35.99,'total_price':431.88,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/60/81/4476081.jpg','unit':'g'},{'name':'Йогурт\x20греческий\x20Venn\x27s\x20натуральный\x200,1%,\x20130г','n':0x1,'price':56.99,'total_price':56.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x14b),'unit':_0x4fba01(0x33b)}],[{'name':_0x4fba01(0x1b7),'n':0x384,'price':4.899,'total_price':44.091,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x30b),'unit':'g'},{'name':_0x4fba01(0x33a),'n':0x1,'price':569.99,'total_price':569.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x226),'unit':'pcs'},{'name':_0x4fba01(0x15f),'n':0x3,'price':8.99,'total_price':26.97,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2d9),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x1b1),'n':0x4b0,'price':27.299,'total_price':163.79399999999998,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1e9),'unit':'g'},{'name':_0x4fba01(0x196),'n':0x1,'price':121.99,'total_price':121.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x27d),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x313),'n':0x1,'price':94.49,'total_price':94.49,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x159),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x33c),'n':0x1,'price':8.99,'total_price':8.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x28c),'unit':'pcs'},{'name':'Молоко\x20сгущенное\x20цельное\x20Алексеевское\x20с\x20сахаром,\x20стик\x208,5%,\x207г','n':0x1,'price':4.99,'total_price':4.99,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/56/82/4095682.jpg','unit':_0x4fba01(0x33b)},{'name':'Овощное\x20ассорти\x20острое\x20ФЭГ,\x20800г','n':0x1,'price':195.99,'total_price':195.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1c8),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x17c),'n':0x1,'price':749.99,'total_price':749.99,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/10/08/prd_810461008.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x246),'n':0x1,'price':43.49,'total_price':43.49,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x334),'unit':'pcs'},{'name':_0x4fba01(0x224),'n':0x1,'price':31.99,'total_price':31.99,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/83/72/3778372.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x26f),'n':0x1,'price':204.99,'total_price':204.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x194),'unit':'pcs'},{'name':_0x4fba01(0x2ad),'n':0x1,'price':203.99,'total_price':203.99,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/89/78/4818978.jpg','unit':'pcs'},{'name':'Творог\x20обезжиренный\x20Рузское\x20молоко,\x20200г','n':0x1,'price':145.99,'total_price':145.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1dd),'unit':_0x4fba01(0x33b)}],[{'name':_0x4fba01(0x1d0),'n':0x9,'price':39.99,'total_price':359.91,'currency':'rub','image':_0x4fba01(0x2d0),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x330),'n':0x8,'price':23.49,'total_price':187.92,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x25f),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x1ff),'n':0x2,'price':389.99,'total_price':779.98,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/38/51/4233851.jpg','unit':'pcs'},{'name':_0x4fba01(0x23b),'n':0x3,'price':109.99,'total_price':329.96999999999997,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1be),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x1df),'n':0x4,'price':32.99,'total_price':131.96,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x18d),'unit':'pcs'},{'name':_0x4fba01(0x180),'n':0x2,'price':103.99,'total_price':207.98,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2d4),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x228),'n':0x1,'price':23.99,'total_price':23.99,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/91/92/4359192.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x1b8),'n':0x4,'price':215.99,'total_price':863.96,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1e6),'unit':_0x4fba01(0x33b)},{'name':'Перец\x20Mikado\x20Халапеньо\x20резанный\x20зеленый,\x20350мл','n':0x1,'price':217.99,'total_price':217.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x19e),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x2dd),'n':0x1,'price':179.99,'total_price':179.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2c9),'unit':'pcs'},{'name':_0x4fba01(0x231),'n':0x1,'price':171.99,'total_price':171.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2a2),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x16c),'n':0x3,'price':217.99,'total_price':653.97,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/77/01/277701.jpg','unit':'pcs'},{'name':_0x4fba01(0x2a0),'n':0x640,'price':20.999000000000002,'total_price':167.99200000000002,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x273),'unit':'g'},{'name':_0x4fba01(0x2e7),'n':0x3,'price':96.49,'total_price':289.46999999999997,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/32/15/3693215.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x30a),'n':0x2,'price':28.49,'total_price':56.98,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/70/36/4457036.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x326),'n':0x1fa4,'price':29.199,'total_price':788.373,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x290),'unit':'g'},{'name':_0x4fba01(0x298),'n':0x2,'price':19.99,'total_price':39.98,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/77/17/4757717.jpg','unit':'pcs'},{'name':_0x4fba01(0x2d6),'n':0x2,'price':169.99,'total_price':339.98,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/15/40/4661540.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x2b0),'n':0x1,'price':8869.99,'total_price':8869.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x306),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x26b),'n':0x32,'price':73.999,'total_price':73.999,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/44/09/4274409.jpg','unit':'g'},{'name':_0x4fba01(0x2e0),'n':0x1,'price':478.99,'total_price':478.99,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/51/55/375155.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x303),'n':0x1,'price':213.99,'total_price':213.99,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/36/97/4663697.jpg','unit':_0x4fba01(0x33b)},{'name':'Закуска\x20Пиканта\x20Астраханская,\x20460г','n':0x1,'price':161.99,'total_price':161.99,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/14/17/3421417.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x2a3),'n':0x1,'price':13.49,'total_price':13.49,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x282),'unit':_0x4fba01(0x33b)},{'name':'Напиток\x20спортивный\x20ProteinRex\x20BCAA\x206000мг\x20бабл-гам,\x20500мл','n':0x2,'price':109.99,'total_price':219.98,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1b2),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x28b),'n':0x1,'price':29.99,'total_price':29.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x308),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x259),'n':0x1,'price':351.99,'total_price':351.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2f9),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x1c1),'n':0x320,'price':55.99,'total_price':223.96,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/18/37/411837.jpg','unit':'g'},{'name':'Ветчина\x20варёная\x20по-клински\x20Клинский\x20Для\x20тостов,\x20нарезка,\x20120г','n':0x2,'price':121.99,'total_price':243.98,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/72/11/3007211.jpg','unit':'pcs'},{'name':_0x4fba01(0x25d),'n':0x1,'price':106.99,'total_price':106.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x293),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x250),'n':0x3,'price':81.49,'total_price':244.46999999999997,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/21/64/4042164.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x212),'n':0x1,'price':264.99,'total_price':264.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2d3),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x31d),'n':0x4b0,'price':35.99,'total_price':215.94,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1a6),'unit':'g'},{'name':'Баклажаны\x20резаные,\x20вес','n':0x320,'price':47.999,'total_price':191.996,'currency':'rub','image':_0x4fba01(0x283),'unit':'g'},{'name':_0x4fba01(0x329),'n':0x1,'price':32.49,'total_price':32.49,'currency':'rub','image':_0x4fba01(0x2fb),'unit':'pcs'},{'name':_0x4fba01(0x202),'n':0x64,'price':31.599,'total_price':31.599,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x262),'unit':'g'},{'name':_0x4fba01(0x21a),'n':0x1,'price':519.99,'total_price':519.99,'currency':'rub','image':_0x4fba01(0x1d2),'unit':'pcs'},{'name':'Дрожжи\x20Парфэ\x20Декор\x20быстродействующие,\x2011г','n':0x1,'price':18.49,'total_price':18.49,'currency':'rub','image':_0x4fba01(0x230),'unit':_0x4fba01(0x33b)},{'name':'Микс\x20водорослей\x20Морская\x20капуста\x20с\x20фукусом\x20Здоровье\x20для\x20салата,\x20400г','n':0x1,'price':182.99,'total_price':182.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x23c),'unit':_0x4fba01(0x33b)},{'name':'Чипсы\x20нори\x20Глобус\x20Токи\x20поки,\x205г','n':0x1,'price':62.99,'total_price':62.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x32d),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x220),'n':0x1,'price':238.99,'total_price':238.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2c4),'unit':_0x4fba01(0x33b)},{'name':'Морковь\x20резаная\x20палочками\x20уп,\x20200-300г','n':0x64,'price':39.99,'total_price':39.99,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/46/01/384601.jpg','unit':'g'},{'name':_0x4fba01(0x265),'n':0x1,'price':149.99,'total_price':149.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2c0),'unit':_0x4fba01(0x33b)}],[{'name':_0x4fba01(0x2ca),'n':0x7d0,'price':16.899,'total_price':168.99,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/91/35/4289135.jpg','unit':'g'},{'name':_0x4fba01(0x2af),'n':0x2,'price':14.49,'total_price':28.98,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/53/55/4725355.jpg','unit':'pcs'},{'name':'Паста\x20соевая\x20мисо\x20Wanjia\x20Shinshumiso\x20светлая,\x201кг','n':0x1,'price':458.99,'total_price':458.99,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/26/72/3832672.jpg','unit':_0x4fba01(0x33b)},{'name':'Ламинария\x20Вегана,\x20150г','n':0x1,'price':629.99,'total_price':629.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2e6),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x312),'n':0x1,'price':539.99,'total_price':539.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2b1),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x30f),'n':0x4,'price':15.49,'total_price':61.96,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/30/61/4773061.jpg','unit':'pcs'},{'name':'Соус\x20Терияки\x20Yatomi,\x2030г','n':0x5,'price':19.99,'total_price':99.94999999999999,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x278),'unit':_0x4fba01(0x33b)},{'name':'Васаби\x20Yatomi,\x205г','n':0x3,'price':21.49,'total_price':64.47,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/83/74/3778374.jpg','unit':_0x4fba01(0x33b)},{'name':'Шампиньоны\x20резаные,\x201кг','n':0x7d0,'price':31.999000000000002,'total_price':319.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x185),'unit':'g'},{'name':_0x4fba01(0x2be),'n':0x2,'price':146.99,'total_price':293.98,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/45/28/4324528.jpg','unit':_0x4fba01(0x33b)},{'name':'Капуста\x20квашеная,\x20вес','n':0xc8,'price':39.99,'total_price':79.98,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/07/57/470757.jpg','unit':'g'},{'name':'Крем-суп\x20протеиновый\x20Bionova\x20Грибной,\x2020г','n':0x3,'price':65.49,'total_price':196.46999999999997,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x320),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x2de),'n':0x8,'price':39.99,'total_price':319.92,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/70/45/617045.jpg','unit':'pcs'},{'name':_0x4fba01(0x190),'n':0x4,'price':29.99,'total_price':119.96,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x331),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x149),'n':0x2,'price':39.49,'total_price':78.98,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x274),'unit':'pcs'},{'name':_0x4fba01(0x33f),'n':0x2,'price':18.99,'total_price':37.98,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x22d),'unit':'pcs'},{'name':'Огурцы\x20соленые\x20корнишоны,\x20вес','n':0xc8,'price':45.99,'total_price':91.98,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x328),'unit':'g'},{'name':_0x4fba01(0x237),'n':0x1,'price':139.99,'total_price':139.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x25b),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x197),'n':0x2,'price':81.49,'total_price':162.98,'currency':'rub','image':_0x4fba01(0x22e),'unit':'pcs'},{'name':'Пастила\x20Пастилушка\x20кусочки,\x2040г','n':0x1,'price':36.49,'total_price':36.49,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x17b),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x15e),'n':0x1,'price':38.99,'total_price':38.99,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/71/91/3927191.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x214),'n':0x1,'price':54.49,'total_price':54.49,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1b9),'unit':_0x4fba01(0x33b)},{'name':'Стрипсы\x20куриные\x20Троекурово\x20острые,\x20350г','n':0x1,'price':199.99,'total_price':199.99,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/23/28/1342328.jpg','unit':'pcs'},{'name':_0x4fba01(0x2f8),'n':0x2,'price':149.99,'total_price':299.98,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/20/70/3902070.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x339),'n':0x190,'price':35.99,'total_price':71.98,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/64/71/1156471.jpg','unit':'g'}],[{'name':'Хлеб\x20пшеничный\x20белый\x20Пеко,\x20380г','n':0x1,'price':21.99,'total_price':21.99,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/90/88/3829088.jpg','unit':'pcs'},{'name':'Чипсы\x20из\x20морской\x20капусты\x20Kakao\x20Friends\x20классические,\x20в\x20ассортименте,\x202г','n':0x7,'price':59.49,'total_price':416.43,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x19b),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x15b),'n':0x1,'price':76.99,'total_price':76.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x26a),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x300),'n':0x1,'price':88.49,'total_price':88.49,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/68/34/4736834.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x2e1),'n':0x2,'price':104.99,'total_price':209.98,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/25/96/4762596.jpg','unit':'pcs'},{'name':_0x4fba01(0x179),'n':0x3,'price':82.49,'total_price':247.46999999999997,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x19a),'unit':_0x4fba01(0x33b)},{'name':'Грибы\x20лисички\x20сухие\x20Грибной\x20дождь,\x2030г','n':0x1,'price':483.99,'total_price':483.99,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/65/56/4816556.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x340),'n':0x2,'price':215.99,'total_price':431.98,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1ce),'unit':'pcs'},{'name':'Карамель\x20Кремка\x20с\x20молочным\x20вкусом,\x20вес','n':0x5a,'price':37.39,'total_price':112.17,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x27c),'unit':'g'},{'name':_0x4fba01(0x247),'n':0x5,'price':36.49,'total_price':182.45000000000002,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/33/89/4143389.jpg','unit':'pcs'},{'name':_0x4fba01(0x24a),'n':0x3,'price':47.99,'total_price':143.97,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/00/33/4260033.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x2f4),'n':0x3,'price':52.99,'total_price':158.97,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x292),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x218),'n':0x9c4,'price':99.99,'total_price':999.9,'currency':'rub','image':_0x4fba01(0x208),'unit':'g'},{'name':'Хлеб\x20Станичный,\x20половинка,\x20350г','n':0x1,'price':47.49,'total_price':47.49,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x333),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x2eb),'n':0x2,'price':9.99,'total_price':19.98,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/23/43/252343.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x2a7),'n':0x1c2,'price':39.999,'total_price':119.99700000000001,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/58/02/4235802.jpg','unit':'g'},{'name':_0x4fba01(0x1a9),'n':0x2,'price':89.99,'total_price':179.98,'currency':'rub','image':_0x4fba01(0x206),'unit':_0x4fba01(0x33b)},{'name':'Суп\x20белковый\x20Ironman\x20Fit\x20куриный\x20с\x20ароматными\x20травами,\x2020г','n':0x2,'price':93.49,'total_price':186.98,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x276),'unit':'pcs'},{'name':_0x4fba01(0x2b8),'n':0x4b0,'price':34.599000000000004,'total_price':207.59400000000002,'currency':'rub','image':_0x4fba01(0x309),'unit':'g'},{'name':'Молоко\x20из\x20Вологды\x20для\x20детей\x20с\x203\x20лет\x203,2%,\x20200мл','n':0x3,'price':39.99,'total_price':119.97,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/02/65/4160265.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x162),'n':0x1,'price':59.99,'total_price':59.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x177),'unit':'pcs'},{'name':_0x4fba01(0x1ab),'n':0x1,'price':168.99,'total_price':168.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2df),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x1fc),'n':0x32,'price':999.99,'total_price':999.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x2ac),'unit':'g'},{'name':_0x4fba01(0x2e2),'n':0x2,'price':23.99,'total_price':47.98,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1ed),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x20e),'n':0x64,'price':29.99,'total_price':29.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x24f),'unit':'g'},{'name':'Печенье\x20протеиновое\x20Butter\x20Wave\x20сливочное,\x2036г','n':0x1,'price':103.99,'total_price':103.99,'currency':'rub','image':_0x4fba01(0x1c2),'unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x1c7),'n':0x32,'price':34.99,'total_price':34.99,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/27/91/422791.jpg','unit':'g'},{'name':_0x4fba01(0x20a),'n':0x1,'price':169.99,'total_price':169.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1d3),'unit':_0x4fba01(0x33b)},{'name':'Отбивная\x20из\x20индейки\x20охлажденная\x20Пава\x20Пава,\x20300г','n':0x3,'price':309.99,'total_price':929.97,'currency':_0x4fba01(0x26d),'image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/48/32/3844832.jpg','unit':_0x4fba01(0x33b)},{'name':_0x4fba01(0x209),'n':0x1c2,'price':35.999,'total_price':107.99700000000001,'currency':'rub','image':'https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/60/65/4476065.jpg','unit':'g'},{'name':_0x4fba01(0x31f),'n':0xc8,'price':34.99,'total_price':69.98,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x32a),'unit':'g'},{'name':_0x4fba01(0x1cf),'n':0x1,'price':285.99,'total_price':285.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x1d6),'unit':'pcs'},{'name':'Молоко\x20безлактозное\x20Protein\x20Max\x20Molvest\x200,5%,\x20450г','n':0x1,'price':114.99,'total_price':114.99,'currency':_0x4fba01(0x26d),'image':_0x4fba01(0x267),'unit':'pcs'}]],'excess':0.5362191665220106,'precision':98.14517264634198},loadInitData=async function(){const _0x1777f0=_0x4fba01;return fetch(host+_0x1777f0(0x321),{'credentials':_0x1777f0(0x1f3)})[_0x1777f0(0x277)](async _0x49ca66=>{const _0x4077b5=_0x1777f0,_0x4b7a68=await _0x49ca66[_0x4077b5(0x2cb)]();if(_0x49ca66[_0x4077b5(0x25a)]===0x190)return requestWithRefresh(host+_0x4077b5(0x2b9),{'method':_0x4077b5(0x2ec)})[_0x4077b5(0x277)](_0x20bc10=>{const _0x518ac1=_0x4077b5;document['location'][_0x518ac1(0x1c6)]();});if(_0x49ca66[_0x4077b5(0x25a)]===0x191&&_0x4b7a68[_0x4077b5(0x281)]!=='need_refresh')return await initToken(),await new Promise(_0x39a996=>setTimeout(()=>_0x39a996(),0x64)),fetch(host+'/api/promo/get_initial_data',{'credentials':_0x4077b5(0x1f3)})['then'](_0x373726=>_0x373726[_0x4077b5(0x2cb)]());if(_0x49ca66[_0x4077b5(0x25a)]===0x193||_0x4b7a68[_0x4077b5(0x281)]===_0x4077b5(0x193))return await refreshToken()[_0x4077b5(0x277)](_0x385d46=>{const _0x4d3bb4=_0x4077b5;return fetch(host+_0x4d3bb4(0x321),{'credentials':'include'})[_0x4d3bb4(0x277)](_0x2bc825=>_0x2bc825[_0x4d3bb4(0x2cb)]());});return _0x4b7a68;})['then'](_0x41d704=>{return updateCart(),_0x41d704;})[_0x1777f0(0x183)](_0x874500=>{const _0x8d6a2e=_0x1777f0;return Promise[_0x8d6a2e(0x2bf)]({'cart':[],'users':[],'initial_groups':[],'available_groups':[],'days':0x7});});};function debounceBatch(_0x3e1d78,_0x5f0b25){let _0x1f002d=null,_0x5d6572=null,_0x20f5ac=null,_0x5f3456=null;function _0x328a48(_0x3340da){const _0x35d6a4=_0x12da;_0x20f5ac=_0x3340da;const {ids:_0x42f9cc,promises:_0x13b1e1}=_0x3340da;let _0x31b5d1;try{_0x31b5d1=_0x3e1d78(_0x42f9cc);}catch(_0x4544a2){_0x13b1e1[_0x35d6a4(0x2d7)](_0x39be1c=>_0x39be1c[_0x35d6a4(0x30d)](_0x4544a2)),_0x4878d8();return;}_0x31b5d1&&typeof _0x31b5d1['then']===_0x35d6a4(0x275)?_0x31b5d1['then'](_0x572e29=>_0x13b1e1['forEach'](_0x133b4e=>_0x133b4e[_0x35d6a4(0x2bf)](_0x572e29)))[_0x35d6a4(0x183)](_0x1454a6=>_0x13b1e1[_0x35d6a4(0x2d7)](_0x3132fd=>_0x3132fd[_0x35d6a4(0x30d)](_0x1454a6)))['finally'](_0x4878d8):(_0x13b1e1['forEach'](_0x329dd0=>_0x329dd0[_0x35d6a4(0x2bf)](_0x31b5d1)),_0x4878d8());}function _0x4878d8(){const _0x234516=_0x12da;_0x20f5ac=null,_0x5f3456&&_0x5f3456[_0x234516(0x30c)][_0x234516(0x271)]>0x0&&(_0x5d6572=_0x5f3456,_0x5f3456=null,_0x1f002d=setTimeout(()=>{_0x1f002d=null;const _0xc51c39=_0x5d6572;_0x5d6572=null,_0x328a48(_0xc51c39);},_0x5f0b25));}return function _0x244088(_0x55a6f7){return new Promise((_0x593411,_0x460416)=>{const _0x5a9d17=_0x12da;if(_0x20f5ac)!_0x5f3456&&(_0x5f3456={'ids':[],'promises':[]}),_0x5f3456['ids'][_0x5a9d17(0x31e)](_0x55a6f7),_0x5f3456['promises'][_0x5a9d17(0x31e)]({'resolve':_0x593411,'reject':_0x460416});else _0x5d6572?(_0x5d6572[_0x5a9d17(0x30c)][_0x5a9d17(0x31e)](_0x55a6f7),_0x5d6572[_0x5a9d17(0x249)][_0x5a9d17(0x31e)]({'resolve':_0x593411,'reject':_0x460416}),clearTimeout(_0x1f002d),_0x1f002d=setTimeout(()=>{_0x1f002d=null;const _0x5aea0b=_0x5d6572;_0x5d6572=null,_0x328a48(_0x5aea0b);},_0x5f0b25)):(_0x5d6572={'ids':[_0x55a6f7],'promises':[{'resolve':_0x593411,'reject':_0x460416}]},_0x1f002d=setTimeout(()=>{_0x1f002d=null;const _0x1ef47e=_0x5d6572;_0x5d6572=null,_0x328a48(_0x1ef47e);},_0x5f0b25));});};}function debounce(_0x4ed531,_0x11d363){let _0x6a9776,_0x3f669d;return function(..._0x573b6b){return _0x3f669d&&(_0x3f669d(new Error('Debounced\x20function\x20cancelled')),_0x3f669d=null),new Promise((_0xfb740e,_0x3394e2)=>{_0x3f669d=_0x3394e2,clearTimeout(_0x6a9776),_0x6a9776=setTimeout(()=>{const _0x51c02d=_0x12da;try{const _0x42f4d5=_0x4ed531[_0x51c02d(0x1d7)](this,_0x573b6b);_0x42f4d5&&typeof _0x42f4d5[_0x51c02d(0x277)]==='function'?_0x42f4d5['then'](_0xfb740e)[_0x51c02d(0x183)](_0x3394e2):_0xfb740e(_0x42f4d5);}catch(_0x135fec){_0x3394e2(_0x135fec);}finally{_0x3f669d=null;}},_0x11d363);});};}let allProducts,visibleProducts;function renderProduct(_0x2ae934,_0x11bc67){const _0x123e8e=_0x4fba01,_0x18bbda=document[_0x123e8e(0x2e5)]('li');_0x18bbda[_0x123e8e(0x266)]=_0x123e8e(0x294);const _0x20b429=_0x2ae934[_0x123e8e(0x207)]==='g'?_0x2ae934['n']+'\x20г':_0x2ae934['n']+_0x123e8e(0x182);return _0x18bbda[_0x123e8e(0x157)]=cartPolicy['createHTML']('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_0xd12b21});function _0x12da(_0x25a431,_0x1cd189){_0x25a431=_0x25a431-0x148;const _0x47432b=_0x4743();let _0x12da9d=_0x47432b[_0x25a431];return _0x12da9d;}function renderProducts(){const _0x2e744f=_0x4fba01;cartList[_0x2e744f(0x157)]=cartPolicy[_0x2e744f(0x173)](''),visibleProducts[_0x2e744f(0x2d7)]((_0x43ba11,_0xe8795b)=>{const _0x3e6359=_0x2e744f;let _0x15f4cf=renderProduct(_0x43ba11,_0xe8795b);_0x15f4cf[_0x3e6359(0x184)](_0x3e6359(0x28d))[0x0]['addEventListener']('click',()=>openModal(_0x43ba11['image'][_0x3e6359(0x210)]('65,fit',_0x3e6359(0x213)),_0x43ba11[_0x3e6359(0x1e8)],_0x43ba11['n'],_0x43ba11[_0x3e6359(0x32c)],()=>{const _0x45e975=_0x3e6359;console[_0x45e975(0x233)](_0x45e975(0x210));},()=>{const _0x5117a1=_0x3e6359;console[_0x5117a1(0x233)](_0x5117a1(0x217));})),cartList['appendChild'](_0x15f4cf);});const _0x21d8c8=allProducts['length']-visibleProducts['length'];_0x21d8c8>0x0?(showMoreBtn['classList'][_0x2e744f(0x2c2)](_0x2e744f(0x155)),remainingSpan[_0x2e744f(0x1c3)]=_0x21d8c8):showMoreBtn[_0x2e744f(0x27a)][_0x2e744f(0x2b5)](_0x2e744f(0x155)),updateSummaryCount(),calculateListHeight();}function _0x4743(){const _0x27f816=['Салат\x20Tango\x20mix\x20Белая\x20Дача\x20рукола,\x20мангольд,\x2050г','Субпродукты','modalProductOverlay','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/20/43/3952043.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/63/22/4816322.jpg','categories-grid','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/83/18/4868318.jpg','Лук\x20зелёный\x20Глобус\x20перо,\x20250г','category','log','avoid','includes','Ягоды','Тефтели\x20из\x20мяса\x20цыплёнка-бройлера\x20Троекурово,\x20350г','top','https://hvatilo.ru','.cart-item','Шеи\x20цыплят-бройлеров\x20охлаждённые\x20Троекурово,\x20500г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/29/00/1582900.jpg','546740iETEwx','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/60/12/4476012.jpg','Хлебцы','auto','url','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/11/08/4401108.jpg','Для\x20готовки','bg-gray-light','#personModal\x20.tags-wrap[data-target=\x22favorite\x22]','Хлебцы\x20экструзионные\x20Три\x20Грации\x20с\x20томатом\x20и\x20прованскими\x20травами,\x2055г','Продукт\x20йогуртный\x20Сливочное\x20лакомство\x20Fruttis\x20в\x20ассортименте:\x20Клубника,\x20Персик\x205%,\x20115г','precision','promises','Творог\x20мягкий\x20обезжиренный\x20Простоквашино,\x20120г','\x22>×\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Картофель','end\x20catch','3kzpcOF','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/26/37/322637.jpg','Чипсы\x20нори\x20Sen\x20Soy\x20Оригинал,\x204,5г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/63/91/226391.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/67/00/546700.jpg','Мария','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/64/79/226479.jpg','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','none','#personModal\x20.tags-wrap[data-target=\x22avoid\x22]','inputAge','Дрожжи\x20универсальные\x20Dr.\x20Bakers\x20быстродействующие,\x207г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/23/41/252341.jpg','item-image','/api/promo/delete_item','show','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/64/70/226470.jpg','Детское\x20питание','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/65/21/4276521.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/58/79/255879.jpg','cart-item','gender','товаров','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/43/13/424313.jpg','Васаби\x20Глобус,\x205г','','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/82/32/4838232.jpg','дней','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stroke-linejoin=\x22round\x22>\x0a','.cart-footer','Мороженое\x20сливочное\x20Ля\x20Фам\x20Сладкий\x20лимон,\x2070г','.menu-dropdown','Яблоки\x20Айдаред,\x20вес','#personModal\x20.tags-wrap','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/19/63/271963.jpg','Семя\x20горчицы\x20Приправыч,\x2020г','Фрукты','age','Молоко\x20ультрапастеризованное\x20Ам-Ам\x20Мамина\x20забота\x20обогащённое\x20витамином\x20C,\x208+\x20месяцев,\x20205г','Смесь\x20компотная,\x201кг','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/66/98/546698.jpg','cookie_accepted','Котлеты\x20куриные\x20Троекурово,\x20500г','Молочные','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/73/17/3937317.jpg','Чеснок\x20резаный\x20LiViAnTa,\x20100г','Йогурт\x20двухслойный\x20Савушкин\x20манго\x202%,\x20120г','Приправа\x20для\x20гриля\x20Мастер\x20Дак,\x2015г','Шампанское\x20Champagne\x20M.\x20Ferat\x20&\x20Fils\x20Brut\x20Blanc\x20de\x20Blancs\x20Premier\x20Cru\x20белое\x20брют\x2012%\x20алк.,\x20Франция,\x20750мл','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/87/76/4838776.jpg','splice','contains','Гарнир','add','price','dataset','Цветная\x20капуста,\x201кг','/api/guest/clear_cookie','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/86/75/508675.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/82/27/4858227.jpg','.menu-btn-wrapper','Смесь\x20овощная\x20Мексиканская,\x201кг','Халапеньо\x20красный\x20Глобус,\x20360г','resolve','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/21/68/3872168.jpg','60hdYMaG','remove','show-more-btn','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/08/01/700801.jpg','Смесь\x20грибная\x20быстрозамороженная\x20И\x20Зимой\x20И\x20Летом,\x20300г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/37/03/4663703.jpg','input','replacing','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/04/69/3460469.jpg','Путассу\x20замороженная\x20неразделанная,\x20вес','json','show-more','Стебель\x20сельдерея\x20в\x20нарезке,\x20вес','Суп','summary-details','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/02/64/4160264.jpg','display','cart','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/72/51/3497251.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/24/06/1502406.jpg','Алкоголь','Желе\x20Jele\x20Beautie\x20cо\x20вкусом\x20клубники,\x20140г','forEach','has','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/79/28/4157928.jpg','Рыба','человека','Редактировать\x20человека','Ветчина\x20Сочная\x20\x20Мираторг\x20нарезка,\x20160г','Молоко\x20для\x20питания\x20детей\x20Эконива\x20с\x203\x20лет\x203,2%,\x20200мл','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/05/68/260568.jpg','Перец\x20Халапеньо\x20Kühne\x20резаный,\x20330г','Протертая\x20мякоть\x20томатов\x20Пиканта\x20с\x20базиликом\x20Пассата,\x20220г','Продукт\x20йогуртный\x20Нежный\x20с\x20соком\x20вишни\x201,2%,\x20100г','innerText','Острое','createElement','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/85/35/148535.jpg','Яблочные\x20слайсы\x20Яблоков,\x2025г','now','family-member','931777sRJYiB','Паприка\x20Мастер\x20Дак\x20молотая,\x2010г','POST','available_groups','Свекла\x20соломка\x20уп,\x20300-500г','getItem','inputName','cart-list','tag-green','start\x20catch','Чипсы\x20нори\x20Naitori\x20со\x20вкусом\x20кимчи,\x203г','Не\x20указаны','.day-btn','_listener','Молоко\x20обезжиренное\x20Viola\x20UHT\x200,05%,\x20971мл','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/40/14/4314014.jpg','application/json','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/55/57/1225557.jpg','favorite','\x22>⋮\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
        \x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Заменить\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Удалить\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
      \x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','товар','день','Пастила\x20Зеленика\x20финиковая,\x205шт,\x2060г','loading-border','excess','Салатный\x20микс\x20Браво\x20Белая\x20Дача\x20Шпинат,\x20мангольд,\x20рукола,\x2050г','src','maxHeight','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/44/86/4704486.jpg','ru-RU','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/22/31/3612231.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/74/50/377450.jpg','Борщ\x20быстрорастворимый\x20Кнорр\x20Чашка\x20Супа\x20с\x20сухариками,\x2014,8г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/74/39/287439.jpg','ids','reject','.png\x22\x20alt=\x22ребёнок\x22\x20/>','Какао-напиток\x20растворимый\x20Шокомишка,\x2020*14г','.col-left','Овощи\x20для\x20готовки','Псиллиум\x20Look\x20Green,\x20120г','Маршмеллоу\x20Мини\x20Guandy\x20белый\x20ванильный,\x2075г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/99/73/1389973.jpg','button','getBoundingClientRect','Картофель\x20отварной\x20уп,\x20500-650г','человек','5674456zuoMaW','Овощи','Выбрана\x201\x20категория','empty-cart-loader','Морковь\x20отварная\x20кубик\x20уп,\x20450-550г','push','Лук\x20красный,\x20кольца\x20уп,\x20400-600г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/66/96/546696.jpg','/api/promo/get_initial_data','752582AMfIQn','target','offsetHeight','bg-green-light','Весенние\x20овощи,\x201кг','finally','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/86/07/488607.jpg','Гречка\x20Preston\x20с\x20мясом,\x2040г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/46/03/384603.jpg','cart-footer','total_price','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/57/65/4435765.jpg','/api/guest/refresh_cookie','Мороженое\x20сливочное\x20Петрохолод\x20Ленинградское\x20Ванильное\x20в\x20шоколадной\x20глазури,\x2080г','Продукт\x20йогуртный\x20Нежный\x20с\x20соком\x20клубники\x201,2%,\x20100г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/42/39/3474239.jpg','дня','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/36/97/403697.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/63/61/4106361.jpg','data','Птица\x20в\x20лотках','slice','Треска\x20тихоокеанская\x20мороженая\x20Глобус\x20филе-кусок\x20с\x20кожей,\x20500г','Свёкла\x20отварная\x20уп,\x20500-600г','Какао+\x20Экологика\x20стевия\x20+\x20пребиотик,\x20125г','pcs','Перец\x20красный\x20Мастер\x20Дак\x20молотый,\x2010г','','Сладости','Макаронные\x20изделия\x20Ваш\x20выбор\x20Рожки,\x20400г','Микрозелень\x20подсолнечника\x20MaxiFermer,\x2050г','Мороженое\x20сливочное\x20На\x20сливочках\x20Ежевика-Малина,\x2085г','Конфеты\x20вафельные\x20\x20Обыкновенное\x20чудо\x20сливочное,\x2055г','map','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/02/47/4160247.jpg','#personModal\x20.tags-wrap\x20.tag','initial_groups','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/27/15/412715.jpg','addMemberBtn','Сливки','Салат\x20Белая\x20Дача\x20Botanicum\x20мини\x20руккола,\x20айсберг,\x20романо,\x2075г','','clear','users','hidden','family-list','innerHTML','Специальное\x20питание','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/86/03/1578603.jpg','inactive','Цикорий\x20растворимый\x20Elite\x20без\x20кофеина,\x2075г','Морковь','Смесь\x20Волшебное\x20дерево\x20спагетти\x20болоньезе,\x2030г','Смесь\x20для\x20пудинга\x20Haas\x20Шоколадный,\x2040г','Дрожжи\x20хлебопекарные\x20Ваш\x20выбор\x20сухие,\x2012г','prefs-accordion','currency','Отруби\x20овсяные\x20Мистраль\x20Энергия\x20и\x20бодрость,\x2030г','hide','setItem','Яйца','categories','#personModal\x20.pref-input','Огурцы\x20свежие\x20с\x20укропом,\x20вес','cookie-accept','collapsed','категория','Щавель\x20Богослово\x20Арго\x20свежий,\x20100г','Пётр','\x22\x20alt=\x22\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','modalProductAnotherBtn','cartPolicy','Фарш\x20из\x20минтая\x20охлаждённый,\x20вес','cookie-popup','createHTML','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/90/39/3389039.jpg','\x20₽\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','modalProductImage','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/82/35/318235.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/25/46/3432546.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/27/72/3422772.jpg','family-desc','Йогурт\x20Простоквашино\x20с\x20клубникой\x202,9%,\x20110г','payload','\x20×\x20','need_refresh','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/09/82/4400982.jpg','Напитки','Огурцы\x20солёные\x20Традиции\x20вкуса,\x20300г','Мороженое\x20сливочное\x20Ла-ла-бу-бу\x20стакан\x20вафельный\x20шоко-бабл\x20с\x20шариками,\x2070г','toggle','flat','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/98/29/4979829.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/15/37/3801537.jpg','категории','Тунец\x20полосатый\x20натуральный\x20Морской\x20котик\x20стерилизованный\x20филе,\x20170г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/78/05/4887805.jpg','remaining-count','category-btn\x20','modalTitle','Крем-суп\x20протеиновый\x20Bionova\x20Сырный,\x2020г','Кисломолочное','','Капуста','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/46/13/384613.jpg','active','Капуста\x20белокочанная\x20резаная\x20уп,\x20400-800г','Лук\x20зелёный\x20Глобус,\x20100г','.days-options\x20.day-btn','Икра\x20трески\x20Беринг\x20подкопченная,\x20125г','Иван','.show-more','Макаронные\x20изделия\x20Ваш\x20выбор\x20Перья,\x20400г','trim','modalProductQuantity','Смесь\x20овощная\x20Лечо,\x201кг','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/00/15/4740015.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/67/70/4596770.jpg','/api/promo/set_option','Масло\x20для\x20готовки','complete','Лук\x20репчатый,\x20вес','Микрозелень\x20редиса\x20санго\x20MaxiFermer,\x2050г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/59/84/915984.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/65/19/4276519.jpg','days','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/40/74/274074.jpg','div','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/79/84/3967984.jpg','2265532lNDtmd','Овощи\x20для\x20жарки,\x201кг','Тыква\x20уп,\x200,4-1кг','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/62/32/3786232.jpg','textContent','location','7406469xiXvnl','reload','Килька\x20пряного\x20посола,\x20вес','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/05/48/300548.jpg','min','inputWeight','Засоленные','image','.menu-remove','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/54/92/4385492.jpg','Крупа\x20из\x20полбы\x20Чёрный\x20хлеб\x20дроблёная,\x20500г','Молоко\x20из\x20Вологды\x20с\x20витаминами\x20и\x20йодом\x20для\x20хороших\x20оценок\x203,2%,\x20200мл','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/92/03/2489203.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/22/80/4842280.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/19/38/4461938.jpg','Жевательная\x20резинка','65,fit','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/96/65/689665.jpg','apply','{SIZE}','weight','Морепродукты','total-price','Сыр\x20\x20Зеленый\x20в\x20порошке\x20с\x20пажитником\x201,4%,\x2050г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/46/06/644606.jpg','getElementById','Хлебцы\x20хрустящие\x20Ого!\x20Столовые,\x2075г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/23/26/4852326.jpg','index','reduce','leading','children','indexOf','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/54/88/4385488.jpg','.accordion-item','name','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/64/80/226480.jpg','round','toLowerCase','open','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/50/63/4895063.jpg','.summary-days','.reorder-btn','type','toggle-categories-btn','Салат','include','Паста\x20соевая\x20Miso\x20тёмная,\x201кг','.menu-dropdown.active','scroll-wrapper','waiting','addEventListener','removeEventListener','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/71/57/407157.jpg','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/27/07/4752707.jpg','Ветчина\x20Мясной\x20Дом\x20Бородина\x20в\x20синюге\x20уп,\x200,9-1,1кг','preferences-icon','Пожалуйста,\x20введите\x20имя.','Яйца\x20куриные\x20столовые\x20Синявинское\x20С0\x20белое,\x2030г','Зелень','format','Салака\x20мороженая,\x20вес','girl','500px','Салат\x20Белая\x20Дача\x20Пряная\x20рукола,\x2050г','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/09/59/380959.jpg','unit','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/82/33/3168233.jpg','Свёкла\x20отварная\x20соломка,\x20вес','Масло\x20сливочное\x20Лебедяньмолоко\x20Крестьянское\x2072,5%,\x20180г','1401200hUdRuY','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/28/08/422808.jpg','send','Хамса\x20пряного\x20посола,\x20вес','overflowY','replace','personModal','Грибное\x20ассорти\x20в\x20маринаде\x20Lutik,\x20530г','335,fit','Батончик\x20фруктовый\x20Pikki\x20Чернослив,\x2025г','closest','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/34/03/713403.jpg','another','Набор\x20для\x20тушения\x20из\x20цыплят-бройлеров\x20Верхневолжская\x20птицефабрика\x20уп,\x200,8-1,1кг','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Печенье\x20\x20StMichel\x20сливочное\x20с\x20шоколадом,\x20132г','\x20С\x20запасами\x20на\x20','Подсластители','appendChild','\x20лет\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','https://hvatilo.ru/static/retail/ru/image.globus/{SIZE}/mobile/64/31/846431.jpg','.tag-close','Мята\x20перечная\x20сушёная\x20Приправыч,\x206г','.tag'];_0x4743=function(){return _0x27f816;};return _0x4743();}function updateSummaryCount(){const _0x412ac7=_0x4fba01,_0xd6ebe9=new Intl[(_0x412ac7(0x181))](_0x412ac7(0x307),{'style':'currency','currency':'RUB'})[_0x412ac7(0x201)](Math[_0x412ac7(0x1ea)](allProducts[_0x412ac7(0x1e2)]((_0xc3b3fd,_0x2db0be)=>_0xc3b3fd+_0x2db0be['total_price'],0x0)*0x64)/0x64),_0x4eeab0=Math['round'](initialData_g[_0x412ac7(0x1bb)]*initialData_g[_0x412ac7(0x302)]+initialData_g[_0x412ac7(0x1bb)]);allProducts[_0x412ac7(0x271)]===0x0?(document[_0x412ac7(0x1de)]('summary-details')[_0x412ac7(0x157)]=cartPolicy[_0x412ac7(0x173)](''),document[_0x412ac7(0x1de)]('empty-cart-loader')['classList'][_0x412ac7(0x2c2)](_0x412ac7(0x155))):(document[_0x412ac7(0x1de)](_0x412ac7(0x31c))['classList'][_0x412ac7(0x2b5)](_0x412ac7(0x155)),document[_0x412ac7(0x1de)]('summary-details')[_0x412ac7(0x157)]=cartPolicy['createHTML'](''+allProducts[_0x412ac7(0x271)]+'\x20'+declension(allProducts[_0x412ac7(0x271)],[_0x412ac7(0x2fe),_0x412ac7(0x270),_0x412ac7(0x296)])+_0x412ac7(0x225)+_0xd6ebe9+_0x412ac7(0x21b)+_0x4eeab0+'\x20'+declension(_0x4eeab0,[_0x412ac7(0x2ff),_0x412ac7(0x332),_0x412ac7(0x29b)])+''),document[_0x412ac7(0x1de)](_0x412ac7(0x1db))[_0x412ac7(0x157)]=cartPolicy['createHTML'](''+_0xd6ebe9));}function calculateListHeight(){const _0x463b1c=_0x4fba01,_0x3013de=document[_0x463b1c(0x25c)](_0x463b1c(0x310));if(!_0x3013de)return;const _0x5e55a8=_0x3013de[_0x463b1c(0x25c)]('h1'),_0x3497db=_0x3013de[_0x463b1c(0x25c)]('.subtitle'),_0x27dd68=_0x3013de[_0x463b1c(0x25c)](_0x463b1c(0x17f)),_0x2e4d8b=_0x3013de[_0x463b1c(0x25c)](_0x463b1c(0x29d)),_0xe5bbb3=_0x3013de[_0x463b1c(0x25c)](_0x463b1c(0x1ad));let _0x55f0f8=0x0;if(_0x5e55a8)_0x55f0f8+=_0x5e55a8[_0x463b1c(0x324)]+0x6;if(_0x3497db)_0x55f0f8+=_0x3497db[_0x463b1c(0x324)]+0x1c;if(_0x27dd68)_0x55f0f8+=_0x27dd68[_0x463b1c(0x324)]+0x18;if(_0xe5bbb3&&!_0xe5bbb3[_0x463b1c(0x27a)][_0x463b1c(0x2b3)](_0x463b1c(0x155)))_0x55f0f8+=_0xe5bbb3['offsetHeight'];if(_0x2e4d8b)_0x55f0f8+=_0x2e4d8b[_0x463b1c(0x324)]+0x14;const _0x3d018e=0x3c,_0x5c8be5=_0x3013de[_0x463b1c(0x316)](),_0x25f08f=window['innerHeight']-_0x5c8be5[_0x463b1c(0x238)]-_0x3d018e-0x14,_0x246525=_0x25f08f-_0x55f0f8;_0x246525>0x64&&(scrollWrapper[_0x463b1c(0x176)][_0x463b1c(0x305)]=_0x246525+'px',scrollWrapper[_0x463b1c(0x176)][_0x463b1c(0x20f)]=_0x463b1c(0x240));}function declension(_0x4edcc6,_0x40c4ab){const _0x218e86=_0x4fba01,_0x6fc0fc=[0x2,0x0,0x1,0x1,0x1,0x2],_0x59f809=_0x4edcc6%0x64>0x4&&_0x4edcc6%0x64<0x14?0x2:_0x6fc0fc[Math[_0x218e86(0x1c9)](_0x4edcc6%0xa,0x5)];return _0x40c4ab[_0x59f809];}function wholeRender(_0x12a508){const _0x6b6248=_0x4fba01;initialData_g=_0x12a508,document[_0x6b6248(0x25c)](_0x6b6248(0x1ee))['textContent']=initialData_g[_0x6b6248(0x1bb)]+'\x20'+declension(initialData_g[_0x6b6248(0x1bb)],[_0x6b6248(0x2ff),_0x6b6248(0x332),'дней']),allProducts=(Array['isArray'](initialData_g[_0x6b6248(0x2d2)])?initialData_g[_0x6b6248(0x2d2)]:[]??[])[_0x6b6248(0x199)]()[_0x6b6248(0x14a)](_0x1f74f2=>{const _0x22a04a=_0x6b6248;return{..._0x1f74f2,'image':_0x1f74f2[_0x22a04a(0x1cc)]?.['replace'](_0x22a04a(0x1d8),_0x22a04a(0x1d5))};}),visibleProducts=allProducts[_0x6b6248(0x337)](0x0,visibleProducts?visibleProducts['length']:0x5),document[_0x6b6248(0x21f)](_0x6b6248(0x1aa))[_0x6b6248(0x2d7)](_0x52fa77=>{const _0x2538bb=_0x6b6248;_0x52fa77[_0x2538bb(0x2e3)][_0x2538bb(0x1af)]()===''+initialData_g[_0x2538bb(0x1bb)]&&_0x52fa77[_0x2538bb(0x27a)][_0x2538bb(0x2b5)](_0x2538bb(0x1a7));}),console[_0x6b6248(0x233)](initialData_g);let _0x192f54=initialData_g['users'];cartList=document[_0x6b6248(0x1de)](_0x6b6248(0x2f1)),scrollWrapper=document[_0x6b6248(0x1de)](_0x6b6248(0x1f6)),showMoreBtn=document[_0x6b6248(0x1de)](_0x6b6248(0x2c3)),remainingSpan=document[_0x6b6248(0x1de)](_0x6b6248(0x19f)),renderProducts(),document[_0x6b6248(0x1f8)](_0x6b6248(0x269),function(_0x4ab7ca){const _0x2caf25=_0x6b6248,_0x26045c=_0x4ab7ca[_0x2caf25(0x323)]['closest'](_0x2caf25(0x17a)),_0x44d282=_0x4ab7ca[_0x2caf25(0x323)][_0x2caf25(0x215)](_0x2caf25(0x29f)),_0x4c3cf0=_0x4ab7ca[_0x2caf25(0x323)][_0x2caf25(0x215)]('.menu-replace'),_0x445fae=_0x4ab7ca['target'][_0x2caf25(0x215)](_0x2caf25(0x1cd)),_0x3c9d69=_0x4ab7ca['target']['closest'](_0x2caf25(0x1ef)),_0x2c9a7d=_0x4ab7ca[_0x2caf25(0x323)][_0x2caf25(0x215)]('.product-modal-overlay');if(_0x26045c){const _0x3babde=_0x26045c['nextElementSibling'],_0x1f8d60=_0x3babde[_0x2caf25(0x27a)]['contains'](_0x2caf25(0x1a7));document[_0x2caf25(0x21f)]('.menu-dropdown.active')[_0x2caf25(0x2d7)](_0x122a8c=>_0x122a8c[_0x2caf25(0x27a)]['remove'](_0x2caf25(0x1a7))),!_0x1f8d60&&_0x3babde[_0x2caf25(0x27a)][_0x2caf25(0x2b5)](_0x2caf25(0x1a7)),_0x4ab7ca[_0x2caf25(0x27f)]();}else!_0x44d282&&document[_0x2caf25(0x21f)](_0x2caf25(0x1f5))[_0x2caf25(0x2d7)](_0x3224a5=>_0x3224a5[_0x2caf25(0x27a)][_0x2caf25(0x2c2)](_0x2caf25(0x1a7)));if(_0x4c3cf0){const _0x130742=_0x4c3cf0[_0x2caf25(0x215)](_0x2caf25(0x2bc)),_0x5b0139=_0x130742['closest']('.cart-item');_0x5b0139['classList']['add'](_0x2caf25(0x2c8));const _0x51a025=Array['from'](cartList[_0x2caf25(0x1e4)])[_0x2caf25(0x1e5)](_0x5b0139);replaceProduct(allProducts[_0x51a025][_0x2caf25(0x1e8)])[_0x2caf25(0x277)](()=>{const _0x5a1772=_0x2caf25;_0x5b0139[_0x5a1772(0x2c2)](),document[_0x5a1772(0x21f)](_0x5a1772(0x1f5))[_0x5a1772(0x2d7)](_0x3208dd=>_0x3208dd[_0x5a1772(0x27a)][_0x5a1772(0x2c2)](_0x5a1772(0x1a7))),visibleProducts[_0x5a1772(0x2b2)](_0x51a025,0x1),allProducts[_0x5a1772(0x2b2)](_0x51a025,0x1),visibleProducts[_0x5a1772(0x271)]{const _0xa73413=_0x2caf25;_0x47a92f['remove'](),document[_0xa73413(0x21f)](_0xa73413(0x1f5))[_0xa73413(0x2d7)](_0x7d2db7=>_0x7d2db7[_0xa73413(0x27a)][_0xa73413(0x2c2)]('active')),visibleProducts[_0xa73413(0x2b2)](_0x572c30,0x1),allProducts[_0xa73413(0x2b2)](_0x572c30,0x1),visibleProducts[_0xa73413(0x271)]{const _0x3e66e8=_0x2caf25;document[_0x3e66e8(0x1c4)][_0x3e66e8(0x1c6)]();}),_0x2c9a7d&&document['getElementById'](_0x2caf25(0x22c))[_0x2caf25(0x27a)][_0x2caf25(0x2c2)](_0x2caf25(0x28f));}),showMoreBtn[_0x6b6248(0x1f8)](_0x6b6248(0x269),()=>{const _0x39b138=_0x6b6248;while(visibleProducts[_0x39b138(0x271)]{_0x1a5544['addEventListener']('click',function(){const _0x2d1d84=_0x12da,_0x208b5c=this[_0x2d1d84(0x215)]('.accordion-item'),_0x3c9396=_0x208b5c['classList'][_0x2d1d84(0x2b3)](_0x2d1d84(0x1ec));document[_0x2d1d84(0x21f)](_0x2d1d84(0x1e7))[_0x2d1d84(0x2d7)](_0x4954ac=>_0x4954ac[_0x2d1d84(0x27a)][_0x2d1d84(0x2c2)](_0x2d1d84(0x1ec))),!_0x3c9396&&_0x208b5c[_0x2d1d84(0x27a)]['add']('open');});}),document[_0x6b6248(0x21f)](_0x6b6248(0x2f6))['forEach'](_0x40df20=>{const _0x7b3832=_0x6b6248;_0x40df20[_0x7b3832(0x1f8)](_0x7b3832(0x269),function(){const _0x1ff659=_0x7b3832,_0x375e2d=this[_0x1ff659(0x215)]('.days-options');_0x375e2d[_0x1ff659(0x21f)](_0x1ff659(0x2f6))[_0x1ff659(0x2d7)](_0x4650ac=>_0x4650ac[_0x1ff659(0x27a)][_0x1ff659(0x2c2)](_0x1ff659(0x1a7))),this[_0x1ff659(0x27a)]['add'](_0x1ff659(0x1a7)),setOption('days',this[_0x1ff659(0x2b7)][_0x1ff659(0x1bb)]),document[_0x1ff659(0x25c)]('.summary-days')[_0x1ff659(0x1c3)]=this[_0x1ff659(0x2b7)][_0x1ff659(0x1bb)]+'\x20'+declension(this[_0x1ff659(0x2b7)][_0x1ff659(0x1bb)],[_0x1ff659(0x2ff),'дня',_0x1ff659(0x29b)]);});});const _0x4bc99a=document[_0x6b6248(0x1de)](_0x6b6248(0x156)),_0x3e2d2f=document['getElementById'](_0x6b6248(0x18f));let _0x241dd4=null;function _0x155001(){const _0x2ba34e=_0x6b6248;_0x4bc99a['innerHTML']=cartPolicy[_0x2ba34e(0x173)](''),_0x192f54[_0x2ba34e(0x2d7)]((_0x4577dd,_0x29ab9f)=>{const _0x4cb463=_0x2ba34e;let _0x278e83;_0x4577dd['age']<0x10?_0x278e83=_0x4cb463(0x27e)+(_0x4577dd[_0x4cb463(0x295)]==='f'?_0x4cb463(0x203):'boy')+_0x4cb463(0x30e):_0x278e83=_0x4577dd[_0x4cb463(0x295)]==='f'?_0x4cb463(0x1a4):_0x4cb463(0x33d);const _0x343699=document[_0x4cb463(0x2e5)]('div');_0x343699['className']=_0x4cb463(0x2e9),_0x343699['dataset']['index']=_0x29ab9f,_0x343699['innerHTML']=cartPolicy['createHTML']('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x278e83+_0x4cb463(0x287)+_0x4577dd[_0x4cb463(0x1e8)]+_0x4cb463(0x219)+_0x4577dd[_0x4cb463(0x2a5)]+_0x4cb463(0x21e)+_0x29ab9f+_0x4cb463(0x24b)),_0x4bc99a[_0x4cb463(0x21d)](_0x343699);});const _0x1745ab=_0x192f54['length'];_0x3e2d2f['textContent']=_0x1745ab+'\x20'+declension(_0x1745ab,[_0x2ba34e(0x318),_0x2ba34e(0x2db),_0x2ba34e(0x318)]);if(_0x1745ab===0x0)_0x3e2d2f['textContent']=_0x2ba34e(0x2f5);document[_0x2ba34e(0x21f)](_0x2ba34e(0x223))[_0x2ba34e(0x2d7)](_0x345fbb=>{const _0x39f20e=_0x2ba34e;_0x345fbb[_0x39f20e(0x1f8)](_0x39f20e(0x269),function(_0x367535){const _0x339f19=_0x39f20e;_0x367535[_0x339f19(0x27f)]();const _0x15f6dc=parseInt(this[_0x339f19(0x2b7)]['index']);_0x192f54['splice'](_0x15f6dc,0x1),_0x155001(),setOption('users',_0x192f54);});});}_0x155001(),_0x4bc99a['addEventListener']('click',function(_0x430f21){const _0x19cc0a=_0x6b6248,_0xde9a51=_0x430f21[_0x19cc0a(0x323)][_0x19cc0a(0x215)]('.family-member');if(!_0xde9a51)return;if(_0x430f21[_0x19cc0a(0x323)][_0x19cc0a(0x215)](_0x19cc0a(0x223)))return;const _0x3caef6=parseInt(_0xde9a51[_0x19cc0a(0x2b7)][_0x19cc0a(0x1e1)]);_0x5af02b(_0x3caef6);});const _0x21fda0=document['getElementById'](_0x6b6248(0x211)),_0x10e0e5=document[_0x6b6248(0x1de)](_0x6b6248(0x14f)),_0x386962=document[_0x6b6248(0x1de)](_0x6b6248(0x17d)),_0x1c0054=document[_0x6b6248(0x1de)]('savePersonBtn'),_0x493da3=document[_0x6b6248(0x1de)](_0x6b6248(0x1a1)),_0x126665=document['querySelectorAll']('.gender-btn'),_0x545bc6=initialData_g[_0x6b6248(0x2ed)];function _0x5af02b(_0x3d09e2=null){const _0x3d351d=_0x6b6248;_0x241dd4=_0x3d09e2,document[_0x3d351d(0x21f)](_0x3d351d(0x2a1))[_0x3d351d(0x2d7)](_0x2a5cba=>_0x2a5cba[_0x3d351d(0x157)]=cartPolicy[_0x3d351d(0x173)](''));if(_0x241dd4!==null){_0x493da3[_0x3d351d(0x1c3)]=_0x3d351d(0x2dc);const _0x4833ed=_0x192f54[_0x241dd4];document[_0x3d351d(0x1de)]('inputName')[_0x3d351d(0x263)]=_0x4833ed[_0x3d351d(0x1e8)],document[_0x3d351d(0x1de)]('inputAge')[_0x3d351d(0x263)]=_0x4833ed[_0x3d351d(0x2a5)],document['getElementById']('inputWeight')['value']=_0x4833ed[_0x3d351d(0x1d9)],document[_0x3d351d(0x1de)](_0x3d351d(0x256))[_0x3d351d(0x263)]=_0x4833ed['height'],_0x126665['forEach'](_0x3347be=>{const _0x1a394a=_0x3d351d;_0x3347be['classList'][_0x1a394a(0x198)](_0x1a394a(0x1a7),_0x3347be[_0x1a394a(0x2b7)][_0x1a394a(0x295)]===_0x4833ed[_0x1a394a(0x295)]);});if(_0x4833ed[_0x3d351d(0x234)])_0x4833ed[_0x3d351d(0x234)][_0x3d351d(0x2d7)](_0x21167f=>_0x4b1d62(_0x21167f,_0x3d351d(0x234),![]));if(_0x4833ed[_0x3d351d(0x2fc)])_0x4833ed['favorite'][_0x3d351d(0x2d7)](_0x3324e6=>_0x4b1d62(_0x3324e6,_0x3d351d(0x2fc),![]));}else _0x493da3[_0x3d351d(0x1c3)]='Добавить\x20человека',document[_0x3d351d(0x1de)](_0x3d351d(0x2f0))[_0x3d351d(0x263)]='',document['getElementById'](_0x3d351d(0x28a))[_0x3d351d(0x263)]='',document[_0x3d351d(0x1de)](_0x3d351d(0x1ca))[_0x3d351d(0x263)]='',document[_0x3d351d(0x1de)](_0x3d351d(0x256))['value']='',_0x126665['forEach'](_0x4963cc=>_0x4963cc[_0x3d351d(0x27a)][_0x3d351d(0x2c2)](_0x3d351d(0x1a7))),document[_0x3d351d(0x25c)]('.gender-btn[data-gender=\x22m\x22]')[_0x3d351d(0x27a)]['add'](_0x3d351d(0x1a7));_0x21fda0[_0x3d351d(0x176)][_0x3d351d(0x2d1)]='flex',calculateListHeight();}_0x10e0e5['addEventListener']('click',()=>_0x5af02b(null));function _0x163518(){const _0x5d1ec5=_0x6b6248;_0x21fda0['style']['display']=_0x5d1ec5(0x288);}_0x386962[_0x6b6248(0x1f8)](_0x6b6248(0x269),_0x163518),_0x21fda0[_0x6b6248(0x1f8)](_0x6b6248(0x269),function(_0x519bda){const _0xb54f7=_0x6b6248;if(_0x519bda[_0xb54f7(0x323)]===this)_0x163518();}),_0x126665['forEach'](_0x4a4aec=>{const _0xd207a5=_0x6b6248;_0x4a4aec[_0xd207a5(0x1f8)](_0xd207a5(0x269),function(){const _0x8a52bf=_0xd207a5;_0x126665['forEach'](_0x5875e5=>_0x5875e5['classList'][_0x8a52bf(0x2c2)](_0x8a52bf(0x1a7))),this['classList']['add'](_0x8a52bf(0x1a7));});});function _0x4b1d62(_0x356a2b,_0x141c7b,_0x130a3f=!![]){const _0x5877e3=_0x6b6248,_0x5308c0=document[_0x5877e3(0x25c)](_0x5877e3(0x279)+_0x141c7b+'\x22]'),_0x2b8c68=_0x5308c0[_0x5877e3(0x21f)](_0x5877e3(0x229));for(let _0x3ab05b of _0x2b8c68){if(_0x3ab05b['textContent'][_0x5877e3(0x1af)]()[_0x5877e3(0x210)]('×','')['trim']()===_0x356a2b)return;}const _0x2f0a10=_0x141c7b===_0x5877e3(0x234)?_0x5877e3(0x2fc):_0x5877e3(0x234),_0x2bd378=document[_0x5877e3(0x25c)](_0x5877e3(0x279)+_0x2f0a10+'\x22]'),_0x3f305f=_0x2bd378[_0x5877e3(0x21f)](_0x5877e3(0x229));for(let _0x2e0a30 of _0x3f305f){if(_0x2e0a30[_0x5877e3(0x1c3)]['trim']()['replace']('×','')[_0x5877e3(0x1af)]()===_0x356a2b){_0x2e0a30['remove']();break;}}const _0x413f7=document[_0x5877e3(0x2e5)](_0x5877e3(0x1bd));_0x413f7[_0x5877e3(0x266)]='tag\x20'+(_0x141c7b===_0x5877e3(0x234)?'tag-red':_0x5877e3(0x2f2)),_0x413f7[_0x5877e3(0x157)]=cartPolicy[_0x5877e3(0x173)](_0x356a2b+'\x20×'),_0x413f7[_0x5877e3(0x25c)](_0x5877e3(0x227))[_0x5877e3(0x1f8)](_0x5877e3(0x269),function(){const _0x3c5997=_0x5877e3;_0x413f7[_0x3c5997(0x2c2)]();}),_0x5308c0[_0x5877e3(0x21d)](_0x413f7);}document[_0x6b6248(0x21f)](_0x6b6248(0x167))[_0x6b6248(0x2d7)](_0x1053fb=>{const _0x48c881=_0x6b6248,_0x59226c=_0x1053fb[_0x48c881(0x2b7)][_0x48c881(0x1f0)],_0x1c1fcb=document['querySelector']('#personModal\x20.autocomplete-list[data-type=\x22'+_0x59226c+'\x22]'),_0x376213=document['querySelector'](_0x48c881(0x279)+_0x59226c+'\x22]');_0x1053fb[_0x48c881(0x1f8)](_0x48c881(0x2c7),function(){const _0x335bf5=_0x48c881,_0x37bc3e=this[_0x335bf5(0x263)][_0x335bf5(0x1eb)]();_0x1c1fcb[_0x335bf5(0x157)]=cartPolicy[_0x335bf5(0x173)]('');const _0x541eaf=new Set();document[_0x335bf5(0x21f)](_0x335bf5(0x14c))[_0x335bf5(0x2d7)](_0x1ff64f=>{const _0x10f3f5=_0x335bf5,_0x541747=_0x1ff64f[_0x10f3f5(0x1c3)]['trim']()[_0x10f3f5(0x210)]('×','')[_0x10f3f5(0x1af)]();if(_0x541747)_0x541eaf['add'](_0x541747);});if(_0x37bc3e[_0x335bf5(0x271)]>0x0){const _0xe7d596=_0x545bc6['filter'](_0x5173b1=>_0x5173b1[_0x335bf5(0x1eb)]()[_0x335bf5(0x235)](_0x37bc3e)&&!_0x541eaf[_0x335bf5(0x2d8)](_0x5173b1));_0xe7d596[_0x335bf5(0x271)]>0x0?(_0x1c1fcb[_0x335bf5(0x27a)][_0x335bf5(0x2b5)]('active'),_0xe7d596[_0x335bf5(0x2d7)](_0x2a9db7=>{const _0x2d30e4=_0x335bf5,_0x217315=document[_0x2d30e4(0x2e5)](_0x2d30e4(0x1bd));_0x217315[_0x2d30e4(0x1c3)]=_0x2a9db7,_0x217315[_0x2d30e4(0x1f8)]('click',function(){const _0x314c68=_0x2d30e4;_0x4b1d62(_0x2a9db7,_0x59226c),_0x1053fb[_0x314c68(0x263)]='',_0x1c1fcb[_0x314c68(0x27a)]['remove']('active');}),_0x1c1fcb[_0x2d30e4(0x21d)](_0x217315);})):_0x1c1fcb[_0x335bf5(0x27a)][_0x335bf5(0x2c2)]('active');}else _0x1c1fcb['classList'][_0x335bf5(0x2c2)](_0x335bf5(0x1a7));}),document['addEventListener'](_0x48c881(0x269),function(_0xb189b2){const _0x3ef961=_0x48c881;!_0x1053fb[_0x3ef961(0x2b3)](_0xb189b2['target'])&&!_0x1c1fcb['contains'](_0xb189b2[_0x3ef961(0x323)])&&_0x1c1fcb['classList'][_0x3ef961(0x2c2)](_0x3ef961(0x1a7));});}),_0x1c0054[_0x6b6248(0x1f8)]('click',()=>{const _0x5f9523=_0x6b6248,_0x41efbd=document[_0x5f9523(0x1de)](_0x5f9523(0x2f0))['value'][_0x5f9523(0x1af)](),_0xb297a1=document['getElementById'](_0x5f9523(0x28a))[_0x5f9523(0x263)][_0x5f9523(0x1af)](),_0x402621=document[_0x5f9523(0x1de)](_0x5f9523(0x1ca))['value'][_0x5f9523(0x1af)](),_0x555d1f=document[_0x5f9523(0x1de)](_0x5f9523(0x256))['value'][_0x5f9523(0x1af)](),_0x1f3a39=document[_0x5f9523(0x25c)]('.gender-btn.active')[_0x5f9523(0x2b7)][_0x5f9523(0x295)];if(!_0x41efbd){alert(_0x5f9523(0x1fe));return;}if(!_0xb297a1||parseInt(_0xb297a1)<0x7){alert('Возраст\x20должен\x20быть\x20от\x207\x20лет.');return;}const _0x309fb9=[];document[_0x5f9523(0x25c)](_0x5f9523(0x289))[_0x5f9523(0x21f)](_0x5f9523(0x229))['forEach'](_0x133ac1=>{const _0x255b16=_0x5f9523;_0x309fb9[_0x255b16(0x31e)](_0x133ac1[_0x255b16(0x1c3)]['trim']()['replace']('×','')[_0x255b16(0x1af)]());});const _0x4c4594=[];document[_0x5f9523(0x25c)](_0x5f9523(0x245))[_0x5f9523(0x21f)](_0x5f9523(0x229))[_0x5f9523(0x2d7)](_0x51c56b=>{const _0xdfd620=_0x5f9523;_0x4c4594[_0xdfd620(0x31e)](_0x51c56b[_0xdfd620(0x1c3)][_0xdfd620(0x1af)]()[_0xdfd620(0x210)]('×','')['trim']());});const _0x14573d={'name':_0x41efbd,'age':_0xb297a1,'weight':_0x402621,'height':_0x555d1f,'gender':_0x1f3a39,'avoid':_0x309fb9,'favorite':_0x4c4594};_0x241dd4!==null?(_0x192f54[_0x241dd4]=_0x14573d,_0x241dd4=null):_0x192f54[_0x5f9523(0x31e)](_0x14573d),_0x155001(),setOption(_0x5f9523(0x154),_0x192f54),_0x163518();});const _0x3daa47=initialData_g['available_groups'],_0x530b08=initialData_g[_0x6b6248(0x14d)];let _0xf5d83b=[..._0x530b08],_0x2d2014=![];const _0x2565ba=0x7,_0xc7c477=debounceBatch(_0x53b3af=>{const _0xd5f84b=_0x6b6248;let _0x31f4ee=[..._0xf5d83b];return _0x53b3af[_0xd5f84b(0x2d7)](_0x393441=>{const _0x4509af=_0xd5f84b;_0x31f4ee[_0x4509af(0x235)](_0x393441)?_0x31f4ee[_0x4509af(0x2b2)](_0x31f4ee['indexOf'](_0x393441),0x1):_0x31f4ee['push'](_0x393441);}),console[_0xd5f84b(0x233)](_0xd5f84b(0x20d),_0x31f4ee),setOption(_0xd5f84b(0x166),_0x31f4ee);},0x5dc),_0x5293c5=document[_0x6b6248(0x1de)](_0x6b6248(0x22f)),_0x4685aa=document[_0x6b6248(0x1de)](_0x6b6248(0x160)),_0xe4bcf4=document['getElementById'](_0x6b6248(0x178));function _0x5cfad1(){const _0x5ea18d=_0x6b6248;_0x5293c5[_0x5ea18d(0x157)]=cartPolicy[_0x5ea18d(0x173)]('');_0x545bc6['length']>0x0?_0x4685aa[_0x5ea18d(0x27a)][_0x5ea18d(0x2b5)]('visible'):_0x4685aa[_0x5ea18d(0x27a)][_0x5ea18d(0x2c2)]('visible');_0xf5d83b[_0x5ea18d(0x271)]>0x0?(document[_0x5ea18d(0x1de)](_0x5ea18d(0x1fd))[_0x5ea18d(0x27a)][_0x5ea18d(0x2b5)](_0x5ea18d(0x325)),document[_0x5ea18d(0x1de)](_0x5ea18d(0x1fd))[_0x5ea18d(0x27a)][_0x5ea18d(0x2c2)](_0x5ea18d(0x244)),_0xf5d83b[_0x5ea18d(0x271)]===0x1?_0xe4bcf4[_0x5ea18d(0x2e3)]=_0x5ea18d(0x31b):_0xe4bcf4['innerText']='Выбраны\x20'+_0xf5d83b[_0x5ea18d(0x271)]+'\x20'+declension(_0xf5d83b['length'],[_0x5ea18d(0x16b),_0x5ea18d(0x19c),_0x5ea18d(0x17e)])):(document['getElementById'](_0x5ea18d(0x1fd))[_0x5ea18d(0x27a)]['add'](_0x5ea18d(0x244)),document[_0x5ea18d(0x1de)]('preferences-icon')[_0x5ea18d(0x27a)][_0x5ea18d(0x2c2)]('bg-green-light'),_0xe4bcf4[_0x5ea18d(0x2e3)]=_0x5ea18d(0x2f5));const _0x363fb0=_0x2d2014?_0x3daa47:(_0xf5d83b[_0x5ea18d(0x271)]>0x0?_0xf5d83b:_0x3daa47)['slice'](0x0,_0x2565ba);_0x363fb0[_0x5ea18d(0x2d7)](_0x36dd41=>{const _0xefb337=_0x5ea18d,_0x29ea10=document[_0xefb337(0x2e5)](_0xefb337(0x315));_0x29ea10[_0xefb337(0x266)]=_0xefb337(0x1a0)+(_0xf5d83b['includes'](_0x36dd41)?_0xefb337(0x1a7):_0xefb337(0x15a)),_0x29ea10[_0xefb337(0x157)]=cartPolicy['createHTML'](_0xefb337(0x152)+_0x36dd41+_0xefb337(0x299)+_0x36dd41+''),_0x29ea10[_0xefb337(0x2b7)]['category']=_0x36dd41,_0x29ea10['addEventListener']('click',function(){const _0x19614b=_0xefb337;if(_0x29ea10[_0x19614b(0x27a)][_0x19614b(0x2b3)]('loading-border'))return;const _0x5260e6=this[_0x19614b(0x2b7)][_0x19614b(0x232)];_0x29ea10[_0x19614b(0x27a)][_0x19614b(0x2b5)](_0x19614b(0x301)),_0xc7c477(_0x5260e6)[_0x19614b(0x327)](()=>{const _0x18abe6=_0x19614b;_0x29ea10[_0x18abe6(0x27a)][_0x18abe6(0x2c2)](_0x18abe6(0x301));});}),_0x5293c5['appendChild'](_0x29ea10);});if(_0x363fb0[_0x5ea18d(0x271)]>0x0){const _0x1a4c94=document[_0x5ea18d(0x2e5)](_0x5ea18d(0x315));_0x1a4c94[_0x5ea18d(0x266)]=_0x5ea18d(0x1f1),_0x1a4c94['id']='expand-categories',_0x1a4c94[_0x5ea18d(0x157)]=cartPolicy['createHTML']((!_0x2d2014&&_0x363fb0['length']<_0xf5d83b[_0x5ea18d(0x271)]?'+'+(_0xf5d83b['length']-_0x363fb0['length']):'')+_0x5ea18d(0x255)+_0x5ea18d(0x29c)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a'+_0x5ea18d(0x18a)),_0x2d2014?(_0x1a4c94['classList'][_0x5ea18d(0x2c2)](_0x5ea18d(0x16a)),_0x1a4c94[_0x5ea18d(0x27a)][_0x5ea18d(0x2c2)](_0x5ea18d(0x2cc))):(_0x1a4c94[_0x5ea18d(0x27a)][_0x5ea18d(0x2b5)](_0x5ea18d(0x16a)),_0x363fb0[_0x5ea18d(0x271)]<_0xf5d83b[_0x5ea18d(0x271)]&&_0x1a4c94[_0x5ea18d(0x27a)][_0x5ea18d(0x2b5)](_0x5ea18d(0x2cc))),_0x1a4c94['addEventListener']('click',function(){_0x2d2014=!_0x2d2014,_0x5cfad1();}),_0x5293c5['appendChild'](_0x1a4c94);}}_0x5cfad1();}document[_0x4fba01(0x1f8)]('DOMContentLoaded',async()=>{wholeRender(await loadInitData());}),document[_0x4fba01(0x1f8)]('DOMContentLoaded',function(){const _0x93492b=_0x4fba01,_0x16a2ab=document[_0x93492b(0x1de)](_0x93492b(0x172)),_0x229017=document['getElementById'](_0x93492b(0x169));!localStorage[_0x93492b(0x2ef)](_0x93492b(0x2a9))&&setTimeout(()=>{const _0x2df070=_0x93492b;_0x16a2ab[_0x2df070(0x27a)]['add']('show');},0x1f4),_0x229017['addEventListener'](_0x93492b(0x269),function(){const _0x22f1ba=_0x93492b;localStorage[_0x22f1ba(0x164)]('cookie_accepted','true'),_0x16a2ab[_0x22f1ba(0x27a)]['remove'](_0x22f1ba(0x28f)),_0x16a2ab[_0x22f1ba(0x27a)][_0x22f1ba(0x2b5)](_0x22f1ba(0x163)),setTimeout(()=>{const _0x6b9dac=_0x22f1ba;_0x16a2ab[_0x6b9dac(0x176)][_0x6b9dac(0x2d1)]=_0x6b9dac(0x288);},0x190);}),document[_0x93492b(0x1de)](_0x93492b(0x22c))['addEventListener'](_0x93492b(0x269),function(_0x53bc5){const _0x306707=_0x93492b;_0x53bc5[_0x306707(0x323)]===this&&this[_0x306707(0x27a)][_0x306707(0x2c2)](_0x306707(0x1a7));});});function openModal(_0x3425d3,_0x563de7,_0x24f887,_0x2370f2,_0x22b635,_0x37e2a6){const _0x3aafe1=_0x4fba01,_0x31d52e=document[_0x3aafe1(0x1de)]('modalProductOverlay'),_0x5293b4=document[_0x3aafe1(0x1de)](_0x3aafe1(0x18b)),_0x8ed20=document['getElementById']('modalProductTitle'),_0x5a360e=document[_0x3aafe1(0x1de)](_0x3aafe1(0x1b0)),_0x85087f=document[_0x3aafe1(0x1de)]('modalProductPrice'),_0x2d0276=document[_0x3aafe1(0x1de)](_0x3aafe1(0x186)),_0x1903de=document['getElementById'](_0x3aafe1(0x16f));_0x5293b4[_0x3aafe1(0x304)]=_0x3425d3||'',_0x5293b4['alt']=_0x563de7||_0x3aafe1(0x188),_0x8ed20[_0x3aafe1(0x1c3)]=_0x563de7||'Без\x20названия',_0x5a360e[_0x3aafe1(0x1c3)]=_0x24f887!==undefined?_0x24f887:'—',_0x85087f[_0x3aafe1(0x1c3)]=new Intl[(_0x3aafe1(0x181))]('ru-RU',{'style':_0x3aafe1(0x161),'currency':'RUB'})[_0x3aafe1(0x201)](Math[_0x3aafe1(0x1ea)](_0x2370f2*0x64)/0x64);_0x2d0276[_0x3aafe1(0x2f7)]&&(_0x2d0276['removeEventListener'](_0x3aafe1(0x269),_0x2d0276[_0x3aafe1(0x2f7)]),delete _0x2d0276[_0x3aafe1(0x2f7)]);_0x1903de[_0x3aafe1(0x2f7)]&&(_0x1903de[_0x3aafe1(0x1f9)](_0x3aafe1(0x269),_0x1903de[_0x3aafe1(0x2f7)]),delete _0x1903de['_listener']);const _0x539d8c=function(){const _0x2aa3ae=_0x3aafe1;if(typeof _0x22b635===_0x2aa3ae(0x275))_0x22b635();},_0x265354=function(){const _0x5a2e68=_0x3aafe1;if(typeof _0x37e2a6===_0x5a2e68(0x275))_0x37e2a6();};_0x2d0276['_listener']=_0x539d8c,_0x1903de[_0x3aafe1(0x2f7)]=_0x265354,_0x2d0276[_0x3aafe1(0x1f8)]('click',_0x539d8c),_0x1903de[_0x3aafe1(0x1f8)]('click',_0x265354),_0x31d52e[_0x3aafe1(0x27a)]['add'](_0x3aafe1(0x28f));} \ No newline at end of file diff --git a/images/background-raspberry.png b/images/background-raspberry.png new file mode 100644 index 0000000..686d85c Binary files /dev/null and b/images/background-raspberry.png differ diff --git a/images/broc-boy.png b/images/broc-boy.png new file mode 100644 index 0000000..1058c57 Binary files /dev/null and b/images/broc-boy.png differ diff --git a/images/broc-girl.png b/images/broc-girl.png new file mode 100644 index 0000000..2d01a87 Binary files /dev/null and b/images/broc-girl.png differ diff --git a/images/broc-man.png b/images/broc-man.png new file mode 100644 index 0000000..7a826d8 Binary files /dev/null and b/images/broc-man.png differ diff --git a/images/broc-woman.png b/images/broc-woman.png new file mode 100644 index 0000000..21bb0c7 Binary files /dev/null and b/images/broc-woman.png differ diff --git a/images/calendar.svg b/images/calendar.svg new file mode 100644 index 0000000..ea57d18 --- /dev/null +++ b/images/calendar.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/cookie.png b/images/cookie.png new file mode 100644 index 0000000..9836ad3 Binary files /dev/null and b/images/cookie.png differ diff --git a/images/empty-cart-loader.svg b/images/empty-cart-loader.svg new file mode 100644 index 0000000..fbdcef4 --- /dev/null +++ b/images/empty-cart-loader.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/family.svg b/images/family.svg new file mode 100644 index 0000000..c5ef582 --- /dev/null +++ b/images/family.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/images/preferences.svg b/images/preferences.svg new file mode 100644 index 0000000..e1b17c0 --- /dev/null +++ b/images/preferences.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/auto_cart.html b/src/auto_cart.html index fa06187..d997a0a 100644 --- a/src/auto_cart.html +++ b/src/auto_cart.html @@ -4,30 +4,117 @@ Автокорзина + + + + +