text: function tcart__init(t){var r=$(".t706");if(void 0!==window.tcart_initted&&"yes"==window.tcart_initted&&1<r.length){$(".t706__previewmode-infobox center").append('<div style="color:red;">Error: Two cart widgets on the page</div>')}else{var o=r.attr("data-cart-dontstore");void 0!==o&&"y"==o&&(window.tcart_dontstore="y"),void 0!==(o=r.attr("data-cart-oneproduct"))&&"y"==o&&(window.tcart_oneproduct="y"),void 0!==(o=r.attr("data-cart-maxstoredays"))&&""!=o&&0<=o&&(window.tcart_maxstoredays=o),void 0!==(o=r.attr("data-cart-sendevent-onadd"))&&"y"==o&&(window.tcart_sendevent_onadd="y"),window.tcart_initted="yes",tcart__drawBottomTotalAmount(),tcart__loadLocalObj(),tcart__reDrawCartIcon(),tcart__addEvent__links(),setInterval(function(){tcart__addEvent__links()},5e3),tcart__addEvents(),tcart__addEvent__selectpayment(),$("#rec"+t).attr("data-animationappear","off"),$("#rec"+t).css("opacity","1"),window.tildaBrowserLang=window.navigator.userLanguage||window.navigator.language,window.tildaBrowserLang=window.tildaBrowserLang.toUpperCase(),-1!=window.tildaBrowserLang.indexOf("RU")?window.tildaBrowserLang="RU":-1!=window.tildaBrowserLang.indexOf("FR")?window.tildaBrowserLang="FR":-1!=window.tildaBrowserLang.indexOf("DE")?window.tildaBrowserLang="DE":-1!=window.tildaBrowserLang.indexOf("ES")?window.tildaBrowserLang="ES":-1!=window.tildaBrowserLang.indexOf("PT")?window.tildaBrowserLang="PT":-1!=window.tildaBrowserLang.indexOf("UK")?window.tildaBrowserLang="UK":-1!=window.tildaBrowserLang.indexOf("JA")?window.tildaBrowserLang="JA":-1!=window.tildaBrowserLang.indexOf("CN")?window.tildaBrowserLang="CN":window.tildaBrowserLang="EN",r.find(".t-input-group_dl").length?($(".t706__cartwin-prodamount-label").html(tcart__dict(2,"Subtotal")+":&nbsp;"),$(".t706__cartwin-totalamount-label").html(tcart__dict(3,"Total")+":&nbsp;")):($(".t706__cartwin-prodamount-label").html(tcart__dict(1,"Total")+":&nbsp;"),$(".t706__cartwin-totalamount-label").html(tcart__dict(1,"Total")+":&nbsp;")),""==$(".t706__cartwin-heading").html()&&$(".t706__cartwin-heading").html(tcart__dict(4,"Your order")+":"),"Submit"==$(".t706 .t-form__submit .t-submit").html()&&$(".t706 .t-form__submit .t-submit").html(tcart__dict(5,"Submit order")),r.find(".t-input-group_pm").length&&r.find(".t-input-group_pm").find(".t-input-title").html(tcart__dict(6,"Payment method"))}}function tcart__dict(t){var r=[],o={EN:"Total",RU:"Сумма",FR:"Total",DE:"Gesamtsumme",ES:"Total",PT:"Total",UK:"Сума",JA:"合計",CN:"总额。"};r[1]=o,(o={}).EN="Subtotal",o.RU="Сумма",o.FR="Sous-total",o.DE="Zwischensumme",o.ES="Subtotal",o.PT="Subtotal",o.UK="Сума",o.JA="小計",o.CN="小计。",r[2]=o,(o={}).EN="Total",o.RU="Итоговая сумма",o.FR="Total",o.DE="Gesamtsumme",o.ES="Total",o.PT="Total",o.UK="Підсумкова сума",o.JA="合計",o.CN="总额。",r[3]=o,(o={}).EN="Your order",o.RU="Ваш заказ",o.FR="Votre commande",o.DE="Ihre Bestellung",o.ES="Su pedido",o.PT="Seu pedido",o.UK="Ваше замовлення",o.JA="注文済",o.CN="你的订货。",r[4]=o,(o={}).EN="Submit order",o.RU="Оформить заказ",o.FR="Commander",o.DE="Bestellung abschicken",o.ES="Enviar pedido",o.PT="Enviar pedido",o.UK="Оформити замовлення",o.JA="注文を確定",o.CN="办妥订货。",r[5]=o,(o={}).EN="Payment method",o.RU="Способ оплаты",o.FR="Mode de paiement",o.DE="Zahlungsmethode",o.ES="Método de pago",o.PT="Método de pagamento",o.UK="Спосіб оплати",o.JA="支払方法",o.CN="付款方式。",r[6]=o,(o={}).EN="Click to order\t",o.RU="Оформить заказать",o.FR="Commander",o.DE="Bestellung abschicken",o.ES="Enviar pedido",o.PT="Enviar pedido",o.UK="Оформити замовлення",o.JA="注文を確定",o.CN="提交订单。",r[7]=o,(o={}).EN="Subtotal with discount",o.RU="Сумма со скидкой",o.FR="Sous-total avec remise",o.DE="Zwischensumme mit Rabatt",o.ES="Subtotal con descuento",o.PT="Subtotal com desconto",o.UK="Сума зі знижкою",o.JA="割引後小計",o.CN="减价同小计。",r[8]=o,(o={}).EN="Promo code",o.RU="Промокод",o.FR="Code promo",o.DE="Aktionscode",o.ES="Código promocional",o.PT="Código promocional",o.UK="Промокод",o.JA="プロモコード",o.CN="促销代码。",r[9]=o,(o={}).EN="Discount",o.RU="Скидка",o.FR="Remise",o.DE="Rabatt",o.ES="Descuento",o.PT="Desconto",o.UK="Знижка",o.JA="割引",o.CN="减价。",r[10]=o,(o={}).EN="Minimal order",o.RU="Минимальный заказ",o.FR="Commande minimale",o.DE="Minimale Bestellung",o.ES="Pedido mínimo",o.PT="Pedido mínimo",o.UK="Мінімальне замовлення",o.JA="最小注文価格",o.CN="最小的订货。",r[11]=o,(o={}).EN="Minimal order quantity",o.RU="Минимальное количество в заказе",o.FR="Quantité de commande minimale",o.DE="Mindestbestellmenge",o.ES="Cantidad mínima del pedido",o.PT="Quantidade mínima por pedido",o.UK="Мінімальна кількість у замовленні",o.JA="最小注文数",o.CN="最小的总数。",r[12]=o,(o={}).EN="Sorry, limit has been reached. This is the maximum quantity of goods in stock",o.RU="Извините, достигнут лимит. Это максимально возможное количество товаров в наличии",r[13]=o,(o={}).EN="free",o.RU="бесплатно",o.FR="gratuit",o.DE="kostenlos",o.ES="gratis",o.PT="livre",o.UK="безкоштовно",o.JA="無料で",o.CN="免费",r[14]=o;var a=window.tildaBrowserLang;if(null!=typeof r[t])return void 0!==r[t][a]&&typeof r[t][a]?r[t][a]:r[t].EN}function tcart__nullObj(){var t=new Object;return t.products=[],t.prodamount=0,t.amount=0,t.system="",t}function tcart__loadLocalObj(){var t=null;if("object"==typeof localStorage)try{t=localStorage.getItem("tcart")}catch(t){console.log("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_maxstoredays&&""!=window.tcart_maxstoredays){var r=window.tcart_maxstoredays;0<r?void 0!==window.tcart.updated&&0<window.tcart.updated&&86400*r<Math.floor(Date.now()/1e3)-window.tcart.updated&&(window.tcart=tcart__nullObj()):"0"==r&&(window.tcart=tcart__nullObj())}else void 0!==window.tcart.updated&&0<window.tcart.updated&&2592e3<Math.floor(Date.now()/1e3)-window.tcart.updated&&(window.tcart=tcart__nullObj());void 0!==window.tcart_dontstore&&"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="",void 0!==window.tcart.delivery&&delete window.tcart.delivery,void 0!==window.tcart.promocode&&delete window.tcart.promocode;var o=$(".t706").attr("data-project-currency");void 0!==o&&""!=o&&(window.tcart.currency=o),window.tcart.currency_txt=window.tcart.currency,void 0!==(o=$(".t706").attr("data-project-currency-side"))&&"r"==o&&(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="&nbsp;"+window.tcart.currency_txt,window.tcart.currency_txt_l=""),void 0===(o=$(".t706").attr("data-project-currency-sep"))||"."!=o&&","!=o?"$"==window.tcart.currency||"€"==window.tcart.currency||"USD"==window.tcart.currency||"EUR"==window.tcart.currency?window.tcart.currency_sep=".":window.tcart.currency_sep=",":window.tcart.currency_sep=o,o=$(".t706").attr("data-project-currency-dec"),window.tcart.currency_dec=void 0!==o&&"00"==o?o:"",delete window.tcart.system;var a=$(".t706").attr("data-payment-system");window.tcart.system=void 0!==a&&""!=a?a:"none";var i=$(".t706").attr("data-cart-minorder");void 0!==i&&""!=i&&0<i&&void 0===window.tcart_minorder&&(i=+i,window.tcart_minorder=i,$(".t706__cartwin-prodamount-wrap").prepend('<div class="t706__cartwin-prodamount-minorder" style="opacity:0.5; font-size:14px; font-weight:400;">'+tcart__dict(11,"Minimum order")+": "+tcart__showPrice(i)+"</div>"));var c=$(".t706").attr("data-cart-mincntorder");void 0!==c&&""!=c&&0<c&&void 0===window.tcart_mincntorder&&(c=+c,window.tcart_mincntorder=c,$(".t706__cartwin-prodamount-wrap").prepend('<div class="t706__cartwin-prodamount-mincntorder" style="opacity:0.5; font-size:14px; font-weight:400;">'+tcart__dict(12,"Minimal quantity")+": "+c+"</div>")),tcart__addDelivery(),tcart__updateTotalProductsinCartObj()}function tcart__saveLocalObj(){if(!(void 0!==window.tcart_dontstore&&"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.log("Your web browser does not support storing a Cart data locally.")}}}function tcart__syncProductsObject__LStoObj(){if(!(void 0!==window.tcart_dontstore&&"y"==window.tcart_dontstore||void 0!==window.tcart_maxstoredays&&0==window.tcart_maxstoredays||"object"!=typeof localStorage))try{var t=localStorage.getItem("tcart"),r=JSON.parse(t);"object"==typeof r.products&&(window.tcart.products=r.products,tcart__updateTotalProductsinCartObj())}catch(t){}}function tcart__addEvents(){$(".t706__carticon").click(function(){tcart__openCart()}),$(".t706__cartwin-close").click(function(){tcart__closeCart()}),$(".t706__cartwin-closebtn").click(function(){tcart__closeCart()}),$(".t706").find(".js-form-proccess").attr("data-formcart","y"),$(".t706__cartwin").mousedown(function(t){if(t.target==this){var r=$(window).width()-17;if(t.clientX>r)return;tcart__closeCart()}})}function tcart__addEvent__links(){$('[href^="#order"]').not("[data-link-event-setted]").click(function(t){t.preventDefault();var r=$(this);if(r.attr("data-link-event-setted","yes"),void 0===r.attr("data-dbclk-prevent")||"yes"!=r.attr("data-dbclk-prevent")){r.attr("data-dbclk-prevent","yes"),setTimeout(function(){r.removeAttr("data-dbclk-prevent")},1e3),$("body").hasClass("t-body_popupshowed")&&($("body").removeClass("t-body_popupshowed"),$(".t-popup").removeClass("t-popup_show"),setTimeout(function(){$(".t-popup").not(".t-popup_show").css("display","none")},300),tcart__clearProdUrl());var o=r.attr("href"),a="0",i="",c="",d="",n="",e="",s="",_="";if("#order:"==o.substring(0,7)){var w=o.substring(7);if(void 0!==w&&""!=w){if(0<w.indexOf(":::")){var u=w.indexOf(":::");if(0<w.indexOf("=")&&w.indexOf("=")<w.indexOf(":::")){var l=w.substring(u+3);w=w.substring(0,u)}}var p;if(0<w.indexOf("="))void 0!==(p=w.split("="))[0]&&(i=p[0]),void 0!==p[1]&&(a=p[1]),a=tcart__cleanPrice(a);else i=w;if(void 0!==l&&""!=l)if(0<l.indexOf("="))void 0!==(p=l.split("="))[0]&&void 0!==p[1]&&""!=p[0]&&""!=p[1]&&"image"==p[0]&&0<p[1].indexOf("tildacdn.com")&&(c=p[1]);""==s&&void 0===(s=r.closest(".r").attr("id").replace("rec",""))&&(s="")}}var m=$(this).closest(".js-product");if(void 0!==m){if(""==i&&void 0===(i=m.find(".js-product-name").text())&&(i=""),""!=a&&0!=a||(a=tcart__cleanPrice(a=m.find(".js-product-price").text())),""==c)if(void 0!==m.attr("data-product-img")&&""!=m.attr("data-product-img"))c=m.attr("data-product-img");else{var v=m.find(".js-product-img");if(void 0!==v&&(v.is("img")&&(c=v.attr("src")),v.is("div"))){c="";var y=v.css("background-image");void 0!==y&&""!=y&&(c=y.replace("url(","").replace(")","").replace(/\"/gi,""))}}""==n&&void 0===(n=m.attr("data-product-lid"))&&(n=""),""==e&&void 0===(e=m.attr("data-product-uid"))&&(e=""),""==s&&void 0===(s=m.closest(".r").attr("id").replace("rec",""))&&(s=""),""==_&&void 0===(_=m.attr("data-product-inv"))&&(_="");var f=[];m.find(".js-product-edition-option").each(function(){var t=$(this),r=t.find(".js-product-edition-option-name").text(),o=t.find("option:selected").val(),a=t.find("option:selected").attr("data-product-edition-variant-price");if(a=tcart__cleanPrice(a),void 0!==r&&void 0!==o){var i={};""!=r&&(r=tcart__escapeHtml(r)),""!=o&&(o=(o=tcart__escapeHtml(o)).replace(/(?:\r\n|\r|\n)/g,"")),1<r.length&&":"==r.charAt(r.length-1)&&(r=r.substring(0,r.length-1)),i.option=r,i.variant=o,i.price=a,f.push(i)}}),m.find(".js-product-option").each(function(){var t=$(this),r=t.find(".js-product-option-name").text(),o=t.find("option:selected").val(),a=t.find("option:selected").attr("data-product-variant-price");if(a=tcart__cleanPrice(a),void 0!==r&&void 0!==o){var i={};""!=r&&(r=tcart__escapeHtml(r)),""!=o&&(o=(o=tcart__escapeHtml(o)).replace(/(?:\r\n|\r|\n)/g,"")),1<r.length&&":"==r.charAt(r.length-1)&&(r=r.substring(0,r.length-1)),i.option=r,i.variant=o,i.price=a,f.push(i)}}),""==d&&void 0===(d=m.find(".js-product-sku").text())&&(d="")}if(""!=i||""!=a&&0!=a){""==i&&(i="NoName"),""==a&&(a=0),""!=i&&(i=tcart__escapeHtml(i)),""!=c&&(c=tcart__escapeHtmlImg(c));var h={};if(h.name=i,h.price=a,h.img=c,h.recid=s,h.lid=n,void 0!==f&&0<f.length&&(h.options=f),void 0!==d&&""!=d&&(d=tcart__escapeHtml(d),h.sku=d),void 0!==e&&""!=e&&(h.uid=e),void 0!==n&&""!=n&&(h.lid=n),void 0!==_&&0<_&&(h.inv=parseInt(_)),tcart__addProduct(h),void 0!==window.tcart_sendevent_onadd&&"y"==window.tcart_sendevent_onadd&&window.Tilda&&"function"==typeof Tilda.sendEventToStatistics){var b="/tilda/cart/add/";0<s&&(b+=s),0<n&&(b+="-"+n);var g=i,P=a,x="";void 0!==f&&0<f.length&&$.each(f,function(t,r){x+=r.option+": "+r.variant+"; "});var C={ecommerce:{add:{products:[{recid:s,lid:n,sku:d,name:i,price:a,variant:x,quantity:1}]}}};Tilda.sendEventToStatistics(b,g,C,P)}}}})}function tcart__addProduct(i){var c=Math.floor(Date.now()/1e3);tcart__syncProductsObject__LStoObj();var t=window.tcart.products,d="";0<t.length&&$.each(t,function(t,r){if(void 0!==window.tcart_oneproduct&&"y"==window.tcart_oneproduct){if(r.name==i.name&&r.price==i.price){if(void 0===r.options&&void 0===i.options&&void 0===r.sku&&void 0===i.sku)return!(d="yes");if(void 0===r.options&&void 0===i.options&&void 0!==r.sku&&void 0!==i.sku&&r.sku==i.sku)return!(d="yes")}}else if(r.name==i.name&&r.price==i.price){var o="y",a="";if("object"==typeof r.options&&"object"==typeof i.options&&$.each(r.options,function(t,r){if("object"==typeof r&&"object"==typeof i.options[t]){if(r.option!==i.options[t].option||r.variant!==i.options[t].variant||r.price!==i.options[t].price)return o=!1}else if(void 0===r||void 0===i.options[t])return o=!1}),(void 0===r.sku&&void 0===i.sku||r.sku==i.sku)&&(a="y"),"y"==o&&"y"==a)return 0<window.tcart.products[t].quantity&&void 0!==i.inv&&0<i.inv&&window.tcart.products[t].quantity==i.inv?alert(tcart__dict(13,"Sorry, limit reached, this is the maximum quantity of goods in stock")):(window.tcart.products[t].quantity++,window.tcart.products[t].amount=window.tcart.products[t].price*window.tcart.products[t].quantity,window.tcart.products[t].amount=tcart__roundPrice(window.tcart.products[t].amount),window.tcart.products[t].ts=c),!(d="yes")}}),""==d&&(i.amount=i.price,i.quantity=1,i.ts=c,window.tcart.products.push(i)),tcart__updateTotalProductsinCartObj(),tcart__reDrawCartIcon(),tcart__saveLocalObj(),"yes"==$(".t706").attr("data-opencart-onorder")?setTimeout(function(){tcart__openCart()},10):($(".t706__carticon").addClass("t706__carticon_neworder"),setTimeout(function(){$(".t706__carticon").removeClass("t706__carticon_neworder")},2e3))}function tcart__updateTotalProductsinCartObj(){var t=window.tcart.products;if(0<t.length){var o=0,a=0;$.each(t,function(t,r){o+=+r.quantity,a=+a+ +r.amount}),a=tcart__roundPrice(a),window.tcart.total=o;var r=window.tcart.prodamount=a;if("object"==typeof window.tcart.promocode&&void 0!==window.tcart.promocode.promocode&&""!=window.tcart.promocode.promocode){var i=0;void 0!==window.tcart.promocode.discountsum&&0<window.tcart.promocode.discountsum?i=+window.tcart.promocode.discountsum:void 0!==window.tcart.promocode.discountpercent&&0<window.tcart.promocode.discountpercent?i=tcart__roundPrice(r*window.tcart.promocode.discountpercent*1/100):console.log("Cart Some error."),(r=tcart__roundPrice(r-=i))<0&&(r=0),window.tcart.prodamount_discountsum=i,window.tcart.prodamount_withdiscount=r}"object"==typeof window.tcart.delivery&&void 0!==window.tcart.delivery.price&&0<window.tcart.delivery.price&&0<window.tcart.prodamount&&(void 0!==window.tcart.delivery.freedl&&0<window.tcart.delivery.freedl&&r>=window.tcart.delivery.freedl||(r+=+window.tcart.delivery.price)),0<r&&(r=tcart__roundPrice(r)),window.tcart.amount=r}else window.tcart.total=0,window.tcart.prodamount=0,window.tcart.amount=0}function tcart__reDrawCartIcon(){var t=window.tcart,r=$(".t706__carticon");1==t.total&&(r.css("opacity",0),r.animate({opacity:1},300)),0<t.total?(r.addClass("t706__carticon_showed"),r.find(".t706__carticon-counter").html(t.total)):(r.removeClass("t706__carticon_showed"),r.find(".t706__carticon-counter").html("")),$(".t706__carticon-text").html("=&nbsp;"+tcart__showPrice(window.tcart.prodamount))}function tcart__openCart(){$(".t706__carticon").removeClass("t706__carticon_showed"),$("body").addClass("t706__body_cartwinshowed"),setTimeout(function(){tcart__lockScroll()},500),tcart__syncProductsObject__LStoObj();var t=$(".t706__cartwin");if(t.css("opacity",0),t.addClass("t706__cartwin_showed"),t.animate({opacity:1},300),tcart__reDrawProducts(),tcart__reDrawTotal(),$(document).keyup(tcart__keyUpFunc),"y"==window.lazy)try{t_lazyload_update()}catch(t){console.log("js lazyload not loaded")}}function tcart__reDrawProducts(){var t=$(".t706__cartwin-products"),r=window.tcart.products,o="";if(0<r.length&&$.each(r,function(t,r){""!=r.img&&(o="yes")}),0<r.length){var a="";$.each(r,function(t,r){a+='<div class="t706__product" data-cart-product-i="'+t+'">',"yes"==o&&(a+='<div class="t706__product-thumb"><div class="t706__product-imgdiv" style="background-image:url('+r.img+');"></div></div>'),a+='<div class="t706__product-title t-descr t-descr_sm">',a+=r.name,void 0!==r.options&&0<r.options.length&&(a+='<div style="opacity:0.7;font-size:12px;font-weight:400;">',$.each(r.options,function(t,r){a+="<div>"+r.option+": "+r.variant+"</div>"}),a+="</div>"),void 0!==r.sku&&""!=r.sku&&(a+='<div style="opacity:0.7;font-size:12px;font-weight:400;">',a+=r.sku,a+="</div>"),a+="</div>",void 0!==window.tcart_oneproduct&&"y"==window.tcart_oneproduct?a+='<div class="t706__product-plusminus t-descr t-descr_sm" style="display:none;"><span class="t706__product-quantity">'+r.quantity+"</span></div>":a+='<div class="t706__product-plusminus t-descr t-descr_sm"><span class="t706__product-minus"><img src="https://static.tildacdn.com/lib/linea/c8eecd27-9482-6c4f-7896-3eb09f6a1091/arrows_circle_minus.svg" style="width:16px;height:16px;border:0;"></span><span class="t706__product-quantity">'+r.quantity+'</span><span class="t706__product-plus"><img src="https://static.tildacdn.com/lib/linea/c47d1e0c-6880-dc39-ae34-521197f7fba7/arrows_circle_plus.svg" style="width:16px;height:16px;border:0;"></span></div>',a+='<div class="t706__product-amount t-descr t-descr_sm">',0<r.amount&&(a+=tcart__showPrice(r.amount)),a+="</div>",a+='<div class="t706__product-del"><img src="https://static.tildacdn.com/lib/linea/1bec3cd7-e9d1-2879-5880-19b597ef9f1a/arrows_circle_remove.svg" style="width:20px;height:20px;border:0;"></div>',a+="</div>"}),t.html(a),tcart__addEvents__forProducts()}else t.html("")}function tcart__reDrawTotal(){$(".t706__cartwin-prodamount").html(tcart__showPrice(window.tcart.prodamount)),$(".t706__cartwin-totalamount").html(tcart__showPrice(window.tcart.amount));var t=$(".t706__cartwin-totalamount-info");t.html(""),"object"!=typeof window.tcart.promocode&&"object"!=typeof window.tcart.delivery||(t.css("display","block"),t.append(tcart__dict(2,"Subtotal")+": "+tcart__showPrice(window.tcart.prodamount)+"<br>")),"object"==typeof window.tcart.promocode&&(t.append(tcart__dict(9,"Promo code")+": "+window.tcart.promocode.promocode+(void 0!==window.tcart.promocode.discountpercent?" "+window.tcart.promocode.discountpercent+"% ":"")+"<br>"),t.append(tcart__dict(10,"Discount")+": "+tcart__showPrice(window.tcart.prodamount_discountsum)+"<br>"),0<window.tcart.prodamount_withdiscount?t.append(tcart__dict(8,"Subtotal with discount")+": "+tcart__showPrice(window.tcart.prodamount_withdiscount)+"<br>"):t.append(tcart__dict(8,"Subtotal with discount")+": 0<br>")),"object"==typeof window.tcart.delivery&&void 0!==window.tcart.delivery.name&&void 0!==window.tcart.delivery.price&&0<window.tcart.delivery.price&&(void 0!==window.tcart.delivery.freedl&&0<window.tcart.delivery.freedl&&window.tcart.prodamount>=window.tcart.delivery.freedl&&(window.tcart.prodamount_withdiscount>=window.tcart.delivery.freedl||void 0===window.tcart.prodamount_withdiscount)?t.append(window.tcart.delivery.name+": 0 ("+tcart__dict(14,"free")+")<br>"):t.append(window.tcart.delivery.name+": "+tcart__showPrice(window.tcart.delivery.price)+"<br>")),0==window.tcart.prodamount?$(".t706__cartwin-prodamount-wrap").css("display","none"):$(".t706__cartwin-prodamount-wrap").css("display","block");var r=void 0!==window.tcart_minorder&&0<window.tcart_minorder,o=void 0!==window.tcart_mincntorder&&0<window.tcart_mincntorder;r&&o?(r&&(window.tcart.prodamount>=window.tcart_minorder?$(".t706__cartwin-prodamount-minorder").css("display","none"):($(".t706__cartwin-prodamount-minorder").css("display","block"),$(".t706").find(".t-submit").addClass("t706__submit_disable"))),o&&(window.tcart.total>=window.tcart_mincntorder?$(".t706__cartwin-prodamount-mincntorder").css("display","none"):($(".t706__cartwin-prodamount-mincntorder").css("display","block"),$(".t706").find(".t-submit").addClass("t706__submit_disable"))),window.tcart.prodamount>=window.tcart_minorder&&window.tcart.total>=window.tcart_mincntorder&&$(".t706").find(".t-submit").removeClass("t706__submit_disable")):(r&&(window.tcart.prodamount>=window.tcart_minorder?($(".t706__cartwin-prodamount-minorder").css("display","none"),$(".t706").find(".t-submit").removeClass("t706__submit_disable")):($(".t706__cartwin-prodamount-minorder").css("display","block"),$(".t706").find(".t-submit").addClass("t706__submit_disable"))),o&&(window.tcart.total>=window.tcart_mincntorder?($(".t706__cartwin-prodamount-mincntorder").css("display","none"),$(".t706").find(".t-submit").removeClass("t706__submit_disable")):($(".t706__cartwin-prodamount-mincntorder").css("display","block"),$(".t706").find(".t-submit").addClass("t706__submit_disable")))),0==window.tcart.amount?$(".t706__cartwin-totalamount-wrap").css("display","none"):window.tcart.prodamount==window.tcart.amount?$(".t706__orderform").length&&700<$(".t706__orderform").height()?$(".t706__cartwin-totalamount-wrap").css("display","block"):$(".t706__cartwin-totalamount-wrap").css("display","none"):$(".t706__cartwin-totalamount-wrap").css("display","block"),void 0!==window.tcart.promocode&&($(".t706__cartwin-totalamount-wrap").css("display","block"),0==window.tcart.amount&&$(".t706__cartwin-totalamount").html("0")),void 0!==window.tcart.delivery&&void 0!==window.tcart.delivery.price&&0<window.tcart.delivery.price&&$(".t706__cartwin-totalamount-wrap").css("display","block"),$(".t706__carticon-text").html("=&nbsp;"+tcart__showPrice(window.tcart.prodamount))}function tcart__addEvents__forProducts(){$(".t706__product-plus").click(function(){tcart__product__plus($(this))}),$(".t706__product-minus").click(function(){tcart__product__minus($(this))}),$(".t706__product-del").click(function(){tcart__product__del($(this))}),$(".t706__product-quantity").click(function(){tcart__product__editquantity($(this))})}function tcart__closeCart(){$("body").removeClass("t706__body_cartwinshowed"),tcart__unlockScroll(),void 0!==window.tcart_dontstore&&"y"==window.tcart_dontstore&&("undefind"!=typeof window.tcart&&"undefind"!=typeof window.tcart.products&&(window.tcart.products=[]),tcart__updateTotalProductsinCartObj(),tcart__saveLocalObj(),$(".t706__carticon-counter").html(window.tcart.total),tcart__reDrawTotal(),tcart__reDrawProducts()),0<window.tcart.total&&$(".t706__carticon").addClass("t706__carticon_showed"),tcart__delZeroquantity_inCartObj(),$(document).unbind("keyup",tcart__keyUpFunc),$(".t706__carticon").removeClass("t706__carticon_neworder"),$(".t706__cartwin").animate({opacity:0},300),setTimeout(function(){$(".t706__cartwin").removeClass("t706__cartwin_showed"),$(".t706__cartwin").css("opacity","1")},300),void 0!==window.tcart_success&&"yes"==window.tcart_success&&location.reload()}function tcart__keyUpFunc(t){27==t.keyCode&&tcart__closeCart()}function tcart__product__plus(t){var r=t.closest(".t706__product"),o=r.attr("data-cart-product-i");0<window.tcart.products[o].quantity&&void 0!==window.tcart.products[o].inv&&0<window.tcart.products[o].inv&&window.tcart.products[o].inv==window.tcart.products[o].quantity?alert(tcart__dict(13,"Sorry, limit reached, this is the maximum quantity of goods in stock")):(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),r.find(".t706__product-quantity").html(window.tcart.products[o].quantity),0<window.tcart.products[o].amount?r.find(".t706__product-amount").html(tcart__showPrice(window.tcart.products[o].amount)):r.find(".t706__product-amount").html(""),tcart__updateTotalProductsinCartObj(),$(".t706__carticon-counter").html(window.tcart.total),tcart__reDrawTotal(),tcart__saveLocalObj())}function tcart__product__minus(t){var r=t.closest(".t706__product"),o=r.attr("data-cart-product-i");0<window.tcart.products[o].quantity&&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),r.find(".t706__product-quantity").html(window.tcart.products[o].quantity),0<window.tcart.products[o].amount&&r.find(".t706__product-amount").html(tcart__showPrice(window.tcart.products[o].amount)),0==window.tcart.products[o].quantity&&tcart__product__del(t),tcart__updateTotalProductsinCartObj(),$(".t706__carticon-counter").html(window.tcart.total),tcart__reDrawTotal(),tcart__saveLocalObj()}function tcart__product__del(t){var r=t.closest(".t706__product"),o=r.attr("data-cart-product-i");window.tcart.products.splice(o,1),r.remove(),tcart__updateTotalProductsinCartObj(),$(".t706__carticon-counter").html(window.tcart.total),tcart__reDrawTotal(),tcart__saveLocalObj(),tcart__reDrawProducts(),0==window.tcart.products.length&&tcart__closeCart()}function tcart__product__editquantity(r){if(!r.find(".t706__product-quantity-inp").length){var o=r.closest(".t706__product"),a=o.attr("data-cart-product-i"),t=r.text(),i='<input type="text" name="tilda-tmp-cart-qnt" class="t706__product-quantity-inp" value="'+(0==t||0<t?parseInt(t):1)+'" style="width:30px;">';r.html(i),r.addClass("t706__product-quantity_editing");var c=r.find(".t706__product-quantity-inp");c.focus(function(){var t=this;setTimeout(function(){t.selectionStart=t.selectionEnd=1e4},0)}),c.focus(),c.focusout(function(){var t=c.val();t=parseInt(t),tcart__product__updateQuantity(r,o,a,0<t?t:1),r.text(window.tcart.products[a].quantity),r.removeClass("t706__product-quantity_editing")})}}function tcart__product__updateQuantity(t,r,o,a){0<a?(void 0!==window.tcart.products[o].inv&&0<window.tcart.products[o].inv&&a>window.tcart.products[o].inv&&(alert(tcart__dict(13,"Sorry, limit reached, this is the maximum quantity of goods in stock")),a=window.tcart.products[o].inv),window.tcart.products[o].quantity=a,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),r.find(".t706__product-quantity").html(window.tcart.products[o].quantity),0<window.tcart.products[o].amount?r.find(".t706__product-amount").html(tcart__showPrice(window.tcart.products[o].amount)):r.find(".t706__product-amount").html("")):tcart__product__del(t),tcart__updateTotalProductsinCartObj(),$(".t706__carticon-counter").html(window.tcart.total),tcart__reDrawTotal(),tcart__saveLocalObj(),0==a&&tcart__reDrawProducts()}function tcart__delZeroquantity_inCartObj(){var t=window.tcart.products,o="";0<t.length&&$.each(t,function(t,r){void 0!==r&&0==r.quantity&&(window.tcart.products.splice(t,1),o="yes")}),"yes"==o&&tcart__saveLocalObj()}function tcart__drawBottomTotalAmount(){$(".t706 .t-form__errorbox-middle").before('<div class="t706__cartwin-totalamount-wrap t-descr t-descr_xl"><div class="t706__cartwin-totalamount-info" style="font-size:14px; padding-bottom:10px; font-weight:400;"></div><span class="t706__cartwin-totalamount-label">Total:&nbsp;</span><span class="t706__cartwin-totalamount"></span></div>')}function tcart__addDelivery(){var t=$(".t706 .t-form .t-radio__wrapper-delivery");if(0!==t.length){var r=$(".t706 .t-form .t-radio__wrapper-delivery input:checked").val(),o=$(".t706 .t-form .t-radio__wrapper-delivery input:checked").attr("data-delivery-price");if(void 0!==r&&void 0!==o&&""!=r){o=tcart__cleanPrice(o);var a=r.indexOf("=");0<a&&(r=(r=r.substring(0,a)).trim()),window.tcart.delivery={},window.tcart.delivery.name=r,window.tcart.delivery.price=o,void 0!==(t=$(".t706 .t-form .t-radio__wrapper-delivery")).attr("data-delivery-free")&&0<t.attr("data-delivery-free")&&(window.tcart.delivery.freedl=parseInt(t.attr("data-delivery-free")))}var i=$(".t706 .t-form .t-radio__wrapper-delivery input");i.length&&i.change(function(){var t=$(".t706 .t-form .t-radio__wrapper-delivery input:checked").val(),r=$(".t706 .t-form .t-radio__wrapper-delivery input:checked").attr("data-delivery-price");if(void 0!==t&&void 0!==r){if(r=tcart__cleanPrice(r),""!=t){var o=t.indexOf("=");0<o&&(t=(t=t.substring(0,o)).trim())}window.tcart.delivery={},window.tcart.delivery.name=t,window.tcart.delivery.price=r;var a=$(".t706 .t-form .t-radio__wrapper-delivery");void 0!==a.attr("data-delivery-free")&&0<a.attr("data-delivery-free")&&(window.tcart.delivery.freedl=parseInt(a.attr("data-delivery-free")))}else void 0!==window.tcart.delivery&&delete window.tcart.delivery;tcart__updateTotalProductsinCartObj(),tcart__reDrawTotal()})}}function tcart__updateDelivery(){}function tcart__addPromocode(t){"object"!=typeof window.tcart.promocode?("object"==typeof t&&void 0!==t.promocode&&""!=t.promocode&&(0<t.discountsum||0<t.discountpercent)&&(window.tcart.promocode=t),tcart__updateTotalProductsinCartObj(),tcart__reDrawTotal()):console.log("Error. Promocode already activated before")}function tcart__addEvent__selectpayment(){if(0!=$(".t706").find(".t-input-group_pm").length){var t=$(".t706 .t-form .t-radio__wrapper-payment input");t.length&&(t.change(function(){var t=$(".t706 .t-form .t-radio__wrapper-payment input:checked").attr("data-payment-variant-system");void 0!==t&&""!=t||(t=""),$(".t706").attr("data-payment-variant-system",t),window.tcart.system=t}),$(".t706 .t-form .t-radio__wrapper-payment input:checked").trigger("change"))}}function tcart__escapeHtml(t){var r={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.replace(/[<>"']/g,function(t){return r[t]})}function tcart__escapeHtmlImg(t){var r={"<":"&lt;",">":"&gt;",'"':"&quot;"};return t.replace(/[<>"]/g,function(t){return r[t]})}function tcart__cleanPrice(t){return void 0===t||""==t||0==t?t=0:(t=(t=t.replace(",",".")).replace(/[^0-9\.]/g,""),t=parseFloat(t).toFixed(2),isNaN(t)&&(t=0),(t=+(t=parseFloat(t)))<0&&(t=0)),t}function tcart__roundPrice(t){return void 0===t||""==t||0==t?t=0:(t=parseFloat(t).toFixed(2),(t=+(t=parseFloat(t)))<0&&(t=0)),t}function tcart__showPrice(t){if(void 0===t||0==t||""==t)t="";else{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=window.tcart.currency_txt_l+t+window.tcart.currency_txt_r}return t}function tcart__lockScroll(){if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&!window.MSStream){var t=$("body");if(!t.hasClass("t-body_scroll-locked")){var r=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;t.addClass("t-body_scroll-locked"),t.css("top","-"+r+"px"),t.attr("data-popup-scrolltop",r)}}}function tcart__unlockScroll(){if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&!window.MSStream){var t=$("body");if(t.hasClass("t-body_scroll-locked")){var r=$("body").attr("data-popup-scrolltop");t.removeClass("t-body_scroll-locked"),t.css("top",""),t.removeAttr("data-popup-scrolltop"),window.scrollTo(0,r)}}}function tcart__clearProdUrl(){try{var t=window.location.href;if(r=t.indexOf("#!/tproduct/"),/iPhone|iPad|iPod/i.test(navigator.userAgent)&&r<0&&(r=t.indexOf("%23!/tproduct/"))<0&&(r=t.indexOf("#%21%2Ftproduct%2F")),r<0){var r=t.indexOf("/tproduct/");r<0&&(r=t.indexOf("%2Ftproduct%2F"))}if(r<0)return;t=t.substring(0,r),void 0!==history.replaceState&&window.history.replaceState("","",t)}catch(t){}}