if(window.t_cart__isiOS=!1,/iPhone|iPad|iPod/i.test(navigator.userAgent)&&(window.t_cart__isiOS=!0),window.t_cart__iOSMajorVersion="",window.t_cart__isiOS){var version=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);null!==version&&(window.t_cart__iOSMajorVersion=parseInt(version[1],10))}function tcart__init(t,e){var r=document.querySelector(".t706"),o=document.querySelectorAll(".t706").length;if(e||(e=r&&r.getAttribute("data-yandexmap-apikey")||""),window.tcart__ymapApiKey=e,"yes"===window.tcart_initted&&o>1){var a="RU"===window.t_cart__browserLang?"Ошибка: На странице присутствуют "+o+" виджета корзины (блок ST100). Пожалуйста, удалите дубликаты. Блоки могут находиться на странице Header или Footer.":"Error: "+o+" cart widgets (block ST100) on the page. Remove a duplicate. Blocks can be on the Header or Footer page.";return document.querySelector(".t706__previewmode-infobox .t706__previewmode-infobox-error")||Array.prototype.forEach.call(document.querySelectorAll(".t706__previewmode-infobox center"),(function(t){t.insertAdjacentHTML("beforeend",'
'+a+"
")})),void(void 0===window.tcart_erroralert&&(alert(a),window.tcart_erroralert="yes",console.error("Error: Two cart widgets (block ST100) on the page. Remove a duplicate.")))}if(r){var c,n;"y"==r.getAttribute("data-cart-dontstore")&&(window.tcart_dontstore="y"),"y"==r.getAttribute("data-cart-oneproduct")&&(window.tcart_oneproduct="y");var i=r.getAttribute("data-cart-maxstoredays"),d;if(i&&(window.tcart_maxstoredays=i),"y"==r.getAttribute("data-cart-sendevent-onadd")&&(window.tcart_sendevent_onadd="y"),window.tcart_fullscreen="yes"===r.getAttribute("data-cart-fullscreen"),window.tcart_fullscreen){var s="https://static.tildacdn.com/css/tilda-cart-fullscreen-1.0.min.css",u;if(!document.querySelector('link[href^="'+s+'"]')){var l=document.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("type","text/css"),l.setAttribute("href",s),document.getElementsByTagName("head")[0].appendChild(l),document.querySelector("body").insertAdjacentElement("beforeend",l)}if("matchMedia"in window||"msMatchMedia"in window){var _,w=(window.matchMedia||window.msMatchMedia)("(max-width: 960px)");window.tcart_isMobile=w.matches,"function"==typeof w.addEventListener?w.addEventListener("change",T):w.addListener(T)}}window.tcart_initted="yes",tcart__drawBottomTotalAmount(),tcart__loadLocalObj(),tcart__reDrawCartIcon(),tcart__addEvent__links(),tcart__addEvents(),tcart__updateMinimals(),tcart__loadDiscounts(),window.addEventListener("pageshow",(function(t){t.persisted&&(tcart__loadLocalObj(),tcart__reDrawCartIcon())}),!1),setTimeout((function(){var t;tcart__addEvent__selectpayment();try{t=decodeURIComponent(document.location.hash)}catch(e){t=document.location.hash}if(t&&-1!==t.indexOf("#order:")){var e=document.querySelector('a[href="'+t+'"]');e&&e.click()}}));var p=document.querySelector("#rec"+t);p&&(p.setAttribute("data-animationappear","off"),p.style.opacity="1");var y=r.querySelector(".t706__cartwin-prodamount-label"),m=r.querySelector(".t706__cartwin-totalamount-label");if(r.querySelector(".t-input-group_dl")?(y&&(y.innerHTML=tcart_dict("subtotal")+": "),m&&(m.innerHTML=tcart_dict("grandTotal")+": ")):(y&&(y.innerHTML=tcart_dict("total")+": "),m&&(m.innerHTML=tcart_dict("total")+": ")),window.tcart_fullscreen){var y;(y=document.querySelector(".t706__sidebar-prodamount-label"))&&(y.innerHTML=tcart_dict("total")+": ");var v=r.querySelector(".t706__cartpage-prodamount .t706__cartpage-info-label");v&&(v.innerHTML=tcart_dict("subtotal")+": ");var f=r.querySelector(".t706__cartpage-order-total-label");f&&(f.innerHTML=tcart_dict("grandTotal")+": ")}if(window.tcart_fullscreen){var b=r.querySelector(".t706__cartpage-heading"),h=r.querySelector(".t706__sidebar-heading");""===b.innerHTML&&(b.innerHTML=tcart_dict("yourOrder")),""===h.innerHTML&&(h.innerHTML=tcart_dict("yourOrder"))}else{var b;""==(b=r.querySelector(".t706__cartwin-heading")).innerHTML&&(b.innerHTML=tcart_dict("yourOrder")+":")}var g=r.querySelector(".t-form__submit .t-submit");if("Submit"==g.innerHTML&&(g.innerHTML=tcart_dict("submitOrder")),window.tcart_fullscreen){var S=r.querySelector(".t706__sidebar-continue");"Submit"==S.innerHTML&&(S.innerHTML=tcart_dict("submitOrder"))}var q=r.querySelector(".t-input-group_pm");q&&(q.querySelector(".t-input-title").innerHTML=tcart_dict("paymentMethod"));var L=r.querySelector(".t-form__submit"),E=r.querySelector(".t706__minimal");L&&E&&(L.addEventListener("mouseenter",(function(){E.classList.add("active")})),L.addEventListener("mouseleave",(function(){E.classList.remove("active")})))}function T(r){r.matches!==window.tcart_isMobile&&(window.tcart_isMobile=r.matches,tcart__init(t,e),tcart__syncProductsObject__LStoObj(),tcart__updateProductsPrice(),tcart__reDrawProducts(),tcart__reDrawTotal(),tcart__initDelivery(),tcart__restoreFieldsFromLS())}}function tcart_dict(t){var e=[];return e.total={EN:"Total",RU:"Сумма",FR:"Total",DE:"Gesamtsumme",ES:"Total",PT:"Total",JA:"合計",ZH:"总额。",UK:"Сума",PL:"Suma",KK:"Жалпы",IT:"Totale",LV:"Kopā"},e.subtotal={EN:"Subtotal",RU:"Сумма",FR:"Sous-total",DE:"Zwischensumme",ES:"Subtotal",PT:"Subtotal",JA:"小計",ZH:"小计。",UK:"Сума",PL:"Suma",KK:"Қорытынды",IT:"Totale parziale",LV:"Kopējā summa"},e.grandTotal={EN:"Total",RU:"Итоговая сумма",FR:"Total",DE:"Gesamtsumme",ES:"Total",PT:"Total",JA:"合計",ZH:"总额。",UK:"Загальна сума",PL:"Suma łącznie",KK:"Жалпы",IT:"Totale",LV:"Kopējā summa"},e.yourOrder={EN:"Your order",RU:"Ваш заказ",FR:"Votre commande",DE:"Ihre Bestellung",ES:"Su pedido",PT:"Seu pedido",JA:"注文済",ZH:"你的订货。",UK:"Ваше замовлення",PL:"Twoje zamówienie",KK:"Сіздің тапсырысыңыз",IT:"Il tuo ordine",LV:"Jūsu pasūtījums"},e.submitOrder={EN:"Submit order",RU:"Оформить заказ",FR:"Commander",DE:"Bestellung abschicken",ES:"Enviar pedido",PT:"Enviar pedido",JA:"注文を確定",ZH:"办妥订货。",UK:"Оформити замовлення",PL:"Zamów",KK:"Өтінімді",IT:"Inviare ordine",LV:"Iesniegt pasūtījumu"},e.paymentMethod={EN:"Payment method",RU:"Способ оплаты",FR:"Mode de paiement",DE:"Zahlungsmethode",ES:"Método de pago",PT:"Método de pagamento",JA:"支払方法",ZH:"付款方式。",UK:"Спосіб оплати",PL:"Sposób płatności",KK:"Төлем тәсілі",IT:"Metodo di pagamento",LV:"Apmaksas veids"},e.clickToOrder={EN:"Click to order",RU:"Оформить заказать",FR:"Commander",DE:"Bestellung abschicken",ES:"Enviar pedido",PT:"Enviar pedido",JA:"注文を確定",ZH:"提交订单。",UK:"Оформити замовлення",PL:"Zamów",KK:"Бұйрығына басыңыз",IT:"Clicca per ordine",LV:"Uzklikšķiniet pasūtījuma"},e.subtotalDiscount={EN:"Subtotal with discount",RU:"Сумма со скидкой",FR:"Sous-total avec remise",DE:"Zwischensumme mit Rabatt",ES:"Subtotal con descuento",PT:"Subtotal com desconto",JA:"割引後小計",ZH:"减价同小计。",UK:"Сума зі знижкою",PL:"Suma z rabatem",KK:"Жеңілдікпен Қорытынды",IT:"Totale parziale con lo sconto",LV:"Atlaides summa"},e.promoCode={EN:"Promo code",RU:"Промокод",FR:"Code promo",DE:"Aktionscode",ES:"Código promocional",PT:"Código promocional",JA:"プロモコード",ZH:"促销代码。",UK:"Промокод",PL:"Kod rabatowy",KK:"Промокод",IT:"Codice promozionale",LV:"Promo kods"},e.discount={EN:"Discount",RU:"Скидка",FR:"Remise",DE:"Rabatt",ES:"Descuento",PT:"Desconto",JA:"割引",ZH:"减价。",UK:"Знижка",PL:"Rabat",KK:"Жеңілдік",IT:"Sconto",LV:"Atlaide"},e.minimumOrder={EN:"Minimum order",RU:"Минимальный заказ",FR:"Commande minimale",DE:"Minimale Bestellung",ES:"Pedido mínimo",PT:"Pedido mínimo",JA:"最小注文価格",ZH:"最小的订货。",UK:"Мінімальне замовлення",PL:"Minimalne zamówienie",KK:"Ең аз тапсырыс",IT:"Ordine minimo",LV:"Minimālais pasūtījuma"},e.minimumQuantity={EN:"Minimum order quantity",RU:"Минимальное количество в заказе",FR:"Quantité de commande minimale",DE:"Mindestbestellmenge",ES:"Cantidad mínima del pedido",PT:"Quantidade mínima por pedido",JA:"最小注文数",ZH:"最小的总数。",UK:"Мінімальна кількість у замовленні",PL:"Minimalna ilość w zamówieniu",KK:"Ең аз тапсырыс саны",IT:"Quantità di ordine minimo",LV:"Minimālais pasūtījuma daudzums"},e.limitReached={EN:"Sorry, limit has been reached. This is the maximum quantity of goods in stock",RU:"Извините, достигнут лимит. Это максимально возможное количество товаров в наличии",FR:"Désolé, la limite a été atteinte. Il s'agit de la quantité maximale de marchandises en stock",DE:"Entschuldigung, das Limit wurde erreicht. Dies ist die maximale Menge an Waren auf Lager",ES:"Lo sentimos, se ha alcanzado el límite. Esta es la cantidad máxima de productos en stock",PT:"Desculpe, o limite foi atingido. Esta é a quantidade máxima de bens em stock",JA:"申し訳ありませんが、上限に達しました。これは、商品の在庫の最大数量です",ZH:"对不起,已经达到极限。这是库存货物的最大数量",UK:"Вибачте, досягнутий ліміт. Це максимально можлива кількість товарів в наявності",PL:"Przepraszamy, osiągnięto limit. Jest to maksymalna ilość dostępnego towaru",KK:"Кешіріңіз, шегі қол жеткізілді. Бұл қоймада тауарлардың барынша саны",IT:"Siamo spiacenti, il limite è stato raggiunto. Questa è la quantità massima di merce in magazzino",LV:"Diemžēl ierobežojums ir sasniegts. Tas ir maksimālais iespējamais preču skaits noliktavā"},e.free={EN:"free",RU:"бесплатно",FR:"gratuit",DE:"kostenlos",ES:"gratis",PT:"livre",UK:"безкоштовно",JA:"無料で",ZH:"免费",PL:"za darmo",KK:"тегін",IT:"gratuito",LV:"bezmaksas"},e.youRemoved={EN:"You removed",RU:"Вы удалили",FR:"Vous avez retiré",DE:"Sie haben entfernt",ES:"Has eliminado",PT:"Retirou",JA:"除去しました",ZH:"你删除了",UK:"Щойно видалено",PL:"Usunąłeś",KK:"Сіз жойылған",IT:"Hai rimosso",LV:"Jūs izdzēsāt"},e.undo={EN:"Undo",RU:"Вернуть",FR:"Annuler",DE:"Rückgängig",ES:"Deshacer",PT:"Desfazer",JA:"元に戻す",ZH:"撤销",UK:"Повернути",PL:"Powrót",KK:"Болдырмау",IT:"Disfare",LV:"Atcelt"},e.PCE={EN:"pc",RU:"шт",UK:"шт",KK:"шт"},e.NMP={EN:"pack",RU:"уп",UK:"уп",KK:"уп"},e.MGM={EN:"mg",RU:"мг",UK:"мг",KK:"мг"},e.g=e.GRM={EN:"g",RU:"г",UK:"г",PL:"r",KK:"г"},e.KGM={EN:"kg",RU:"кг",UK:"кг",KK:"кг"},e.TNE={EN:"t",RU:"т",UK:"т",KK:"т"},e.MLT={EN:"ml",RU:"мл",UK:"мл",KK:"мл"},e.LTR={EN:"l",RU:"л",UK:"л",KK:"л"},e.mm=e.MMT={EN:"mm",RU:"мм",UK:"мм",KK:"мм"},e.CMT={EN:"cm",RU:"см",UK:"см",KK:"см"},e.DMT={EN:"dm",RU:"дм",UK:"дм",KK:"дм"},e.MTR={EN:"m",RU:"м",UK:"м",KK:"м"},e.MTK={EN:"m²",RU:"м²",UK:"м²",KK:"м²"},e.MTQ={EN:"m³",RU:"м³",UK:"м³",KK:"м³"},e.LMT={EN:"lm",RU:"пог. м",UK:"пог. м",KK:"пог. м"},e.HAR={EN:"ha",RU:"га",UK:"га",KK:"га"},e.ACR={EN:"acre"},e.YRD={EN:"yd"},e.LBR={EN:"lb"},e.ONZ={EN:"oz"},e.INH={EN:"in"},e.FOT={EN:"ft"},e[t]?e[t][window.t_cart__browserLang]?e[t][window.t_cart__browserLang]:e[t].EN:"Text not found #"+t}function tcart__nullObj(){var t={products:[],prodamount:0,amount:0,system:""};return t}function tcart__updateMinimals(){var t=document.querySelector(".t706"),e=t.getAttribute("data-cart-minorder"),r=t.getAttribute("data-cart-mincntorder"),o,a,o,a;if(window.tcart_minorder>0||window.tcart_mincntorder>0){var c=t.querySelectorAll(".t706__minimal");Array.prototype.slice.call(c).forEach((function(t){t.parentNode.removeChild(t)}))}function n(e,r){window.tcart_fullscreen&&window.tcart_isMobile?(t.querySelector(".t706__sidebar-prodamount-wrap").insertAdjacentHTML("afterbegin",e),t.querySelector(".t706__cartpage-prodamount").insertAdjacentHTML("afterbegin",e)):window.tcart_fullscreen&&!window.tcart_isMobile?(t.querySelector(".t706__sidebar-prodamount-wrap").insertAdjacentHTML("afterbegin",e),t.querySelector(".t706__cartpage-prodamount").insertAdjacentHTML("afterbegin",e),t.querySelector(".t706__cartwin-totalamount-wrap").insertAdjacentHTML("afterbegin",e)):(t.querySelector(".t706__cartwin-prodamount-wrap").insertAdjacentHTML("afterbegin",e),t.querySelector(".t706__cartwin-totalamount-wrap").insertAdjacentHTML("afterbegin",e)),t.querySelector(".js-errorbox-all .t-form__errorbox-text").insertAdjacentHTML("beforeend",r)}window.tcart_minorder&&n(o='
'+tcart_dict("minimumOrder")+": "+tcart__showPrice(e)+"
",a='");window.tcart_mincntorder&&n(o='
'+tcart_dict("minimumQuantity")+": "+r+"
",a='")}function tcart__loadLocalObj(){var t=null,e,r;if("object"==typeof localStorage)try{t=localStorage.getItem("tcart")}catch(t){console.error("Your web browser does not support storing a Cart data locally.")}if(window.tcart=null===t?tcart__nullObj():JSON.parse(t),void 0!==window.tcart.products){var o=[],a=window.tcart.products.length,c;window.tcart.products.forEach((function(t){tcart__isEmptyObject(t)||"yes"===t.deleted||o.push(t)})),window.tcart.products=o,window.tcart.products.length!==a&&tcart__saveLocalObj()}if(window.tcart_maxstoredays){var n=parseInt(window.tcart_maxstoredays);n>0?window.tcart.updated>0&&(r=1*(e=Math.floor(Date.now()/1e3))-1*window.tcart.updated)>86400*n&&("object"==typeof localStorage&&(window.tcart.products=[],localStorage.setItem("tcart",JSON.stringify(window.tcart))),window.tcart=tcart__nullObj()):0===n&&(window.tcart=tcart__nullObj())}else window.tcart.updated>0&&(r=1*(e=Math.floor(Date.now()/1e3))-1*window.tcart.updated)>2592e3&&(window.tcart=tcart__nullObj());"y"===window.tcart_dontstore&&(window.tcart=tcart__nullObj()),delete window.tcart.currency,delete window.tcart.currency_txt,delete window.tcart.currency_txt_l,delete window.tcart.currency_txt_r,delete window.tcart.currency_side,delete window.tcart.currency_sep,delete window.tcart.currency_dec,window.tcart.currency="$",window.tcart.currency_side="l",window.tcart.currency_sep=".",window.tcart.currency_dec="",window.tcart.delivery&&delete window.tcart.delivery,window.tcart.promocode&&delete window.tcart.promocode;var i=document.querySelector(".t706"),d=i.getAttribute("data-project-currency");d&&(window.tcart.currency=d),window.tcart.currency_txt=window.tcart.currency;var s=i.getAttribute("data-project-currency-side");"r"==s&&(window.tcart.currency_side="r"),"l"==window.tcart.currency_side?(window.tcart.currency_txt_l=window.tcart.currency_txt+"",window.tcart.currency_txt_r=""):(window.tcart.currency_txt_r=" "+window.tcart.currency_txt,window.tcart.currency_txt_l=""),"."==(s=i.getAttribute("data-project-currency-sep"))||","==s?window.tcart.currency_sep=s:"$"==window.tcart.currency||"€"==window.tcart.currency||"USD"==window.tcart.currency||"EUR"==window.tcart.currency?window.tcart.currency_sep=".":window.tcart.currency_sep=",",s=i.getAttribute("data-project-currency-dec"),window.tcart.currency_dec="00"==s?s:"",delete window.tcart.system;var u=i.getAttribute("data-payment-system");window.tcart.system=u||"none";var l=i.getAttribute("data-cart-minorder");l>0&&void 0===window.tcart_minorder&&(l*=1,window.tcart_minorder=l);var _=i.getAttribute("data-cart-mincntorder");_>0&&void 0===window.tcart_mincntorder&&(_*=1,window.tcart_mincntorder=_),tcart__addDelivery(),tcart__updateTotalProductsinCartObj()}function tcart__saveLocalObj(){if(window.tcart_newDeliveryActive&&window.tcart.amount&&window.tcart.total&&tcart__rerenderDeliveryServices(),"y"!==window.tcart_dontstore&&(void 0===window.tcart_maxstoredays||0!=window.tcart_maxstoredays)&&"object"==typeof window.tcart){window.tcart.updated=Math.floor(Date.now()/1e3);var t=JSON.stringify(window.tcart);if("object"==typeof localStorage)try{localStorage.setItem("tcart",t)}catch(t){console.error("Your web browser does not support storing a Cart data locally.")}}}function tcart__syncProductsObject__LStoObj(){if("y"!==window.tcart_dontstore&&(void 0===window.tcart_maxstoredays||0!=window.tcart_maxstoredays)&&"object"==typeof localStorage)try{var t=localStorage.getItem("tcart"),e=JSON.parse(t);if("object"==typeof e.products){var r=[],o=e.products.length,a;e.products.forEach((function(t){!tcart__isEmptyObject(t)&&"yes"!==t.deleted&&t.quantity>0&&r.push(t)})),window.tcart.products=r,window.tcart.products.length!==o&&tcart__saveLocalObj(),tcart__updateTotalProductsinCartObj()}}catch(t){}}function tcart__addEvents(){var t=document.querySelector("body");function e(t,e){var r=document.querySelector(t);r&&r.addEventListener("click",e)}e("body",(function(t){t.target&&t.target.closest('a[href="#opencart"]')&&(window.tcart_fullscreen?tcart__openCartSidebar():tcart__openCart(),t.preventDefault())})),e(".t706__carticon",(function(){window.tcart_fullscreen?tcart__openCartSidebar():tcart__openCart()})),e(".t706__cartwin-close",tcart__closeCart),e(".t706__cartwin-closebtn",tcart__closeCart),window.tcart_fullscreen&&(e(".t706__sidebar-close",tcart__closeCartSidebar),e(".t706__sidebar-continue",tcart__openCartFullscreen),e(".t706__cartpage-back",tcart__closeCartFullscreen),e(".t706__cartpage-close",tcart__closeCartFullscreen),window.addEventListener("popstate",(function(){-1!==location.href.indexOf("#tcart")?tcart__openCartFullscreen():tcart__closeCartFullscreen()}))),document.querySelector(".t706 .js-form-proccess")&&document.querySelector(".t706 .js-form-proccess").setAttribute("data-formcart","y");var r=document.querySelector(".t706__sidebar");if(r?r.addEventListener("mousedown",(function(t){if(t.target==this){var e,r=17,o=window.innerWidth-17;if(t.clientX>o)return;tcart__closeCartSidebar()}})):document.querySelector(".t706__cartwin").addEventListener("mousedown",(function(t){if(t.target==this){var e,r=17,o=window.innerWidth-17;if(t.clientX>o)return;tcart__closeCart()}})),window.tcart_fullscreen&&!window.tcart_isMobile&&"IntersectionObserver"in window){var o=document.querySelector(".t706__cartpage-totals"),a;new IntersectionObserver((function(t){var e=t[0];e.target.classList.toggle("is-pinned",0!==e.intersectionRatio&&e.intersectionRatio<1)}),{threshold:[1]}).observe(o)}"y"!==window.tcart_dontstore&&window.addEventListener("storage",(function(e){if(e.isTrusted&&!window.clearTCart&&!document.hasFocus()&&"tcart"===e.key){try{var r=localStorage.getItem("tcart"),o=JSON.parse(r);"object"==typeof o.products&&(window.tcart.products=o.products,tcart__updateTotalProductsinCartObj())}catch(e){}tcart__reDrawCartIcon(),t.classList.contains("t706__body_cartwinshowed")&&(window.tcart_newDeliveryActive&&window.tcart.amount&&window.tcart.total&&tcart__rerenderDeliveryServices(),tcart__reDrawProducts(),tcart__reDrawTotal())}}))}function tcart__addEvent__links(t){var e=[];e=t?[document.querySelector("#rec"+t)]:document.querySelectorAll(".r");var r=document.querySelector("body"),o=function(t){var e=t.target.closest('[href^="#order"]')?t.target.closest('[href^="#order"]'):"";if(e&&(t.preventDefault(),!t.target.classList.contains("t1002__addBtn")&&!t.target.closest(".t1002__addBtn"))){var o=e.closest("form");if(o){var a=window.tildaForm.validate(o);if(window.tildaForm.showErrors(o,a))return!1}if("yes"!=e.getAttribute("data-dbclk-prevent")){e.setAttribute("data-dbclk-prevent","yes"),setTimeout((function(){e.removeAttribute("data-dbclk-prevent")}),1e3),(r.classList.contains("t-body_popupshowed")||document.querySelectorAll(".t-popup.t-popup_show").length>0)&&(r.classList.remove("t-body_popupshowed"),Array.prototype.forEach.call(document.querySelectorAll(".t-popup"),(function(t){t.classList.remove("t-popup_show")})),setTimeout((function(){Array.prototype.forEach.call(document.querySelectorAll(".t-popup:not(.t-popup_show)"),(function(t){t.style.display="none"}))}),300),tcart__clearProdUrl());var c=e.getAttribute("href"),n="0",i="",d="",s="",u="",l="",_="",w="",p="",y="",m="",v="",f="",b="",h="",g="",S="",q="";if("#order:"===c.substring(0,7)){var L=c.substring(7);if(L){if(L.indexOf(":::")>0){var E=L.indexOf(":::");if(L.indexOf("=")>0&&L.indexOf("=")0){var A=L.split("=");A[0]&&(i=A[0].trim()),A[1]&&(n=A[1]),n=tcart__cleanPrice(n)}else i=L;if(void 0!==T&&""!==T&&T.indexOf("=")>0){var j=T.split("=");j[0]&&j[1]&&"image"==j[0]&&(j[1].indexOf("tildacdn.com")>0||j[1].indexOf("tildacdn.info")>0)&&(d=j[1])}""==_&&(_=e.closest(".r").getAttribute("id")?e.closest(".r").getAttribute("id").replace("rec",""):"")}}var O=e.closest(".js-product");if(O){if(""==i){var P=O.querySelector(".js-product-name");i=P?P.textContent.trim():""}if(""==n||0==n){var k=O.querySelector(".js-product-price");k&&(n=k.classList.contains("js-store-prod-price-range-val")?k.getAttribute("data-product-price-def"):k.textContent),n=tcart__cleanPrice(n)}if(""==d)if(O.getAttribute("data-product-img"))d=O.getAttribute("data-product-img");else{var D=O.querySelector(".js-product-img");if(D){var x=D.getAttribute("data-original")||"";if(x.length>0)d=x;else if("IMG"==D.tagName)d=D.getAttribute("src");else if("DIV"==D.tagName){d="";var M=getComputedStyle(D)["background-image"];M&&(d=M.replace("url(","").replace(")","").replace(/"/gi,""))}}}if(""==u&&(u=O.getAttribute("data-product-lid")||""),""==l&&(l=O.getAttribute("data-product-uid")||""),""==_){var C=O.closest(".r").getAttribute("id");_=C?C.replace("rec",""):""}""==w&&(w=O.getAttribute("data-product-inv")||""),y=O.getAttribute("data-product-unit")||"",m=O.getAttribute("data-product-portion")||"",p=O.getAttribute("data-product-single")||"";var K=[],I=O.querySelectorAll(".js-product-edition-option");Array.prototype.forEach.call(I,(function(t){var e=t.querySelector(".js-product-edition-option-name").textContent,r=t.querySelector("option:checked");if(r){var o=r.value,a=r.getAttribute("data-product-edition-variant-price");if(a=tcart__cleanPrice(a),e&&o){var c={};""!=e&&(e=tcart__escapeHtml(e)),""!=o&&(o=(o=tcart__escapeHtml(o)).replace(/(?:\r\n|\r|\n)/g,"")),e.length>1&&":"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),c.option=e,c.variant=o,c.price=a,K.push(c)}}}));var H=O.querySelectorAll(".js-product-option");Array.prototype.forEach.call(H,(function(t){var e=t.querySelector(".js-product-option-name").textContent,r=t.querySelector("option:checked");if(r){var o=r.value,a=r.getAttribute("data-product-variant-price");if(a=tcart__cleanPrice(a),void 0!==e&&void 0!==o){var c={};""!=e&&(e=tcart__escapeHtml(e)),""!=o&&(o=(o=tcart__escapeHtml(o)).replace(/(?:\r\n|\r|\n)/g,"")),e.length>1&&":"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),c.option=e,c.variant=o,c.price=a,K.push(c)}}})),""==s&&(s=O.querySelector(".js-product-sku")?O.querySelector(".js-product-sku").textContent.trim():""),""==s&&(s=O.querySelector(".js-store-prod-sku")?O.querySelector(".js-store-prod-sku").textContent.trim():""),""==v&&(v=O.getAttribute("data-product-pack-label")||""),""==f&&(f=O.getAttribute("data-product-pack-m")||""),""==b&&(b=O.getAttribute("data-product-pack-x")||""),""==h&&(h=O.getAttribute("data-product-pack-y")||""),""==g&&(g=O.getAttribute("data-product-pack-z")||""),""==S&&(S=O.getAttribute("data-product-part-uid")||""),""==q&&(q=O.getAttribute("data-product-gen-uid")||"")}var R=O?O.getAttribute("data-product-url"):"",F=O?O.querySelector('a[href="#order"]:not(.t-btn)'):"",U=O?O.querySelector('.js-product-link:not([href="#prodpopup"]):not([href="#order"])'):"";if(U)var N=U.getAttribute("href");if(!R&&N?R=N:!R&&_&&u&&!F?R=window.location.origin+window.location.pathname+"#!/tproduct/"+_+"-"+u:R||(R=window.location.origin+window.location.pathname+"#rec"+_),""!=i||""!=n&&0!=n){""==i&&(i="NoName"),""==n&&(n=0),""!=i&&(i=tcart__escapeHtml(i)),""!=d&&(d=tcart__escapeHtmlImg(d));var z={};if(z.name=i,z.price=n,z.img=d,z.recid=_,z.lid=u,z.pack_label=v,z.pack_m=f,z.pack_x=b,z.pack_y=h,z.pack_z=g,z.part_uids=S.split(","),z.gen_uid=q,z.url=R,K&&K.length>0&&(z.options=K),s&&(s=tcart__escapeHtml(s),z.sku=s),l&&(z.uid=l),u&&(z.lid=u),w>0&&(z.inv=parseInt(w,10)),""===w||0!==parseInt(w,10)){y&&(z.unit=y),m&&(z.portion=m),p&&(z.single=p);var B=e.parentElement.querySelector(".t-store__prod__quantity");if(B){var J=B.querySelector(".t-store__prod__quantity-input"),Z=parseInt(J.value,10);!isNaN(Z)&&Z>0&&(z.quantity=Z,J.value=1,t_cart__triggerEvent(J,"change"))}if(tcart__addProduct(z),"y"==window.tcart_sendevent_onadd)try{Tilda.sendEcommerceEvent("add",[z])}catch(t){if(window.Tilda&&"function"==typeof Tilda.sendEventToStatistics){var V="/tilda/cart/add/";_>0&&(V+=_),l&&l>0?V+="-u"+l:u&&u>0&&(V+="-"+u);var W=i,G=n;Tilda.sendEventToStatistics(V,W,window.location.href,G)}}}else window.tStoreDict&&alert(window.tStoreDict.soldOut)}}}},a;Array.prototype.forEach.call(e,(function(t){t.addEventListener("click",(function(t){o(t)}))})),window.jQuery&&(a=jQuery)(".r").on("click",'[href^="#order"]',(function(t){3===t.isTrigger&&o(t)}))}function tcart__addProduct(t){var e=Math.floor(Date.now()/1e3),r=document.querySelector(".t706__carticon");tcart__syncProductsObject__LStoObj();var o=window.tcart.products,a="",c=!1;if(o.length>0&&Array.prototype.forEach.call(o,(function(r,o){var n="y",i="";if("y"==window.tcart_oneproduct){if(r.name==t.name&&r.price==t.price){if(null==r.options&&null==t.options&&null==r.sku&&null==t.sku)return a="yes",!1;if(null==r.options&&null==t.options&&null!=r.sku&&null!=t.sku&&r.sku==t.sku)return a="yes",!1;if("object"==typeof r.options&&"object"==typeof t.options&&(Array.prototype.forEach.call(r.options,(function(e,r){if("object"==typeof e&&"object"==typeof t.options[r]){if(e.option!==t.options[r].option||e.variant!==t.options[r].variant||e.price!==t.options[r].price)return n=!1}else if(null==e||null==t.options[r])return n=!1})),r.sku===t.sku&&(i="y"),"y"===n&&"y"===i))return parseInt(window.tcart.products[o].quantity,10)===parseInt(t.inv,10)&&alert(tcart_dict("limitReached")),a="yes",!1}}else if(r.name==t.name&&r.price==t.price&&r.portion==t.portion&&r.single==t.single){if("object"==typeof r.options&&"object"==typeof t.options&&Array.prototype.forEach.call(r.options,(function(e,r){if("object"==typeof e&&"object"==typeof t.options[r]){if(e.option!==t.options[r].option||e.variant!==t.options[r].variant||e.price!==t.options[r].price)return n=!1}else if(void 0===e||void 0===t.options[r])return n=!1})),r.sku===t.sku&&(i="y"),"y"===n&&"y"===i){var d=parseInt(t.inv,10),s=parseInt(t.quantity,10),u;return(u=parseInt(window.tcart.products[o].quantity,10))===d?(alert(tcart_dict("limitReached")),a="yes",!1):(void 0!==t.quantity?u+s>d?(alert(tcart_dict("limitReached")),a="yes",window.tcart.products[o].quantity=d):window.tcart.products[o].quantity+=s:window.tcart.products[o].quantity++,window.tcart.products[o].amount=window.tcart.products[o].price*window.tcart.products[o].quantity,window.tcart.products[o].amount=tcart__roundPrice(window.tcart.products[o].amount),window.tcart.products[o].ts=e,a="yes",!1)}}else if(r.uid&&t.uid&&r.uid===t.uid&&("object"==typeof r.options&&"object"==typeof t.options?Array.prototype.forEach.call(r.options,(function(e,r){if("object"==typeof e&&"object"==typeof t.options[r]){if(e.option!==t.options[r].option||e.variant!==t.options[r].variant)return n=!1}else if(void 0===e||void 0===t.options[r])return n=!1})):n="y","y"===n)){var d=parseInt(t.inv,10),s=parseInt(t.quantity,10),u;return(u=parseInt(window.tcart.products[o].quantity,10))===d?(alert(tcart_dict("limitReached")),c=!0,a="yes",!1):(void 0!==t.quantity?u+s>d?(alert(tcart_dict("limitReached")),c=!0,a="yes",window.tcart.products[o].quantity=d):window.tcart.products[o].quantity+=s:window.tcart.products[o].quantity++,window.tcart.products[o].price=0,window.tcart.products[o].amount=0,window.tcart.products[o].ts=e,c=!0,a="yes",!1)}})),""==a){if(void 0===t.quantity?(t.quantity=1,t.amount=t.price):t.amount=tcart__roundPrice(t.price*t.quantity),t.ts=e,""===t.pack_m||0===parseInt(t.pack_m,10)){var n=!1,i=0;["GRM","KGM","TNE"].forEach((function(e,r){e===t.unit&&(n=!0,i=r)})),n&&(t.pack_m=t.portion*Math.pow(1e3,i))}window.tcart.products.push(t)}tcart__updateTotalProductsinCartObj(),tcart__reDrawCartIcon(),tcart__saveLocalObj(),c&&tcart__updateProductsPrice(!0);var d=document.querySelector(".t706"),s=document.querySelectorAll(".t-menuwidgeticons__link_cart");"yes"==d.getAttribute("data-opencart-onorder")?window.tcart_fullscreen?setTimeout((function(){tcart__openCartSidebar()}),10):setTimeout((function(){tcart__openCart()}),10):(r||s.length)&&(r&&(r.classList.add("t706__carticon_neworder"),setTimeout((function(){r.classList.remove("t706__carticon_neworder")}),500)),s.length&&Array.prototype.forEach.call(s,(function(t){t.classList.add("t706__carticon_neworder"),setTimeout((function(){t.classList.remove("t706__carticon_neworder")}),500)})))}function tcart__updateProductsPrice(t){var e=Math.floor(Date.now()/1e3),r;if(window.tcart&&window.tcart.updated&&window.tcart.products&&window.tcart.products.length&&((e-parseInt(window.tcart.updated,10))/3600>3||t)){var o={};o.prodamount=window.tcart.prodamount,o.discount=window.tcart.discount,o.products=JSON.stringify(window.tcart.products),o.amount=window.tcart.amount,o.total=window.tcart.total,o.updated=window.tcart.updated,o=JSON.stringify(o),window.tcart_endpoint||(window.tcart_endpoint="store.tildacdn.com");var a="https://"+window.tcart_endpoint+"/api/getpriceproducts/",c=new XMLHttpRequest;c.open("POST",a),c.onload=function(){if(c.status>=200&&c.status<400){var t=c.responseText;"string"==typeof t&&"{"===t.substr(0,1)||console.error("Can't get array.");var e=[];try{var r=JSON.parse(t);if("error"===r.status)e=r.bad;else if("success"===r.status)return}catch(e){console.error("Can't get JSON.",t)}if(""===e)return void console.error("Something went wrong. Can't get products array.");if(0===e.length)return;Object.keys(e).forEach((function(t){var r=e[t],o=r.uid||r.lid;if("PRICE_CHANGED"===r.error){var a="";r.variant&&(a+=r.variant+"|"),r.variant2&&(a+=r.variant2+"|"),r.variant3&&(a+=r.variant3+"|"),r.variant4&&(a+=r.variant4+"|"),r.variant5&&(a+=r.variant5+"|"),!a&&r.options&&r.options.forEach((function(t){a+=(t.variant||"").toLowerCase()+"|"})),window.tcart.products.forEach((function(t,e){var c=t.uid||t.lid;if(o===c){if(void 0!==t.options&&void 0!==r.options&&a){var n="";if(t.options.forEach((function(t){n+=(t.variant||"").toLowerCase()+"|"})),a===n)return window.tcart.products[e].amount=parseFloat(r.last_amount),void(window.tcart.products[e].price=parseFloat(r.last_price))}if(void 0===t.options&&void 0===r.options&&void 0===r.variant)return window.tcart.products[e].amount=parseFloat(r.last_amount),void(window.tcart.products[e].price=parseFloat(r.last_price))}}))}"LESS_PRODUCTS"!==r.error&&"NOT_FOUND_PRODUCT"!==r.error||window.tcart.products.forEach((function(t,e){var r=t.uid||t.lid;o===r&&(window.tcart.products[e]={})}))})),tcart__saveLocalObj(),tcart__reDrawProducts(),tcart__updateTotalProductsinCartObj(),tcart__reDrawCartIcon(),tcart__reDrawTotal()}},c.onerror=function(t){tcart_changeEndpoint(t,(function(){tcart__updateProductsPrice()}))},c.send(o)}}function tcart__updateTotalProductsinCartObj(){var t=document.getElementById("allrecords");if(t){var e="edit"===t.getAttribute("data-tilda-mode");window.t_cart__discounts&&0!==window.t_cart__discounts.length&&Array.isArray(window.t_cart__discounts)&&!e&&tcart__onFuncLoad("tcart__calcAmountWithDiscounts",(function(){tcart__calcAmountWithDiscounts()}))}var r=window.tcart.products;if(r.length>0){var o=0,a=0;Array.prototype.forEach.call(r,(function(t){tcart__isEmptyObject(t)||"yes"===t.deleted||("y"===t.single?o+=1:o+=1*t.quantity,a=1*a+1*t.amount)})),a=tcart__roundPrice(a),window.tcart.total=o,window.tcart.prodamount=a;var c=a;if(void 0!==window.tcart.prodamount_withdyndiscount&&window.t_cart__discounts&&window.t_cart__discounts.length>0&&(c=window.tcart.prodamount_withdyndiscount),!t||"6040241"!==t.getAttribute("data-tilda-project-id")&&"4494873"!==t.getAttribute("data-tilda-project-id"))if("object"==typeof window.tcart.promocode&&window.tcart.promocode.promocode){var n=0;window.tcart.promocode.discountsum>0?n=1*window.tcart.promocode.discountsum:window.tcart.promocode.discountpercent>0?n=tcart__roundPrice(c*window.tcart.promocode.discountpercent*1/100):console.error("Cart Some error."),(c=tcart__roundPrice(c-=n))<0&&(c=0),window.tcart.prodamount_discountsum=n,window.tcart.prodamount_withdiscount=c}else delete window.tcart.prodamount_discountsum,delete window.tcart.prodamount_withdiscount;else c=tcart__calcPromocode(c);"object"==typeof window.tcart.delivery&&void 0!==window.tcart.delivery.price&&window.tcart.delivery.price>0&&window.tcart.prodamount>0&&(window.tcart.delivery.freedl>0&&c>=window.tcart.delivery.freedl||(c+=1*window.tcart.delivery.price)),c>0&&(c=tcart__roundPrice(c)),window.tcart.amount=c}else window.tcart.total=0,window.tcart.prodamount=0,window.tcart.amount=0}function tcart__reDrawCartIcon(){var t=window.tcart,e=document.querySelector(".t706__carticon"),r=[];if(r=document.querySelectorAll('[data-menu-widgeticon-cart="yes"] .js-carticon-counter'),e){var o=e.querySelector(".js-carticon-counter"),a=document.querySelector(".t706__carticon-text");1==t.total&&(e.style.opacity=0,e.style.transition="opacity .3s",e.style.opacity=1)}if(void 0!==t.products&&t.products.length>0&&t.total>0?(e&&e.classList.add("t706__carticon_showed"),o&&(o.innerHTML=t.total),Array.prototype.forEach.call(r,(function(e){e.innerHTML=t.total}))):(e&&e.classList.remove("t706__carticon_showed"),o&&(o.innerHTML=""),Array.prototype.forEach.call(r,(function(t){t.innerHTML=""}))),o&&(""===tcart__showPrice(window.tcart.prodamount)?a.style.display="none":(a.style.display="block",a.innerHTML="= "+tcart__showPrice(window.tcart.prodamount))),"y"===window.lazy||"yes"===document.querySelector("#allrecords").getAttribute("data-tilda-lazy"))try{tcart__onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))}catch(t){console.error("js lazyload not loaded")}}function tcart__openCart(){if(window.tcart_fullscreen)tcart__openCartSidebar();else{var t=document.querySelector(".t706__carticon");t&&t.classList.remove("t706__carticon_showed"),t_cart__triggerEvent(document.body,"popupShowed"),document.querySelector("body").classList.add("t706__body_cartwinshowed");var e=document.getElementById("customdelivery");(!e||e&&!e.querySelector(".tcart__preloader"))&&tcart__unblockSubmitButton(),window.tildaForm&&window.tildaForm.hideErrors&&window.tildaForm.hideErrors(document.querySelector(".t706 .t-form")),setTimeout((function(){tcart__lockScroll()}),500),tcart__syncProductsObject__LStoObj(),tcart__updateProductsPrice();var r=document.querySelector(".t706__cartwin");if(r.style.opacity=0,r.style.transition="opacity .3s",r.classList.add("t706__cartwin_showed"),setTimeout((function(){r.style.opacity=1}),0),tcart__reDrawProducts(),tcart__reDrawTotal(),tcart__initDelivery(),tcart__restoreFieldsFromLS(),document.addEventListener("keyup",tcart__keyUpFunc),"y"===window.lazy||"yes"===document.querySelector("#allrecords").getAttribute("data-tilda-lazy"))try{tcart__onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))}catch(t){console.error("js lazyload not loaded")}}}function tcart__reDrawProducts(){var t=document.querySelector(".t706__cartwin-products");if(window.tcart_fullscreen&&(t=document.querySelector(".t706__sidebar-products"),document.body.classList.contains("t706__body_cartpageshowed")&&(t=document.querySelector(".t706__cartpage-products"))),void 0!==window.tcart.products){var e=[],r=window.tcart.products.length,o;Array.prototype.forEach.call(window.tcart.products,(function(t){!tcart__isEmptyObject(t)&&"yes"!==t.deleted&&t.quantity>0&&e.push(t)})),window.tcart.products=e,window.tcart.products.length!==r&&tcart__saveLocalObj()}var a="";if(e.length>0&&Array.prototype.forEach.call(e,(function(t){""!=t.img&&(a="yes")})),e.length>0){var c="";Array.prototype.forEach.call(e,(function(t,e){c+='
',"yes"==a&&(c+='
"),c+='
',t.url?c+=''+t.name+"":c+=t.name,t.options&&t.options.length>0&&(c+='
',Array.prototype.forEach.call(t.options,(function(t){c+="
"+t.option+": "+t.variant+"
"})),c+="
"),void 0!==t.sku&&""!=t.sku&&(c+='
',c+=t.sku,c+="
"),t.portion>0&&(c+='
',c+=tcart__showPrice(t.price)+"/","1"!==t.portion&&(c+=t.portion+" "),c+=tcart_dict(t.unit)+"
"),c+="
","y"==window.tcart_oneproduct?c+='":(c+='
',c+=''+t.quantity+"",c+='
'),t.portion>0?(c+='
',t.amount>0&&(c+=''+tcart__showPrice(t.amount)+"",c+=''+tcart__showWeight(t.quantity*t.portion,t.unit)+""),c+="
"):(c+='
',t.amount>0&&(c+=tcart__showPrice(t.amount)),c+="
"),c+='
',c+="
"})),t.innerHTML=c,tcart__addEvents__forProducts(),tcart__unblockSubmitButton()}else t.innerHTML=""}function tcart__reDrawTotal(){var t={subtotal:{text:tcart_dict("subtotal"),value:""},dyndiscount:{text:tcart_dict("discount"),value:""},promoCode:{text:tcart_dict("promoCode"),value:""},discount:{text:tcart_dict("discount"),value:""},subtotalDiscount:{text:tcart_dict("subtotalDiscount"),value:""},delivery:{text:"",value:""}},e="number"==typeof window.tcart.prodamount&&"number"==typeof window.tcart.dyndiscount&&window.tcart.prodamount===window.tcart.dyndiscount;window.tcart_fullscreen?(document.querySelector(".t706__sidebar-prodamount").innerHTML=tcart__showPrice(window.tcart.prodamount),document.querySelector(".t706__cartwin-prodamount").innerHTML=tcart__showPrice(window.tcart.prodamount),document.querySelector(".t706__cartwin-totalamount").innerHTML=tcart__showPrice(window.tcart.amount,e?"acceptzero":"")):(document.querySelector(".t706__cartwin-prodamount").innerHTML=tcart__showPrice(window.tcart.prodamount),document.querySelector(".t706__cartwin-totalamount").innerHTML=tcart__showPrice(window.tcart.amount,e?"acceptzero":""));var r=document.querySelector(".t706__cartwin-totalamount-info"),o;if(r.innerHTML="",void 0!==window.tcart.dyndiscount&&0!==window.tcart.dyndiscount&&window.t_cart__discounts&&window.t_cart__discounts.length>0&&(t.dyndiscount.value=tcart__showPrice(window.tcart.dyndiscount),t.subtotalDiscount.value=tcart__showPrice(window.tcart.prodamount_withdyndiscount,"acceptzero"),t.dyndiscount.text+=tcart__addDiscountInfo()),"object"!=typeof window.tcart.promocode&&"object"!=typeof window.tcart.delivery||(t.subtotal.value=tcart__showPrice(window.tcart.prodamount)),"object"==typeof window.tcart.promocode&&(t.promoCode.value=window.tcart.promocode.discountpercent?" "+parseFloat(window.tcart.promocode.discountpercent)+"% ":"",t.discount.value=tcart__showPrice(window.tcart.prodamount_discountsum),window.tcart.prodamount_withdiscount>0?t.subtotalDiscount.value=tcart__showPrice(window.tcart.prodamount_withdiscount):t.subtotalDiscount.value="0"),"object"==typeof window.tcart.delivery&&window.tcart.delivery.name&&void 0!==window.tcart.delivery.price&&(window.tcart.delivery.price>0||window.tcart.delivery["service-id"])&&(window.tcart.delivery.freedl>0&&window.tcart.prodamount>=window.tcart.delivery.freedl&&(window.tcart.prodamount_withdiscount>=window.tcart.delivery.freedl||!window.tcart.prodamount_withdiscount)?(t.delivery.text=window.tcart.delivery.name,t.delivery.value="0 "+tcart_dict("free")):window.tcart.delivery.price>0&&(t.delivery.text=window.tcart.delivery.name,t.delivery.value=tcart__showPrice(window.tcart.delivery.price))),Object.keys(t).forEach((function(e){var o=t[e];if(o.text&&o.value){var a=''+o.text+":",c=''+o.value+"";r.insertAdjacentHTML("beforeend",a+c+"
")}})),window.tcart_fullscreen&&!window.tcart_isMobile)(o=document.querySelector(".t706__cartpage-prodamount")).style.display="none";else if(window.tcart_fullscreen&&window.tcart_isMobile){var o;(o=document.querySelector(".t706__cartpage-prodamount")).style.display="block"}var a=document.querySelector(".t706__cartpage-totals");a&&(0==window.tcart.prodamount?a.style.display="none":a.style.display="block");var c=document.querySelector(".t706__cartwin-prodamount-wrap");0==window.tcart.prodamount?c.style.display="none":c.style.display="block",tcart__changeSubmitStatus();var n=document.querySelector(".t706__cartwin-totalamount-wrap"),i=window.tcart_fullscreen?document.querySelector(".t706__cartpage-form"):document.querySelector(".t706__orderform");0==window.tcart.amount?n.style.display="none":window.tcart.prodamount==window.tcart.amount?i&&i.offsetHeight>700&&!window.tcart_fullscreen?n.style.display="block":n.style.display="none":n.style.display="block",window.tcart.promocode&&(n.style.display="block",0==window.tcart.amount&&(document.querySelector(".t706__cartwin-totalamount").innerHTML="0",window.tcart_fullscreen&&(document.querySelector(".t706__cartpage-order-total-value").innerHTML="0"))),window.tcart.delivery&&window.tcart.delivery.price>0&&(n.style.display="block"),e&&(n.style.display="block");var d=document.querySelector(".t706__carticon-text"),s="= "+tcart__showPrice(window.tcart.prodamount);void 0!==window.tcart.prodamount_withdyndiscount&&window.t_cart__discounts&&window.t_cart__discounts.length>0&&(s="= "+tcart__showPrice(window.tcart.prodamount_withdyndiscount,e?"acceptzero":"")),d&&(d.innerHTML=s)}function tcart__changeSubmitStatus(){var t=window.tcart_newDeliveryActive,e=window.tcart_minorder>0,r=window.tcart_mincntorder>0,o=document.getElementById("customdelivery");function a(){var t=document.querySelectorAll(".t706__cartwin-prodamount-minorder");Array.prototype.forEach.call(t,(function(t){t.style.display="none"}))}function c(){var t=document.querySelectorAll(".t706__cartwin-prodamount-minorder");Array.prototype.forEach.call(t,(function(t){t.style.display="block"}))}function n(){var t=document.querySelectorAll(".t706__cartwin-prodamount-mincntorder");Array.prototype.forEach.call(t,(function(t){t.style.display="none"}))}function i(){var t=document.querySelectorAll(".t706__cartwin-prodamount-mincntorder");Array.prototype.forEach.call(t,(function(t){t.style.display="block"}))}if(t&&window.tcart.emptyDeliveryServices&&(window.tcart__errorHandler.show(),tcart__blockSubmitButton()),e&&r){if(e&&(window.tcart.prodamount>=window.tcart_minorder?a():c()),r&&(window.tcart.total>=window.tcart_mincntorder?n():i()),window.tcart.prodamount>=window.tcart_minorder&&window.tcart.total>=window.tcart_mincntorder){if(t&&window.tcart.emptyDeliveryServices)return;tcart__unblockSubmitButton()}}else if(e||r){if(e)if(window.tcart.prodamount>=window.tcart_minorder){if(t&&window.tcart.emptyDeliveryServices)return;(!o||o&&!o.querySelector(".tcart__preloader"))&&(a(),tcart__unblockSubmitButton())}else c();if(r)if(window.tcart.total>=window.tcart_mincntorder){if(t&&window.tcart.emptyDeliveryServices)return;n(),tcart__unblockSubmitButton()}else i()}else t&&!window.tcart.emptyDeliveryServices&&(window.tcart__errorHandler.hide(),(!o||o&&!o.querySelector(".tcart__preloader"))&&tcart__unblockSubmitButton())}function tcart__addEvents__forProducts(){Array.prototype.forEach.call(document.querySelectorAll(".t706__product-plus"),(function(t){t.addEventListener("click",(function(){tcart__product__plus(this)}))})),Array.prototype.forEach.call(document.querySelectorAll(".t706__product-minus"),(function(t){t.addEventListener("click",(function(){tcart__product__minus(this)}))})),Array.prototype.forEach.call(document.querySelectorAll(".t706__product-del"),(function(t){t.addEventListener("click",(function(){tcart__product__del(this)}))})),Array.prototype.forEach.call(document.querySelectorAll(".t706__product-quantity"),(function(t){t.addEventListener("click",(function(){tcart__product__editquantity(this)}))}))}function tcart__closeCart(){var t=window.tcart,e=document.querySelector(".t706__carticon"),r=document.querySelector(".t706__carticon-text"),o=document.querySelector(".t706__cartwin");if(t_cart__triggerEvent(document.body,"popupHidden"),document.querySelector("body").classList.remove("t706__body_cartwinshowed"),tcart__unlockScroll(),tcart__unblockSubmitButton(),"y"===window.tcart_dontstore&&(window.tcart&&t.products&&(t.products=[]),tcart__updateTotalProductsinCartObj(),tcart__reDrawCartIcon(),tcart__reDrawTotal()),e&&(t.products&&t.products.length>0&&t.total>0?e.classList.add("t706__carticon_showed"):e.classList.remove("t706__carticon_showed")),r){var a="number"==typeof t.prodamount&&"number"==typeof t.dyndiscount&&t.prodamount===t.dyndiscount;t.amount>0||a?r.style.display="block":r.style.display="none"}tcart__delZeroquantity_inCartObj(),document.removeEventListener("keyup",tcart__keyUpFunc),e&&e.classList.remove("t706__carticon_neworder"),o.style.transition="opacity .3s",o.style.opacity=0,setTimeout((function(){o.classList.remove("t706__cartwin_showed"),o.style.opacity="1"}),300),"yes"==window.tcart_success&&location.reload()}function tcart__keyUpFunc(t){27==t.keyCode&&(window.tcart_fullscreen?tcart__closeCartSidebar():tcart__closeCart(),document.body.classList.contains("t706__body_cartpageshowed")&&tcart__closeCartFullscreen())}function tcart__blockSubmitButton(){var t=document.querySelector(".t706 .t-form__submit button");t&&(t.classList.add("t706__submit_disable"),t.setAttribute("disabled","disabled"))}function tcart__unblockSubmitButton(){var t=document.querySelector(".t706 .t-form__submit button");t&&(t.classList.remove("t706__submit_disable"),t.removeAttribute("disabled"))}function tcart__product__plus(t){var e=t.closest(".t706__product"),r=e.getAttribute("data-cart-product-i");(window.tcart.products[r]||(tcart__syncProductsObject__LStoObj(),null!=window.tcart.products[r]))&&(window.tcart.products[r].quantity>0&&void 0!==window.tcart.products[r].inv&&window.tcart.products[r].inv>0&&window.tcart.products[r].inv==window.tcart.products[r].quantity?alert(tcart_dict("limitReached")):(window.tcart.products[r].quantity++,window.tcart.products[r].amount=window.tcart.products[r].price*window.tcart.products[r].quantity,window.tcart.products[r].amount=tcart__roundPrice(window.tcart.products[r].amount),e.querySelector(".t706__product-quantity").innerHTML=window.tcart.products[r].quantity,"y"===window.tcart.products[r].single&&void 0!==window.tcart.products[r].portion&&(e.querySelector(".t706__product-portion").innerHTML=tcart__showWeight(window.tcart.products[r].quantity*window.tcart.products[r].portion,window.tcart.products[r].unit)),window.tcart.products[r].amount>0?e.querySelector(".t706__product-amount").innerHTML=tcart__showPrice(window.tcart.products[r].amount):e.querySelector(".t706__product-amount").innerHTML="",tcart__updateTotalProductsinCartObj(),tcart__reDrawCartIcon(),tcart__reDrawTotal(),tcart__saveLocalObj()))}function tcart__product__minus(t){var e=t.closest(".t706__product"),r=e.getAttribute("data-cart-product-i");(window.tcart.products[r]||(tcart__syncProductsObject__LStoObj(),null!=window.tcart.products[r]))&&(window.tcart.products[r].quantity>0&&window.tcart.products[r].quantity--,window.tcart.products[r].amount=tcart__roundPrice(window.tcart.products[r].price*window.tcart.products[r].quantity),window.tcart.products[r].amount>0&&(e.querySelector(".t706__product-amount").innerHTML=tcart__showPrice(window.tcart.products[r].amount)),window.tcart.products[r].amount>0&&"y"===window.tcart.products[r].single&&void 0!==window.tcart.products[r].portion&&(e.querySelector(".t706__product-portion").innerHTML=tcart__showWeight(window.tcart.products[r].quantity*window.tcart.products[r].portion,window.tcart.products[r].unit)),e.querySelector(".t706__product-quantity").innerHTML=window.tcart.products[r].quantity,0==window.tcart.products[r].quantity&&tcart__product__del(t),tcart__updateTotalProductsinCartObj(),tcart__reDrawCartIcon(),tcart__reDrawTotal(),tcart__saveLocalObj())}function tcart__product__del(t){var e=t.closest(".t706__product"),r=e.getAttribute("data-cart-product-i"),o=t.closest(".t706"),a=parseInt(o.getAttribute("data-cart-ver"),10),c="yes"===o.getAttribute("data-cart-countdown");if(a>136||c){var n=(e.querySelector(".t706__product-title a")||e.querySelector(".t706__product-title")).textContent,i=e.offsetHeight,d=".t706__cartwin-products";document.body.classList.contains("t706__body_cartsidebarshowed")?d=".t706__sidebar-products":document.body.classList.contains("t706__body_cartpageshowed")&&(d=".t706__cartpage-products");var s=document.querySelector(d),u,l=s.querySelector('.t706__product-deleted[data-cart-product-i="'+r+'"]');if(!l){e.insertAdjacentHTML("afterend",'"),l=s.querySelector('.t706__product-deleted[data-cart-product-i="'+r+'"]'),tcart_fadeOut(e,200,(function(){null!==e.parentNode&&(u=e.parentNode.removeChild(e)),tcart_fadeIn(l,200),l.style.height=i+"px"})),window.tcart.products[r].deleted="yes",tcart__updateTotalProductsinCartObj(),tcart__reDrawCartIcon();var _=document.getElementById("allrecords"),w;if(_){var p="edit"===_.getAttribute("data-tilda-mode");window.t_cart__discounts&&0!==window.t_cart__discounts.length&&Array.isArray(window.t_cart__discounts)&&!p&&tcart__onFuncLoad("tcart__calcAmountWithDiscounts",(function(){tcart__calcAmountWithDiscounts()}))}if(tcart__reDrawTotal(),tcart__saveLocalObj(),0===window.tcart.products.filter((function(t){return!tcart__isEmptyObject(t)&&"yes"!==t.deleted&&0!==t.quantity})).length){tcart__blockSubmitButton();var y=document.getElementById("delivery-services-wrapper");window.tcart__preloader&&window.t_delivery__dict&&y&&(y.style.display="none",window.tcart__preloader.show(y,t_delivery__dict("loadingServices")))}var m=setInterval((function(){var t=l.querySelector(".t706__product-deleted__timer__counter__number"),e=t.innerText,o;window.tcart_fullscreen?document.body.classList.contains("t706__body_cartsidebarshowed")?o=!document.querySelector(".t706__sidebar").classList.contains("t706__sidebar_showed"):document.body.classList.contains("t706__body_cartpageshowed")&&(o=!document.querySelector(".t706__cartpage").classList.contains("t706__cartpage_showed")):o=!document.querySelector(".t706__cartwin").classList.contains("t706__cartwin_showed"),o&&clearInterval(m),e>1?t.innerText=parseInt(e,10)-1:(clearInterval(m),tcart_fadeOut(l,200,(function(){var t;"yes"!==l.getAttribute("data-clicked")&&void 0!==window.tcart.products[r]&&"yes"===window.tcart.products[r].deleted&&(null!==l.parentNode&&l.parentNode.removeChild(l),window.tcart.products[r]={},0===s.querySelectorAll(".t706__product-deleted").length&&tcart__isEmptyObject(window.tcart.products[r])&&(window.tcart.products.splice(r,1),tcart__reDrawProducts()),tcart__saveLocalObj());var e=window.tcart.products.filter((function(t){return!tcart__isEmptyObject(t)})).length;0!==window.tcart.products.length&&0!==e||(window.tcart_fullscreen?(tcart__closeCartFullscreen(),tcart__closeCartSidebar()):tcart__closeCart())})))}),1e3);Array.prototype.forEach.call(l.querySelectorAll(".t706__product-deleted__timer__return"),(function(e){var o=function(){if(l.setAttribute("data-clicked","yes"),clearInterval(m),tcart_fadeOut(l,200,(function(){l.insertAdjacentElement("afterend",u),tcart_fadeIn(u,200),null!==l.parentNode&&l.parentNode.removeChild(l)})),void 0===window.tcart.products[r]){tcart__reDrawProducts();var a=window.tcart.products.filter((function(t){return!tcart__isEmptyObject(t)})).length;0!==window.tcart.products.length&&0!==a||tcart__closeCart()}else delete window.tcart.products[r].deleted;t.classList.contains("t706__product-minus")?tcart__product__plus(t):(tcart__updateTotalProductsinCartObj(),tcart__reDrawCartIcon(),tcart__reDrawTotal(),tcart__saveLocalObj());var c=document.getElementById("customdelivery");(!c||c&&!c.querySelector(".tcart__preloader"))&&tcart__unblockSubmitButton(),e.removeEventListener("click",o)};e.addEventListener("click",o)}))}}else void 0===window.tcart.products[r]&&tcart__syncProductsObject__LStoObj(),window.tcart.products.splice(r,1),null!==e.parentNode&&e.parentNode.removeChild(e),tcart__updateTotalProductsinCartObj(),tcart__reDrawCartIcon(),tcart__saveLocalObj(),tcart__reDrawProducts(),tcart__reDrawTotal(),0===window.tcart.products.length&&(window.tcart_fullscreen?(tcart__closeCartFullscreen(),tcart__closeCartSidebar()):tcart__closeCart())}function tcart__product__editquantity(t){var e="";if(!t.querySelector(".t706__product-quantity-inp")){var r=t.closest(".t706__product"),o=r.getAttribute("data-cart-product-i"),a=parseInt(t.textContent,10),c='';t.innerHTML=c,t.classList.add("t706__product-quantity_editing");var n=t.querySelector(".t706__product-quantity-inp");n.addEventListener("focus",(function(){var t=this;setTimeout((function(){t.selectionStart=t.selectionEnd=1e4}),0)})),n.focus(),n.addEventListener("focusout",(function(){var e="",a=parseInt(n.value,10);tcart__product__updateQuantity(t,r,o,e=a>0?a:1),t.textContent=window.tcart.products[o].quantity,t.classList.remove("t706__product-quantity_editing")}))}}function tcart__product__updateQuantity(t,e,r,o){if(o>0){void 0!==window.tcart.products[r].inv&&window.tcart.products[r].inv>0&&o>window.tcart.products[r].inv&&(alert(tcart_dict("limitReached")),o=window.tcart.products[r].inv),window.tcart.products[r].quantity=o,window.tcart.products[r].amount=window.tcart.products[r].price*window.tcart.products[r].quantity,window.tcart.products[r].amount=tcart__roundPrice(window.tcart.products[r].amount),e.querySelector(".t706__product-quantity").innerHTML=window.tcart.products[r].quantity,"y"===window.tcart.products[r].single&&void 0!==window.tcart.products[r].portion&&(e.querySelector(".t706__product-portion").innerHTML=tcart__showWeight(window.tcart.products[r].quantity*window.tcart.products[r].portion,window.tcart.products[r].unit));var a=e.querySelector(".t706__product-amount");window.tcart.products[r].amount>0?a.innerHTML=tcart__showPrice(window.tcart.products[r].amount):a.innerHTML=""}else tcart__product__del(t);tcart__updateTotalProductsinCartObj(),tcart__reDrawCartIcon(),tcart__reDrawTotal(),tcart__saveLocalObj(),0==o&&tcart__reDrawProducts()}function tcart__delZeroquantity_inCartObj(){var t=window.tcart.products,e="";t.length>0&&t.forEach((function(t,r){void 0!==t&&0==t.quantity&&(window.tcart.products.splice(r,1),e="yes")})),"yes"==e&&tcart__saveLocalObj()}function tcart__drawBottomTotalAmount(){var t="";if(t+='
',t+='
',t+=''+tcart_dict("total")+": ",t+='',t+="
",window.tcart_fullscreen&&!window.tcart_isMobile){var e=document.querySelector(".t706__cartwin-totalamount-wrap");e&&e.parentNode.removeChild(e),document.querySelector(".t706__cartpage-totals").insertAdjacentHTML("beforeend",t)}else document.querySelector(".t706 .t-form__errorbox-middle").insertAdjacentHTML("beforebegin",t)}function tcart__addDelivery(){var t=document.querySelector(".t706 .t-form .t-radio__wrapper-delivery");if(t){var e=document.querySelector(".t706 .t-form .t-radio__wrapper-delivery input:checked")?document.querySelector(".t706 .t-form .t-radio__wrapper-delivery input:checked"):document.querySelector(".t706 .t-form .t-radio__wrapper-delivery input");if(e){var r=e.value,o=e.getAttribute("data-delivery-price"),a=document.querySelector(".t706 .t-form .t-radio__wrapper-delivery .t-radio_delivery:checked"),c;a&&(c=a.getAttribute("data-service-id"))}if(void 0!==r&&void 0!==o&&""!==r){o=tcart__cleanPrice(o);var n=r.indexOf("=");n>0&&(r=(r=r.substring(0,n)).trim()),window.tcart.delivery={},window.tcart.delivery.name=r,window.tcart.delivery.price=o,c&&(window.tcart.delivery.service_id=c),window.tcart_newDeliveryActive&&window.tcart_newDelivery.deliveryState.freeDeliveryThreshold>=0?window.tcart.delivery.freedl=window.tcart_newDelivery.deliveryState.freeDeliveryThreshold:t.getAttribute("data-delivery-free")>=0&&(window.tcart.delivery.freedl=parseInt(t.getAttribute("data-delivery-free"),10))}var i=document.querySelectorAll(".t706 .t-form .t-radio__wrapper-delivery input");i.length&&Array.prototype.forEach.call(i,(function(t){t.addEventListener("change",(function(){tcart__updateDelivery()}))}))}}function tcart__updateDelivery(){var t=document.querySelector(".t706 .t-form .t-radio__wrapper-delivery input:checked");if(t)var e=t.value,r=t.getAttribute("data-delivery-price");if(void 0!==e&&void 0!==r&&""!==e){if(r=tcart__cleanPrice(r),""!=e){var o=e.indexOf("=");o>0&&(e=(e=e.substring(0,o)).trim())}if(window.tcart.delivery={},window.tcart.delivery.name=e,window.tcart.delivery.price=r,window.tcart_newDeliveryActive&&window.tcart_newDelivery.deliveryState.freeDeliveryThreshold>=0)window.tcart.delivery.freedl=window.tcart_newDelivery.deliveryState.freeDeliveryThreshold;else{var a=document.querySelector(".t706 .t-form .t-radio__wrapper-delivery");a.getAttribute("data-delivery-free")>=0&&(window.tcart.delivery.freedl=parseInt(a.getAttribute("data-delivery-free"),10))}}else void 0!==window.tcart.delivery&&delete window.tcart.delivery;document.querySelector(".t706 #customdelivery")&&(void 0===tcart_newDelivery.fillTcartDelivery?tcart_newDelivery.saveTcartDelivery():tcart_newDelivery.fillTcartDelivery(),tcart_newDelivery.setFullAddress(tcart_newDelivery.getFullAddress())),void 0!==window.tcart.products&&0!==window.tcart.products.length||tcart__syncProductsObject__LStoObj(),tcart__updateTotalProductsinCartObj(),tcart__reDrawTotal()}function tcart__addPromocode(t){"object"!=typeof window.tcart.promocode?("object"==typeof t&&void 0!==t.promocode&&""!=t.promocode&&(t.discountsum>0||t.discountpercent>0)&&(window.tcart.promocode=t),window.tcart_newDeliveryActive&&window.tcart.amount&&window.tcart.total&&tcart__rerenderDeliveryServices(),tcart__updateTotalProductsinCartObj(),tcart__reDrawTotal()):console.error("Error. Promocode already activated before")}function tcart__addEvent__selectpayment(){if(0!=document.querySelectorAll(".t706 .t-input-group_pm").length){var t=document.querySelectorAll(".t706 .t-form .t-radio__wrapper-payment input");t.length&&(Array.prototype.forEach.call(t,(function(t){t.addEventListener("change",(function(){var t,e;document.querySelector(".t706 .t-form .t-radio__wrapper-payment input:checked")&&(e=document.querySelector(".t706 .t-form .t-radio__wrapper-payment input:checked").getAttribute("data-payment-variant-system")),e||(e=""),document.querySelector(".t706").setAttribute("data-payment-variant-system",e),window.tcart.system=e}))})),t_cart__triggerEvent(document.querySelector(".t706 .t-form .t-radio__wrapper-payment input:checked"),"change"))}}function tcart__escapeHtml(t){var e={"<":"<",">":">",'"':""","'":"'"};return t.replace(/[<>"']/g,(function(t){return e[t]}))}function tcart__escapeHtmlImg(t){var e={"<":"<",">":">",'"':"""};return t.replace(/[<>"]/g,(function(t){return e[t]}))}function tcart__cleanPrice(t){return t?(t=(t=t.replace(",",".")).replace(/[^0-9\.]/g,""),t=parseFloat(t).toFixed(2),isNaN(t)&&(t=0),t=parseFloat(t),(t*=1)<0&&(t=0)):t=0,t}function tcart__roundPrice(t){return void 0===t||""==t||0==t?t=0:(t=parseFloat(t).toFixed(2),t=parseFloat(t),(t*=1)<0&&(t=0)),t}function tcart__showWeight(t,e){if(isNaN(parseInt(t,10)))return"";var r={lites:{value:1e3,units:["MLT","LTR"]},gramms:{value:1e3,units:["MGM","GRM","KGM","TNE"]},meters:{value:[10,10,100],units:["MMT","CMT","MTR"]}},o=-1,a="";if(Object.keys(r).forEach((function(t){var c=r[t].units.indexOf(e);c>=0&&(o=c,a=t)})),o>=0&&""!==a)for(var c=r[a].value,n=null!==c&&"object"==typeof c,i=o+1;ic&&(t/=c,e=r[a].units[i]);return tcart__roundPrice(t)+" "+tcart_dict(e)}function tcart__showPrice(t,e){if(void 0!==t&&0!=t&&""!=t||"acceptzero"===e){if(void 0===t)return"";var r;if(t=t.toString(),void 0!==window.tcart.currency_dec&&"00"==window.tcart.currency_dec)if(-1===t.indexOf(".")&&-1===t.indexOf(","))t+=".00";else 1===t.substr(t.indexOf(".")+1).length&&(t+="0");t=t.replace(/\B(?=(\d{3})+(?!\d))/g," "),void 0!==window.tcart.currency_sep&&","==window.tcart.currency_sep&&(t=t.replace(".",",")),t='
'+t+"
",window.tcart.currency_txt_l&&(t='
'+window.tcart.currency_txt_l+"
"+t),window.tcart.currency_txt_r&&(t+='
'+window.tcart.currency_txt_r+"
")}else t="";return t}function tcart__lockScroll(){if(window.t_cart__isiOS&&11===window.t_cart__iOSMajorVersion&&!window.MSStream&&!document.body.classList.contains("t-body_scroll-locked")){var t=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;document.body.classList.add("t-body_scroll-locked"),document.body.style.top="-"+t+"px",document.body.setAttribute("data-popup-scrolltop",t)}}function tcart__unlockScroll(){if(window.t_cart__isiOS&&11===window.t_cart__iOSMajorVersion&&!window.MSStream&&!document.body.classList.contains("t-body_scroll-locked")){var t=document.body.getAttribute("data-popup-scrolltop");document.body.classList.remove("t-body_scroll-locked"),document.body.style.top="",document.body.removeAttribute("data-popup-scrolltop"),window.scrollTo(0,t)}}function tcart__clearProdUrl(){var t=window.location.href,e=t.indexOf("#!/tproduct/"),e;if(window.isiOS&&e<0&&(e=t.indexOf("%23!/tproduct/"))<0&&(e=t.indexOf("#%21%2Ftproduct%2F")),e>-1)try{window.history.replaceState("","",t.substring(0,e))}catch(t){}if((e=t.indexOf("/tproduct/"))<0&&(e=t.indexOf("%2Ftproduct%2F")),e>-1)try{var r=window.sessionStorage.getItem("urlBeforePopupOpen");r&&window.history.pushState(null,null,r)}catch(t){}}function tcart__onFuncLoad(t,e,r){if("function"==typeof window[t])e();else{var o=Date.now(),a=new Error(t+" is undefined"),c=function(){throw a};setTimeout((function a(){var n=Date.now();"function"!=typeof window[t]?("complete"===document.readyState&&n-o>5e3&&"function"!=typeof window[t]&&c(),setTimeout(a,r||100)):e()}))}}function tcart_fadeOut(t,e,r){var o=1;e=parseInt(e);var a,c=setInterval((function(){t.style.opacity=o,(o-=.1)<=.1&&(clearInterval(c),t.style.display="none","function"==typeof r&&r())}),e>0?e/10:40)}function tcart_fadeIn(t,e,r){if(("1"===getComputedStyle(t).opacity||""===getComputedStyle(t).opacity)&&"none"!==getComputedStyle(t).display)return!1;var o=0,a=(e=parseInt(e))>0?e/10:40;t.style.opacity=o,t.style.display="";var c=setInterval((function(){t.style.opacity=o,(o+=.1)>=1&&(clearInterval(c),"function"==typeof r&&r())}),a)}function tcart__isEmptyObject(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function tcart_changeEndpoint(t,e){t&&(t.status>=500||408==t.status||410==t.status||429==t.status||"timeout"==t.statusText||0==t.status&&"rejected"==t.state())&&-1!==window.tcart_endpoint.indexOf("store.tildacdn.com")?(window.tcart_endpoint="store2.tildacdn.com","function"==typeof e&&e()):t&&t.responseText>""?console.log("["+t.status+"] "+t.responseText+". Please, try again later."):t&&t.statusText?console.log("Error ["+t.status+", "+t.statusText+"]. Please, try again later."):console.log("["+t.status+"] Unknown error. Please, try again later.")}function tcart__openCartFullscreen(){document.body.classList.contains("t706__body_cartsidebarshowed")&&tcart__closeCartSidebar(),-1!==location.href.indexOf("#tcart")?(window.history.replaceState({},"",location.href.replace(/#tcart/g,"")),window.history.pushState({},"",location.href+"#tcart")):window.history.pushState({},"",location.href+"#tcart"),t_cart__triggerEvent(document.body,"popupShowed"),document.querySelector("body").classList.add("t706__body_cartpageshowed"),tcart__syncProductsObject__LStoObj(),tcart__updateProductsPrice();var t=document.querySelector(".t706__cartpage");if(t.style.display=null,window.tcart_isMobile){var e=document.querySelector(".t706__cartpage-form"),r=t.querySelector(".t706__cartpage-open-form-wrap"),o=t.querySelector(".t706__cartpage-open-form");r.style.display="block",e.style.display="none","none"===o.style.display&&(o.style.display="block"),o.addEventListener("click",(function(){e.style.display="block",e.style.opacity=0,e.style.transform="translateY(75%)",e.style.transition="opacity .1s, transform .1s",setTimeout((function(){e.style.opacity=1,e.style.transform="translateY(0)"}),0),t.querySelector(".t706__cartpage-totals").scrollIntoView({behavior:"smooth"}),o.style.display="none",r.style.display="none"}))}if(t.style.opacity=0,t.style.transition="opacity .3s",t.classList.add("t706__cartpage_showed"),setTimeout((function(){t.style.opacity=1}),0),tcart__syncProductsObject__LStoObj(),tcart__updateProductsPrice(),tcart__reDrawProducts(),tcart__reDrawTotal(),tcart__initDelivery(),tcart__restoreFieldsFromLS(),document.addEventListener("keyup",tcart__keyUpFunc),"y"===window.lazy||"yes"===document.querySelector("#allrecords").getAttribute("data-tilda-lazy"))try{tcart__onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))}catch(t){console.error("js lazyload not loaded")}}function tcart__closeCartFullscreen(){if(-1!==location.href.indexOf("#tcart")){var t=location.href.replace("#tcart","");window.history.pushState({},"",t)}var e=window.tcart,r=document.querySelector(".t706__carticon"),o=document.querySelector(".t706__carticon-text"),a=document.querySelector(".t706__cartpage");t_cart__triggerEvent(document.body,"popupHidden"),document.querySelector("body").classList.remove("t706__body_cartpageshowed"),"y"===window.tcart_dontstore&&(window.tcart&&e.products&&(e.products=[]),tcart__updateTotalProductsinCartObj(),tcart__reDrawCartIcon(),tcart__reDrawTotal()),r&&(e.products&&e.products.length>0&&e.total>0?r.classList.add("t706__carticon_showed"):r.classList.remove("t706__carticon_showed")),o&&(e.amount>0?o.style.display="block":o.style.display="none"),tcart__delZeroquantity_inCartObj(),document.removeEventListener("keyup",tcart__keyUpFunc),a&&(a.scrollTop=0,a.style.transition="opacity .3s",a.style.opacity=0,setTimeout((function(){a.classList.remove("t706__cartpage_showed")}),300))}function tcart__openCartSidebar(){if(window.tcart_isMobile)tcart__openCartFullscreen();else{t_cart__triggerEvent(document.body,"popupShowed"),document.querySelector("body").classList.add("t706__body_cartsidebarshowed"),tcart__syncProductsObject__LStoObj(),tcart__updateProductsPrice();var t=document.querySelector(".t706__sidebar"),e=document.querySelector(".t706__sidebar-content");if(t.style.display=null,t.style.opacity=0,t.style.transition="opacity .3s",t.classList.add("t706__sidebar_showed"),setTimeout((function(){e.scrollTop=0,t.style.opacity=1,e.classList.add("t706__sidebar-content_showed")})),tcart__syncProductsObject__LStoObj(),tcart__updateProductsPrice(),tcart__reDrawProducts(),tcart__reDrawTotal(),document.addEventListener("keyup",tcart__keyUpFunc),"y"===window.lazy||"yes"===document.querySelector("#allrecords").getAttribute("data-tilda-lazy"))try{tcart__onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))}catch(t){console.error("js lazyload not loaded")}}}function tcart__closeCartSidebar(){var t=window.tcart,e=document.querySelector(".t706__carticon"),r=document.querySelector(".t706__carticon-text"),o=document.querySelector(".t706__sidebar");t_cart__triggerEvent(document.body,"popupHidden"),document.querySelector("body").classList.remove("t706__body_cartsidebarshowed"),e&&(t.products&&t.products.length>0&&t.total>0?e.classList.add("t706__carticon_showed"):e.classList.remove("t706__carticon_showed")),r&&(t.amount>0?r.style.display="block":r.style.display="none"),tcart__delZeroquantity_inCartObj(),document.removeEventListener("keyup",tcart__keyUpFunc),document.querySelector(".t706__sidebar-content").classList.remove("t706__sidebar-content_showed"),setTimeout((function(){o.classList.remove("t706__sidebar_showed"),o.style.opacity="1"}),300),o.style.transition="opacity .3s",o.style.opacity=0}function tcart__initDelivery(){Array.prototype.forEach.call(document.querySelectorAll(".t706 .t-form .t-radio__wrapper-delivery"),(function(t){if("y"===t.getAttribute("data-delivery-services")&&!window.tcart_newDeliveryActive)if("undefined"!=typeof tcart_newDelivery&&"function"==typeof tcart_newDelivery.init)tcart_newDelivery.init(window.tcart__ymapApiKey);else{var e="https://static.tildacdn.com/js/tilda-delivery-1.0.min.js";if(!document.querySelector('script[src^="'+e+'"]')){var r=document.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(){tcart_newDelivery.init(window.tcart__ymapApiKey);var t="https://static.tildacdn.com/css/tilda-delivery-1.0.min.css",e;document.querySelector('link[href^="'+t+'"]')||document.querySelector("body").insertAdjacentHTML("beforeend",'')},r.onerror=function(t){console.error("Upload script failed, error: "+t)},document.head.appendChild(r)}}}))}function tcart__restoreFieldsFromLS(){if(document.querySelectorAll(".t706 .t-form .t-input-group_sf").length>0){var t="https://static.tildacdn.com/js/tilda-cart-restorefields-1.0.min.js";if(!document.querySelector('script[src^="'+t+'"]')){var e=document.createElement("script");e.type="text/javascript",e.src=t,e.onload=function(){tcart__restoreFields()},e.onerror=function(t){console.error("Upload script failed, error: "+t)},document.head.appendChild(e)}}}function t_cart__triggerEvent(t,e){var r;document.createEvent?(r=document.createEvent("HTMLEvents")).initEvent(e,!0,!1):document.createEventObject&&((r=document.createEventObject()).eventType=e),r.eventName=e,t.dispatchEvent?t.dispatchEvent(r):t.fireEvent?t.fireEvent("on"+r.eventType,r):t[e]?t[e]():t["on"+e]&&t["on"+e]()}function tcart__loadDiscounts(){var t=document.getElementById("allrecords").getAttribute("data-tilda-project-id"),e;if(!("edit"===document.getElementById("allrecords").getAttribute("data-tilda-mode"))){var r=!0;if("object"==typeof localStorage)try{var o=JSON.parse(localStorage.getItem("tcart_discounts")),a=JSON.parse(localStorage.getItem("tcart_discounts_sumrule")),c=o&&new Date(parseInt(o.time,10)),n=o&&o.discounts;n&&0!==n.length&&Date.now()-c<9e5&&(window.t_cart__discounts=n,window.sumpromowithdiscount=a,tcart__insertDiscountsScript(),r=!1),n&&0===n.length&&Date.now()-c<9e5&&(window.t_cart__discounts=n,window.sumpromowithdiscount=a,r=!1)}catch(t){console.error("Your web browser does not support storing a Discount data locally.")}if(r){var i=new XMLHttpRequest,d="https://store.tildacdn.com/api/discounts/v1/getactive/",s="projectid="+t;i.open("POST",d,!0),i.setRequestHeader("Content-type","application/x-www-form-urlencoded"),i.onreadystatechange=function(){if(4==i.readyState&&200==i.status){var t=JSON.parse(i.responseText);if(!Array.isArray(t)&&t.sumpromowithdiscount&&t.discounts?(window.t_cart__discounts=t.discounts,window.sumpromowithdiscount=t.sumpromowithdiscount):window.t_cart__discounts=t,Array.isArray(window.t_cart__discounts)){if(0!==window.t_cart__discounts.length&&tcart__insertDiscountsScript(),"object"==typeof localStorage)try{var e={time:Date.now(),discounts:window.t_cart__discounts};window.sumpromowithdiscount&&localStorage.setItem("tcart_discounts_sumrule",JSON.stringify(window.sumpromowithdiscount)),localStorage.setItem("tcart_discounts",JSON.stringify(e))}catch(t){console.error("Your web browser does not support storing a Discount data locally.")}return}if("object"==typeof localStorage)try{var e={time:Date.now(),discounts:[]};localStorage.setItem("tcart_discounts",JSON.stringify(e))}catch(t){console.error("Your web browser does not support storing a Discount data locally.")}}},i.send(s)}}}function tcart__insertDiscountsScript(){var t="tilda-cart-discounts-1.0";if(document.getElementById("cart_discounts_script"))tcart__onFuncLoad("tcart__calcAmountWithDiscounts",(function(){tcart__calcAmountWithDiscounts()}));else{var e=document.createElement("script");e.id="cart_discounts_script",e.type="text/javascript",e.src="https://static.tildacdn.com/js/"+t+".min.js",e.onload=function(){console.log("executing discounts"),tcart__calcAmountWithDiscounts()},e.onerror=function(){console.error("Failed to load tilda-cart-discounts: ",this.src)},document.head.appendChild(e);var r=document.createElement("link");r.id="cart_discounts_style",r.rel="stylesheet",r.href="https://static.tildacdn.com/css/"+t+".min.css",document.head.appendChild(r)}}function tcart__addDiscountInfo(){var t={};window.tcart.products.forEach((function(e){"yes"!==e.deleted&&0!==Object.keys(e).length&&e.discountid&&(void 0===t[e.discountid]?t[e.discountid]={value:1*(e.amount-e.amount_withdiscount).toFixed(2),typeid:Array.prototype.find.call(window.t_cart__discounts,(function(t){return t.id===e.discountid})).typeid}:t[e.discountid].value+=1*(e.amount-e.amount_withdiscount).toFixed(2))}));var e=[],r={0:{text:"RU"==window.t_cart__browserLang?"Специальная скидка от кол-ва товаров":"Special discount from product amount",value:0},1:{text:"RU"==window.t_cart__browserLang?"Специальная скидка от суммы заказа":"Special discount from total price",value:0}};Object.keys(t).forEach((function(e){var o=t[e].typeid;r[o<2?0:1].value+=t[e].value})),Object.keys(r).forEach((function(t){0!==r[t].value&&e.push(r[t].text+": "+(window.tcart.currency_txt_l?window.tcart.currency_txt_l:"")+r[t].value.toFixed(2)+(window.tcart.currency_txt_r?window.tcart.currency_txt_r:""))}));var o='
    ';return e.forEach((function(t){o+="
  • "+t+"
  • "})),o+="
"}function tcart__calcPromocode(t){if("object"!=typeof window.tcart.promocode)return delete window.tcart.prodamount_discountsum,delete window.tcart.prodamount_withdiscount,t;if(!(window.tcart.promocode.discountsum>0||window.tcart.promocode.discountpercent>0))return console.error("Cart Some error."),t;var e=0,r=0,o,a=window.tcart.prodamount;if(window.t_cart__discounts&&window.t_cart__discounts.length>0&&void 0!==window.tcart.prodamount_withdyndiscount&&(a=window.tcart.prodamount_withdyndiscount),window.tcart.products.forEach((function(t){var c="",n=t.price,i=t.amount,d=!1,s=parseInt(t.portion,10);if(window.t_cart__discounts&&window.t_cart__discounts.length>0&&void 0!==t.amount_withdiscount&&(n=t.price_withdiscount,i=t.amount_withdiscount),t.portion&&(n=Math.ceil(n/s*100)/100,d=!0,console.log("start price for one portion ("+t.portion+") - "+n)),window.tcart.promocode.discountsum>0)c=Math.ceil(n*(1-window.tcart.promocode.discountsum/a)*100)/100;else if(window.tcart.promocode.discountpercent>0){var u=1-(window.tcart.promocode.discountpercent/100).toFixed(2);c=Math.ceil(n*u*100).toFixed(2)/100}1===t.quantity&&(o=t.uid),d&&(c=(c*s).toFixed(2));var l=1*(c*t.quantity).toFixed(2);e+=1*(i-l).toFixed(2),r+=l,console.log(n+" -> "+c+" = "+e)})),e=1*e.toFixed(2),window.tcart.promocode.discountsum>0){var c=1*(1*window.tcart.promocode.discountsum-e).toFixed(2);window.showdiscountdata&&console.log(window.tcart.promocode.discountsum,e,c),o&&c>0&&(r=(r-c).toFixed(2),e=window.tcart.promocode.discountsum)}return r<0&&(r=0),window.tcart.prodamount_discountsum=e,window.tcart.prodamount_withdiscount=r,r}window.t_cart__browserLang=(window.navigator.userLanguage||window.navigator.language).toUpperCase().slice(0,2),t_onReady((function(){var t=document.getElementById("allrecords");if(t)var e=t.getAttribute("data-tilda-project-lang");e&&(window.t_cart__browserLang=e)})),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(Element.prototype.matches.call(e,t))return e;e=e.parentElement||e.parentNode}return null});