PageSourceSearch

https://www.carbonarc.co/assets/exchange-listing-data-Bwr-0bDc.js

js carbonarc.co collected 2026-09-29 15:59:15 UTC 6,543 bytes, 1 lines download raw bytes

1import{r as p,j as r}from"./vendor-react-CF2OuAXi.js";import{u as T,b as L}from"./vendor-query-Dru8Ryjt.js";import{e as _,a as n,E as D}from"./index-CQwFLP6K.js";import{c as R}from"./compact-DeU34Yoy.js";import{i as M}from"./ontology-Fx5ovBX_.js";import{r as c,l as P,j as q}from"./utils-CWIC0ptc.js";import{T as b}from"./constants-DdUlFUkc.js";import{f as O}from"./date-CGz-Bi04.js";import{u as K}from"./useActiveTickers-DCW8E6sI.js";import{E as w}from"./DetailPageShared-D19OKyDo.js";import{u as Q,E as z,F as G,a as H}from"./useActiveFrameworks-Bh7weaCD.js";import{f as $,b as J}from"./vendor-router-1lxCfBys.js";import{A as U}from"./arrow-left-vV9ujQcc.js";import{C as V}from"./clock-DNIHwrSo.js";import"./vendor-okta-DqkOGBPB.js";import"./vendor-flowbite-BOOFXkYC.js";import"./vendor-datadog-tM0hMiRH.js";import"./vendor-i18n-D8V0Brmg.js";import"./dayjs.min-CcXI944o.js";import"./Button-_45-WKGL.js";import"./circle-alert-DZfmeYyY.js";import"./PageLayout-Dn-HLfwH.js";import"./Footer-D8kWJ2zc.js";import"./lensesPersonas-BGT1pqma.js";import"./sparkles-DF-Pm669.js";import"./trending-up-DsPXVq4Q.js";import"./users-CKZYegGP.js";import"./blockRoles-1ohB_X78.js";import"./dataLibraryNavAccess-CadgK9a3.js";import"./index-q_BE_MGP.js";import"./index-Uzg96WYX.js";import"./index-CpPMGrZs.js";import"./index-DIqXhkv4.js";import"./index-C14J_qoS.js";import"./shopping-cart-CmfQhR2G.js";import"./file-text-Cttx8El0.js";import"./useMcpOnlyView-BryYLQJE.js";import"./useDistributorExperience-DzH_jpX1.js";import"./x-lJhSzwDa.js";import"./index-DZUZnGf6.js";import"./PageHeader-LPx84FIP.js";import"./BuilderPageContext-Dp3P4cEt.js";import"./BuilderContext-B-sXr9OJ.js";import"./usePersistState-DM4zi0sk.js";import"./insights-BEUhr2Y9.js";import"./pollableJob-RdahJHuS.js";import"./frameworks-DHD0uULy.js";import"./omit-BHhHUIbG.js";import"./startCase-0GqYf9AX.js";import"./useOntology-Bk5UttVe.js";import"./usePagination-DShFhoaH.js";import"./file-P8XoWhti.js";import"./browser-BczVn0qP.js";import"./castArray-BQszfGim.js";import"./Tabs-DpsHA69C.js";import"./Skeleton-BRGF7VwU.js";import"./EntityFiltersDropdown-RVfb411j.js";import"./echartUtils-Dw3KBUlO.js";import"./EChart-qUgzh6gS.js";import"./formatters-CRHT1J-5.js";import"./ConfirmModal-DXcH9w9D.js";import"./frameworkIds-BtvPdFCC.js";import"./TokenCount-CVBAWPg6.js";import"./useUserBalance-5NCzWez8.js";import"./CarbonArcTokenIcon-CS15NI2n.js";import"./index-BGEK4vbP.js";import"./FrameworkUpdateName-Yll1tvaj.js";import"./useFrameworkOrders-C7HlebNQ.js";import"./calendar-days-DHDphixa.js";import"./store-Cy3Dipd3.js";import"./Table-B0Ps1mIS.js";import"./NoDataDisplay-CXnnx2lc.js";import"./Pagination-BozuNft5.js";import"./chevron-right-nK9qNL-G.js";import"./chevron-down-BMfo5y9F.js";import"./useReinstateFramework-Dm4g6vmX.js";import"./APICode-jzbXmBpE.js";import"./highlight-qT4Gwney.js";import"./DownloadButton-3YPxlU-u.js";import"./UnifiedExperienceSidebar-Cr0w6Lzj.js";import"./index-B7nQdxAG.js";const Nr=()=>{const{id:i}=$(),g=J(),{hasActiveTickers:s}=K(),{resolvedTheme:v}=_(),j=v==="dark",[m,N]=p.useState(!1),y=T(),{data:e,isLoading:E,isError:C}=L({queryKey:["exchange-signal-details",i],queryFn:()=>i?q(i):Promise.reject(new Error("Signal ID not provided"))}),I=p.useMemo(()=>{var t;return R(((t=e==null?void 0:e.frameworks)==null?void 0:t.map(c))??[])},[e==null?void 0:e.frameworks]),S=p.useMemo(()=>{var o;const t={};return(o=e==null?void 0:e.frameworks)==null||o.forEach(l=>{const a=l.framework_id;if(!a)return;const u=c(l);u&&u!==a&&(t[a]=u)}),t},[e==null?void 0:e.frameworks]),F=p.useMemo(()=>((e==null?void 0:e.frameworks)??[]).map(t=>{const o=c(t);return!o||!t.spec?null:{framework_id:o,spec:t.spec}}).filter(t=>t!==null),[e==null?void 0:e.frameworks]),[d,h]=Q(I,S),B=p.useMemo(()=>e!=null&&e.frameworks?e.frameworks.map(t=>{const o=c(t);return{frameworkId:o,label:P(t.spec,[t.display_name],o)}}):[],[e==null?void 0:e.frameworks]),x=()=>g(`/exchange/listing/${i}`),A=(t,o)=>{h(l=>l?l.map(a=>a===t?o:a):[o]),y.invalidateQueries({queryKey:["exchange-signal-details",i]})},k=n("w-full min-h-screen flex flex-col",{[b]:s,"pt-8":!s}),f={backgroundColor:j?"#1c1c1e":"transparent"};return E?r.jsx("div",{className:k,style:f,children:r.jsxs("div",{className:"mt-[68px] px-5 animate-pulse",children:[r.jsx("div",{className:"h-4 w-28 bg-muted rounded mb-4"}),r.jsx("div",{className:"h-7 w-64 bg-muted rounded"})]})}):C||!e?r.jsx("div",{className:n("w-full min-h-screen bg-background",{[b]:s,"pt-12":!s}),children:r.jsx("div",{className:"max-w-4xl mx-auto px-6 lg:px-8 py-8",children:r.jsx(w,{title:"Signal Not Found",message:"The signal you're looking for doesn't exist or has been removed.",actionLabel:"Back to Signal",onBack:x})})}):e.is_owner?r.jsxs("div",{className:k,style:f,children:[r.jsxs("div",{className:"mt-[68px] mb-4 px-5",children:[r.jsxs("button",{onClick:x,className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors mb-4",children:[r.jsx(U,{className:"size-4"}),"Back to Signal"]}),r.jsx("h1",{className:"text-2xl font-bold text-foreground tracking-tight mb-1",children:e.name}),r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("span",{className:"px-2 py-0.5 text-[10px] font-semibold bg-blue-500/10 text-blue-500 rounded-full border border-blue-500/20",children:"Creator preview"}),r.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[r.jsx(V,{className:"size-3.5"}),r.jsxs("span",{children:["Listed ",O(e.created_at)]})]})]})]}),r.jsx("div",{className:"flex flex-row flex-1 min-h-0 border-t border-border px-5",children:r.jsx(z,{contentClassName:"p-0",showSidebarBorder:!1,overflowHidden:!1,overflowAuto:!1,sidebarClassName:n("dark:bg-black -ml-5",{"w-72":!m,"w-8 mr-8 !border-r":m}),sidebarBorderClassName:n({"left-72":!m,"left-8":m}),sidebarItemClassName:"pb-0 ml-2.5",sidebar:r.jsx(G,{items:B,activeFrameworks:d,setActiveFrameworks:h,collapse:m,setCollapse:N}),children:r.jsx(D,{className:"flex-1 min-h-96",children:r.jsx("div",{className:"flex flex-col flex-1 items-center gap-4 pt-8 pb-4 pl-4",style:f,children:!M(d)&&r.jsx(H,{frameworkIds:d??[],orderFrameworks:F,isOrderOwner:!0,isSellerFramework:!0,onReinstate:A})})})})})]}):r.jsx("div",{className:n("w-full min-h-screen bg-background",{[b]:s,"pt-12":!s}),children:r.jsx("div",{className:"max-w-4xl mx-auto px-6 lg:px-8 py-8",children:r.jsx(w,{title:"Not Available",message:"This preview is only available to the listing creator.",actionLabel:"Back to Signal",onBack:x})})})};export{Nr as default};

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.