PageSourceSearch

https://www.dbcscan.io/_next/static/chunks/3694.8bb0e9cb8c9a4435.js

js dbcscan.io collected 2026-09-28 06:49:01 UTC 10,623 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3694],{23223:function(e,a,t){var s=t(85893),o=t(12498),l=t(85931),n=t(204),i=t(93344),r=t(84416),c=t(23100),u=t(33838),d=t(89154),p=t(75350),m=t(67294),x=t(89633),f=t(35595),h=t(68174),g=t(28276);a.Z=m.memo((0,p.m)(e=>{let{id:a,url:t,external:p,title:b,logo:C,logoDarkMode:y,shortDescription:j,categories:k,onInfoClick:v,isFavorite:S,onFavoriteClick:_,isLoading:I,internalWallet:Z,onAppClick:L,className:w}=e,T=k.join(", "),{t:A}=(0,g.$G)("common"),E=(0,m.useCallback)(e=>{e.preventDefault(),v(a)},[v,a]),F=(0,m.useCallback)(()=>{_(a,S)},[_,a,S]),D=(0,o.ff)(C,y||C);return(0,s.jsx)(l.f,{className:w,_hover:{boxShadow:I?"none":"md"},_focusWithin:{boxShadow:I?"none":"md"},borderRadius:"md",padding:{base:3,sm:"20px"},border:"1px",borderColor:(0,o.ff)("gray.200","gray.600"),role:"group",children:(0,s.jsxs)(n.k,{flexDirection:{base:"row",sm:"column"},height:"100%",alignContent:"start",gap:{base:4,sm:0},children:[(0,s.jsxs)(n.k,{display:{base:"flex",sm:"contents"},flexDirection:"column",alignItems:"center",justifyContent:"space-between",children:[(0,s.jsx)(i.O,{isLoaded:!I,marginBottom:4,w:{base:"64px",sm:"96px"},h:{base:"64px",sm:"96px"},display:"flex",alignItems:"center",justifyContent:"center",order:{base:"auto",sm:1},children:(0,s.jsx)(r.E,{src:I?void 0:D,alt:"".concat(b," app icon"),borderRadius:"8px"})}),!I&&(0,s.jsx)(c.xu,{display:"flex",marginTop:{base:0,sm:"auto"},paddingTop:{base:0,sm:4},order:{base:"auto",sm:5},children:(0,s.jsx)(u.r,{fontSize:{base:"xs",sm:"sm"},fontWeight:"500",paddingRight:{sm:2},href:"#",onClick:E,children:A("deep_more_info")})})]}),(0,s.jsxs)(n.k,{display:{base:"flex",sm:"contents"},flexDirection:"column",gap:2,children:[(0,s.jsxs)(i.O,{isLoaded:!I,marginBottom:{base:0,sm:2},fontSize:{base:"sm",sm:"lg"},lineHeight:{base:"20px",sm:"28px"},paddingRight:{base:"25px",sm:0},fontWeight:"semibold",fontFamily:"heading",display:"inline-block",order:{base:"auto",sm:2},children:[(0,s.jsx)(f.Z,{id:a,url:t,external:p,title:b,onClick:L}),(0,s.jsx)(h.Z,{external:p,internalWallet:Z})]}),(0,s.jsx)(i.O,{isLoaded:!I,marginBottom:{base:0,sm:2},color:"text_secondary",fontSize:"xs",lineHeight:"16px",order:{base:"auto",sm:3},children:(0,s.jsx)("span",{children:A(T)})}),(0,s.jsx)(i.O,{isLoaded:!I,fontSize:{base:"xs",sm:"sm"},lineHeight:"20px",noOfLines:3,order:{base:"auto",sm:4},children:A(j)})]}),!I&&(0,s.jsx)(d.h,{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",right:{base:1,sm:"10px"},top:{base:1,sm:"10px"},"aria-label":"Mark as favorite",title:"Mark as favorite",variant:"ghost",colorScheme:"gray",w:9,h:8,onClick:F,icon:S?(0,s.jsx)(x.Z,{name:"star_filled",w:5,h:5,color:"yellow.400"}):(0,s.jsx)(x.Z,{name:"star_outline",w:5,h:5,color:"gray.400"})})]})})}))},25808:function(e,a,t){t.r(a),t.d(a,{default:function(){return q}});var s=t(85893),o=t(36953),l=t(66303),n=t(89154),i=t(46887),r=t(23428),c=t(204),u=t(23100),d=t(93344),p=t(67294),m=t(1987),x=t(11314),f=t(25457),h=t(26156),g=t(44063),b=t(19158),C=t(78420),y=t(59321),j=t(31708),k=t(72501),v=t(54838),S=t(23223),_=p.memo(e=>{let{apps:a,showAppInfo:t,favoriteApps:o,onFavoriteClick:l,isLoading:n,selectedCategoryId:i,onAppClick:r}=e,c=(0,p.useCallback)(e=>{k.Kz(k.GM.PAGE_WIDGET,{Type:"More button",Info:e,Source:"Discovery view"}),t(e)},[t]),u=(0,p.useCallback)((e,a)=>{l(e,a,"Discovery view")},[l]);return a.length>0?(0,s.jsx)(j.r,{templateColumns:{sm:"repeat(auto-fill, minmax(178px, 1fr))",lg:"repeat(auto-fill, minmax(260px, 1fr))"},autoRows:"1fr",gap:{base:"16px",sm:"24px"},children:a.map((e,a)=>
1(0,s.jsx)(S.Z,{onInfoClick:c,id:e.id,external:e.external,url:e.url,title:e.title,logo:e.logo,logoDarkMode:e.logoDarkMode,shortDescription:e.shortDescription,categories:e.categories,isFavorite:o.includes(e.id),onFavoriteClick:u,isLoading:n,internalWallet:e.internalWallet,onAppClick:r},e.id+(n?a:"")))}):(0,s.jsx)(v.Z,{selectedCategoryId:i,favoriteApps:o})}),I=t(75890),Z=t(35549),L=t(89633),w=t(84207),T=t(30629),A=t(38443),E=t(97423),F=t(28276),D=t(35937),M=t.n(D),R=t(11163),O=t(80555),z=t(61416),G=t(88106),N=t(14190);let U="favoriteApps";function W(){try{return JSON.parse(localStorage.getItem(U)||"[]")}catch(e){return[]}}let B=x.Z.features.marketplace,H=[];B.isEnabled&&(B.submitFormUrl&&H.push({label:"Submit app",href:B.submitFormUrl,icon:"plus"}),B.suggestIdeasFormUrl&&H.push({label:"Suggest ideas",href:B.suggestIdeasFormUrl,icon:"edit"}));var q=()=>{var e;let{t:a}=(0,F.$G)("common"),{isPlaceholderData:t,isError:x,error:j,selectedCategoryId:v,categories:S,onCategoryChange:D,filterQuery:q,onSearchInputChange:K,showAppInfo:J,apps:P,displayedApps:V,selectedAppId:$,clearSelectedAppId:Q,favoriteApps:X,onFavoriteClick:Y,isAppInfoModalOpen:ee,isDisclaimerModalOpen:ea,showDisclaimer:et,appsTotal:es,isCategoriesPlaceholderData:eo,showContractList:el,contractListModalType:en,selectedDisplayType:ei,onDisplayTypeChange:er,hasPreviousStep:ec}=function(){let e=(0,R.useRouter)(),a=(0,z.Z)(e.query.category),t=(0,z.Z)(e.query.filter),s=(0,z.Z)(e.query.tab),[o,l]=p.useState(null),[n,i]=p.useState(m.Te.ALL),[r,c]=p.useState(Object.values(m.Tx).includes(s)?s:m.Tx.DEFAULT),[u,d]=p.useState(t),[x,f]=p.useState([]),[h,g]=p.useState(!1),[b,C]=p.useState(!1),[y,j]=p.useState(!1),[v,S]=p.useState(null),[_,I]=p.useState(!1),Z=p.useCallback((e,a,t)=>{k.Kz(k.GM.PAGE_WIDGET,{Type:"Favorite app",Info:e,Source:t});let s=W();if(a){let a=s.filter(a=>a!==e);f(a),localStorage.setItem(U,JSON.stringify(a))}else s.push(e),localStorage.setItem(U,JSON.stringify(s)),f(s)},[]),L=p.useCallback(e=>{l(e),C(!0)},[]),w=p.useCallback(e=>{l(e),j(!0)},[]),T=p.useCallback((e,a,t)=>{l(e),S(a),t&&I(!0)},[]),A=(0,O.Z)(u,500),E=p.useCallback(()=>{l(null),C(!1),j(!1),S(null),I(!1)},[]),F=p.useCallback(e=>{k.Kz(k.GM.FILTERS,{Source:"Marketplace","Filter name":e}),i(e)},[]),D=p.useCallback(e=>{c(e)},[]),{isPlaceholderData:B,isError:H,error:q,data:K,displayedApps:J}=(0,G.Z)(A,n,x,h),{isPlaceholderData:P,data:V}=(0,N.Z)(K,B);return p.useEffect(()=>{f(W()),g(!0)},[]),p.useEffect(()=>{!B&&!H&&V.map(e=>e.name).includes(a)&&i(a)},[B]),p.useEffect(()=>{let a=M()({category:n===m.Te.ALL?void 0:n,filter:A,tab:r===m.Tx.DEFAULT?void 0:r},Boolean);A.length>0&&k.Kz(k.GM.LOCAL_SEARCH,{Source:"Marketplace","Search query":A}),e.replace({pathname:"/apps",query:a},void 0,{shallow:!0})},[A,n,r]),p.useMemo(()=>({selectedCategoryId:n,onCategoryChange:F,filterQuery:A,onSearchInputChange:d,isPlaceholderData:B,isError:H,error:q,categories:V,apps:K,displayedApps:J,showAppInfo:L,selectedAppId:o,clearSelectedAppId:E,favoriteApps:x,onFavoriteClick:Z,isAppInfoModalOpen:b,isDisclaimerModalOpen:y,showDisclaimer:w,appsTotal:(null==K?void 0:K.length)||0,isCategoriesPlaceholderData:P,showContractList:T,contractListModalType:v,selectedDisplayType:r,onDisplayTypeChange:D,hasPreviousStep:_}),[n,V,E,o,K,J,q,x,F,Z,H,B,L,A,b,y,w,P,T,v,r,D,_])}(),eu=(0,h.Z)(),ed=p.useMemo(()=>{let e=S.map(e=>({id:e.name,title:e.name,count:e.count,component:null}));return e.unshift({id:m.Te.ALL,title:m.Te.ALL,count:es,component:null}),e.unshift({id:m.Te.FAVORITES,title:()=>(0,s.jsx)(L.Z,{name:"star_outline",w:5,h:5,display:"flex"}),count:null,component:null}),e},[S,es]),ep=p.useMemo(()=>{let e=ed.findIndex(e=>e.id===v);return -1===e?0:e},[ed,v]),em=V.find(e=>e.id===$),ex=p.useCallback(e=>{D(ed[e].id)},[ed,D]),ef=p.useCallback((e,a)=>{window.localStorage.getItem("marketplace-disclaimer-shown")||(e.preventDefault(),et(a))},[et]),eh=p.useCallback(()=>{Q(),em&&J(em.id)},[Q,J,em]);return((0,f.Z)(x&&j?{isError:x,error:j}:{isError:!1,error:null}),B.isEnabled)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(T.Z,{title:a("deep_dapps"),contentAfter:eu&&H.length>1?(0,s.jsxs)(o.v,{children:[(0,s.jsx)(l.j,{as:n.h,size:"sm",variant:"outline",colorScheme:"gray",px:"9px",ml:"auto",icon:(0,s.jsx)(L.Z,{name:"dots",boxSize:"18px"})}),(0,s.jsx)(i.q,{minW:"max-content",children:H.map(e=>{let{label:a,href:t,icon:o}=e;return(0,s.jsxs)(r.s,{as:"a",href:t,target:"_blank",py:2,px:4,children:[(0,s.jsx)(L.Z,{name:o,boxSize:4,mr:2.5}),a,(0,s.jsx)(L.Z,{name:"arrows/north-east",boxSize:4,color:"gray.400",ml:2})]},a)})})]}):(0,s.jsx)(c.k,{ml:"auto",children:H.map(e=>{let{label:a,href:t}=e;return(0,s.jsx)(w.Z,{href:t,variant:"subtle",fontSize:"sm",lineHeight:5,ml:2,children:a},a)})})}
1),(0,s.jsx)(g.Z,{apps:P,favoriteApps:X,isLoading:t,onInfoClick:J,onFavoriteClick:Y,onAppClick:ef}),(0,s.jsx)(u.xu,{marginTop:{base:0,lg:8},children:(0,s.jsx)(E.Z,{tabs:ed,onTabChange:ex,defaultTabIndex:ep,marginBottom:-2,isLoading:eo})}),(0,s.jsxs)(c.k,{direction:{base:"column",lg:"row"},mb:{base:4,lg:6},gap:{base:4,lg:3},children:[B.securityReportsUrl&&(0,s.jsx)(d.O,{isLoaded:!t,children:(0,s.jsx)(A.Z,{onChange:er,defaultValue:ei,name:"type",options:[{title:"Discovery",value:m.Tx.DEFAULT,icon:"apps_xs",onlyIcon:!1},{title:"Apps scores",value:m.Tx.SCORES,icon:"apps_list",onlyIcon:!1,contentAfter:(0,s.jsx)(L.Z,{name:eu?"beta_xs":"beta",h:3,w:eu?3:7,ml:1})}],autoWidth:!0})}),(0,s.jsx)(Z.Z,{initialValue:q,onChange:K,placeholder:a("deep_find_app_by_name_or_keyword"),isLoading:t,size:B.securityReportsUrl?"xs":"sm",flex:"1"})]}),ei===m.Tx.SCORES&&B.securityReportsUrl?(0,s.jsx)(I.Z,{apps:V,showAppInfo:J,favoriteApps:X,onFavoriteClick:Y,isLoading:t,selectedCategoryId:v,onAppClick:ef,showContractList:el}):(0,s.jsx)(_,{apps:V,showAppInfo:J,favoriteApps:X,onFavoriteClick:Y,isLoading:t,selectedCategoryId:v,onAppClick:ef}),em&&ee&&(0,s.jsx)(C.Z,{onClose:Q,isFavorite:X.includes(em.id),onFavoriteClick:Y,data:em,showContractList:el}),em&&ea&&(0,s.jsx)(y.Z,{isOpen:ea,onClose:Q,appId:em.id}),em&&en&&(0,s.jsx)(b.Z,{type:en,contracts:null==em?void 0:null===(e=em.securityReport)||void 0===e?void 0:e.contractsData,onClose:Q,onBack:ec?eh:void 0})]}):null}},57386:function(e,a,t){t.d(a,{m:function(){return r}});var s=t(34151),o=t(25432),l=t(35059),n=t(75350),i=t(85893),r=(0,l.G)((e,a)=>{let{className:t,...l}=e,r=(0,o.cx)("chakra-modal__footer",t),c={display:"flex",alignItems:"center",justifyContent:"flex-end",...(0,s.I_)().footer};return(0,i.jsx)(n.m.footer,{ref:a,...l,__css:c,className:r})});r.displayName="ModalFooter"},10191:function(e,a,t){t.d(a,{x:function(){return c}});var s=t(34151),o=t(25432),l=t(35059),n=t(75350),i=t(67294),r=t(85893),c=(0,l.G)((e,a)=>{let{className:t,...l}=e,{headerId:c,setHeaderMounted:u}=(0,s.vR)();(0,i.useEffect)(()=>(u(!0),()=>u(!1)),[u]);let d=(0,o.cx)("chakra-modal__header",t),p={flex:0,...(0,s.I_)().header};return(0,r.jsx)(n.m.header,{ref:a,className:d,id:c,...l,__css:p})});c.displayName="ModalHeader"}}]);
2//# sourceMappingURL=3694.8bb0e9cb8c9a4435.js.map

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.