-
Notifications
You must be signed in to change notification settings - Fork 0
/
src__pages__Ecosystem__EcosystemEOS.async.js
1 lines (1 loc) · 2.32 KB
/
src__pages__Ecosystem__EcosystemEOS.async.js
1
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6433],{52207:function(e,t,s){s.r(t),s.d(t,{default:function(){return v}});var n=s(15009),a=s.n(n),o=s(97857),r=s.n(o),c=s(99289),i=s.n(c),u=s(5574),l=s.n(u),f=JSON.parse('{"update":"2024-05-05T10:34","other":[{"logo":"bloksio.png","name":"Bloks","website":"https://bloks.io/","link":"https://bloks.io/","twitter":"","telegram":"","github":"","discord":"","medium":""},{"logo":"eos.png","name":"EOSQ","website":"https://eos.eosq.eosnation.io/","link":"https://eos.eosq.eosnation.io/","twitter":"","telegram":"","github":"","discord":"","medium":""}]}'),h=s(79181),p=s(17346),d=s(11774),b=s(38345),k=s(59530),m=s(62435),g=(s(49121),s(86074)),v=function(){var e=(0,k.useSelector)((function(e){return e.ecosystem.activeKey})),t=(0,k.useSearchParams)(),n=l()(t,2),o=n[0],c=n[1],u=o.get("tab")?o.get("tab"):void 0,v=(0,k.useDispatch)(),y=(0,k.useIntl)(),w=y.formatMessage({id:"ecosystem.other"}),x=y.formatMessage({id:"ecosystem.all"}),E=(0,m.useCallback)(i()(a()().mark((function e(){var t,n,o,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={},n=f,o=a()().mark((function e(o){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"update"===o?t.update=f[o]:(t[o]=[],n[o].forEach(function(){var e=i()(a()().mark((function e(n){var c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=s(6807)("./"+n.logo),t[o].push(r()(r()({},n),{},{logo:c}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})),e.t0=a()().keys(n);case 4:if((e.t1=e.t0()).done){e.next=9;break}return c=e.t1.value,e.delegateYield(o(c),"t2",7);case 7:e.next=4;break;case 9:v(p.N.setEcosystem(t));case 10:case"end":return e.stop()}}),e)}))),[]),C=(0,m.useCallback)((function(t){var s={};s.tab=t||e,c(s)}),[e]);return(0,m.useEffect)((function(){E()}),[E]),(0,m.useEffect)((function(){var e=o.get("tab");e&&v(p.N.setActiveKey(e)),C(e)}),[]),(0,m.useEffect)((function(){C(e)}),[e,C]),(0,g.jsx)(d._z,{className:"ecosystem",ghost:!0,children:(0,g.jsx)(b.Z,{tabs:{activeKey:u,onChange:function(e){v(p.N.setActiveKey(e))},items:[{label:"".concat(x),key:"all",children:(0,g.jsx)(h.qb,{filter:"all"})},{label:"".concat(w),key:"other",children:(0,g.jsx)(h.qb,{filter:"other"})},{label:"",key:"",children:""}]}})})}}}]);