1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{45201:function(e,t,r){Promise.resolve().then(r.t.bind(r,65878,23)),Promise.resolve().then(r.t.bind(r,72972,23)),Promise.resolve().then(r.t.bind(r,88003,23)),Promise.resolve().then(r.t.bind(r,32095,23)),Promise.resolve().then(r.bind(r,7409)),Promise.resolve().then(r.t.bind(r,2648,23)),Promise.resolve().then(r.bind(r,66802)),Promise.resolve().then(r.bind(r,21580)),Promise.resolve().then(r.bind(r,58050)),Promise.resolve().then(r.bind(r,24854)),Promise.resolve().then(r.bind(r,99767)),Promise.resolve().then(r.bind(r,50847)),Promise.resolve().then(r.bind(r,83588)),Promise.resolve().then(r.bind(r,27083)),Promise.resolve().then(r.bind(r,87633)),Promise.resolve().then(r.bind(r,8148)),Promise.resolve().then(r.bind(r,2455)),Promise.resolve().then(r.bind(r,90707)),Promise.resolve().then(r.bind(r,73405)),Promise.resolve().then(r.bind(r,9863)),Promise.resolve().then(r.bind(r,84401)),Promise.resolve().then(r.bind(r,84180)),Promise.resolve().then(r.bind(r,98711)),Promise.resolve().then(r.bind(r,19316)),Promise.resolve().then(r.bind(r,31554)),Promise.resolve().then(r.t.bind(r,60234,23)),Promise.resolve().then(r.bind(r,41670)),Promise.resolve().then(r.bind(r,72691)),Promise.resolve().then(r.bind(r,33914)),Promise.resolve().then(r.bind(r,62343)),Promise.resolve().then(r.bind(r,25713)),Promise.resolve().then(r.t.bind(r,37179,23)),Promise.resolve().then(r.bind(r,22776)),Promise.resolve().then(r.bind(r,20717)),Promise.resolve().then(r.bind(r,822)),Promise.resolve().then(r.bind(r,5392)),Promise.resolve().then(r.t.bind(r,53416,23)),Promise.resolve().then(r.bind(r,88675)),Promise.resolve().then(r.t.bind(r,85415,23)),Promise.resolve().then(r.bind(r,72666)),Promise.resolve().then(r.bind(r,41700)),Promise.resolve().then(r.t.bind(r,33508,23)),Promise.resolve().then(r.bind(r,89494)),Promise.resolve().then(r.bind(r,4072)),Promise.resolve().then(r.bind(r,60588)),Promise.resolve().then(r.t.bind(r,47934,23))},32525:function(e,t,r){"use strict";r.d(t,{B:function(){return l}});var n=r(25421),o=r(1108),a=r(30987),s=r(74574),i=r(92686);let l={getAddresses(e){var t;return i.mK.post("dadata/address?address=".concat(e.address,"&isCityOnly=").concat(null!==(t=null==e?void 0:e.isCityOnly)&&void 0!==t?t:"false"))},getAddressByGeo:e=>i.mK.post("dadata/reverse-geocoding",e),async getBanners(e,t){try{let r=await (0,o.V)("".concat(a.T5,"banner?type=").concat(e||s.J4.WEB).concat(t?"&page=".concat(t):""),{cache:"no-store"});if(!r.ok)return n.B.stringify(r);return r.json()}catch(e){throw e}},getVersionInfo:()=>i.hi.get("app-version"),async getLogisticsSettings(){let e=await (0,o.V)("".concat(a.T5,"logistics-settings"),{next:{revalidate:300}});return e.ok?e.json():n.B.stringify(e)}}},98711:function(e,t,r){"use strict";r.d(t,{default:function(){return T}});var n=r(57437),o=r(2265),a=r(68575),s=r(92686),i=r(69417),l=r(14474),c=r(64131),u=r(1526),d=r(74640),_=r(55833),h=r(12572),p=function(){let[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{t(!0)},[]),e};let m=()=>{let e=(0,i.TL)(),t=p();(0,o.useEffect)(()=>{(async()=>{if(t){let t=localStorage.getItem(_.o3);if(t&&"1"===localStorage.getItem(_.Ic)&&!c.Z.get(_.RA)){d.i.logout().catch(()=>{}),e(u.xZ.logout());return}if(t){if(function(e){try{let t=(0,l.o)(e),r=Date.now()/1e3;return t.exp<r}catch(e){return!0}}(t))try{let t=await d.i.checkAuth();e((0,h.Z8)(t.data))}catch(t){e(u.xZ.logout())}finally{e(u.xZ.setIsAuthInitialized(!0))}else e((0,h.Z8)({access_token:t,refresh_token:""})),e(u.xZ.setIsAuthInitialized(!0))}else e(u.xZ.setIsAuthInitialized(!0))}})()},[t,e])};var g=r(17435),f=r(88604),v=e=>{let{children:t}=e,r=(0,i.TL)(),a=(0,i.CG)(u.LL.selectIsAuth),s=(0,i.CG)(u.LL.selectIsAuthInitialized),l=(0,i.CG)(e=>e.app.userId),c=(0,i.CG)(f.py.selectData),d=(0,i.CG)(f.py.selectIsDataLoading),_=o.useRef(null);return m(),o.useEffect(()=>{if(!a){_.current=null;return}s&&l&&!c&&!d&&_.current!==l&&(_.current=l,r((0,g.is)()))},[r,a,s,d,c,l]),(0,n.jsx)(n.Fragment,{children:t})},b=r(46731),x=r(22335),w=r(66912),y=r(99376),j=r(16717),C=r(98526),S=r(93575),k=r(21742);let N="/profile/chats",E=e=>{let t="SUPPORT"===e.type;return e.last_message_sender_type===(t?"SUPPORT":"SELLER")&&e.unread_for_user&&e.last_message_at?{key:e.last_message_at,title:t?"Ðоманда поддеÑжки":(0,k.Ph)(e.seller_id),body:e.last_message_text||"Ðовое ÑообÑение",url:t?"/profile/chats/support":"".concat(N,"/").concat(e._id)}:null},L=()=>{let e=(0,y.useRouter)(),t=(0,y.usePathname)(),r=(0,i.CG)(u.LL.selectToken),n=(0,o.useRef)(null),a=(0,o.useRef)(t),s=(0,o.useRef)({}),l=t.startsWith(N);return(0,o.useEffect)(()=>{a.current=t},[t]),(0,o.useEffect)(()=>{var t;if(!r||!(0,S.rw)())return;(0,S.od)();let n=t=>{var r,n;(null===(r=t.data)||void 0===r?void 0:r.type)===S.jg&&(null===(n=t.data)||void 0===n?void 0:n.url)&&t.data.url!==C.QC&&e.push(t.data.url)};return null===(t=navigator.serviceWorker)||void 0===t||t.addEventListener("message",n),(
1)=>{var e;null===(e=navigator.serviceWorker)||void 0===e||e.removeEventListener("message",n)}},[e,r]),(0,o.useEffect)(()=>{if(!r||!(0,S.rw)()||!l||"default"!==Notification.permission)return;(0,S.eV)();let e=()=>(0,S.eV)();return window.addEventListener("pointerdown",e,{once:!0}),()=>window.removeEventListener("pointerdown",e)},[l,r]),(0,o.useEffect)(()=>{if(!r)return;let e=(0,j.mk)(r);return n.current=e,e.on("chat_list_updated",e=>{let t=E(e.chat);if(!t||s.current[e.chat._id]===t.key)return;s.current[e.chat._id]=t.key;let r="visible"===document.visibilityState,n=a.current.startsWith(N),o="SUPPORT"===e.chat.type&&(0,C.G7)();r&&(n||o)||(0,S.nl)({title:t.title,body:t.body,tag:"horsesmart-chat-".concat(e.chat._id),url:t.url})}),()=>{e.disconnect(),n.current=null}},[r]),null};(0,s.ni)(i.h);var T=e=>{let{children:t}=e;return o.useEffect(()=>{let e=e=>{var t;return(0,w.F)("необÑабоÑÐ°Ð½Ð½Ð°Ñ Ð¾Ñибка",null!==(t=e.error)&&void 0!==t?t:e.message)},t=e=>(0,w.F)("необÑабоÑаннÑй оÑказ пÑомиÑа",e.reason);return window.addEventListener("error",e),window.addEventListener("unhandledrejection",t),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",t)}},[]),(0,n.jsx)(a.zt,{store:i.h,children:(0,n.jsx)(v,{children:(0,n.jsx)(b.q,{children:(0,n.jsxs)(x.w,{children:[t,(0,n.jsx)(L,{})]})})})})}},73405:function(e,t,r){"use strict";r.d(t,{AnalyticsLoader:function(){return d}});var n=r(57437),o=r(2265),a=r(55833),s=r(96270),i=r(88003),l=r.n(i);let c=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l(),{id:"top-mail-ru",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:'\nvar _tmr = window._tmr || (window._tmr = []);\n_tmr.push({id: "3701171", type: "pageView", start: (new Date()).getTime()});\n(function (d, w, id) {\n if (d.getElementById(id)) return;\n var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id;\n ts.src = "https://top-fwz1.mail.ru/js/code.js";\n var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);};\n if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); }\n})(document, window, "tmr-code");\n '}}),(0,n.jsx)("noscript",{children:(0,n.jsx)("div",{children:(0,n.jsx)("img",{src:"https://top-fwz1.mail.ru/counter?id=3701171;js=na",style:{position:"absolute",left:"-9999px"},alt:"Top.Mail.Ru"})})})]}),u=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l(),{id:"yandex-metrika",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n (function(m,e,t,r,i,k,a){\n m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};\n m[i].l=1*new Date();\n for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}\n k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)\n })(window, document,'script','https://mc.yandex.ru/metrika/tag.js', 'ym');\n\n ym(98609183, 'init', {webvisor:true, clickmap:true, ecommerce:\"dataLayer\", referrer: document.referrer, url: location.href, accurateTrackBounce:true, trackLinks:true});\n window.dataLayer = window.dataLayer || [];\n "}}),(0,n.jsx)("noscript",{children:(0,n.jsx)("div",{children:(0,n.jsx)("img",{src:"https://mc.yandex.ru/watch/98609183",style:{position:"absolute",left:"-9999px"},alt:""})})})]}),d=()=>{let[e,t]=(0,o.useState)(null);return((0,o.useEffect)(()=>{t((0,s.tA)());let e=e=>t(e.detail);return window.addEventListener(s.bs,e),()=>window.removeEventListener(s.bs,e)},[]),a.XK&&e)?(0,n.jsxs)(n.Fragment,{children:[e.analytics&&(0,n.jsx)(u,{}),e.marketing&&(0,n.jsx)(c,{})]}):null}},9863:function(e,t,r){"use strict";r.d(t,{UserEventsTracker:function(){return i}});var n=r(2265),o=r(99376),a=r(46714),s=r(68553);let i=()=>{let e=(0,o.usePathname)(),t=(0,o.useSearchParams)();return(0,n.useEffect)(()=>{(0,s.F)()},[]),(0,n.useEffect)(()=>{(0,s.L)(a.A.PAGE_VIEW,{pathname:e})},[e,t]),null}},84401:function(e,t,r){"use strict";r.d(t,{EmailConfirmPrompt:function(){return k}});var n=r(57437),o=r(2265),a=r(99376),s=r(29501),i=r(7409),l=r(74640),c=r(6226),u=r(69417),d=r(88604),_=r(38978),h=r(39606),p=r(43373),m=r(37091),g=r(47672),f=r(67655),v=r(43616),b=r(63519),x=r(39338),w=r(30969),y=r(14548),j=r.n(y);let C=["code0","code1","code2","code3"],S=["/profile/orders","/profile/account","/cart","/cart/payment-status","/favorites","/profile/favorites"],k=()=>{let e=(0,u.TL)(),t=(0,a.usePathname)(),r=(0,u.CG)(d.py.selectData),[y,k]=o.useState(!1),[N,E]=o.useState(""),[L,T]=o.useState(""),[W,P]=o.useState(!1),[I,B]=o.use
1State({type:null,text:""}),[A,F]=o.useState(!1),[R,H]=o.useState(!1),[D,M]=o.useState(0),Z=o.useRef(null),{control:G,handleSubmit:O,setFocus:X,getValues:V,setValue:U,clearErrors:z,setError:q,reset:J}=(0,s.cI)({defaultValues:{code0:"",code1:"",code2:"",code3:""}}),K=!!r&&!!r.is_phone_verified&&!r.is_activated;o.useEffect(()=>{var e,n;if(!K||y||!S.includes(t))return;let o="".concat("email_confirm_prompt_").concat(null==r?void 0:r._id),a=Number(null!==(e=localStorage.getItem(o))&&void 0!==e?e:0);Date.now()-a<6e5||(localStorage.setItem(o,String(Date.now())),E(null!==(n=null==r?void 0:r.email)&&void 0!==n?n:""),k(!0))},[t,K,y,null==r?void 0:r._id,null==r?void 0:r.email]),o.useEffect(()=>()=>{var e;null===(e=Z.current)||void 0===e||e.call(Z),Z.current=null},[]);let Q=()=>{var e;null===(e=Z.current)||void 0===e||e.call(Z),Z.current=(0,b.H)(60,M)},Y=()=>{var e;null===(e=Z.current)||void 0===e||e.call(Z),Z.current=null,k(!1),P(!1),B({type:null,text:""}),T(""),J()},$=e=>{B({type:"error",text:e}),C.forEach(t=>{q(t,{type:"manual",message:e})})},ee=async()=>{if(A)return;let{error:e}=(0,x.o)(N);
1if(e){T(e);return}try{F(!0),T("");let e=await l.i.requestEmailAttachCode({email:N});P(!0),z(),J(),B({type:"success",text:e.data.message}),Q()}catch(o){var t,r,n;let e=null!==(n=null===(r=o.response)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.message)&&void 0!==n?n:"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ ÐºÐ¾Ð´";e.includes("ÑекÑнд")&&Q(),W?B({type:"error",text:e}):T(e)}finally{F(!1)}},et=async t=>{if(A)return;let r=Object.values(t).join("");if(r.length<4){$("Ðод введен не полноÑÑÑÑ");return}try{F(!0);let t=await l.i.verifyEmailAttachCode({code:Number(r)}),n=await c.B.getData();e(d.hI.setData(n.data)),i.toast.success(t.data.message),Y()}catch(t){var n,o,a;let e=null!==(a=null===(o=t.response)||void 0===o?void 0:null===(n=o.data)||void 0===n?void 0:n.message)&&void 0!==a?a:"Ðод введен невеÑно";if("ÐбÑаÑиÑеÑÑ Ð² поддеÑжкÑ"===e){H(!0),B({type:"error",text:e});return}$(e)}finally{F(!1)}},er=e=>{e.preventDefault();let t=e.clipboardData.getData("text/plain").replace(/\D/g,"");if(4===t.length){let e=t.split("");C.forEach((t,r)=>{U(t,e[r])}),X(C[3]),O(et)()}};if(!y)return null;let en=D>0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(_.Z,{onClose:Y,closeOnOverlayClick:!1,children:[(0,n.jsx)(h.Z,{onClose:Y}),(0,n.jsxs)("div",{className:j().container,children:[(0,n.jsx)(p.r,{text:"ÐодÑвеÑдиÑе поÑÑÑ"}),I.type&&(0,n.jsx)(g.D,{type:I.type,text:I.text}),W?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.k,{text:"ÐведиÑе код из пиÑÑма:"}),(0,n.jsx)("div",{className:j().email,children:N}),(0,n.jsx)(m.k,{text:"Ðод дейÑÑвÑÐµÑ 10 минÑÑ",className:j().validity}),(0,n.jsx)("div",{className:j().codeForm,children:C.map((e,t)=>(0,n.jsx)(s.Qr,{name:e,control:G,rules:{pattern:{value:/^[0-9]?$/,message:"ТолÑко ÑиÑÑÑ"}},render:r=>{let{field:o,fieldState:a}=r;return(0,n.jsx)("input",{...o,className:"".concat(j().codeInput," ").concat(a.invalid?j().codeInputError:""),maxLength:1,inputMode:"numeric",autoComplete:"one-time-code",onChange:e=>{"error"===I.type&&(B({type:null,text:""}),z());let r=e.target.value.replace(/\D/g,"").slice(-1)||"";if(o.onChange(r),r&&t<3&&X(C[t+1]),r&&3===t){let e=V();C.every(t=>e[t])&&O(et)()}},onKeyDown:r=>{"Backspace"===r.key&&!V(e)&&t>0&&X(C[t-1])},onPaste:er})}},e))}),(0,n.jsx)(f.J,{text:"ÐодÑвеÑдиÑÑ",isLoading:A,type:"button",onClick:O(et)}),(0,n.jsx)("button",{className:j().resendButton,onClick:ee,disabled:en||A,type:"button",children:en?"ÐеÑеоÑпÑавиÑÑ ÑеÑез ".concat(D," Ñек"):"ÐÑпÑавиÑÑ ÐºÐ¾Ð´ повÑоÑно"}),(0,n.jsx)("button",{className:j().linkButton,type:"button",onClick:()=>P(!1),children:"ÐзмениÑÑ Ð¿Ð¾ÑÑÑ"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.k,{text:"ÐоÑÑа нÑжна Ð´Ð»Ñ Ñеков, ÑÑаÑÑÑов заказов и воÑÑÑÐ°Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ Ð´Ð¾ÑÑÑпа к аккаÑнÑÑ."}),(0,n.jsx)("input",{className:j().emailInput,value:N,onChange:e=>{E((0,w.u)(e.target.value)),T("")},placeholder:"ÐведиÑе Ð²Ð°Ñ E-mail",inputMode:"email",autoComplete:"email"}),L&&(0,n.jsx)("p",{className:j().errorText,children:L}),(0,n.jsx)(f.J,{text:"ÐолÑÑиÑÑ ÐºÐ¾Ð´",isLoading:A,type:"button",onClick:ee})]}),(0,n.jsx)("button",{className:j().linkButton,type:"button",onClick:Y,children:"Ðозже"})]})]}),R&&(0,n.jsx)(v.a,{onClose:()=>H(!1)})]})}},84180:function(e,t,r){"use strict";r.d(t,{GuestToken:function(){return l}});var n=r(57437),o=r(2265),a=r(32525),s=r(55833),i=r(66912);let l=()=>((0,o.useEffect)(()=>{(async()=>{try{var e;let t=await a.B.getVersionInfo(),r=null==t?void 0:null===(e=t.headers)||void 0===e?void 0:e["x-guest-token"];r&&await localStorage.setItem(s.Pg,r)}catch(e){(0,i.F)("гоÑÑÐµÐ²Ð°Ñ ÑеÑÑиÑ",e)}})()},[]),(0,n.jsx)(n.Fragment,{}))},19316:function(e,t,r){"use strict";r.d(t,{ApprovedEmail:function(){return d}});var n=r(57437),o=r(2265),a=r(75414),s=r(66758),i=r(66912),l=r(69417);let c=()=>{let e=(0,l.TL)();o.useEffect(()=>{(async()=>{try{let{data:t}=await a.q.getActivePromos();t.forEach(t=>{e((0,s.Zj)(t))})}catch(e){(0,i.F)("акÑии: загÑÑзка акÑивнÑÑ
пÑомокодов",e)}})()},[e])};var u=r(40473);let d=()=>{var e;let[t,r]=(0,o.useState)(null);return c(),(0,o.useEffect)(()=>{let e=e=>{let{detail:t}=e;r(t)};return window.addEventListener(u.dx,e),()=>{window.removeEventListener(u.dx,e)}},[]),(0,n.jsx)(u.kL,{isOpen:!!t,phone:null!==(e=null==t?void 0:t.phone)&&void 0!==e?e:"",verifyAccessToken:null==t?void 0:t.verifyAccessToken,phoneLoginToken:null==t?void 0:t.phoneLoginToken,signupToken:null==t?void 0:t.signupToken,initialStatus:null==t?void 0:t.initialStatus,codeSent:null==t?void 0:t.codeSent,onClose:()=>r(null),onBeforeVerify:null==t?void 0:t.onBeforeVerify,onVerified:async e=>{let n=null==t?void 0:t.onVerified;r(null),await (null==n?void 0:n(e))}})}},31554:function(e,t,r){"use strict";r.d(t,{CookieBanner:function(){return u}});var n=r(57437),o=r(2265),a=r(27648),s=r(57702),i=r(96270),l=r(93705),c=r.n(l);let u=()=>{let[e,t]=(0,o.useState)(!1),[r,l]=(0,o.useState)(!1),[u,d]=(0,o.useState)(!1),[_,h]=(0,o.useState)(!1);(0,o.useEffect)(()=>{(0,i.tA)()||t(!0)},[]);let p=e=>{(0,i.ZG)(e),t(!1)};return e?(0,n.jsxs)("div",{className:c().popup,role:"region","aria-label":"Уведомление об иÑполÑзовании Ñайлов cookie",children:[(0,n.jsxs)("p",{className:c().text,children:["ÐÑ Ð¸ÑполÑзÑем ÑÐ°Ð¹Ð»Ñ cookie Ð´Ð»Ñ ÑабоÑÑ ÐлаÑÑоÑмÑ. ÐзнакомÑÑеÑÑ Ñ Ð½Ð°Ñей"," ",(0,n.jsx)(a.default,{href:s.lj,className:c().link,
1children:"ÐолиÑикой иÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ñайлов cookie"}),"."]}),r&&(0,n.jsxs)("div",{className:c().settings,children:[(0,n.jsxs)("label",{className:c().category,children:[(0,n.jsx)("input",{type:"checkbox",checked:!0,disabled:!0}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:c().categoryTitle,children:"ТеÑ
ниÑеÑкие (обÑзаÑелÑнÑе)"}),(0,n.jsx)("span",{className:c().categoryHint,children:"ÐÑÐ¶Ð½Ñ Ð´Ð»Ñ Ð²Ñ
ода в аккаÑнÑ, коÑÐ·Ð¸Ð½Ñ Ð¸ оÑоÑÐ¼Ð»ÐµÐ½Ð¸Ñ Ð·Ð°ÐºÐ°Ð·Ð°. ÐÑклÑÑиÑÑ Ð¸Ñ
нелÑзÑ."})]})]}),(0,n.jsxs)("label",{className:c().category,children:[(0,n.jsx)("input",{type:"checkbox",checked:u,onChange:e=>d(e.target.checked)}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:c().categoryTitle,children:"ÐналиÑиÑеÑкие"}),(0,n.jsx)("span",{className:c().categoryHint,children:"ЯндекÑ.ÐеÑÑика и пÑивÑзка внÑÑÑенней ÑÑаÑиÑÑики к ваÑÐµÐ¼Ñ Ð²Ð¸Ð·Ð¸ÑÑ: помогаÑÑ Ð¿Ð¾Ð½ÑÑÑ, как полÑзÑÑÑÑÑ ÑайÑом."})]})]}),(0,n.jsxs)("label",{className:c().category,children:[(0,n.jsx)("input",{type:"checkbox",checked:_,onChange:e=>h(e.target.checked)}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:c().categoryTitle,children:"ÐаÑкеÑинговÑе"}),(0,n.jsx)("span",{className:c().categoryHint,children:"Top.Mail.Ru и ÑекламнÑе ÑÑÑÑÑики: показ ÑелеванÑнÑÑ
пÑедложений."})]})]})]}),(0,n.jsx)("div",{className:c().buttons,children:r?(0,n.jsx)("button",{className:c().buttonAccept,onClick:()=>p({analytics:u,marketing:_}),children:"СоÑ
ÑаниÑÑ Ð²ÑбоÑ"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{className:c().buttonAccept,onClick:()=>p({analytics:!0,marketing:!0}),children:"ÐÑинÑÑÑ Ð²Ñе"}),(0,n.jsx)("button",{className:c().buttonGhost,onClick:()=>l(!0),children:"ÐаÑÑÑоиÑÑ"})]})})]}):null}},41670:function(e,t,r){"use strict";r.d(t,{FooterSupportLink:function(){return c}});var n=r(57437),o=r(33145),a=r(92691),s=r(36303),i=r(60234),l=r.n(i);let c=e=>{let{className:t}=e,{openSupport:r}=(0,s.y)();return(0,n.jsxs)("button",{onClick:r,className:t,children:[(0,n.jsx)(o.default,{src:a.Z,alt:"telegram"}),(0,n.jsx)("span",{className:l().supportLinkText,children:"ТеÑ
ниÑеÑÐºÐ°Ñ Ð¿Ð¾Ð´Ð´ÐµÑжка"})]})}},72691:function(e,t,r){"use strict";r.d(t,{FooterSwitcher:function(){return s}});var n=r(57437);r(2265);var o=r(99376),a=r(55833);let s=e=>{let{main:t}=e;return((0,o.usePathname)()||"")===a.Wx?null:(0,n.jsx)(n.Fragment,{children:t})}},62343:function(e,t,r){"use strict";r.d(t,{Categories:function(){return m}});var n=r(57437),o=r(2265),a=r(27648),s=r(33145),i=r(5362),l={src:"/_next/static/media/category-open.49f852b2.svg",height:12,width:15,blurWidth:0,blurHeight:0},c=r(80022),u=r(34235),d=r(30987),_=r(31848),h=r(68690),p=r.n(h);let m=e=>{let{categories:t}=e,[r,h]=o.useState(!1),[m,g]=o.useState(""),[f,v]=o.useState({}),b=o.useRef(null),x=o.useRef(null),w=o.useRef(null);o.useEffect(()=>{w.current=document.querySelector("header")},[]),o.useEffect(()=>{(null==t?void 0:t.length)&&y(t[0].value)},[t]),o.useEffect(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&x.current&&!x.current.contains(e.target)&&h(!1)},t=e=>{if(!r||!w.current)return;let t=w.current.getBoundingClientRect();(e.clientX<t.left||e.clientX>t.right)&&h(!1)};return r?(document.addEventListener("mousedown",e),document.addEventListener("mousemove",t)):(document.removeEventListener("mousedown",e),document.removeEventListener("mousemove",t)),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("mousemove",t)}},[r]);let y=e=>{if(g(e),e&&!(null==f?void 0:f[e])){let r=t.find(t=>t.value===e);if(r){let t=[...r.children||[]].sort((e,t)=>e.title.localeCompare(t.title,"ru"));v(r=>({...r,[e]:t}))}}},j=o.useMemo(()=>((null==f?void 0:f[m])||[]).reduce((e,t,r)=>{let n=Math.floor(r/2);return e[n]=[...e[n]||[],t],e},[]),[m,f]);return(0,n.jsxs)("figure",{children:[(0,n.jsxs)("button",{ref:x,className:p().button,onClick:e=>{e.stopPropagation(),h(e=>!e)},children:[(0,n.jsx)(s.default,{src:r?c.Z:l,alt:""}),(0,n.jsx)("span",{className:p().buttonText,children:"ÐаÑалог"})]}),(0,n.jsxs)("aside",{ref:b,className:p().modal,style:{display:r?"flex":"none"},onMouseLeave:()=>h(!1),children:[!!t.length&&(0,n.jsx)("ul",{className:p().categoriesList,children:t.map(e=>(0,n.jsxs)("li",{className:p().categoryItem,style:{backgroundColor:m===e.value?"#F6F6F6":"transparent"},onMouseEnter:()=>y(e.value),children:[(0,n.jsx)("div",{className:p().categoryItemImageWrapper,children:(0,n.jsx)(s.default,{src:"".concat(d.eG).concat(e.photo),overrideSrc:"".concat(d.eG).concat(e.photo),alt:e.title,width:46,height:46,className:p().categoryItemImage})}),(0,n.jsx)("p",{className:p().categoryItemName,children:e.title}),(0,n.jsx)(s.default,{src:u.Z,alt:""})]},e.value))}),!!j.length&&(0,n.jsx)("ul",{className:p().subCategoryList,children:j.map((e,t)=>(0,n.jsx)("div",{className:p().subCategoriesRow,children:e.map(e=>(0,n.jsx)("li",{className:p().subCategory,children:(0,n.jsx)(a.default,{href:(0,_.I)(e.slug),className:p().subCategoryText,onClick:()=>h(!1),children:e.title})},e.value))},t))}),!!t.length&&(0,n.jsx)("ul",{className:p().mobileCategoryList,children:t.map(e=>{var t;return(0,n.jsxs)("div",{children:[(0,n.jsxs)("li",{className:p().mobileCategoryItem,onClick:()=>y(m===e.value?"":e.value),children:[(0,n.jsx)("div",{className:p().categoryItemImageWrapper,children:(0,n.jsx)(s.default,{src:"".concat(d.eG).concat(e.photo),overrideSrc:"".concat(d.eG).concat(e.photo),alt:e.title,width:46,height:46,className:p().categoryItemImage})}),(0,n.jsx)("p",{className:p().categoryItemName,children:e.title}),(0,n.jsx)(s.default,{src:u.Z,alt:"",style:{rotate:m===e.value?"-90deg":"90deg"}})]}),(0,n.jsx)(i.Collapse,{isOpened:m===e.value,children:null==f?void 0:null===(t=f[e.value])||void 0===t?void 0:t.map(e=>(0,n.jsx)(a.default,{href:(0,_.I)(e.slug),onClick:()=>h(!1),className:p().mobileSubCategoryItem,children:e.title},e.value))})]},e.value)})})]})]})}},22776:function(e,t,r){"use strict";r.d(t,{HeaderSwitcher:function(){return C}});var n=r(57437),o=r(2265),a=r(99376),s=r(1526),i=r(69417),l=r(55833),c=r(90587),u=r(50118),d=r(60588),_=r(33145),h=r(27648),p={src:"/_next/static/media/ruspolo-logo.65a6d365.svg",height:272,width:691,blurWidth:0,blurHeight:0},m=r(81569),g=r(48173),f=r(95718),v=r(9840),b=r(25713),x=r(18023),w=r.n(x);let y=()=>{let e=(0,a.useRouter)(),t=(0,a.usePathname)(),r=(0,i.CG)(s.LL.selectIsAuth),c=(0,i.CG)(s.LL.selectIsAuthInitialized),x=(0,u.Z3)(),y=(0,u.Yg)(),j=t===((0,d.u)()?"/":"/ruspoloclub"),[C,S]=(0,o.useState)(!1),[k,N]=(0,o.useState)(null),[E,L]=(0,o.useState)(j),[T,W]=(0,o.useState)(!1),P=(0,o.useRef)(null);(0,o.useEffect)(()=>(document.body.style.setProperty("--mobile-top-padding","10px"),()=>{document.body.style.removeProperty("--mobile-top-padding")}),[]),(0,o.useEffect)(()=>{let e;W(!1),L(j);let t=t=>{L(!0);let r=()=>{var e,r;let n=null!==(r=null===(e=P.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==r?r:0;W(t.getBoundingClientRect().bottom<n)};r(),window.addEventListener("scroll",r,{passive:!0}),e=()=>window.removeEventListener("scroll",r)},r=document.getElementById(l.Xg);if(r)return t(r),()=>null==e?void 0:e();if(!j)return;let n=new MutationObserver(()=>{let e=document.getElementById(l.Xg);e&&(n.disconnect(),clearTimeout(o),t(e))}),o=setTimeout(()=>{n.disconnect(),L(!1)},3e3);return n.observe(document.body,{childList:!0,subtree:!0}),()=>{n.disconnect(),clearTimeout(o),null==e||e()}},[j]),(0,o.useEffect)(()=>{r&&k&&(e.push(k),N(null),S(!1))},[r,k,e]);let I=t=>{c&&(r?e.push(t):(N(t),S(!0)))};return(0,n.jsxs)("header",{className:"".concat(w().container," ").concat(E?w().floating:w().static," ").concat(T?w().hidden:""),children:[(0,n.jsxs)("div",{className:w().header,ref:P,children:[(0,n.jsx)(h.default,{href:y,className:w().logoLink,children:(0,n.jsx)(_.default,{src:p,alt:"ÐогоÑип Ð ÑÑÐолоÐлÑба",width:132,height:52,priority:!0})}),(0,n.jsxs)("div",{className:w().actions,children:[(0,n.jsxs)("button",{type:"button",className:w().iconWrapper,onClick:()=>e.push(y),children:[(0,n.jsx)("span",{className:w().iconSlot,children:(0,n.jsx)(_.default,{src:g.Z,alt:"ÐлавнаÑ",priority:!0})}),(0,n.jsx)("span",{className:w().text,children:"ÐлавнаÑ"})]}),(0,n.jsxs)("button",{type:"button",className:w().iconWrapper,onClick:()=>I("/profile/bookings"),children:[(0,n.jsx)("span",{className:w().iconSlot,children:(0,n.jsx)(_.default,{src:f.Z,alt:"ÐапиÑи",priority:!0})}),(0,n.jsx)("span",{className:w().text,children:"ÐапиÑи"})]}),(0,n.jsxs)("button",{type:"button",className:w().iconWrapper,onClick:()=>e.push(x),children:[(0,n.jsx)("span",{className:w().iconSlot,children:(0,n.jsx)(_.default,{src:m.Z,alt:"ÐаÑкеÑ",priority:!0})}),(0,n.jsx)("span",{className:w().text,children:"ÐаÑкеÑ"})]})]}),(0,n.jsx)("div",{className:w().contact,children:(0,n.jsx)(b.ContactInfo,{phone:"+7 (495) 085-10-30",phoneHref:"tel:+74950851030",landingSlug:l.i8})})]}),C&&(0,n.jsx)(v.Z,{onClose:()=>S(!1)})]})},j="polo_club_context",C=e=>{let{main:t}=e,r=(0,a.usePathname)()||"",_=(0,i.TL)(),h=(0,d.u)(),p=(0,c.E)();return((0,o.useEffect)(()=>
1{if(r.startsWith("/profile")){"1"===sessionStorage.getItem(j)&&_(s.xZ.setPoloClubContext(!0));return}let e=h||r.startsWith(u.kD)||r===l.Wx;sessionStorage.setItem(j,e?"1":"0"),e||_(s.xZ.setPoloClubContext(!1))},[r,_,h]),(0,o.useEffect)(()=>(document.body.classList.toggle(l.Sf,p),()=>document.body.classList.remove(l.Sf)),[p]),r===l.Wx)?null:p?(0,n.jsx)(y,{}):(0,n.jsx)(n.Fragment,{children:t})}},20717:function(e,t,r){"use strict";r.d(t,{MobileSearchBar:function(){return c}});var n=r(57437),o=r(2265),a=r(99376),s=r(822),i=r(41210),l=r.n(i);let c=()=>{let[e,t]=(0,o.useState)(!0),[r,i]=(0,o.useState)(0),[c,u]=(0,o.useState)(!1),[d,_]=(0,o.useState)(!1),h=(0,a.usePathname)()||"";(0,o.useEffect)(()=>{_(!0)},[]),(0,o.useEffect)(()=>{if(!d)return;let e=["/cart","/horses"].some(e=>h.startsWith(e));return window.innerWidth<=480?e?document.body.style.setProperty("--mobile-top-padding","15px"):document.body.style.setProperty("--mobile-top-padding","60px"):document.body.style.removeProperty("--mobile-top-padding"),()=>{document.body.style.removeProperty("--mobile-top-padding")}},[h,d]),(0,o.useEffect)(()=>{if(!d)return;let e=()=>{let e=window.scrollY;if(!(window.innerWidth>480)){if(e<10){t(!0),u(!1),i(e);return}Math.abs(e-r)>5&&(e>r?t(!1):(t(!0),u(!0))),i(e)}};return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[r,d]);let p=["/cart","/horses"].some(e=>h.startsWith(e));return!d||window.innerWidth>480||p?null:(0,n.jsx)("div",{className:"".concat(l().mobileSearchBar," ").concat(c?l().withBackground:""),style:{transform:e?"translateY(0)":"translateY(-100%)",transition:"transform 0.3s ease"},children:(0,n.jsx)(s.Search,{})})}},822:function(e,t,r){"use strict";r.d(t,{Search:function(){return N}});var n=r(57437),o=r(2265),a=r(33145),s=r(7409),i=r(27648),l=r(99376),c={src:"/_next/static/media/search.6bb726d6.svg",height:18,width:18,blurWidth:0,blurHeight:0},u={src:"/_next/static/media/search-white.f0640971.svg",height:18,width:18,blurWidth:0,blurHeight:0},d=r(34235),_=r(27427),h=r(8511),p=r(13261),m=r(55833),g=r(4339),f=r(8830),v=r(13001),b=r(67640),x=r(30987),w=r(31848),y=r(41260),j=r(22335),C=r(83370),S=r(68785),k=r.n(S);let N=()=>{let{isLocalSearch:e,sellerInfo:t,clearLocalSearch:r,setSearchQuery:S,searchQuery:N,setSearchResults:E,setIsSearching:L,activeSort:T}=(0,j.l)(),W=(0,l.usePathname)(),P=(0,l.useRouter)(),[I,B]=o.use
1State(""),A=(0,g.N)(I,m.$x),[F,R]=o.useState(!1),[H,D]=o.useState(!1),[M,Z]=o.useState([]),[G,O]=o.useState([]),[X,V]=o.useState([]),U=o.useRef(null),z=o.useRef(null),q=o.useRef(null),[J,K]=o.useState(!1),[Q,Y]=o.useState({}),$=o.useRef(0),ee=o.useRef(0),et=o.useRef(0),er=o.useRef(!1),en=o.useRef(null),eo=o.useRef(null),[ea,es]=o.useState(null);o.useEffect(()=>{e?(S(I),R(!1)):R(I.length>0),D(I.length>0)},[I,e,S]),o.useEffect(()=>{if(!e&&F)return(0,v.d)(),()=>{(0,v.p)()}},[e,F]),o.useEffect(()=>{if(B(""),R(!1),e){var n;let e=W.startsWith("/product/"),o=W.startsWith("/seller/"),a=null===(n=W.split("/seller/")[1])||void 0===n?void 0:n.split("/")[0];(e||!o||t&&a!==t.slug)&&r()}},[W,e,t,r]),o.useEffect(()=>{if(!A.length){Z([]),O([]),V([]),es(null),e&&(E([]),L(!1));return}es(null),el(A)},[A,e]);let ei=o.useRef(null);o.useEffect(()=>{if(e&&A.length>0){let e="".concat(A,"-").concat(T||"null","-").concat((null==t?void 0:t.id)||"null");ei.current!==e&&el(A)}},[T,e,A]),o.useEffect(()=>{let t=t=>{!q.current||q.current.contains(t.target)||(R(!1),e||B(""))},r=t=>{"Escape"!==t.key||(R(!1),e||B(""))};return F&&(document.addEventListener("mousedown",t),document.addEventListener("keydown",r)),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("keydown",r)}},[F,e]);let el=async r=>{if(r.trim().length<2){e&&L(!1);return}let n="".concat(r,"-").concat(e?T||"null":ea||"null","-").concat((null==t?void 0:t.id)||"null");if(ei.current!==n){ei.current=n;try{var o,a,i;e&&L(!0);let n=await p.F.getProducts({skip:"0",limit:"40",name:r,seller_id:e?null==t?void 0:t.id:void 0,sortBy:e?T||void 0:ea||void 0});null==z||null===(o=z.current)||void 0===o||o.scrollTo({top:0}),m.XK&&G.length<=0&&(null===(i=window)||void 0===i||null===(a=i.ym)||void 0===a||a.call(i,m.ap,"reachGoal","search_result")),Z(n.subCategories),O(n.products),e&&(E(n.products),L(!1)),n.sellers?V(n.sellers):V([])}catch(t){s.toast.error("ÐÑибка пÑи полÑÑении даннÑÑ
"),e&&L(!1)}finally{ei.current===n&&(ei.current=null)}}},ec=e=>{if(B(""),m.XK){var t,r,n,o,a,s,i;null===(r=window)||void 0===r||null===(t=r.dataLayer)||void 0===t||t.push({ecommerce:null}),null===(s=window)||void 0===s||null===(a=s.dataLayer)||void 0===a||a.push({event:"select_item",ecommerce:{items:[{item_name:e.name,item_id:e.number,affiliation:null!==(i=null==e?void 0:null===(o=e.seller_id)||void 0===o?void 0:null===(n=o.shop_details)||void 0===n?void 0:n.shop_name)&&void 0!==i?i:"УдаленнÑй магазин",price:e.price,item_category:e.category_id.name,item_category2:e.subCategory_id.name,index:1,quantity:1}]}})}},eu=e=>{B(""),r()},ed=o.useCallback(r=>{I.trim().length<2||(es(r),O([]),p.F.getProducts({skip:"0",limit:"24",name:I,seller_id:e?null==t?void 0:t.id:void 0,sortBy:e?T||void 0:r||void 0}).then(e=>{var t;null==z||null===(t=z.current)||void 0===t||t.scrollTo({top:0}),O(e.products)}).catch(()=>{s.toast.error("ÐÑибка пÑи полÑÑении даннÑÑ
")}))},[I,e,null==t?void 0:t.id,T]);o.useEffect(()=>{let t=()=>{e&&(B(""),S(""))};return window.addEventListener("clearLocalSearch",t),()=>{window.removeEventListener("clearLocalSearch",t)}},[e,S]);let e_=()=>{if(!e&&I.trim()){let e=encodeURIComponent(I.trim());if(m.XK){var t,r;null===(r=window)||void 0===r||null===(t=r.ym)||void 0===t||t.call(r,m.ap,"reachGoal","search_page_open")}P.push("/catalog/".concat(e)),B(""),R(!1)}},eh=o.useCallback(()=>{if(window.innerWidth<1300||er.current)return;er.current=!0,en.current&&(clearTimeout(en.current),en.current=null),eo.current&&cancelAnimationFrame(eo.current);let e=q.current;e&&($.current=e.offsetLeft,ee.current=e.offsetWidth,et.current=e.offsetTop,K(!0),document.documentElement.classList.add("search-expanded"),window.dispatchEvent(new Event("searchExpand")),Y({position:"absolute",left:"".concat($.current,"px"),top:"".concat(et.current,"px"),width:"".concat(ee.current,"px"),transition:"none",zIndex:100}),eo.current=requestAnimationFrame(()=>{eo.current=requestAnimationFrame(()=>{Y({position:"absolute",left:"0",top:"".concat(et.current,"px"),width:"100%",transition:"left 0.2s ease, width 0.2s ease",zIndex:100})})}))},[]),ep=o.useCallback(()=>
1{if(er.current){if(er.current=!1,eo.current&&(cancelAnimationFrame(eo.current),eo.current=null),window.innerWidth<1300){K(!1),Y({});return}document.documentElement.classList.remove("search-expanded"),window.dispatchEvent(new Event("searchCollapse")),Y({position:"absolute",left:"".concat($.current,"px"),top:"".concat(et.current,"px"),width:"".concat(ee.current,"px"),transition:"left 0.2s ease, width 0.2s ease",zIndex:100}),en.current=setTimeout(()=>{K(!1),Y({})},210)}},[]),em=o.useCallback(()=>{eh()},[eh]),eg=o.useCallback(e=>{var t;(null===(t=q.current)||void 0===t||!t.contains(e.relatedTarget))&&(I||ep())},[ep,I]);return o.useEffect(()=>{if(!J)return;let e=e=>{var t;"Escape"===e.key&&(R(!1),B(""),ep(),null===(t=U.current)||void 0===t||t.blur())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[J,ep]),o.useEffect(()=>{if(!I&&er.current){var e;(null===(e=q.current)||void 0===e?void 0:e.contains(document.activeElement))||ep()}},[I,ep]),(0,n.jsxs)(n.Fragment,{children:[!e&&F&&(0,n.jsx)("div",{className:k().searchOverlay,onClick:()=>{R(!1),B("")}}),J&&(0,n.jsx)("div",{"aria-hidden":"true",style:{flex:"0 0 ".concat(ee.current,"px")}}),(0,n.jsxs)("figure",{className:"".concat(k().searchWrapper," ").concat(H?k().mobileSearchActive:""),ref:q,onFocus:em,onBlur:eg,style:Q,children:[(0,n.jsxs)("div",{className:k().searchInputWrapper,children:[H&&(0,n.jsx)("button",{className:k().mobileBackButton,onClick:()=>{B(""),R(!1),D(!1),e&&S("")},"aria-label":"Ðазад",children:(0,n.jsx)(a.default,{src:h.Z,alt:"Ðазад",width:20,height:20})}),(0,n.jsxs)("div",{className:k().searchInputContainer,children:[e&&t?(0,n.jsxs)("div",{className:k().localSearchTag,children:[(0,n.jsx)("span",{className:k().localSearchText,children:t.name}),(0,n.jsx)("button",{onClick:r,className:k().localSearchClose,"aria-label":"ÐÑклÑÑиÑÑ Ð¿Ð¾Ð¸Ñк по магазинÑ",children:(0,n.jsx)(a.default,{src:_.Z,alt:""})})]}):(0,n.jsx)("div",{className:k().searchIconWrapper,children:(0,n.jsx)(a.default,{src:c,alt:"",className:k().searchIcon})}),(0,n.jsx)("input",{type:"text",ref:U,value:I,onChange:e=>{B(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&e_()},onFocus:()=>{if(m.XK){var e,t;null===(t=window)||void 0===t||null===(e=t.ym)||void 0===e||e.call(t,m.ap,"reachGoal","search_open")}},placeholder:e?"ÐÑкаÑÑ Ð² магазине":"ÐÑкаÑÑ Ð½Ð° HorseSmart ...",className:k().searchInput})]}),(0,n.jsx)("button",{className:k().searchButton,onClick:()=>{if(!e&&I.trim())e_();else{var t;null==U||null===(t=U.current)||void 0===t||t.focus()}},"aria-label":"ÐоиÑк",children:(0,n.jsx)(a.default,{src:u,alt:""})})]}),!e&&(0,n.jsxs)("aside",{ref:z,className:k().modal,style:{display:F?"block":"none"},children:[!!X.length&&(0,n.jsx)("div",{className:k().sellersSection,children:(0,n.jsx)("ul",{children:X.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)(i.default,{href:"/seller/".concat(e.slug),className:k().seller,onClick:()=>eu(e),children:[(0,n.jsxs)("div",{className:k().sellerContent,children:[(0,n.jsx)("div",{className:k().sellerLogoWrapper,children:(0,n.jsx)(a.default,{src:"".concat(x.eG).concat(e.shop_details.logo),alt:e.shop_details.shop_name,fill:!0,style:{objectFit:"cover"}})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{className:k().sellerName,children:e.shop_details.shop_name}),(0,n.jsx)("p",{className:k().sellerType,children:"Ðагазин"})]})]}),(0,n.jsx)(a.default,{src:d.Z,className:k().sellerIcon,alt:""})]})},e._id))})}),!!M.length&&(0,n.jsx)("ul",{children:M.map(e=>{var t;return(0,n.jsx)("li",{children:(0,n.jsxs)(i.default,{href:(0,w.I)(e.slug),className:k().subCategory,onClick:()=>B(""),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{className:k().subCategoryName,children:e.name}),(0,n.jsx)("p",{className:k().subCategoryCatName,children:(null===(t=e.category_id)||void 0===t?void 0:t.name)||"ÐаÑегоÑиÑ"})]}),(0,n.jsx)(a.default,{src:d.Z,className:k().subCategoryIcon,alt:""})]})},e._id)})}),!!G.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:k().sortDropdown,children:(0,n.jsx)(y.Y,{activeSort:ea,onChange:ed})}),(0,n.jsx)("ul",{className:k().productsList,children:G.map((e,t)=>(0,n.jsx)("li",{className:k().product,children:(0,n.jsxs)(i.default,{href:(0,b.r)(e.slug),onClick:()=>ec(e),children:[(0,n.jsxs)("div",{className:k().productPhotoWrapper,children:[(0,n.jsx)(a.default,{src:"".concat(x.eG).concat(e.photo[0]),overrideSrc:"".concat(x.eG).concat(e.photo[0]),alt:e.name,fill:!0,priority:!0,sizes:"(max-width: 1120px) 33.3vw, (max-width: 950px) 50vw, (max-width: 744px) 33.3vw, (max-width: 540px) 50vw, (max-width: 380px) 100v
1w, 25vw",style:{objectFit:"cover"}}),!!e.event&&(0,n.jsx)(C.Z,{event:e.event,className:k().eventBadge})]}),(0,n.jsx)("strong",{className:k().productPrice,children:(0,f.a)(e.price)}),(0,n.jsx)("p",{className:k().productName,children:e.name})]})},"".concat(e._id,"?").concat(t)))})]})]})]})]})}},5392:function(e,t,r){"use strict";r.d(t,{MobileTabs:function(){return j}});var n=r(57437),o=r(2265),a=r(99376),s=r(33145),i=r(69417),l=r(18525),c=r(57402),u=r(1526),d=r(55833),_=r(9840),h=r(50118),p=r(90587),m={src:"/_next/static/media/categories-tab.fcffbb03.svg",height:24,width:26,blurWidth:0,blurHeight:0},g=r(95718),f={src:"/_next/static/media/cart-tab.5139a705.svg",height:24,width:26,blurWidth:0,blurHeight:0},v={src:"/_next/static/media/home-tab.c4fb671a.svg",height:24,width:26,blurWidth:0,blurHeight:0},b=r(48173),x=r(81569),w=r(84083),y=r.n(w);let j=e=>{let{onTinderNext:t}=e,r=(0,a.useRouter)(),w=(0,a.usePathname)()||"",j=(0,i.TL)(),C=(0,i.CG)(u.LL.selectIsAuth),S=(0,i.CG)(u.LL.selectIsAuthInitialized),k=(0,h.Z3)(),N=(0,h.Yg)(),E=(0,p.E)(),[L,T]=(0,o.useState)(!1),[W,P]=(0,o.useState)(null),I=(0,i.CG)(c.z4),B=(0,i.CG)(e=>e.cart.status),A=()=>{window.dispatchEvent(new Event("closeAuthModal"))},F=e=>{if(S){if(A(),C)r.push(e);else{let t=w.startsWith("/product/");"/profile/orders"===e&&t?P(null):P(e),T(!0)}}};(0,o.useEffect)(()=>{let e=()=>{T(!1),P(null)};return window.addEventListener("closeAuthModal",e),()=>{window.removeEventListener("closeAuthModal",e)}},[]),(0,o.useEffect)(()=>{C&&(W&&(r.push(W),P(null)),T(!1))},[C,W,r]),(0,o.useEffect)(()=>{"idle"===B&&0===I&&j((0,l.dv)())},[j,B,I]);let R=e=>"/"===e?"/"===w:"/cart"===e?"/cart"===w:"/horses"===e?w.startsWith("/horses"):"/profile"===e?w.startsWith("/profile"):"/categories"===e?w.startsWith("/categories"):"/profile/bookings"===e?w.startsWith("/profile/bookings"):"/ruspoloclub"===e&&w.startsWith("/ruspoloclub"),H=[{icon:v,text:"ÐлавнаÑ",route:"/",onClick:()=>{A(),r.push("/")}},{icon:b.Z,text:"ÐоÑади",route:"/horses",onClick:()=>{A(),r.push("/horses")}},{icon:m,text:"ÐаÑалог",route:"/categories",onClick:()=>{A(),r.push("/categories")}},{icon:f,text:"ÐоÑзина",route:"/cart",onClick:()=>{A(),r.push("/cart")},badge:I>0?I:null},{icon:g.Z,text:"ÐÑоÑилÑ",route:"/profile",onClick:()=>F("/profile/orders")}],D=[{icon:b.Z,text:"ÐлавнаÑ",route:N,onClick:()=>{A(),r.push(N)}},{icon:g.Z,text:"ÐапиÑи",route:"/profile/bookings",onClick:()=>F("/profile/bookings")},{icon:x.Z,text:"ÐаÑкеÑ",route:k,onClick:()=>{A(),r.push(k)}}],M=w===d.Wx;return M?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"".concat(y().blurBackdrop," ").concat(M?y().pos:""),"aria-hidden":"true"}),(0,n.jsx)("div",{className:"".concat(y().container," ").concat(M?y().pos:""),children:(E?D:H).map((e,t)=>(0,n.jsxs)("div",{className:"".concat(y().tab," ").concat(R(e.route)?y().active:""," ").concat(M?y().locked:""),onClick:M?void 0:e.onClick,children:[(0,n.jsxs)("div",{className:y().iconWrapper,children:[(0,n.jsx)(s.default,{src:e.icon,alt:e.text,width:24,height:24,priority:!0}),e.badge&&(0,n.jsx)("div",{className:y().badge,children:e.badge})]}),(0,n.jsx)("span",{className:y().text,children:e.text})]},t))}),L&&(0,n.jsx)(_.Z,{onClose:()=>{T(!1)}})]})}},21742:function(e,t,r){"use strict";r.d(t,{C6:function(){return a},NK:function(){return i},Ph:function(){return o},XC:function(){return l},uo:function(){return s}});var n=r(30987);let o=e=>{var t;return(null==e?void 0:null===(t=e.shop_details)||void 0===t?void 0:t.shop_name)||"ÐÑодавеÑ"},a=e=>{let t=Array.isArray(null==e?void 0:e.photo)?null==e?void 0:e.photo[0]:null==e?void 0:e.photo;return t?/^https?:\/\//.test(t)?t:"".concat(n.eG).concat(t):""},s=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(null==e?void 0:e.last_product)?e.last_product:(null===(t=[...r].reverse().find(e=>e.product_id))||void 0===t?void 0:t.product_id)||null},i=e=>e?new Date(e).toLocaleDateString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"}):"",l=e=>e?new Date(e).toLocaleTimeString("ru-RU",{hour:"2-digit",minute:"2-digit"}):""},83370:function(e,t,r){"use strict";var n=r(57437),o=r(2265),a=r(36760),s=r.n(a),i=r(49081),l=r.n(i);let c=["Ðалопом к вÑгоде"],u=(0,o.memo)(e=>{var t;let{event:r,className:o}=e;return c.includes(r.name)?null:(0,n.jsxs)("div",{className:s()(l().wrapper,o),style:{background:1===r.colors.length?r.colors[0]:"linear-gradient(".concat(r.colors.join(", "),")")},children:[r.icon&&(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:r.icon}}),(0,n.jsx)("span",{className:l().text,style:{color:null!==(t=null==r?void 0:r.textColor)&&void 0!==t?t:"#ffffff"},children:r.name})]})});u.displayName="EventBadge",t.Z=u},88675:function(e,t,r){"use strict";r.d(t,{DisabledButton:function(){return s}});var n=r(57437);r(2265);var o=r(87474),a=r.n(o);let s=e=>{let{text:t,className:r="",onClick:o}=e;return(0,n.jsx)("button",{className:"".concat(a().disabledButton," ").concat(r),disabled:!0,onClick:o,children:t})}},76929:function(e,t,r){"use strict";r.d(t,{u:function(){return s}});var n=r(57437);r(2265);var o=r(29150),a=r.n(o);let s=e=>{let{text:t="ÐагÑÑзка",className:r}=e;return(0,n.jsxs)("div",{className:"".concat(a().wrapper," ").concat(null!=r?r:""),children:[t&&(0,n.jsx)("span",{className:a().text,children:t}),(0,n.jsxs)("div",{className:a().dots,"aria-label":t,role:"status",children:[(0,n.jsx)("span",{}),(0,n.jsx)("span",{}),(0,n.jsx)("span",{})]})]})}},72666:function(e,t,r){"use strict";r.d(t,{ListLoader:function(){return l}});var n=r(57437);r(2265);var o=r(36760),a=r.n(o),s=r(27134),i=r.n(s);let l=e=>{let{className:t,withLabel:r=!1,label:o="ÐагÑÑжаем ÑоваÑÑ"}=e;return(0,n.jsxs)("div",{className:a()(i().wrapper,t),children:[r&&(0,n.jsx)("span",{className:i().label,children:o}),(0,n.jsxs)("div",{className:i().dots,children:[(0,n.jsx)("span",{className:i().dot}),(0,n.jsx)("span",{className:i().dot}),(0,n.jsx)("span",{className:i().dot})]})]})}},40473:function(e,t,r){"use strict";r.d(t,{dx:function(){return s},kL:function(){return l},vi:function(){return i}});var n=r(57437);r(2265);var o=r(38978),a=r(5881);let s="open-phone-verification-modal",i=e=>{window.dispatchEvent(new CustomEvent(s,{detail:e}))},l=e=>{let{isOpen:t,onClose:r,...s}=e;return t?(0,n.jsx)(o.Z,{onClose:r,closeOnOverlayClick:!1,children:(0,n.jsx)(a.C,{onClose:r,...s})}):null}},41700:function(e,t,r){"use strict";r.d(t,{ScrollToTop:function(){return _}});
1var n=r(57437),o=r(2265),a=r(33145),s=r(99376),i={src:"/_next/static/media/page-up.37a2aa49.svg",height:24,width:24,blurWidth:0,blurHeight:0},l=r(55833),c=r(98526),u=r(8266),d=r.n(u);let _=()=>{let[e,t]=o.useState(!1),r=(0,c.hB)(),u=(0,s.usePathname)()||"";return(o.useEffect(()=>{let e=()=>{let e=document.documentElement.scrollTop,r=window.innerHeight;t(e/(document.documentElement.scrollHeight-r)>.33)};return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),u===l.Wx)?null:(0,n.jsx)("button",{className:"".concat(d().scrollToTopButton," ").concat(e?d().visible:""," ").concat(r?d().hidden:""),onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},"aria-label":"ÐавеÑÑ
",children:(0,n.jsx)(a.default,{src:i,alt:"ÐавеÑÑ
"})})}},41260:function(e,t,r){"use strict";r.d(t,{Y:function(){return m}});var n=r(57437),o=r(2265),a=r(33145),s=r(18828),i={src:"/_next/static/media/arrow-dropdown.b13efc25.svg",height:17,width:16,blurWidth:0,blurHeight:0},l={src:"/_next/static/media/arrows-sort.f2db05a9.svg",height:18,width:18,blurWidth:0,blurHeight:0},c=r(88040),u=r(47900),d=r.n(u);let _=e=>{let{checked:t,onChange:r,label:o,className:a=""}=e;return(0,n.jsxs)("div",{className:"".concat(d().checkboxWrapper," ").concat(a),onClick:r,children:[(0,n.jsx)("div",{className:"".concat(d().checkbox," ").concat(t?d().checkboxSelected:""),children:t&&(0,n.jsx)("div",{className:d().innerCircle})}),o&&(0,n.jsx)("span",{className:d().label,children:o})]})};var h=r(36188),p=r.n(h);let m=e=>{let{activeSort:t,onChange:r,isMobileMode:u=!1}=e,[d,h]=(0,o.useState)(!1),m=(0,o.useRef)(null),g=Object.values(s.XG).map(e=>({id:e,label:e}));(0,o.useEffect)(()=>{let e=e=>{m.current&&!m.current.contains(e.target)&&h(!1)};return d&&!u&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[d,u]);let f=e=>{r(t===e?null:e),h(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:p().container,ref:m,children:[(0,n.jsxs)("button",{className:"".concat(p().button," ").concat(u?p().mobileMode:""),onClick:()=>h(!d),children:[(0,n.jsxs)("div",{className:p().spanWrapper,children:[(0,n.jsx)(a.default,{src:l,alt:"Filter",width:18,height:18}),(0,n.jsx)("span",{className:p().buttonTitle,children:null!=t?t:"СоÑÑиÑовка"})]}),(0,n.jsx)(a.default,{src:i,alt:"Arrow",width:16,height:16,className:"".concat(p().arrow," ").concat(d?p().arrowRotated:"")})]}),d&&!u&&(0,n.jsx)("div",{className:p().dropdown,children:g.map(e=>(0,n.jsx)("div",{className:p().option,children:(0,n.jsx)(_,{checked:t===e.id,onChange:()=>f(e.id),label:e.label})},e.id))})]}),d&&u&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:p().overlay,onClick:()=>h(!1)}),(0,n.jsxs)("div",{className:p().mobileModal,children:[(0,n.jsxs)("div",{className:p().mobileHeader,children:[(0,n.jsx)("p",{className:p().mobileTitle,children:"ÐоказаÑÑ ÑнаÑала"}),(0,n.jsx)("button",{className:p().closeButton,onClick:()=>h(!1),children:(0,n.jsx)(a.default,{src:c.Z,alt:"close",width:18,height:18})})]}),(0,n.jsx)("div",{className:p().mobileContent,children:g.map(e=>(0,n.jsx)("div",{className:p().mobileOption,children:(0,n.jsx)(_,{checked:t===e.id,onChange:()=>f(e.id),label:e.label})},e.id))})]})]})]})}},89494:function(e,t,r){"use strict";r.d(t,{SupportButton:function(){return c}});var n=r(57437),o=r(33145),a=r(92691),s=r(36303),i=r(59902),l=r.n(i);let c=e=>{let{className:t="",variant:r="default"}=e,{openSupport:i}=(0,s.y)();return(0,n.jsxs)("button",{onClick:i,className:"".concat(l().supportButton," ").concat(l()[r]," ").concat(t),children:[(0,n.jsx)(o.default,{src:a.Z,alt:"telegram",className:l().icon}),(0,n.jsx)("span",{className:l().text,children:"ТеÑ
ниÑеÑÐºÐ°Ñ Ð¿Ð¾Ð´Ð´ÐµÑжка"})]})}},4072:function(e,t,r){"use strict";r.d(t,{SupportWidget:function(){return Z}});var n=r(57437),o=r(2265),a=r(33145),s=r(99376),i={src:"/_next/static/media/chat-bubble.6edc7a6c.svg",height:24,width:24,blurWidth:0,blurHeight:0},l=r(55833),c=r(98526),u=r(93575),d=r(1526),_=r(69417),h=r(27648),p=r(97502),m=r(82415),g=r(80022),f=r(21742),v=r(83085),b=r(96762),x=r(76929),w=r(57702),y=r(6729),j=r(39338),C=r(88604),S=r(45137),k=r.n(S);let N=(e,t,r,n)=>({name:r&&!e?"УкажиÑе имÑ":null,email:t?(0,j.o)(t).error:r?"УкажиÑе поÑÑÑ":null,consent:n?null:"ÐÑжно ÑоглаÑие на обÑабоÑÐºÑ Ð´Ð°Ð½Ð½ÑÑ
"}),E=e=>{let{isOpen:t,isGuest:r,chat:s,messages:i,isLoading:l,onSend:c,onClose:u}
1=e,d=(0,_.CG)(C.py.selectData),j=d?[d.name,d.surname].filter(Boolean).join(" "):"",S=(null==d?void 0:d.email)||"",[E,L]=(0,o.useState)(""),[T,W]=(0,o.useState)(""),[P,I]=(0,o.useState)(!1),[B,A]=(0,o.useState)({}),[F,R]=(0,o.useState)(""),[H,D]=(0,o.useState)(!1),M=!s;(0,o.useEffect)(()=>{L(r?"":j),W(r?"":S),A({})},[r,j,S]);let Z=(0,o.useCallback)(e=>"USER"===e.sender_type,[]),{containerRef:G,newItemsCount:O,handleScroll:X,scrollToLatestItem:V}=(0,y.O)({items:i,resetKey:(null==s?void 0:s._id)||null,isOwnItem:Z});(0,o.useEffect)(()=>{t&&V("auto")},[t,V]),(0,o.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"===e.key&&u()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,u]);let U=async()=>{let e;let t=F.trim();if(!t||H)return;if(M){let t=E.trim(),n=T.trim(),o=N(t,n,r,P);if(A(o),o.name||o.email||o.consent)return;e={name:t||void 0,email:n||void 0}}D(!0);let n=await c(t,e);D(!1),n&&R("")};return(0,n.jsxs)("section",{className:"".concat(k().panel," ").concat(t?k().panelOpen:""),role:"dialog","aria-label":"Ð§Ð°Ñ Ð¿Ð¾Ð´Ð´ÐµÑжки","aria-hidden":!t,children:[(0,n.jsxs)("header",{className:k().header,children:[(0,n.jsxs)("div",{className:k().headerText,children:[(0,n.jsx)("span",{className:k().title,children:"Ðоманда поддеÑжки"}),(0,n.jsx)("span",{className:k().subtitle,children:"Ðоможем Ñ Ð·Ð°ÐºÐ°Ð·Ð¾Ð¼, оплаÑой и доÑÑавкой"})]}),(0,n.jsx)("button",{type:"button",className:k().close,onClick:u,"aria-label":"ÐакÑÑÑÑ",children:(0,n.jsx)(a.default,{src:g.Z,alt:"",width:14,height:14})})]}),l?(0,n.jsx)("div",{className:k().loader,children:(0,n.jsx)(x.u,{})}):M?(0,n.jsxs)("div",{className:k().intro,children:[(0,n.jsx)("p",{className:k().introText,children:r?"ÐдÑавÑÑвÑйÑе! ÐапиÑиÑе Ð²Ð°Ñ Ð²Ð¾Ð¿ÑÐ¾Ñ â оÑвеÑим здеÑÑ, а еÑли закÑоеÑе ÑайÑ, пÑиÑлÑм оÑÐ²ÐµÑ Ð½Ð° поÑÑÑ.":"ÐдÑавÑÑвÑйÑе! ÐапиÑиÑе Ð²Ð°Ñ Ð²Ð¾Ð¿ÑÐ¾Ñ â оÑвеÑим здеÑÑ."}),(0,n.jsxs)("label",{className:k().field,children:[(0,n.jsx)("span",{className:k().label,children:"ÐмÑ"}),(0,n.jsx)("input",{className:"".concat(k().input," ").concat(B.name?k().inputError:""),value:E,onChange:e=>{L(e.target.value),A(e=>({...e,name:null}))},maxLength:100,autoComplete:"name",disabled:H}),B.name&&(0,n.jsx)("span",{className:k().error,children:B.name})]}),(0,n.jsxs)("label",{className:k().field,children:[(0,n.jsx)("span",{className:k().label,children:"Ðл. поÑÑа"}),(0,n.jsx)("input",{className:"".concat(k().input," ").concat(B.email?k().inputError:""),type:"email",inputMode:"email",value:T,onChange:e=>{W(e.target.value),A(e=>({...e,email:null}))},maxLength:254,autoComplete:"email",disabled:H}),B.email&&(0,n.jsx)("span",{className:k().error,children:B.email})]}),(0,n.jsxs)("div",{className:k().field,children:[(0,n.jsx)(b.X,{id:"support-personal-data-consent",value:P,onChange:()=>{I(!P),A(e=>({...e,consent:null}))},showError:!!B.consent,classNameWrapper:k().consent,label:(0,n.jsxs)(n.Fragment,{children:["Я даÑ"," ",(0,n.jsx)(h.default,{href:w.rM,target:"_blank",rel:"noopener noreferrer",children:"ÑоглаÑие на обÑабоÑÐºÑ Ð¼Ð¾Ð¸Ñ
пеÑÑоналÑнÑÑ
даннÑÑ
"})," ","на ÑÑловиÑÑ
"," ",(0,n.jsx)(h.default,{href:w.hO,target:"_blank",rel:"noopener noreferrer",children:"ÐолиÑики конÑиденÑиалÑноÑÑи"})]})}),B.consent&&(0,n.jsx)("span",{className:k().error,children:B.consent})]})]}):(0,n.jsx)("div",{className:k().messages,ref:G,onScroll:X,children:i.map(e=>(0,n.jsx)("div",{className:"".concat(k().messageRow," ").concat(Z(e)?k().own:""),children:(0,n.jsxs)("div",{className:k().messageBubble,children:[(0,n.jsx)("p",{className:k().messageText,children:e.text}),(0,n.jsx)("span",{className:k().messageTime,children:(0,f.XC)(e.createdAt)})]})},e._id))}),!M&&O>0&&(0,n.jsxs)("button",{type:"button",className:k().scrollToBottomButton,onClick:()=>V(),"aria-label":"ÐеÑейÑи к новÑм ÑообÑениÑм",children:[(0,n.jsx)(a.default,{src:p.Z,alt:"",width:18,height:18}),(0,n.jsx)("span",{className:k().scrollToBottomBadge,children:O>99?"99+":O})]}),!l&&(0,n.jsxs)("footer",{className:k().footer,children:[(0,n.jsx)("textarea",{value:F,onChange:e=>R(e.target.value),onKeyDownCapture:e=>{"Enter"!==e.key||e.nativeEvent.isComposing||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||(e.preventDefault(),U())},maxLength:3e3,className:k().textarea,placeholder:M?"ÐÐ°Ñ Ð²Ð¾Ð¿ÑоÑ":"СообÑение",disabled:H}),(0,n.jsx)(v.Z,{className:k().sendButton,onClick:U,disabled:!F.trim()||H,title:"ÐÑпÑавиÑÑ",children:(0,n.jsx)(a.default,{src:m.Z,alt:"",width:24,height:24})})]})]})},L=()=>{let[e,t]=o.useState(!1);return o.useEffect(()=>{let e=window.scrollY,r=e,n=null,o=!1,a=e=>{o=e,t(e)},s=()=>{let t=window.scrollY;if(window.innerWidth>767){o&&a(!1),e=t;return}let s=window.innerHeight;t>e?("down"!==n&&(n="down",r=e),!o&&t-r>.5*s&&a(!0)):t<e&&("up"!==n&&(n="up",r=e),o&&(r-t>2*s||t<=0)&&a(!1)),e=t};return window.addEventListener("scroll",s,{passive:!0}),()=>window.removeEventListener("scroll",s)},[]),e};
1var T=r(7409),W=r(36172),P=r(16717),I=r(97271),B=r(6007);let A="SUPPORT_GUEST_CHAT",F=e=>{try{return localStorage.getItem(e)}catch(e){return null}},R=e=>{try{e?localStorage.setItem(A,"1"):localStorage.removeItem(A)}catch(e){}},H=()=>{let[e,t]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{let e=()=>t("visible"===document.visibilityState);return e(),document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[]),e},D=e=>{let{token:t,isReady:r,isOpen:n}=e,a=(0,_.TL)(),s=!t,i=H(),[d,h]=(0,o.useState)(null),[p,m]=(0,o.useState)(!1),[g,f]=(0,o.useState)([]),[v,b]=(0,o.useState)(!1),x=(0,o.useRef)(n),w=(0,o.useRef)(null),y=(null==d?void 0:d._id)||null;(0,o.useEffect)(()=>{x.current=n},[n]),(0,o.useEffect)(()=>{w.current=y},[y]);let j=(0,o.useCallback)(e=>{f(t=>t.some(t=>t._id===e._id)?t:[...t,e])},[]),C=(0,o.useCallback)(async e=>{let{data:t}=s?await W.x.getGuestSupportMessages():await W.x.getMessages(e);f(t),b(!0)},[s]);(0,o.useEffect)(()=>{if(!r)return;let e=!0;return h(null),f([]),b(!1),m(!1),(async()=>{try{if(s&&!F(A))return;let{data:t}=s?await W.x.getGuestSupportChat():await W.x.getSupportChat();if(!e)return;h(t.chat),s&&R(!!t.chat)}catch(e){}finally{e&&m(!0)}})(),()=>{e=!1}},[s,r]),(0,o.useEffect)(()=>{n&&y&&!v&&C(y).catch(()=>T.toast.error("Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð¿ÐµÑепиÑкÑ"))},[v,y,n,C]);let S=y||(n?"draft":null);(0,o.useEffect)(()=>{if(!r||!S)return;let e=s?F(l.Pg):null;if(s&&!e)return;let n=t?(0,P.mk)(t):(0,P.NP)(e);return n.on("connect",()=>{t&&w.current&&n.emit("subscribe_to_chat",{chatId:w.current})}),n.on("chat_list_updated",e=>{var t;(null===(t=e.chat)||void 0===t?void 0:t.type)==="SUPPORT"&&h(t=>({...t,...e.chat}))}),n.on("chat_message_created",e=>{if(e.chatId!==w.current)return;j(e.message);let t="SUPPORT"===e.message.sender_type&&!e.message.is_auto_reply,r=x.current&&"visible"===document.visibilityState;s&&t&&!r&&(0,u.nl)({title:"Ðоманда поддеÑжки",body:e.message.text,tag:"horsesmart-support-widget",url:c.QC})}),()=>{n.disconnect()}},[j,s,r,S,t]);let k=(null==d?void 0:d.unread_for_user)||0;return(0,o.useEffect)(()=>{n&&i&&y&&k&&(h(e=>e?{...e,unread_for_user:0}:e),(s?W.x.markGuestSupportRead():W.x.markRead(y)).then(()=>{s||a((0,B._V)())}).catch(()=>void 0))},[y,a,s,n,i,k]),{chat:d,messages:g,unreadCount:k,isChatResolved:p,isMessagesLoading:!!(n&&y&&!v),sendMessage:(0,o.useCallback)(async(e,t)=>{let r={text:e,client:(0,I.R)(),contact:t};try{let{data:e}=s?await W.x.sendGuestSupportMessage(r):await W.x.sendSupportMessage(r);return j(e.message),h(t=>({...t,...e.chat})),s&&R(!0),!0}catch(t){var n;let e=null==t?void 0:null===(n=t.response)||void 0===n?void 0:n.status;return T.toast.error(429===e?"СлиÑком много ÑообÑений. ÐопÑобÑйÑе позже":"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ ÑообÑение"),!1}},[j,s])}},M=e=>{try{return"open"===new URL(e,window.location.origin).searchParams.get(c.Mv)}catch(e){return!1}},Z=()=>{let e=(0,s.usePathname)(),t=(0,_.CG)(d.LL.selectToken),r=(0,_.CG)(d.LL.selectIsAuthInitialized),[h,p]=(0,o.useState)(!1),m=L(),g=D({token:t,isReady:r,isOpen:h}),f=(0,o.useCallback)(()=>{(0,u.eV)(),(0,u.rw)()&&(0,u.od)(),p(!0)},[]),v=(0,o.useCallback)(()=>p(!1),[]);return((0,c.mq)(f),(0,o.useEffect)(()=>{(0,c.MC)(h)},[h]),(0,o.useEffect)(()=>{if(!M(window.location.href))return;let e=new URL(window.location.href);e.searchParams.delete(c.Mv),window.history.replaceState(window.history.state,"","".concat(e.pathname).concat(e.search).concat(e.hash)),p(!0)},[]),(0,o.useEffect)(()=>{if(!(0,u.rw)()||!navigator.serviceWorker)return;let e=e=>{var t,r;(null===(t=e.data)||void 0===t?void 0:t.type)===u.jg&&"string"==typeof(null===(r=e.data)||void 0===r?void 0:r.url)&&M(e.data.url)&&p(!0)};return navigator.serviceWorker.addEventListener("message",e),()=>navigator.serviceWorker.removeEventListener("message",e)},[]),e===l.Wx)?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{type:"button",className:"".concat(k().button," ").concat(h?k().buttonHidden:""," ").concat(m?k().buttonScrollHidden:""," ").concat("/horses"===e?k().buttonRouteHidden:""),onClick:f,"aria-label":"ÐапиÑаÑÑ Ð² поддеÑжкÑ",children:[(0,n.jsx)(a.default,{src:i,alt:""}),g.unreadCount>0&&(0,n.jsx)("span",{className:k().badge,children:g.unreadCount>99?"99+":g.unreadCount})]}),(0,n.jsx)(E,{isOpen:h,isGuest:!t,chat:g.chat,messages:g.messages,isLoading:!g.isChatResolved||g.isMessagesLoading&&!g.messages.length,onSend:g.sendMessage,onClose:v})]})}},22335:function(e,t,r){"use strict";r.d(t,{l:function(){return i},w:function(){return s}});var n=r(57437),o=r(2265);let a=(0,o.createContext)(void 0),s=e=>{let{children:t}=e,[r,s]=(0,o.useState)(!1),[i,l]=(0,o.useState)(null),[c,u]=(0,o.useState)(""),[d,_]=(0,o.useState)([]),[h,p]=(0,o.useState)(!1),[m,g]=(0,o.useState)(null),f=(0,o.useCallback)(e=>{s(!0),l(e)},[]),v=(0,o.useCallback)(()=>{s(!1),l(null),u(""),_([]),p(!1),g(null)},[]),b=(0,o.useCallback)(()=>{s(!1),l(null),_([]),p(!1),g(null)},[]),x=(0,o.useCallback)(e=>{u(e)},[]),w=(0,o.useCallback)(e=>{_(e)},[]),y=(0,o.useCallback)(e=>{p(e)},[]),j=(0,o.useCallback)(e=>{g(e)},[]),C=(0,o.useMemo)(()=>({isLocalSearch:r,sellerInfo:i,searchQuery:c,searchResults:d,isSearching:h,activeSort:m,setLocalSearch:f,clearLocalSearch:v,clearLocalSearchWithoutQuery:b,setSearchQuery:x,setSearchResults:w,setIsSearching:y,setActiveSort:j}),[r,i,c,d,h,m,f,v,b,x,w,y,j]);return(0,n.jsx)(a.Provider,{value:C,children:t})},i=()=>{let e=(0,o.useContext)(a);if(void 0===e)throw Error("useLocalSearch должен иÑполÑзоваÑÑÑÑ Ð²Ð½ÑÑÑи LocalSearchProvider");return e}},74574:function(e,t,r){"use strict";var n,o,a,s,i,l;r.d(t,{A8:function(){return o},J4:function(){return n}}),(s=n||(n={})).WEB="WEB",s.APP="APP",(i=o||(o={})).DRAFT="DRAFT",i.MODERATION="MODERATION",i.PUBLISHED="PUBLISHED",i.REJECTED="REJECTED",i.ARCHIVED="ARCHIVED",(l=a||(a={})).HORSE="HORSE",l.SERVICE="SERVICE"},6729:function(e,t,r){"use strict";r.d(t,{O:function(){return o}});var n=r(2265);let o=e=>{let{items:t,resetKey:r,isOwnItem:o,bottomThreshold:a=48}=e,s=(0,n.useRef)(null),i=(0,n.useRef)(!0),l=(0,n.useRef)(0),c=(0,n.useRef)(t.length),[u,d]=(0,n.use
1State)(0);c.current=t.length;let _=(0,n.useCallback)(()=>{i.current=!0,l.current=0,d(0)},[]),h=(0,n.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"smooth",t=()=>{let t=s.current;t&&(t.scrollTo({top:t.scrollHeight,behavior:e}),i.current=!0,d(0))};requestAnimationFrame(()=>{requestAnimationFrame(t)})},[]);(0,n.useEffect)(()=>{_(),c.current&&h("auto")},[r,_,h]),(0,n.useEffect)(()=>{let e=l.current;if(l.current=t.length,!t.length){d(0);return}let r=t.length-e,n=t[t.length-1];if(0===e||i.current||o(n)){h(0===e?"auto":"smooth");return}r>0&&d(e=>e+r)},[t,o,h]);let p=(0,n.useCallback)(()=>{let e=s.current;if(!e)return;let t=e.scrollHeight-e.clientHeight-e.scrollTop<=a;i.current=t,t&&d(0)},[a]);return{containerRef:s,newItemsCount:u,handleScroll:p,resetScrollState:_,scrollToLatestItem:h}}},4339:function(e,t,r){"use strict";r.d(t,{N:function(){return a}});var n=r(2265),o=r(55833);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.$x,[r,a]=(0,n.useState)(e);return(0,n.useEffect)(()=>{let r=setTimeout(()=>{a(e)},t);return()=>{clearTimeout(r)}},[e]),r}},67640:function(e,t,r){"use strict";r.d(t,{r:function(){return n}});let n=e=>"/product/".concat(e)},16717:function(e,t,r){"use strict";r.d(t,{NP:function(){return i},mk:function(){return s}});var n=r(68680),o=r(30987);let a=()=>o.T5.replace(/\/api\/?$/,""),s=e=>(0,n.io)(a(),{transports:["websocket","polling"],auth:{token:e}}),i=e=>(0,n.io)(a(),{transports:["websocket","polling"],auth:{guestToken:e}})},8830:function(e,t,r){"use strict";r.d(t,{a:function(){return n}});let n=e=>"".concat(Number(e).toLocaleString("ru-RU"),"â½")},93575:function(e,t,r){"use strict";r.d(t,{eV:function(){return a},jg:function(){return n},nl:function(){return l},od:function(){return i},rw:function(){return o}});let n="notification-click",o=()=>"Notification"in window,a=()=>{if(o()&&"default"===Notification.permission)try{var e;null===(e=Notification.requestPermission())||void 0===e||e.catch(()=>void 0)}catch(e){}},s=null,i=()=>s||("undefined"!=typeof navigator&&"serviceWorker"in navigator?s=navigator.serviceWorker.register("/sw.js").then(()=>navigator.serviceWorker.ready).catch(()=>null):s=Promise.resolve(null)),l=async e=>{let{title:t,body:r,tag:n,url:a}=e;if(!o()||"granted"!==Notification.permission)return;let s={body:r,tag:n,icon:"/favicon.ico",data:{url:a}},l=await i();if(l){await l.showNotification(t,s);return}try{let e=new Notification(t,s);e.onclick=()=>{window.focus(),window.location.assign(a),e.close()}}catch(e){}}},97271:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});let n=()=>{try{return{app:"WEB",app_version:"c0fea40d",page_url:window.location.href.slice(0,500),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,timezone_offset:-new Date().getTimezoneOffset(),language:navigator.language,screen:"".concat(window.screen.width,"x").concat(window.screen.height,", окно ").concat(window.innerWidth,"x").concat(window.innerHeight)}}catch(e){return}}},47934:function(){},14548:function(e){e.exports={container:"EmailConfirmPrompt_container__ihFoE",email:"EmailConfirmPrompt_email__bnkHs",validity:"EmailConfirmPrompt_validity__r45_a",emailInput:"EmailConfirmPrompt_emailInput__TfL0R",errorText:"EmailConfirmPrompt_errorText__ZytAQ",codeForm:"EmailConfirmPrompt_codeForm__rYzwe",codeInput:"EmailConfirmPrompt_codeInput__elsq_",codeInputError:"EmailConfirmPrompt_codeInputError__McylW",resendButton:"EmailConfirmPrompt_resendButton___zl_t",linkButton:"EmailConfirmPrompt_linkButton__XPebK"}},93705:function(e){e.exports={popup:"CookieBanner_popup__SFPGe",text:"CookieBanner_text__K8Yko",link:"CookieBanner_link__XXEZV",buttons:"CookieBanner_buttons__eoAii",settings:"CookieBanner_settings__ROXU7",category:"CookieBanner_category__tZ3Ta",categoryTitle:"CookieBanner_categoryTitle__luZXj",categoryHint:"CookieBanner_categoryHint__5_UJC",buttonAccept:"CookieBanner_buttonAccept__aivSG",buttonGhost:"CookieBanner_buttonGhost__7G6HQ"}},60234:function(e){e.exports={wrapper:"Footer_wrapper__fTaM1",container:"Footer_container__gnWX2",promo:"Footer_promo__1eDIT",promoContent:"Footer_promoContent__rSb2j",promoTitle:"Footer_promoTitle__bxjkW",promoDescription:"Footer_promoDescription__AsYhF",mobileAp
1pLinksWrapper:"Footer_mobileAppLinksWrapper__sXgyd",mobileAppLink:"Footer_mobileAppLink__WX2jx",mobileAppLinkGooglePlayIcon:"Footer_mobileAppLinkGooglePlayIcon__yVkRX",mobileAppLinkAppStoreIcon:"Footer_mobileAppLinkAppStoreIcon__uXXlk",promoBanner:"Footer_promoBanner__Pf_Oo",info:"Footer_info__gViFo",infoHeader:"Footer_infoHeader__s94_l",logo:"Footer_logo__TiS61",infoLinksWrapper:"Footer_infoLinksWrapper__q3ErJ",supportLink:"Footer_supportLink__pCcO4",supportLinkTablet:"Footer_supportLinkTablet__i5TOo",supportLinkMobile:"Footer_supportLinkMobile__2164E",supportLinkText:"Footer_supportLinkText__mTN7h",privacyPolicyLink:"Footer_privacyPolicyLink__IWo_K",privacyPolicyLinkMobile:"Footer_privacyPolicyLinkMobile__gyy0k",contacts:"Footer_contacts__3ikob",contactsText:"Footer_contactsText__SWUK8",address:"Footer_address__Fo0sC",contactsColumn:"Footer_contactsColumn__SZyKo",contactsRow:"Footer_contactsRow__Pf2IZ",contactsLink:"Footer_contactsLink__vJw2Z",copyright:"Footer_copyright__G_qSi",footerBottom:"Footer_footerBottom__4UUQu",footerBottomContent:"Footer_footerBottomContent__zIXTZ",paymentIcons:"Footer_paymentIcons__pnuVz",socialLinks:"Footer_socialLinks__QhXI3",socialLinksAdaptive:"Footer_socialLinksAdaptive__3r_HC",contactPhone:"Footer_contactPhone__pBhlY",footerNavigation:"Footer_footerNavigation__ARMCU",footerNavigationAdaptive:"Footer_footerNavigationAdaptive__Z__A1",navigationColumn:"Footer_navigationColumn__tQQFR",navigationTitle:"Footer_navigationTitle__lOODa",navigationList:"Footer_navigationList__eiLIq",navigationLink:"Footer_navigationLink__hqfFS",linksMobile:"Footer_linksMobile__Htxs9",legal:"Footer_legal___QLz0",legalTitle:"Footer_legalTitle__TfZc4",legalList:"Footer_legalList__ZeFrW",legalSubList:"Footer_legalSubList__fRZGV",legalLink:"Footer_legalLink__Z0XoW"}},68690:function(e){e.exports={button:"Categories_button__NJ7Ng",buttonText:"Categories_buttonText__gqkcq",modal:"Categories_modal__yMOvV",categoriesList:"Categories_categoriesList__fq1pT",categoryItem:"Categories_categoryItem__KZxJf",categoryItemImageWrapper:"Categories_categoryItemImageWrapper__6ITl1",categoryItemImage:"Categories_categoryItemImage__0JwE1",categoryItemName:"Categories_categoryItemName__u35yC",subCategoryList:"Categories_subCategoryList___ERaG",subCategoriesRow:"Categories_subCategoriesRow__M5FVG",subCategory:"Categories_subCategory__YJQft",subCategoryText:"Categories_subCategoryText__J_k6e",mobileCategoryList:"Categories_mobileCategoryList__BJTTg",mobileCategoryItem:"Categories_mobileCategoryItem__ZuDvT",mobileSubCategoryItem:"Categories_mobileSubCategoryItem__2j6GF",horsesButton:"Categories_horsesButton__i0hgV",horsesButtonText:"Categories_horsesButtonText__7FgIx",collectionsSection:"Categories_collectionsSection__FViWr",collectionsTitle:"Categories_collectionsTitle__u1ut1",mobileCollectionsSection:"Categories_mobileCollectionsSection__2u_P7"}},37179:function(e){e.exports={container:"Header_container__OuOWB",header:"Header_header__i_Usm",actionsWrapper:"Header_actionsWrapper__Bgjo2",actionInner:"Header_actionInner__N7N7b",modal:"Header_modal__JjNSC",isTablet:"Header_isTablet__uEzM1",caption:"Header_caption__ay003",captionRow:"Header_captionRow__ib1wV",logoLink:"Header_logoLink__fcKFX",isDesktop:"Header_isDesktop__4a4VI",inner:"Header_inner__JRb1y",navButtons:"Header_navButtons__UUYAX",navButton:"Header_navButton__sBS2m",rightLinks:"Header_rightLinks__2gMun",sellerText:"Header_sellerText__xQjN9",blogText:"Header_blogText__Ybnlx",aboutText:"Header_aboutText__B5jFO"}},41210:function(e){e.exports={mobileSearchBar:"MobileSearchBar_mobileSearchBar__GBR0w",withBackground:"MobileSearchBar_withBackground__NXA8S"}},18023:function(e){e.exports={container:"PoloClubHeader_container__aj__g",floating:"PoloClubHeader_floating__cy01U",header:"PoloClubHeader_header__VBLx2",static:"PoloClubHeader_static__EDyX2",hidden:"PoloClubHeader_hidden__QDtgj",poloHeaderFadeIn:"PoloClubHeader_poloHeaderFadeIn__pOAzf",logoLink:"PoloClubHeader_logoLink__r4hYM",actions:"PoloClubHeader_actions__tRkHa",contact:"PoloClubHeader_contact__YJLdj",iconWrapper:"PoloClubHeader_iconWrapper__U_e5I",text:"PoloClubHeader_text__Pcziw",iconSlot:"PoloClubHeader_iconSlot__RDzVE"}}
1,68785:function(e){e.exports={searchWrapper:"Search_searchWrapper__Bqhpv",searchInput:"Search_searchInput__ueXBM",mobileSearchActive:"Search_mobileSearchActive__oRxdD",sortDropdown:"Search_sortDropdown__XAJIB",searchOverlay:"Search_searchOverlay__aNaDf",searchInputWrapper:"Search_searchInputWrapper__foOG0",searchInputContainer:"Search_searchInputContainer__F6yLw",searchButton:"Search_searchButton__M5yat",searchIconWrapper:"Search_searchIconWrapper__aLci7",localSearchTag:"Search_localSearchTag__UvNPn",localSearchText:"Search_localSearchText__VAUls",localSearchClose:"Search_localSearchClose__1AJkb",mobileBackButton:"Search_mobileBackButton__k8Pcw",modal:"Search_modal__fkN2H",sellersSection:"Search_sellersSection__SfXac",seller:"Search_seller__9CpYL",sellerContent:"Search_sellerContent__rUynl",sellerLogoWrapper:"Search_sellerLogoWrapper__SVZCW",sellerName:"Search_sellerName__tlwET",sellerType:"Search_sellerType___wl57",sellerIcon:"Search_sellerIcon__rd_2R",subCategory:"Search_subCategory___nizw",subCategoryContent:"Search_subCategoryContent__r1WSD",subCategoryName:"Search_subCategoryName__oJnb7",subCategoryCatName:"Search_subCategoryCatName__L35zJ",subCategoryIcon:"Search_subCategoryIcon__GRDW0",productsList:"Search_productsList__Kjhf8",product:"Search_product__NrCmS",productPhotoWrapper:"Search_productPhotoWrapper__5_TrD",productPrice:"Search_productPrice__X0DUK",productName:"Search_productName__NePAN",eventBadge:"Search_eventBadge__0GPUf"}},84083:function(e){e.exports={blurBackdrop:"MobileTabs_blurBackdrop__e9DH7",pos:"MobileTabs_pos__kZMn_",container:"MobileTabs_container__c6u_N",tab:"MobileTabs_tab__fsGL_",locked:"MobileTabs_locked__WX5gN",iconWrapper:"MobileTabs_iconWrapper__DwOZz",text:"MobileTabs_text__Igezd",active:"MobileTabs_active__vQetu",badge:"MobileTabs_badge__BI7_d"}},53416:function(e){e.exports={container:"Wrapper_container__IRo0Z",wrapper:"Wrapper_wrapper__wjms8"}},49081:function(e){e.exports={wrapper:"EventBadge_wrapper__f2ZKn",text:"EventBadge_text__Zuo_C"}},87474:function(e){e.exports={disabledButton:"DisabledButton_disabledButton__jlfWD"}},29150:function(e){e.exports={wrapper:"DotsLoader_wrapper__JqdRi",text:"DotsLoader_text__CjA4_",dots:"DotsLoader_dots__9qNCu",pulse:"DotsLoader_pulse__kZSLP"}},85415:function(e){e.exports={wrapper:"DownloadAppLink_wrapper__Dzlmk"}},27134:function(e){e.exports={wrapper:"ListLoader_wrapper__WYGSj",label:"ListLoader_label__cP5Ee",dots:"ListLoader_dots__Xk6_4",dot:"ListLoader_dot__uEwy5",listDotPulse:"ListLoader_listDotPulse__EJBe_"}},47900:function(e){e.exports={checkboxWrapper:"RoundCheckbox_checkboxWrapper__En6q8",checkbox:"RoundCheckbox_checkbox__qwVZ6",checkboxSelected:"RoundCheckbox_checkboxSelected__gfQ1U",innerCircle:"RoundCheckbox_innerCircle__3Mu0z",label:"RoundCheckbox_label__eCXEZ"}},8266:function(e){e.exports={scrollToTopButton:"ScrollToTop_scrollToTopButton__XxbIr",visible:"ScrollToTop_visible__mu5_7",hidden:"ScrollToTop_hidden__EYYYN"}},33508:function(e){e.exports={wrapper:"Section_wrapper__duPgy",excludeMobile:"Section_excludeMobile__9e8EI",title:"Section_title__g5GwW",mobileWhiteBackground:"Section_mobileWhiteBackground__FCzpu"}},36188:function(e){e.exports={container:"SortedDropdown_container__ep7Wa",button:"SortedDropdown_button__aRz0x",mobileMode:"SortedDropdown_mobileMode__8l_lQ",spanWrapper:"SortedDropdown_spanWrapper__EtCAm",buttonTitle:"SortedDropdown_buttonTitle__zU8DC",arrow:"SortedDropdown_arrow__AvcVX",arrowRotated:"SortedDropdown_arrowRotated__96_3s",dropdown:"SortedDropdown_dropdown__u8y4t",option:"SortedDropdown_option__GhBzJ",overlay:"SortedDropdown_overlay__REtUl",fadeIn:"SortedDropdown_fadeIn__xPQqu",mobileModal:"SortedDropdown_mobileModal__A4VRO",slideUp:"SortedDropdown_slideUp__8hyf9",mobileHeader:"SortedDropdown_mobileHeader__DymXx",mobileTitle:"SortedDropdown_mobileTitle___7Ie0",closeButton:"SortedDropdown_closeButton__5i8tQ",mobileContent:"SortedDropdown_mobileContent__NhVQZ",mobileOption:"SortedDropdown_mobileOption__Gw7Iq",mobileFooter:"SortedDropdown_mobileFooter__D_XyX",applyButton:"SortedDropdown_applyButton__5hA83"}},59902:function(e){e.exports={supportButton:"SupportButton_supportButton__S06MQ",default:"SupportButton_default__kotW9",orange:"SupportButton_orange__s8IZn",icon:"SupportButton_icon__b6tbh",text:"SupportButton_text__6vN0t"}},45137:function(e){e.exports={button:"SupportWidget_button__KZF1l",buttonRouteHidden:"SupportWidget_buttonRouteHidden__1i08E",buttonHidden:"SupportWidget_buttonHidden__0TRIA",buttonScrollHidden:"SupportWidget_buttonScrollHidden__YsjR2",badge:"SupportWidget_badge___j86Z",panel:"SupportWidget_panel___T_4W",panelOpen:"SupportWidget_panelOpen__l0Txt",panelFadeIn:"SupportWidget_panelFadeIn__NdanM",header:"SupportWidget_header__qPFxO",headerText:"SupportWidget_headerText___TQ_Q",title:"SupportWidget_title__Gnsbn",subtitle:"SupportWidget_subtitle__uJ_WB",close:"SupportWidget_close__NJYA1",loader:"SupportWidget_loader__5UsdA",intro:"SupportWidget_intro__zkkl6",introText:"SupportWidget_introText__a_3xM",field:"SupportWidget_field__8X5MJ",label:"SupportWidget_label__qWR87",input:"SupportWidget_input___xYv8",consent:"SupportWidget_consent__kQ__r",inputError:"SupportWidget_inputError__367Fn",error:"SupportWidget_error__digAK",messages:"SupportWidget_messages___mkvo",messageRow:"SupportWidget_messageRow__dNlrI",own:"SupportWidget_own__QxEiC",messageBubble:"SupportWidget_messageBubble__pbE7J",messageText:"SupportWidget_messageText__PvIak",messageTime:"SupportWidget_messageTime__hmYfv",scrollToBottomButton:"SupportWidget_scrollToBottomButton__VOE96",scrollToBottomBadge:"SupportWidget_scrollToBottomBadge__MLPrc",footer
1:"SupportWidget_footer__UFxWn",textarea:"SupportWidget_textarea__SQAss",sendButton:"SupportWidget_sendButton__ydaXs"}},66802:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/apple.54e51ef9.svg",height:31,width:115,blurWidth:0,blurHeight:0}},97502:function(e,t){"use strict";t.Z={src:"/_next/static/media/chat-arrow-down.ce01d223.svg",height:18,width:18,blurWidth:0,blurHeight:0}},82415:function(e,t){"use strict";t.Z={src:"/_next/static/media/chat-send.a59b623d.svg",height:22,width:22,blurWidth:0,blurHeight:0}},88040:function(e,t){"use strict";t.Z={src:"/_next/static/media/close-black.12e8b600.svg",height:18,width:18,blurWidth:0,blurHeight:0}},80022:function(e,t){"use strict";t.Z={src:"/_next/static/media/close.bd7bf3aa.svg",height:12,width:12,blurWidth:0,blurHeight:0}},21580:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/google-play.7df2acc9.svg",height:32,width:129,blurWidth:0,blurHeight:0}},48173:function(e,t){"use strict";t.Z={src:"/_next/static/media/horse-tab.1aa3f83e.svg",height:30,width:31,blurWidth:0,blurHeight:0}},58050:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/logo-mobile.0cb392d2.svg",height:46,width:44,blurWidth:0,blurHeight:0}},24854:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/logo.06032b0f.svg",height:46,width:184,blurWidth:0,blurHeight:0}},81569:function(e,t){"use strict";t.Z={src:"/_next/static/media/market-mini.2d215d78.svg",height:25,width:25,blurWidth:0,blurHeight:0}},99767:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/mastercard-footer.81041d06.svg",height:15,width:24,blurWidth:0,blurHeight:0}},50847:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/sberpay-footer.50500e20.svg",height:19,width:36,blurWidth:0,blurHeight:0}},83588:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/sbp-footer.2f7da563.svg",height:19,width:16,blurWidth:0,blurHeight:0}},27083:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/telegram-footer.285d83fc.svg",height:36,width:35,blurWidth:0,blurHeight:0}},87633:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/umoney-footer.6c2d43c4.svg",height:18,width:23,blurWidth:0,blurHeight:0}},8148:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/visa-footer.57749f53.svg",height:12,width:35,blurWidth:0,blurHeight:0}},2455:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/vk-footer.e226903f.svg",height:36,width:35,blurWidth:0,blurHeight:0}},90707:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/footer-promo.052a0186.png",height:1496,width:2750,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAANlBMVEVMaXG1qZrVsYJ/Pz/Gxq+cnJ6NkJPMs5qcmJfLvbKbmprDgE6zsbGXl5eNjZDg5eqmpqbv6OXVCXLoAAAAEXRSTlMAlb4EHlaS/X3+67Bw2WP+ND/7h+0AAAAJcEhZcwAALEsAACxLAaU9lqkAAAAoSURBVHicBcGHAQAgCMCwqiDg5v9nTUB6f7iDZi7GRoqFc5RqcW02Pg/BAOH5WVrdAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},32095:function(e){e.exports={style:{fontFamily:"'__montserrat_adb801', '__montserrat_Fallback_adb801'"},className:"__className_adb801"}}},function(e){e.O(0,[473,5847,2853,5413,9588,5123,1772,6143,4637,5878,2972,8344,6904,4686,3797,8680,409,2662,9417,9039,5881,3914,2522,2971,2117,1744],function(){return e(e.s=45201)}),_N_E=e.O()}]);
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.