1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5754],{45754:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=t(67294),l=t(95798),s=t.n(l),u=t(24176),a=t(46799),c=t(4446),r=t(27929),o=t(85893);function d(e){var n=(0,i.useState)([]),t=n[0],l=n[1],d=e.isLogin,h=e.apiName,m=e.searchInputName,p=e.onTypeChange,f=e.onSearch,v=e.platformCount,g=(0,a.Z)(c.CP,{manual:!0,onSuccess:function(e){e&&(null===e||void 0===e?void 0:e.length)>0&&l(e)}}).runAsync,_=["PMDZ","YBEGDZ"].includes(h),j=(0,i.useState)(m),x=j[0],y=j[1],N=(0,i.useState)((0,u.Zj)()[0].type),w=N[0],Z=N[1],k=(0,i.useState)(!1),C=k[0],G=k[1];return(0,i.useEffect)((function(){d||y("")}),[d]),(0,o.jsxs)("ul",{className:s().filter,children:[(0,u.Zj)(_).map((function(e){return e.type!==u.YX.favor||d?"PMDZ"!==h&&[u.YX.mg,u.YX.ygg].includes(null===e||void 0===e?void 0:e.type)?null:(0,o.jsx)("li",{className:w===e.type?s().active:"",onClick:function(){y(""),Z(e.type),p(e.type)},children:(0,o.jsxs)("span",{children:[e.name,"1"===e.type&&v?(0,o.jsxs)(o.Fragment,{children:["(",v,"\u79cd)"]}):null]})},e.type):null})),(0,o.jsxs)("div",{className:s().search,children:[(0,o.jsx)("input",{value:x,type:"text",placeholder:"\u8f93\u5165\u6e38\u620f\u540d\u79f0",maxLength:20,onFocus:function(){return g(h).then()},onBlur:function(){return setTimeout((function(){l([])}),200)},onChange:function(e){return y(e.target.value)},onKeyUp:function(e){x?"Enter"===e.key&&(G(!0),f(x)):C&&(f(""),G(!1))}}),(0,o.jsx)("i",{onClick:function(){f(x),G(!0)}}),(null===t||void 0===t?void 0:t.length)>0&&(0,o.jsxs)("div",{className:s().hotGame,children:[(0,o.jsx)("p",{children:"\u70ed\u95e8\u641c\u7d22"}),(0,o.jsx)("ul",{children:null===t||void 0===t?void 0:t.map((function(e){return(0,o.jsxs)("li",{onClick:function(){G(!0),y(e.zhName||""),f(e.zhName||"")},children:[(0,o.jsx)("div",{className:s().airImg,children:(0,o.jsx)(r.Z,{src:(null===e||void 0===e?void 0:e.url)||"",className:s().itemImg,alt:"",width:48,height:30,objectFit:"cover"})}),(0,o.jsx)("span",{children:e.zhName})]},e.id)}))})]})]})]})}},95798:function(e){e.exports={filter:"v57z1gS1wg3rMVgiAP3sWw__",active:"WZqN89iwirFR_gq88p9Jgw__",search:"GiYlj2NHpUHiO3GD75u5UA__",hotGame:"iU9QO_7Ada_PBzoryLL6_Q__",itemImg:"mdIZ2XMpqqQPnQvMK8L4Rw__",airImg:"l5wj_vG0orp2yizLMkZGTw__"}}}]);
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.