PageSourceSearch

https://www.supplysidesj.com/assets/src-DJ0GvVYb.js

js supplysidesj.com collected 2026-10-02 05:45:48 UTC 6,036 bytes, 2 lines download raw bytes

1import{n as e,t}from"./vendor-react-BREUBCH4.js";import{S as n,Y as r,f as i,o as a,v as o,x as s,zt as c}from"./errorBoundary-CheDi6wM.js";import{x as l}from"./src-FD65B_Ks.js";var u=t(),d=e=>{let t=e.name,n=e.month??``,r=e.year?e.year.toString():``;return`${n.slice(0,3)} ${r.slice(-2)} ${t}`},f=e(),p=(0,c.cn)(`MarketOverview`),m=p(`HeaderCell`),h=p(`ContentCell`),g=e=>{let t=(0,u.c)(12),{commodityPrices:n,children:r,className:i}=e,a;t[0]===i?a=t[1]:(a=p({},[i]),t[0]=i,t[1]=a);let o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=p(`Table`),t[2]=o):o=t[2];let s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,f.jsx)(`thead`,{children:(0,f.jsxs)(`tr`,{className:p(`HeaderRow`),children:[(0,f.jsx)(`th`,{className:p(`HeaderCell`,{variant:`contract`}),children:`Contract`}),(0,f.jsx)(`th`,{className:m,children:`Last`}),(0,f.jsx)(`th`,{className:m,children:`Change`}),(0,f.jsx)(`th`,{className:m,children:`High`}),(0,f.jsx)(`th`,{className:m,children:`Low`}),(0,f.jsx)(`th`,{className:m,children:`Open`}),(0,f.jsx)(`th`,{className:p(`HeaderCell`,{variant:`lastTrade`}),children:`Last Trade`})]})}),t[3]=s):s=t[3];let c;t[4]===n?c=t[5]:(c=n.map(_),t[4]=n,t[5]=c);let l;t[6]===c?l=t[7]:(l=(0,f.jsxs)(`table`,{className:o,"data-testid":`market-overview-table`,children:[s,(0,f.jsx)(`tbody`,{"data-testid":`table-body`,children:c})]}),t[6]=c,t[7]=l);let d;return t[8]!==r||t[9]!==a||t[10]!==l?(d=(0,f.jsxs)(`div`,{"data-component":`market-overview`,className:a,children:[l,r]}),t[8]=r,t[9]=a,t[10]=l,t[11]=d):d=t[11],d};function _(e,t){let{url:n,symbol:r,lastPrice:i,netChange:s,high:c,low:l,open:u,tradeTimestamp:m}=e;return(0,f.jsxs)(`tr`,{className:p(`ContentRow`),children:[(0,f.jsx)(`td`,{className:p(`ContractCell`),children:(0,f.jsx)(a,{to:`/commodities/${n}?contract=${r}`,children:d(e)})}),(0,f.jsx)(`td`,{className:h,children:i}),(0,f.jsx)(`td`,{className:h,"data-testid":`market-overview-change`,children:s?(0,f.jsxs)(`div`,{className:p(`ChangeContent`,{isGrow:s>0}),children:[(0,f.jsx)(`span`,{"data-testid":`market-overview-change-value`,children:s>0?`+${s}`:s}),(0,f.jsx)(o,{icon:s>0?`ArrowUp`:`ArrowDown`,className:p(`ChangeIcon`,{isArrowUp:s>0})})]}):(0,f.jsx)(`span`,{"data-testid":`market-overview-no-change`,children:`unch —`})}),(0,f.jsx)(`td`,{className:h,children:c}),(0,f.jsx)(`td`,{className:h,children:l}),(0,f.jsx)(`td`,{className:h,children:u}),(0,f.jsx)(`td`,{className:p(`LastTradeCell`),children:new Date(m).toLocaleString(`en-US`,{hour:`2-digit`,minute:`2-digit`})})]},t)}var v=(0,c.cn)(`CommodityPrices`),y=`module_commodity_prices`,b=e=>{let t=(0,u.c)(51),{variant:i,commodityPrices:o,ctaButtonLink:c,ctaButtonText:d,ctaButtonLink2:p,ctaButtonText2:m,pricesTitle:h,title:_,moduleLocation:b,level:S}=e,C=S===void 0?`level1`:S,w=n(`sponsoredlogo_commodities_1v`),{oneInformaEnabled:T}=r.useFeatureToggles(),E;t[0]!==o||t[1]!==C?(E=C===`level2`&&o?o.slice(0,10):o,t[0]=o,t[1]=C,t[2]=E):E=t[2];let D=E,O=_||``,k=i!=="default",A;t[3]!==b||t[4]!==O||t[5]!==k?(A={title:O,moduleLocation:b,uid:y,customPreventionCondition:k},t[3]=b,t[4]=O,t[5]=k,t[6]=A):A=t[6];let{trackGtmClick:j}=l(A),M;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(M=v(),t[7]=M):M=t[7];let N;t[8]!==C||t[9]!==i?(N=v(`Title`,{level:C,variant:i}),t[8]=C,t[9]=i,t[10]=N):N=t[10];let P=h||`Market Overview`,F;t[11]!==N||t[12]!==P?(F=(0,f.jsx)(`div`,{className:N,"data-testid":`commodity-prices-title`,children:P}),t[11]=N,t[12]=P,t[13]=F):F=t[13];let I;t[14]!==C||t[15]!==i?(I=v(`MarketInfoWrapper`,{level:C,variant:i}),t[14]=C,t[15]=i,t[16]=I):I=t[16];let L;t[17]===D?L=t[18]:(L=D||[],t[17]=D,t[18]=L);let R;t[19]===i?R=t[20]:(R=v(`MarketOverview`,{variant:i}),t[19]=i,t[20]=R);let z;t[21]!==L||t[22]!==R?(z=(0,f.jsx)(g,{commodityPrices:L,className:R}),t[21]=L,t[22]=R,t[23]=z):z=t[23];let B;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(B=v(`ButtonsWrapper`),t[24]=B):B=t[24];let V;t[25]!==c||t[26]!==d||t[27]!==j?(V=c&&(0,f.jsx)(a,{className:v(`Button`,{primary:!0}),to:c,"data-testid":`commodity-prices-primary-btn`,trackGtmClick:j,children:d}),t[25]=c,t[26]=d,t[27]=j,t[28]=V):V=t[28];let H;t[29]!==p||t[30]!==m||t[31]!==j?(H=p&&(0,f.jsx)(a,{className:v(`Button`,{secondary:!0}),to:p,"data-testid":`commodity-prices-secondary-btn`,trackGtmClick:j,children:m}),t[29]=p,t[30]=m,t[31]=j,t[32]=H):H=t[32];let U;t[33]!==V||t[34]!==H?(U=(0,f.jsxs)(`div`,{className:B,children:[V,H]}),t[33]=V,t[34]=H,t[35]=U):U=t[35];let W;t[36]!==T||t[37]!==w||t[38]!==i?(W=i=="default"&&(0,f.jsxs)(`div`,{className:v(`SponsorAdWrapper`),children:[w&&(0,f.jsx)(`p`,{className:v(`SponsorAdTitle`),children:T?`Brought to you by`:`BROUGHT TO YOU BY`}),(0,f.jsx)(s.Slot,{pos:`sponsoredlogo_commodities_1v`,className:v(`SponsorAd`)})]}),t[36]=T,t[37]=w,t[38]=i,t[39]=W):W=t[39];let G;t[40]===e?G=t[41]:(G=(0,f.jsx)(x,{...e}),t[40]=e,t[41]=G);let K;t[42]!==z||t[43]!==U||t[44]!==W||t[45]!==G||t[46]!==I?(K=(0,f.jsxs)(`div`,{className:I,children:[z,U,W,G]}),t[42]=z,t[43]=U,t[44]=W,t[45]=G,t[46]=I,t[47]=K):K=t[47];let q;return t[48]!==K||t[49]!==F?(q=(0,f.jsxs)(`div`,{"data-module":`commodity-prices`,className:M,children:[F,K]}),t[48]=K,t[49]=F,t[50]=q):q=t[50],q},x=e=>{let t=(0,u.c)(14),{copyRightInformation:n,variant:r,level:a}=e;if(!n)return null;let{logoImage:o,logoImageAltText:s,copyrightNotice:c}=n,l;t[0]!==a||t[1]!==r?(l=v(`CopyrightWrapper`,{level:a,variant:r}),t[0]=a,t[1]=r,t[2]=l):l=t[2];let d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=v(`CopyrightImage`),t[3]=d):d=t[3];let p;t[4]!==o||t[5]!==s?(p=(0,f.jsx)(i,{className:d,src:o,alt:s,title:s,fallback:`brand`}),t[4]=o,t[5]=s,t[6]=p):p=t[6];let m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=v(`CopyrightNotice`),t[7]=m):m=t[7];let h;t[8]===c?h=t[9]:(h=(0,f.jsx)(`div`,{className:m,dangerouslySetInnerHTML:{__html:c}}),t[8]=c,t[9]=h);let g;return t[10]!==l||t[11]!==p||t[12]!==h?(g=(0,f.jsxs)(`div`,{className:l,"data-testid":`commodity-prices-copyright`,children:[p,h]}),t[10]=l,t[11]=p,t[12]=h,t[13]=g):g=t[13],g};export{b as t};
2//# sourceMappingURL=src-DJ0GvVYb.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.