PageSourceSearch

https://stargaze.zone/assets/useIsCollectionOwner-EjdmJ20M.js

js stargaze.zone collected 2026-10-03 22:47:36 UTC 1,276 bytes, 1 lines download raw bytes

1import{j as o}from"./chunk-EPOLDU6W-BkvdEuFy.js";import{B as i}from"./constants-Dqktsbwg.js";import{u as p}from"./useCollectionOfferActions-DbTbM0mU.js";import{u as C}from"./useCollection-xw_BIPg7.js";import{$ as c}from"./query-DnD2Jnsz.js";import{u}from"./useAddress-Cp1T8-9F.js";import{G as f}from"./useOfferActions-J25C1MvO.js";function O(t){const e=u(),{data:s,isLoading:l}=c.useQuery("get","/api/v1/collections/{contractAddr}/offers",{params:{path:{contractAddr:t},query:{wallet:e}}},{enabled:!!e});return{walletOffers:s?.offers??[],isLoading:l}}function y({contractAddr:t,compact:e=!1}){const{collection:s,refreshCollection:l}=C(t),{walletOffers:r}=O(t),{makeCollectionOffer:m,updateCollectionOffer:d}=p();if(!s)return null;const a=r.length>0,n=a?()=>d(s,r,l):()=>m(s,l);return e?o.jsx(i,{variant:"secondary",className:"w-full",onClick:n,children:o.jsx(f,{className:"size-4"})}):o.jsx("div",{className:"flex w-full items-center gap-4",children:o.jsxs(i,{onClick:n,children:[a?"Edit Offer":"Make Offer",o.jsx(f,{className:"ml-2 size-4"})]})})}function A(t){const e=u(),{data:s}=c.useQuery("get","/api/v1/profiles/{address}/tokens",{params:{path:{address:e},query:{collectionAddr:[t],limit:0}}},{enabled:!!e});return(s?.pageInfo?.total??0)>0}export{y as C,O as a,A as u};

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.