1(self.webpackChunkdo=self.webpackChunkdo||[]).push([[2993],{2653:t=>{t.exports=function t(e){return Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(o){!e.hasOwnProperty(o)||null===e[o]||"object"!=typeof e[o]&&"function"!=typeof e[o]||Object.isFrozen(e[o])||t(e[o])})),e}},2434:(t,e,o)=>{t.exports=function(){return new Promise((function(t){o.e(4692).then(function(e){t(o(4692))}.bind(null,o)).catch(o.oe)}))}},994:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>r});var a=function(t,e,o,a){return new(o||(o=Promise))((function(n,r){function i(t){try{c(a.next(t))}catch(t){r(t)}}function s(t){try{c(a.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(i,s)}c((a=a.apply(t,e||[])).next())}))},n=function(t,e){var o,a,n,r,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(c){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(i=0)),i;)try{if(o=1,a&&(n=2&s[0]?a.return:s[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,s[1])).done)return n;switch(a=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(6===s[0]&&i.label<n[1]){i.label=n[1],n=s;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(s);break}n[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],a=0}finally{o=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};function r(t){return a(this,void 0,void 0,(function(){var e,a,r,i,s,c,d,u,l,p,m,h,f,_,v,y,b,w,g,k,C,A,x,S,O,E,T,N,q,D,M,P,F,I,L,j,B,H,R,Y;return n(this,(function(n){switch(n.label){case 0:return[4,o(2434)()];case 1:return e=n.sent(),[4,o(6696)];case 2:return a=n.sent(),r=a.default("data-do-shop2_cart",t),i=r(),s=window,c=e(t),d=c.children(),u=c.find(".mosaic-shop2-cart__title"),l=c.find(".mosaic-shop2-cart__body"),p=c.find(".mosaic-shop2-cart__products"),m=p.find(".mosaic-shop2-cart__products-list"),h=m.children(),f=h.eq(0).clone(),_=h.eq(1).clone(),v=h.eq(2).clone(),y=c.find(".mosaic-shop2-cart__clean"),b=c.find(".mosaic-shop2-cart__total-count"),w=c.find(".mosaic-shop2-cart__sum"),g=w.find(".mosaic-shop2-cart__sum-price"),k=w.find(".mosaic-shop2-cart__sum-currency"),C=c.find(".mosaic-shop2-cart__empty-note"),A=i.amountBtn,x="mosaic-shop2-cart__inner--empty",S="is-removed",E="",T={},N=function(t){var e=O.shop2,o=e.currency_decimals,a=e.currency_dec_point,n=e.currency_thousands_sep,r="$1".concat(n);return String(t.toFixed(o)).replace(".",a).replace(/(\d)(?=(\d{3})+(?!\d))/g,r)},q=function(){var t=O.shop2.currency_shortname,e="1"===O.shop2.currency_id;return"symbol"===i.currency&&e?"₽":t},D=function(){m.empty(),O.cart.items.length?(O.cart.items.forEach((function(t){var e,o,a=t.alias,n=t.amount,r=t.image,i=t.is_pre_order,s=t.kind_id,c=t.name,d=t.type,u=t.total,l=O.products[s].params,p=l.amount_min,h=l.amount_multiplicity,y=l.unit,b=r.filename?"/d/".concat(r.filename):"/d/fgs16_image-placeholder.png",w=(o="gift"===d?v.clone():i?_.clone():f.clone()).find("img"),g=o.find(".mosaic-shop2-cart__product-name"),k=void 0!==w.attr("src-alt")?"src-alt":"data-src-alt";if(w.attr(((e={src:b})[k]=b,e.alt=c,e.title=c,e)),g.attr("href","/".concat(a)).text(c),"gift"!==d){var C=h||1,x=p||h||O.shop2.my.amount_default||1,E=i?0:N(u),T="";(p||h)&&(x&&(T+="Ð¾Ñ ".concat(x," ").concat(y)),C&&(T+="по ".concat(C," ").concat(y)));var D=o.find(".mosaic-shop2-cart__product-amount-input"),M=o.find(".amount-minus"),P=o.find(".mosaic-shop2-cart__product-amount-multiplicity");M.prop("disabled",n<=x),i||(o.find(".mosaic-shop2-cart__product-sum").text(E),o.find(".mosaic-shop2-cart__product-currency").html(q())),T&&P.length?P.text(T):P.addClass(S),A?D.val(n).attr({"data-kind":s,"data-min":x,"data-multiplicity":C}):D.text(n),M.prop("disabled")||M.removeClass("mosaic-shop2-cart__product-amount-button-disabled").addClass("mosaic-shop2-cart__product-amount-button")}o.appendTo(m)})),y.removeClass(S),p.removeClass(S)):(y.addClass(S),p.addClass(S))},M=function(){var t=O.shop2,e=O.cart,o=O.products;
1e.items.forEach((function(e,a){var n=m.children().eq(a);if(n.length){var r=e.is_pre_order,i=e.amount,s=e.total,c=e.kind_id,d=o[c].params,u=d.amount_min,l=d.amount_multiplicity,p=r?0:N(s),h=u||l||t.my.amount_default||1,f=n.find(".amount-minus"),_=n.find(".mosaic-shop2-cart__product-amount-input");r||n.find(".mosaic-shop2-cart__product-sum").text(p),f.prop("disabled",i<=h),f.prop("disabled")?f.removeClass("mosaic-shop2-cart__product-amount-button").addClass("mosaic-shop2-cart__product-amount-button-disabled"):f.removeClass("mosaic-shop2-cart__product-amount-button-disabled").addClass("mosaic-shop2-cart__product-amount-button"),A?_.val(i):_.text(i)}}))},P=function(){var t=O.shop2_cart;b.length&&b.text(t.total_amount+t.total_pre_order),g.length&&g.text(N(t.total_sum)),k.length&&k.html(q())},F=function(t){fetch("/-/x-api/v1/public/?method=cart/getCartPreview¶m[detail]=true¶m[type]=json").then((function(t){return t.json()})).then((function(e){var o=e.result.data;O=o,E=o.cart.hash,T={hash:E,amounts:o.cart.items},"function"==typeof t&&t()})).catch((function(t){return console.error(t)}))},I=function(){F((function(){var t=O.shop2_cart,e=t.total_amount,o=t.total_pre_order;P(),i.products&&D(),e+o?(d.removeClass(x),C.addClass(S)):(d.addClass(x),C.removeClass(S))}))},L=function(){if(!this.disabled){var t=e(this),o=this instanceof HTMLInputElement?t.val():t.siblings("input").val();if(Number(o)>0){var a=t.closest(".mosaic-shop2-cart__product"),n=m.children().index(a);T.amounts[n].amount=Number(o);try{fetch("/-/x-api/v1/public/?method=cart/update",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(T)}).then((function(t){return t.json()})).then((function(){return e(document).trigger("updateProducts")})).catch((function(t){return console.error(t)}))}catch(t){console.error(t)}}}},j=function(){var t=e(this).closest(".mosaic-shop2-cart__product"),o=t.length?m.children().index(t):0,a="¶m[hash]=".concat(E,"¶m[position]=").concat(o,"¶m[type]=json");fetch("/-/x-api/v1/public/?method=cart/removeItem".concat(a)).then((function(t){return t.json()})).then((function(){e(document).trigger("removeProduct")})).catch((function(t){return console.error(t)}))},B=function(){"shop2"in O&&fetch("".concat(O.shop2.uri,"?mode=cart&action=cleanup")).then((function(t){return t.text()})).then((function(){e(document).trigger("clearProducts")})).catch((function(t){return console.error(t)}))},H=function(){F((function(){P(),i.products&&M()}))},R=function(){F((function(){P(),D(),O.cart.items.length||(d.addClass(x),p.addClass(S),m.empty(),y.addClass(S),C.removeClass(S))}))},Y=function(){F((function(){P(),i.products&&(m.empty(),p.addClass(S),y.addClass(S)),d.addClass(x),C.removeClass(S)}))},function(){i.products&&(c.on("click.shop2cart",".mosaic-shop2-cart__product-delete",j),y.on("click.shop2cart",B),e(document).on("click.shop2cart",".mosaic-shop2-cart__product-amount button",L),e(document).on("change.shop2cart",".mosaic-shop2-cart__product-amount input",L)),"dropdown"===i.type&&u.on("click.shop2cart",(function(){l.toggle()})),s.shop2&&(s.shop2.on("afterCartAddItem",I),s.shop2.on("afterCartRemoveItem",I)),e(document).on("removeProduct",R),e(document).on("clearProducts",Y),e(document).on("updateProducts",H),I()}(),[2]}}))}))}},8610:(t,e,o)=>{"use strict";o.d(e,{$U:()=>a,Ay:()=>c,QF:()=>r,Yb:()=>s});var a,n=o(2653),r="screen",i=o.n(n)()(["(min-width: 1920px)","(min-width: 1440px)","(min-width: 1280px)",r,"(max-width: 991px)","(max-width: 767px)","(max-width: 479px)"]),s=i.indexOf(r);!function(t){t.BIG_SCREEN3=0,t.BIG_SCREEN2=1,t.BIG_SCREEN1=2,t.SCREEN=3,t.TABLET_LANDSCAPE=4,t.TABLET_PORTRAIT=5,t.MOBILE=6}(a||(a={}));const c=i},6696:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>i});var a=o(8610),n={"data-do-accordion":["isOpened","closeOther","childrenAsync"],"data-do-auth_popup_btn":["showUserName","showSettings","showOrders","showLogout","popupAfterAuthorized"],"data-do-form_auth":["isNativeStyle","isDrop","otherHeaderAfterAuth","showUserName","isToggle","isHeader","isRemember","isRegistration","isForgot","showSocial"],"data-do-blocklist":["slider","loop","returnToFirst","swipe","lastSlideArrow","center","controlsGroup","autoplay","childrenAsync","isMarquee","hoverStop"],"data-do-tt_blocklist":["slider","loop","returnToFirst","swipe","lastSlideArrow","center","controlsGroup","autoplay","childrenAsync","isMarquee","hoverStop"],"data-do-checkbox":["required"],"data-do-checkbox_group":["required"],"data-do-content":["image","gallery","text","headers"],"data-do-countdown":["isEnabledDays","isEnabledHours","isEnabledMinutes","isEnabledSeconds"],"data-do-form":["nativeStyle","showTitleAfterSend","disabledNativeStyleSelect"],"data-do-image":["scrollZoom","zoomOnClick"],"data-do-input":["required"],"data-do-input_date":["required"],"data-do-input_date_interval":["required"],"data-do-input_email":["required"],"data-do-input_phone":["required"],"data-do-link_universal":["blank","sidepanel"],"data-do-link_universal_block":["blank","sidepanel"],"data-do-link_universal_button":["blank","sidepanel"],"data-do-popup":["wmshowpopup"],"data-do-radio_group":["required"],"data-do-marquee":["circular","hoverStop","invertHover"],"data-do-menu_column":["dropdown","more","cancelForward","firstClick"],"data-do-menu_horizontal":["cancelForward","more","firstClickOpen"],"data-do-menu_vertical":["cancelForward","firstClickOpen"],"data-do-s3_article":["isHeadBlock","isAllLink","isImage","isDate","isAnnounce","isLinkMore","isDay","isMonth","isYear"],"data-do-s3_article2":["isHeadBlock","isAllLink","isImage","isDate","isAnnounce","isLinkMore","isDay","isYear"],"data-do-s3_board":["isDate","isDay","isMonth","isYear"],"data-do-s3_news_constructor":["isHeadNews","isAllNews","isImage","isDate","isAnnounce","isLinkMore","isDay","isYear"],"data-do-s3_unified_news_constructor":["isHeadBlock","isAllLink","isImage","isDate","isAnnouncement","isLinkMore","isDay","isYear","isTime","isMonthFirst","isDelimiterDayMonth","isDelimiterMonthYear","isDelimiterYearTime","isCustomDateFormat","isTags","isDelimiterTag"],"data-do-s3_vote_constructor":["isResults","isResultsInfo","isNativeStyle","isHideTextResult","isOtherAnswer"],"data-do-section":["scroll","smooth"],"data-do-select":["required"],"data-do-select_multiple":["required"],"data-do-slider":["loop","returnToFirst","lastSlideArrow","controlsGroup","swipe","autoplay","childrenAsync","previews","thumbs","thumbsSlider","independentScrolling","thumbsCenterMode"],"data-do-spoiler":["isOpened"],"data-do-svg_image":["stretch"],"data-do-tabs":["childrenAsync"],"data-do-textarea":["required"],"data-do-upload_file":["required"],"data-do-video":["viewportAutoPlay"],"data-do-video2":["viewportAutoPlay"],"data-do-shop2_cart":["products","amountBtn"],"data-do-shop2_search":["nativeStyles","price","name","article","text","folders","vendors","flags","perpage"],"data-do-shop2_folders":["cancelForward","firstClickOpen","icon","more","dropdown"],"data-do-shop2_vendors":["controlsGroup","loop","center","lastSlideArrow","swipe","autoplay","marqueeHoverStop"],"data-do-shop2_products_list":["nativeStyles","flags","price","anonce","vendor","rating","amount","actions","buttons","article","options","compare","favorite","controlsGroup","loop","slidesToScroll","center","lastSlideArrow","draggable","autoplay","pauseOnHover"]};const r=function(t,e){if(t in n){var o=n[t],a=function(t){for(var e in t)if(e in t){var n=t[e];o.includes(e)&&"boolean"!=typeof n?t[e]="0"!==n&&Boolean(n):"string"!=typeof n||Number.isNaN(+n)||(t[e]=Number(n)),"object"==typeof n&&a(n)}};a(e)}};function i(t,e){let o={};try{o=JSON.parse(e.getAttribute(t)||"")}catch(o){return void console.warn(`Error media: ${t} - ${e}`)}const n=a.Ay.slice(0,3),i=a.Ay.slice(4).reverse();return function(e){const s=a.Ay[e]||n.find((t=>window.matchMedia(t).matches))||i.find((t=>window.matchMedia(t).matches))||a.QF;let c={};const d=a.Ay.indexOf(s);let u=d>a.Yb?a.Ay.slice(a.Yb):a.Ay.slice(d,a.Yb+1).reverse();for(let t=0;t<u.length;t++){const e=u[t];if(Object.assign(c,o[e]),e===s)break}return r(t,c),c}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.