PageSourceSearch

https://www.sellpy.se/market/ItemStatus.fragment.p9gSYHTa.bundle.js

js sellpy.se collected 2026-09-24 17:42:46 UTC 5,385 bytes, 23 lines download raw bytes

1import{j as p,n as k,I as v}from"./npm.sellpy-design-system.sUaPRvy7.bundle.js";import"./npm.react-hook-form.C-gy3V91.bundle.js";import{D as b}from"./npm.luxon.3NOFZn7k.bundle.js";import{h as y}from"./npm.apollo-client.D2roezfX.bundle.js";import{u as S}from"./npm.react-i18next.DBIOEc1H.bundle.js";import{_ as h}from"./LostItemStatusLabel.fragment.DBdyeWvP.bundle.js";try{let t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="4e01cb30-8d4b-45e0-924e-0685150f49be",t._sentryDebugIdIdentifier="sentry-dbid-4e01cb30-8d4b-45e0-924e-0685150f49be")}catch(t){}{let t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[new t.Error().stack]=Object.assign({},t._sentryModuleMetadata[new t.Error().stack],{"_sentryBundlerPluginAppKey:sellpy-market":!0})}const I=`query AwaitingApprovalStatusLabelQuery($itemId: ID!) {
2  item(id: $itemId) {
3    objectId
4    commenceAfter
5  }
6}
7`,w={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AwaitingApprovalStatusLabelQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"itemId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"item"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"itemId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"objectId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"commenceAfter"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:152,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:I}}},A=w,N=({hoursLeft:t,t:s})=>{const a=Math.max(0,Math.floor(t));return a===0?s("item.info.automaticallyPublishSoon"):a>24?s("item.info.automaticallyPublishInDays",{count:Math.floor(a/24)}):s("item.info.automaticallyPublishInHours",{count:a})},j=({itemId:t})=>{var l;const{t:s}=S("salesControl"),{data:a}=y(A,{variables:{itemId:t}}),o=(l=a==null?void 0:a.item)==null?void 0:l.commenceAfter,m=o?b.fromISO(o).diffNow("hours").hours:0;return p.jsx(k,{iconName:v.CHECKMARK,title:N({hoursLeft:m,t:s}),type:"informative",variant:"subtle"})},D=`#import "../seller/components/itemStatusLabels/LostItemStatusLabel.fragment.gql"
8
9fragment ItemStatusFragment on Item {
10  objectId
11  sellerItemStatus
12  itemAuthenticityAgreements {
13    edges {
14      node {
15        startedAt
16        type
17      }
18    }
19  }
20  ...LostItemStatusLabelFragment
21}
22`,u={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ItemStatusFragment"},variableDefinitions:[],typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Item"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"objectId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellerItemStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"itemAuthenticityAgreements"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"LostItemStatusLabelFragment"},directives:[]}]}}],loc:{start:0,end:328,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:D}}},_=t=>{const s={};
22return t.filter(function(a){if(a.kind!=="FragmentDefinition")return!0;const o=a.name.value;return s[o]?!1:(s[o]=!0,!0)})};u.definitions=_(u.definitions.concat(h.definitions));const F=(t,s)=>{const a=(e,n)=>{if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){const i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}return e&&"selectionSet"in e&&e.selectionSet&&e.selectionSet.selections.forEach(i=>{a(i,n)}),e&&"variableDefinitions"in e&&e.variableDefinitions&&e.variableDefinitions.forEach(i=>{a(i,n)}),e&&"definitions"in e&&e.definitions&&e.definitions.forEach(i=>{a(i,n)}),n},o=e=>{const n={};return e.definitions.forEach(function(i){"name"in i&&i.name&&(n[i.name.value]=a(i,new Set))}),n},m=(e,n)=>{for(let i=0;i<e.definitions.length;i++){const r=e.definitions[i];if(r&&"name"in r&&r.name&&r.name.value==n)return r}},l=o(t),f=Object.assign({},t,{definitions:[m(t,s)]}),g=l[s]||new Set,c=new Set;let d=new Set;for(g.forEach(e=>{d.add(e)});d.size>0;){const e=d;d=new Set,e.forEach(n=>{c.has(n)||(c.add(n),(l[n]||new Set).forEach(r=>{d.add(r)}))})}return c.forEach(e=>{const n=m(t,e);n&&f.definitions.push(n)}),f},x=F(u,"ItemStatusFragment");export{j as A,x as I,u as _,N as g};
23//# sourceMappingURL=ItemStatus.fragment.p9gSYHTa.bundle.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.