try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="95032ac9-badd-4a53-ae7e-c12fc1f7b80a",e._sentryDebugIdIdentifier="sentry-dbid-95032ac9-badd-4a53-ae7e-c12fc1f7b80a")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6309],{93415:function(e,a,t){Promise.resolve().then(t.t.bind(t,38173,23)),Promise.resolve().then(t.t.bind(t,231,23)),Promise.resolve().then(t.t.bind(t,86745,23)),Promise.resolve().then(t.bind(t,13627)),Promise.resolve().then(t.bind(t,76566)),Promise.resolve().then(t.bind(t,76196)),Promise.resolve().then(t.bind(t,4853)),Promise.resolve().then(t.bind(t,82598)),Promise.resolve().then(t.t.bind(t,24400,23)),Promise.resolve().then(t.t.bind(t,82354,23)),Promise.resolve().then(t.bind(t,66910)),Promise.resolve().then(t.bind(t,63626)),Promise.resolve().then(t.bind(t,54826)),Promise.resolve().then(t.t.bind(t,30645,23)),Promise.resolve().then(t.bind(t,24009)),Promise.resolve().then(t.bind(t,52857)),Promise.resolve().then(t.bind(t,2530)),Promise.resolve().then(t.bind(t,5714)),Promise.resolve().then(t.bind(t,88737)),Promise.resolve().then(t.bind(t,16769)),Promise.resolve().then(t.bind(t,99459)),Promise.resolve().then(t.t.bind(t,62718,23)),Promise.resolve().then(t.t.bind(t,77247,23)),Promise.resolve().then(t.t.bind(t,94280,23)),Promise.resolve().then(t.t.bind(t,92405,23)),Promise.resolve().then(t.t.bind(t,55508,23)),Promise.resolve().then(t.t.bind(t,43059,23)),Promise.resolve().then(t.t.bind(t,1202,23)),Promise.resolve().then(t.bind(t,55413)),Promise.resolve().then(t.bind(t,21012)),Promise.resolve().then(t.bind(t,152)),Promise.resolve().then(t.bind(t,76782)),Promise.resolve().then(t.bind(t,79969)),Promise.resolve().then(t.bind(t,11306)),Promise.resolve().then(t.bind(t,63513)),Promise.resolve().then(t.bind(t,77948)),Promise.resolve().then(t.bind(t,7033)),Promise.resolve().then(t.bind(t,30301)),Promise.resolve().then(t.bind(t,55438)),Promise.resolve().then(t.bind(t,42925)),Promise.resolve().then(t.bind(t,28689)),Promise.resolve().then(t.bind(t,40781)),Promise.resolve().then(t.bind(t,16715)),Promise.resolve().then(t.bind(t,14065)),Promise.resolve().then(t.bind(t,49432)),Promise.resolve().then(t.bind(t,77716)),Promise.resolve().then(t.bind(t,73288)),Promise.resolve().then(t.bind(t,71148)),Promise.resolve().then(t.bind(t,42485)),Promise.resolve().then(t.bind(t,65802)),Promise.resolve().then(t.bind(t,96016)),Promise.resolve().then(t.bind(t,88980)),Promise.resolve().then(t.bind(t,24543)),Promise.resolve().then(t.bind(t,70822)),Promise.resolve().then(t.bind(t,19545)),Promise.resolve().then(t.bind(t,74003)),Promise.resolve().then(t.bind(t,93896)),Promise.resolve().then(t.bind(t,47556)),Promise.resolve().then(t.bind(t,50542)),Promise.resolve().then(t.bind(t,50507)),Promise.resolve().then(t.bind(t,67858)),Promise.resolve().then(t.bind(t,92578)),Promise.resolve().then(t.bind(t,5507)),Promise.resolve().then(t.bind(t,73959)),Promise.resolve().then(t.bind(t,11246)),Promise.resolve().then(t.bind(t,98807)),Promise.resolve().then(t.bind(t,77348)),Promise.resolve().then(t.bind(t,65226)),Promise.resolve().then(t.bind(t,66118)),Promise.resolve().then(t.bind(t,14757)),Promise.resolve().then(t.bind(t,80069)),Promise.resolve().then(t.bind(t,7363)),Promise.resolve().then(t.bind(t,67042)),Promise.resolve().then(t.bind(t,72062)),Promise.resolve().then(t.bind(t,43404)),Promise.resolve().then(t.bind(t,83193)),Promise.resolve().then(t.bind(t,89724)),Promise.resolve().then(t.bind(t,59324)),Promise.resolve().then(t.bind(t,81549)),Promise.resolve().then(t.bind(t,680)),Promise.resolve().then(t.bind(t,39964)),Promise.resolve().then(t.bind(t,55967)),Promise.resolve().then(t.bind(t,13363)),Promise.resolve().then(t.bind(t,43099)),Promise.resolve().then(t.bind(t,34473)),Promise.resolve().then(t.bind(t,8200)),Promise.resolve().then(t.bind(t,37640)),Promise.resolve().then(t.bind(t,9217)),Promise.resolve().then(t.bind(t,51710)),Promise.resolve().then(t.bind(t,81328)),Promise.resolve().then(t.bind(t,74212)),Promise.resolve().then(t.bind(t,63642)),Promise.resolve().then(t.bind(t,24946))},58918:function(e,a,t){e.exports=t(10087)},10087:function(e,a,t){"use strict";var n,i=(n=t(2265))&&"object"==typeof n&&"default"in n?n.default:n,l=t(54887);function r(){return(r=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var o=function(e,a,t,n,i,l,r,s){if(!e){var o;if(void 0===a)o=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[t,n,i,l,r,s],d=0;(o=Error(a.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw o.framesToPop=1,o}};function c(e,a,t){if("selectionStart"in e&&"selectionEnd"in e)e.selectionStart=a,e.selectionEnd=t;else{var n=e.createTextRange();n.collapse(!0),n.moveStart("character",a),n.moveEnd("character",t-a),n.select()}}var d={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};function u(e,a,t){var n="",i="",l=null,r=[];if(void 0===a&&(a="_"),null==t&&(t=d),!e||"string"!=typeof e)return{maskChar:a,formatChars:t,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var s=!1;return e.split("").forEach(function(e){s=!s&&"\\"===e||(s||!t[e]?(r.push(n.length),n.length===r.length-1&&(i+=e)):l=n.length+1,n+=e,!1)}),{maskChar:a,formatChars:t,prefix:i,mask:n,lastEditablePosition:l,permanents:r}}function m(e,a){return -1!==e.permanents.indexOf(a)}function h(e,a,t){var n=e.mask,i=e.formatChars;return!!t&&(m(e,a)?n[a]===t:new RegExp(i[n[a]]).test(t))}function v(e,a){return a.split("").every(function(a,t){return m(e,t)||!h(e,t,a)})}function _(e,a){var t=e.maskChar,n=e.prefix;if(!t){for(;a.length>n.length&&m(e,a.length-1);)a=a.slice(0,a.length-1);return a.length}for(var i=n.length,l=a.length;l>=n.length;l--){var r=a[l];if(!m(e,l)&&h(e,l,r)){i=l+1;break}}return i}function p(e,a){return _(e,a)===e.mask.length}function x(e,a){var t=e.maskChar,n=e.mask,i=e.prefix;if(!t){for((a=f(e,"",a,0)).length<i.length&&(a=i);a.length<n.length&&m(e,a.length);)a+=n[a.length];return a}if(a)return f(e,x(e,""),a,0);for(var l=0;l<n.length;l++)m(e,l)?a+=n[l]:a+=t;return a}function f(e,a,t,n){var i=e.mask,l=e.maskChar,r=e.prefix,s=t.split(""),o=p(e,a);return!l&&n>a.length&&(a+=i.slice(a.length,n)),s.every(function(t){for(var s,c;m(e,c=n)&&t!==i[c];){if(n>=a.length&&(a+=i[n]),s=n,l&&m(e,s)&&t===l)return!0;if(++n>=i.length)return!1}return!h(e,n,t)&&t!==l||(n<a.length?a=l||o||n<r.length?a.slice(0,n)+t+a.slice(n+1):x(e,a=a.slice(0,n)+t+a.slice(n)):l||(a+=t),++n<i.length)}),a}function g(e,a){for(var t=e.mask,n=a;n<t.length;++n)if(!m(e,n))return n;return null}function b(e){return e||0===e?e+"":""}function j(e){return"function"==typeof e}function N(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function w(e){return(N()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function C(e){(N()||clearTimeout)(e)}var A=function(e){function a(a){var t=e.call(this,a)||this;t.focused=!1,t.mounted=!1,t.previousSelection=null,t.selectionDeferId=null,t.saveSelectionLoopDeferId=null,t.saveSelectionLoop=function(){t.previousSelection=t.getSelection(),t.saveSelectionLoopDeferId=w(t.saveSelectionLoop)},t.runSaveSelectionLoop=function(){null===t.saveSelectionLoopDeferId&&t.saveSelectionLoop()},t.stopSaveSelectionLoop=function(){null!==t.saveSelectionLoopDeferId&&(C(t.saveSelectionLoopDeferId),t.saveSelectionLoopDeferId=null,t.previousSelection=null)},t.getInputDOMNode=function(){if(!t.mounted)return null;var e=l.findDOMNode(s(s(t))),a="undefined"!=typeof window&&e instanceof window.Element;if(e&&!a)return null;if("INPUT"!==e.nodeName&&(e=e.querySelector("input")),!e)throw Error("react-input-mask: inputComponent doesn't contain input node");return e},t.getInputValue=function(){var e=t.getInputDOMNode();return e?e.value:null},t.setInputValue=function(e){var a=t.getInputDOMNode();a&&(t.value=e,a.value=e)},t.setCursorToEnd=function(){var e=_(t.maskOptions,t.value),a=g(t.maskOptions,e);null!==a&&t.setCursorPosition(a)},t.setSelection=function(e,a,n){void 0===n&&(n={});var i=t.getInputDOMNode(),l=t.isFocused();i&&l&&(n.deferred||c(i,e,a),null!==t.selectionDeferId&&C(t.selectionDeferId),t.selectionDeferId=w(function(){t.selectionDeferId=null,c(i,e,a)}),t.previousSelection={start:e,end:a,length:Math.abs(a-e)})},t.getSelection=function(){return function(e){var a=0,t=0;if("selectionStart"in e&&"selectionEnd"in e)a=e.selectionStart,t=e.selectionEnd;else{var n=document.selection.createRange();n.parentElement()===e&&(a=-n.moveStart("character",-e.value.length),t=-n.moveEnd("character",-e.value.length))}return{start:a,end:t,length:t-a}}(t.getInputDOMNode())},t.getCursorPosition=function(){return t.getSelection().start},t.setCursorPosition=function(e){t.setSelection(e,e)},t.isFocused=function(){return t.focused},t.getBeforeMaskedValueChangeConfig=function(){var e=t.maskOptions,a=e.mask,n=e.maskChar,i=e.permanents,l=e.formatChars;return{mask:a,maskChar:n,permanents:i,alwaysShowMask:!!t.props.alwaysShowMask,formatChars:l}},t.isInputAutofilled=function(e,a,n,i){var l=t.getInputDOMNode();try{if(l.matches(":-webkit-autofill"))return!0}catch(e){}return!t.focused||i.end<n.length&&a.end===e.length},t.onChange=function(e){var a,n,i,l,r,o,c,d,u,v,_,p,b,N,w,C,A,y,k,I=s(s(t)).beforePasteState,S=s(s(t)).previousSelection,P=t.props.beforeMaskedValueChange,R=t.getInputValue(),M=t.value,B=t.getSelection();t.isInputAutofilled(R,B,M,S)&&(M=x(t.maskOptions,""),S={start:0,end:0,length:0}),I&&(S=I.selection,M=I.value,B={start:S.start+R.length,end:S.start+R.length,length:0},R=M.slice(0,S.start)+R+M.slice(S.end),t.beforePasteState=null);var L=(a=t.maskOptions,n=R,i=B,l=M,r=S,p=a.mask,b=a.prefix,N=a.lastEditablePosition,w=n,C="",A=0,y=0,k=Math.min(r.start,i.start),i.end>r.start?(o=C=w.slice(r.start,i.end),c=k,d=a.mask,u=a.maskChar,v=o.split(""),_=c,v.every(function(e){for(var t;m(a,t=c)&&e!==d[t];)if(++c>=d.length)return!1;return(h(a,c,e)||e===u)&&c++,c<d.length}),y=(A=c-_)?r.length:0):w.length<l.length&&(y=l.length-w.length),w=l,y&&(1!==y||r.length||(k=r.start===i.start?g(a,i.start):function(e,a){for(var t=a;0<=t;--t)if(!m(e,t))return t;return null}(a,i.start)),w=function(e,a,t,n){var i=t+n,l=e.maskChar,r=e.mask,s=e.prefix,o=a.split("");if(l)return o.map(function(a,n){return n<t||i<=n?a:m(e,n)?r[n]:l}).join("");for(var c=i;c<o.length;c++)m(e,c)&&(o[c]="");return t=Math.max(s.length,t),o.splice(t,i-t),x(e,a=o.join(""))}(a,w,k,y)),w=f(a,w,C,k),(k+=A)>=p.length?k=p.length:k<b.length&&!A?k=b.length:k>=b.length&&k<N&&A&&(k=g(a,k)),C||(C=null),{value:w=x(a,w),enteredString:C,selection:{start:k,end:k}}),O=L.enteredString,T=L.selection,E=L.value;if(j(P)){var H=P({value:E,selection:T},{value:M,selection:S},O,t.getBeforeMaskedValueChangeConfig());E=H.value,T=H.selection}t.setInputValue(E),j(t.props.onChange)&&t.props.onChange(e),t.isWindowsPhoneBrowser?t.setSelection(T.start,T.end,{deferred:!0}):t.setSelection(T.start,T.end)},t.onFocus=function(e){var a=t.props.beforeMaskedValueChange,n=t.maskOptions,i=n.mask,l=n.prefix;if(t.focused=!0,t.mounted=!0,i){if(t.value)_(t.maskOptions,t.value)<t.maskOptions.mask.length&&t.setCursorToEnd();else{var r=x(t.maskOptions,l),s=x(t.maskOptions,r),o=_(t.maskOptions,s),c=g(t.maskOptions,o),d={start:c,end:c};if(j(a)){var u=a({value:s,selection:d},{value:t.value,selection:null},null,t.getBeforeMaskedValueChangeConfig());s=u.value,d=u.selection}var m=s!==t.getInputValue();m&&t.setInputValue(s),m&&j(t.props.onChange)&&t.props.onChange(e),t.setSelection(d.start,d.end)}t.runSaveSelectionLoop()}j(t.props.onFocus)&&t.props.onFocus(e)},t.onBlur=function(e){var a=t.props.beforeMaskedValueChange,n=t.maskOptions.mask;if(t.stopSaveSelectionLoop(),t.focused=!1,n&&!t.props.alwaysShowMask&&v(t.maskOptions,t.value)){var i="";j(a)&&(i=a({value:i,selection:null},{value:t.value,selection:t.previousSelection},null,t.getBeforeMaskedValueChangeConfig()).value);var l=i!==t.getInputValue();l&&t.setInputValue(i),l&&j(t.props.onChange)&&t.props.onChange(e)}j(t.props.onBlur)&&t.props.onBlur(e)},t.onMouseDown=function(e){!t.focused&&document.addEventListener&&(t.mouseDownX=e.clientX,t.mouseDownY=e.clientY,t.mouseDownTime=(new Date).getTime(),document.addEventListener("mouseup",function e(a){if(document.removeEventListener("mouseup",e),t.focused){var n=Math.max(Math.abs(a.clientX-t.mouseDownX),Math.abs(a.clientY-t.mouseDownY)),i=(new Date).getTime()-t.mouseDownTime;(n<=10&&i<=200||n<=5&&i<=300)&&t.setCursorToEnd()}})),j(t.props.onMouseDown)&&t.props.onMouseDown(e)},t.onPaste=function(e){j(t.props.onPaste)&&t.props.onPaste(e),e.defaultPrevented||(t.beforePasteState={value:t.getInputValue(),selection:t.getSelection()},t.setInputValue(""))},t.handleRef=function(e){null==t.props.children&&j(t.props.inputRef)&&t.props.inputRef(e)};var n=a.mask,i=a.maskChar,r=a.formatChars,o=a.alwaysShowMask,d=a.beforeMaskedValueChange,p=a.defaultValue,N=a.value;t.maskOptions=u(n,i,r),null==p&&(p=""),null==N&&(N=p);var A=b(N);if(t.maskOptions.mask&&(o||A)&&(A=x(t.maskOptions,A),j(d))){var y=a.value;null==a.value&&(y=p),A=d({value:A,selection:null},{value:y=b(y),selection:null},null,t.getBeforeMaskedValueChangeConfig()).value}return t.value=A,t}a.prototype=Object.create(e.prototype),function(e,a){for(var t=Object.getOwnPropertyNames(a),n=0;n<t.length;n++){var i=t[n],l=Object.getOwnPropertyDescriptor(a,i);l&&l.configurable&&void 0===e[i]&&Object.defineProperty(e,i,l)}}(a.prototype.constructor=a,e);var t=a.prototype;return t.componentDidMount=function(){var e;this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=(e=navigator.userAgent,/windows/i.test(e)&&/phone/i.test(e)),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},t.componentDidUpdate=function(){var e=this.previousSelection,a=this.props,t=a.beforeMaskedValueChange,n=a.alwaysShowMask,i=a.mask,l=a.maskChar,r=a.formatChars,s=this.maskOptions,o=n||this.isFocused(),c=null!=this.props.value,d=c?b(this.props.value):this.value,m=e?e.start:null;if(this.maskOptions=u(i,l,r),this.maskOptions.mask){!s.mask&&this.isFocused()&&this.runSaveSelectionLoop();var h=this.maskOptions.mask&&this.maskOptions.mask!==s.mask;if(s.mask||c||(d=this.getInputValue()),(h||this.maskOptions.mask&&(d||o))&&(d=x(this.maskOptions,d)),h){var f=_(this.maskOptions,d);(null===m||f<m)&&(m=p(this.maskOptions,d)?f:g(this.maskOptions,f))}!this.maskOptions.mask||!v(this.maskOptions,d)||o||c&&this.props.value||(d="");var N={start:m,end:m};if(j(t)){var w=t({value:d,selection:N},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());d=w.value,N=w.selection}this.value=d;var C=this.getInputValue()!==this.value;C?(this.setInputValue(this.value),this.forceUpdate()):h&&this.forceUpdate();var A=!1;null!=N.start&&null!=N.end&&(A=!e||e.start!==N.start||e.end!==N.end),(A||C)&&this.setSelection(N.start,N.end)}else s.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},t.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&C(this.selectionDeferId),this.stopSaveSelectionLoop()},t.render=function(){var e,a=this.props,t=(a.mask,a.alwaysShowMask,a.maskChar,a.formatChars,a.inputRef,a.beforeMaskedValueChange,a.children),n=function(e,a){if(null==e)return{};var t,n,i={},l=Object.keys(e);for(n=0;n<l.length;n++)0<=a.indexOf(t=l[n])||(i[t]=e[t]);return i}(a,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(t){j(t)||o(!1);var l=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],s=r({},n);l.forEach(function(e){return delete s[e]}),e=t(s),l.filter(function(a){return null!=e.props[a]&&e.props[a]!==n[a]}).length&&o(!1)}else e=i.createElement("input",r({ref:this.handleRef},n));var c={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(n.disabled||n.readOnly||(c.onChange=this.onChange,c.onPaste=this.onPaste,c.onMouseDown=this.onMouseDown),null!=n.value&&(c.value=this.value)),e=i.cloneElement(e,c)},a}(i.Component);e.exports=A},13627:function(e,a,t){"use strict";t.d(a,{default:function(){return r}});let n=window.mindbox;async function i(e,a){return n?n("async",{operation:"Website.ViewProductMoon",data:{viewProduct:{product:{ids:{moon:e}},price:a}}}):null}var l=t(2265),r=e=>{let{productId:a,price:t}=e,[n,r]=(0,l.useState)(!1),s=window.location.host;return(0,l.useEffect)(()=>{let e=()=>{window.mindbox&&r(!0)};e();let a=setInterval(e,1e3);return()=>clearInterval(a)},[]),(0,l.useEffect)(()=>{"localhost:3000"!==s&&null!==s&&n&&i(a,t)},[n,a]),null}},76566:function(e,a,t){"use strict";t.d(a,{default:function(){return _}});var n=t(57437),i=t(5449),l=t.n(i),r=t(53267);t(21494);var s=t(87805),o=t(66648),c=t(94954);t(2265);var d=t(57512),u=t.n(d),m=t(87138),h=t(62240),v=e=>{let{product:a}=e,t=(0,h.A)(a.oldPrice,a.price);return(0,n.jsxs)("div",{className:u().container,children:[(0,n.jsx)("div",{className:u().markers}),(0,n.jsx)(m.default,{href:"/card/".concat(a.id),className:u().link,style:{textDecoration:"none",color:"black"},children:(0,n.jsx)("div",{className:u().imageContainer,children:(0,n.jsx)(o.default,{src:a.image.md,alt:"",className:u().image,fill:!0,unoptimized:!0})})}),(0,n.jsx)("div",{className:u().width}),(0,n.jsx)(m.default,{href:"/card/".concat(a.id),className:u().link,style:{textDecoration:"none",color:"black"},children:(0,n.jsxs)("div",{className:u().name,children:[a.name," ",a.shortName]})}),(0,n.jsxs)("div",{className:u().priceContainer,children:[(0,n.jsxs)("span",{className:u().price,children:[(0,h.T)(a.price)," ₽"]}),a.oldPrice>0&&(0,n.jsxs)("span",{className:u().oldPrice,children:[(0,h.T)(a.oldPrice)," ₽"]}),t!==-1/0&&(0,n.jsxs)("div",{className:u().discountContainer,children:[(0,n.jsx)(o.default,{src:c.z6,alt:"",width:"44",height:"22",className:u().discountBorder}),(0,n.jsxs)("span",{className:u().discount,children:["-",t,"%"]})]})]})]})},_=e=>{let{recommendations:a}=e;return a&&0!==a.length?(0,n.jsxs)("div",{className:l().container,children:[(0,n.jsxs)("div",{className:l().topRow,children:[(0,n.jsx)("h2",{className:l().h1,children:"Рекомендуем:"}),a.length>3?(0,n.jsxs)("div",{className:l().buttons,children:[(0,n.jsx)("div",{className:l().left,children:(0,n.jsx)(o.default,{className:l().leftArrow,src:c.Yx,alt:""})}),(0,n.jsx)("div",{className:l().right,children:(0,n.jsx)(o.default,{src:c.Yx,alt:""})})]}):null]}),(0,n.jsx)("div",{className:l().recommended,children:(0,n.jsx)(r.tq,{spaceBetween:30,modules:[s.W_,s.LW],scrollbar:{hide:!1,draggable:!0},navigation:{nextEl:".".concat(l().right),prevEl:".".concat(l().left)},className:l().swiper,breakpoints:{1:{slidesPerView:1,spaceBetween:20},990:{slidesPerView:2,spaceBetween:10},1140:{slidesPerView:3,spaceBetween:10},1400:{slidesPerView:4,spaceBetween:10}},children:a.map((e,a)=>(0,n.jsx)(r.o5,{children:(0,n.jsx)(v,{product:e},"rec-".concat(a))},a))})})]}):null}},76196:function(e,a,t){"use strict";t.d(a,{default:function(){return eh}});var n=t(57437),i=t(2265),l=t(234),r=t.n(l),s=t(66648),o=t(75135),c=t.n(o),d=t(43955),u=t.n(d),m=t(44033),h=t.n(m),v=t(3559),_=t.n(v),p=t(94954),x=e=>{let{title:a,description:t,open:i,setOpen:l}=e;return(0,n.jsxs)("div",{className:_().container,onClick:()=>l(!i),children:[(0,n.jsxs)("div",{className:_().titleContainer,children:[(0,n.jsxs)("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[(0,n.jsx)("div",{className:_().dot}),(0,n.jsx)("p",{className:_().title,children:a.replaceAll('<style type="text/css"><!--td {border: 1px solid #cccccc;}br {mso-data-placement:same-cell;}--></style>\n<p>',"").replaceAll("</p>","").replaceAll("<p>","")})]}),(0,n.jsx)(s.default,{src:p.x7,alt:"arrow",width:"20",height:"12",style:{transform:i?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s",userSelect:"none"},className:_().arrow})]}),(0,n.jsx)("div",{className:_().descriptionContainer,style:{maxHeight:i?"1000px":"0px",overflow:"hidden",transition:"max-height 0.7s"},children:(0,n.jsx)("div",{className:_().description,dangerouslySetInnerHTML:{__html:t}})})]})},f=t(60784),g=t.n(f),b=e=>{let{title:a,description:t,open:i,setOpen:l,image:r}=e;return(0,n.jsxs)("div",{className:g().container,children:[(0,n.jsx)("div",{className:g().titleContainer,children:(0,n.jsxs)("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[(0,n.jsx)("div",{className:g().dot}),(0,n.jsx)("p",{className:g().title,onClick:()=>l(!i),children:a})]})}),i&&(0,n.jsx)("div",{className:g().modalOverlay,onClick:()=>l(!1),children:(0,n.jsxs)("div",{className:g().modal,children:[(0,n.jsx)(s.default,{src:p._v,alt:"close",onClick:e=>{l(!1)},className:g().close}),(0,n.jsx)("div",{className:g().imageContainer,children:(0,n.jsx)(s.default,{src:r,alt:"",fill:!0,style:{marginBottom:"30px"}})}),(0,n.jsx)("p",{className:g().titleMobile,children:a}),(0,n.jsx)("div",{className:g().descriptionText,dangerouslySetInnerHTML:{__html:t}})]})})]})},j=e=>{let{layer:a,index:t}=e,[l,r]=(0,i.useState)(!1),[o,c]=(0,i.useState)(!1),d=()=>{r(!0)},u=()=>{r(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:h().grid,children:[(0,n.jsx)("div",{className:h().imageWrapper,onMouseEnter:()=>d(),onMouseLeave:()=>u(),onClick:()=>c(!o),style:{opacity:l||o?1:.6,transition:"opacity 0.3s"},children:(0,n.jsx)(s.default,{src:a.picture.orig,alt:"picture",fill:!0,className:h().image})}),(0,n.jsx)("div",{className:h().accordion,children:(0,n.jsx)(x,{title:a.title,description:a.description,open:o,setOpen:c})})]},t),(0,n.jsxs)("div",{className:h().mobile,children:[(0,n.jsx)("div",{className:h().mobileImage,onClick:()=>c(!o),children:(0,n.jsx)(s.default,{src:a.picture.sm,alt:"picture",fill:!0,className:h().image})}),(0,n.jsx)(b,{title:a.title,description:a.description,open:o,setOpen:c,image:a.picture.orig})]})]})},N=e=>{let{mattressLayers:a}=e;return a?(0,n.jsxs)("div",{className:u().container,children:[(0,n.jsx)("h1",{className:u().h1,style:{marginTop:"3px"},children:"Инновационные технологии в слоях"}),(0,n.jsx)("h2",{className:u().h2,children:"Выберите слой, что бы узнать о пользе каждого!"}),a.map((e,a)=>(0,n.jsx)("div",{children:(0,n.jsx)(j,{layer:e,index:a})},a))]}):null},w=t(34705),C=t.n(w),A=t(36181),y=t(87805),k=t(53267),I=e=>{let{pictures:a,closeModal:t,modalIsOpen:i,currentIndex:l,interiors:r}=e;return((0,A.Z)(i),i)?(0,n.jsx)("div",{className:C().modalOverlay,children:(0,n.jsxs)("div",{className:C().modal,children:[(0,n.jsx)("button",{className:C().closeButton,onClick:t,children:(0,n.jsx)(s.default,{src:p._v,alt:"closeX"})}),(0,n.jsxs)(k.tq,{modules:[y.tl,y.W_,y.LG],initialSlide:l,navigation:{nextEl:".".concat(C().right),prevEl:".".concat(C().left)},pagination:{clickable:!0,type:"bullets",bulletClass:"swiper-pagination-bullet ".concat(C().paginationBullet),bulletActiveClass:"swiper-pagination-bullet-active ".concat(C().paginationActive)},zoom:{maxRatio:3,minRatio:1},children:[a.map((e,a)=>(0,n.jsx)(k.o5,{children:(0,n.jsx)("div",{className:"swiper-zoom-container",style:{width:"100vw",height:"100vh"},children:(0,n.jsx)(s.default,{src:"https://moon.ru".concat(e),alt:"",fill:!0,className:C().galleryImage})})},a)),(0,n.jsxs)("div",{className:C().buttons,children:[(0,n.jsx)("div",{className:C().left,children:(0,n.jsx)(s.default,{src:p.x7,alt:"",style:{transform:"rotate(-90deg)"}})}),(0,n.jsx)("div",{className:C().right,children:(0,n.jsx)(s.default,{src:p.x7,alt:"",style:{transform:"rotate(90deg)"}})})]})]})]})}):null},S=e=>{let{characteristics:a,technicalPictures:t,mattressLayers:l}=e,[r,o]=(0,i.useState)(!1),[d,u]=(0,i.useState)(0),[m,h]=(0,i.useState)(!1),v=e=>{u(e),h(!0)};return a?(0,n.jsxs)("div",{className:c().container,children:[(null==l?void 0:l.length)>0&&(0,n.jsx)(N,{mattressLayers:l}),(0,n.jsxs)("div",{className:c().grid,children:[(0,n.jsx)("div",{className:c().container,children:a.map((e,a)=>(0,n.jsxs)("div",{className:c().row,children:[(0,n.jsx)("span",{className:c().name,children:e.name}),(0,n.jsx)("span",{className:c().value,dangerouslySetInnerHTML:{__html:"Максимальная нагрузка на спальное место"===e.name?"".concat(e.value," кг"):"Объём бельевого короба"===e.name?"".concat(e.value," л"):e.value}})]},a))}),!r&&(0,n.jsx)("div",{className:c().technicalPicturesContainer,children:t?t.map((e,a)=>(0,n.jsx)("div",{className:c().technicalPicture,children:(0,n.jsx)(s.default,{alt:"size".concat(a),onError:()=>o(!0),src:"https://moon.ru".concat(e),fill:!0,className:c().technicalPic,onClick:()=>v(a)})},a)):null})]}),(0,n.jsx)(I,{pictures:t,modalIsOpen:m,closeModal:()=>{h(!1)},currentIndex:d})]}):null},P=t(30134),R=t.n(P),M=e=>{let{description:a,productName:t}=e,i=a.replaceAll("\\r","").replaceAll("\\n","");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:R().productName,children:t}),(0,n.jsx)("div",{className:R().description,dangerouslySetInnerHTML:{__html:i}})]})},B=t(26950),L=t.n(B),O=t(82137);let T=async e=>{let{productId:a,page:t,setFetchedReviews:n}=e;try{let e=await fetch("".concat("https://react-api.moon.ru/v1","/card-reviews/").concat(a,"?page=").concat(t),{method:"GET",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer c5fbe10fb658644822059668b16b3f004bac50e828c518605eadbbccca59cee7575be546dadb835944dd53a64524f8b8dff72fdbeb5c0350fc2b478d3f5c504b"}}),i=await e.json();n(i)}catch(e){console.error("failed to fetch promotions",e)}};var E=e=>{let{text:a,maxLength:t}=e,[l,r]=(0,i.useState)(!1);return a.length<=t?(0,n.jsx)("p",{className:L().advantages,dangerouslySetInnerHTML:{__html:a}}):(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:L().advantages,dangerouslySetInnerHTML:{__html:l?a:"".concat(a.slice(0,t),"...")}}),a.length>t&&(0,n.jsx)("button",{className:L().truncateButton,onClick:()=>{r(!l)},children:l?"Свернуть":"Читать далее"})]})},H=t(36120),V=t(39381),D=t(6024),z=t.n(D),F=t(62994),Z=t(37353),W=t.n(Z),q=e=>{let{title:a,state:t,setState:l}=e,[r,s]=(0,i.useState)(null),o=e=>(0,n.jsx)("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"".concat(W().starPath," ").concat(e?W().filled:""),d:"M10 0L12.2451 6.90983H19.5106L13.6327 11.1803L15.8779 18.0902L10 13.8197L4.12215 18.0902L6.36729 11.1803L0.489435 6.90983H7.75486L10 0Z",fill:e?"var(--Pink)":"#585855"})});return(0,n.jsxs)("div",{className:W().ratingRow,children:[(0,n.jsx)("span",{className:W().ratingType,children:a}),(0,n.jsx)("div",{className:W().starRow,children:Array.from({length:5}).map((e,a)=>(0,n.jsx)("div",{onClick:()=>l(a+1),onMouseEnter:()=>s(a+1),onMouseLeave:()=>s(null),children:o(null!==r?a<r:null!==t&&a<t)},a))}),(0,n.jsx)("span",{className:W().ratingText,children:null!==t?({1:"ужасно",2:"плохо",3:"удовлетворительно",4:"хорошо",5:"отлично"})[t]:""})]})},G=t(94941),Q=t(48503),J=t(99471);let U=async e=>{let{values:a,setSuccess:t,images:n}=e;if(a)try{let e=new FormData;e.append("author_email",a.author_email),e.append("author_name",a.author_name),e.append("body",a.body),e.append("cons",a.cons),e.append("location",a.location),e.append("product_id",a.product_id),e.append("pros",a.pros),e.append("rating",a.rating),e.append("rating_appearance",a.rating_appearance),e.append("rating_convenience",a.rating_convenience),e.append("rating_quality",a.rating_quality),e.append("usage",a.usage),n.forEach((a,t)=>{e.append("photos[]",a)});let i=await fetch("".concat("https://react-api.moon.ru/v1","/card-reviews"),{method:"POST",mode:"cors",headers:{Authorization:"Bearer c5fbe10fb658644822059668b16b3f004bac50e828c518605eadbbccca59cee7575be546dadb835944dd53a64524f8b8dff72fdbeb5c0350fc2b478d3f5c504b"},body:e}),l=await i.json();!0===l.success&&t(!0),console.log(l)}catch(e){console.error(e)}};var Y=t(4074),K=t.n(Y),X=e=>{let{selectedImage:a,onFileChange:t,onReplace:i,onDelete:l,showButtons:r,index:o,onMouseEnter:c,onMouseLeave:d}=e;return(0,n.jsxs)("div",{className:K().container,onMouseEnter:()=>c(o),onMouseLeave:()=>d(o),children:[a?(0,n.jsx)(s.default,{src:a,alt:"Selected",layout:"fill",objectFit:"cover"}):(0,n.jsx)(s.default,{src:p.nS,alt:"Camera"}),(0,n.jsx)("input",{type:"file",id:"fileInput".concat(o),className:K().fileInput,accept:"image/*",onChange:t}),(0,n.jsx)("label",{htmlFor:"fileInput".concat(o),className:K().customButton}),a&&r&&(0,n.jsxs)("div",{className:K().buttonsContainer,children:[(0,n.jsx)("button",{className:K().button,onClick:i,children:"Заменить"}),(0,n.jsx)("button",{className:K().button,onClick:e=>{e.stopPropagation(),l()},children:"Удалить"})]})]})},$=e=>{let{images:a,setImages:t}=e,[l,r]=(0,i.useState)([,,,,,].fill(!1)),s=(e,n)=>{var i;let l=null===(i=n.target.files)||void 0===i?void 0:i[0];if(l){let n=new FileReader;n.onloadend=()=>{let i=[...a];i[e]=n.result,t(i)},n.readAsDataURL(l)}},o=e=>{document.getElementById("fileInput".concat(e)).click()},c=e=>{let n=[...a];n[e]=null,t(n)},d=e=>{let a=[...l];a[e]=!0,r(a)},u=e=>{let a=[...l];a[e]=!1,r(a)};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{style:{display:"flex",gap:"15px",marginTop:"30px",marginBottom:"15px"},children:a.map((e,a)=>(0,n.jsx)(X,{selectedImage:e,onFileChange:e=>s(a,e),onReplace:()=>o(a),onDelete:()=>c(a),showButtons:l[a],onMouseEnter:d,onMouseLeave:u,index:a},a))})})},ee=e=>{let{productName:a,productId:t}=e,[l,r]=(0,i.useState)("5"),[o,c]=(0,i.useState)("5"),[d,u]=(0,i.useState)("5"),[m,h]=(0,i.useState)("5"),[v,_]=(0,i.useState)(!1),[x,f]=(0,i.useState)(!1),[g,b]=(0,i.useState)(!1),[j,N]=(0,i.useState)([,,,,,].fill(null)),{values:w,errors:C,touched:A,handleChange:y,handleBlur:k,handleSubmit:I,isSubmitting:S,setFieldValue:P}=(0,V.TA)({initialValues:{rating:"5",product_id:t,rating_convenience:"5",rating_appearance:"5",rating_quality:"5",author_name:"",author_email:"",location:"",body:"",pros:"",cons:"",usage:"1","photos[]":[]},validationSchema:null,onSubmit:async e=>{console.log("values",e),U({values:e,setSuccess:f,images:j})}});return((0,i.useEffect)(()=>{P("rating",l)},[l,P]),(0,i.useEffect)(()=>{P("rating_convenience",o)},[o,P]),(0,i.useEffect)(()=>{P("rating_appearance",d)},[d,P]),(0,i.useEffect)(()=>{P("rating_quality",m)},[m,P]),x)?(0,n.jsx)(F.H1,{title:"Спасибо за Ваш отзыв!"}):(0,n.jsxs)("div",{className:z().main,children:[(0,n.jsx)("h4",{className:z().h4,children:" Новый отзыв о товаре: ".concat(a)}),(0,n.jsx)(q,{title:"Общее впечатление",state:l,setState:r}),(0,n.jsx)(q,{title:"Удобство",state:o,setState:c}),(0,n.jsx)(q,{title:"Дизайн",state:d,setState:u}),(0,n.jsx)(q,{title:"Качество",state:m,setState:h}),(0,n.jsxs)("form",{onSubmit:I,autoComplete:"off",children:[(0,n.jsx)("h2",{className:z().h2,children:"Текст отзыва"}),(0,n.jsx)(G.Z,{name:"body",value:w.body,handleChange:y,required:!0}),(0,n.jsx)("h2",{className:z().h2,children:"Достоинства"}),(0,n.jsx)(G.Z,{name:"pros",value:w.pros,handleChange:y,required:!0}),(0,n.jsx)("h2",{className:z().h2,children:"Недостатки"}),(0,n.jsx)(G.Z,{name:"cons",value:w.cons,handleChange:y,required:!0}),(0,n.jsxs)("div",{className:z().agree,children:[(0,n.jsx)("div",{style:{position:"relative"},children:(0,n.jsxs)("label",{style:{position:"relative",cursor:"pointer"},children:[(0,n.jsx)("input",{type:"checkbox",className:z().checkbox,checked:g,onChange:()=>b(!g)}),(0,n.jsx)(s.default,{src:p.dR,alt:"tick",width:"15",height:"15",className:z().tick})]})}),(0,n.jsx)("p",{children:"Рекомендуете данный товар?"})]}),(0,n.jsx)($,{images:j,setImages:N}),(0,n.jsxs)("div",{className:z().user,children:[(0,n.jsx)(Q.Z,{name:"author_name",value:w.author_name,handleChange:y,handleBlur:k,type:"text",label:"Ваше имя",required:!0}),(0,n.jsx)(Q.Z,{name:"author_email",value:w.author_email,handleChange:y,handleBlur:k,type:"email",label:"Ваш e-mail",required:!0}),(0,n.jsx)(Q.Z,{name:"location",value:w.location,handleChange:y,handleBlur:k,type:"text",label:"Ваш город",required:!0}),(0,n.jsx)(J.Z,{options:[{id:1,name:"для дома"},{id:2,name:"для дачи"}],label:"Приобретали",handleChange:y,name:"usage"})]}),(0,n.jsxs)("div",{className:z().bottom,children:[(0,n.jsx)("p",{children:"Правила публикации пользовательского контента"}),(0,n.jsxs)("ul",{className:z().list,children:[(0,n.jsx)("li",{className:z().listItem,children:"Публикация контента (отзывов, комментариев, вопросов ответов, фотографий товара) происходит только после их предварительной модерации"}),(0,n.jsx)("li",{className:z().listItem,children:"Модератор может вносить изменения в отзыв, связанные с пунктуацией и орфографией, но старается сохранить авторский стиль."}),(0,n.jsx)("li",{className:z().listItem,children:"Максимальная длина отзыва – не более 1500 знаков (включая пробелы) "})]})]}),(0,n.jsxs)("div",{className:z().agree,children:[(0,n.jsx)("div",{style:{position:"relative"},children:(0,n.jsxs)("label",{style:{position:"relative",cursor:"pointer"},children:[(0,n.jsx)("input",{type:"checkbox",className:z().checkbox,checked:v,onChange:()=>_(!v)}),(0,n.jsx)(s.default,{src:p.dR,alt:"tick",width:"15",height:"15",className:z().tick})]})}),(0,n.jsx)("p",{children:"Я согласен с правилами публикации пользовательского контента и даю согласие на обработку персональных данных"})]}),(0,n.jsx)("div",{style:{marginTop:"30px",width:"250px",justifySelf:"center"},children:(0,n.jsx)(O.Z,{text:"Оставить отзыв",type:"submit",disabled:!v})})]})]})},ea=t(70943),et=t.n(ea),en=e=>{let{title:a,render:t,position:l,header:r,children:s,font:o,style:c,open:d}=e,[u,m]=(0,i.useState)(!1),h=(0,i.useCallback)(()=>{m(!u)},[u]);return(0,i.useEffect)(()=>{d&&m(!0)},[d]),(0,A.Z)(u),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:et().modalButton,onClick:h,style:{fontFamily:o,...c},children:a}),(0,n.jsx)("div",{className:"".concat(et().overlay," ").concat(u?et().open:"")}),u&&(0,n.jsxs)("div",{className:et()[l],onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("div",{className:et().upper,children:[(0,n.jsx)("p",{className:et().header,children:r}),(0,n.jsx)("svg",{className:et().modalClose,xmlns:"http://www.w3.org/2000/svg",version:"1",viewBox:"0 0 24 24",onClick:h,children:(0,n.jsx)("path",{d:"M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"})})]}),s||(t?t(h):null)]})]})},ei=e=>{var a,t,l,r;let{reviews:o,productName:c,productId:d}=e,[u,m]=(0,i.useState)(null),[h,v]=(0,i.useState)(1),[_,x]=(0,i.useState)([]),[f,g]=(0,i.useState)(!1),[b,j]=(0,i.useState)(null),N=e=>{j(e),g(!0)};(0,A.Z)(f);let w=()=>{j(null),g(!1)};(0,i.useEffect)(()=>{T({productId:d,page:h,setFetchedReviews:m})},[h]),(0,i.useEffect)(()=>{var e,a;if(null==u?void 0:null===(a=u.data)||void 0===a?void 0:null===(e=a.page)||void 0===e?void 0:e.count){let e=u.data.page.count,a=u.data.page.current,t=[],n=Math.max(a-2,1),i=Math.min(n+4,e);i-n<4&&(n=Math.max(i-4,1));for(let e=n;e<=i;e++)t.push(e);x(t)}},[u]);let C=e=>{var a;e>=1&&e<=(null==u?void 0:null===(a=u.data)||void 0===a?void 0:a.page.count)&&v(e)};return u&&null!==u&&!1!==u.success&&o?0===o.count?(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"30px"},children:[(0,n.jsx)("span",{className:L().productName,children:"Отзывов пока нет."}),(0,n.jsx)(H.default,{position:"modalCenter",title:(0,n.jsx)(O.Z,{text:"Оставить отзыв"}),children:(0,n.jsx)(ee,{productName:c,productId:d})})]}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,n.jsxs)("div",{className:L().container,children:[(0,n.jsxs)("div",{className:L().rating,children:[(0,n.jsxs)("div",{className:L().score,children:["".concat(o.rating," / 5")," "]}),(0,n.jsxs)("div",{className:L().rightColumn,children:[(0,n.jsx)("span",{className:L().productName,children:c}),(0,n.jsxs)("div",{className:L().starRating,children:[Array.from({length:null==o?void 0:o.rating}).map((e,a)=>(0,n.jsx)(s.default,{className:L().star,src:p.Ux,alt:"{star}"},a)),(0,n.jsxs)("p",{className:L().ratingP,children:[o.count," отзывов"]})]})]})]}),(0,n.jsx)("div",{className:L().buttonContainer,children:(0,n.jsx)(en,{position:"modalCenter",title:(0,n.jsx)(O.Z,{text:"Оставить отзыв"}),children:(0,n.jsx)(ee,{productName:c,productId:d})})})]}),(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[null==u?void 0:null===(t=u.data)||void 0===t?void 0:null===(a=t.items)||void 0===a?void 0:a.map((e,a)=>{var t;return(0,n.jsxs)("div",{className:L().reviewContainer,children:[(0,n.jsxs)("div",{className:L().reviewCard,children:[(0,n.jsx)("span",{className:L().authorName,children:null==e?void 0:e.authorName}),(0,n.jsxs)("span",{className:L().date,children:[function(e){let a=new Date(1e3*e),t=a.getDate().toString().padStart(2,"0"),n=(a.getMonth()+1).toString().padStart(2,"0"),i=a.getFullYear();return"".concat(t,".").concat(n,".").concat(i)}(null==e?void 0:e.createdDate)," ",null==e?void 0:e.location]}),(0,n.jsxs)("div",{className:L().starRating,children:[(0,n.jsx)("p",{className:L().ratingP2,children:"".concat(null==e?void 0:e.rating," / 5")}),Array.from({length:null==o?void 0:o.rating}).map((e,a)=>(0,n.jsx)(s.default,{className:L().star,src:p.Ux,alt:"{star}"},a))]})]}),(0,n.jsxs)("div",{className:L().reviewBody,children:[(0,n.jsx)(E,{text:null==e?void 0:e.text,maxLength:250}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:L().header,children:"Достоинства"}),(0,n.jsx)("p",{className:L().advantages,dangerouslySetInnerHTML:{__html:null==e?void 0:e.advantages}})]}),(0,n.jsxs)("div",{className:L().header,children:[(0,n.jsx)("p",{className:L().header,children:"Недостатки"}),(0,n.jsx)("p",{className:L().disadvantages,dangerouslySetInnerHTML:{__html:null==e?void 0:e.disadvantages}})]}),(0,n.jsx)("div",{className:L().pictures,children:null==e?void 0:null===(t=e.pictures)||void 0===t?void 0:t.map((e,a)=>(0,n.jsx)("div",{className:L().imageContainer,children:(0,n.jsx)(s.default,{src:e.orig,alt:"review",fill:!0,className:L().picture,onClick:()=>N(e.orig)})},a))})]})]},a)}),(null==u?void 0:null===(r=u.data)||void 0===r?void 0:null===(l=r.page)||void 0===l?void 0:l.count)>1?(0,n.jsxs)("div",{className:L().pagination,children:[(0,n.jsx)(s.default,{src:p.jZ,alt:"arrowLeft",onClick:()=>C(h-1),style:{transform:"rotate(180deg)",cursor:"pointer"}}),_.map(e=>(0,n.jsx)("button",{onClick:()=>C(e),className:e===h?L().active:""+L().paginationButton,children:e},e)),(0,n.jsx)(s.default,{src:p.jZ,alt:"arrowRight",onClick:()=>C(h+1),style:{cursor:"pointer"}})]}):null]}),f&&b&&(0,n.jsx)("div",{className:L().modalOverlay,onClick:w,children:(0,n.jsxs)("div",{className:L().modalContent,onClick:e=>e.stopPropagation(),children:[(0,n.jsx)(s.default,{src:b,alt:"review",fill:!0,className:L().modalImage}),(0,n.jsx)(s.default,{src:p._v,alt:"close",onClick:w,className:L().closeButton})]})})]})}):null},el=t(87138),er=t(15074),es=t.n(er),eo=e=>{let{documentGroups:a}=e;return a?(0,n.jsx)("div",{className:es().container,children:Object.entries(a).map((e,a)=>{let[t,i]=e;return(0,n.jsxs)("div",{className:es().docGroup,children:[(0,n.jsx)("p",{className:es().header,children:t}),i.map((e,a)=>(0,n.jsxs)("div",{className:es().docItem,children:[(0,n.jsx)(s.default,{src:p.tP,alt:"file"}),(0,n.jsx)(el.default,{href:"https://www.moon.ru/".concat(e.path),target:"_blank",rel:"noopener noreferrer",className:es().docLink,children:e.name})]},a))]},a)})}):null},ec=t(5592),ed=t.n(ec),eu=e=>{let{interactiveImage:a}=e,[t,l]=(0,i.useState)(null);return((0,A.Z)(null!==t),a)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:ed().desktop,children:(0,n.jsxs)("div",{className:ed().container,children:[(0,n.jsx)(s.default,{src:a.picture,alt:"interactiveImage",fill:!0,className:ed().image}),a.tooltips.map((e,a)=>{let t=e.position.left<50?"right":"left";return(0,n.jsxs)("div",{className:ed().dot,style:{position:"absolute",left:"".concat(e.position.left,"%"),top:"".concat(e.position.top,"%")},children:[(0,n.jsx)("span",{children:"+"}),(0,n.jsxs)("div",{className:"".concat(ed().content," ").concat(ed()[t]),children:[(0,n.jsx)("div",{className:ed().dotImageContainer,children:(0,n.jsx)(s.default,{src:e.picture,alt:"",fill:!0})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:ed().title,children:e.title}),(0,n.jsx)("p",{className:ed().descriptionText,children:e.description})]})]})]},"dot-".concat(a))})]})}),(0,n.jsx)("div",{className:ed().mobile,children:(0,n.jsxs)("div",{className:ed().container,children:[(0,n.jsx)(s.default,{src:a.picture,alt:"interactiveImage",fill:!0,className:ed().image}),a.tooltips.map((e,a)=>(0,n.jsxs)("div",{className:ed().dotMobile,style:{position:"absolute",left:"".concat(e.position.left,"%"),top:"".concat(e.position.top,"%")},onClick:()=>{l(a)},children:[(0,n.jsx)("span",{children:"+"}),t===a&&(0,n.jsx)("div",{className:ed().modalOverlay,children:(0,n.jsxs)("div",{className:ed().modal,children:[(0,n.jsx)(s.default,{src:p._v,alt:"close",onClick:e=>{e.stopPropagation(),l(null)},className:ed().close}),(0,n.jsx)(s.default,{src:e.picture,alt:"",width:"250",height:"250",style:{marginBottom:"30px"}}),(0,n.jsx)("p",{className:ed().title,children:e.title}),(0,n.jsx)("p",{className:ed().descriptionText,children:e.description})]})})]},"dot-".concat(a)))]})})]}):null},em=t(84893),eh=e=>{let{characteristics:a,description:t,documentGroups:l,reviews:s,productName:o,interactiveImage:c,productId:d,technicalPictures:u,mattressLayers:m}=e,h=(0,i.useRef)(null),[v,_]=(0,i.useState)("characteristics");return(0,i.useEffect)(()=>{let e=()=>{h.current&&(h.current.scrollIntoView({behavior:"smooth"}),window.location.hash="#reviews")};em.Z.on("scrollToContainer",e);let a=()=>{_(window.location.hash.replace("#","")||"characteristics")};return _(window.location.hash.replace("#","")||"characteristics"),window.addEventListener("hashchange",a),()=>{em.Z.off("scrollToContainer",e),window.removeEventListener("hashchange",a)}},[]),(0,n.jsxs)("div",{className:r().container,ref:h,children:[(0,n.jsxs)("div",{className:r().tabs,children:[(0,n.jsx)("h2",{className:"".concat(r().tab," ").concat("characteristics"===v?r().active:""),onClick:()=>window.location.hash="#characteristics",children:"Характеристики"}),(0,n.jsx)("h2",{className:"".concat(r().tab," ").concat("description"===v?r().active:""),onClick:()=>window.location.hash="#description",children:"Описание"}),c&&(0,n.jsx)("h2",{className:"".concat(r().tab," ").concat("interactiveImage"===v?r().active:""),onClick:()=>window.location.hash="#interactiveImage",children:"Технологии"}),(0,n.jsxs)("h2",{className:"".concat(r().tab," ").concat("reviews"===v?r().active:""),onClick:()=>window.location.hash="#reviews",children:["Отзывы (",null==s?void 0:s.count,")"]}),(0,n.jsx)("h2",{className:"".concat(r().tab," ").concat("docs"===v?r().active:""),onClick:()=>window.location.hash="#docs",children:"Документы"})]}),(0,n.jsx)("div",{className:"".concat(r().content," ").concat("characteristics"===v?r().active:""),id:"characteristics",children:(0,n.jsx)(S,{characteristics:a,technicalPictures:u,mattressLayers:m})}),(0,n.jsx)("div",{className:"".concat(r().content," ").concat("description"===v?r().active:""),id:"description",children:(0,n.jsx)(M,{description:t,productName:o})}),c&&(0,n.jsx)("div",{className:"".concat(r().content," ").concat("interactiveImage"===v?r().active:""),id:"interactiveImage",children:(0,n.jsx)(eu,{interactiveImage:c})}),(0,n.jsx)("div",{className:"".concat(r().content," ").concat("reviews"===v?r().active:""),id:"reviews",children:(0,n.jsx)(ei,{reviews:s,productName:o,productId:d})}),(0,n.jsx)("div",{className:"".concat(r().content," ").concat("docs"===v?r().active:""),id:"docs",children:(0,n.jsx)(eo,{documentGroups:l})})]})}},56484:function(e,a,t){"use strict";var n=t(57437);t(2265);var i=t(30422),l=t.n(i),r=t(66648),s=t(94954),o=t(36181),c=t(87805),d=t(53267);a.Z=e=>{let{pictures:a,closeModal:t,modalIsOpen:i,currentIndex:u,interiors:m}=e;return((0,o.Z)(i),i&&a)?(0,n.jsx)("div",{className:l().modalOverlay,children:(0,n.jsxs)("div",{className:l().modal,children:[(0,n.jsx)("button",{className:l().closeButton,onClick:t,children:(0,n.jsx)(r.default,{src:s._v,alt:"closeX"})}),(0,n.jsxs)(d.tq,{modules:[c.tl,c.W_,c.LG],initialSlide:u,navigation:{nextEl:".".concat(l().right),prevEl:".".concat(l().left)},pagination:{clickable:!0,type:"bullets",bulletClass:"swiper-pagination-bullet ".concat(l().paginationBullet),bulletActiveClass:"swiper-pagination-bullet-active ".concat(l().paginationActive)},zoom:{maxRatio:3,minRatio:1},children:[Object.entries(a).map((e,a)=>{let[t,i]=e,s=i.lg;return s&&s.length>0&&(0,n.jsx)(d.o5,{children:(0,n.jsx)("div",{style:{width:"100vw",height:"100vh"},children:(0,n.jsx)(r.default,{src:s,alt:"picture ".concat(t),fill:!0,className:l().galleryImage})})},a)}),null==m?void 0:m.map((e,a)=>{if(!e.pictures||0===e.pictures.length)return null;let t=e.pictures[0];return(0,n.jsx)(d.o5,{children:(0,n.jsx)("div",{style:{width:"100vw",height:"100vh"},children:t&&t.lg?(0,n.jsx)(r.default,{src:t.lg,alt:"picture ".concat(a),fill:!0,className:l().galleryImage,sizes:"(min-width: 1500px) 950px, (min-width: 768px) 950px, 100vw"}):null})},a)}),(0,n.jsxs)("div",{className:l().buttons,children:[(0,n.jsx)("div",{className:l().left,children:(0,n.jsx)(r.default,{src:s.x7,alt:"",style:{transform:"rotate(-90deg)"}})}),(0,n.jsx)("div",{className:l().right,children:(0,n.jsx)(r.default,{src:s.x7,alt:"",style:{transform:"rotate(90deg)"}})})]})]})]})}):null}},4853:function(e,a,t){"use strict";var n=t(57437),i=t(2265),l=t(66648),r=t(53081),s=t.n(r),o=t(56484);a.default=e=>{let{pictures:a,interiors:t,youtube:r}=e,[c,d]=(0,i.useState)(!1),[u,m]=(0,i.useState)(0),h=e=>{m(e),d(!0)};if(!a)return null;let v=(null==r?void 0:r.length)>0?r[0].code.split("_"):null;return(0,n.jsxs)("div",{className:s().gallery,children:[t.map((e,t)=>{if(e.pictures&&e.pictures.length>0)return(0,n.jsx)("div",{className:s().galleryImageContainer,onClick:()=>h(t+a.length),children:(0,n.jsx)(l.default,{src:e.pictures[0].lg,sizes:"(max-width: 768px) 100vw, (max-width: 1600px) 1920px",alt:"",fill:!0,className:s().galleryImage,priority:!0,style:{cursor:"pointer",objectFit:"contain"}})},t)}),a.map((e,a)=>(0,n.jsx)("div",{className:s().galleryImageContainer,onClick:()=>h(a),children:(0,n.jsx)(l.default,{src:e.lg,sizes:"(max-width: 768px) 100vw, (max-width: 1600px) 950px",alt:"",fill:!0,className:s().galleryImage,priority:!0,style:{cursor:"pointer"}})},a)),r&&r.length>0?(0,n.jsx)("iframe",{className:s().video,src:"https://vk.com/video_ext.php?oid=-".concat(v[0],"&id=").concat(v[1],"&hd=2&autoplay=0"),frameBorder:"0",allow:"encrypted-media",allowFullScreen:!0,style:{margin:"0"}}):null,(0,n.jsx)(o.Z,{pictures:a,interiors:t,modalIsOpen:c,closeModal:()=>{d(!1)},currentIndex:u})]})}},82598:function(e,a,t){"use strict";var n=t(57437),i=t(2265),l=t(66648);t(17322);var r=t(71010),s=t.n(r),o=t(53267);t(43034);var c=t(87805),d=t(94954),u=t(56484);t(34976),a.default=e=>{let{interiors:a,pictures:t}=e,[r,m]=(0,i.useState)(!1),[h,v]=(0,i.useState)(0),_=e=>{v(e),m(!0)};return a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{style:{position:"relative",width:"100%",height:"100%"},children:(0,n.jsxs)(o.tq,{style:{width:"100%",height:"100%",position:"absolute",background:"#f6f6f4"},loop:!0,navigation:{nextEl:".".concat(s().right),prevEl:".".concat(s().left)},modules:[c.W_,c.tl],pagination:{dynamicBullets:!0,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active"},children:[(0,n.jsxs)("div",{className:s().buttons,children:[(0,n.jsx)("div",{className:s().left,children:(0,n.jsx)(l.default,{className:s().leftArrow,src:d.Yx,alt:""})}),(0,n.jsx)("div",{className:s().right,children:(0,n.jsx)(l.default,{src:d.Yx,alt:""})})]}),a.map((e,a)=>{if(e.pictures&&e.pictures.length>0)return(0,n.jsx)(o.o5,{onClick:()=>_(a+t.length),children:(0,n.jsx)(l.default,{src:e.pictures[0].lg,sizes:"(max-width: 768px) 100vw, (max-width: 1600px) 1920px",alt:"picture",fill:!0,className:s().mainImage,priority:!0,style:{cursor:"pointer"}})},a)}),t.map((e,a)=>(0,n.jsx)(o.o5,{onClick:()=>_(a),children:(0,n.jsx)(l.default,{src:e.lg,sizes:"(max-width: 768px) 100vw, (max-width: 1600px) 950px",alt:"picture",fill:!0,className:s().mainImage,priority:!0,style:{cursor:"pointer"}})},a))]})}),(0,n.jsx)(u.Z,{pictures:t,interiors:a,modalIsOpen:r,closeModal:()=>{m(!1)},currentIndex:h})]}):(0,n.jsx)("p",{children:"Загрузка"})}},66910:function(e,a,t){"use strict";var n=t(57437),i=t(66648),l=t(36138),r=t.n(l),s=t(94954),o=t(36181),c=t(2265);a.default=e=>{let{youtube:a}=e,[t,l]=(0,c.useState)(!1);if((0,o.Z)(t),!a)return null;let d=a[0].code.split("_");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:r().vkVideo,onClick:()=>l(!t),children:(0,n.jsx)(i.default,{src:s.yl,alt:"vkVideo",fill:!0,className:r().icon})}),t&&(0,n.jsx)("div",{className:r().container,onClick:()=>l(!1),children:(0,n.jsxs)("div",{className:r().videoWrapper,children:[(0,n.jsx)(i.default,{src:s._v,alt:"close",width:"30",height:"30",className:r().close,onClick:()=>l(!1)}),(0,n.jsx)("iframe",{className:r().video,src:"https://vk.com/video_ext.php?oid=-".concat(d[0],"&id=").concat(d[1],"&hd=2&autoplay=0"),frameBorder:"0",allow:"encrypted-media",allowFullScreen:!0})]})})]})}},63626:function(e,a,t){"use strict";t.d(a,{default:function(){return b}});var n=t(57437),i=t(2265),l=t(96960),r=t.n(l),s=t(66648),o=t(87138),c=t(98301),d=t.n(c),u=t(91114),m=t.n(u),h=t(36181),v=t(94954);let _=async(e,a)=>{try{let t=await fetch("".concat("https://react-api.moon.ru/v1","/card/").concat(e),{mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer c5fbe10fb658644822059668b16b3f004bac50e828c518605eadbbccca59cee7575be546dadb835944dd53a64524f8b8dff72fdbeb5c0350fc2b478d3f5c504b"},cache:"force-cache"}),n=await t.json();a(n)}catch(e){console.error("Error fetching product data",e)}finally{}};var p=t(62240),x=t(82137),f=e=>{var a,t,l,r,c,d,u,f,g;let{open:b,setOpen:j,colors:N,id:w}=e,[C,A]=(0,i.useState)(w),[y,k]=(0,i.useState)(null),[I,S]=(0,i.useState)("");return((0,h.Z)(b),(0,i.useEffect)(()=>{_(C,k)},[C]),(0,i.useEffect)(()=>{if(null!==y){let e=y.data.configurations.priority.color.palettes.find(e=>e.colors.some(e=>!0===e.isActive));e&&S(e.colors.find(e=>!0===e.isActive).name)}},[y]),y)?(0,n.jsx)("div",{className:m().modal,children:(0,n.jsxs)("div",{className:m().modalInner,children:[(0,n.jsxs)("div",{className:m().top,children:[(0,n.jsx)("span",{className:m().topText,children:"Все цвета"}),(0,n.jsx)(s.default,{src:v._v,alt:"close",onClick:()=>j(!1),style:{cursor:"pointer"}})]}),(0,n.jsx)("div",{className:m().imageContainer,children:(null==y?void 0:null===(a=y.data)||void 0===a?void 0:a.interiors[0].pictures.length)>0?(0,n.jsx)(s.default,{src:null==y?void 0:null===(t=y.data)||void 0===t?void 0:t.interiors[0].pictures[0].orig,alt:"img",fill:!0,sizes:"(max-width: 768px) 500px, (max-width: 1200px) 500px, 500px"}):(0,n.jsx)(s.default,{src:null==y?void 0:null===(l=y.data)||void 0===l?void 0:l.pictures[0].orig,alt:"img",fill:!0,sizes:"(max-width: 768px) 500px, (max-width: 1200px) 500px, 500px"})}),(0,n.jsxs)("div",{className:m().info,children:[(0,n.jsx)("span",{className:m().colorNameAdapt,style:{color:"#656565"},children:"Цвет:"})," ",(0,n.jsx)("span",{className:m().colorNameAdapt,children:I}),(0,n.jsxs)("span",{className:m().price,children:[(0,p.T)(null==y?void 0:null===(c=y.data)||void 0===c?void 0:null===(r=c.product)||void 0===r?void 0:r.price)," ₽"]}),(0,n.jsxs)("span",{className:m().oldPrice,children:[(0,p.T)(null==y?void 0:null===(u=y.data)||void 0===u?void 0:null===(d=u.product)||void 0===d?void 0:d.oldPrice)," ₽"]}),(0,n.jsxs)("div",{className:m().discountBorder,children:[(0,n.jsx)(s.default,{src:v.z6,width:"40",height:"22",alt:"discount"}),(0,n.jsxs)("p",{className:m().discount,children:["-",(0,p.A)(null==y?void 0:null===(f=y.data)||void 0===f?void 0:f.product.oldPrice,null==y?void 0:null===(g=y.data)||void 0===g?void 0:g.product.price),"%"]})]})]}),(0,n.jsx)(o.default,{href:"/card/".concat(C),children:(0,n.jsx)(x.Z,{text:"Выбрать",style:{marginBottom:"20px"}})}),(0,n.jsx)("div",{className:m().colorContainer,children:N.palettes.map((e,a)=>(0,n.jsx)(i.Fragment,{children:e.colors.map((e,a)=>(0,n.jsx)(i.Fragment,{children:(0,n.jsx)(s.default,{src:e.picture,alt:e.name,width:"30",height:"30",className:m().color,onClick:()=>A(e.productId),style:{cursor:"pointer"}},a)},"subcolor".concat(a)))},"color".concat(a)))})]})}):null},g=e=>{let{colors:a,id:t,activeColorName:l}=e,r=a.palettes.reduce((e,a)=>e+a.colors.length,0),[s,o]=(0,i.useState)(!1);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{className:d().text,onClick:()=>o(!0),children:["Все цвета + ",r]}),s&&(0,n.jsx)(f,{open:s,setOpen:o,colors:a,id:t,activeColorName:l})]})},b=e=>{var a,t,l;let{id:c,colors:d}=e,[u,m]=(0,i.useState)(30);if((0,i.useEffect)(()=>{let e=()=>{window.innerWidth<=1200&&m(24),window.innerWidth<=1100?m(22):m(30)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),!d)return null;let h=d.palettes.find(e=>e.colors.some(e=>e.isActive)),v=null;if(h&&(v=h.colors.find(e=>e.isActive).name),1===d.palettes.length)return null;let _=10-(null==d?void 0:null===(a=d.palettes)||void 0===a?void 0:a.length);return(0,n.jsxs)("div",{className:r().color,children:[(0,n.jsx)("p",{className:r().colorName,children:v}),(0,n.jsxs)("div",{className:r().colorWrapper,children:[null==d?void 0:null===(t=d.palettes)||void 0===t?void 0:t.map((e,a)=>{let t=e.colors.find(e=>e.isActive)||e.colors[0];return(0,n.jsx)(o.default,{href:"/card/".concat(t.productId),children:(0,n.jsx)(s.default,{src:t.picture,alt:t.name,width:u,height:u,className:t.isActive?r().active:""})},"color".concat(a))}),d.palettes.length<10&&(null==d?void 0:null===(l=d.palettes)||void 0===l?void 0:l.slice(1,_).flatMap((e,a)=>e.colors.map((e,a)=>0!==a&&(0,n.jsx)(o.default,{href:"/card/".concat(e.productId),children:(0,n.jsx)(s.default,{src:e.picture,alt:e.name,width:u,height:u})},"".concat(e.name).concat(a)))))]}),(0,n.jsx)(g,{colors:d,id:c})]})}},54826:function(e,a,t){"use strict";var n=t(57437),i=t(2265),l=t(30645),r=t.n(l),s=t(66648),o=t(87138);let c=(0,i.memo)(e=>{let{armrests:a}=e;return a?(0,n.jsxs)("div",{className:r().container,children:[(0,n.jsx)("p",{className:r().header,children:"Расположение подлокотника"}),(0,n.jsx)("div",{className:r().materialSelector,children:a.options.map((e,a)=>(0,n.jsx)(o.default,{href:"/card/".concat(e.productId),className:r().link,children:(0,n.jsxs)("div",{className:"".concat(r().lineItem," ").concat(e.isActive?r().active:""," ").concat(e.productIsActive?"":r().otherProduct),children:[(0,n.jsx)(s.default,{className:r().armSvg,src:e.picture,alt:e.value,width:"50",height:"36"}),(0,n.jsx)("p",{children:e.value}),e.productIsActive?"":(0,n.jsx)("p",{className:r().otherProductHover,children:"Товар в другом исполнении"}),e.productIsActive?"":(0,n.jsx)("div",{className:r().triangle})]})},a))})]}):null});c.displayName="ArmRest",a.default=c},24009:function(e,a,t){"use strict";var n=t(57437),i=t(2265),l=t(30645),r=t.n(l),s=t(66648),o=t(87138);let c=(0,i.memo)(e=>{let{decor:a,withDecor:t}=e;return a?(0,n.jsx)("div",{className:r().container,children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:r().header,style:{marginTop:"20px"},children:"Цвет декора"}),(0,n.jsx)("div",{className:r().materialSelector,children:a.options.map((e,a)=>(0,n.jsx)(o.default,{href:"/card/".concat(e.productId),className:r().link,children:(0,n.jsxs)("div",{className:"".concat(r().lineItem," "),children:[(0,n.jsx)(s.default,{src:e.picture,alt:e.value,width:"35",height:"35",className:"".concat(e.isActive?r().active:""," ").concat(e.productIsActive?"":r().otherProduct," ")}),(0,n.jsx)("p",{className:"".concat(e.isActive?r().active:""," ").concat(e.productIsActive?"":r().otherProduct," "),children:e.value}),e.productIsActive?"":(0,n.jsx)("p",{className:r().otherProductHover,children:"Товар в другом исполнении"}),e.productIsActive?"":(0,n.jsx)("div",{className:r().triangle})]})},a))})]})}):null});c.displayName="Decor",a.default=c},52857:function(e,a,t){"use strict";var n=t(57437),i=t(2265),l=t(30645),r=t.n(l),s=t(66648),o=t(87138),c=t(94954);let d=(0,i.memo)(e=>{let{fillers:a}=e;return a?(0,n.jsxs)("div",{className:r().container,children:[(0,n.jsx)("p",{className:r().header,children:"Наполнитель"}),(0,n.jsx)("div",{className:r().materialSelectorColumn,children:a.options.map((e,a)=>(0,n.jsx)(o.default,{href:"/card/".concat(e.productId),className:r().link,children:(0,n.jsxs)("div",{className:"".concat(r().lineItem," ").concat(e.isActive?r().active:""," ").concat(e.productIsActive?"":r().otherProduct,"} "),children:[(0,n.jsx)(s.default,{className:r().armSvg,src:"Пенополиуретан (ППУ)"===e.value?c.Ar:c.VT,alt:e.value}),(0,n.jsx)("p",{children:e.value}),e.productIsActive?"":(0,n.jsx)("p",{className:r().otherProductHover,children:"Товар в другом исполнении"}),e.productIsActive?"":(0,n.jsx)("div",{className:r().triangle})]})},a))})]}):null});d.displayName="Filler",a.default=d},2530:function(e,a,t){"use strict";var n=t(57437),i=t(50774),l=t.n(i),r=t(2265),s=t(6909),o=t(11444),c=t(15455),d=t(7010);a.default=e=>{let{product:a}=e,t=(0,o.v9)(e=>e.region.data.data.subdomain.slug)||"www",[i,u]=(0,r.useState)(null),m=(0,o.I0)(),h=async()=>{try{var e,n,i;let l=await (0,s.H)(a.id,u,m,t);m((0,c.HG)(null==l?void 0:null===(i=l.data)||void 0===i?void 0:null===(n=i.basket)||void 0===n?void 0:null===(e=n.items)||void 0===e?void 0:e.count))}catch(e){console.error("Error adding to basket",e)}};return(0,n.jsxs)("div",{className:l().buttonContainer,children:[(0,n.jsx)("button",{className:l().button,onClick:h,children:"Добавить в корзину"}),i&&(0,n.jsx)(d.Z,{added:i,setAdded:u})]})}},7010:function(e,a,t){"use strict";var n=t(57437),i=t(66648),l=t(75001),r=t.n(l),s=t(94954),o=t(62240),c=t(82137),d=t(87138);a.Z=e=>{var a,t;let{added:l,setAdded:u}=e,m=localStorage.getItem("moonBasket");return(0,n.jsxs)("div",{className:r().container,children:[(0,n.jsxs)("div",{className:r().topRow,children:[(0,n.jsxs)("div",{className:r().addedTick,children:[(0,n.jsx)(i.default,{src:s.dR,alt:"tick",width:"24",height:"18",className:r().tick}),(0,n.jsx)("span",{className:r().topText,children:"Добавлено в корзину"})]}),(0,n.jsx)(i.default,{src:s._v,alt:"close",onClick:()=>u(null),style:{cursor:"pointer"}})]}),(0,n.jsxs)("div",{className:r().product,children:[(0,n.jsx)("div",{style:{width:"106px",height:"106px",position:"relative",background:"#f6f6f4"},children:(0,n.jsx)(i.default,{src:null==l?void 0:null===(t=l.product)||void 0===t?void 0:null===(a=t.picture)||void 0===a?void 0:a.sm,alt:"",fill:!0,style:{objectFit:"contain"},sizes:"(max-width: 768px) 106px, (max-width: 1200px) 106px, 106px"})}),(0,n.jsxs)("div",{className:r().productInfo,children:[(0,n.jsx)("h1",{className:r().name,children:l.product.name}),(0,n.jsxs)("p",{className:r().article,children:["Арт.: ",l.product.article]}),(0,n.jsxs)("p",{className:r().price,children:[(0,o.T)(l.product.price),"\xa0₽"]})]})]}),(0,n.jsx)(d.default,{href:m?"/basket/".concat(m):"/basket",children:(0,n.jsx)(c.Z,{text:"Посмотреть корзину",style:{marginTop:"50px"}})}),(0,n.jsx)("div",{className:r().bottomRow,children:(0,n.jsx)("span",{className:r().continue,onClick:()=>u(null),children:"Продолжить покупки"})})]})}},5714:function(e,a,t){"use strict";var n=t(57437);t(2265);var i=t(11444);a.default=e=>{let{productPrice:a}=e,t=(0,i.v9)(e=>e.region.data.data.subdomain.slug)||"www";return(0,n.jsxs)("div",{style:{margin:"10px 0"},children:[a<15e4&&"www"===t&&(0,n.jsx)("yandex-pay-badge",{type:"bnpl",amount:a,size:"l",variant:"simple",color:"primary","merchant-id":"093b1986-1a4d-4b67-8908-c18833df203c"}),"www"===t&&(0,n.jsx)("yandex-pay-badge",{type:"cashback",amount:a,size:"m",variant:"simple",color:"primary","merchant-id":"093b1986-1a4d-4b67-8908-c18833df203c"})]})}},88737:function(e,a,t){"use strict";t.d(a,{default:function(){return k}});var n=t(57437),i=t(2265),l=t(14324),r=t.n(l),s=t(63811),o=t.n(s),c=t(36181),d=t(66648),u=t(94954),m=t(62240),h=t(48503),v=t(82137),_=t(39381);let p={name:"",lastName:"",email:"",phone:""};var x=t(14245);let f=(0,x.Z_)().required("Поле обязательно для заполнения").notOneOf([/('.+--)|(--)|(\|)|(\&\&)|(%7C)/],"SQL инъекции запрещены"),g=(0,x.Ry)({name:(0,x.Z_)().required("Поле обязательно для заполнения"),lastName:(0,x.Z_)(),phone:f.matches(/^(\+7|7|8)\s?\(?\d{3}\)?\s?\d{3}-\d{2}-\d{2}$/,"Введите номер телефона"),email:(0,x.Z_)().email("Введите адрес электронной почты").matches(/^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]{2,4}$/,"Некорректный формат адреса электронной почты").required("Поле обязательно для заполнения")});var b=t(84896),j=t.n(b),N=t(87138);let w=async(e,a,t,n,i)=>{try{(await fetch("".concat("https://react-api.moon.ru/v1","/card-applications"),{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer c5fbe10fb658644822059668b16b3f004bac50e828c518605eadbbccca59cee7575be546dadb835944dd53a64524f8b8dff72fdbeb5c0350fc2b478d3f5c504b"},body:JSON.stringify({product_id:e,name:a,email:t,phone:"+"+n.replace(/[\s()-]/g,"")})})).ok&&i(!0)}catch(e){console.error(e)}};var C=t(53436),A=e=>{let{product_id:a,setOk:t}=e,{values:l,errors:r,touched:s,handleChange:o,handleBlur:c,handleSubmit:d,setFieldValue:u,isSubmitting:m}=(0,_.TA)({initialValues:p,validationSchema:g,onSubmit:(e,n)=>{w(a,e.name+" "+e.lastName,e.email,e.phone,t),n.resetForm()}}),[x,f]=(0,i.useState)(!1);return(0,n.jsxs)("form",{onSubmit:d,autoComplete:"off",children:[(0,n.jsx)(h.Z,{name:"name",value:l.name,handleChange:o,handleBlur:c,type:"text",label:"Имя",error:r.name,touched:s.name,required:!0}),(0,n.jsx)(h.Z,{name:"lastName",value:l.lastName,handleChange:o,handleBlur:c,type:"text",label:"Фамилия",error:r.lastName,touched:s.lastName,required:!1}),(0,n.jsx)(h.Z,{name:"email",value:l.email,handleChange:o,handleBlur:c,type:"text",label:"Почта",error:r.email,touched:s.email,required:!0}),(0,n.jsx)(C.Z,{name:"phone",value:l.phone,handleChange:o,handleBlur:c,type:"text",label:"Телефон",error:r.phone,touched:s.phone,required:!0}),(0,n.jsxs)("div",{className:j().checkboxRow,children:[(0,n.jsx)("input",{type:"checkbox",className:j().checkbox,checked:x,onChange:()=>f(!x)}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{children:"Даю согласие на обратку "}),(0,n.jsx)(N.default,{className:j().link,href:"/legal/order_accept",children:"персональных данных"})]})]}),(0,n.jsx)(v.Z,{text:"Оставить заявку",type:"submit",style:{marginTop:"20px"},disabled:!x})]})},y=e=>{let{open:a,setOpen:t,product:l,pictures:r}=e,[s,h]=(0,i.useState)(!1);return((0,c.Z)(a),r&&l)?(0,n.jsx)("div",{className:o().modal,children:(0,n.jsxs)("div",{className:o().modalInner,children:[(0,n.jsxs)("div",{className:o().topRow,children:[(0,n.jsx)("h2",{className:o().h2,children:s?"Ваша заявка отправлена":"Оставить заявку"}),(0,n.jsx)(d.default,{src:u._v,alt:"close",onClick:()=>t(!1),style:{cursor:"pointer"}})]}),s?(0,n.jsx)("div",{className:o().success,children:"Мы свяжемся с вами в ближайшее время"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:o().info,children:[(0,n.jsx)(d.default,{src:r[0].lg,alt:"",height:"147",width:"165"}),(0,n.jsxs)("div",{className:o().infoText,children:[(0,n.jsx)("p",{className:o().shortName,children:l.name}),(0,n.jsx)("p",{className:o().name,children:l.subName}),(0,n.jsxs)("p",{className:o().price,children:[(0,m.T)(l.price)," ₽"]})]})]}),(0,n.jsx)(A,{product_id:l.id,setOk:h})]})]})}):null},k=e=>{let{product:a,pictures:t}=e,[l,s]=(0,i.useState)(!1);return(0,n.jsxs)("div",{className:r().buttonContainer,children:[(0,n.jsx)("button",{className:r().button,onClick:()=>{s(!l)},children:"Оставить заявку"}),l&&(0,n.jsx)(y,{open:l,setOpen:s,product:a,pictures:t})]})}},16769:function(e,a,t){"use strict";var n=t(57437),i=t(66648);t(2265);var l=t(29058),r=t.n(l),s=t(94954),o=t(84893);a.default=e=>{var a;let t,l,{reviews:c}=e;return c?(0,n.jsx)("div",{children:c.count>0&&(0,n.jsxs)("div",{className:r().rating,onClick:()=>{o.Z.emit("scrollToContainer")},children:[Array.from({length:c.rating}).map((e,a)=>(0,n.jsx)(i.default,{src:s.Ux,alt:s.Ux,width:"20",height:"20",className:r().star},a)),(0,n.jsx)("p",{className:r().ratingP,children:(t=(a=c.count)%10,(l=a%100)>=11&&l<=19?"".concat(a," отзывов"):1===t?"".concat(a," отзыв"):t>=2&&t<=4?"".concat(a," отзыва"):"".concat(a," отзывов"))})]})}):null}},99459:function(e,a,t){"use strict";t.d(a,{default:function(){return b}});var n=t(57437),i=t(2265),l=t(37778),r=t.n(l),s=t(36181),o=t(66648),c=t(94954),d=t(95890),u=t.n(d),m=t(62240),h=t(82137),v=t(97910),_=t(7010),p=t(6909),x=t(15455),f=t(11444),g=e=>{var a,t,l,r,s,d,g;let{product:b}=e,j=(0,f.v9)(e=>e.region.data.data.subdomain.slug)||"www",[N,w]=(0,i.useState)(null),[C,A]=(0,i.useState)(!0),y=(0,f.I0)(),k=async()=>{try{var e,a,t;let n=await (0,p.H)(b.product.id,w,y,j);y((0,x.HG)(null==n?void 0:null===(t=n.data)||void 0===t?void 0:null===(a=t.basket)||void 0===a?void 0:null===(e=a.items)||void 0===e?void 0:e.count))}catch(e){console.error("Error adding to basket",e)}};return b?(0,n.jsxs)("div",{className:u().container,children:[(0,n.jsxs)("div",{className:u().imageWrapper,children:[(0,n.jsx)(o.default,{src:C?null==b?void 0:null===(t=b.pictures)||void 0===t?void 0:null===(a=t.main)||void 0===a?void 0:a.orig:null==b?void 0:null===(r=b.pictures)||void 0===r?void 0:null===(l=r.cloth)||void 0===l?void 0:l.orig,alt:"picture",fill:!0,className:u().image,sizes:"70vw",unoptimized:!0}),(0,n.jsxs)("div",{className:u().miniImageWrapper,onClick:()=>A(!C),children:[(0,n.jsx)(o.default,{src:C?null==b?void 0:null===(d=b.pictures)||void 0===d?void 0:null===(s=d.cloth)||void 0===s?void 0:s.orig:null==b?void 0:null===(g=b.pictures)||void 0===g?void 0:g.main.orig,alt:"picture",fill:!0,className:u().miniImage,unoptimized:!0}),(0,n.jsx)(o.default,{src:c.$f,alt:"zoom",fill:!0,className:u().zoomplus})]})]}),(0,n.jsxs)("div",{className:u().leftColumn,children:[(0,n.jsx)("h1",{className:u().name,children:b.product.name}),(0,n.jsxs)("div",{className:u().priceContainer,children:[(0,n.jsxs)("div",{className:u().priceContainer2,children:[(0,n.jsxs)("span",{className:u().price,children:[(0,m.T)(b.product.price)," ₽"]}),(0,n.jsxs)("span",{className:u().oldPrice,children:[(0,m.T)(b.product.oldPrice)," ₽"]})]}),(0,n.jsxs)("div",{className:u().discountBorder,children:[(0,n.jsx)(o.default,{src:c.Qf,width:"55",height:"32",alt:"discount"}),(0,n.jsxs)("p",{className:u().discount,children:["-",(0,m.A)(b.product.oldPrice,b.product.price),"%"]})]})]}),(0,n.jsx)("div",{onClick:()=>k(),children:(0,n.jsx)(h.Z,{text:"Добавить в корзину | ".concat((0,m.T)(b.product.price),"₽"),style:{marginTop:"20px"}})}),(0,n.jsxs)("p",{className:u().article,children:["Арт.: ",b.product.article]}),(0,n.jsx)(v.Accordion,{title:"Характеристики",open:!0,children:b.characteristics.map((e,a)=>(0,n.jsxs)("div",{className:u().row,children:[(0,n.jsx)("span",{style:{minWidth:"50%",maxWidth:"50%",color:"#9e9e9e"},children:e.name}),(0,n.jsx)("span",{children:e.value})]},"characteristic-".concat(a)))}),N&&(0,n.jsx)(_.Z,{added:N,setAdded:w})]})]}):null},b=e=>{let{saleProducts:a}=e,[t,l]=(0,i.useState)(!1);return(0,s.Z)(t),(0,n.jsxs)("div",{className:r().container,children:[(0,n.jsx)("button",{className:r().buttonPink,onClick:()=>l(!t),children:"SALE"}),t&&(0,n.jsx)("div",{className:r().modal,children:(0,n.jsxs)("div",{className:r().modalInner,children:[(0,n.jsxs)("div",{className:r().topRow,children:[(0,n.jsx)("h2",{className:r().h2,children:"Sale"}),(0,n.jsx)(o.default,{src:c._v,alt:"close",onClick:()=>l(!1),style:{cursor:"pointer"}})]}),a.map((e,a)=>(0,n.jsx)(g,{product:e},a))]})})]})}},55413:function(e,a,t){"use strict";t.d(a,{default:function(){return _}});var n=t(57437),i=t(2265),l=t(5182),r=t.n(l),s=t(74850),o=t.n(s),c=t(36181),d=t(62240),u=t(94954),m=t(66648),h=e=>{var a,t,i,l,r,s,h,v,_,p,x,f,g,b,j,N,w,C,A,y,k,I,S,P,R,M,B,L,O,T,E,H,V,D,z,F,Z,W,q,G,Q,J,U,Y,K,X,$,ee,ea,et,en,ei,el,er,es,eo,ec,ed,eu,em,eh,ev,e_,ep,ex,ef,eg,eb,ej,eN,ew,eC,eA,ey,ek,eI,eS,eP,eR,eM,eB,eL,eO,eT,eE,eH,eV,eD,ez,eF,eZ,eW,eq,eG,eQ,eJ,eU,eY,eK,eX,e$,e0,e5,e1,e4,e2,e6,e3;let{data:e8,open:e7,setOpen:e9}=e;if((0,c.Z)(e7),!e8||!1===e8.success)return null;let ae=(null==e8?void 0:null===(t=e8.data)||void 0===t?void 0:null===(a=t.interiors)||void 0===a?void 0:a.filter(e=>{var a;return(null===(a=e.pictures)||void 0===a?void 0:a.length)>0}))||[],aa=null==e8?void 0:null===(h=e8.data)||void 0===h?void 0:null===(s=h.configurations)||void 0===s?void 0:null===(r=s.priority)||void 0===r?void 0:null===(l=r.color)||void 0===l?void 0:null===(i=l.palettes)||void 0===i?void 0:i.reduce((e,a)=>{var t;return e+(null===(t=a.colors)||void 0===t?void 0:t.length)},0);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:o().overlay,onClick:()=>e9(!1)}),(0,n.jsxs)("div",{className:o().container,children:[(0,n.jsx)(m.default,{src:u._v,alt:"close",onClick:()=>e9(!1),style:{cursor:"pointer",position:"absolute",right:"12px",top:"12px"}}),(0,n.jsx)("h2",{className:o().h2,children:"Общие характеристики"}),(0,n.jsx)("table",{className:o().table,children:(0,n.jsxs)("tbody",{children:[(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(_=e8.data)||void 0===_?void 0:null===(v=_.product)||void 0===v?void 0:v.name)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Категория:"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===(x=e8.data)||void 0===x?void 0:null===(p=x.product)||void 0===p?void 0:p.name)||"Нет данных"})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(g=e8.data)||void 0===g?void 0:null===(f=g.product)||void 0===f?void 0:f.shortName)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Наименование:"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===(j=e8.data)||void 0===j?void 0:null===(b=j.product)||void 0===b?void 0:b.shortName)||"Нет данных"})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(w=e8.data)||void 0===w?void 0:null===(N=w.product)||void 0===N?void 0:N.article)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Артикул:"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===(A=e8.data)||void 0===A?void 0:null===(C=A.product)||void 0===C?void 0:C.article)||"Нет данных"})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(k=e8.data)||void 0===k?void 0:null===(y=k.product)||void 0===y?void 0:y.price)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Цена:"}),(0,n.jsxs)("td",{className:o().tableValue,children:[(0,d.T)(null==e8?void 0:null===(S=e8.data)||void 0===S?void 0:null===(I=S.product)||void 0===I?void 0:I.price)||"Нет данных"," ₽"]})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(R=e8.data)||void 0===R?void 0:null===(P=R.product)||void 0===P?void 0:P.oldPrice)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Старая цена:"}),(0,n.jsxs)("td",{className:o().tableValue,children:[(0,d.T)(null==e8?void 0:null===(B=e8.data)||void 0===B?void 0:null===(M=B.product)||void 0===M?void 0:M.oldPrice)||"Нет данных"," ₽"]})]}),(null==e8?void 0:null===(O=e8.data)||void 0===O?void 0:null===(L=O.product)||void 0===L?void 0:L.oldPrice)&&(null==e8?void 0:null===(E=e8.data)||void 0===E?void 0:null===(T=E.product)||void 0===T?void 0:T.price)&&(0,n.jsxs)("tr",{className:"".concat(o().tableRow),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Скидка:"}),(0,n.jsxs)("td",{className:o().tableValue,children:[(0,d.A)(null==e8?void 0:null===(V=e8.data)||void 0===V?void 0:null===(H=V.product)||void 0===H?void 0:H.oldPrice,null==e8?void 0:null===(z=e8.data)||void 0===z?void 0:null===(D=z.product)||void 0===D?void 0:D.price),"%"]})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(Z=e8.data)||void 0===Z?void 0:null===(F=Z.product)||void 0===F?void 0:F.brand)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Бренд:"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===(q=e8.data)||void 0===q?void 0:null===(W=q.product)||void 0===W?void 0:W.brand)||"Нет данных"})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(Q=e8.data)||void 0===Q?void 0:null===(G=Q.product)||void 0===G?void 0:G.hasAccesories)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Аксессуары:"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===(U=e8.data)||void 0===U?void 0:null===(J=U.product)||void 0===J?void 0:J.hasAccesories)?"Есть":"Нет данных"})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(K=e8.data)||void 0===K?void 0:null===(Y=K.product)||void 0===Y?void 0:Y.hasTechnologies)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Технологии:"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===($=e8.data)||void 0===$?void 0:null===(X=$.product)||void 0===X?void 0:X.hasTechnologies)?"Есть":"Нет данных"})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Распродажа:"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===(ea=e8.data)||void 0===ea?void 0:null===(ee=ea.product)||void 0===ee?void 0:ee.hasSale)?"Да":"Нет"})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Товар под заказ?"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===(en=e8.data)||void 0===en?void 0:null===(et=en.product)||void 0===et?void 0:et.isForOrder)?"Да":"Нет"})]})]})}),(0,n.jsx)("h2",{className:o().h2,children:"Фотографии"}),(0,n.jsxs)("table",{className:o().table,children:[(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(ei=e8.data)||void 0===ei?void 0:ei.pictures)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Количество фотографий:"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===(el=e8.data)||void 0===el?void 0:el.pictures)?e8.data.pictures.length:"Нет данных"})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(ae.length>0?null:o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Фотографии интерьеров:"}),(0,n.jsx)("td",{className:o().tableValue,children:ae.length>0?ae.length:"Нет данных"})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(ae.length>0?null:o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Названия интерьеров:"}),(0,n.jsx)("td",{className:o().tableValue,children:(0,n.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"3px"},children:ae.length>0?ae.map((e,a)=>(0,n.jsxs)("span",{children:[e.name," "]},a)):"Нет данных"})})]})]}),(0,n.jsx)("h2",{className:o().h2,children:"Конфигурации"}),(0,n.jsxs)("table",{className:o().table,children:[(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(eo=e8.data)||void 0===eo?void 0:null===(es=eo.configurations)||void 0===es?void 0:null===(er=es.priority)||void 0===er?void 0:er.color)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Кол-во групп цветов"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===(em=e8.data)||void 0===em?void 0:null===(eu=em.configurations)||void 0===eu?void 0:null===(ed=eu.priority)||void 0===ed?void 0:null===(ec=ed.color)||void 0===ec?void 0:ec.palettes)?e8.data.configurations.priority.color.palettes.length:"Нет данных"})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(e_=e8.data)||void 0===e_?void 0:null===(ev=e_.configurations)||void 0===ev?void 0:null===(eh=ev.priority)||void 0===eh?void 0:eh.color)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Количество Цветов:"}),(0,n.jsx)("td",{className:o().tableValue,children:aa>0?aa:"Нет данных"})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(ef=e8.data)||void 0===ef?void 0:null===(ex=ef.configurations)||void 0===ex?void 0:null===(ep=ex.priority)||void 0===ep?void 0:ep.cloths)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Материалы:"}),(0,n.jsx)("td",{className:o().tableValue,children:(0,n.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"3px"},children:(null==e8?void 0:null===(eN=e8.data)||void 0===eN?void 0:null===(ej=eN.configurations)||void 0===ej?void 0:null===(eb=ej.priority)||void 0===eb?void 0:null===(eg=eb.cloths)||void 0===eg?void 0:eg.options)?e8.data.configurations.priority.cloths.options.map((e,a)=>(0,n.jsxs)("span",{children:[e.value," "]},a)):"Нет данных"})})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(eA=e8.data)||void 0===eA?void 0:null===(eC=eA.configurations)||void 0===eC?void 0:null===(ew=eC.priority)||void 0===ew?void 0:ew.cloths)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Размеры:"}),(0,n.jsx)("td",{className:o().tableValue,children:(0,n.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"3px"},children:(null==e8?void 0:null===(eS=e8.data)||void 0===eS?void 0:null===(eI=eS.configurations)||void 0===eI?void 0:null===(ek=eI.priority)||void 0===ek?void 0:null===(ey=ek.size)||void 0===ey?void 0:ey.options)?e8.data.configurations.priority.size.options.map((e,a)=>(0,n.jsxs)("span",{children:[e.value," "]},a)):"Нет данных"})})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat(!(null==e8?void 0:null===(eM=e8.data)||void 0===eM?void 0:null===(eR=eM.configurations)||void 0===eR?void 0:null===(eP=eR.priority)||void 0===eP?void 0:eP.cloths)&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Спальные места:"}),(0,n.jsx)("td",{className:o().tableValue,children:(0,n.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"3px"},children:(null==e8?void 0:null===(eT=e8.data)||void 0===eT?void 0:null===(eO=eT.configurations)||void 0===eO?void 0:null===(eL=eO.priority)||void 0===eL?void 0:null===(eB=eL.size)||void 0===eB?void 0:eB.options)?e8.data.configurations.priority.size.options.map((e,a)=>(0,n.jsxs)("span",{children:[e.sleepingSize," "]},a)):"Нет данных"})})]})]}),(0,n.jsx)("h2",{className:o().h2,children:"Видео"}),(0,n.jsx)("table",{className:o().table,children:(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat((null==e8?void 0:null===(eH=e8.data)||void 0===eH?void 0:null===(eE=eH.videos)||void 0===eE?void 0:eE.length)<1&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Ссылка на видео:"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===(eD=e8.data)||void 0===eD?void 0:null===(eV=eD.videos)||void 0===eV?void 0:eV.length)>0?"Есть видео":"Нет видео"})]})}),(0,n.jsx)("h2",{className:o().h2,children:"Инструкции"}),(0,n.jsx)("table",{className:o().table,children:(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat((null==e8?void 0:null===(eF=e8.data)||void 0===eF?void 0:null===(ez=eF.documentGroups)||void 0===ez?void 0:ez.length)<1&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Инструкции:"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===(eW=e8.data)||void 0===eW?void 0:null===(eZ=eW.documentGroups)||void 0===eZ?void 0:eZ.length)>0?"Есть":"Нет"})]})}),(0,n.jsx)("h2",{className:o().h2,children:"Технологии"}),(0,n.jsx)("table",{className:o().table,children:(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat((null==e8?void 0:null===(eG=e8.data)||void 0===eG?void 0:null===(eq=eG.interactiveImage)||void 0===eq?void 0:eq.length)<1&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Технологии:"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===(eJ=e8.data)||void 0===eJ?void 0:null===(eQ=eJ.interactiveImage)||void 0===eQ?void 0:eQ.length)>0?"Есть":"Нет"})]})}),(0,n.jsx)("h2",{className:o().h2,children:"Хлебные крошки"}),(0,n.jsx)("table",{className:o().table,children:(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat((null==e8?void 0:null===(eY=e8.data)||void 0===eY?void 0:null===(eU=eY.breadcrumbs)||void 0===eU?void 0:eU.length)<1&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Хлебные крошки:"}),(0,n.jsx)("td",{className:o().tableValue,children:(0,n.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"3px"},children:(null==e8?void 0:null===(eX=e8.data)||void 0===eX?void 0:null===(eK=eX.breadcrumbs)||void 0===eK?void 0:eK.length)>0?e8.data.breadcrumbs.map((e,a)=>(0,n.jsxs)("span",{children:[e.name," /"]},a)):"Нет данных"})})]})}),(0,n.jsx)("h2",{className:o().h2,children:"Рекомендации"}),(0,n.jsxs)("table",{className:o().table,children:[(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat((null==e8?void 0:null===(e0=e8.data)||void 0===e0?void 0:null===(e$=e0.recommendations)||void 0===e$?void 0:e$.length)<1&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Количество:"}),(0,n.jsx)("td",{className:o().tableValue,children:(null==e8?void 0:null===(e1=e8.data)||void 0===e1?void 0:null===(e5=e1.recommendations)||void 0===e5?void 0:e5.length)>0?e8.data.recommendations.length:"Нет данных"})]}),(0,n.jsxs)("tr",{className:"".concat(o().tableRow," ").concat((null==e8?void 0:null===(e2=e8.data)||void 0===e2?void 0:null===(e4=e2.recommendations)||void 0===e4?void 0:e4.length)<1&&o().error),children:[(0,n.jsx)("td",{className:o().tableHeader,children:"Рекомендуемые товары:"}),(0,n.jsx)("td",{className:o().tableValue,children:(0,n.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"3px"},children:(null==e8?void 0:null===(e3=e8.data)||void 0===e3?void 0:null===(e6=e3.recommendations)||void 0===e6?void 0:e6.length)>0?e8.data.recommendations.map((e,a)=>(0,n.jsx)("span",{style:{borderBottom:"1px solid black",paddingBottom:"5px"},children:e.name},a)):"Нет данных"})})]})]})]})]})},v=t(11444),_=e=>{let{data:a}=e,t=(0,v.v9)(e=>e.user.authKey),[l,s]=(0,i.useState)(!1);return t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{className:r().container,onClick:e=>{s(!l),e.stopPropagation()},children:"Проверить карточку"}),l&&(0,n.jsx)(h,{data:a,open:l,setOpen:s})]}):null}},63642:function(e,a,t){"use strict";t.d(a,{default:function(){return p}});var n=t(57437),i=t(2265),l=t(39381),r=t(14245),s=t(2619),o=t.n(s),c=t(94954),d=t(66648);let u=window.mindbox;async function m(e){return u?u("async",{operation:"Website.ClientSubscriptionFooterMoon",data:{customer:{email:e,subscriptions:[{pointOfContact:"Email",topic:"moon"}]}}}):null}let h=async(e,a)=>{if(0!==e.email.length)try{let t=await fetch("".concat("https://react-api.moon.ru/v1","/subscribe"),{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer c5fbe10fb658644822059668b16b3f004bac50e828c518605eadbbccca59cee7575be546dadb835944dd53a64524f8b8dff72fdbeb5c0350fc2b478d3f5c504b"},body:JSON.stringify({email:e.email})}),n=await t.json();!0===n.success&&(a(!0),m(e.email))}catch(e){console.error(e)}};var v=t(36181);let _=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]{2,4}$/;var p=()=>{let[e,a]=(0,i.useState)(!1);(0,v.Z)(e);let t=(0,l.TA)({initialValues:{email:""},validationSchema:(0,r.Ry)({email:(0,r.Z_)().email("Некорректный формат почты").matches(_,"Некорректный формат почты")}),onSubmit:(e,t)=>{h(e,a),t.resetForm()}});return(0,n.jsxs)("div",{className:o().container,children:[(0,n.jsxs)("div",{className:o().subscribe,children:[(0,n.jsx)("p",{className:o().h1,children:"Подпишитесь, чтобы узнавать раньше остальных о скидках, уникальных предложениях и новинках MOON"}),(0,n.jsx)("form",{onSubmit:t.handleSubmit,className:o().form,children:(0,n.jsxs)("div",{className:o().formContainer,children:[t.values.email.length>0?null:(0,n.jsx)("label",{htmlFor:"email",className:o().label,children:"Ваш E-mail"}),(0,n.jsxs)("div",{className:o().inputContainer,children:[(0,n.jsx)("input",{id:"email",name:"email",type:"email",onChange:t.handleChange,onBlur:t.handleBlur,value:t.values.email,className:o().input}),t.touched.email&&t.errors.email?(0,n.jsx)("div",{className:o().error,children:t.errors.email}):null,(0,n.jsxs)("button",{type:"submit",className:o().button,children:[(0,n.jsx)("span",{children:"Подписаться"}),(0,n.jsx)(d.default,{src:c.rR,alt:"arrow"})]})]})]})}),(0,n.jsx)("p",{className:o().paragraph,children:"Обещаем, что будем присылать вам только самое необходимое"})]}),e&&(0,n.jsx)("div",{className:o().modal,onClick:()=>a(!1),children:(0,n.jsxs)("div",{className:o().modalInner,children:[(0,n.jsx)(d.default,{src:c._v,alt:"close",onClick:()=>a(!1),className:o().close}),(0,n.jsx)("p",{className:o().text,children:"Спасибо за подписку!"})]})})]})}},99471:function(e,a,t){"use strict";var n=t(57437),i=t(2265),l=t(65915),r=t.n(l);let s=(0,i.memo)(e=>{let{name:a,label:t,error:i,touched:l,options:s,handleChange:o,selected:c}=e;return(0,n.jsx)("div",{className:r().main,children:(0,n.jsxs)("label",{className:r().siteInput,children:[(0,n.jsxs)("select",{onChange:o,name:a,value:c,children:[(0,n.jsx)("option",{value:"",children:c}),null==s?void 0:s.map((e,a)=>(0,n.jsx)("option",{value:e.id,children:e.name},a))]}),(0,n.jsx)("span",{style:{paddingBottom:30},className:r().siteInput__label,children:t})]})})});s.displayName="SelectInput",a.Z=s},84893:function(e,a){"use strict";a.Z={on(e,a){document.addEventListener(e,a)},off(e,a){document.removeEventListener(e,a)},emit(e){document.dispatchEvent(new CustomEvent(e))}}},24946:function(e,a,t){"use strict";var n=t(2265);a.default=e=>{let{data:a}=e;return(0,n.useEffect)(()=>{let e=a.data.product.id.toString(),t=a.data.product.name,n=a.data.product.price,i=a.data.product.brand,l=a.data.categoryName;window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:{currencyCode:"RUB",detail:{products:[{id:e,name:t,price:n,brand:i,category:l}]}}})},[a]),null}},6909:function(e,a,t){"use strict";t.d(a,{H:function(){return i}});var n=t(15455);let i=async(e,a,t,i)=>{try{var l,r,s;let o=localStorage.getItem("moonBasket"),c=o;if(!o){let a=await fetch("".concat("https://react-api.moon.ru/v1","/basket"),{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",subdomain:i,Authorization:"Bearer c5fbe10fb658644822059668b16b3f004bac50e828c518605eadbbccca59cee7575be546dadb835944dd53a64524f8b8dff72fdbeb5c0350fc2b478d3f5c504b"},body:JSON.stringify({productId:e})}),l=await a.json();c=null==l?void 0:null===(r=l.data)||void 0===r?void 0:r.id,localStorage.setItem("moonBasket",c),t((0,n.R5)(c))}let d=await fetch("".concat("https://react-api.moon.ru/v1","/basket-item"),{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",subdomain:i,Authorization:"Bearer c5fbe10fb658644822059668b16b3f004bac50e828c518605eadbbccca59cee7575be546dadb835944dd53a64524f8b8dff72fdbeb5c0350fc2b478d3f5c504b"},body:JSON.stringify({productId:e,basketId:c})});if(!d.ok){localStorage.removeItem("moonBasket");let a=await fetch("".concat("https://react-api.moon.ru/v1","/basket"),{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",subdomain:i,Authorization:"Bearer c5fbe10fb658644822059668b16b3f004bac50e828c518605eadbbccca59cee7575be546dadb835944dd53a64524f8b8dff72fdbeb5c0350fc2b478d3f5c504b"},body:JSON.stringify({productId:e})}),l=await a.json();c=null==l?void 0:null===(s=l.data)||void 0===s?void 0:s.id,localStorage.setItem("moonBasket",c),t((0,n.R5)(c)),d=await fetch("".concat("https://react-api.moon.ru/v1","/basket-item"),{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",subdomain:i,Authorization:"Bearer c5fbe10fb658644822059668b16b3f004bac50e828c518605eadbbccca59cee7575be546dadb835944dd53a64524f8b8dff72fdbeb5c0350fc2b478d3f5c504b"},body:JSON.stringify({productId:e,basketId:c})})}let u=await d.json();return!function(e){let{data:a}=e;window.dataLayer=window.dataLayer||[];let t=a.data.added.id,n=a.data.added.product.name,i=a.data.added.product.price,l=n.toLowerCase().includes("family")?"Moon Family":"Moon",r=a.data.added.product.category;window.dataLayer.push({ecommerce:{currencyCode:"RUB",add:{products:[{id:t.toString(),name:n,price:i,brand:l,category:r,quantity:1}]}}})}({data:u}),a(null==u?void 0:null===(l=u.data)||void 0===l?void 0:l.added),u}catch(e){console.error("Error fetching product data",e)}}},62240:function(e,a,t){"use strict";t.d(a,{A:function(){return i},T:function(){return n}});let n=e=>{let a=e.toString();return 4===a.length?"".concat(a.slice(0,1)," ").concat(a.slice(1)):5===a.length?"".concat(a.slice(0,2)," ").concat(a.slice(2)):6===a.length?"".concat(a.slice(0,3)," ").concat(a.slice(3)):7===a.length?"".concat(a.slice(0,1)," ").concat(a.slice(1,4)," ").concat(a.slice(4)):a},i=(e,a)=>Math.round((e-a)/e*100)},17322:function(){},43034:function(){},34976:function(){},86745:function(e){e.exports={main:"card_main__as_Mc",card:"card_card__6vWe_",colorTableLeft:"card_colorTableLeft__qz1CL",colorTableRight:"card_colorTableRight__2j_98",media:"card_media__Pml_h",reorder:"card_reorder__ZjrSU",colorWrapper:"card_colorWrapper__GCPF1",color:"card_color__GuFSp",mobileTopMenu:"card_mobileTopMenu__Juk7Q",tolerances:"card_tolerances__6Z_nB",topMenuLinkContainer:"card_topMenuLinkContainer__yUkgk",topMenuLink:"card_topMenuLink__raiQg",topArticle:"card_topArticle__aEuA_",cardBreadcrumbs:"card_cardBreadcrumbs__ephja"}},92405:function(e){e.exports={creditImage:"CardBottom_creditImage__fn4hC",innerTextTitle:"CardBottom_innerTextTitle__jE4Q4",innerText:"CardBottom_innerText__p6wOO",hr:"CardBottom_hr__wrQqc",bottomText:"CardBottom_bottomText__0FUNB",banner:"CardBottom_banner__tMLwv",h1:"CardBottom_h1__W15Pa",textP:"CardBottom_textP__XmgQ_",arrow:"CardBottom_arrow__05Bqn"}},43059:function(e){e.exports={cardBreadcrumbs:"CardBreadCrumbs_cardBreadcrumbs__yWY1p",link:"CardBreadCrumbs_link__Lj4Nu",lastBreadcrumb:"CardBreadCrumbs_lastBreadcrumb__ISm1o"}},1202:function(e){e.exports={container:"CardError_container__ASOJ9"}},5449:function(e){e.exports={recommended:"CardRecommended_recommended__7NwJN",buttons:"CardRecommended_buttons__ekXdd",topRow:"CardRecommended_topRow__ie9mP",left:"CardRecommended_left__F5tt7",right:"CardRecommended_right__LXe4n",leftArrow:"CardRecommended_leftArrow__tiHjc",h1:"CardRecommended_h1__SqxiW"}},57512:function(e){e.exports={container:"RecommendedItem_container__C7gIK",markers:"RecommendedItem_markers__P42zF",imageContainer:"RecommendedItem_imageContainer__INxwb",width:"RecommendedItem_width__EgHy7",widthContainer:"RecommendedItem_widthContainer__ZnAEU",image:"RecommendedItem_image__Dk46o",name:"RecommendedItem_name__tbyli",priceContainer:"RecommendedItem_priceContainer___FTm1",price:"RecommendedItem_price__kdIt2",oldPrice:"RecommendedItem_oldPrice__hAXqG",discountContainer:"RecommendedItem_discountContainer__AVL0z",discount:"RecommendedItem_discount__hPk3b"}},234:function(e){e.exports={container:"CartTable_container__dH47M",tabs:"CartTable_tabs__TgiSd",tab:"CartTable_tab__1uZHz",active:"CartTable_active__Bqnc0",content:"CartTable_content__btfMJ"}},6024:function(e){e.exports={main:"CardLeaveReview_main__CFhFf",success:"CardLeaveReview_success__pWQbS",h2:"CardLeaveReview_h2__RFt3F",h4:"CardLeaveReview_h4__wlCB3",user:"CardLeaveReview_user__BwJKl",bottom:"CardLeaveReview_bottom__i4P2e",list:"CardLeaveReview_list__aSkzU",listItem:"CardLeaveReview_listItem__8NvXn",checkbox:"CardLeaveReview_checkbox__W_3nm",tick:"CardLeaveReview_tick__oLba9",agree:"CardLeaveReview_agree__Ip80_"}},4074:function(e){e.exports={container:"CardReviewFile_container__2KSqC",fileInput:"CardReviewFile_fileInput__tX8bQ",customButton:"CardReviewFile_customButton__ZyRLX",buttonsContainer:"CardReviewFile_buttonsContainer__dmlr2",button:"CardReviewFile_button__wNSbl"}},37353:function(e){e.exports={ratingRow:"StarRating_ratingRow__P2cgQ",starRow:"StarRating_starRow__bRcyY",starPath:"StarRating_starPath___qhG3",filled:"StarRating_filled__icx4s",ratingType:"StarRating_ratingType__PWlcA",ratingText:"StarRating_ratingText__xqwFH"}},70943:function(e){e.exports={modalCenter:"CardReviewModalWindow_modalCenter__NK5le",modalRight:"CardReviewModalWindow_modalRight__DsvI3",upper:"CardReviewModalWindow_upper__mDfvh",modalClose:"CardReviewModalWindow_modalClose__rBHJc",overlay:"CardReviewModalWindow_overlay__iHS1T",open:"CardReviewModalWindow_open__rdrgh",modalButton:"CardReviewModalWindow_modalButton__MI9O5",header:"CardReviewModalWindow_header__KUWn9"}},26950:function(e){e.exports={container:"CardReviews_container__hlwgp",rating:"CardReviews_rating__hLqsf",rightColumn:"CardReviews_rightColumn__sVgG7",starRating:"CardReviews_starRating__1lQ6b",ratingP:"CardReviews_ratingP__wlG0I",ratingP2:"CardReviews_ratingP2__XxCZ2",score:"CardReviews_score__cxIvv",productName:"CardReviews_productName__agKDv",reviewText:"CardReviews_reviewText__NTz4Z",reviewContainer:"CardReviews_reviewContainer___LQ3L",reviewCard:"CardReviews_reviewCard__z6crD",authorName:"CardReviews_authorName__DpoYs",date:"CardReviews_date__hmdNa",reviewBody:"CardReviews_reviewBody__vWmWC",header:"CardReviews_header__ihn_X",truncateButton:"CardReviews_truncateButton__fMRBU",pictures:"CardReviews_pictures__NOPPy",picture:"CardReviews_picture__nVcTV",imageContainer:"CardReviews_imageContainer__gCxBl",advantages:"CardReviews_advantages__5seK4",disadvantages:"CardReviews_disadvantages__nL_cK",buttonContainer:"CardReviews_buttonContainer__LMlHQ",pagination:"CardReviews_pagination__6gXIQ",paginationButton:"CardReviews_paginationButton__hIx0b",active:"CardReviews_active__7dfPq",modalOverlay:"CardReviews_modalOverlay__LzFny",modalContent:"CardReviews_modalContent__dl6SY",modalImage:"CardReviews_modalImage__F_sOm",closeButton:"CardReviews_closeButton__fvVjf",star:"CardReviews_star__g4sY8"}},75135:function(e){e.exports={grid:"Characteristic_grid__8f0vt",container:"Characteristic_container__7aKrm",row:"Characteristic_row__tYgK5",name:"Characteristic_name__BiTtu",value:"Characteristic_value___aHlI",technicalPicturesContainer:"Characteristic_technicalPicturesContainer__VREdl",technicalPicture:"Characteristic_technicalPicture__c0WCw",technicalPic:"Characteristic_technicalPic__6SOjw"}},34705:function(e){e.exports={modalOverlay:"CharacteristicGallery_modalOverlay__XBVJI",modal:"CharacteristicGallery_modal__w9uZv",closeButton:"CharacteristicGallery_closeButton__qKzfR",galleryImage:"CharacteristicGallery_galleryImage__suqK9",left:"CharacteristicGallery_left__CoAej",right:"CharacteristicGallery_right___OLWY",image:"CharacteristicGallery_image__0RQe3"}},44033:function(e){e.exports={grid:"Layer_grid__LT_yK",imageWrapper:"Layer_imageWrapper__4_pzY",accordion:"Layer_accordion__LYRjv",mobile:"Layer_mobile__K37o1",mobileImage:"Layer_mobileImage__lAJar",image:"Layer_image__Q5pMo"}},3559:function(e){e.exports={container:"LayerAccordion_container__qk9uu",title:"LayerAccordion_title__9mNzD",description:"LayerAccordion_description__tXiQM",titleContainer:"LayerAccordion_titleContainer__Ii_TL",dot:"LayerAccordion_dot__vkbmU",arrow:"LayerAccordion_arrow__Ywnmm"}},60784:function(e){e.exports={container:"LayerModal_container__aVkOu",title:"LayerModal_title__k17Nx",titleContainer:"LayerModal_titleContainer__0bE5V",dot:"LayerModal_dot__2I4HH",modalOverlay:"LayerModal_modalOverlay__KFD5J",modal:"LayerModal_modal__S2w7B",close:"LayerModal_close__34759",imageContainer:"LayerModal_imageContainer__oIIPm",titleMobile:"LayerModal_titleMobile__7pV5S"}},43955:function(e){e.exports={container:"MattressLayers_container__3lxzx",h1:"MattressLayers_h1__lHtda",h2:"MattressLayers_h2__olgxz"}},30134:function(e){e.exports={description:"Description_description__1KQwT",productName:"Description_productName__jvCAy"}},15074:function(e){e.exports={header:"Docs_header__Je3YE",docItem:"Docs_docItem__ioN_4",docGroup:"Docs_docGroup__Sd_Lr",docLink:"Docs_docLink__TumOe"}},5592:function(e){e.exports={container:"InteractiveImage_container___Mak7",image:"InteractiveImage_image__9oFIX",dot:"InteractiveImage_dot__O_n1R",dotMobile:"InteractiveImage_dotMobile__fK4Bg",content:"InteractiveImage_content__alSwU",left:"InteractiveImage_left__y_y89",right:"InteractiveImage_right__Phgxj",title:"InteractiveImage_title__6uVcH",dotImageContainer:"InteractiveImage_dotImageContainer__CZcZI",mobile:"InteractiveImage_mobile__FhZtr",descriptionText:"InteractiveImage_descriptionText__I8YMx",close:"InteractiveImage_close__oCT_b",modalOverlay:"InteractiveImage_modalOverlay__ve4db",modal:"InteractiveImage_modal__11INy",desktop:"InteractiveImage_desktop__2a0Pl"}},30422:function(e){e.exports={modalOverlay:"PictureGallery_modalOverlay__JsWFb",modal:"PictureGallery_modal__Nw9MG",closeButton:"PictureGallery_closeButton__mi0m5",galleryImage:"PictureGallery_galleryImage__coYme",left:"PictureGallery_left__l0J48",right:"PictureGallery_right__7OhIN",image:"PictureGallery_image__4IcUf"}},53081:function(e){e.exports={gallery:"Gallery_gallery__N0q4a",galleryImageContainer:"Gallery_galleryImageContainer__E3Hjw",galleryImage:"Gallery_galleryImage__J6huJ",video:"Gallery_video__aabbt"}},71010:function(e){e.exports={imageContainer:"CardSlider_imageContainer__wZYca",mainImage:"CardSlider_mainImage__HzUnK",left:"CardSlider_left__HOzfb",right:"CardSlider_right__9t6SY",leftArrow:"CardSlider_leftArrow__Oz4eF",paginationBullet:"CardSlider_paginationBullet__rWSk0",paginationActive:"CardSlider_paginationActive__ylqkK"}},24400:function(e){e.exports={imageHeader:"ImageHeader_imageHeader__qzPAu",sliderContainer:"ImageHeader_sliderContainer__VfhDA",column1:"ImageHeader_column1__aPb9u"}},82354:function(e){e.exports={sliderContainer:"ImageHeaderLoader_sliderContainer__bjmTI",imageHeader:"ImageHeaderLoader_imageHeader__4fDmC",column1:"ImageHeaderLoader_column1__ZDgFX",shine:"ImageHeaderLoader_shine__nBEQW",column2:"ImageHeaderLoader_column2__LHqHe",image2container:"ImageHeaderLoader_image2container__e_SA9",styleLoader:"ImageHeaderLoader_styleLoader__1IHGK",header:"ImageHeaderLoader_header__iGLfq",pulse:"ImageHeaderLoader_pulse__e0YXx"}},36138:function(e){e.exports={vkVideo:"VkModal_vkVideo__WK3II",ytlink:"VkModal_ytlink___WliD",container:"VkModal_container__KXLt4",close:"VkModal_close__pzmMk",icon:"VkModal_icon__nsuOR",video:"VkModal_video__NT_P4"}},94280:function(e){e.exports={contain:"RightPanelButton_contain__th0i0",button:"RightPanelButton_button__jDWZC",buttonPink:"RightPanelButton_buttonPink__25iWw",buttonGray:"RightPanelButton_buttonGray__kwFw9",container:"RightPanelButton_container__I2szm",left:"RightPanelButton_left___73EW",link:"RightPanelButton_link__DQVdu"}},96960:function(e){e.exports={colorTableLeft:"Color_colorTableLeft__Val5b",colorTableRight:"Color_colorTableRight__r8prp",active:"Color_active__WnVYp",colorWrapper:"Color_colorWrapper__BSqjn",colorName:"Color_colorName__1XEKM"}},91114:function(e){e.exports={modal:"ColorModal_modal__soXkf",modalInner:"ColorModal_modalInner__0oAI_",top:"ColorModal_top__5R3A6",topText:"ColorModal_topText__rLE7j",imageContainer:"ColorModal_imageContainer__WBrRB",colorContainer:"ColorModal_colorContainer__LgWQA",info:"ColorModal_info__dxR_j",price:"ColorModal_price__3BuJQ",oldPrice:"ColorModal_oldPrice__BFi_n",discountBorder:"ColorModal_discountBorder__TEteC",discount:"ColorModal_discount__K7bbg",colorNameAdapt:"ColorModal_colorNameAdapt__5_VZP",color:"ColorModal_color__GspY4"}},98301:function(e){e.exports={text:"ColorPopup_text__YTZnO"}},30645:function(e){e.exports={container:"Configurations_container__9r1IN",header:"Configurations_header__na7q1",materialSelector:"Configurations_materialSelector___klhs",materialSelectorColumn:"Configurations_materialSelectorColumn__FxIBQ",materialSelectorRow:"Configurations_materialSelectorRow__yG3XU",style:"Configurations_style___WeeO",link:"Configurations_link__WSNRO",triangle:"Configurations_triangle__SdqJP",otherProductHover:"Configurations_otherProductHover__1sW_p",active:"Configurations_active__5ThOI",otherProduct:"Configurations_otherProduct__OWIxz",lineItem:"Configurations_lineItem__hWbia",changeMaterial:"Configurations_changeMaterial__M7lzE",armSvg:"Configurations_armSvg__qrvJ1"}},50774:function(e){e.exports={buttonContainer:"AddButton_buttonContainer__JIBOh",button:"AddButton_button__uhG9C"}},75001:function(e){e.exports={container:"Added_container__lHoxN",topRow:"Added_topRow__ZL_I1",topText:"Added_topText__S_zXL",addedTick:"Added_addedTick__zmxaV",tick:"Added_tick__1lL9F",product:"Added_product__JVwx_",productInfo:"Added_productInfo__PwaMq",name:"Added_name__bhCCh",article:"Added_article__POxTG",price:"Added_price__vd39A",bottomRow:"Added_bottomRow__FGe7l",continue:"Added_continue__jUpls"}},14324:function(e){e.exports={buttonContainer:"OrderButton_buttonContainer__U3lTe",button:"OrderButton_button__Y7qJd"}},84896:function(e){e.exports={checkboxRow:"OrderForm_checkboxRow__iXJG6",checkbox:"OrderForm_checkbox__Z3blC",link:"OrderForm_link__jFj0G"}},63811:function(e){e.exports={modal:"OrderModal_modal__GoD3k",modalInner:"OrderModal_modalInner__VtJIC",topRow:"OrderModal_topRow__qL0lT",h2:"OrderModal_h2__sEDjH",info:"OrderModal_info__NDPUf",infoText:"OrderModal_infoText__C3rJ0",shortName:"OrderModal_shortName__8NVbB",name:"OrderModal_name__evqQ5",price:"OrderModal_price__6qJIB",success:"OrderModal_success__Syqzm"}},29058:function(e){e.exports={rating:"Reviews_rating__V7axd",ratingP:"Reviews_ratingP__3eniT",star:"Reviews_star___s_hk"}},37778:function(e){e.exports={buttonPink:"Sale_buttonPink__GfVD5",sparkle:"Sale_sparkle__9GeLi",modal:"Sale_modal__comrf",modalInner:"Sale_modalInner__jL77V",topRow:"Sale_topRow__wrWVM",h2:"Sale_h2__YMp_D"}},95890:function(e){e.exports={container:"SaleCard_container__H_Avw",imageWrapper:"SaleCard_imageWrapper__O3zwY",image:"SaleCard_image__1Avgx",miniImageWrapper:"SaleCard_miniImageWrapper___TUIA",miniImage:"SaleCard_miniImage__OY7E_",zoomplus:"SaleCard_zoomplus__bVG5M",name:"SaleCard_name__cJZRd",priceContainer:"SaleCard_priceContainer__qYlvG",priceContainer2:"SaleCard_priceContainer2__ds_9Y",price:"SaleCard_price__isBZ5",oldPrice:"SaleCard_oldPrice___2wRq",discountBorder:"SaleCard_discountBorder__KaFh6",discount:"SaleCard_discount__6pbnG",article:"SaleCard_article__h4krN",row:"SaleCard_row__SmJIh"}},62718:function(e){e.exports={container:"MainHeader_container__jVYtw",top:"MainHeader_top__D3n6O",productName:"MainHeader_productName__isuZT",productPrice:"MainHeader_productPrice__uJ22R",article:"MainHeader_article__o3_UM",shortName:"MainHeader_shortName__KkCX8",price:"MainHeader_price__Y0fxZ",oldPrice:"MainHeader_oldPrice__Eda59",discountBorder:"MainHeader_discountBorder__zUGg_",discount:"MainHeader_discount__ulAU1",rub:"MainHeader_rub__SyDb6",mobile:"MainHeader_mobile__2AKrz",notInStock:"MainHeader_notInStock__BBtE7",star:"MainHeader_star__J11dT",rating:"MainHeader_rating__P5Vy_",button:"MainHeader_button__f4K1H",desktop:"MainHeader_desktop__lmJvM"}},77247:function(e){e.exports={top:"MainHeaderLoader_top__sfOV1",productName:"MainHeaderLoader_productName__4oF5r",shine:"MainHeaderLoader_shine__Xjyfo",article:"MainHeaderLoader_article__wyUg_",shortName:"MainHeaderLoader_shortName__1iC__",rating:"MainHeaderLoader_rating__mt0FP",price:"MainHeaderLoader_price__bUuUb",buttonContainer:"MainHeaderLoader_buttonContainer__tBEhL",configurations:"MainHeaderLoader_configurations__PBjDP"}},55508:function(e){e.exports={plaque:"Plaque_plaque__Nb_Uu",plaques:"Plaque_plaques__0NddA",arrow:"Plaque_arrow__t9lDv"}},5182:function(e){e.exports={container:"SellerTest_container__oSYdN"}},74850:function(e){e.exports={container:"SellerTestModal_container__IOO3I",overlay:"SellerTestModal_overlay__86ixe",h2:"SellerTestModal_h2__jXPm6",table:"SellerTestModal_table__uL5ET",tableRow:"SellerTestModal_tableRow__qdCM1",tableHeader:"SellerTestModal_tableHeader__wdWly",tableValue:"SellerTestModal_tableValue__ih8JJ",error:"SellerTestModal_error__C7Mwx"}},2619:function(e){e.exports={container:"Subscribe_container__spsm0",subscribe:"Subscribe_subscribe__KPZRj",h1:"Subscribe_h1__oB84H",formContainer:"Subscribe_formContainer__WlQAk",form:"Subscribe_form__orny2",inputContainer:"Subscribe_inputContainer__qvILa",input:"Subscribe_input__vRf2O",label:"Subscribe_label__63o6V",button:"Subscribe_button__KdHn7",paragraph:"Subscribe_paragraph__oLiW0",error:"Subscribe_error__6qU0b",modal:"Subscribe_modal__cF99o",modalInner:"Subscribe_modalInner__HXs2b",close:"Subscribe_close__nbWSt",text:"Subscribe_text__iSlQY"}},65915:function(e){e.exports={main:"SelectInput_main__V0Op2",siteInput:"SelectInput_siteInput__czD0H",siteInput__label:"SelectInput_siteInput__label__ceNgu",errorP:"SelectInput_errorP__EnMJU"}},21012:function(e,a,t){"use strict";t.r(a),a.default={src:"/_next/static/media/Credit.7a5fe587.jpg",height:380,width:1920,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAACAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAVAQEBAAAAAAAAAAAAAAAAAAABAv/aAAwDAQACEAMQAAABrEv/xAAWEAEBAQAAAAAAAAAAAAAAAAABAgT/2gAIAQEAAQUC0KV//8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAwEBPwF//8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAgEBPwF//8QAFhAAAwAAAAAAAAAAAAAAAAAAAAIh/9oACAEBAAY/Akp//8QAGBABAAMBAAAAAAAAAAAAAAAAAQARITH/2gAIAQEAAT8hrJGPGf/aAAwDAQACAAMAAAAQD//EABURAQEAAAAAAAAAAAAAAAAAAAAB/9oACAEDAQE/EK//xAAVEQEBAAAAAAAAAAAAAAAAAAAAAf/aAAgBAgEBPxCP/8QAGBAAAgMAAAAAAAAAAAAAAAAAADEBESH/2gAIAQEAAT8QdPOkKj//2Q==",blurWidth:8,blurHeight:2}}},function(e){e.O(0,[493,1056,7347,2791,4864,8872,9185,231,8173,4349,1444,1224,9753,5442,2971,3749,1744],function(){return e(e.s=93415)}),_N_E=e.O()}]);