PageSourceSearch

https://horsesmart.store/_next/static/chunks/6865-5d3646893b4a858f.js

js horsesmart.store collected 2026-09-25 03:14:37 UTC 11,052 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6865],{83370:function(t,e,r){"use strict";var n=r(57437),i=r(2265),o=r(36760),s=r.n(o),a=r(49081),c=r.n(a);let u=["Галопом к выгоде"],l=(0,i.memo)(t=>{var e;let{event:r,className:i}=t;return u.includes(r.name)?null:(0,n.jsxs)("div",{className:s()(c().wrapper,i),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:c().text,style:{color:null!==(e=null==r?void 0:r.textColor)&&void 0!==e?e:"#ffffff"},children:r.name})]})});l.displayName="EventBadge",e.Z=l},79087:function(t,e,r){"use strict";r.d(e,{n:function(){return c}});var n=r(57437),i=r(2265),o=r(94400),s=r(4041),a=r.n(s);let c=(0,i.memo)(t=>{let{type:e,price:r,f_price:i,discount:s,className:c=""}=t,u="price--".concat(e);return i?(0,n.jsxs)("div",{className:"".concat(a().priceContainer," ").concat(a()[u]," ").concat(c),children:[(0,n.jsx)("span",{className:a().discountedPrice,children:"".concat((0,o.A)(r),"₽")}),(0,n.jsx)("span",{className:a().originalPrice,children:"".concat((0,o.A)(i),"₽")}),!!s&&s>0&&(0,n.jsx)("span",{className:a().discountPercent,children:"-".concat(s,"%")})]}):(0,n.jsxs)("span",{className:"".concat(a().price," ").concat(a()[u]," ").concat(c),children:[(0,o.A)(r),"₽"]})});c.displayName="PriceDisplay"},272:function(t,e,r){"use strict";r.d(e,{ProductItem:function(){return L}});var n=r(57437),i=r(27648),o=r(33145),s=r(36760),a=r.n(s),c=r(7409),u=r(99376),l=r(2265),d=r(30987),_=r(67640),p=r(67587),m=r(55833),f=r(69417),v=r(11958),h=r(79087),g=r(20953),w=r(89533),x={src:"/_next/static/media/star-orange.78632c59.svg",height:13,width:14,blurWidth:0,blurHeight:0},P=r(96156),y=r(33914),b=r(46731),N=r(40400),j=r(1526),C=r(83370),B=r(75515),D=r.n(B);let L=t=>{var e,r,s,B;let{item:L,className:I,showFavoriteButton:S=!1,fromRelatedProducts:k=!1,fromSellerProducts:E=!1,scrollStorageKey:R,fullWidth:W=!1,openInNewTab:A=!1,withMobileBackground:G=!1}=t,T=(0,u.useRouter)();(0,f.TL)(),(0,f.CG)(v.nG.selectAddToCartProductIdLoading);let M=(0,f.CG)(v.nG.selectCart),Z=(0,f.CG)(j.LL.selectIsAuth),[O,U]=(0,l.useState)(L.is_favorite||!1),[Y,q]=(0,l.useState)(!1),{isInGuestFavorites:J,addToGuestFavorites:H,removeFromGuestFavorites:K}=(0,b.z)();Array.isArray(L.variations)&&L.variations.length,(0,l.useEffect)(()=>{Z?U(L.is_favorite||!1):U(J(L._id,P.n.PRODUCT))},[Z,L._id,L.is_favorite,J]);let F=async t=>{if(t.preventDefault(),t.stopPropagation(),!Y)try{if(q(!0),U(!O),Z){let t=(await N.J.toggleFavorite({entity_id:L._id,entity_type:P.n.PRODUCT})).data,e=t&&"ADDED"===t.action;t&&(U(e),L.is_favorite=e)}else J(L._id,P.n.PRODUCT)?K(L._id,P.n.PRODUCT):H(L._id,P.n.PRODUCT);(0,y.M)()}catch(t){U(!O),c.toast.error("Не удалось обновить избранное")}finally{q(!1)}};M.some(t=>t.items.some(t=>t.product_id._id===L._id)),L.dimension.in_stock;let V=null!==(s=null===(e=L.reviewsData)||void 0===e?void 0:e.count)&&void 0!==s?s:0,z=(null===(r=L.reviewsData)||void 0===r?void 0:r.averageRating)?Number(L.reviewsData.averageRating).toFixed(1):null;return(0,n.jsxs)("li",{className:a()(D().wrapper,I,{[D().fullWidth]:W,[D().withMobileBackground]:G}),children:[(0,n.jsxs)(i.default,{href:(0,_.r)(L.slug),onClick:t=>{if(t.preventDefault(),R)sessionStorage.setItem(R,window.scrollY.toString()),sessionStorage.setItem("returning_from_product","true");else if(E&&L.seller_id){let t=L.seller_id._id;sessionStorage.setItem("scroll_".concat(t),window.scrollY.toString()),sessionStorage.setItem("returning_from_product","true")}else if(!k&&L.category_id&&L.subCategory_id){let t=L.category_id._id,e=L.subCategory_id._id,r="scroll_".concat(t).concat(e?"_"+e:"");sessionStorage.setItem(r,window.scrollY.toString()),sessionStorage.setItem("returning_from_product","true")}if(m.XK){var e,r,n,i,o,s,a;null===(r=window)||void 0===r||null===(e=r.dataLayer)||void 0===e||e.push({ecommerce:null}),null===(s=window)||void 0===s||null===(o=s.dataLayer)||void 0===o||o.push({event:"select_item",ecommerce:{items:[{item_name:L.name,item_id:L.number,affiliation:null!==(a=null==L?void 0:null===(i=L.seller_id)||void 0===i?void 0:null===(n=i.shop_details)||void 0===n?void 0:n.shop_name)&&void 0!==a?a:"Удаленный магазин",price:L.price,item_category:L.category_id.name,item_category2:L.subCategory_id.name,index:1,quantity:1}]}})}A?window.open((0,_.r)(L.slug),"_blank","noopener,noreferrer"):T.push((0,_.r)(L.slug))},target:A?"_blank":void 0,rel:A?"noopener noreferrer":void 0,className:D().productLink,children:[(0,n.jsxs)("div",{className:a()(D().photoWrapper,{[D().withMobileBackgroun
1d]:G}),children:[(0,n.jsx)(o.default,{src:"".concat(d.eG).concat(L.photo[0]),overrideSrc:"".concat(d.eG).concat(L.photo[0]),alt:L.name,fill:!0,priority:!0,sizes:"(max-width: 768px) 25vw, (max-width: 590px) 33vw, (max-width: 428px) 50vw, 20vw",style:{objectFit:"cover"}}),S&&(0,n.jsx)("button",{onClick:F,className:D().favoriteButton,disabled:Y,children:(0,n.jsx)(o.default,{src:O?w.Z:g.Z,alt:O?"Удалить из избранного":"Добавить в избранное",width:30,height:30})}),!!L.event&&(0,n.jsx)(C.Z,{event:L.event,className:D().eventBadge})]}),(0,n.jsx)(h.n,{type:"product-card",price:L.price,f_price:null!==(B=L.f_price)&&void 0!==B?B:void 0,discount:L.discount,className:D().priceDisplay}),L.low_stock_flag&&k&&(0,n.jsx)("div",{className:D().tag,children:(0,n.jsx)("span",{children:"Осталось мало"})}),(0,n.jsx)("p",{className:D().productName,children:L.name}),(0,n.jsx)("div",{className:D().reviews,children:!!V&&z&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.default,{src:x,alt:"",width:14,height:13}),(0,n.jsx)("span",{className:D().rating,children:z}),(0,n.jsxs)("span",{className:D().reviewsCount,children:[V," ",(0,p.p)(V,["отзывов","отзыв","отзыва"])]})]})})]}),(0,n.jsx)(i.default,{href:(0,_.r)(L.slug),children:(0,n.jsx)("button",{className:D().addToCartButton,children:"Купить"})})]})}},88675:function(t,e,r){"use strict";r.d(e,{DisabledButton:function(){return s}});var n=r(57437);r(2265);var i=r(87474),o=r.n(i);let s=t=>{let{text:e,className:r="",onClick:i}=t;return(0,n.jsx)("button",{className:"".concat(o().disabledButton," ").concat(r),disabled:!0,onClick:i,children:e})}},72666:function(t,e,r){"use strict";r.d(e,{ListLoader:function(){return c}});var n=r(57437);r(2265);var i=r(36760),o=r.n(i),s=r(27134),a=r.n(s);let c=t=>{let{className:e,withLabel:r=!1,label:i="Загружаем товары"}=t;return(0,n.jsxs)("div",{className:o()(a().wrapper,e),children:[r&&(0,n.jsx)("span",{className:a().label,children:i}),(0,n.jsxs)("div",{className:a().dots,children:[(0,n.jsx)("span",{className:a().dot}),(0,n.jsx)("span",{className:a().dot}),(0,n.jsx)("span",{className:a().dot})]})]})}},89494:function(t,e,r){"use strict";r.d(e,{SupportButton:function(){return u}});var n=r(57437),i=r(33145),o=r(92691),s=r(36303),a=r(59902),c=r.n(a);let u=t=>{let{className:e="",variant:r="default"}=t,{openSupport:a}=(0,s.y)();return(0,n.jsxs)("button",{onClick:a,className:"".concat(c().supportButton," ").concat(c()[r]," ").concat(e),children:[(0,n.jsx)(i.default,{src:o.Z,alt:"telegram",className:c().icon}),(0,n.jsx)("span",{className:c().text,children:"Техническая поддержка"})]})}},94400:function(t,e,r){"use strict";r.d(e,{A:function(){return n}});let n=t=>Number(t).toLocaleString("ru-RU")},36303:function(t,e,r){"use strict";r.d(e,{y:function(){return c}});var n=r(2265),i=r(99376),o=r(1526),s=r(69417),a=r(98526);let c=()=>{let t=(0,i.useRouter)(),e=(0,s.CG)(o.LL.selectIsAuth);return{openSupport:(0,n.useCallback)(()=>{if(e){t.push("/profile/chats/support");return}(0,a.RN)()},[e,t])}}},98526:function(t,e,r){"use strict";r.d(e,{G7:function(){return u},MC:function(){return d},Mv:function(){return s},QC:function(){return a},RN:function(){return l},hB:function(){return p},mq:function(){return _}});var n=r(2265);let i="support-widget-state-change",o="support-widget-open",s="support",a="/?".concat(s,"=open"),c=!1,u=()=>c,l=()=>{window.dispatchEvent(new Event(o))},d=t=>{c=t,window.dispatchEvent(new CustomEvent(i,{detail:{isOpen:t}}))},_=t=>{n.useEffect(()=>(window.addEventListener(o,t),()=>window.removeEventListener(o,t)),[t])},p=()=>{let[t,e]=n.useState(c);return n.useEffect(()=>{let t=t=>{var r;e(!!(null===(r=t.detail)||void 0===r?void 0:r.isOpen))};return window.addEventListener(i,t),()=>window.removeEventListener(i,t)},[]),t}},67640:function(t,e,r){"use strict";r.d(e,{r:function(){return n}});let n=t=>"/product/".concat(t)},67587:function(t,e,r){"use strict";r.d(e,{p:function(){return n}});let n=(t,e)=>{let r=Math.abs(t)%100,n=r%10;return r>10&&r<20?e[0]:n>1&&n<5?e[2]:1===n?e[1]:e[0]}},49081:function(t){t.exports={wrapper:"EventBadge_wrapper__f2ZKn",text:"EventBadge_text__Zuo_C"}},4041:function(t){t.exports={priceContainer:"PriceDisplay_priceContainer__s6N9_","price--product-card":"PriceDisplay_price--product-card___AJL_","price--product-screen":"PriceDisplay_price--product-screen__P_lwe",price:"PriceDisplay_price__RVV2h",discountedPrice:"PriceDisplay_discountedPrice__qtBWy",originalPrice
1:"PriceDisplay_originalPrice__1IJK8",discountPercent:"PriceDisplay_discountPercent__Nbn4f"}},75515:function(t){t.exports={wrapper:"ProductItem_wrapper__giJy7",fullWidth:"ProductItem_fullWidth__4T1nh",withMobileBackground:"ProductItem_withMobileBackground___vKqR",photoWrapper:"ProductItem_photoWrapper__ADYJf",productName:"ProductItem_productName__3d_fm",reviews:"ProductItem_reviews__69coe",rating:"ProductItem_rating__Y_Mom",reviewsCount:"ProductItem_reviewsCount__VD8LC",tag:"ProductItem_tag__o7Dnu",productPrice:"ProductItem_productPrice__WRlVx",priceDisplay:"ProductItem_priceDisplay__RYcyu",addToCartButton:"ProductItem_addToCartButton__mw8fh",inCartButton:"ProductItem_inCartButton__zEoLG",outOfStockButton:"ProductItem_outOfStockButton__3Kx_q",productLink:"ProductItem_productLink__GE8Rb",favoriteButton:"ProductItem_favoriteButton__2vqUN",eventBadge:"ProductItem_eventBadge__d2PhQ"}},87474:function(t){t.exports={disabledButton:"DisabledButton_disabledButton__jlfWD"}},27134:function(t){t.exports={wrapper:"ListLoader_wrapper__WYGSj",label:"ListLoader_label__cP5Ee",dots:"ListLoader_dots__Xk6_4",dot:"ListLoader_dot__uEwy5",listDotPulse:"ListLoader_listDotPulse__EJBe_"}},59902:function(t){t.exports={supportButton:"SupportButton_supportButton__S06MQ",default:"SupportButton_default__kotW9",orange:"SupportButton_orange__s8IZn",icon:"SupportButton_icon__b6tbh",text:"SupportButton_text__6vN0t"}},66802:function(t,e,r){"use strict";r.r(e),e.default={src:"/_next/static/media/apple.54e51ef9.svg",height:31,width:115,blurWidth:0,blurHeight:0}},21580:function(t,e,r){"use strict";r.r(e),e.default={src:"/_next/static/media/google-play.7df2acc9.svg",height:32,width:129,blurWidth:0,blurHeight:0}},89533:function(t,e){"use strict";e.Z={src:"/_next/static/media/heart-fill.3c670d72.svg",height:33,width:36,blurWidth:0,blurHeight:0}}}]);

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.