PageSourceSearch

https://xn--123-5cda0c9bbou9c.xn--p1ai/_next/static/chunks/e65ad22cc7da8d2f.js

js xn--123-5cda0c9bbou9c.xn--p1ai collected 2026-10-02 02:11:33 UTC 92,848 bytes, 2 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,546758,e=>{"use strict";e.i(789416);var t=e.i(86819),o=e.i(772296);e.s(["CategoriesNavBar",()=>t.CategoriesNavBar,"useChangeCategoryFunctions",()=>o.useChangeCategoryFunctions])},77117,e=>{e.v({"auth-modal__phone-code":"InputsCode-module-scss-module__PeW7_a__auth-modal__phone-code"})},503419,e=>{e.v({"max-auth-button":"AuthLoginByMaxButton-module-scss-module__mRW_QW__max-auth-button","max-auth-button_disabled":"AuthLoginByMaxButton-module-scss-module__mRW_QW__max-auth-button_disabled"})},253160,e=>{e.v({"auth-modal__max-back-link":"AuthLoginByMax-module-scss-module__Y8d4nq__auth-modal__max-back-link","auth-modal__max-link":"AuthLoginByMax-module-scss-module__Y8d4nq__auth-modal__max-link","auth-modal__open-max-text":"AuthLoginByMax-module-scss-module__Y8d4nq__auth-modal__open-max-text"})},820676,e=>{e.v({"auth-modal__auth-btn":"GetCodeButton-module-scss-module__kb_uUq__auth-modal__auth-btn"})},391080,e=>{e.v({"auth-modal__resms-button":"GetCodeBySmsButton-module-scss-module__km96Rq__auth-modal__resms-button"})},906256,e=>{e.v({"auth-modal__repeat-button":"GetCodeRepeatButton-module-scss-module__dqiuIa__auth-modal__repeat-button"})},120976,e=>{e.v({"auth-modal__phone-change-btn":"ChangePhoneButton-module-scss-module__j9LWXG__auth-modal__phone-change-btn"})},530722,e=>{e.v({"auth-modal__phone-input":"PhoneInput-module-scss-module__CrnDXG__auth-modal__phone-input"})},806021,e=>{e.v({"auth-modal__info":"AuthLoginByPhone-module-scss-module__NhWI8a__auth-modal__info"})},136062,e=>{e.v({"invisible-yandex-captcha":"InvisibleYandexCaptcha-module-scss-module__kQ3C-G__invisible-yandex-captcha"})},295696,e=>{e.v({"tg-auth-button":"AuthLoginByTgButton-module-scss-module__mm6wRq__tg-auth-button","tg-auth-button_disabled":"AuthLoginByTgButton-module-scss-module__mm6wRq__tg-auth-button_disabled"})},634948,e=>{e.v({"auth-modal__open-tg-text":"AuthLoginByTg-module-scss-module__1ika9a__auth-modal__open-tg-text","auth-modal__tg-back-link":"AuthLoginByTg-module-scss-module__1ika9a__auth-modal__tg-back-link","auth-modal__tg-link":"AuthLoginByTg-module-scss-module__1ika9a__auth-modal__tg-link"})},807107,e=>{e.v({"vk-app-auth-button":"VkMiniAppAuthButton-module-scss-module__yez8mq__vk-app-auth-button"})},421440,e=>{e.v({"vk-app-auth-button":"VkOneTapButton-module-scss-module__b-WSIG__vk-app-auth-button"})},619202,e=>{e.v({"auth-modal":"AuthModal-module-scss-module__83S9fW__auth-modal","auth-modal__loader-wrapper":"AuthModal-module-scss-module__83S9fW__auth-modal__loader-wrapper","auth-modal_inner":"AuthModal-module-scss-module__83S9fW__auth-modal_inner"})},651336,e=>{"use strict";var t=e.i(843476),o=e.i(500932),n=e.i(618566);e.i(52948);var r=e.i(618291);e.i(993649);var a=e.i(400375),l=e.i(62345),i=e.i(30264),s=e.i(312144),c=e.i(474539),u=e.i(232629),d=e.i(597449);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}let p=Object.entries,f=Object.setPrototypeOf,h=Object.isFrozen,g=Object.getPrototypeOf,y=Object.getOwnPropertyDescriptor,b=Object.freeze,S=Object.seal,_=Object.create,A="u">typeof Reflect&&Reflect,v=A.apply,x=A.construct;b||(b=function(e){return e}),S||(S=function(e){return e}),v||(v=function(e,t){for(var o=arguments.length,n=Array(o>2?o-2:0),r=2;r<o;r++)n[r-2]=arguments[r];return e.apply(t,n)}),x||(x=function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];return new e(...o)});let T=W(Array.prototype.forEach),C=W(Array.prototype.lastIndexOf),k=W(Array.prototype.pop),w=W(Array.prototype.push),E=W(Array.prototype.splice),I=Array.isArray,N=W(String.prototype.toLowerCase),M=W(String.prototype.toString),P=W(String.prototype.match),L=W(String.prototype.replace),O=W(String.prototype.indexOf),j=W(String.prototype.trim),D=W(Number.prototype.toString),R=W(Boolean.prototype.toString),B="u"<typeof BigInt?null:W(BigInt.prototype.toString),F="u"<typeof Symbol?null:W(Symbol.prototype.toString),G=W(Object.prototype.hasOwnProperty),z=W(Object.prototype.toString),U=W(RegExp.prototype.test),H=(eJ=TypeError,function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return x(eJ,t)});function W(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return v(e,t,n)}}function $(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N;if(f&&f(e,null),!I(t))return e;let n=t.length;for(;n--;){let r=t[n];if("string"==typeof r){let e=o(r);e!==r&&(h(t)||(t[n]=e),r=e)}e[r]=!0}return e}function V(e){let t=_(null);for(let n of p(e)){var o=function(e){if(Array.isArray(e))return e}(n)||function(e,t){var o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,a,l,i=[],s=!0,c=!1;try{a=(o=o.call(e)).next,!1;for(;!(s=(n=a.call(o)).done)&&(i.push(n.value),2!==i.length);s=!0);}catch(e){c=!0,r=e}
1finally{try{if(!s&&null!=o.return&&(l=o.return(),Object(l)!==l))return}finally{if(c)throw r}}return i}}(n,2)||function(e,t){if(e){if("string"==typeof e)return m(e,2);var o=({}).toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?m(e,2):void 0}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let r=o[0],a=o[1];G(e,r)&&(I(a)?t[r]=function(e){for(let t=0;t<e.length;t++)G(e,t)||(e[t]=null);return e}(a):a&&"object"==typeof a&&a.constructor===Object?t[r]=V(a):t[r]=a)}return t}function Y(e,t){for(;null!==e;){let o=y(e,t);if(o){if(o.get)return W(o.get);if("function"==typeof o.value)return W(o.value)}e=g(e)}return function(){return null}}let q=b(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),K=b(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),X=b(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),J=b(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Q=b(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Z=b(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ee=b(["#text"]),et=b(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),eo=b(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),en=b(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),er=b(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ea=S(/{{[\w\W]*|^[\w\W]*}}/g),el=S(/<%[\w\W]*|^[\w\W]*%>/g),ei=S(/\${[\w\W]*/g),es=S(/^data-[\-\w.\u00B7-\uFFFF]+$/),ec=S(/^aria-[\-\w]+$/),eu=S(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ed=S(/^(?:\w+script|data):/i),em=S(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ep=S(/^html$/i),ef=S(/^[a-z][.\w]*(-[.\w]+)+$/i),eh=S(/<[/\w!]/g),eg=S(/<[/\w]/g),ey=S(/<\/no(script|embed|frames)/i),eb=S(/\/>/i),eS=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let o=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(o=t.getAttribute(n));let r="dompurify"+(o?"#"+o:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},e_=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},eA=function(e,t,o,n){return G(e,t)&&I(e[t])?$(n.base?V(n.base):{},e[t],n.transform):o};var ev=function e(){let t,o,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,r=t=>e(t);if(r.version="3.4.12",r.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return r.isSupported=!1,r;let a=n.document,l=a,i=l.currentScript;n.DocumentFragment;let s=n.HTMLTemplateElement,c=n.Node,u=n.Element,d=n.NodeFilter;void 0===n.NamedNodeMap&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let m=n.DOMParser,f=n.trustedTypes,h=u.prototype,g=Y(h,"cloneNode"),y=Y(h,"remove"),A=Y(h,"nextSibling"),v=Y(h,"childNodes"),x=Y(h,"parentNode"),W=Y(h,"shadowRoot"),ev=Y(h,"attributes"),ex=c&&c.prototype?Y(c.prototype,"nodeType"):null,eT=c&&c.prototype?Y(c.prototype,"nodeName"):null;if("function"==typeof s){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let eC="",ek=!1,ew=0,eE=function(){if(ew>0)throw H('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},eI=function(e){eE(),ew++;try{return t.createHTML(e)}finally{ew--}},eN=function(e){eE(),ew++;try{return t.createScriptURL(e)}finally{ew--}},eM=a,eP=eM.implementation,eL=eM.createNodeIterator,eO=eM.createDocumentFragment,ej=eM.getElementsByTagName,eD=l.importNode,eR=e_();r.isSupported="function"==typeof p&&"function"==typeof x&&eP&&void 0!==eP.createHTMLDocument;let eB=eu,eF=null,eG=$({},[...q,...K,...X,...Q,...ee]),ez=null,eU=$({}
1,[...et,...eo,...en,...er]),eH=Object.seal(_(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eW=null,e$=null,eV=Object.seal(_(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eY=!0,eq=!0,eK=!1,eX=!0,eJ=!1,eQ=!0,eZ=!1,e0=!1,e1=null,e2=null,e3=!1,e6=!1,e9=!1,e4=!1,e5=!0,e7=!1,e8="user-content-",te=!0,tt=!1,to={},tn=null,tr=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),ta=null,tl=$({},["audio","video","img","source","image","track"]),ti=null,ts=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tc="http://www.w3.org/1998/Math/MathML",tu="http://www.w3.org/2000/svg",td="http://www.w3.org/1999/xhtml",tm=td,tp=!1,tf=null,th=$({},[tc,tu,td],M),tg=b(["mi","mo","mn","ms","mtext"]),ty=$({},tg),tb=b(["annotation-xml"]),tS=$({},tb),t_=$({},["title","style","font","a","script"]),tA=null,tv=["application/xhtml+xml","text/html"],tx=null,tT=null,tC=a.createElement("form"),tk=function(e){return e instanceof RegExp||e instanceof Function},tw=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tT&&tT===e)return;e&&"object"==typeof e||(e={}),e=V(e),tx="application/xhtml+xml"===(tA=-1===tv.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?M:N,eF=eA(e,"ALLOWED_TAGS",eG,{transform:tx}),ez=eA(e,"ALLOWED_ATTR",eU,{transform:tx}),tf=eA(e,"ALLOWED_NAMESPACES",th,{transform:M}),ti=eA(e,"ADD_URI_SAFE_ATTR",ts,{transform:tx,base:ts}),ta=eA(e,"ADD_DATA_URI_TAGS",tl,{transform:tx,base:tl}),tn=eA(e,"FORBID_CONTENTS",tr,{transform:tx}),eW=eA(e,"FORBID_TAGS",V({}),{transform:tx}),e$=eA(e,"FORBID_ATTR",V({}),{transform:tx}),to=!!G(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?V(e.USE_PROFILES):e.USE_PROFILES),eY=!1!==e.ALLOW_ARIA_ATTR,eq=!1!==e.ALLOW_DATA_ATTR,eK=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eX=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eJ=e.SAFE_FOR_TEMPLATES||!1,eQ=!1!==e.SAFE_FOR_XML,eZ=e.WHOLE_DOCUMENT||!1,e6=e.RETURN_DOM||!1,e9=e.RETURN_DOM_FRAGMENT||!1,e4=e.RETURN_TRUSTED_TYPE||!1,e3=e.FORCE_BODY||!1,e5=!1!==e.
1SANITIZE_DOM,e7=e.SANITIZE_NAMED_PROPS||!1,te=!1!==e.KEEP_CONTENT,tt=e.IN_PLACE||!1,eB=!function(e){try{return U(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?eu:e.ALLOWED_URI_REGEXP,tm="string"==typeof e.NAMESPACE?e.NAMESPACE:td,ty=G(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?V(e.MATHML_TEXT_INTEGRATION_POINTS):$({},tg),tS=G(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?V(e.HTML_INTEGRATION_POINTS):$({},tb);let n=G(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?V(e.CUSTOM_ELEMENT_HANDLING):_(null);if(eH=_(null),G(n,"tagNameCheck")&&tk(n.tagNameCheck)&&(eH.tagNameCheck=n.tagNameCheck),G(n,"attributeNameCheck")&&tk(n.attributeNameCheck)&&(eH.attributeNameCheck=n.attributeNameCheck),G(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(eH.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),S(eH),eJ&&(eq=!1),e9&&(e6=!0),to&&(eF=$({},ee),ez=_(null),!0===to.html&&($(eF,q),$(ez,et)),!0===to.svg&&($(eF,K),$(ez,eo),$(ez,er)),!0===to.svgFilters&&($(eF,X),$(ez,eo),$(ez,er)),!0===to.mathMl&&($(eF,Q),$(ez,en),$(ez,er))),eV.tagCheck=null,eV.attributeCheck=null,G(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eV.tagCheck=e.ADD_TAGS:I(e.ADD_TAGS)&&(eF===eG&&(eF=V(eF)),$(eF,e.ADD_TAGS,tx))),G(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eV.attributeCheck=e.ADD_ATTR:I(e.ADD_ATTR)&&(ez===eU&&(ez=V(ez)),$(ez,e.ADD_ATTR,tx))),G(e,"ADD_URI_SAFE_ATTR")&&I(e.ADD_URI_SAFE_ATTR)&&$(ti,e.ADD_URI_SAFE_ATTR,tx),G(e,"FORBID_CONTENTS")&&I(e.FORBID_CONTENTS)&&(tn===tr&&(tn=V(tn)),$(tn,e.FORBID_CONTENTS,tx)),G(e,"ADD_FORBID_CONTENTS")&&I(e.ADD_FORBID_CONTENTS)&&(tn===tr&&(tn=V(tn)),$(tn,e.ADD_FORBID_CONTENTS,tx)),te&&(eF["#text"]=!0),eZ&&$(eF,["html","head","body"]),eF.table&&($(eF,["tbody"]),delete eW.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let o=t;t=e.TRUSTED_TYPES_POLICY;try{eC=eI("")}catch(e){throw t=o,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eC=""):(void 0===t&&(ek||(o=eS(f,i),ek=!0),t=o),t&&"string"==typeof eC&&(eC=eI("")));b&&b(e),tT=e},tE=$({},[...K,...X,...J]),tI=$({},[...Q,...Z]),tN=function(e){var t,o,n;let r=x(e);r&&r.tagName||(r={namespaceURI:tm,tagName:"template"});let a=N(e.tagName),l=N(r.tagName);return!!tf[e.namespaceURI]&&(e.namespaceURI===tu?(t=r).namespaceURI===td?"svg"===a:t.namespaceURI===tc?"svg"===a&&("annotation-xml"===l||ty[l]):!!tE[a]:e.namespaceURI===tc?(o=r).namespaceURI===td?"math"===a:o.namespaceURI===tu?"math"===a&&tS[l]:!!tI[a]:e.namespaceURI===td?((n=r).namespaceURI!==tu||!!tS[l])&&(n.namespaceURI!==tc||!!ty[l])&&!tI[a]&&(t_[a]||!tE[a]):"application/xhtml+xml"===tA&&!!tf[e.namespaceURI])},tM=function(e){w(r.removed,{element:e});try{x(e).removeChild(e)}catch(t){if(y(e),!x(e))throw H("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tP=function(e){tj(e);let t=v(e);if(t){let e=[];T(t,t=>{w(e,t)}),T(e,e=>{try{y(e)}catch(e){}})}let o=ev(e);if(o)for(let t=o.length-1;t>=0;--t){let n=o[t],r=n&&n.name;if("string"==typeof r)try{e.removeAttribute(r)}catch(e){}}},tL=function(e,t){try{w(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){w(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(e6||e9)try{tM(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tO=function(e){let t=ev(e);if(t)for(let o=t.length-1;o>=0;--o){let n=t[o],r=n&&n.name;if("string"==typeof r&&!ez[tx(r)])try{e.removeAttribute(r)}catch(e){}}},tj=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(ex?ex(e):e.nodeType)===1&&tO(e);let o=v(e);if(o)for(let e=o.length-1;e>=0;--e)t.push(o[e])}},tD=function(e){if(!eQ)return;let t=[e];for(;t.length>0;){let e=t.pop(),o=ex?ex(e):e.nodeType;if(7===o||8===o&&U(eg,e.data)){try{y(e)}catch(e){}continue}if(1===o){let t=tx(eT?eT(e):e.nodeName);try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&"label"!==t&&"output"!==t&&e.removeAttribute("for")}catch(e){}}let n=v(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tR=function(e){let o=null,n=null;if(e3)e="<remove></remove>"+e;else{let t=P(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===tA&&tm===td&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let r=t?eI(e):e;if(tm===td)try{o=new m().parseFromString(r,tA)}catch(e){}if(!o||!o.documentElement){o=eP.createDocument(tm,"template",null);try{o.documentElement.innerHTML=tp?eC:r}catch(e){}}let l=o.body||o.documentElement;return(e&&n&&l.insertBefore(a.createTextNode(n),l.childNodes[0]||null),tm===td)?ej.call(o,eZ?"html":"body")[0]:eZ?o.documentElement:l},tB=function(e){return eL.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},tF=function(e){return e=L(e,ea," "),e=L(e,el," "),e=L(e,ei," ")},tG=function(e){var t;e.normalize();let o=eL.call(e.ownerDocument||e,e,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null),n=o.nextNode();for(;n;)n.data=tF(n.data),n=o.nextNode();let r=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");r&&T(r,e=>{tU(e.content)&&tG(e.content)})},tz=function(e){let t=eT?eT(e):null;return"string"==typeof t&&"form"===tx(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==ev(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==ex(e)||e.childNodes!==v(e))},tU=function(e){if(!ex||"object"!=typeof e||null===e)return!1;try{return 11===ex(e)}catch(e){return!1}},tH=function(e){if(!ex||"object"!=typeof e||null===e)return!1;try{return"number"==typeof ex(e)}catch(e){return!1}};function tW(e,t,o){0!==e.length&&T(e,e=>{e.call(r,t,o,tT)})}
1let t$=function(e,t){if(!eW[t]&&tK(t)&&(eH.tagNameCheck instanceof RegExp&&U(eH.tagNameCheck,t)||eH.tagNameCheck instanceof Function&&eH.tagNameCheck(t)))return!1;if(te&&!tn[t]){let t=x(e),o=v(e);if(o&&t){let n=o.length;for(let r=n-1;r>=0;--r){let n=tt?o[r]:g(o[r],!0);t.insertBefore(n,A(e))}}}return tM(e),!0},tV=function(e,t){if(tW(eR.beforeSanitizeElements,e,null),e!==t&&null===x(e))return!0;if(tz(e))return tM(e),!0;let o=tx(eT?eT(e):e.nodeName);if(tW(eR.uponSanitizeElement,e,{tagName:o,allowedTags:eF}),e!==t&&null===x(e))return!0;if(eQ&&e.hasChildNodes()&&!tH(e.firstElementChild)&&U(eh,e.textContent)&&U(eh,e.innerHTML)||eQ&&e.namespaceURI===td&&"style"===o&&tH(e.firstElementChild)||7===e.nodeType||eQ&&8===e.nodeType&&U(eg,e.data))return tM(e),!0;if(eW[o]||!(eV.tagCheck instanceof Function&&eV.tagCheck(o))&&!eF[o]){let t=t$(e,o);return!1===t&&tW(eR.afterSanitizeElements,e,null),t}if((ex?ex(e):e.nodeType)===1&&!tN(e)||("noscript"===o||"noembed"===o||"noframes"===o)&&U(ey,e.innerHTML))return tM(e),!0;if(eJ&&3===e.nodeType){let t=tF(e.textContent);e.textContent!==t&&(w(r.removed,{element:e.cloneNode()}),e.textContent=t)}return tW(eR.afterSanitizeElements,e,null),!1},tY=function(e,t,o){if(e$[t]||eQ&&"patchsrc"===t||eQ&&"for"===t&&"label"!==e&&"output"!==e||e5&&("id"===t||"name"===t)&&(o in a||o in tC))return!1;let n=ez[t]||eV.attributeCheck instanceof Function&&eV.attributeCheck(t,e);if(eq&&U(es,t));else if(eY&&U(ec,t));else if(n){if(ti[t]);else if(U(eB,L(o,em,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===O(o,"data:")&&ta[e]);else if(eK&&!U(ed,L(o,em,"")));else if(o)return!1}else if(!(tK(e)&&(eH.tagNameCheck instanceof RegExp&&U(eH.tagNameCheck,e)||eH.tagNameCheck instanceof Function&&eH.tagNameCheck(e))&&(eH.attributeNameCheck instanceof RegExp&&U(eH.attributeNameCheck,t)||eH.attributeNameCheck instanceof Function&&eH.attributeNameCheck(t,e))||"is"===t&&eH.allowCustomizedBuiltInElements&&(eH.tagNameCheck instanceof RegExp&&U(eH.tagNameCheck,o)||eH.tagNameCheck instanceof Function&&eH.tagNameCheck(o))))return!1;return!0},tq=$({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tK=function(e){return!tq[N(e)]&&U(ef,e)},tX=function(e,o,n,r){if(t&&"object"==typeof f&&"function"==typeof f.getAttributeType&&!n)switch(f.getAttributeType(e,o)){case"TrustedHTML":return eI(r);case"TrustedScriptURL":return eN(r)}return r},tJ=function(e,t,o,n){try{o?e.setAttributeNS(o,t,n):e.setAttribute(t,n),tz(e)?tM(e):k(r.removed)}catch(o){tL(t,e)}},tQ=function(e){tW(eR.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||tz(e))return;let o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ez,forceKeepAttr:void 0},n=t.length,r=tx(e.nodeName);for(;n--;){let a=t[n],l=a.name,i=a.namespaceURI,s=a.value,c=tx(l),u="value"===l?s:j(s);if(o.attrName=c,o.attrValue=u,o.keepAttr=!0,o.forceKeepAttr=void 0,tW(eR.uponSanitizeAttribute,e,o),u=o.attrValue,e7&&("id"===c||"name"===c)&&0!==O(u,e8)&&(tL(l,e),u=e8+u),eQ&&U(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&P(u,"href")){tL(l,e);continue}if(!o.forceKeepAttr){if(!o.keepAttr||!eX&&U(eb,u)||(eJ&&(u=tF(u)),!tY(r,c,u))){tL(l,e);continue}(u=tX(r,c,i,u))!==s&&tJ(e,l,i,u)}}tW(eR.afterSanitizeAttributes,e,null)},tZ=function(e){let t=null,o=tB(e);for(tW(eR.beforeSanitizeShadowDOM,e,null);t=o.nextNode();)if(tW(eR.uponSanitizeShadowNode,t,null),tV(t,e),tQ(t),tU(t.content)&&tZ(t.content),(ex?ex(t):t.nodeType)===1){let e=W(t);tU(e)&&(t0(e),tZ(e))}tW(eR.afterSanitizeShadowDOM,e,null)},t0=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){tZ(e.shadow);continue}let o=e.node,n=(ex?ex(o):o.nodeType)===1,r=v(o);if(r)for(let e=r.length-1;e>=0;--e)t.push({node:r[e],shadow:null});if(n){let e=eT?eT(o):null;if("string"==typeof e&&"template"===tx(e)){let e=o.content;tU(e)&&t.push({node:e,shadow:null})}}if(n){let e=W(o);tU(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return r.sanitize=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
1,n=null,a=null,i=null,s=null;if((tp=!e)&&(e="<!-->"),"string"!=typeof e&&!tH(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return D(e);case"boolean":return R(e);case"bigint":return B?B(e):"0";case"symbol":return F?F(e):"Symbol()";case"undefined":default:return z(e);case"function":case"object":{if(null===e)return z(e);let t=Y(e,"toString");if("function"==typeof t){let o=t(e);return"string"==typeof o?o:z(o)}return z(e)}}}(e)))throw H("dirty is not a string, aborting");if(!r.isSupported)return e;e0?(eF=e1,ez=e2):tw(o),(eR.uponSanitizeElement.length>0||eR.uponSanitizeAttribute.length>0)&&(eF=V(eF)),eR.uponSanitizeAttribute.length>0&&(ez=V(ez)),r.removed=[];let c=tt&&"string"!=typeof e&&tH(e);if(c){tD(e);let t=eT?eT(e):e.nodeName;if("string"==typeof t){let o=tx(t);if(!eF[o]||eW[o])throw tP(e),H("root node is forbidden and cannot be sanitized in-place")}if(tz(e))throw tP(e),H("root node is clobbered and cannot be sanitized in-place");try{t0(e)}catch(t){throw tP(e),t}}else if(tH(e))1===(a=(n=tR("<!---->")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a),t0(a);else{if(!e6&&!eJ&&!eZ&&-1===e.indexOf("<"))return t&&e4?eI(e):e;if(!(n=tR(e)))return e6?null:e4?eC:""}n&&e3&&tM(n.firstChild);let u=c?e:n,d=tB(u);try{for(;i=d.nextNode();)tV(i,u),tQ(i),tU(i.content)&&tZ(i.content)}catch(t){throw c&&(tP(e),T(r.removed,e=>{e.element&&tj(e.element)})),t}if(c)return T(r.removed,e=>{e.element&&tj(e.element)}),eJ&&tG(e),e;if(e6){if(eJ&&tG(n),e9)for(s=eO.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(ez.shadowroot||ez.shadowrootmode)&&(s=eD.call(l,s,!0)),s}let m=eZ?n.outerHTML:n.innerHTML;return eZ&&eF["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&U(ep,n.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+m),eJ&&(m=tF(m)),t&&e4?eI(m):m},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tw(e),e0=!0,e1=eF,e2=ez},r.clearConfig=function(){tT=null,e0=!1,e1=null,e2=null,t=o,eC=""},r.isValidAttribute=function(e,t,o){return tT||tw({}),tY(tx(e),tx(t),o)},r.addHook=function(e,t){"function"!=typeof t||G(eR,e)&&w(eR[e],t)},r.removeHook=function(e,t){if(G(eR,e)){if(void 0!==t){let o=C(eR[e],t);return -1===o?void 0:E(eR[e],o,1)[0]}return k(eR[e])}},r.removeHooks=function(e){G(eR,e)&&(eR[e]=[])},r.removeAllHooks=function(){eR=e_()},r}();e.i(635743);var ex=e.i(206674),eT=e.i(271645),eC=e.i(362667);let ek=["","","",""],ew=new Set(["79999999901","79999999902","79999999903","79999999999"]);var eE=e.i(439112),eI=e.i(531823),eN=e.i(52273),eM=e.i(188188),eP=e.i(202926),eL=e.i(377825),eO=e.i(197057),ej=e.i(4049),eD=e.i(514567),eR=e.i(973382),eB=e.i(821825);let eF=()=>{let[e]=(0,eP.useLoginByPhoneMutation)(),[t]=(0,eP.useLoginByVkMiniAppMutation)(),[a]=(0,eP.useLoginByVkMutation)(),[l]=(0,eP.useLoginByTgMutation)(),[i]=(0,eP.useLoginByMaxMutation)(),{changeAuthErrorMessage:s,changeIsAuthLoading:c}=(0,r.useActions)(),u=(0,eT.useCallback)(()=>{c(!1)},[]),d=(0,eT.useCallback)(e=>{(0,eN.handleErrorMessage)({err:e,callback:s})},[]),{handleSuccessAuth:m}=(()=>{let e,t=(0,o.c)(14),{changeAuthErrorMessage:a,closeModalAuth:l,closeMiniCart:i,closeDrawer:s,changeHasClickedLoginTg:c,changeHasClickedLoginMax:u,changeIsChangePhoneDisabled:d}=(0,r.useActions)(),{navigateTo:m}=(0,eR.useTownNavigate)(),p=(0,n.usePathname)(),{metricVisitCheckout:f,mectricLogin:h}=(0,ej.useMetricFunctions)(),g=(0,r.useAppSelector)(eB.selectMiniCartOpen),{getHash:y}=(0,eD.useQueryAndHash)();return t[0]!==a||t[1]!==u||t[2]!==c||t[3]!==d||t[4]!==s||t[5]!==i||t[6]!==l||t[7]!==y||t[8]!==h||t[9]!==f||t[10]!==g||t[11]!==m||t[12]!==p?(e={handleSuccessAuth:e=>{(p.includes("/cart")||g||"#minicart-sidebar"===y())&&(f(),m("/checkout")),h(e),l(),i(),s(),setTimeout(()=>{c(!1),u(!1),d(!1)},300),a(null),eO.toast.success(`${e.text} ${e.user.name??""}`)}},t[0]=a,t[1]=u,t[2]=c,t[3]=d,t[4]=s,t[5]=i,t[6]=l,t[7]=y,t[8]=h,t[9]=f,t[10]=g,t[11]=m,t[12]=p,t[13]=e):e=t[13],e})();return{handleLoginByPhone:(0,eT.useCallback)(({phoneNumber:t,authPhoneCode:o,setAuthPhoneCode:n,setPhoneNumber:r})=>
1{c(!0),e({phone:parseInt((0,eI.getNumbersFromString)(t),10),code:parseInt(o.join(""),10)}).unwrap().then(e=>{r(""),n(ek),m(e)}).catch(d).finally(u)},[]),handleAuthVkMiniApp:e=>{c(!0),t(e).unwrap().then(e=>{eL.default.send("VKWebAppStorageGet",{keys:["notificationsPermission"]}).then(e=>{"notificationsPermission"===e.keys[0].key||setTimeout(()=>{eL.default.send("VKWebAppAllowNotifications").then(e=>{e.result&&eL.default.send("VKWebAppStorageSet",{key:"notificationsPermission"})})},1e3)}).catch(e=>{console.error(e)}),m(e)}).catch(d).finally(u)},handleAuthVkFromRedirect:e=>{(0,eM.toastInfoMessage)("Входим в личный кабинет"),a(e).unwrap().then(e=>{m(e)}).catch(d).finally(u)},handleLoginByTg:({code:e,setCode:t})=>{c(!0),l({code:e.join("")}).unwrap().then(e=>{t(ek),m(e)}).catch(d).finally(u)},handleLoginByMax:({code:e,setCode:t})=>{c(!0),i({code:e.join("")}).unwrap().then(e=>{t(ek),m(e)}).catch(d).finally(u)}}};function eG(e){return""===e.value}function ez(e){return""!==e}var eU=e.i(77117);let eH=e=>{let n,r,a,l,i,s,c=(0,o.c)(18),{code:u,phoneNumber:m,setPhoneNumber:p,setCode:f,authType:h}=e;c[0]!==h||c[1]!==u||c[2]!==m||c[3]!==f||c[4]!==p?(n={phoneNumber:m,setPhoneNumber:p,code:u,setCode:f,authType:h},c[0]=h,c[1]=u,c[2]=m,c[3]=f,c[4]=p,c[5]=n):n=c[5];let{handleCodeChange:g,handleKeyDownCode:y,inputsCodeRef:b}=(e=>{let t,n,r,a,l=(0,o.c)(16),{setCode:i,code:s,setPhoneNumber:c,phoneNumber:u,authType:d}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],l[0]=t):t=l[0];let m=(0,eT.useRef)(t),{handleLoginByPhone:p,handleLoginByTg:f,handleLoginByMax:h}=eF();l[1]!==d||l[2]!==s||l[3]!==h||l[4]!==p||l[5]!==f||l[6]!==u||l[7]!==i||l[8]!==c?(n=(e,t)=>{let o=e.target.value.replace(/\D/g,"").slice(0,1),n=[...s];n[t]=o,i(n);let r=m.current.find(eG);r&&""!==o&&r.focus(),n.every(ez)&&("phone"===d?u&&c&&(0,eE.isPhoneNumberValid)(u)&&p({authPhoneCode:n,setAuthPhoneCode:i,phoneNumber:u,setPhoneNumber:c}):"tg"===d?f({code:n,setCode:i}):"max"===d&&h({code:n,setCode:i}))},l[1]=d,l[2]=s,l[3]=h,l[4]=p,l[5]=f,l[6]=u,l[7]=i,l[8]=c,l[9]=n):n=l[9];let g=n;l[10]!==s||l[11]!==i?(r=(e,t)=>{if("Backspace"===e.code&&0!==t&&""===m.current[t].value){m.current[t-1].focus();let e=[...s];e[t-1]="",i(e)}},l[10]=s,l[11]=i,l[12]=r):r=l[12];let y=r;return l[13]!==g||l[14]!==y?(a={handleCodeChange:g,handleKeyDownCode:y,inputsCodeRef:m},l[13]=g,l[14]=y,l[15]=a):a=l[15],a})(n);c[6]===Symbol.for("react.memo_cache_sentinel")?(r={direction:"down",directionValue:"md"},c[6]=r):r=c[6];let S=(0,d.useCustomMediaQuery)(r);return c[7]!==b?(a=()=>{b.current[0].focus()},c[7]=b,c[8]=a):a=c[8],c[9]===Symbol.for("react.memo_cache_sentinel")?(l=[],c[9]=l):l=c[9],(0,eT.useLayoutEffect)(a,l),c[10]!==u||c[11]!==g||c[12]!==y||c[13]!==b||c[14]!==S?(i=u.map((e,o)=>(0,t.jsx)("input",{type:S?"number":"text",ref:e=>{e&&(b.current[o]=e)},onChange:e=>g(e,o),value:u[o],onKeyDown:e=>y(e,o),autoComplete:"off",name:`code-${o}`,maxLength:1},o)),c[10]=u,c[11]=g,c[12]=y,c[13]=b,c[14]=S,c[15]=i):i=c[15],c[16]!==i?(s=(0,t.jsx)("div",{className:eU.default["auth-modal__phone-code"],children:i}),c[16]=i,c[17]=s):s=c[17],s};var eW=e.i(207670),e$=e.i(870582),eV=e.i(503419);let eY=()=>{let e,n,a,l,i,c,u,d=(0,o.c)(18),m=(0,r.useAppSelector)(s.selectIsAuthAgreeText),p=(0,r.useAppSelector)(s.selectAuthMax),f=(0,r.useAppSelector)(s.selectAuthMethodsOrder),{changeHasClickedLoginMax:h,changeAuthErrorMessage:g}=(0,r.useActions)();d[0]!==g||d[1]!==h?(e=()=>{h(!0),g(null)},d[0]=g,d[1]=h,d[2]=e):e=d[2];let y=e,b=p.botLink,S=!m;d[3]!==f?(n=f.indexOf("max"),d[3]=f,d[4]=n):n=d[4],d[5]!==n?(a={order:n},d[5]=n,d[6]=a):a=d[6],d[7]!==S||d[8]!==a?(l={variant:"contained",disabled:S,sx:a},d[7]=S,d[8]=a,d[9]=l):l=d[9];let _=!m&&eV.default["max-auth-button_disabled"];return d[10]!==_?(i=(0,eW.default)(eV.default["max-auth-button"],_),d[10]=_,d[11]=i):i=d[11],d[12]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(e$.default,{}),d[12]=c):c=d[12],d[13]!==p.botLink||d[14]!==y||d[15]!==l||d[16]!==i?(u=(0,t.jsxs)(eC.CustomLink,{onClick:y,shouldRenderAsMuiButton:!0,href:b,MuiButtonProps:l,className:i,children:[c,"Получить код в MAX"]}),d[13]=p.botLink,d[14]=y,d[15]=l,d[16]=i,d[17]=u):u=d[17],u},eq=e=>{let n,a,l=(0,o.c)(6),{shouldRenderAsMuiButton:i,children:c,className:u}=e,d=void 0!==i&&i,m=(0,r.useAppSelector)(s.selectAuthMax);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n={variant:"contained"},l[0]=n):n=l[0],l[1]!==m.botLink||l[2]!==c||l[3]!==u||l[4]!==d?(a=(0,t.jsx)(eC.CustomLink,{className:u,shouldRenderAsMuiButton:d,href:m.botLink,MuiButtonProps:n,children:c}),l[1]=m.botLink,l[2]=c,l[3]=u,l[4]=d,l[5]=a):a=l[5],a};var eK=e.i(253160);let eX=()=>
1{let e,n,a=(0,o.c)(7),l=(0,r.useAppSelector)(s.selectHasClickedLoginMax),[i,c]=(0,eT.useState)(ek),{changeHasClickedLoginMax:u,changeAuthErrorMessage:d}=(0,r.useActions)();a[0]!==d||a[1]!==u?(e=e=>{e.preventDefault(),u(!1),d(null),c(ek)},a[0]=d,a[1]=u,a[2]=e):e=a[2];let m=e;return a[3]!==i||a[4]!==m||a[5]!==l?(n=l?(0,t.jsxs)("section",{children:[(0,t.jsx)("div",{className:eK.default["auth-modal__open-max-text"],children:"Введите код подтверждения из чат-бота."}),(0,t.jsx)(eH,{code:i,setCode:c,authType:"max"}),(0,t.jsxs)("div",{className:eK.default["auth-modal__open-max-text"],children:["Если у вас автоматически не открылся ",(0,t.jsx)("br",{}),"MAX, то нажмите:"]}),(0,t.jsx)(eq,{className:eK.default["auth-modal__max-link"],shouldRenderAsMuiButton:!0,children:"Получить код"}),(0,t.jsx)(eC.CustomLink,{href:"/",onClick:m,className:eK.default["auth-modal__max-back-link"],children:"Назад"})]}):(0,t.jsx)(eY,{}),a[3]=i,a[4]=m,a[5]=l,a[6]=n):n=a[6],n};var eJ,eQ,eZ=e.i(247167),e0=function(){return(e0=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},e1=function(e){var t;e?function(e){if(e)for(;e.lastChild;)e.lastChild.remove()}("string"==typeof e?document.getElementById(e):e):(t=document.querySelector(".grecaptcha-badge"))&&t.parentNode&&document.body.removeChild(t.parentNode)},e2=function(e,t){e1(t),window.___grecaptcha_cfg=void 0;var o,n=document.querySelector("#"+e);n&&n.remove(),(o=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))&&o.remove()},e3=function(e){var t=e.render,o=e.onLoadCallbackName,n=e.language,r=e.onLoad,a=e.useRecaptchaNet,l=e.useEnterprise,i=e.scriptProps,s=void 0===i?{}:i,c=s.nonce,u=void 0===c?"":c,d=s.defer,m=s.async,p=s.id,f=s.appendTo,h=(void 0===p?"":p)||"google-recaptcha-v3";if(document.querySelector("#"+h))r();else{var g,y="https://www."+((g={useEnterprise:l,useRecaptchaNet:a}).useRecaptchaNet?"recaptcha.net":"google.com")+"/recaptcha/"+(g.useEnterprise?"enterprise.js":"api.js"),b=document.createElement("script");b.id=h,b.src=y+"?render="+t+("explicit"===t?"&onload="+o:"")+(n?"&hl="+n:""),u&&(b.nonce=u),b.defer=!!(void 0!==d&&d),b.async=!!(void 0!==m&&m),b.onload=r,("body"===f?document.body:document.getElementsByTagName("head")[0]).appendChild(b)}},e6=function(e){void 0===eZ.default||eZ.default.env,console.warn(e)};(eQ||(eQ={})).SCRIPT_NOT_AVAILABLE="Recaptcha script is not available";var e9=(0,eT.createContext)({executeRecaptcha:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}});function e4(e){var t=e.reCaptchaKey,o=e.useEnterprise,n=void 0!==o&&o,r=e.useRecaptchaNet,a=void 0!==r&&r,l=e.scriptProps,i=e.language,s=e.container,c=e.children,u=(0,eT.useState)(null),d=u[0],m=u[1],p=(0,eT.useRef)(t),f=JSON.stringify(l),h=JSON.stringify(null==s?void 0:s.parameters);(0,eT.useEffect)(function(){if(t){var e=(null==l?void 0:l.id)||"google-recaptcha-v3",o=(null==l?void 0:l.onLoadCallbackName)||"onRecaptchaLoadCallback";return window[o]=function(){var e=n?window.grecaptcha.enterprise:window.grecaptcha,o=e0({badge:"inline",size:"invisible",sitekey:t},(null==s?void 0:s.parameters)||{});p.current=e.render(null==s?void 0:s.element,o)},e3({render:(null==s?void 0:s.element)?"explicit":t,onLoadCallbackName:o,useEnterprise:n,useRecaptchaNet:a,scriptProps:l,language:i,onLoad:function(){if(window&&window.grecaptcha){var e=n?window.grecaptcha.enterprise:window.grecaptcha;e.ready(function(){m(e)})}else e6("<GoogleRecaptchaProvider /> "+eQ.SCRIPT_NOT_AVAILABLE)},onError:function(){e6("Error loading google recaptcha script")}}),function(){e2(e,null==s?void 0:s.element)}}e6("<GoogleReCaptchaProvider /> recaptcha key not provided")},[n,a,f,h,i,t,null==s?void 0:s.element]);var g=(0,eT.useCallback)(function(e){if(!d||!d.execute)throw Error("<GoogleReCaptchaProvider /> Google Recaptcha has not been loaded");return d.execute(p.current,{action:e})},[d,p]),y=(0,eT.useMemo)(function(){return{executeRecaptcha:d?g:void 0,container:null==s?void 0:s.element}},[g,d,null==s?void 0:s.element]);return eT.default.createElement(e9.Provider,{value:y},c)}function e5(e,t){return e(t={exports:{}},t.exports),t.exports}e9.Consumer;var e7="function"==typeof Symbol&&Symbol.for,e8=e7?Symbol.for("react.element"):60103,te=e7?Symbol.for("react.portal"):60106,tt=e7?Symbol.for("react.fragment"):60107,to=e7?Symbol.for("react.strict_mode"):60108,tn=e7?Symbol.for("react.profiler"):60114,tr=e7?Symbol.for("react.provider"):60109,ta=e7?Symbol.for("react.context"):60110,tl=e7?Symbol.for("react.async_mode"):60111,ti=e7?Symbol.for("react.concurrent_mode"):60111,ts=e7?Symbol.for("react.forward_ref"):60112,tc=e7?Symbol.for("react.suspense"):60113,tu=e7?Symbol.for("react.suspense_list"):60120,td=e7?Symbol.for("react.memo"):60115,tm=e7?Symbol.for("react.lazy"):60116,tp=e7?Symbol.for("react.block"):60121,tf=e7?Symbol.for("react.fundamental"):60117,th=e7?Symbol.for("react.responder"):60118,tg=e7?Symbol.for("react.scope"):60119;function ty(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case e8:switch(e=e.type){case tl:case ti:case tt:case tn:case to:case tc:return e;default:switch(e=e&&e.$$typeof){case ta:case ts:case tm:case td:case tr:return e;default:return t}}case te:return t}}}function tb(e){return ty(e)===ti}var tS={AsyncMode:tl,ConcurrentMode:ti,ContextConsumer:ta,ContextProvider:tr,Element:e8,ForwardRef:ts,Fragment:tt,Lazy:tm,Memo:td,Portal:te,Profiler:tn,StrictMode:to,Suspense:t
1c,isAsyncMode:function(e){return tb(e)||ty(e)===tl},isConcurrentMode:tb,isContextConsumer:function(e){return ty(e)===ta},isContextProvider:function(e){return ty(e)===tr},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===e8},isForwardRef:function(e){return ty(e)===ts},isFragment:function(e){return ty(e)===tt},isLazy:function(e){return ty(e)===tm},isMemo:function(e){return ty(e)===td},isPortal:function(e){return ty(e)===te},isProfiler:function(e){return ty(e)===tn},isStrictMode:function(e){return ty(e)===to},isSuspense:function(e){return ty(e)===tc},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===tt||e===ti||e===tn||e===to||e===tc||e===tu||"object"==typeof e&&null!==e&&(e.$$typeof===tm||e.$$typeof===td||e.$$typeof===tr||e.$$typeof===ta||e.$$typeof===ts||e.$$typeof===tf||e.$$typeof===th||e.$$typeof===tg||e.$$typeof===tp)},typeOf:ty},t_=e5(function(e,t){}),tA=(t_.AsyncMode,t_.ConcurrentMode,t_.ContextConsumer,t_.ContextProvider,t_.Element,t_.ForwardRef,t_.Fragment,t_.Lazy,t_.Memo,t_.Portal,t_.Profiler,t_.StrictMode,t_.Suspense,t_.isAsyncMode,t_.isConcurrentMode,t_.isContextConsumer,t_.isContextProvider,t_.isElement,t_.isForwardRef,t_.isFragment,t_.isLazy,t_.isMemo,t_.isPortal,t_.isProfiler,t_.isStrictMode,t_.isSuspense,t_.isValidElementType,t_.typeOf,e5(function(e){e.exports=tS})),tv={};tv[tA.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tv[tA.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var tx=e.i(908717);let tT=e=>{let t=(0,eI.getNumbersFromString)(e),o=t.startsWith("8")?`7${t.slice(1)}`:t;return ew.has(o)?o:null},tC=()=>{let{changeAuthErrorMessage:e,changeIsAuthLoading:t}=(0,r.useActions)(),o=(0,r.useAppSelector)(s.selectAuthPhoneType),[n]=(0,eP.useSendCodeByCallMutation)(),[a]=(0,eP.useSendCodeBySmsMutation)(),{changeIsChangePhoneDisabled:l,changeCodeTimer:i,changeAuthInfoText:c}=(0,r.useActions)(),u=(0,eT.useCallback)(t=>{l(!0),e(null),i(60),c(t)},[]),d=(0,eT.useCallback)(t=>{(0,eN.handleErrorMessage)({err:t,callback:e})},[]),m=(0,eT.useCallback)(()=>{t(!1)},[]),p=(0,eT.useCallback)((e,t)=>{n({phone:parseInt((0,eI.getNumbersFromString)(t),10),captcha:e}).unwrap().then(()=>{u("На ваш номер будет совершен звонок. Для входа введите 4 последние цифры этого номера.")}).catch(d).finally(m)},[]),f=(0,eT.useCallback)((e,t)=>{a({phone:parseInt((0,eI.getNumbersFromString)(t),10),captcha:e}).unwrap().then(()=>{u("На ваш номер отправлен код подтверждения.")}).catch(d).finally(m)},[]);return{getCode:(0,eT.useCallback)((e,t)=>{("robocallWithSms"===o||"robocall"===o)&&p(e,t),"sms"===o&&f(e,t)},[o]),getCodeByCall:p,getCodeBySms:f}};function tk(e,t){let o=tT(t);return!!o&&(e("",o),!0)}var tw=e.i(333496),tE=e.i(984828),tI=e.i(820676);let tN=e=>{let n,a,l,i,c,u,d=(0,o.c)(15),{phoneNumber:m,getCode:p}=e,f=(0,r.useAppSelector)(s.selectIsAuthAgreeText),h=(0,r.useAppSelector)(s.selectAuthMethodsOrder);d[0]!==p||d[1]!==m?(n=()=>{p(m)},d[0]=p,d[1]=m,d[2]=n):n=d[2];let g=n;return d[3]!==f||d[4]!==m?(a=!(0,eE.isPhoneNumberValid)(m)||!f,d[3]=f,d[4]=m,d[5]=a):a=d[5],d[6]!==h?(l=h.indexOf("phone"),d[6]=h,d[7]=l):l=d[7],d[8]!==l?(i={order:l},d[8]=l,d[9]=i):i=d[9],d[10]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(tE.FaPhone,{}),d[10]=c):c=d[10],d[11]!==g||d[12]!==a||d[13]!==i?(u=(0,t.jsxs)(tw.Button,{variant:"action",onClick:g,className:tI.default["auth-modal__auth-btn"],disabled:a,sx:i,children:[c,"Войти по телефону"]}),d[11]=g,d[12]=a,d[13]=i,d[14]=u):u=d[14],u};var tM=e.i(473665),tP=e.i(391080);let tL=({getCodeBySms:e,phoneNumber:o})=>{let n=(0,r.useAppSelector)(s.selectCodeTimer),a=(0,eT.useCallback)(()=>{e(o)},[o]);return(0,t.jsxs)(tw.Button,{variant:"contained",disabled:!!n,onClick:a,className:tP.default["auth-modal__resms-button"],sx:{width:1,mt:2},children:[(0,t.jsx)(tM.MdOutlineTextsms,{}),"Запросить смс",!!n&&(0,t.jsxs)("span",{children:[" через ",n," сек."]})]})};var tO=e.i(851346),tj=e.i(906256);let tD=({getCodeBySms:e,getCodeByCall:o,phoneNumber:n,authPhoneType:a})=>{let l=(0,r.useAppSelector)(s.selectCodeTimer),{changeCodeTimer:i}=(0,r.useActions)();(0,tO.useInterval)(()=>{i(l-1)},0===l?null:1e3);let c=(0,eT.useCallback)(()=>{"sms"===a?e(n):o(n)},[a,n]);return(0,t.jsxs)(tw.Button,{variant:"action",className:tj.default["auth-modal__repeat-button"],disabled:!!l,onClick:c,children:["sms"===a?(0,t.jsx)(tM.MdOutlineTextsms,{}):(0,t.jsx)(tM.MdOutlinePhoneCallback,{}),"sms"===a?"Отправить код ещё раз":"Повторный звонок",!!l&&(0,t.jsxs)("span",{children:[" через ",l," сек."]})]})};var tR=e.i(572794),tB=e.i(603911),tF=e.i(120976);let tG=({setAuthPhoneCode:e})=>{let{changeAuthErrorMessage:o,changeCodeTimer:n,changeIsChangePhoneDisabled:a}=(0,r.useActions)(),l=(0,eT.useCallback)(()=>{n(0),o(null),e(["","","",""]),a(!1)},[]);return(0,t.jsx)(tw.Button,{variant:"text",onClick:l,className:tF.default["auth-modal__phone-change-btn"],children:"Изменить"})};var tz=e.i(530722);let tU=e=>{let n,a,l,i,c,u,d=(0,o.c)(18),{phoneNumber:m,getCode:p,setPhoneNumber:f,setAuthPhoneCode:h}=e,g=(0,r.useAppSelector)(s.selectIsModalAuthOpen),y=(0,eT.useRef)(null),b=(0,r.useAppSelector)(s.selectIsChangePhoneDisabled),S=(0,r.useAppSelector)(s.selectIsAuthAgreeText);d[0]!==g?(n=()=>{g&&y.current&&y.current.focus()},a=[g],d[0]=g,d[1]=n,d[2]=a):(n=d[1],a=d[2]),(0,eT.useLayoutEffect)(n,a),d[3]!==p||d[4]!==S||d[5]!==f?(l={setPhoneNumber:f,getCode:p,isAuthAgreeText:S},d[3]=p,d[4]=S,d[5]=f,d[6]=l):l=d[6];let{handlePhoneInput:_,handlePhoneKeyDown:A}=(0,tB.useHandlePhoneInput)(l);return d[7]!==b||d[8]!==h?(i=b?(0,t.jsx)(tG,{setAuthPhoneCode:h}):null,d[7]=b,d[8]=h,d[9]=i):i=d[9],d[10]!==i?(c={input:{endAdornment:i}},d[10]=i,d[11]=c):c=d[11],d[12]!==_||d[13]!==A||d[14]!==b||d[15]!==m||d[16]!==c?(u=(0,t.jsx)(tR.TextField,{disabled:b,onKeyDown:A,onInput:_,label:"Номер телефона",className:tz.default["auth-modal__phone-input"],value:m,type:"tel",id:"user-phone",inputRef:y,slotProps:c}),d[12]=_,d[13]=A,d[14]=b,d[15]=m,d[16]=c,d[17]=u):u=d[17],u};var tH=e.i(806021);let tW=e=>{let n,a,l,i,c,u=(0,o.c)(21),{getCode:d,getCodeByCall:m,getCodeBySms:p}=e,f=(0,r.useAppSelector)(s.selectAuthInfoText),h=(0,r.useAppSelector)(s.selectAuthPhoneType),g=(0,r.useAppSelector)(s.selectIsChangePhoneDisabled),[y,b]=(0,eT.useState)("");u[0]===Symbol.for("react.memo_cache_sentinel")?(n=["","","",""],u[0]=n):n=u[0];let[S,_]=(0,eT.useState)(n),A="robocall"===h||"robocallWithSms"===h||"sms"===h;return u[1]!==d||u[2]!==y?(a=(0,t.jsx)(tU,{setPhoneNumber:b,getCode:d,phoneNumber:y,setAuthPhoneCode:_}),u[1]=d,u[2]=y,u[3]=a):a=u[3],u[4]!==d||u[5]!==g||u[6]!==y?(l=!g&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(tN,{getCode:d,phoneNumber:y})}),u[4]=d,u[5]=g,u[6]=y,u[7]=l):l=u[7],u[8]!==f||u[9]!==S||u[10]!==h||u[11]!==m||u[12]!==p||u[13]!==g||u[14]!==A||u[15]!==y?(i=A&&g&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:tH.default["auth-modal__info"],children:f}),(0,t.jsx)(eH,{code:S,setCode:_,phoneNumber:y,setPhoneNumber:b,authType:"phone"}),(0,t.jsx)(tD,{phoneNumber:y,getCodeByCall:m,getCodeBySms:p,authPhoneType:h}),(0,t.jsxs)("div",{className:tH.default["auth-modal__info"],children:[(0,t.jsx)("b",{children:"sms"===h?"Не пришла смс?":"robocall"===h?"Не поступил звонок?":"Не поступил звонок или смс?"}),(0,t.jsx)("br",{}),"Проверьте правильность номера телефона."]}),"robocallWithSms"===h&&(0,t.jsx)(tL,{phoneNumber:y,getCodeBySms:p})]}),u[8]=f,u[9]=S,u[10]=h,u[11]=m,u[12]=p,u[13]=g,u[14]=A,u[15]=y,u[16]=i):i=u[16],u[17]!==a||u[18]!==l||u[19]!==i?(c=(0,t.jsxs)(t.Fragment,{children:[a,l,i]}),u[17]=a,u[18]=l,u[19]=i,u[20]=c):c=u[20],c},t$=()=>{let e,n=(0,o.c)(4),{getCodeWithGoogleCaptcha:a,getCodeByCallWithGoogleCaptcha:l,getCodeBySmsWithGoogleCaptcha:i}=(()=>{let e,t,n,a,l=(0,o.c)(16),{changeIsAuthLoading:i}=(0,r.useActions)(),{getReCaptchaGoogleToken:s}=(()=>{let{executeRecaptcha:e}=(0,eT.useContext)(e9),{changeAuthErrorMessage:t,changeIsAuthLoading:o}=(0,r.useActions)();return{getReCaptchaGoogleToken:(0,eT.useCallback)(async()=>
1{if(!e)return void console.error("Execute recaptcha not yet available");try{return await e("auth")}catch(e){(0,eN.handleErrorMessage)({err:e,callback:t,customErrMessage:"Получены неверные данные. Повторите попытку позднее"}),o(!1)}},[e])}})(),{getCode:c,getCodeByCall:u,getCodeBySms:d}=tC();l[0]!==i||l[1]!==c||l[2]!==s?(e=async e=>{if(i(!0),tk(c,e))return;let t=await s();t&&c(t,e)},l[0]=i,l[1]=c,l[2]=s,l[3]=e):e=l[3];let m=e;l[4]!==i||l[5]!==u||l[6]!==s?(t=async e=>{if(i(!0),tk(u,e))return;let t=await s();t&&u(t,e)},l[4]=i,l[5]=u,l[6]=s,l[7]=t):t=l[7];let p=t;l[8]!==i||l[9]!==d||l[10]!==s?(n=async e=>{if(i(!0),tk(d,e))return;let t=await s();t&&d(t,e)},l[8]=i,l[9]=d,l[10]=s,l[11]=n):n=l[11];let f=n;return l[12]!==p||l[13]!==f||l[14]!==m?(a={getCodeWithGoogleCaptcha:m,getCodeByCallWithGoogleCaptcha:p,getCodeBySmsWithGoogleCaptcha:f},l[12]=p,l[13]=f,l[14]=m,l[15]=a):a=l[15],a})();return n[0]!==l||n[1]!==i||n[2]!==a?(e=(0,t.jsx)(tW,{getCode:a,getCodeByCall:l,getCodeBySms:i}),n[0]=l,n[1]=i,n[2]=a,n[3]=e):e=n[3],e};var tV=function(){return(tV=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function tY(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,r,a=o.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)l.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return l}"function"==typeof SuppressedError&&SuppressedError;var tq=/^(\S+)$/,tK=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,tX=/^[^\s\.]+\.\S{2,}$/,tJ=/^(https?:\/\/)?([0-9]{1,3}\.){3}[0-9]{1,3}\:\d+$/,tQ=/^(https?:\/\/)?\[([0-9a-fA-F]{0,4}\:){7}([0-9a-fA-F]){0,4}\]\:\d+$/;function tZ(e){if("string"!=typeof e)return!1;var t=e.match(tq);if(!t)return!1;var o=t[0];return!!o&&!!(tK.test(o)||tX.test(o)||tJ.test(o)||tQ.test(o))}var t0=function(e){void 0===e&&(e="smartcaptcha.cloud.yandex.ru");var t=/^https?/.test(e)?e:"https://".concat(e);return"".concat(t,"/captcha.js?render=onload&onload=__onSmartCaptchaReady")},t1=[],t2=new Map,t3="u">typeof window?eT.useLayoutEffect:eT.useEffect,t6=function(e){var t,o,n,r,a,l,i,s=(0,eT.useRef)(null),c=e.onChallengeHidden,u=e.onChallengeVisible,d=e.onSuccess,m=e.onNetworkError,p=e.onTokenExpired,f=e.onJavascriptError,h=e.language,g=e.host,y=e.theme,b=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o}(e,["onChallengeHidden","onChallengeVisible","onSuccess","onNetworkError","onTokenExpired","onJavascriptError","language","host","theme"]),S=(o=(t=tY((0,eT.useState)(),2))[0],n=t[1],(0,eT.useEffect)(function(){if(void 0!==g&&!tZ(g))throw Error("[SmartCaptcha] ".concat(g," host is invalid. It should be of a kind: domain.ru, localhost:3000"));if(void 0===o&&(void 0===g||tZ(g))){void 0===window.__onSmartCaptchaReady&&(window.__onSmartCaptchaReady=function(){t1.forEac
1h(function(e){return e()})}),window.smartCaptcha&&n(window.smartCaptcha);var e,t,r,a,l,i,s=t1.push(function(){return n(window.smartCaptcha)});return t2.get(g)||(e=t0(g),t=null,r=function(){null==f||f({filename:t0(g),message:"Unknown error on script loading",col:0,line:0})},void 0===t&&(t=null),void 0===r&&(r=null),void 0===a&&(a=!0),(l=document.createElement("script")).src=e,l.onload=t,l.onerror=r,l.type="text/javascript",l.crossOrigin="anonymous","u">typeof window&&window.addEventListener("error",function(t){0===t.filename.indexOf(e)&&f&&f({filename:t.filename,message:t.message,col:t.colno,line:t.lineno})}),i=function(){return document.body.appendChild(l)},a?i():window.addEventListener("load",i),t2.set(g,!0)),function(){t1.splice(s,1)}}},[g,f,o]),o),_=tY((0,eT.useState)(),2),A=_[0],v=_[1],x=(0,eT.useRef)({});return r={widgetId:A,smartCaptcha:S,onChallengeHidden:c,onChallengeVisible:u,onSuccess:d,onNetworkError:m,onTokenExpired:p,onJavascriptError:f},a=(0,eT.useRef)({}),l=r.widgetId,i=r.smartCaptcha,a.current={onChallengeHidden:r.onChallengeHidden,onChallengeVisible:r.onChallengeVisible,onSuccess:r.onSuccess,onNetworkError:r.onNetworkError,onTokenExpired:r.onTokenExpired,onJavascriptError:r.onJavascriptError},(0,eT.useEffect)(function(){if(i&&"number"==typeof l){var e=[i.subscribe(l,"challenge-visible",function(){var e,t;null==(t=(e=a.current).onChallengeVisible)||t.call(e)}),i.subscribe(l,"challenge-hidden",function(){var e,t;null==(t=(e=a.current).onChallengeHidden)||t.call(e)}),i.subscribe(l,"network-error",function(){var e,t;null==(t=(e=a.current).onNetworkError)||t.call(e)}),i.subscribe(l,"success",function(e){var t,o;null==(o=(t=a.current).onSuccess)||o.call(t,e)}),i.subscribe(l,"token-expired",function(){var e,t;null==(t=(e=a.current).onTokenExpired)||t.call(e)}),i.subscribe(l,"javascript-error",function(e){var t,o;null==(o=(t=a.current).onJavascriptError)||o.call(t,e)})];return function(){return e.forEach(function(e){return null==e?void 0:e()})}}},[l,i]),t3(function(){if(s.current&&S){var e=S.render(s.current,tV(tV({},b),{invisible:!0,hl:h,theme:y}));return v(e),function(){null==S||S.destroy(e),v(void 0),x.current[e]=!0}}},[S,h,b.hideShield,b.shieldPosition,b.sitekey,b.test,b.webview]),(0,eT.useEffect)(function(){S&&b.visible&&"number"==typeof A&&!x.current[A]&&S.execute(A)},[S,b.visible,A]),(0,eT.useEffect)(function(){A&&y&&window.smartCaptcha.setTheme&&window.smartCaptcha.setTheme(A,y)},[y,A]),eT.default.createElement("div",{ref:s,className:"smart-captcha"})},t9=e.i(159291),t4=e.i(136062);let t5=({authSiteToken:e,setUserYandexToken:o,resetYandexCaptcha:n,isVisibleCaptcha:a,setIsVisibleCaptcha:l})=>{let{changeAuthErrorMessage:i,changeIsAuthLoading:s}=(0,r.useActions)(),c=(0,t9._isMobileApp)(),u=(0,eT.useCallback)(e=>{o(null),s(!1),i(e)},[]),d=(0,eT.useCallback)(()=>l(!1),[]),m=(0,eT.useCallback)(e=>{o(e)},[]),p=(0,eT.useCallback)(()=>{u("Возникла сетевая ошибка")},[]);(0,eT.useEffect)(()=>{let e=e=>{let t;"object"==typeof(t=e.reason)&&null!==t&&"message"in t&&"string"==typeof t.message&&t.message.includes("SmartCaptcha")&&(e.preventDefault(),u("Получены неверные данные. Повторите попытку позднее"),console.error("Ошибка ключа клиента Yandex Captcha"))};return window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("unhandledrejection",e)}},[]);let f=(0,eT.useCallback)(()=>{u("Ошибка скрипта")},[]),h=(0,eT.useCallback)(()=>{u("Срок действия токена истек")},[]);return(0,t.jsx)("div",{className:t4.default["invisible-yandex-captcha"],children:(0,t.jsx)(t6,{onChallengeHidden:d,sitekey:e,onSuccess:m,hideShield:!0,onNetworkError:p,onJavascriptError:f,visible:a,onTokenExpired:h,webview:c},n)})},t7=e=>{let n,a,l,i,s,c=(0,o.c)(14),{authSiteToken:u}=e,[d,m]=(0,eT.useState)(0),[p,f]=(0,eT.useState)(!1),[h,g]=(0,eT.useState)(null);c[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>m(t8),c[0]=n):n=c[0];let y=n;c[1]!==h?(a={handleResetYandexCaptcha:y,setUserYandexToken:g,setIsVisibleCaptcha:f,userYandexToken:h},c[1]=h,c[2]=a):a=c[2];let{getCodeWithYandexCaptcha:b,getCodeByCallWithYandexCaptcha:S,getCodeBySmsWithYandexCaptcha:_}=(e=>{let t,n,a,l,i,s,c,u,d=(0,o.c)(29),{userYandexToken:m,setIsVisibleCaptcha:p,setUserYandexToken:f,handleResetYandexCaptcha:h}=e,{changeIsAuthLoading:g}=(0,r.useActions)(),[y,b]=(0,eT.useState)(null),[S,_]=(0,eT.useState)(null),{getCode:A,getCodeByCall:v,getCodeBySms:x}=tC();d[0]!==A||d[1]!==v||d[2]!==x?(t=(e,t,o)=>{"getCode"===e&&A(t,o),"getCodeByCall"===e&&v(t,o),"getCodeBySms"===e&&x(t,o)},d[0]=A,d[1]=v,d[2]=x,d[3]=t):t=d[3];let T=t;d[4]!==g||d[5]!==T||d[6]!==h||d[7]!==p||d[8]!==f?(n=(e,t)=>{g(!0);let o=tT(t);if(o){h(),p(!1),f(null),b(null),_(null),T(e,"",o);return}_(t),h(),p(!0),b(e),f(null)},d[4]=g,d[5]=T,d[6]=h,d[7]=p,d[8]=f,d[9]=n):n=d[9];let C=n;d[10]!==y||d[11]!==T||d[12]!==S||d[13]!==m?(a=()=>{m&&y&&S&&T(y,m,S)},d[10]=y,d[11]=T,d[12]=S,d[13]=m,d[14]=a):a=d[14],d[15]!==y||d[16]!==S||d[17]!==m?(l=[m,y,S],d[15]=y,d[16]=S,d[17]=m,d[18]=l):l=d[18],(0,eT.useEffect)(a,l),d[19]!==C?(i=e=>{C("getCode",e)},d[19]=C,d[20]=i):i=d[20];let k=i;d[21]!==C?(s=e=>{C("getCodeByCall",e)},d[21]=C,d[22]=s):s=d[22];let w=s;d[23]!==C?(c=e=>{C("getCodeBySms",e)},d[23]=C,d[24]=c):c=d[24];let E=c;return d[25]!==w||d[26]!==E||d[27]!==k?(u={getCodeWithYandexCaptcha:k,getCodeByCallWithYandexCaptcha:w,getCodeBySmsWithYandexCaptcha:E},d[25]=w,d[26]=E,d[27]=k,d[28]=u):u=d[28],u})(a);return c[3]!==S||c[4]!==_||c[5]!==b?(l=(0,t.jsx)(tW,{getCode:b,getCodeByCall:S,getCodeBySms:_}),c[3]=S,c[4]=_,c[5]=b,c[6]=l):l=c[6],c[7]!==u||c[8]!==p||c[9]!==d?(i=(0,t.jsx)(t5,{authSiteToken:u,isVisibleCaptcha:p,setUserYandexToken:g,resetYandexCaptcha:d,setIsVisibleCaptcha:f}),c[7]=u,c[8]=p,c[9]=d,c[10]=i):i=c[10],c[11]!==l||c[12]!==i?(s=(0,t.jsxs)(t.Fragment,{children:[l,i]}),c[11]=l,c[12]=i,c[13]=s):s=c[13],s};function t8(e){return e+1}let oe=()=>{let e=(0,o.c)(5),n=(0,r.useAppSelector)(tx.selectCaptchaType),a=(0,r.useAppSelector)(tx.selectAuthSiteToken);if("google"===n&&a){let o,n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(t$,{}),e[0]=o):o=e[0],e[1]!==a?(n=(0,t.jsx)(e4,{reCaptchaKey:a,children:o}),e[1]=a,e[2]=n):n=e[2],n}if("yandex"===n&&a){let o;return e[3]!==a?(o=(0,t.jsx)(t7,{authSiteToken:a}),e[3]=a,e[4]=o):o=e[4],o}
1return null};var ot=e.i(511152),oo=e.i(295696);let on=()=>{let e,n,a,l,i,c,u,d=(0,o.c)(18),m=(0,r.useAppSelector)(s.selectIsAuthAgreeText),p=(0,r.useAppSelector)(s.selectAuthTg),f=(0,r.useAppSelector)(s.selectAuthMethodsOrder),{changeHasClickedLoginTg:h,changeAuthErrorMessage:g}=(0,r.useActions)();d[0]!==g||d[1]!==h?(e=()=>{h(!0),g(null)},d[0]=g,d[1]=h,d[2]=e):e=d[2];let y=e,b=p.botLink,S=!m;d[3]!==f?(n=f.indexOf("telegram"),d[3]=f,d[4]=n):n=d[4],d[5]!==n?(a={order:n},d[5]=n,d[6]=a):a=d[6],d[7]!==S||d[8]!==a?(l={variant:"contained",disabled:S,sx:a},d[7]=S,d[8]=a,d[9]=l):l=d[9];let _=!m&&oo.default["tg-auth-button_disabled"];return d[10]!==_?(i=(0,eW.default)(oo.default["tg-auth-button"],_),d[10]=_,d[11]=i):i=d[11],d[12]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(ot.FaTelegram,{}),d[12]=c):c=d[12],d[13]!==p.botLink||d[14]!==y||d[15]!==l||d[16]!==i?(u=(0,t.jsxs)(eC.CustomLink,{onClick:y,shouldRenderAsMuiButton:!0,href:b,MuiButtonProps:l,className:i,children:[c,"Получить код в Telegram"]}),d[13]=p.botLink,d[14]=y,d[15]=l,d[16]=i,d[17]=u):u=d[17],u},or=e=>{let n,a,l=(0,o.c)(6),{shouldRenderAsMuiButton:i,children:c,className:u}=e,d=void 0!==i&&i,m=(0,r.useAppSelector)(s.selectAuthTg);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n={variant:"contained"},l[0]=n):n=l[0],l[1]!==m.botLink||l[2]!==c||l[3]!==u||l[4]!==d?(a=(0,t.jsx)(eC.CustomLink,{className:u,shouldRenderAsMuiButton:d,href:m.botLink,MuiButtonProps:n,children:c}),l[1]=m.botLink,l[2]=c,l[3]=u,l[4]=d,l[5]=a):a=l[5],a};var oa=e.i(634948);let ol=()=>{let e,n,a=(0,o.c)(7),l=(0,r.useAppSelector)(s.selectHasClickedLoginTg),[i,c]=(0,eT.useState)(ek),{changeHasClickedLoginTg:u,changeAuthErrorMessage:d}=(0,r.useActions)();a[0]!==d||a[1]!==u?(e=e=>{e.preventDefault(),u(!1),d(null),c(ek)},a[0]=d,a[1]=u,a[2]=e):e=a[2];let m=e;return a[3]!==i||a[4]!==m||a[5]!==l?(n=l?(0,t.jsxs)("section",{children:[(0,t.jsx)("div",{className:oa.default["auth-modal__open-tg-text"],children:"Введите код подтверждения из чат-бота."}),(0,t.jsx)(eH,{code:i,setCode:c,authType:"tg"}),(0,t.jsxs)("div",{className:oa.default["auth-modal__open-tg-text"],children:["Если у вас автоматически не открылся ",(0,t.jsx)("br",{}),"Telegram-бот, то нажмите:"]}),(0,t.jsx)(or,{className:oa.default["auth-modal__tg-link"],shouldRenderAsMuiButton:!0,children:"Получить код"}),(0,t.jsx)(eC.CustomLink,{href:"/",onClick:m,className:oa.default["auth-modal__tg-back-link"],children:"Назад"})]}):(0,t.jsx)(on,{}),a[3]=i,a[4]=m,a[5]=l,a[6]=n):n=a[6],n};var oi=e.i(999763),os=e.i(149721),oc=e.i(172272),ou=e.i(807107);let od=()=>{let e,n,a,l,i,c=(0,o.c)(14),{changeAuthErrorMessage:u}=(0,r.useActions)(),{handleAuthVkMiniApp:d}=eF(),m=(0,r.useAppSelector)(s.selectIsAuthAgreeText),{id:p,firstName:f}=(0,r.useAppSelector)(oc.selectVkBridgeUserInfo),h=(0,r.useAppSelector)(s.selectAuthMethodsOrder);c[0]!==u||c[1]!==d||c[2]!==p?(e=async()=>{if(!p)return void u("Не удалось получить данные профиля");let e={};try{e=await eL.default.send("VKWebAppGetLaunchParams")}catch{let t=sessionStorage.getItem("vkLaunchParams");t&&(e=JSON.parse(t))}if(1===Object.keys(e).length)return void u("Не удалось получить данные для авторизации");try{let t=await eL.default.send("VKWebAppGetPhoneNumber");if(!t.phone_number)return void u("Отсутствует номер телефона. Укажите в настройках аккаунта ВКонтакте номер телефона и повторите попытку");d({phone:t.phone_number,...e})}catch(e){(0,eN.handleErrorMessage)({err:e,callback:u,customErrMessage:"Произошла ошибка при получении данных VK"})}},c[0]=u,c[1]=d,c[2]=p,c[3]=e):e=c[3];let g=e,y=!m;c[4]!==h?(n=h.indexOf("vk"),c[4]=h,c[5]=n):n=c[5],c[6]!==n?(a={order:n},c[6]=n,c[7]=a):a=c[7],c[8]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(os.FontAwesomeIcon,{icon:oi.faVk}),c[8]=l):l=c[8];let b=f?`Продолжить как ${f}`:"Войти с помощью VK";return c[9]!==g||c[10]!==y||c[11]!==a||c[12]!==b?(i=(0,t.jsxs)(tw.Button,{onClick:g,variant:"contained",className:ou.default["vk-app-auth-button"],disabled:y,sx:a,children:[l,b]}),c[9]=g,c[10]=y,c[11]=a,c[12]=b,c[13]=i):i=c[13],i};var om=e.i(238730),op=e.i(421440);let of=()=>{let e,n,a,l,i,c=(0,o.c)(11),u=(0,r.useAppSelector)(s.selectIsAuthAgreeText),d=(0,r.useAppSelector)(s.selectAuthMethodsOrder),{changeAuthErrorMessage:m}=(0,r.useActions)();c[0]!==m?(e=()=>{om.Auth.login().catch(e=>{(0,eN.handleErrorMessage)({err:e,callback:m,customErrMessage:"Произошла ошибка при входе через ВКонтакте"})})},c[0]=m,c[1]=e):e=c[1];let p=e,f=!u;return c[2]!==d?(n=d.indexOf("vk"),c[2]=d,c[3]=n):n=c[3],c[4]!==n?(a={order:n},c[4]=n,c[5]=a):a=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(os.FontAwesomeIcon,{icon:oi.faVk}),c[6]=l):l=c[6],c[7]!==p||c[8]!==f||c[9]!==a?(i=(0,t.jsxs)(tw.Button,{onClick:p,variant:"contained",className:op.default["vk-app-auth-button"],disabled:f,sx:a,children:[l,"Войти через ВКонтакте"]}),c[7]=p,c[8]=f,c[9]=a,c[10]=i):i=c[10],i},oh=()=>{let e,n=(0,o.c)(2);if("vk"===(0,l.getPlatform)()){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(od,{}),n[0]=e):e=n[0],e}return n[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(of,{}),n[1]=e):e=n[1],e};var og=e.i(322605),oy=e.i(10067),ob=e.i(909053);let oS=()=>{let e,n,r,a=(0,o.c)(5),{merchantId:l}=(0,oy.useMerchantSettings)();return a[0]!==l?(e=()=>(0,ob.handleReloadWindow)(l),a[0]=l,a[1]=e):e=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(n={width:"100%",maxHeight:"34px",mt:"8px"},a[2]=n):n=a[2],a[3]!==e?(r=(0,t.jsx)(tw.Button,{variant:"action",onClick:e,sx:n,children:"Обновить"}),a[3]=e,a[4]=r):r=a[4],r};var o_=e.i(619202);let oA=()=>{let e,n,a,l,m,p,f,h,g,y=(0,o.c)(32),b=(0,r.useAppSelector)(s.selectIsVkAuthActive),S=(0,r.useAppSelector)(s.selectIsModalAuthOpen),{closeModalAuth:_}
1=(0,r.useActions)(),A=(0,r.useAppSelector)(s.selectIsAuthTgActive),v=(0,r.useAppSelector)(s.selectIsChangePhoneDisabled),x=(0,r.useAppSelector)(s.selectIsPhoneAuthEnabled),T=(0,r.useAppSelector)(s.selectHasClickedLoginTg),C=(0,r.useAppSelector)(s.selectIsAuthMaxActive),k=(0,r.useAppSelector)(s.selectHasClickedLoginMax),w=(0,r.useAppSelector)(s.selectIsAuthLoading),E=(0,r.useAppSelector)(s.selectAuthErrorMessage),I=(0,r.useAppSelector)(s.selectHasClickedLoginMaxOrTg);y[0]===Symbol.for("react.memo_cache_sentinel")?(e={direction:"down",directionValue:"md"},y[0]=e):e=y[0];let N=(0,d.useCustomMediaQuery)(e);y[1]!==_?(n=()=>{_()},y[1]=_,y[2]=n):n=y[2];let M=n;if(y[3]!==E)a=E&&(0,t.jsxs)(c.Alert,{severity:"error",sx:{mb:2},children:[(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:(i.isClient?ev.sanitize(E):"").replace(/\n/g,"<br />")}}),"Возникла сетевая ошибка"===E&&(0,t.jsx)(oS,{})]}),y[3]=E,y[4]=a;else a=y[4];return y[5]!==w?(l=w&&(0,t.jsx)("div",{className:o_.default["auth-modal__loader-wrapper"],children:(0,t.jsx)(u.CircularProgress,{})}),y[5]=w,y[6]=l):l=y[6],y[7]!==I||y[8]!==x?(m=x&&!I&&(0,t.jsx)(oe,{}),y[7]=I,y[8]=x,y[9]=m):m=y[9],y[10]!==k||y[11]!==I||y[12]!==T||y[13]!==C||y[14]!==A||y[15]!==v||y[16]!==b?(p=!v&&(0,t.jsxs)(t.Fragment,{children:[b&&!I&&(0,t.jsx)(oh,{}),A&&!k&&(0,t.jsx)(ol,{}),C&&!T&&(0,t.jsx)(eX,{})]}),y[10]=k,y[11]=I,y[12]=T,y[13]=C,y[14]=A,y[15]=v,y[16]=b,y[17]=p):p=y[17],y[18]!==I||y[19]!==v?(f=!v&&!I&&(0,t.jsx)(og.AuthAgreeCheckbox,{}),y[18]=I,y[19]=v,y[20]=f):f=y[20],y[21]!==a||y[22]!==l||y[23]!==m||y[24]!==p||y[25]!==f?(h=(0,t.jsxs)("div",{className:o_.default["auth-modal_inner"],children:[a,l,m,p,f]}),y[21]=a,y[22]=l,y[23]=m,y[24]=p,y[25]=f,y[26]=h):h=y[26],y[27]!==M||y[28]!==N||y[29]!==S||y[30]!==h?(g=(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(ex.CustomModal,{open:S,keepMounted:!0,handleClose:M,title:"Авторизация",className:o_.default["auth-modal"],fullScreen:N,children:h})}),y[27]=M,y[28]=N,y[29]=S,y[30]=h,y[31]=g):g=y[31],g};e.i(874801);var ov=e.i(243406),ox=e.i(291086);e.i(834166);var oT=e.i(961593),oC=e.i(92157),ok=e.i(975163),ow=e.i(824545);let oE=()=>{let e,n,a,l,i,s=(0,o.c)(14),c=(0,r.useAppSelector)(ok.selectIsOffertModalOpen),{changeIsOffertModalOpen:u}=(0,r.useActions)();s[0]===Symbol.for("react.memo_cache_sentinel")?(e={direction:"down",directionValue:"md"},s[0]=e):e=s[0];let m=(0,d.useCustomMediaQuery)(e);s[1]!==u?(n=()=>{u(!1)},s[1]=u,s[2]=n):n=s[2];let p=n,f=(0,r.useAppSelector)(ow.selectPages);s[3]!==f?(a=f?.find(oI),s[3]=f,s[4]=a):a=s[4];let h=a;return h?.text&&h.title?(s[5]!==h.text||s[6]!==h.textSanitized?(l=!!h.text&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:h.textSanitized}}),s[5]=h.text,s[6]=h.textSanitized,s[7]=l):l=s[7],s[8]!==p||s[9]!==m||s[10]!==c||s[11]!==h.title||s[12]!==l?(i=(0,t.jsx)(ex.CustomModal,{maxWidth:"md",open:c,handleClose:p,fullScreen:m,title:h.title,children:l}),s[8]=p,s[9]=m,s[10]=c,s[11]=h.title,s[12]=l,s[13]=i):i=s[13],i):null};function oI(e){return e.seo?.slug==="offert"}let oN=()=>{let e,n,a,l,i,s=(0,o.c)(14),c=(0,r.useAppSelector)(ok.selectIsPrivacyModalOpen),{changeIsPrivacyModalOpen:u}=(0,r.useActions)();s[0]===Symbol.for("react.memo_cache_sentinel")?(e={direction:"down",directionValue:"md"},s[0]=e):e=s[0];let m=(0,d.useCustomMediaQuery)(e);s[1]!==u?(n=()=>{u(!1)},s[1]=u,s[2]=n):n=s[2];let p=n,f=(0,r.useAppSelector)(ow.selectPages);s[3]!==f?(a=f?.find(oM),s[3]=f,s[4]=a):a=s[4];let h=a;return h?.text&&h.title?(s[5]!==h.text||s[6]!==h.textSanitized?(l=!!h.text&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:h.textSanitized}}),s[5]=h.text,s[6]=h.textSanitized,s[7]=l):l=s[7],s[8]!==p||s[9]!==m||s[10]!==c||s[11]!==h.title||s[12]!==l?(i=(0,t.jsx)(ex.CustomModal,{maxWidth:"md",open:c,handleClose:p,fullScreen:m,title:h.title,children:l}),s[8]=p,s[9]=m,s[10]=c,s[11]=h.title,s[12]=l,s[13]=i):i=s[13],i):null};function oM(e){return e.seo?.slug==="privacy"}e.i(550805);var oP=e.i(215109);e.i(890914);var oL=e.i(509954),oO=e.i(728620),oj=e.i(568906),oD=e.i(389164),oR=e.i(622004),oB=e.i(422218);let oF=e=>{let t,n,a,l,i=(0,o.c)(19),{autoDiscount:s,asSoonAsPosible:c,preorderDate:u}=e,{addDisabledByDateLimitsAutoDiscountId:d,removeDisabledByDateLimitsAutoDiscountId:m}=(0,r.useActions)(),{getDateWithMerchantTimeZone:p}=(0,oR.useGetDateWithMerchantTimeZone)();i[0]!==s.id?(t=e=>(0,oj.selectIsAutoDiscountDisabledByDateLimits)(e,s.id),i[0]=s.id,i[1]=t):t=i[1];let f=(0,r.useAppSelector)(t),[h,g]=(0,eT.useState)(!0),y=!(c||null===u);i[2]!==d||i[3]!==s.dateFrom||i[4]!==s.dateTo||i[5]!==s.id||i[6]!==p||i[7]!==f||i[8]!==y||i[9]!==u||i[10]!==m?(n=()=>{let e=(0,oB.checkDateLimits)(s.dateFrom,s.dateTo,!1,y?u:p());e||f?e&&f&&m(s.id):d(s.id)},i[2]=d,i[3]=s.dateFrom,i[4]=s.dateTo,i[5]=s.id,i[6]=p,i[7]=f,i[8]=y,i[9]=u,i[10]=m,i[11]=n):n=i[11];let b=n;return i[12]!==b||i[13]!==y?(a=()=>{y?(g(!1),b()):g(!0)},i[12]=b,i[13]=y,i[14]=a):a=i[14],i[15]!==c||i[16]!==y||i[17]!==u?(l=[y,u,c],i[15]=c,i[16]=y,i[17]=u,i[18]=l):l=i[18],(0,eT.useEffect)(a,l),(0,tO.useInterval)(b,h?1e3:null),null};var oG=e.i(79981);let oz=e=>{let t,n,a,l,i=(0,o.c)(20),{autoDiscount:s,asSoonAsPosible:c,preorderDate:u}=e,{addDisabledByTimeLimitsAutoDiscountId:d,removeDisabledByTimeLimitsAutoDiscountId:m}=(0,r.useActions)();i[0]!==s.id?(t=e=>(0,oj.selectIsAutoDiscountDisabledByTimeLimits)(e,s.id),i[0]=s.id,i[1]=t):t=i[1];let p=(0,r.useAppSelector)(t),[f,h]=(0,eT.useState)(!0),g=!(c||null===u),{getDateWithMerchantTimeZone:y}=(0,oR.useGetDateWithMerchantTimeZone)();i[2]!==d||i[3]!==s.days||i[4]!==s.id||i[5]!==s.timeFrom||i[6]!==s.timeTo||i[7]!==y||i[8]!==p||i[9]!==g||i[10]!==u||i[11]!==m?(n=()=>{let e=(0,oG.checkTimeLimits)({checkTime:g?u:y(),timeFrom:s.timeFrom??void 0,timeTo:s.timeTo??void 0,days:s.days});e||p?e&&p&&m(s.id):d(s.id)},i[2]=d,i[3]=s.days,i[4]=s.id,i[5]=s.timeFrom,i[6]=s.timeTo,i[7]=y,i[8]=p,i[9]=g,i[10]=u,i[11]=m,i[12]=n):n=i[12];let b=n;return i[13]!==b||i[14]!==g?(a=()=>{g?(h(!1),b()):h(!0)},i[13]=b,i[14]=g,i[15]=a):a=i[15],i[16]!==c||i[17]!==g||i[18]!==u?(l=[g,u,c],i[16]=c,i[17]=g,i[18]=u,i[19]=l):l=i[19],(0,eT.useEffect)(a,l),(0,tO.useInterval)(b,f?1e3:null),null},oU=()=>{let e,n,a,l=(0,o.c)(17),i=(0,r.useAppSelector)(oj.selectAutoDiscountsWithTimeLimits),s=(0,r.useAppSelector)(oj.selectAutoDiscountsWithDatesLimits),c=(0,r.useAppSelector)(oD.selectAsSoonAsPosible),u=(0,r.useAppSelector)(oD.selectPreorderDate);if(l[0]!==c||l[1]!==i||l[2]!==u){let o;l[4]!==c||l[5]!==u?(o=e=>e.showByTime&&e.days&&(0,t.jsx)(oz,{asSoonAsPosible:c,preorderDate:u,autoDiscount:e},e.id),l[4]=c,l[5]=u,l[6]=o):o=l[6],e=i.map(o),l[0]=c,l[1]=i,l[2]=u,l[3]=e}else e=l[3];if(l[7]!==c||l[8]!==s||l[9]!==u){let e;l[11]!==c||l[12]!==u?(e=e=>e.dateFrom&&e.dateTo&&(0,t.jsx)(oF,{asSoonAsPosible:c,preorderDate:u,autoDiscount:e},e.id),l[11]=c,l[12]=u,l[13]=e):e=l[13],n=s.map(e),l[7]=c,l[8]=s,l[9]=u,l[10]=n}else n=l[10];return l[14]!==e||l[15]!==n?(a=(0,t.jsxs)(t.Fragment,{children:[e,n]}),l[14]=e,l[15]=n,l[16]=a):a=l[16],a};var oH=e.i(341391);let oW=e=>(t,o)=>{let n,{cartProducts:r}=o().cart,{products:a}
1=o().productsData,l=(n=!1,r.filter(t=>{let o=a.find(e=>e.id===t.productId);return!o?.categories.every(t=>e.includes(t))||(n||eO.toast.error("Часть товаров удалены из корзины, \n т.к. время действия акции закончилось."),n=!0,!1)}));t(oH.cartActions.changeCartProductsFromValidation(l))};var o$=e.i(511791);let oV=e=>{let t,n,a=(0,o.c)(11),{category:l}=e,{addDisabledCategoryId:i,removeDisabledCategoryId:s}=(0,r.useActions)();a[0]!==l.categoryId?(t=e=>(0,o$.selectIsCategoryDisabledByTimeLimits)(e,l.categoryId),a[0]=l.categoryId,a[1]=t):t=a[1];let c=(0,r.useAppSelector)(t),{getDateWithMerchantTimeZone:u}=(0,oR.useGetDateWithMerchantTimeZone)();a[2]!==i||a[3]!==l.categoryId||a[4]!==l.days||a[5]!==l.timeFrom||a[6]!==l.timeTo||a[7]!==u||a[8]!==c||a[9]!==s?(n=()=>{let e=(0,oG.checkTimeLimits)({checkTime:u(),timeFrom:l.timeFrom??void 0,timeTo:l.timeTo??void 0,days:l.days.map(oY)});e||c?e&&c&&s(l.categoryId):i(l.categoryId)},a[2]=i,a[3]=l.categoryId,a[4]=l.days,a[5]=l.timeFrom,a[6]=l.timeTo,a[7]=u,a[8]=c,a[9]=s,a[10]=n):n=a[10];let d=n;return(0,tO.useInterval)(d,1e3),null};function oY(e){return e[0]}let oq=()=>{let e,a,l,i,s,c,u,d=(0,o.c)(17),m=(0,n.usePathname)();d[0]!==m?(e=m.includes("checkout"),d[0]=m,d[1]=e):e=d[1];let p=e,f=(0,r.useAppSelector)(o$.selectCategoriesWithTimeLimits),h=(0,r.useAppSelector)(o$.selectDisabledTimeLimitsCategoriesIds),g=(0,r.useAppDispatch)();return(d[2]!==h||d[3]!==g?(a=()=>{g(oW(h))},d[2]=h,d[3]=g,d[4]=a):a=d[4],d[5]!==h?(l=[h],d[5]=h,d[6]=l):l=d[6],(0,eT.useEffect)(a,l),d[7]!==h||d[8]!==g||d[9]!==p?(i=()=>{p&&g(oW(h))},d[7]=h,d[8]=g,d[9]=p,d[10]=i):i=d[10],d[11]!==p?(s=[p],d[11]=p,d[12]=s):s=d[12],(0,eT.useEffect)(i,s),f?.length)?(d[13]!==f?(c=f.map(oK),d[13]=f,d[14]=c):c=d[14],d[15]!==c?(u=(0,t.jsx)(t.Fragment,{children:c}),d[15]=c,d[16]=u):u=d[16],u):null};function oK(e){return e.showByTime&&e.days&&(0,t.jsx)(oV,{category:e},e.categoryId)}e.i(899264);var oX=e.i(467159),oJ=e.i(475473);function oQ(e){return(0,oJ.selectIsAllowedToChooseGifts)(e,!1)}let oZ=e=>{let t,n=(0,o.c)(8),{isGiftsScaleDisabledByTimeLimits:a}=e,{changeIsGiftsScaleDisabled:l}=(0,r.useActions)(),i=(0,r.useAppSelector)(oJ.selectGiftsDays),s=(0,r.useAppSelector)(oJ.selectGiftsTimeFrom),c=(0,r.useAppSelector)(oJ.selectGiftsTimeTo),u=(0,r.useAppSelector)(oJ.selectIsGiftsShowByClock),{getDateWithMerchantTimeZone:d}=(0,oR.useGetDateWithMerchantTimeZone)();n[0]!==l||n[1]!==i||n[2]!==d||n[3]!==a||n[4]!==u||n[5]!==s||n[6]!==c?(t=()=>{if(void 0!==u)if((0,oG.checkTimeLimits)({checkTime:d(),days:i,timeFrom:s,timeTo:c})){if(!a)return;l(!1)}else{if(a)return;l(!0)}},n[0]=l,n[1]=i,n[2]=d,n[3]=a,n[4]=u,n[5]=s,n[6]=c,n[7]=t):t=n[7];let m=t;return(0,tO.useInterval)(m,1e3),null},o0=()=>{let e,n,a,l=(0,o.c)(12),i=(0,r.useAppSelector)(oJ.selectIsGiftsScaleDisabledByTimeLimits),s=(0,r.useAppSelector)(oJ.selectIsGiftsActive),{changeChoosenGiftProduct:c}=(0,r.useActions)(),u=(0,r.useAppSelector)(oJ.selectIsGiftsShowByTime),d=(0,r.useAppSelector)(oX.selectChoosenGiftProduct),m=(0,r.useAppSelector)(oJ.selectGiftsDays);return(()=>{var e,t,n,a;let l,i=(0,o.c)(3),s=(0,r.useAppSelector)(oX.selectChoosenGiftProductWithInfo),c=(0,r.useAppSelector)(oX.selectGiftProducts),{changeChoosenGiftProduct:u}=(0,r.useActions)();i[0]!==s?.productId||i[1]!==s?.variantId?(l=e=>(0,oJ.selectGiftScaleLessThanGiftMinTotalAmount)(e,s?.productId||null,s?.variantId||null),i[0]=s?.productId,i[1]=s?.variantId,i[2]=l):l=i[2];let d=(0,r.useAppSelector)(l),m=(0,r.useAppSelector)(oQ);e=s?.productId,t=s?.variantId,n=d.status,a=m.status,(!c?.find(o=>o.productId===e&&o.variantId===t)&&void 0!==e&&void 0!==t||n||!a||0)&&u(null),d.status&&s?.productId&&eO.toast.info(`Подарок "${s.title}" убран из заказа, т.к. сумма заказа стала меньше необходимой`)})(),l[0]!==c||l[1]!==d||l[2]!==s||l[3]!==i?(e=()=>{(i||!s)&&d&&(c(null),eO.toast.error("Подарок удален из корзины, \n т.к. время действия акции закончилось."))},l[0]=c,l[1]=d,l[2]=s,l[3]=i,l[4]=e):e=l[4],l[5]!==s||l[6]!==i?(n=[i,s],l[5]=s,l[6]=i,l[7]=n):n=l[7],(0,eT.useEffect)(e,n),l[8]!==m||l[9]!==i||l[10
1]!==u?(a=u&&m?(0,t.jsx)(oZ,{isGiftsScaleDisabledByTimeLimits:i}):null,l[8]=m,l[9]=i,l[10]=u,l[11]=a):a=l[11],a};var o1=e.i(235653),o2=e.i(235773);let o3=e=>{let t,n=(0,o.c)(8),{promocode:a,asSoonAsPosible:l,preorderDate:i}=e,{setIsPromocodeDisabledByDateLimits:s}=(0,r.useActions)(),c=(0,r.useAppSelector)(o2.selectIsPromocodeDisabledByDateLimits),u=!(l||null===i),{getDateWithMerchantTimeZone:d}=(0,oR.useGetDateWithMerchantTimeZone)();n[0]!==d||n[1]!==u||n[2]!==c||n[3]!==i||n[4]!==a.dateFrom||n[5]!==a.dateTo||n[6]!==s?(t=()=>{if(a.dateFrom&&a.dateTo){let e=(0,oB.checkDateLimits)(a.dateFrom,a.dateTo,!1,u?i:d());e||c?e&&c&&s(!1):s(!0)}},n[0]=d,n[1]=u,n[2]=c,n[3]=i,n[4]=a.dateFrom,n[5]=a.dateTo,n[6]=s,n[7]=t):t=n[7];let m=t;return(0,tO.useInterval)(m,1e3),null},o6=e=>{let t,n=(0,o.c)(16),{promocode:a,asSoonAsPosible:l,preorderDate:i}=e,{removePromocode:s,setIsPromocodesDisabledBySettings:c,setIsPromocodeDisabledByPreorderSettings:u}=(0,r.useActions)(),d=(0,r.useAppSelector)(tx.selectUsePromocodesDisableTime),m=(0,r.useAppSelector)(tx.selectPromocodesDisableTimeFrom),p=(0,r.useAppSelector)(tx.selectPromocodesDisableTimeTo),f=(0,r.useAppSelector)(o2.selectIsPromocodesDisabledBySettings),h=(0,r.useAppSelector)(tx.selectUsePromocodesPreorderDisableTime),g=(0,r.useAppSelector)(tx.selectPromocodesPreorderDisableTimeFrom),y=(0,r.useAppSelector)(tx.selectPromocodesPreorderDisableTimeTo),b=(0,r.useAppSelector)(o2.selectIsPromocodeDisabledByPreorderSettings),{getDateWithMerchantTimeZone:S}=(0,oR.useGetDateWithMerchantTimeZone)();n[0]!==l||n[1]!==S||n[2]!==b||n[3]!==f||n[4]!==i||n[5]!==a||n[6]!==m||n[7]!==p||n[8]!==g||n[9]!==y||n[10]!==s||n[11]!==u||n[12]!==c||n[13]!==d||n[14]!==h?(t=()=>{if(d){let e=!1;m||p?m&&p&&(e=(0,oB.checkDateLimits)(m,p,!1,S())):e=!0,e&&!f?c(!0):!e&&f&&c(!1),e&&a&&(s(),eO.toast.error("Промокод был отменен"))}if(a&&h&&!l&&i){let e=!1;g||y?g&&y&&(e=(0,oB.checkDateLimits)(g,y,!1,i)):e=!0,e&&!b?u(!0):!e&&b&&u(!1)}else b&&u(!1)},n[0]=l,n[1]=S,n[2]=b,n[3]=f,n[4]=i,n[5]=a,n[6]=m,n[7]=p,n[8]=g,n[9]=y,n[10]=s,n[11]=u,n[12]=c,n[13]=d,n[14]=h,n[15]=t):t=n[15];let _=t;return(0,tO.useInterval)(_,1e3),null};var o9=e.i(486110);let o4=e=>{let t,n=(0,o.c)(12),{promocode:a,asSoonAsPosible:l,preorderDate:i}=e,{setIsPromocodeDisabledByTimeLimits:s,setIsPromocodeDisabledByDaysLimits:c}=(0,r.useActions)(),u=(0,r.useAppSelector)(o2.selectIsPromocodeDisabledByTimeLimits),d=(0,r.useAppSelector)(o2.selectIsPromocodeDisabledByDaysLimits),{getDateWithMerchantTimeZone:m}=(0,oR.useGetDateWithMerchantTimeZone)(),p=!(l||null===i);n[0]!==m||n[1]!==p||n[2]!==d||n[3]!==u||n[4]!==i||n[5]!==a.days||n[6]!==a.isShowByClock||n[7]!==a.timeFrom||n[8]!==a.timeTo||n[9]!==c||n[10]!==s?(t=()=>{let e=p?i:m(),t=(0,o9.checkTimeLimitsWithInterval)({checkTime:e,timeFrom:a.timeFrom,timeTo:a.timeTo,days:a.days,isShowByClock:a.isShowByClock}),o=!t.status&&("time"===t.errorReason||"dayAndTime"===t.errorReason);o&&!u?s(!0):!o&&u&&s(!1);let n=!t.status&&("day"===t.errorReason||"dayAndTime"===t.errorReason);n&&!d?c(!0):!n&&d&&c(!1)},n[0]=m,n[1]=p,n[2]=d,n[3]=u,n[4]=i,n[5]=a.days,n[6]=a.isShowByClock,n[7]=a.timeFrom,n[8]=a.timeTo,n[9]=c,n[10]=s,n[11]=t):t=n[11];let f=t;return(0,tO.useInterval)(f,1e3),null},o5=()=>{let e,n,a,l,i,s,c=(0,o.c)(21),[u]=(0,o1.useLazyGetPromocodeQuery)(),{removePromocode:d}=(0,r.useActions)(),m=(0,r.useAppSelector)(eB.selectPromocode),p=(0,r.useAppSelector)(oD.selectAsSoonAsPosible),f=(0,r.useAppSelector)(oD.selectPreorderDate);return c[0]!==u||c[1]!==m||c[2]!==d?(e=()=>{m&&u(m.code).unwrap().catch(e=>{d(),e?.data?.error&&eO.toast.error(`Примененный промокод был отменен:
2 ${e?.data?.error}`)})},c[0]=u,c[1]=m,c[2]=d,c[3]=e):e=c[3],c[4]===Symbol.for("react.memo_cache_sentinel")?(n=[],c[4]=n):n=c[4],(0,eT.useEffect)(e,n),c[5]!==p||c[6]!==f||c[7]!==m?(a=m?(0,t.jsx)(o3,{promocode:m,asSoonAsPosible:p,preorderDate:f}):null,c[5]=p,c[6]=f,c[7]=m,c[8]=a):a=c[8],c[9]!==p||c[10]!==f||c[11]!==m?(l=m&&m.showByTime?(0,t.jsx)(o4,{promocode:m,asSoonAsPosible:p,preorderDate:f}):null,c[9]=p,c[10]=f,c[11]=m,c[12]=l):l=c[12],c[13]!==p||c[14]!==f||c[15]!==m?(i=(0,t.jsx)(o6,{promocode:m,asSoonAsPosible:p,preorderDate:f}),c[13]=p,c[14]=f,c[15]=m,c[16]=i):i=c[16],c[17]!==a||c[18]!==l||c[19]!==i?(s=(0,t.jsxs)(t.Fragment,{children:[a,l,i]}),c[17]=a,c[18]=l,c[19]=i,c[20]=s):s=c[20],s};var o7=e.i(711973),o8=e.i(385479),ne=e.i(256286);let nt=()=>{let e,t=(0,o.c)(12),{setWorkingStatus:n,setMaintenanceStatus:a,setIsStatusesValidated:l}=(0,r.useActions)(),i=(0,r.useAppSelector)(tx.selectWorkingTime),s=(0,r.useAppSelector)(tx.selectMaintenanceTurnedOffDate),c=(0,r.useAppSelector)(tx.selectMaintenanceTurnedOnDate),u=(0,r.useAppSelector)(tx.selectMaintenanceMode),d=(0,r.useAppSelector)(ne.selectWorkingStatus),m=(0,r.useAppSelector)(ne.selectMaintenanceStatus),p=(0,r.useAppSelector)(ne.selectIsWorkStatusesValidated),{getDateWithMerchantTimeZone:f}=(0,oR.useGetDateWithMerchantTimeZone)();t[0]!==f||t[1]!==p||t[2]!==c||t[3]!==s||t[4]!==u||t[5]!==m||t[6]!==d||t[7]!==l||t[8]!==a||t[9]!==n||t[10]!==i?(e=()=>{let e=f(),t=(0,o8.parse)(s,"yyyy-MM-dd HH:mm",e),o=(0,o8.parse)(c,"yyyy-MM-dd HH:mm",e),r=(0,oG.checkTimeLimits)({daysIntervals:i,checkTime:e}),h=(()=>{try{return(0,o7.isWithinInterval)(e,{start:t,end:o})}catch(e){return console.log(`${e.message}, Something wrong in maintenance interval`),!1}})()&&("fullClose"===u||"canViewSite"===u),g=window.location.href.includes("maintenance_preview"),y=!h&&!g;r&&!d?n(!0):!r&&d&&n(!1),y&&!m?a(!0):!y&&m&&a(!1),p||l(!0)},t[0]=f,t[1]=p,t[2]=c,t[3]=s,t[4]=u,t[5]=m,t[6]=d,t[7]=l,t[8]=a,t[9]=n,t[10]=i,t[11]=e):e=t[11];let h=e;return(0,tO.useInterval)(h,1e3),null},no=()=>{let e,n=(0,o.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(nt,{}),(0,t.jsx)(oq,{}),(0,t.jsx)(o0,{}),(0,t.jsx)(oU,{}),(0,t.jsx)(o5,{})]}),n[0]=e):e=n[0],e};var nn=e.i(362497);e.i(691985);var nr=e.i(996219),na=e.i(24949),nl=e.i(131760),ni=e.i(32614),ns=e.i(713366),nc=e.i(658358);function nu(e){(0,eN.handleErrorMessage)({err:e})}var nd=e.i(407749);let nm=["code","device_id","expires_in","state","ext_id","type","linkVkProfileInfo"],np=()=>{let e,c,u,d,m,p,f,h,g,y,b,S,_,A,v=(0,o.c)(24);(()=>{let e,t,n=(0,o.c)(8),[a]=(0,ni.useLazyGetIsVkMessagesFromGroupAllowedQuery)(),{allowMessagesFromVkGroup:i}=(0,ns.useAllowMessagesFromVkGroup)(),{vkUserId:s}=(0,nc.useGetVkUserId)(),c=(0,r.useAppSelector)(tx.selectVkGroupId);n[0]!==i||n[1]!==a||n[2]!==c||n[3]!==s?(e=()=>{"vk"===(0,l.getPlatform)()&&c&&s&&a({userVkProfile:s.toString()}).unwrap().then(e=>{e.is_allowed||i(c)}).catch(nu)},n[0]=i,n[1]=a,n[2]=c,n[3]=s,n[4]=e):e=n[4],n[5]!==c||n[6]!==s?(t=[c,s],n[5]=c,n[6]=s,n[7]=t):t=n[7],(0,eT.useEffect)(e,t)})(),(()=>{let{mectricOpenSite:e}=(0,ej.useMetricFunctions)(),t=(0,r.useAppSelector)(s.selectIsVkAuthActive),o=(0,n.use
2SearchParams)(),c=(0,n.useRouter)(),u=(0,n.usePathname)(),d=(0,r.useAppSelector)(s.selectVkAppId),[m]=(0,ni.useLinkVkProfileMutation)({fixedCacheKey:"vk-profile-mutation"}),{merchantId:p}=(0,oy.useMerchantSettings)(),f=(0,r.useAppSelector)(s.selectIsAuthorized),h=(0,r.useAppSelector)(oc.selectUserVkProfile),{navigateTo:g}=(0,eR.useTownNavigate)(),{handleAuthVkFromRedirect:y}=eF();(0,eT.useEffect)(()=>{let n=(0,l.getPlatform)();if(!t||"vk"===n||!d||!o||!i.isClient)return;if(o.has("code")){let t={code:"",device_id:"",code_verifier:""};try{t.code=o.get("code")??"",t.device_id=o.get("device_id")??"",t.code_verifier=sessionStorage.getItem("vk_code_verifier")??"",sessionStorage.removeItem("vk_code_verifier")}catch(e){console.error(e)}if(t&&t.code&&t.device_id){let n=o.has("linkVkProfileInfo"),r=new URLSearchParams(o);nm.forEach(e=>{r.has(e)&&r.delete(e)});let l=decodeURIComponent((0,a.getClientCookie)(`filial-${p}`)??"");if(c.replace(`${l}/?${r.toString()}`),n)g("/account/settings"),m(t).unwrap().then(t=>{(0,eM.toastSuccessMessage)(t.message),e()}).catch(e=>{(0,eN.handleErrorMessage)({err:e,callback:eM.toastErrorMessage})});else y(t)}}let r=new URLSearchParams;n&&r.set("platform",n),f&&!h&&r.set("linkVkProfileInfo","true");let s=`${window.location.origin}?${r.toString()}`,u=((e=43,t=128)=>{let o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=Math.floor(Math.random()*(t-e+1))+e,r="";for(let e=0;e<n;e++){let e=Math.floor(Math.random()*o.length);r+=o[e]}return r})();sessionStorage.setItem("vk_code_verifier",u),om.Config.init({app:d,redirectUrl:s,codeVerifier:u,scope:"phone,messages,groups",mode:nd.ConfigAuthMode.Redirect})},[u,t,d,f,h,o,p])})(),(0,oO.useGetUserInfoWithAccessToken)();let x=(0,r.useAppSelector)(s.selectIsAuthEnabled);v[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.getPlatform)(),v[0]=e):e=v[0];let T=e,C=(0,r.useAppSelector)(nn.selectIsMobileInstallAppWidgetActive);v[1]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.getClientCookie)("refusedToInstallApp"),v[1]=c):c=v[1];let k=c,w=(0,r.useAppSelector)(oC.selectIsCookiesAccepted),E=(0,r.useAppSelector)(tx.selectBeforePaymentText),I=(0,r.useAppSelector)(s.selectIsAuthorized),N=(0,r.useAppSelector)(tx.selectShowAuthOfferWidget);return v[2]!==x||v[3]!==I||v[4]!==N?(u=x&&!I&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(oA,{}),N&&(0,t.jsx)(nr.AuthOfferWidget,{})]}),v[2]=x,v[3]=I,v[4]=N,v[5]=u):u=v[5],v[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(oL.SaleModal,{}),v[6]=d):d=v[6],v[7]!==C?(m=!k&&C&&(0,t.jsx)(na.InstallAppWidget,{}),v[7]=C,v[8]=m):m=v[8],v[9]===Symbol.for("react.memo_cache_sentinel")?(p=("ios"===T||"android"===T)&&i.isClient&&(0,t.jsx)(nl.MobileUpdateDrawer,{}),f=(0,t.jsx)(ox.WeClosed,{}),h=(0,t.jsx)(ov.HardHoursModal,{}),g=(0,t.jsx)(no,{}),v[9]=p,v[10]=f,v[11]=h,v[12]=g):(p=v[9],f=v[10],h=v[11],g=v[12]),v[13]!==w?(y=!w&&"site"===T&&i.isClient&&(0,t.jsx)(oT.CookiesConsentBanner,{}),v[13]=w,v[14]=y):y=v[14],v[15]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(oN,{}),S=(0,t.jsx)(oE,{}),v[15]=b,v[16]=S):(b=v[15],S=v[16]),v[17]!==E?(_=E&&(0,t.jsx)(oP.BeforePaymentModal,{beforePaymentText:E}),v[17]=E,v[18]=_):_=v[18],v[19]!==_||v[20]!==u||v[21]!==m||v[22]!==y?(A=(0,t.jsxs)(t.Fragment,{children:[u,d,m,p,f,h,g,y,b,S,_]}),v[19]=_,v[20]=u,v[21]=m,v[22]=y,v[23]=A):A=v[23],A};var nf=e.i(155487);e.i(532641);var nh=e.i(693641),ng=e.i(357063),ny=e.i(210377),nb=e.i(113160),nS=e.i(325659),n_=e.i(745921),nA=e.i(205550);let nv=e=>{let t=(0,l.getPlatform)();return e?e.filter(e=>e?.displayLocations?.includes(t)):null},nx=e=>{if(!e)return null;let t=(0,l.getPlatform)();return e.displayLocations.includes(t)?e:null},nT=(e,t)=>{if(!i.isClient)return e;let o=nv(e.banners),n=nv(e.topSaleProducts),r=nv(e.recommendedProducts),a=nv(e.promotions),l=nv(e.stories),s=nv(e.products),c=nv(e.autoDiscounts),u=nx(e.giftScaleSetting),d=t&&(0,t9._isMobileApp)(),m=nx(e.authSettings.phone),p=d?null:nx(e.authSettings.vk),f=d?null:nx(e.authSettings.tg),h=d?null:nx(e.authSettings.max);return{...e,banners:o,topSaleProducts:n,recommendedProducts:r,promotions:a,stories:l,products:s,autoDiscounts:c,giftScaleSetting:u,authSettings:{...e.authSettings,phone:m,vk:p,tg:f,max:h}}},nC=({merchantSettings:e,filialSettings:o,filialSlug:n})=>{let l=(0,r.useAppDispatch)(),s=(0,nf.useStore)(),{merchantId:c,mobileSettings:{isOnModeration:u}}=e,{setFilialSettingsFromServer:d,changeLoadingReduxSettings:m,cleanFilialData:p,changeCartProductsFromValidation:f,changeIsFilialInitialazed:h,changeIsFilialInitialazedAfterEffect:g}=(0,r.useActions)();i.isClient||d(o);let y=(0,r.useAppSelector)(tx.selectIsFilialInitialazed),b=(0,r.useAppSelector)(tx.selectIsFilialInitialazedAfterEffect);i.isClient&&!y&&(h(!0),d(nT(o,u)));let S=(0,r.useAppSelector)(tx.selectLoadingReduxSettings),_=(0,r.useAppSelector)(eB.selectCartProducts);return((0,eT.useEffect)(()=>{let{products:e,categories:t}=o,n=(0,nA.validateProductsInCart)(_,e,t);f(n),_?.length===n?.length||b||(0,eM.toastErrorMessage)("Часть товаров удалены из корзин
2ы, \n т.к. время действия акции закончилось.")},[o]),(0,eT.useEffect)(()=>{b||g(!0)},[b]),(0,eT.useEffect)(()=>{"default"===n||(async()=>{let e=decodeURIComponent((0,a.getClientCookie)(`filial-${c}`)??"");if((0,nS.setClientCookie)(`filial-${c}`,encodeURIComponent(`/${n}`),nb.COOKIE_OPTIONS),e.replace("/","")!==n&&e)try{p(),await new Promise(e=>requestAnimationFrame(e)),d(nT(o,u)),l(ng.baseAuthApi.util.resetApiState()),l(nh.baseApi.util.resetApiState()),l(ny.eventsApi.util.resetApiState())}finally{m(!1)}})()},[o,n,c,u]),(0,eT.useEffect)(()=>{m(!1)},[m]),(0,eT.useEffect)(()=>{if(!S)return;let e=e=>{(0,tx.selectLoadingReduxSettings)(s.getState())&&(console.warn(`[HydrateFilialSettings] лоадер горит >${e} — гашу принудительно, ищите незакрытое взведение loadingReduxSettings`),m(!1))},t=[setTimeout(()=>e("300мс"),300),setTimeout(()=>e("500мс"),500),setTimeout(()=>e("2с"),2e3),setTimeout(()=>e("5с"),5e3)];return()=>t.forEach(clearTimeout)},[S,m,s]),S)?(0,t.jsx)(n_.CustomBigLoader,{}):null},nk=()=>{let e,t,n=(0,o.c)(6),a=(0,r.useAppSelector)(tx.selectYandexMetricScript),l=(0,r.useAppSelector)(tx.selectGoogleAnalyticsScript),s=(0,r.useAppSelector)(tx.selectVkPixelScript),c=(0,r.useAppSelector)(tx.selectTiktokPixelScript);return n[0]!==l||n[1]!==c||n[2]!==s||n[3]!==a?(e=()=>{if(!i.isClient)return;let e=new DOMParser;document.querySelectorAll('[data-metrik="true"]').forEach(nw);let t=[],o=[];return[a,l,s,c].filter(Boolean).map(t=>e.parseFromString(t,"text/html")).forEach(e=>{e.querySelectorAll("script").forEach(e=>{let o=document.createElement("script");e.src&&(o.src=e.src),e.type&&(o.type=e.type),e.innerHTML&&(o.innerHTML=e.innerHTML),o.setAttribute("data-metrik","true"),document.head.appendChild(o),t.push(o)}),e.querySelectorAll("body").forEach(e=>{let t=document.createElement("noscript");t.innerHTML=e.innerHTML,t.setAttribute("data-metrik","true"),document.body.appendChild(t),o.push(t)})}),()=>{t.forEach(nE),o.forEach(nI)}},t=[a,l,s,c],n[0]=l,n[1]=c,n[2]=s,n[3]=a,n[4]=e,n[5]=t):(e=n[4],t=n[5]),(0,eT.useEffect)(e,t),null};function nw(e){return e.remove()}function nE(e){return e.remove()}function nI(e){return e.remove()}e.s(["Filial",0,e=>{let r,a,l,i,s=(0,o.c)(11),{filialSettings:c,merchantSettings:u,filialSlug:d}=e,m=(0,n.usePathname)();s[0]!==m?(r=m.includes("qr-mobile"),s[0]=m,s[1]=r):r=s[1];let p=r;return s[2]!==c||s[3]!==d||s[4]!==u?(a=(0,t.jsx)(nC,{filialSettings:c,merchantSettings:u,filialSlug:d}),s[2]=c,s[3]=d,s[4]=u,s[5]=a):a=s[5],s[6]!==p?(l=!p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(nk,{}),(0,t.jsx)(np,{})]}),s[6]=p,s[7]=l):l=s[7],s[8]!==a||s[9]!==l?(i=(0,t.jsxs)(t.Fragment,{children:[a,l]}),s[8]=a,s[9]=l,s[10]=i):i=s[10],i}],651336)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.