1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[705],{1776:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apps",function(){return e(9235)}])},1312:function(n,t,e){"use strict";var i=e(8945),o=e(7790);let r=n=>{let t=n.status,e="Request error";switch(t){case 400:e="Request error";break;case 401:e="Unauthorized";break;case 403:e="Access denied";break;case 404:e="Resource not found";break;case 408:e="Request timeout";break;case 500:e="Internal server error";break;case 501:e="Service not implemented";break;case 502:e="Gateway error";break;case 503:e="Service is not available";break;case 504:e="Gateway timeout";break;case 505:e="HTTP version is not supported";break;default:e="Unknown error"}return e},a=i.Z.create({baseURL:"https://backend.kcc.network/api/v1",timeout:1e4});a.interceptors.request.use(async n=>n),a.interceptors.response.use(async n=>{if(200===n.status)return 500===n.data.code&&o.ZP.error(n.data.msg),Promise.resolve(n);{let t=r(n);return o.ZP.error(t),Promise.reject(Error(t))}},n=>{let t=n.message||"";if((null==n?void 0:n.message)&&(t=n.message),null==n?void 0:n.response){var e,i;console.log(null==n?void 0:n.response),t=null!==(i=n.response.data.message)&&void 0!==i?i:null===(e=n.response)||void 0===e?void 0:e.data}return(null==t?void 0:t.indexOf("timeout"))>=0&&(t="timeout"),o.ZP.error(t),Promise.reject(Error(t))}),t.Z=a},2337:function(n,t,e){"use strict";e.d(t,{p:function(){return o}});var i=e(1312);class o{static categoryList(){return(0,i.Z)({method:"get",url:"".concat(this.baseUrl,"/category?page=1&page_size=100")})}static dappList(n,t,e){let o="".concat(this.baseUrl,"?page=").concat(n,"&page_size=").concat(t);return e&&(o+="&category=".concat(e)),(0,i.Z)({method:"get",url:o})}static addApp(n){return(0,i.Z)({method:"post",url:"".concat(this.baseUrl,"/submit"),data:n})}}o.baseUrl="/dapp"},4404:function(n,t,e){"use strict";e.d(t,{U:function(){return c}});var i=e(7297),o=e(5893),r=e(1577);e(7294);var a=e(4589);function l(){let n=(0,i.Z)(["\n background: ",";\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n color: #fff;\n border-radius: 24px;\n height: 48px;\n padding: 0 36px;\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n outline: none;\n border: none;\n opacity: ",";\n &:hover {\n color: #fff !important;\n background: linear-gradient(\n 0deg,\n rgba(255, 255, 255, 0.2),\n rgba(255, 255, 255, 0.2)\n ),\n #21c397;\n }\n\n @media (max-width: 768px) {\n width: 100%;\n max-width: 300px;\n }\n"]);return l=function(){return n},n}let s=(0,a.ZP)(r.Z).withConfig({componentId:"sc-34bd1dd9-0"})(l(),n=>{let{disabled:t}=n;return t?"#B4B7C1":" #21c397"},n=>{let{disabled:t}=n;return t?.5:1}),c=n=>(0,o.jsx)(s,{...n})},9235:function(n,t,e){"use strict";e.r(t),e.d(t,{__N_SSG:function(){return n2},default:function(){return n1}});var i=e(7297),o=e(5893),r=e(2337),a=e(289),l=e(7294),s=e(4589),c=e(5233),p=e(1163),d=e(5675),f=e.n(d),u=e(1664),m=e.n(u),h=e(1424),g=e(7790),x=e(1416);function w(){let n=(0,i.Z)(["\n width: 100%;\n display: flex;\n flex-flow: row nowrap;\n justify-content: flex-start;\n align-items: center;\n"]);return w=function(){return n},n}function b(){let n=(0,i.Z)(["\n width: auto;\n height: 36px;\n background: #fffefe;\n border-radius: 4px;\n display: flex;\n padding: 0 18px;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 400;\n font-size: 14px;\n cursor: ",";\n pointer-events: ",";\n user-select: none;\n color: ",";\n &:hover {\n color: ",";\n }\n"]);return b=function(){return n},n}function y(){let n=(0,i.Z)(["\n width: 36px;\n height: 36px;\n font-size: 16px;\n"]);return y=function(){return n},n}function v(){let n=(0,i.Z)(["\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n display: flex;\n align-items: center;\n color: #040a2d;\n margin-left: 8px;\n"]);return v=function(){return n},n}let C=s.ZP.div.withConfig({componentId:"sc-3f950e22-0"})(w()),j=s.ZP.div.withConfig({componentId:"sc-3f950e22-1"})(b(),n=>{let{disabled:t}=n;return t?"not-allowed":"pointer"},n=>{let{disabled:t}=n;return t?"none":""},n=>{let{disabled:t}=n;return t?"#7F8393":"#000000"},n=>{let{disabled:t}=n;return t?"#7F8393":"#21C397"}),Z=(0,s.ZP)(h.Z).withConfig({componentId:"sc-3f950e22-2"})(y()),S=s.ZP.div.withConfig({componentId:"sc-3f950e22-3"}
1)(v()),P=n=>{let{currentPage:t,total:e,perPage:i,setCurrentPage:r}=n,{t:a}=(0,c.$G)(),s=l.useMemo(()=>e<i?1:Math.ceil(e/i),[e,i]),[p,d]=l.useState("");l.useEffect(()=>{d(()=>"".concat(t))},[t]);let f=l.useCallback(n=>{"Enter"===n.key&&(!Number.isNaN(p)&&Number(p)>0&&Number(p)<=s?r(()=>p):(g.ZP.warning(a("KCC_common_page_failed")),d(()=>"")))},[p,r,a,s]);return(0,o.jsxs)(C,{children:[(0,o.jsx)(j,{disabled:1===t,onClick:()=>r(n=>n-1),children:a("Page up")}),(0,o.jsxs)(x.bj,{style:{width:"auto",margin:"0 15px"},children:[(0,o.jsx)(Z,{value:p,onChange:n=>d(()=>n.target.value),onKeyDown:n=>f(n)}),(0,o.jsxs)(S,{children:["/ ",s]})]}),(0,o.jsx)(j,{disabled:t===s,onClick:()=>r(n=>n+1),children:a("Page down")})]})};var k=e(4184),z=e.n(k),I=e(8423),$=e(3124),D=e(6159),E=e(6830),N=e(7968),_=e(5503),O=e(4747);let L=new E.E4("antSpinMove",{to:{opacity:1}}),T=new E.E4("antRotate",{to:{transform:"rotate(405deg)"}}),M=n=>({[`${n.componentCls}`]:Object.assign(Object.assign({},(0,O.Wf)(n)),{position:"absolute",display:"none",color:n.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${n.motionDurationSlow} ${n.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${n.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:n.contentHeight,[`${n.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-n.spinDotSize/2},[`${n.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(n.spinDotSize-n.fontSize)/2+2,textShadow:`0 1px 2px ${n.colorBgContainer}`},[`&${n.componentCls}-show-text ${n.componentCls}-dot`]:{marginTop:-(n.spinDotSize/2)-10},"&-sm":{[`${n.componentCls}-dot`]:{margin:-n.spinDotSizeSM/2},[`${n.componentCls}-text`]:{paddingTop:(n.spinDotSizeSM-n.fontSize)/2+2},[`&${n.componentCls}-show-text ${n.componentCls}-dot`]:{marginTop:-(n.spinDotSizeSM/2)-10}},"&-lg":{[`${n.componentCls}-dot`]:{margin:-(n.spinDotSizeLG/2)},[`${n.componentCls}-text`]:{paddingTop:(n.spinDotSizeLG-n.fontSize)/2+2},[`&${n.componentCls}-show-text ${n.componentCls}-dot`]:{marginTop:-(n.spinDotSizeLG/2)-10}}},[`${n.componentCls}-container`]:{position:"relative",transition:`opacity ${n.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:n.colorBgContainer,opacity:0,transition:`all ${n.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${n.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:n.spinDotDefault},[`${n.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:n.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(n.spinDotSize-n.marginXXS/2)/2,height:(n.spinDotSize-n.marginXXS/2)/2,backgroundColor:n.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:L,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:T,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${n.componentCls}-dot`]:{fontSize:n.spinDotSizeSM,i:{width:(n.spinDotSizeSM-n.marginXXS/2)/2,height:(n.spinDotSizeSM-n.marginXXS/2)/2}},[`&-lg ${n.componentCls}-dot`]:{fontSize:n.spinDotSizeLG,i:{width:(n.spinDotSizeLG-n.marginXXS)/2,height:(n.spinDotSizeLG-n.marginXXS)/2}},[`&${n.componentCls}-show-text ${n.componentCls}-text`]:{display:"block"}})});var A=(0,N.Z)("Spin",n=>{let t=(0,_.TS)(n,{spinDotDefault:n.colorTextDescription,spinDotSize:n.controlHeightLG/2,spinDotSizeSM:.35*n.controlHeightLG,spinDotSizeLG:n.controlHeight});return[M(t)]},{contentHeight:400}),G=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&0>t.indexOf(i)&&(e[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(n);o<i.length;o++)0>t.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(n,i[o])&&(e[i[o]]=n[i[o]]);return e};let X=null,R=n=>{let{spinPrefixCls:t,spinning:e=!0,delay:i=0,className:o,size:r="default",tip:a,wrapperClassName:s,style:c,children:p,hashId:d}=n,f=G(n,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children","hashId"]),[u,m]=l.useState(()=>e&&(!e||!i||!!isNaN(Number(i))));l.useEffect(()=>{var n;let t=function(n,t,e){var i,o=e||{},r=o.noTrailing,a=void 0!==r&&r,l=o.noLeading,s=void 0!==l&&l,c=o.debounceMode,p=void 0===c?void 0:c,d=!1,f=0;function u(){i&&clearTimeout(i)}function m(){for(var e=arguments.length,o=Array(e),r=0;r<e;r++)o[r]=arguments[r];var l=this,c=Date.now()-f;function m(){f=Date.now(),t.apply(l,o)}function h(){i=void 0}!d&&(s||!p||i||m(),u(),void 0===p&&c>n?s?(f=Date.now(),a||(i=setTimeout(p?h:m,n))):m():!0!==a&&(i=setTimeout(p?h:m,void 0===p?n-c:n)))}return m.cancel=function(n){var t=(n||{}).upcomingOnly;u(),d=!(void 0!==t&&t)},m}(i,()=>{m(e)},{debounceMode:!1!==(void 0!==(n=({}).atBegin)&&n)});return t(),()=>{var n;null===(n=null==t?void 0:t.cancel)||void 0===n||n.call(t)}},[i,e]);let h=l.useMemo(()=>void 0!==p,[p]),{direction:g}=l.useContext($.E_),x=z()(t,{[`${t}-sm`]:"small"===r,[`${t}-lg`]:"large"===r,[`${t}-spinning`]:u,[`${t}-show-text`]:!!a,[`${t}-rtl`]:"rtl"===g},o,d),w=z()(`${t}-container`,{[`${t}-blur`]:u}),b=(0,I.Z)(f,["indicator","prefixCls"]),y=l.createElement("div",Object.assign({},b,{style:c,className:x,"aria-live":"polite","aria-busy":u}),function(n,t){let{indicator:e}=t,i=`${n}-dot`;return null===e?null:(0,D.l$)(e)?(0,D.Tm)(e,{className:z()(e.props.className,i)}):(0,D.l$)(X)?(0,D.Tm)(X,{className:z()(X.props.className,i)}):l.createElement("span",{className:z()(i,`${n}-dot-spin`)},l.createElement("i",{className:`${n}-dot-item`}),l.createElement("i",{className:`${n}-dot-item`}),l.createElement("i",{className:`${n}-dot-item`}),l.createElement("i",{className:`${n}-dot-item`}))}(t,n),a?l.createElement("div",{className:`${t}-text`},a):null);return h?l.createElement("div",Object.assign({},b,{className:z()(`${t}
1-nested-loading`,s,d)}),u&&l.createElement("div",{key:"loading"},y),l.createElement("div",{className:w,key:"container"},p)):y},U=n=>{let{prefixCls:t}=n,{getPrefixCls:e}=l.useContext($.E_),i=e("spin",t),[o,r]=A(i),a=Object.assign(Object.assign({},n),{spinPrefixCls:i,hashId:r});return o(l.createElement(R,Object.assign({},a)))};U.setDefaultIndicator=n=>{X=n};var F=e(5157),K=e(1413),H={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},q=e(2135),B=function(n,t){return l.createElement(q.Z,(0,K.Z)((0,K.Z)({},n),{},{ref:t,icon:H}))};B.displayName="InfoCircleOutlined";var V=l.forwardRef(B);function W(){let n=(0,i.Z)(["\n width: 100%;\n background: #f5f5f5;\n flex: 1;\n padding-bottom: 200px;\n @media (max-width: 768px) {\n padding-bottom: 120px;\n }\n"]);return W=function(){return n},n}function J(){let n=(0,i.Z)(["\n margin: 0 auto;\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n max-width: 1200px;\n min-height: calc(100vh - 350px);\n @media (max-width: 1200px) {\n padding: 0 24px;\n }\n"]);return J=function(){return n},n}function Q(){let n=(0,i.Z)(["\n display: flex;\n flex-flow: row wrap;\n justify-content: flex-start;\n align-items: center;\n height: auto;\n padding: 30px 0;\n width: 100%;\n column-gap: 12px;\n row-gap: 12px;\n @media (max-width: 768px) {\n overflow-x: scroll;\n height: 100px;\n flex-flow: row nowrap;\n }\n"]);return Q=function(){return n},n}function Y(){let n=(0,i.Z)(["\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n line-height: 24px;\n display: flex;\n align-items: center;\n @media (max-width: 768px) {\n text-align: center;\n }\n"]);return Y=function(){return n},n}function nn(){let n=(0,i.Z)(["\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n height: 40px;\n min-width: 112px;\n padding: 0 20px;\n border-radius: 20px;\n row-gap: 12px;\n cursor: pointer;\n color: ",";\n background: ",";\n &:hover "," {\n color: ",";\n }\n @media (max-width: 768px) {\n width: auto;\n display: flex;\n flex-shrink: 0;\n }\n"]);return nn=function(){return n},n}function nt(){let n=(0,i.Z)(["\n display: flex;\n flex-flow: row wrap;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n height: auto;\n row-gap: 24px;\n column-gap: 16px;\n min-height: 300px;\n @media (max-width: 768px) {\n column-gap: 0px;\n min-height: auto;\n row-gap: 12px;\n }\n"]);return nt=function(){return n},n}function ne(){let n=(0,i.Z)(["\n width: 100%;\n"]);return ne=function(){return n},n}function ni(){let n=(0,i.Z)(["\n display: block;\n width: 288px;\n height: 360px;\n padding: 24px;\n border-radius: 16px;\n cursor: pointer;\n background: #fff;\n overflow: hidden;\n &:hover {\n box-shadow: 0px 16px 32px rgba(0, 0, 0, 0.12);
1\n border-top: 4px solid #21c397;\n }\n @media (max-width: 768px) {\n display: flex;\n flex-flow: row nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n width: 100%;\n height: 167px;\n }\n"]);return ni=function(){return n},n}function no(){let n=(0,i.Z)(["\n margin-left: 20px;\n"]);return no=function(){return n},n}function nr(){let n=(0,i.Z)(["\n border-radius: 50%;\n"]);return nr=function(){return n},n}function na(){let n=(0,i.Z)(["\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 700;\n font-size: 24px;\n line-height: 36px;\n display: flex;\n align-items: center;\n color: #000000;\n margin-top: 16px;\n width: 240px;\n overflow: hidden;\n word-wrap: clip;\n white-space: break-spaces;\n text-overflow: ellipsis;\n\n @media (max-width: 768px) {\n font-size: 20px;\n line-height: 30px;\n margin-top: 0px;\n }\n"]);return na=function(){return n},n}function nl(){let n=(0,i.Z)(["\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 400;\n font-size: 14px;\n line-height: 21px;\n display: flex;\n align-items: center;\n color: #7f8393;\n margin-top: 3px;\n white-space: nowrap;\n word-break: keep-all;\n text-overflow: ellipsis;\n overflow: hidden;\n @media (max-width: 768px) {\n font-size: 12px;\n max-width: 200px;\n }\n"]);return nl=function(){return n},n}function ns(){let n=(0,i.Z)(["\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 400;\n font-size: 14px;\n line-height: 21px;\n color: #494e67;\n margin-top: 24px;\n overflow: hidden;\n height: 105px;\n flex-flow: column nowrap;\n justify-content: flex-start;\n display: -webkit-box;\n -webkit-line-clamp: 5;\n -webkit-box-orient: vertical;\n @media (max-width: 768px) {\n width: 100%;\n height: auto;\n -webkit-line-clamp: 3;\n margin-top: 12px;\n }\n"]);return ns=function(){return n},n}function nc(){let n=(0,i.Z)(["\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n align-self: flex-end;\n width: auto;\n margin-top: 32px;\n"]);return nc=function(){return n},n}function np(){let n=(0,i.Z)(["\n width: 100%;\n min-height: 300px;\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n"]);return np=function(){return n},n}function nd(){let n=(0,i.Z)(["\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n display: flex;\n align-items: center;\n color: #494e67;\n"]);return nd=function(){return n},n}function nf(){let n=(0,i.Z)(["\n width: 141px;\n height: 44px;\n background: #fffefe;\n border-radius: 32px;\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n margin-top: 12px;\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 400;\n font-size: 14px;\n color: #21c397;\n pointer-events: ",";\n cursor: ",";\n opacity: ",";\n"]);return nf=function(){return n},n}function nu(){let n=(0,i.Z)(["\n width: 100%;\n display: flex;\n flex-flow: row nowrap;\n justify-content: flex-start;\n align-items: center;\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 400;\n font-size: 14px;\n color: #7f8393;\n margin-top: 44px;\n @media (max-width: 768px) {\n padding: 0 12px;\n align-items: flex-start;\n }\n"]);return nu=function(){return n},n}let nm=s.ZP.div.withConfig({componentId:"sc-cdf41624-0"})(W()),nh=s.ZP.div.withConfig({componentId:"sc-cdf41624-1"})(J()),ng=s.ZP.div.withConfig({componentId:"sc-cdf41624-2"})(Q()),nx=s.ZP.div.withConfig({componentId:"sc-cdf41624-3"})(Y()),nw=s.ZP.div.withConfig({componentId:"sc-cdf41624-4"})(nn(),n=>{let{isActive:t}=n;return t?"#fff":"#040a2d"},n=>{let{isActive:t}=n;return t?"#21C397":"#fff"},nx,n=>{let{isActive:t}=n;return t?"#fff":"#21c397"}),nb=s.ZP.div.withConfig({componentId:"sc-cdf41624-5"})(nt()),ny=(0,s.ZP)(U).withConfig({componentId:"sc-cdf41624-6"})(ne()),nv=(0,s.ZP)(m()).withConfig({componentId:"sc-cdf41624-7"})(ni()),nC=s.ZP.div.withConfig({componentId:"sc-cdf41624-8"})(no()),nj=(0,s.ZP)(f()).withConfig({componentId:"sc-cdf41624-9"})(nr()),nZ=s.ZP.div.withConfig({componentId:"sc-cdf41624-10"})(na()),nS=s.ZP.div.withConfig({componentId:"sc-cdf41624-11"})(nl()),nP=s.ZP.div.withConfig({componentId:"sc-cdf41624-12"})(ns()),nk=s.ZP.div.withConfig({componentId:"sc-cdf41624-13"})(nc()),nz=s.ZP.div.withConfig({componentId:"sc-cdf41624-14"})(np()),nI=s.ZP.div.withConfig({componentId:"sc-cdf41624-15"})(nd()),n$=s.ZP.div.withConfig({componentId:"sc-cdf41624-16"})(nf(),n=>{let{disabled:t}=n;return t?"none":""},n=>{let{disabled:t}=n;return t?"not-allowed":"pointer"},n=>{let{disabled:t}=n;return t?.8:1}),nD=s.ZP.div.withConfig({componentId:"sc-cdf41624-17"})(nu()),nE=n=>{let{categoryList:t}=n,{t:e}=(0,c.$G)(),i=(0,p.useRouter)(),{isMobile:a}=(0,F.F)(),[s,d]=l.useState(1),[f,u]=l.useState(12),[m,h]=l.useState([]),[g,x]=l.useState(!1),[w,b]=l.useState(0),y=l.useMemo(()=>[{id:-1,name:"All Categories"},...t],[t]),v=l.useMemo(()=>{let n=i.query.category;if(n){for(let e=0;e<t.length;
1e++)if(t[e].name.toLowerCase()===n.toLowerCase()){n=t[e].name;break}}else n="All Categories";return d(()=>1),n},[i.query,t,d]);l.useEffect(()=>{!async function(){h(()=>[]),x(()=>!0);try{let n=await r.p.dappList(s,f,"All Categories"!==v?v:void 0);h(()=>n.data.data.list),console.log("change app list",n.data.data.list),b(()=>n.data.data.total_count)}catch(t){console.log(t)}finally{x(()=>!1)}}()},[s,f,v]);let C=l.useCallback(n=>{x(()=>!0);let{pathname:t}=i;"All Categories"===n?i.push(t):i.push("".concat(t,"?category=").concat(n))},[i]),j=l.useMemo(()=>w===m.length,[w,m]),Z=l.useCallback(()=>{j||u(n=>2*n)},[j,u]);return(0,o.jsx)(nm,{children:(0,o.jsxs)(nh,{children:[(0,o.jsx)(ng,{children:y.map(n=>(0,o.jsx)(nw,{onClick:()=>C(n.name),isActive:n.name===v,children:(0,o.jsx)(nx,{isActive:n.name===v,children:n.name})},n.id))}),(0,o.jsx)(ny,{spinning:g,children:(0,o.jsx)(nb,{children:m.length>0?(0,o.jsx)(o.Fragment,{children:m.map((n,t)=>(0,o.jsxs)(nv,{href:n.website,target:"_blank",children:[(0,o.jsx)(nj,{src:n.logo_url,width:a?54:80,height:a?54:80,alt:"app-logo"}),a?(0,o.jsxs)(nC,{children:[(0,o.jsx)(nZ,{children:n.name}),(0,o.jsx)(nS,{children:n.website}),(0,o.jsx)(nP,{children:n.description})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nZ,{children:n.name.length>14?n.name.slice(0,14)+"...":n.name}),(0,o.jsx)(nS,{children:n.website}),(0,o.jsx)(nP,{children:n.description})]})]},t))}):(0,o.jsx)(nz,{children:!g&&(0,o.jsx)(nI,{children:e("No data")})})})}),a&&m.length>0&&(0,o.jsx)(n$,{disabled:j,onClick:()=>Z(),children:j?"End":"View more"}),!a&&m.length>0&&(0,o.jsx)(nk,{children:(0,o.jsx)(P,{currentPage:s,setCurrentPage:d,total:w,perPage:f})}),(0,o.jsxs)(nD,{children:[(0,o.jsx)(V,{style:{fontSize:"14px",color:"#7F8393",marginRight:"8px"}}),e("dapp_risk_statement")]})]})})};var nN=e(4404);function n_(){let n=(0,i.Z)(["\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n height: auto;\n background: #000;\n"]);return n_=function(){return n},n}function nO(){let n=(0,i.Z)(["\n width: 1200px;\n margin: 0 auto;\n height: 480px;\n padding-top: 163px;\n background: url('/images/apps/banner_dapp.jpg') bottom center no-repeat;\n background-size: auto 100%;\n @media (max-width: 1200px) {\n padding-left: 24px;\n padding-right: 24px;\n }\n @media (max-width: 768px) {\n background: url('/images/apps/mobile.jpg') bottom center no-repeat;\n background-size: 100% auto;\n width: 100%;\n height: 600px;\n padding-top: 120px;\n }\n"]);return nO=function(){return n},n}function nL(){let n=(0,i.Z)(["\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 700;\n font-size: 48px;\n line-height: 72px;\n /* identical to box height */\n display: flex;\n align-items: center;\n color: #ffffff;\n @media (max-width: 768px) {\n font-size: 40px;\n line-height: 60px;\n }\n"]);return nL=function(){return n},n}function nT(){let n=(0,i.Z)(["\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n line-height: 24px;\n display: flex;\n align-items: center;\n color: #ffffff;\n margin-top: 9px;\n"]);return nT=function(){return n},n}function nM(){let n=(0,i.Z)(["\n margin-top: 23px;\n display: flex;\n flex-flow: row nowrap;\n justify-content: flex-start;\n align-items: center;\n"]);return nM=function(){return n},n}function nA(){let n=(0,i.Z)(["\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n display: flex;\n align-items: center;\n color: #ffffff;\n"]);return nA=function(){return n},n}let nG=s.ZP.div.withConfig({componentId:"sc-bd8be226-0"})(n_()),nX=s.ZP.div.withConfig({componentId:"sc-bd8be226-1"})(nO()),nR=s.ZP.div.withConfig({componentId:"sc-bd8be226-2"})(nL()),nU=s.ZP.div.withConfig({componentId:"sc-bd8be226-3"})(nT()),nF=s.ZP.div.withConfig({componentId:"sc-bd8be226-4"})(nM()),nK=s.ZP.div.withConfig({componentId:"sc-bd8be226-5"})(nA()),nH=()=>{let{t:n}=(0,c.$G)(),t=(0,p.useRouter)();return(0,o.jsx)(nG,{children:(0,o.jsxs)(nX,{children:[(0,o.jsx)(nR,{children:n("Discover dApps")}),(0,o.jsx)(nU,{children:n("KCC_dapp_subtitle")}),(0,o.jsx)(nF,{children:(0,o.jsx)(nN.U,{style:{width:"auto"},onClick:()=>t.push("/apps/submit"),children:(0,o.jsx)(nK,{children:n("Add your dApp")})})})]})})};var nq=e(9008),nB=e.n(nq),nV=e(9473),nW=e(2279),nJ=e(2490);function nQ(){let n=(0,i.Z)(["\n margin: 0;\n padding: 0;\n position: relative;\n background: #f5f5f5;\n height: 100%;\n"]);return nQ=function(){return n},n}let nY=s.ZP.div.withConfig({componentId:"sc-afc210f7-0"})(nQ());function n0(){let n=(0,nW.u)(),t=(0,nV.I0)();return l.useEffect(()=>{async function e(){let n=await r.p.categoryList();t((0,nJ.X)({list:n.data.data.list}))}n.length<1&&e()},[n,t]),(0,o.jsxs)(nY,{children:[(0,o.jsxs)(nB(),{children:[(0,o.jsx)("title",{children:"KCC Official AppsPage - KuCoin Community Chain"}),(0,o.jsx)("meta",{name:"description",content:"KCC is a high performance decentralized public chain built by the fans of KCS and KuCoin. We aim to provide community users with faster, more convenient and low-cost experience."})]}),(0,o.jsx)(nH,{}),(0,o.jsx)(nE,{categoryList:n})]})}n0.getLayout=function(n){return(0,o.jsx)(a.Z,{children:n})};var n2=!0,n1=n0},2279:function(n,t,e){"use strict";e.d(t,{u:function(){return o}});var i=e(9473);function o(){return(0,i.v9)(n=>n.apps.appCategoryList)}},9008:function(n,t,e){n.exports=e(3121)}},function(n){n.O(0,[316,289,774,888,179],function(){return n(n.s=1776)}),_N_E=n.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.