PageSourceSearch

https://omnichannel-applets.equipmentshare.com/assets/index-CMsa2CnV.js

js equipmentshare.com collected 2026-10-02 14:43:07 UTC 2,698 bytes, 2 lines download raw bytes

1import{c as g,j as t,bb as A,ba as b,bz as j,r as i,f as y}from"../index.js";import{R}from"./main-D_8mFHYJ.js";import{a as v,A as l}from"./index-D3659fWk.js";import{S}from"./SpinCog-_PBKnF3I.js";import{T as z}from"./index-Do0J_z2J.js";import{R as L,C as d}from"./row-Cx8ishV0.js";import{T as k}from"./index-DHFzl643.js";import"./persist-CaqKJk6y.js";import"./index-B_myuiWi.js";import"./gapSize-U1swVQyS.js";import"./useIsComponentVisible-1KTTOv6B.js";import"./index-Zrq4uLkm.js";import"./colors-CYjzjd_0.js";import"./styled-JXjbU2te.js";import"./index-UlzNXp5v.js";import"./index-C4Vq_kwK.js";import"./index-8x5IOr02.js";import"./index-Csrluayl.js";import"./TextArea-CDMKWL6s.js";import"./CheckOutlined-D56ZjTWi.js";import"./responsiveObserver-DIsSZgxR.js";import"./EllipsisOutlined-CssIaIrj.js";import"./Overflow-D5vXgj7D.js";const D=e=>{const a=e==null?void 0:e.getAttribute("asset-id");if(a)return Number(a);const o=window.location.pathname.match(/^\/used\/assets\/(\d+)\/?($|\w+)/i)||[];if(o.at(1))return Number(o.at(1));const r=new URLSearchParams(location.search).get("asset_id");return r?Number(r):void 0},w=({assetId:e})=>{const a=A("applet-es-asset-retail-listing"),o=b(),r=j(),[u,c]=i.useState(!0),[n,h]=i.useState(),[x,p]=i.useState(!1),[m,f]=i.useState();return i.useEffect(()=>{c(!0),o["used.assets.get"]({asset_id:e}).then(s=>{h(s.data)}).catch(s=>{console.error(s)}).finally(()=>{c(!1)})},[]),i.useEffect(()=>{r&&!m&&!x&&(p(!0),r["used.assets.events.list"]({asset_id:e,skip:0,take:1e4}).then(s=>{f(s.data.events)}).catch(s=>{console.error(s)}).finally(()=>{p(!1)}))},[r]),a?t.jsx(y,{appletName:"asset-retail-listing",children:t.jsxs(v,{children:[t.jsx(z.Title,{level:1,children:"Asset Retail Listing"}),t.jsx(S,{spinning:u,children:t.jsxs(L,{children:[t.jsx(d,{xs:24,md:8,children:t.jsx(R,{src:n?{assetData:n,eventData:m}:{},displayDataTypes:!1,displayObjectSize:!1,sortKeys:!0,collapsed:2,collapseStringsAfterLength:50})}),t.jsx(d,{xs:24,md:16,children:n==null?void 0:n.listing.photos.map(({filename:s})=>t.jsx(k,{defaultActiveKey:"1",tabPosition:"left",items:[{key:"1",label:"xs",children:t.jsx(l,{filename:s,size:"xs"})},{key:"2",label:"sm",children:t.jsx(l,{filename:s,size:"sm"})},{key:"3",label:"md",children:t.jsx(l,{filename:s,size:"md"})},{key:"4",label:"lg",children:t.jsx(l,{filename:s,size:"lg"})},{key:"5",label:"xl",children:t.jsx(l,{filename:s,size:"xl"})}],style:{border:"1px solid #AAA",borderRadius:"0.5rem",padding:"0.5rem",margin:"0.5rem 0"}},s))})]})})]})}):null},Z=async e=>{const a=D(e);a?g(e).render(t.jsx(w,{assetId:a})):console.error("assetId was not defined for AssetRetailListing.mount()")};export{Z as mount};
2//# sourceMappingURL=index-CMsa2CnV.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.