PageSourceSearch

https://paygame.ru/_next/static/chunks/pages/search-8d03bfcc3a06bf9f9dd5.js

js paygame.ru collected 2026-10-06 16:18:01 UTC 52,792 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9603],{11319:function(e){e.exports="/_next/static/images/rating-b8465b7074956089c97b2360b050ae6c.svg"},80198:function(e){e.exports="/_next/static/images/24-06b354b5a5978e640c18c0dbf729d9b9.svg"},46857:function(e,t,n){"use strict";var r=n(41664),i=n(95848),o=n(29032),s=n(59022),a=n(54714),c=n(3421),l=n(85893);t.Z=function(e){var t=e.id,n=e.cover,a=e.color,w=e.publishDate,b=e.comments,j=e.abilityToComment,k=e.title,C=e.tags,I=e.shortDescription,O=e.user;return(0,l.jsxs)(y,{children:[(0,l.jsx)(r.default,{passHref:!0,href:"/news/".concat(t),children:(0,l.jsx)(d,{"aria-label":k,children:(0,l.jsx)(c.Z,{src:n,color:a})})}),(0,l.jsxs)(u,{children:[(0,l.jsxs)(h,{children:[(0,l.jsx)("time",{dateTime:w,children:(0,s.ur)({date:w,daysWords:!0})}),b>0&&!!j&&(0,l.jsxs)(f,{children:[(0,l.jsx)(i.u,{name:"common/comment"}),(0,l.jsx)("span",{children:b})]}),O&&(0,l.jsx)(r.default,{passHref:!0,href:"/users/".concat(O.username),children:(0,l.jsxs)(p,{children:[(0,l.jsx)(o.default,{iSize:20,user:O}),(0,l.jsx)("span",{children:O.username})]})})]}),(0,l.jsx)(g,{children:(0,l.jsx)(r.default,{passHref:!0,href:"/news/".concat(t),children:(0,l.jsx)("a",{children:k})})}),I&&(0,l.jsx)(m,{children:I}),Array.isArray(C)&&C.length>0&&(0,l.jsx)(x,{children:C.map((function(e){return(0,l.jsx)(r.default,{passHref:!0,href:"/news/tag/".concat(e.slug),children:(0,l.jsx)(v,{children:e.name})},e.id)}))})]})]})};var d=a.default.a.withConfig({componentId:"sc-1510uo9-0"})(["display:block;text-decoration:none;"]),u=a.default.div.withConfig({componentId:"sc-1510uo9-1"})(["display:flex;flex-direction:column;gap:8px;min-width:0;"]),p=a.default.a.withConfig({componentId:"sc-1510uo9-2"})(["display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;color:inherit;text-decoration:none;transition:color 200ms ease;span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}&:hover{color:",";}"],(function(e){return e.theme.colors.text})),f=a.default.span.withConfig({componentId:"sc-1510uo9-3"})(["display:inline-flex;align-items:center;gap:4px;svg{width:18px;height:18px;}"]),h=a.default.div.withConfig({componentId:"sc-1510uo9-4"})(["display:flex;flex-flow:row wrap;align-items:center;gap:6px 14px;font-size:14px;line-height:1.2em;color:",";"],(function(e){return e.theme.colors.news.gray})),g=a.default.div.withConfig({componentId:"sc-1510uo9-5"})(['font-family:"Onest","Nunito Sans",sans-serif;font-weight:700;font-size:17px;line-height:1.25em;letter-spacing:-0.01em;a{color:',";text-decoration:none;transition:color 200ms ease;}"],(function(e){return e.theme.colors.text})),m=a.default.p.withConfig({componentId:"sc-1510uo9-6"})(["display:none;@media screen and (min-width:520px){margin:0;font-size:14px;line-height:1.45em;color:",";display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}"],(function(e){return e.theme.colors.news.gray})),x=a.default.div.withConfig({componentId:"sc-1510uo9-7"})(["display:flex;gap:4px;flex-flow:row nowrap;overflow:hidden;-webkit-mask-image:linear-gradient( 90deg,#000 calc(100% - 24px),transparent );mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);@media screen and (min-width:520px){flex-flow:row wrap;overflow:visible;-webkit-mask-image:none;mask-image:none;}"]),v=a.default.a.withConfig({componentId:"sc-1510uo9-8"})(["flex:none;padding:4px 10px;border-radius:6px;line-height:1.4em;font-size:14px;white-space:nowrap;text-decoration:none;color:",";background-color:",";transition:200ms ease;transition-property:background-color,color;&:hover{color:",";background-color:",";}"],(function(e){return e.theme.colors.offerFilters.type.color.default}),(function(e){return e.theme.colors.offerFilters.type.bg.default}),(function(e){return e.theme.colors.offerFilters.type.color.active}),(function(e){return e.theme.colors.offerFilters.type.bg.active})),y=a.default.article.withConfig({componentId:"sc-1510uo9-9"})(["display:grid;grid-template-columns:128px minmax(0,1fr);gap:12px;align-items:start;padding:16px 0;border-bottom:1px solid ",";transition:border-color 200ms ease;&:hover ","{transform:scale(1.04);}&:hover "," a{color:",";}@media screen and (min-width:520px){grid-template-columns:206px minmax(0,1fr);gap:16px;padding:18px 0;}"],(function(e){return e.theme.colors.UIBorders}),c.y,g,(function(e){return e.theme.colors.titleLink.active}))},3421:function(e,t,n){"use strict";n.d(t,{y:function(){return s}});var r=n(67294),i=n(54714),o=n(85893);
1t.Z=function(e){var t=e.src,n=e.color,i=e.alt,c=void 0===i?"":i,l=e.fill,d=void 0!==l&&l,u=e.ratio,p=void 0===u?"4 / 3":u,f=e.radius,h=void 0===f?"8px":f,g=e.className,m=(0,r.useState)(!1),x=m[0],v=m[1],y=(0,r.useRef)(null);(0,r.useEffect)((function(){v(!1)}),[t]),(0,r.useEffect)((function(){var e=y.current;e&&e.complete&&0===e.naturalWidth&&v(!0)}),[t]);var w=Boolean(t)&&!x&&n;return(0,o.jsx)(a,{className:g,$fill:d,$ratio:p,$radius:h,style:w?{backgroundColor:n}:void 0,children:t&&!x&&(0,o.jsx)(s,{ref:y,src:t,alt:c,loading:"lazy",onError:function(){return v(!0)}})})};var s=i.default.img.withConfig({componentId:"sc-12zn0gw-0"})(["display:block;width:100%;height:100%;object-fit:cover;transition:transform 400ms cubic-bezier(0.22,1,0.36,1);@media (prefers-reduced-motion:reduce){transition:none;}"]),a=i.default.div.withConfig({componentId:"sc-12zn0gw-1"})(["overflow:hidden;background-color:",";",""],(function(e){return e.theme.colors.UIBorders}),(function(e){var t=e.$fill,n=e.$ratio,r=e.$radius;return t?(0,i.css)(["position:absolute;inset:0;z-index:0;"]):(0,i.css)(["position:relative;border-radius:",";aspect-ratio:",";"],r,n)}))},65528:function(e,t,n){"use strict";n.d(t,{F:function(){return h}});var r=n(41664),i=n(67294),o=n(77892),s=n(80198),a=n.n(s),c=n(10195),l=n(7240),d=n(54714),u=n(91081),p=n(85893),f=function(e){return null!==e&&void 0!==e&&e.avatar&&e.avatar!=="".concat("https://api.paygame.ru","/static/img/user-default.png")?e.avatar:"/static/images/unknown.svg"},h=function(e){var t=e.offer,n=e.showGame,s=void 0===n||n,d=e.showType,u=void 0===d||d,h=e.showSeller,A=void 0===h||h,V=e.mediaDisabled,_=void 0!==V&&V,N=e.preview,D=void 0!==N&&N,E=e.roundPrice,H=void 0!==E&&E,R=t.game,F=t.offerType,M=t.seller,W=H?Math.ceil(t.price):Number(t.price),U=H?Math.ceil(t.oldPrice):Number(t.oldPrice),$=U>W?Math.floor(100-100*t.price/t.oldPrice):0,L=(0,i.useState)(!1),X=L[0],G=L[1],J=(0,c.X)(t),Y=function(e){var t,n;if((null===e||void 0===e?void 0:e.rating)>0)return e.rating;var r=null===e||void 0===e||null===(t=e.extra)||void 0===t||null===(n=t.foreginStat)||void 0===n?void 0:n.rating;return r>0?r:0}(M),K=s&&!!(null!==R&&void 0!==R&&R.icon||null!==R&&void 0!==R&&R.title),Q=u&&!(null===F||void 0===F||!F.name),ee=K||Q,te=(0,p.jsxs)(g,{as:D?"div":void 0,children:[ee&&(0,p.jsxs)(m,{children:[K&&(0,p.jsx)(x,{children:(0,p.jsx)("img",{src:null===R||void 0===R?void 0:R.icon,alt:"",loading:"lazy"})}),(0,p.jsxs)(v,{children:[Q&&(0,p.jsx)(y,{children:F.name}),K&&(0,p.jsx)(w,{children:null===R||void 0===R?void 0:R.title})]})]}),_?t.autoDelivery&&(0,p.jsx)(j,{children:(0,p.jsxs)(k,{$static:!0,children:[(0,p.jsx)("img",{src:a(),alt:"",width:"17",height:"17"}),(0,p.jsx)("span",{children:"\u0410\u0432\u0442\u043e\u0432\u044b\u0434\u0430\u0447\u0430"})]})}):(0,p.jsxs)(b,{$icon:J,children:[!X&&(0,p.jsx)("img",{src:(0,c.P)(t),alt:"",loading:"lazy",onError:function(){return G(!0)}}),t.autoDelivery&&(0,p.jsxs)(k,{children:[(0,p.jsx)("img",{src:a(),alt:"",width:"17",height:"17"}),(0,p.jsx)("span",{children:"\u0410\u0432\u0442\u043e\u0432\u044b\u0434\u0430\u0447\u0430"})]})]}),(0,p.jsxs)(C,{children:[(0,p.jsxs)(I,{children:[(0,p.jsx)(S,{children:(0,l.i3)(W)}),$>0&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(O,{children:["\u2212",$,"%"]}),(0,p.jsx)(q,{children:(0,l.i3)(U)})]})]}),(0,p.jsx)(z,{children:t.title}),A&&(null===M||void 0===M?void 0:M.username)&&(0,p.jsxs)(T,{children:[(0,p.jsx)(P,{src:f(M),alt:"",loading:"lazy"}),(0,p.jsx)(Z,{children:M.username}),Y>0&&(0,p.jsx)(B,{children:(0,p.jsx)(o.Z,{rating:Y,reviewCount:M.reviewCount,blue:!(M.rating>0),showNumber:!0,shorted:!0,marginTop:!1})})]})]})]});return D?te:(0,p.jsx)(r.default,{passHref:!0,href:"/offers/".concat(t.id),children:te})},g=d.default.a.withConfig({componentId:"sc-15ji33p-0"})(["display:flex;flex-direction:column;gap:10px;width:100%;height:100%;text-decoration:none;color:",";"],(function(e){return e.theme.colors.text})),m=d.default.div.withConfig({componentId:"sc-15ji33p-1"})(["display:flex;align-items:center;gap:10px;min-width:0;"]),x=d.default.span.withConfig({componentId:"sc-15ji33p-2"})(["position:relative;flex:0 0 auto;width:34px;height:34px;border-radius:10px;background:",";display:flex;align-items:center;justify-content:center;img{width:58%;height:58%;object-fit:contain;",";}"],u.mm,u.mV),v=d.default.span.withConfig({componentId:"sc-15ji33p-3"})(["display:flex;flex-direction:column;min-width:0;"]),y=d.default.span.withConfig({componentId:"sc-15ji33p-4"})(["font-family:",";font-size:16px;font-weight:600;line-height:1.25;letter-spacing:-0.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],u.jf),w=d.default.span.withConfig({componentId:"sc-15ji33p-5"})(["font-size:14px;line-height:1.25;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.theme.colors.h})),b=d.default.div.withConfig({componentId:"sc-15ji33p-6"})(["position:relative;aspect-ratio:4 / 3;border-radius:",";overflow:hidden;flex:0 0 auto;background:",";@supports not (aspect-ratio:4 / 3){padding-top:75%;}> img{position:absolute;inset:0;width:100%;height:100%;object-fit:",";padding:",";}"],u.q0.media,(function(e){return e.theme.colors.primary}),(function(e){return e.$icon?"contain":"cover"}),(function(e){return e.$icon?"18%":"0"})),j=d.default.div.withConfig({componentId:"sc-15ji33p-7"})(["display:flex;align-items:center;gap:8px;"]),k=d.default.span.withConfig({componentId:"sc-15ji33p-8"})(["position:",";left:8px;top:8px;display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:8px;font-size:14px;font-weight:400;line-height:1.15;color:#40c170;background:rgb(25 73 43 / 84%);backdrop-filter:blur(6px);"],(function(e){return e.$static?"static":"absolute"})),C=d.default.div.withConfig({componentId:"sc-15ji33p-9"})(["display:flex;flex-direction:column;flex:1 1 auto;min-height:0;"]),I=d.default.div.withConfig({componentId:"sc-15ji33p-10"})(["display:flex;align-items:center;gap:8px;min-width:0;
1"]),O=d.default.span.withConfig({componentId:"sc-15ji33p-11"})(["flex:0 0 auto;padding:3px 7px;border-radius:8px;font-size:14px;font-weight:700;line-height:1.15;color:#fff;background:",";"],(function(e){return e.theme.colors.orange})),q=d.default.span.withConfig({componentId:"sc-15ji33p-12"})(["display:none;flex:0 1 auto;@media screen and (min-width:640px){display:inline;}font-size:16px;line-height:1.2;font-variant-numeric:tabular-nums;text-decoration:line-through;color:",";white-space:nowrap;overflow:hidden;"],(function(e){return e.theme.colors.h})),S=d.default.div.withConfig({componentId:"sc-15ji33p-13"})(["font-family:",";font-size:20px;font-weight:800;line-height:1.2;letter-spacing:-0.02em;font-variant-numeric:tabular-nums;"],u.jf),z=d.default.div.withConfig({componentId:"sc-15ji33p-14"})(["margin-top:6px;font-size:16px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;"]),T=d.default.div.withConfig({componentId:"sc-15ji33p-15"})(["display:flex;align-items:center;gap:8px;min-width:0;padding-top:10px;"]),P=d.default.img.withConfig({componentId:"sc-15ji33p-16"})(["width:20px;height:20px;border-radius:50%;object-fit:cover;flex:0 0 auto;"]),Z=d.default.span.withConfig({componentId:"sc-15ji33p-17"})(["font-size:14px;line-height:1.2;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;"],(function(e){return e.theme.colors.h})),B=d.default.div.withConfig({componentId:"sc-15ji33p-18"})(["flex:0 0 auto;display:flex;align-items:center;> *{display:flex;align-items:baseline;}> *,> * span{font-size:14px;line-height:1.2;}"])},77892:function(e,t,n){"use strict";var r=n(54714),i=n(11319),o=n.n(i),s=n(38109),a=n(85893);t.Z=function(e){var t=e.rating,n=e.showNumber,r=void 0!==n&&n,i=e.reviewCount,o=void 0===i?null:i,f=e.reviewCountRight,h=void 0!==f&&f,g=e.reviewCountLabel,m=void 0!==g&&g,x=e.showCaption,v=void 0!==x&&x,y=e.bg,w=void 0!==y&&y,b=e.marginTop,j=void 0===b||b,k=e.blue,C=void 0!==k&&k,I=e.shorted,O=void 0!==I&&I,q=e.dark,S=void 0!==q&&q,z=e.ghost,T=void 0!==z&&z;return(0,a.jsxs)(p,{ghost:T,bg:w,marginTop:j,shorted:O,moreZero:t>0,children:[o>0&&(0,a.jsxs)(u,{reviewCountRight:h,reviewCountLabel:m,children:["(",o,m&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{children:" "+(0,s.A)(o,["\u043e\u0442\u0437\u044b\u0432","\u043e\u0442\u0437\u044b\u0432\u0430","\u043e\u0442\u0437\u044b\u0432\u043e\u0432"])})}),")"]}),r&&(0,a.jsx)(a.Fragment,{children:t>0?(0,a.jsxs)(c,{children:[v&&(0,a.jsx)("span",{children:"\u041e\u0446\u0435\u043d\u043a\u0430: "}),r&&(0,a.jsx)("span",{children:t})]}):(0,a.jsx)(c,{noMarign:!0,children:(0,a.jsx)("span",{children:"\u043d\u0435\u0442 \u043e\u0446\u0435\u043d\u043e\u043a"})})}),t>0&&(0,a.jsx)(l,{dark:S,children:(0,a.jsx)(d,{blue:C,style:{width:"".concat(t/.05,"%")}})})]})};var c=r.default.div.withConfig({componentId:"xvkicl-0"})(["font-weight:bold;margin-right:",";display:inline-block;"],(function(e){return e.noMarign?"auto":"0.5em"})),l=r.default.div.withConfig({componentId:"xvkicl-1"})(["display:flex;background-image:url(",");background-repeat:no-repeat;background-position:0 ",";width:58px;height:10px;"],o(),(function(e){var t=e.theme,n=e.dark;return"dark"===t.name||n?"33.3333%":"0"})),d=r.default.span.withConfig({componentId:"xvkicl-2"})(["display:block;background-image:inherit;background-repeat:no-repeat;background-position:",";background-size:58px;"],(function(e){return e.blue?"0 100%":"0 66.6666%"})),u=r.default.span.withConfig({componentId:"xvkicl-3"})(["margin-left:5px;color:",";font-size:12px;line-height:1em;"," ",""],(function(e){return e.theme.colors.tables.date}),(function(e){return e.reviewCountRight&&(0,r.css)(["@media screen and (min-width:768px){order:3;}"])}),(function(e){return e.reviewCountLabel&&(0,r.css)(["display:inline-flex;flex-direction:row;span{display:none;@media screen and (min-width:768px){display:block;margin-left:4px;}}"])})),p=r.default.div.withConfig({componentId:"xvkicl-4"})(["display:flex;flex-flow:row nowrap;align-items:center;color:",";font-size:12px;line-height:1em;span{vertical-align:middle;}"," "," "," ",""],(function(e){return e.theme.colors.text}),(function(e){return e.ghost&&(0,r.css)(["opacity:0.5;"])}),(function(e){return e.marginTop&&(0,r.css)(["margin-top:4px;"])}),(function(e){return e.bg&&(0,r.css)(["background-color:",";transition:background-color 200ms ease;padding:0.3em 0.66em;border-radius:2em;"],(function(e){return e.theme.colors.reviews.wrapper.bg}))}),(function(e){var t=e.shorted,n=e.moreZero;return t&&(0,r.css)(["flex-direction:row-reverse;","{margin-right:0px;margin-left:",";}","{width:10px;}"],c,n?"0.4em":"0",l)}))},87445:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(67294),i=n(70537),o=function(e,t){var n=(0,r.useRef)(!0);(0,i.L)((function(){if(!n.current){var t=e();return t&&"function"===typeof t?t:void 0}n.current=!1}),t)}},70537:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r=n(67294).useLayoutEffect},57922:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return He}});var r=n(30266),i=n(809),o=n.n(i),s=n(63678),a=n(92809),c=n(29323),l=n(41664),d=n(11163),u=n(67294),p=n(70131),f=n(79817),h=n(95848),g=n(87445),m=n(98284),x=["games","offers","users","articles"],v={games:"\u041a\u0430\u0442\u0430\u043b\u043e\u0433",offers:"\u041b\u
1043e\u0442\u044b",users:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438",articles:"\u041d\u043e\u0432\u043e\u0441\u0442\u0438 \u0438 \u0441\u0442\u0430\u0442\u044c\u0438"},y=n(46857),w=n(85893);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var j=function(e){var t=e.data;return(0,w.jsx)("div",{children:t.map((function(e){return(0,w.jsx)(y.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),e.id)}))})},k=n(54714),C=n(3583),I=function(e){var t=e.data;return(0,w.jsx)(O,{children:t.map((function(e){return(0,w.jsxs)(q,{children:[(0,w.jsx)(S,{children:(0,w.jsx)(l.default,{passHref:!0,href:(0,C.wE)(e),children:(0,w.jsxs)(z,{children:[e.icon&&(0,w.jsx)(T,{src:e.icon,height:"40",alt:e.title}),(0,w.jsx)(P,{children:e.title})]})})}),e.offerData&&e.offerData.length>0&&(0,w.jsx)(Z,{children:e.offerData.map((function(t){return(0,w.jsx)("li",{children:(0,w.jsx)(l.default,{href:"".concat((0,C.wE)(e),"/offers?type=").concat(t.offerType.slug),children:(0,w.jsx)("a",{children:t.offerType.name})})},t.id)}))})]},e.slug)}))})},O=k.default.div.withConfig({componentId:"sc-73rbs4-0"})(["display:grid;grid-template-columns:1fr;gap:12px;@media screen and (min-width:768px){grid-template-columns:repeat(2,1fr);}@media screen and (min-width:992px){grid-template-columns:repeat(3,1fr);}"]),q=k.default.div.withConfig({componentId:"sc-73rbs4-1"})(["min-width:0;background:",";border-radius:12px;padding:16px;box-shadow:",";"],(function(e){var t=e.theme;return"dark"===t.name?"rgba(255, 255, 255, 0.03)":t.colors.tables.body.bg}),(function(e){return e.theme.sectionShadow})),S=k.default.div.withConfig({componentId:"sc-73rbs4-2"})(["display:flex;align-items:flex-start;gap:8px;"]),z=k.default.a.withConfig({componentId:"sc-73rbs4-3"})(["flex:1;min-width:0;display:flex;align-items:center;gap:12px;text-decoration:none;font-size:16px;font-weight:700;color:",";&:hover{text-decoration:underline;}"],(function(e){return e.theme.colors.text})),T=k.default.img.withConfig({componentId:"sc-73rbs4-4"})(["width:40px;height:40px;flex-shrink:0;user-select:none;",""],(function(e){return"dark"!==e.theme.name&&(0,k.css)(["filter:invert(1);"])})),P=k.default.span.withConfig({componentId:"sc-73rbs4-5"})(["overflow:hidden;text-overflow:ellipsis;"]),Z=k.default.ul.withConfig({componentId:"sc-73rbs4-6"})(["list-style-type:none;padding:0;margin:12px 0 0 0;font-size:14px;line-height:1.6em;li{display:inline-block;a{color:",";text-decoration:none;font-weight:normal;&:hover{text-decoration:underline;}}&:not(:last-child){&::after{color:",';content:"\xb7";padding:0 6px;font-size:12px;}}}'],(function(e){return e.theme.colors.catalogGames.link}),(function(e){return e.theme.colors.catalogGames.secondary})),B=function(e){var t=e.callToAction;return(0,w.jsxs)(A,{children:[(0,w.jsx)(h.u,{name:t?"duotone/magnifer":"duotone/ghost"}),(0,w.jsx)("span",{children:t?"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441":"\u041f\u043e \u0432\u0430\u0448\u0435\u043c\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e"})]})},A=k.default.div.withConfig({componentId:"zdf5xm-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;color:",";span{margin-top:8px;}svg{width:80px;height:80px;opacity:0.5;}"],(function(e){return e.theme.colors.forms.label.color})),V=n(65528),_=function(e){var t=e.data;return(0,w.jsx)(N,{children:t.map((function(e){return(0,w.jsx)(D,{children:(0,w.jsx)(V.F,{offer:e})},e.id)}))})},N=k.default.div.withConfig({componentId:"sc-5nf28g-0"})(["display:grid;gap:28px 12px;grid-template-columns:repeat(2,minmax(0,1fr));@media screen and (min-width:640px){gap:32px 16px;grid-template-columns:repeat(3,minmax(0,1fr));}@media screen and (min-width:1024px){grid-template-columns:repeat(4,minmax(0,1fr));}@media screen and (min-width:1360px){grid-template-columns:repeat(5,minmax(0,1fr));}"]),D=k.default.div.withConfig({componentId:"sc-5nf28g-1"})(["min-width:0;"]),E=k.default.div.withConfig({componentId:"nax547-0"})(["display:flex;flex-direction:column;@media screen and (min-width:768px){flex-flow:row nowrap;align-items:flex-start;}"]),H=k.default.div.withConfig({componentId:"nax547-1"})(["@media screen and (min-width:768px){flex-grow:1;}"]),R=k.default.div.withConfig({componentId:"nax547-2"})(["@media screen and (min-width:768px){margin-right:24px;top:96px;position:sticky;width:288px;min-width:288px;}"]),F=k.default.h1.withConfig({componentId:"nax547-3"})(["font-size:24px;line-height:30px;margin:24px 0;overflow-wrap:anywhere;"]),M=k.default.form.withConfig({componentId:"nax547-4"})(["flex-grow:1;display:flex;flex-flow:row nowrap;width:100%;justify-content:flex-end;margin:0 0 24px 0;@media screen and (min-width:992px){justify-content:flex-start;}"]),W=k.default.div.withConfig({componentId:"nax547-5"})(["position:absolute;display:flex;align-items:center;top:0;bottom:0;left:12px;opacity:0.3;transition:opacity 0.2s ease;pointer-events:none;svg{width:20px;height:20px;color:",";}"],(function(e){return e.theme.colors.searchWidget.icons})),U=k.default.div.withConfig({componentId:"nax547-6"})(["display:flex;flex-flow:row nowrap;width:100%;height:44px;position:relative;background-color:",';border-radius:12px;overflow:hidden;transition:width 0.3s ease,background-color 0.2s ease;will-change:background-color;input{width:100%;border:0;background:none;outline:0;padding:0 0 0 44px;font-size:16px;line-height:16px;}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-results-button,input[type="search"]::-webkit-search-results-decoration{-webkit-appearance:none;}&:focus-within{',"{opacity:0.7;}}"],(function(e){return e.theme.colors.searchWidget.bg}),W),$=k.default.button.withConfig({componentId:"nax547-7"})(["background:none;border:0;outline:0;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:8px;color:",';position:relative;svg{opacity:0.3;transition:opacity 0.2s ease,transform 0.2s ease;}&:before{position:absolute;content:"";top:0;bottom:0;left:-24px;width:24px;
1cursor:auto;pointer-events:none;background-image:linear-gradient( to right,transparent,'," );}&:hover{svg{opacity:0.6;}}&:active{svg{transform:scale(0.95);opacity:0.5;}}"],(function(e){return e.theme.colors.searchWidget.icons}),(function(e){return e.theme.colors.searchWidget.bg})),L=k.default.button.withConfig({componentId:"nax547-8"})(["background-color:",";border:0;margin:4px;border-radius:10px;padding:0 12px;font-weight:700;cursor:pointer;will-change:transform;transition:0.2s ease;transition-property:transform,background-color;color:",";&:hover{background-color:",";}&:active{background-color:",";transform:scale(0.98);}"],(function(e){return e.theme.colors.searchWidget.button.default}),(function(e){return e.theme.colors.searchWidget.buttonColor}),(function(e){return e.theme.colors.searchWidget.button.hover}),(function(e){return e.theme.colors.searchWidget.button.active})),X=k.default.hr.withConfig({componentId:"nax547-9"})(["border:0;border-top:1px solid ",";margin:24px 0;"],(function(e){return e.theme.colors.UIBorders})),G=k.default.div.withConfig({componentId:"nax547-10"})(["align-items:center;justify-content:space-between;display:flex;flex-flow:row nowrap;margin-bottom:24px;h3{margin:0;font-size:20px;}"]),J=k.default.a.withConfig({componentId:"nax547-11"})(["display:flex;flex-flow:row nowrap;align-items:center;font-weight:700;cursor:pointer;text-decoration:none;opacity:0.7;will-change:opacity;transition-property:opacity;transition:0.2s ease;span{line-height:20px;white-space:nowrap;display:inline;}svg{width:20px;height:20px;will-change:transform;transition-property:transform;transition:0.2s ease;margin-left:4px;}&:hover{opacity:1;svg{transform:translateX(2px);opacity:1;}}"]),Y=k.default.div.withConfig({componentId:"nax547-12"})(["margin-top:24px;width:100%;display:flex;align-items:center;justify-content:center;"]),K=(0,c.Pi)((function(e){var t=e.store,n=(0,d.useRouter)().query,r=(0,u.useRef)(null),i=(0,u.useRef)(null);return(0,w.jsx)(M,{searchRef:r,role:"search","aria-label":"\u041d\u0430\u0439\u0442\u0438 \u0438\u0433\u0440\u0443, \u043b\u043e\u0442, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043b\u0438 \u0441\u0442\u0430\u0442\u044c\u044e",action:"/search",method:"get",onSubmit:function(e){e.preventDefault(),t.canSearch&&(i.current&&i.current.blur(),n.type||!x.includes(n.type)?t.search((function(){return d.default.push({pathname:"/search",query:{q:t.q,type:n.type}})})):t.search((function(){return d.default.push({pathname:"/search",query:{q:t.q}})})))},children:(0,w.jsxs)(U,{children:[(0,w.jsx)(W,{children:(0,w.jsx)(h.u,{name:"common/magnifer","aria-hidden":"true"})}),(0,w.jsx)("input",{ref:i,id:"global-search",type:"search",name:"q",placeholder:"\u041f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:"search",spellCheck:!1,"aria-label":"\u041f\u043e\u0438\u0441\u043a",value:t.text,onFocus:function(){return t.setValue("active",!0)},onChange:function(e){return t.setValue("text",e.target.value)}}),t.canClear&&(0,w.jsx)($,{type:"button","aria-label":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441",onClick:function(){i.current&&i.current.focus(),t.clear(!1)},children:(0,w.jsx)(h.u,{name:"common/close-circle","aria-hidden":"true"})}),t.text.length>0&&(0,w.jsx)(L,{type:"submit",children:"\u0418\u0441\u043a\u0430\u0442\u044c"})]})})})),Q=function(e){var t=e.data;return(0,w.jsx)(ee,{children:t.map((function(e){return(0,w.jsx)(l.default,{href:"".concat((0,C.wE)(e.game),"/offers/selection/").concat(e.slug),passHref:!0,children:(0,w.jsxs)(oe,{children:[(0,w.jsx)(te,{children:(0,w.jsx)("img",{src:e.game.icon,alt:e.game.title,width:"24",height:"24"})}),(0,w.jsxs)(ne,{children:[(0,w.jsx)(re,{children:e.title}),(0,w.jsxs)(ie,{children:[e.offerType.name," ",e.game.title]})]})]})},e.slug)}))})},ee=k.default.div.withConfig({componentId:"cwz649-0"})(["@media screen and (max-width:767px){display:flex;flex-flow:row nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding-inline:16px;scroll-padding-inline-start:16px;margin-left:-16px;margin-right:-16px;&::-webkit-scrollbar{display:none;}& > *{scroll-snap-align:start;}-webkit-mask-image:linear-gradient( to right,transparent,"," 16px,"," calc(100% - 16px),transparent 100% );mask-image:linear-gradient( to right,transparent,"," 16px,"," calc(100% - 16px),transparent 100% );}@media screen and (min-width:768px){margin-top:-16px;overflow:visible;}"],(function(e){return e.theme.colors.bg}),(function(e){return e.theme.colors.bg}),(function(e){return e.theme.colors.bg}),(function(e){return e.theme.colors.bg})),te=k.default.div.withConfig({componentId:"cwz649-1"})(["width:32px;min-width:32px;height:32px;background-color:",";border-radius:8px;display:flex;align-items:center;justify-content:center;",""],(function(e){var t=e.theme;return"dark"===t.name?t.colors.searchWidget.button.default:"rgba(0, 0, 0, 0.08)"}),(function(e){return"dark"!==e.theme.name&&(0,k.css)(["img{filter:invert(1);}"])})),ne=k.default.div.withConfig({componentId:"cwz649-2"})(["display:flex;flex-direction:column;margin-left:8px;"]),re=k.default.span.withConfig({componentId:"cwz649-3"})(["line-height:14px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),ie=k.default.span.withConfig({componentId:"cwz649-4"})(["line-height:14px;font-size:12px;margin-top:2px;opacity:0.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),oe=k.default.a.withConfig({componentId:"cwz649-5"})(["display:inline-flex;flex-flow:row nowrap;align-items:center;white-space:nowrap;background-color:",";will-change:transform;transition:0.2s ease;transition-property:transform,background-color;color:",";padding:4px 12px 4px 4px;line-height:20px;font-size:16px;font-weight:600;margin-right:12px;border-radius:10px;cursor:pointer;text-decoration:none;&:hover{background-color:",";}&:active{background-color:",";transform:scale(0.98);}@media screen and (min-width:768px){margin-top:12px;}"],(function(e){var t=e.theme;return"dark"===t.name?t.colors.searchWidget.button.default:"rgba(0, 0, 0, 0.05)"}),(function(e){var t=e.theme;return"dark"===t.name?t.colors.searchWidget.buttonColor:t.colors.text}),(function(e){var t=e.theme;return"dark"===t.name?t.colors.searchWidget.button.hover:"rgba(0, 0, 0, 0.08)"}),(function(e){var t=e.theme;return"dark"===t.name?t.colors.searchWidget.button.active:"rgba(0, 0, 0, 0.06)"})),se=n(97131),ae=n(68216),ce=n(25997),le=n(68949),de=n(38147),ue=n(17749),pe=n(86886);function fe(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
1if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return he(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return he(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ge(e,t){if(null!==t&&void 0!==t&&t.length&&e){var n,r=fe(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;Object.assign(i,(0,pe.fs)(i,e))}}catch(o){r.e(o)}finally{r.f()}}}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ve=function(){function e(t){var n=this,i=t.userStore,s=t.q,c=t.results,l=t.resultsByType;(0,ae.Z)(this,e),(0,a.Z)(this,"type",""),(0,a.Z)(this,"text",""),(0,a.Z)(this,"results",{selects:[],games:[],offers:[],users:[],articles:[]}),(0,a.Z)(this,"resultsByType",{pagination:{page:1,pageSize:20},results:[]}),(0,a.Z)(this,"loading",!1),(0,a.Z)(this,"userStore",null),(0,a.Z)(this,"setValue",(function(e,t){n[e]=t})),(0,a.Z)(this,"clear",(function(){n.text=""})),(0,a.Z)(this,"search",function(){var e=(0,r.Z)(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.q.length>0&&(n.addToHistory(n.q),t());case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,a.Z)(this,"nextPage",(0,r.Z)(o().mark((function e(){var t,r,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n.loading=!0,e.next=4,de.Z.searchByType({q:n.q,type:n.resultsByType.searchType,page:(null===(t=n.resultsByType.pagination)||void 0===t?void 0:t.nextPage)||1,accessToken:!ue.s&&null!==(r=n.userStore)&&void 0!==r&&r.token?n.userStore.token:""});case 4:200===(i=e.sent).status&&i.data&&Array.isArray(i.data.results)&&(0,le.z)((function(){"offers"===i.data.searchType&&i.data.results&&i.data.results.length>0&&n.userStore&&ge(n.userStore,i.data.results),n.resultsByType=xe(xe({},i.data),{},{results:[].concat((0,se.Z)(n.resultsByType.results),(0,se.Z)(i.data.results))}),n.loading=!1})),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})))),i&&(this.userStore=i),s&&s.length>0&&(this.text=s),c&&(this.results=c),l&&(this.resultsByType=l),(0,le.ky)(this,{},{autoBind:!0})}return(0,ce.Z)(e,[{key:"getHistory",value:function(){var e=[];try{var t=window.localStorage.getItem("pg_search_history"),n=JSON.parse(t);Array.isArray(n)&&(e=n.slice(0,10))}catch(r){}return e}},{key:"saveHistory",value:function(e){try{window.localStorage.setItem("pg_search_history",JSON.stringify(e.slice(0,10)))}catch(t){}}},{key:"addToHistory",value:function(e){var t=(0,se.Z)(new Set([e].concat((0,se.Z)(this.getHistory())))).slice(0,10);this.saveHistory(t)}},{key:"canClear",get:function(){return this.text.length>0}},{key:"q",get:function(){return this.text.trim().toLowerCase().replace(/\s+/g," ").slice(0,255)}},{key:"canSearch",get:function(){return this.q.length>0}},{key:"slicedResults",get:function(){return xe(xe({},this.results),{},{games:this.results.games&&Array.isArray(this.results.games)?this.results.games.slice(0,3):[],offers:this.results.offers&&Array.isArray(this.results.offers)?this.results.offers.slice(0,3):[],users:this.results.users&&Array.isArray(this.results.users)?this.results.users.slice(0,4):[],articles:this.results.articles&&Array.isArray(this.results.articles)?this.results.articles.slice(0,4):[]})}}]),e}(),ye=n(7866),we=function(e){var t=e.href,n=e.anchor,r=e.active;return void 0!==r&&r?(0,w.jsx)(ke,{active:!0,children:(0,w.jsx)("span",{children:n})}):(0,w.jsx)(ke,{children:(0,w.jsx)(l.default,{href:t,children:(0,w.jsx)("a",{children:n})})})},be=function(){var e=(0,d.useRouter)().query;return(0,w.jsxs)(je,{children:[(0,w.jsx)(we,{href:{pathname:"/search",query:{q:e.q}},anchor:"\u0412\u0435\u0437\u0434\u0435",active:!e.type||!x.includes(e.type)}),(0,w.jsx)(we,{href:{pathname:"/search",query:{q:e.q,type:"games"}},anchor:"\u041a\u0430\u0442\u0430\u043b\u043e\u0433",active:"games"===e.type}),(0,w.jsx)(we,{href:{pathname:"/search",query:{q:e.q,type:"offers"}}
1,anchor:"\u041b\u043e\u0442\u044b",active:"offers"===e.type}),(0,w.jsx)(we,{href:{pathname:"/search",query:{q:e.q,type:"users"}},anchor:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438",active:"users"===e.type}),(0,w.jsx)(we,{href:{pathname:"/search",query:{q:e.q,type:"articles"}},anchor:"\u041d\u043e\u0432\u043e\u0441\u0442\u0438 \u0438 \u0441\u0442\u0430\u0442\u044c\u0438",active:"articles"===e.type})]})},je=k.default.ul.withConfig({componentId:"sc-158akze-0"})(["list-style-type:none;margin:0;padding:0;margin-bottom:24px;display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;margin-top:8px;@media screen and (min-width:768px){border-radius:8px;overflow:hidden;border-radius:8px;border:1px solid ",";background-color:",";transition:border-color 200ms ease;flex-direction:column;gap:0;margin-top:0;}"],(function(e){return e.theme.colors.UIBorders}),(function(e){return e.theme.colors.tables.body.bg})),ke=k.default.li.withConfig({componentId:"sc-158akze-1"})(["display:inline-flex;padding:8px 0;color:",";transition:200ms ease;transition-property:border-color color;border-radius:8px;background-color:",";font-size:14px;margin:0;@media screen and (min-width:768px){display:block;padding:0;border-radius:0;background-color:transparent;}a,span{color:inherit;text-decoration:none;padding:0 1em;transition:border-color 200ms ease;}",";@media screen and (min-width:768px){a,span{text-decoration:none;display:block;padding:12px 16px;position:relative;font-size:16px;&:hover{background-color:",";}}&:not(:last-child){a,span{border-bottom:1px solid ",";}}","}"],(function(e){var t=e.theme;return e.active?t.colors.tabs.linear.color.active:t.colors.tabs.linear.color.default}),(function(e){return e.theme.colors.UIBorders}),(function(e){return e.active&&(0,k.css)(["position:relative;background-color:rgba(255,87,34,0.1);a,span{color:#ff5722;@media screen and (min-width:768px){color:inherit;}}"])}),(function(e){return e.theme.colors.notificationHover}),(function(e){return e.theme.colors.UIBorders}),(function(e){return e.active&&(0,k.css)(["a,span{cursor:default;background-color:",';&:before{position:absolute;content:"";top:0;bottom:0;left:0;width:4px;background-color:#484a5b;}}'],(function(e){return e.theme.colors.notificationHover}))})),Ce=n(5152),Ie=n(29032),Oe=n(77892),qe=(0,Ce.default)((function(){return n.e(3295).then(n.bind(n,43295)).then((function(e){return e.UserNotificationsIndicator}))}),{loadableGenerated:{webpack:function(){return[43295]},modules:["../components/Search/Page/Users.jsx -> src/components/UserNotificationsIndicator"]}}),Se=function(e){var t=e.data;return(0,w.jsx)(ze,{children:t.map((function(e){var t,n,r,i,o,s,a,c;return(0,w.jsx)(l.default,{passHref:!0,href:"/users/".concat(e.username),children:(0,w.jsxs)(Te,{children:[(0,w.jsx)(Ie.default,{showOnline:!1,iSize:64,user:e}),(0,w.jsxs)(Ze,{children:[(null===(t=e.plan)||void 0===t?void 0:t.title)&&(null===(n=e.plan)||void 0===n?void 0:n.image)&&(null===(r=e.plan)||void 0===r?void 0:r.image.length)>0&&(0,w.jsx)("img",{src:"".concat(e.plan.image),alt:e.plan.title,width:"10",height:"10"}),(0,w.jsxs)(Pe,{children:[(0,w.jsx)("span",{children:e.username}),(null===(i=e.notifications)||void 0===i?void 0:i.telegram)&&(0,w.jsx)(qe,{})]})]}),(0,w.jsx)(Oe.Z,{rating:e.rating&&e.rating>0?e.rating:null!==(o=e.extra)&&void 0!==o&&null!==(s=o.foreginStat)&&void 0!==s&&s.rating&&e.extra.foreginStat.rating>0?null===(a=e.extra)||void 0===a||null===(c=a.foreginStat)||void 0===c?void 0:c.rating:0,blue:0===e.rating,showNumber:!0})]})},e.username)}))})},ze=k.default.div.withConfig({componentId:"sc-1ozwpqu-0"})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));grid-column-gap:24px;grid-row-gap:24px;border-radius:8px;"]),Te=k.default.a.withConfig({componentId:"sc-1ozwpqu-1"})(["display:flex;flex-direction:column;border:1px solid ",";background-color:",";border-radius:8px;cursor:pointer;padding:16px;text-decoration:none;align-items:center;justify-content:center;"],(function(e){return e.theme.colors.UIBorders}),(function(e){return e.theme.colors.tables.body.bg})),Pe=k.default.div.withConfig({componentId:"sc-1ozwpqu-2"})(["display:inline-block;line-height:1em;font-weight:700;span{vertical-align:middle;}"]),Ze=k.default.div.withConfig({componentId:"sc-1ozwpqu-3"})(["margin-top:8px;img{margin-right:2px;}"]),Be=n(7711);function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Ae(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _e=(0,c.Pi)((function(e){var t,n,r,i,o,s,a,c,p,v=e.q,y=e.type,b=e.results,k=e.resultsByType,C=(0,m.lM)().userStore,O=(0,d.useRouter)(),q=O.query,S=(O.pathname,(0,u.useState)((function(){return new ve({q:v,results:b,resultsByType:k,userStore:C})}))),z=S[0],T=S[1];(0,g.l)((function(){T((function(){return new ve({q:v,results:b,resultsByType:k,userStore:C})}))}),[v,y]);var P=(0,u.useMemo)((function(){return!(q.type&&x.includes(q.type))}),[q.type]);return 0===v.length?(0,w.jsx)(f.W,{children:(0,w.jsxs)(E,{children:[(0,w.jsx)(R,{children:(0,w.jsx)(be,{})}),(0,w.jsxs)(H,{children:[(0,w.jsx)(K,{store:z}),(0,w.jsx)(B,{callToAction:!0})]})]})}):(0,w.jsx)(f.W,{children:(0,w.jsxs)(E,{children:[(0,w.jsx)(R,{children:(0,w.jsx)(be,{})}),(0,w.jsxs)(H,{children:[(0,w.jsx)(K,{store:z}),(0,w.jsxs)(F,{children:["\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430: \xab",v,"\xbb"]}),P?(0,w.jsx)(w.Fragment,{children:0===z.results.totalCount?(0,w.jsx)(B,{}):(0,w.jsxs)(w.Fragment,{children:[(null===(t=z.results.selects)||void 0===t?void 0:t.length)>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(X,{}),(0,w.jsx)(Q,{data:z.slicedResults.selects})]}),(null===(n=z.results.games)||void 0===n?void 0:n.length)>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(X,{}),(0,w.jsxs)(G,{children:[(0,w.jsx)("h3",{children:"\u041a\u0430\u0442\u0430\u043b\u043e\u0433"}),(null===(r=z.results.games)||void 0===r?void 0:r.length)>3&&(0,w.jsx)(l.default,{passHref:!0,href:{pathname:q.pathname,query:Ve(Ve({},q),{},{type:"games"})},children:(0,w.jsxs)(J,{children:[(0,w.jsx)("span",{children:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435"}),(0,w.jsx)(h.u,{name:"common/angle-right"})]})})]}),(0,w.jsx)(I,{data:z.slicedResults.games})]}),(null===(i=z.results.offers)||void 0===i?void 0:i.length)>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(X,{}),(0,w.jsxs)(G,{children:[(0,w.jsx)("h3",{children:"\u041b\u043e\u0442\u044b"}),(null===(o=z.results.offers)||void 0===o?void 0:o.length)>3&&(0,w.jsx)(l.default,{passHref:!0,href:{pathname:q.pathname,query:Ve(Ve({},q),{},{type:"offers"})},children:(0,w.jsxs)(J,{children:[(0,w.jsx)("span",{children:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435"}),(0,w.jsx)(h.u,{name:"common/angle-right"})]})})]}),(0,w.jsx)(_,{data:z.slicedResults.offers})]}),(null===(s=z.results.users)||void 0===s?void 0:s.length)>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(X,{}),(0,w.jsxs)(G,{children:[(0,w.jsx)("h3",{children:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438"}),(null===(a=z.results.users)||void 0===a?void 0:a.length)>4&&(0,w.jsx)(l.default,{passHref:!0,href:{pathname:q.pathname,query:Ve(Ve({},q),{},{type:"users"})},children:(0,w.jsxs)(J,{children:[(0,w.jsx)("span",{children:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435\u0445"}),(0,w.jsx)(h.u,{name:"common/angle-right"})]})})]}),(0,w.jsx)(Se,{data:z.slicedResults.users})]}),(null===(c=z.results.articles)||void 0===c?void 0:c.length)>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(X,{}),(0,w.jsxs)(G,{children:[(0,w.jsx)("h3",{children:"\u041d\u043e\u0432\u043e\u0441\u0442\u0438 \u0438 \u0441\u0442\u0430\u0442\u044c\u0438"}),(null===(p=z.results.articles)||void 0===p?void 0:p.length)>4&&(0,w.jsx)(l.default,{passHref:!0,href:{pathname:q.pathname,query:Ve(Ve({},q),{},{type:"articles"})},children:(0,w.jsxs)(J,{children:[(0,w.jsx)("span",{children:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435"}),(0,w.jsx)(h.u,{name:"common/angle-right"})]})})]}),(0,w.jsx)(j,{data:z.slicedResults.articles})]})]})}):(0,w.jsx)(w.Fragment,{children:0===z.resultsByType.pagination.totalCount?(0,w.jsx)(B,{}):(0,w.jsx)(Ne,{store:z,type:q.type})})]})]})})})),Ne=(0,c.Pi)((function(e){var t,n=e.store,r=e.type,i=(0,p.YD)({}),o=i.ref,s=i.inView;return(0,u.useEffect)((function(){s&&!n.loading&&n.nextPage()}),[s]),(0,w.jsxs)(w.Fragment,{children:["games"===r&&(0,w.jsx)(I,{data:n.resultsByType.results}),"offers"===r&&(0,w.jsx)(_,{data:n.resultsByType.results}),"users"===r&&(0,w.jsx)(Se,{data:n.resultsByType.results}),"articles"===r&&(0,w.jsx)(j,{data:n.resultsByType.results}),(null===(t=n.resultsByType.pagination)||void 0===t?void 0:t.hasNext)&&n.resultsByType.pagination.page!==n.resultsByType.pagination.totalPages&&(0,w.jsx)(Y,{children:(0,w.jsxs)(ye.ZP,{ref:o,large:!0,disabled:n.loading,ghost:!0,onClick:function(){return n.nextPage()},children:[n.loading&&(0,w.jsx)(Be.Z,{marginRight:!0}),"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451"]})})]})})),De=n(91287),Ee=function(e){var t=e.q,n=e.type,r=e.results,i=e.resultsByType;return(0,w.jsx)(_e,{q:t,type:n,results:r,resultsByType:i})};Ee.getLayout=function(e){return(0,w.jsx)(s.Z,{title:e.props.meta.title,de
1scription:e.props.meta.description,robots:e.props.meta.robots,paddingTop:!1,paddingBottom:!0,container:!1,showBreadcrumbs:!0,children:e})},Ee.getInitialProps=function(){var e=(0,r.Z)(o().mark((function e(t,n){var r,i,s,a,c,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={status:200,q:"",type:null,results:{selects:[],games:[],offers:[],users:[],articles:[]},resultsByType:{pagination:{page:1,pageSize:20},results:[]},meta:{title:"\u041f\u043e\u0438\u0441\u043a",description:"",robots:"noindex, follow"}},i=[{title:"\u041f\u043e\u0438\u0441\u043a",path:"/search"}],!(s=Array.isArray(t.query.q)?t.query.q[0]:t.query.q)){e.next=30;break}if(!((a=s.trim().toLowerCase().replace(/\s+/g," ")).length>0)){e.next=30;break}if(r.q=a,r.meta.title="\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \xab".concat(a,"\xbb"),!t.query.type||!x.includes(t.query.type)){e.next=21;break}return r.type=t.query.type,e.prev=10,e.next=13,de.Z.searchByType({q:a,type:t.query.type,accessToken:!ue.s&&n.userStore.token?n.userStore.token:""});case 13:200===(c=e.sent).status&&c.data&&(i.push({title:v[t.query.type],path:"/search?type=".concat(t.query.type)},{title:a,path:"/search?type=".concat(t.query.type,"&q=").concat(a)}),"offers"===t.query.type&&c.data.results&&c.data.results.length>0&&n.userStore&&ge(n.userStore,c.data.results),r.resultsByType=c.data),e.next=19;break;case 17:e.prev=17,e.t0=e.catch(10);case 19:e.next=30;break;case 21:return e.prev=21,e.next=24,de.Z.search({q:a,size:5,accessToken:!ue.s&&n.userStore.token?n.userStore.token:""});case 24:200===(l=e.sent).status&&l.data&&(i.push({title:a,path:"/search?q=".concat(a)}),l.data.offers&&l.data.offers.length>0&&n.userStore&&ge(n.userStore,l.data.offers),r.results=l.data),e.next=30;break;case 28:e.prev=28,e.t1=e.catch(21);case 30:return n.uiStore.setBreadcrumbs(i),e.abrupt("return",r);case 32:case"end":return e.stop()}}),e,null,[[10,17],[21,28]])})));return function(t,n){return e.apply(this,arguments)}}();var He=(0,De.Z)({Component:Ee,permission:"PUBLIC"})},38147:function(e,t,n){"use strict";var r=n(83601),i=n(93097);t.Z={getSuggestions:function(e){var t=e.q,n=void 0===t?"":t;return r.ZP.get({url:"/search/suggestions/",params:{q:n}}).catch(i.A)},search:function(e){var t=e.q,n=void 0===t?"":t,o=e.size,s=void 0===o?20:o,a=e.accessToken,c=void 0===a?null:a;return r.ZP.get({url:"/search/",params:{q:n,size:s},accessToken:c}).catch(i.A)},searchByType:function(e){var t=e.q,n=void 0===t?"":t,o=e.type,s=void 0===o?"":o,a=e.size,c=void 0===a?20:a,l=e.page,d=void 0===l?1:l,u=e.accessToken,p=void 0===u?null:u;return r.ZP.get({url:"/search/".concat(s,"/"),params:{q:n,size:c,page:d},accessToken:p}).catch(i.A)}}},91081:function(e,t,n){"use strict";n.d(t,{gJ:function(){return o},mm:function(){return s},mV:function(){return a},jf:function(){return c},i$:function(){return l},Dh:function(){return d},q0:function(){return u},RB:function(){return p}});var r=n(54714),i=function(e){return"light"===e.name},o=function(e){var t=e.theme;return i(t)?"#ffffff":"rgba(255, 255, 255, 0.05)"},s=function(e){var t=e.theme;return i(t)?"#f0f2f5":"rgba(255, 255, 255, 0.1)"},a=(0,r.css)(["filter:",";"],(function(e){var t=e.theme;return i(t)?"brightness(0) opacity(0.75)":"brightness(0) invert(1)"})),c='"Onest", "Nunito Sans", sans-serif',l="16px",d={block:"48px",section:"72px"},u={control:"12px",media:"16px",block:"20px"},p=(0,r.css)(["@media (prefers-reduced-motion:no-preference){transition:transform 0.12s ease;&:active{transform:scale(0.985);}}"])},38109:function(e,t,n){"use strict";function r(e,t){return t[e%100>4&&e%100<20?2:[2,0,1,1,1,2][e%10<5?Math.abs(e)%10:5]]}n.d(t,{A:function(){return r}})},10195:function(e,t,n){"use strict";n.d(t,{P:function(){return i},X:function(){return o}});var r=function(e){var t,n,r=null!==e&&void 0!==e&&null!==(t=e.image)&&void 0!==t&&t.id?e.image:null===e||void 0===e||null===(n=e.images)||void 0===n?void 0:n[0];return r?!1===r.completed?"/static/images/img_in_progress_small.jpeg":r.medium||r.preview||null:null},i=function(e){var t;return r(e)||(null===e||void 0===e||null===(t=e.item)||void 0===t?void 0:t.icon)||"/static/images/defaultTileCover.jpg"},o=function(e){var t;return!r(e)&&!(null===e||void 0===e||null===(t=e.item)||void 0===t||!t.icon)}},86594:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return n(57922)}])},70131:function(e,t,n){"use strict";n.d(t,{YD:function(){return p}});var r=n(67294);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o=new Map,s=new WeakMap,a=0;function c(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(n=e.root)?(s.has(n)||(a+=1,s.set(n,a.toString())),s.get(n)):"0":e[t]);var n})).toString()}function l(e,t,n){if(void 0===n&&(n={}),!e)return function(){};var r=function(e){var t=c(e),n=o.get(t);if(!n){var r,i=new Map,s=new IntersectionObserver((function(t){t.forEach((function(t){var n,o=t.isIntersecting&&r.some((function(e){return t.intersectionRatio>=e}));e.trackVisibility&&"undefined"===typeof t.isVisible&&(t.isVisible=o),null==(n=i.get(t.target))||n.forEac
1h((function(e){e(o,t)}))}))}),e);r=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:s,elements:i},o.set(t,n)}return n}(n),i=r.id,s=r.observer,a=r.elements,l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),s.observe(e),function(){l.splice(l.indexOf(t),1),0===l.length&&(a.delete(e),s.unobserve(e)),0===a.size&&(s.disconnect(),o.delete(i))}}function d(e){return"function"!==typeof e.children}var u=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),d(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=o.prototype;return s.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},s.componentWillUnmount=function(){this.unobserve(),this.node=null},s.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,i=e.trackVisibility,o=e.delay;this._unobserveCb=l(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:i,delay:o})}},s.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},s.render=function(){if(!d(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var o=this.props,s=o.children,a=o.as,c=o.tag,l=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(o,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView"]);return(0,r.createElement)(a||c||"div",i({ref:this.handleNode},l),s)},o}(r.Component);function p(e){var t=void 0===e?{}:e,n=t.threshold,i=t.delay,o=t.trackVisibility,s=t.rootMargin,a=t.root,c=t.triggerOnce,d=t.skip,u=t.initialInView,p=(0,r.useRef)(),f=(0,r.useState)({inView:!!u}),h=f[0],g=f[1],m=(0,r.useCallback)((function(e){void 0!==p.current&&(p.current(),p.current=void 0),d||e&&(p.current=l(e,(function(e,t){g({inView:e,entry:t}),t.isIntersecting&&c&&p.current&&(p.current(),p.current=void 0)}),{root:a,rootMargin:s,threshold:n,trackVisibility:o,delay:i}))}),[Array.isArray(n)?n.toString():n,a,s,c,d,o,i]);(0,r.useEffect)((function(){p.current||!h.entry||c||d||g({inView:!!u})}));var x=[m,h.inView,h.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}u.displayName="InView",u.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}}},function(e){e.O(0,[6342,9351,5409,9323,1499,3104,8871,1756,8499,9774,2888,179],(function(){return t=86594,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.