1import{h as n,c as o,j as a}from"./styledComponents-n4UW4kpA.js";import{m as l,P as i,g as f,H as w,f as u}from"./index-Dbx1gyta.js";import"./react-C3MRYTMn.js";import{I as g}from"./Icon-CkZJfHnP.js";import{b as d}from"./brandTextCheck-BtVFi4-W.js";import{T as y}from"./Text-DGc87esK.js";import"./redux-DEt5ekS8.js";import"./index-g6qz2-ej.js";import"./urlHelpers-szXc1bAB.js";const m=({status:t="",colours:e})=>{var r,s;switch(t.toLowerCase()){case"up":return"#128579";case"down":return((r=e==null?void 0:e.status)==null?void 0:r.r)||"#F16241";case"none":return((s=e==null?void 0:e.text)==null?void 0:s.primary)||"#3D4850";default:return"unset"}},c={mobile:"calc((100% - (10px * 2)) / 2)",tablet:"calc((100% - (10px * 3)) / 3)",desktop:"calc((100% - (10px * 6)) / 6)"},b=n.div.withConfig({displayName:"MarketDetailstyle__Wrapper",componentId:"sc-6lbuva-0"})(["",""],({theme:t,closed:e,change:p})=>o(["display:flex;flex-direction:column;align-items:center;background-color:",";"," padding:10px 5px;margin:5px;text-align:center;width:",";"," ","{width:",";}","{width:",";}"],t.colours.accent.keyline,e?`border-bottom: 2px solid ${t.colours.accent.keyline}`:`border-bottom: 2px solid ${m({status:p,colors:t.colours})}`,c.mobile,e?`color: ${t.colours.text.secondary};`:"",l(t.breakpoints.a),c.tablet,l(t.breakpoints.b),c.desktop)),k=n.span.withConfig({displayName:"MarketDetailstyle__Name",componentId:"sc-6lbuva-1"})(["",""],({theme:t})=>o(["font-weight:bold;margin:0 5px;"])),_=n.span.withConfig({displayName:"MarketDetailstyle__Percentage",componentId:"sc-6lbuva-2"})([""]),v=n.span.withConfig({displayName:"MarketDetailstyle__Change",componentId:"sc-6lbuva-3"})(["",""],({theme:t})=>o(["font-weight:bold;font-size:18px;"])),I=n.div.withConfig({displayName:"MarketDetailstyle__ChangeWrapper",componentId:"sc-6lbuva-4"})(["",""],({theme:t,change:e})=>o(["display:flex;align-items:center;margin:5px 0;svg{fill:",";}span{color:",";}"],m({status:e,colors:t.colours}),m({status:e,colors:t.colours}))),j=n.span.withConfig({displayName:"MarketDetailstyle__Value",componentId:"sc-6lbuva-5"})([""]),C=n.span.withConfig({displayName:"MarketDetailstyle__Status",componentId:"sc-6lbuva-6"})(["font-size:18px;font-weight:bold;text-transform:uppercase;margin:5px 0;"]),M=({status:t})=>{switch(t.toLowerCase()){case"up":return a.jsx(g,{icon:"arrow-up-small",height:"16px",width:"16px",marginRight:"5px"});case"down":return a.jsx(g,{icon:"arrow-down-small",height:"16px",width:"16px",marginRight:"5px"})}},h=({name:t,value:e,change:p,percentChange:r,closed:s})=>a.jsxs(b,{closed:s,change:r,children:[t&&a.jsx(k,{dangerouslySetInnerHTML:{__html:d(t)}}),s?a.jsx(C,{children:"closed"}):a.jsxs(a.Fragment,{children:[a.jsxs(I,{change:r,children:[r&&a.jsx(_,{children:M({status:r})}),p&&a.jsx(v,{children:`${p}%`})]}),e&&a.jsx(j,{dangerouslySetInnerHTML:{__html:d(e)}})]})]});h.propTypes={name:i.string,value:i.string,change:i.string,percentChange:i.string,closed:i.bool};const N=n.div.withConfig({displayName:"MarketInformationstyle__Wrapper",componentId:"sc-1gd9ve5-0"})(["margin-bottom:40px;"]),T=n.h4.withConfig({displayName:"MarketInformationstyle__Title",componentId:"sc-1gd9ve5-1"})(["",""],({theme:t})=>o(["text-transform:uppercase;padding:0 0 10px;border-bottom:1px solid #1daaf1;"])),W=n.p.withConfig({displayName:"MarketInformationstyle__TextContainer",componentId:"sc-1gd9ve5-2"})(["",""],({theme:t})=>o(["margin-top:20px;","{max-width:80%;}"],l(t.breakpoints.b))),x=({title:t,text:e})=>a.jsxs(N,{children:[t&&a.jsx(T,{dangerouslySetInnerHTML:{__html:d(t)}}),e&&a.jsx(W,{children:a.jsx(y,{children:e})})]});x.propTypes={title:i.string,text:i.string};const D=n.div.withConfig({displayName:"MarketOverview__Wrapper",componentId:"sc-vokq69-0"})([""," ",""],f,({theme:t})=>o(["margin-top:",";margin-bottom:",";"],t.spacing.outer.small,t.spacing.outer.large)),S=n.div.withConfig({displayName:"MarketOverview__DetailWrapper",componentId:"sc-vokq69-1"})(["",""],({theme:t})=>o(["display:flex;flex-flow:row wrap;> div{","{&:nth-child(2n){margin-right:0;}&:nth-child(2n + 1){margin-left:0;}}","{&:nth-child(3n){margin-right:0;}&:nth-child(3n + 1){margin-left:0;}}","{&:nth-child(6n){margin-right:0;}&:nth-child(6n + 1){margin-left:0;}}}"],u(t.breakpoints.a),w(t.breakpoints.a,t.breakpoints.b),l(t.breakpoints.b))),$=n.div.withConfig({displayName:"MarketOverview__InformationWrapper",componentId:"sc-vokq69-2"})(["",""],({theme:t})=>o(["margin-top:",";"],t.spacing.inner)),L=({marketDetail:t,marketOverview:e,title:p})=>
1a.jsxs(D,{children:[p&&a.jsx("h1",{children:p}),t&&a.jsx(S,{children:t.map((r,s)=>a.jsx(h,{...r},s))}),e&&a.jsx($,{children:e.map((r,s)=>a.jsx(x,{...r},s))})]});L.propTypes={marketDetail:i.array,marketOverview:i.array,title:i.string};export{L as default}; 2//# sourceMappingURL=MarketOverview-BNWq4wI8.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.