Files
roi24/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/2095-5f983cc1d5be46e8_05Q6.js
T
neo 932ec3ac8f KPI cards: Bloomberg stock ticker style
- Redesign KPI cards to look like stock tickers
- Add ticker ID (e.g. ВЫРУЧК:KPI, AOV:KPI)
- Arrow up/down SVG indicators for change direction
- Mini trend-line (50px) inside each card
- Change color: green (#16a34a) for up, red (#e21d1d) for down
- Remove sparkline background area, keep only line
- Fix duplicate arrowUp variable naming (bArrowUp/bArrowDown/bArrowNeutral)
2026-06-21 18:14:08 +05:00

1 line
9.7 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2095],{15782:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var o=n(85893),a=n(67294),r=n(33090),i=n(53867),l=n(1437),s=n.n(l),c=n(89584),u=n(92175);let d=e=>{window.cmpClient.cmd.push(()=>{window.getCmpClient().addPrivacyManager(e)})};function p(e){var t;let{footerMenuItems:n,locale:l=c.go.En}=e,p=(0,a.useCallback)((e,t)=>{(0,i.uH)("footerClick",t,e)},[]),m=(null===(t=u.h$[l])||void 0===t?void 0:t.routeLocale)||l;return(0,o.jsx)(r.$,{addPrivacyManager:d,name:"footer",footerMenuItems:n,trackingFunction:p,desktopBreakpointClassName:s().gridFooter,locale:m})}},50722:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var o=n(85893),a=n(67294),r=n(47631),i=n(25173),l=n(50448),s=n(93859),c=n(31361),u=n(90573),d=n.n(u),p=n(89584),m=n(92175);function g(e){var t,n;let{menuItems:u,countryCode:g,locale:h=p.go.En}=e,b=(0,a.useRef)(null),[v,f]=(0,a.useState)({top:"0px"}),w=(0,a.useCallback)(()=>{f({top:"0px"})},[]),x=(0,a.useCallback)(()=>{if(b.current){let e=b.current.clientHeight;f({top:"-".concat(e,"px")})}},[b.current]),y=(0,a.useCallback)((e,t)=>{var n;null===(n=window.dataLayer)||void 0===n||n.push({eventCategory:"nav",event:"navClick",eventAction:e,eventLabel:t})},[]);(0,s.B)({scrollingElementRef:b,scrollDirectionThreshold:30,onScrollUpCallback:w,onScrollDownCallback:x});let j=!!(null===(t=(0,c.useFeatureGate)("japan_login_nav"))||void 0===t?void 0:t.value),C=(null===(n=m.h$[h])||void 0===n?void 0:n.routeLocale)||h;return(0,o.jsx)("div",{className:d().nav,style:v,ref:b,children:(0,o.jsx)(r.J,{initializeSignInWithRegUI:(0,l.YM)().initializeSignInWithRegUI,theme:i.yU.DARK,user:(0,l.YM)().user,searchClient:(0,l.YM)().searchClient,onSignOut:(0,l.YM)().onSignOut,desktopBreakpointClassName:d().gridNavDesktop,countryCode:g,...u?{menuItems:u}:{hideMenu:!0},trackingFunction:y,subscriptionUrl:(0,l.YM)().subscriptionUrl,upgradeUrl:(0,l.YM)().upgradeUrl,locale:C,isJapanLoginEnabled:j})})}},52095:function(e,t,n){"use strict";n.d(t,{F:function(){return ee}});var o=n(85893),a=n(12918),r=n.n(a),i=n(67294),l=n(65804),s=n(59628),c=n(35426),u=n.n(c),d=n(31361),p=n(84533),m=n(55441),g=n(22539),h=n(50448),b=n(42977),v=n(51956),f=n(53867),w=n(8590),x=n(30202),y=n(34576),j=n(11465),C=n(86896),k=n(50722),_=n(15782),T=n(9008),I=n.n(T),S=n(83116),M=n(38742),O=n(53537);let F=(e,t,n,o)=>({"@context":"https://schema.org","@type":"Person",name:e,jobTitle:t||null,worksFor:n||null,image:o?{"@type":"ImageObject",url:o}:void 0}),N=(e,t)=>[...e.slice(0,3).map(e=>{var t;return F(e.name,e.currentPosition,e.companyName,null===(t=e.thumbnail)||void 0===t?void 0:t.src)}),...t.slice(0,3).map(e=>{var t;return F(e.name,void 0,e.companyName,null===(t=e.thumbnail)||void 0===t?void 0:t.src)})],P=e=>{let{company:t,displayName:n,shortTickerId:o,shortExchange:a}=e,{boardMembers:r=[],companyDescription:i,companyIsPrivate:l,companyPhone:s,companyWebsite:c,companyAddress:u,executives:d=[],foundedYear:p,numberOfEmployees:m}=t||{};return{"@context":"https://schema.org","@type":l?"Organization":"Corporation",name:n,description:i,address:u,telephone:s,foundingDate:p,url:c,numberOfEmployees:m,employee:N(d,r),tickerSymbol:l?void 0:"".concat(a," ").concat(o)}};var D=n(1864);let z=n.n(D)().join("https://assets.bwbx.io/s3/bazaar//_next/static/media/bloomberg-logo-amp.bae0aa0a.png"),E={communications:"/communication-services","consumer discretionary":"/consumer-discretionary","consumer staples":"/consumer-staples",energy:"/energy",financials:"/financials","health care":"/health-care",industrials:"/industrials",materials:"/materials",technology:"/information-technology",utilities:"/utilities",default:""},R={"quote-bazaar":"https://www.bloomberg.com/profile/company","quote-companyProfile":"https://www.bloomberg.com/quote",default:""},U=()=>({"@type":"Organization",name:"Bloomberg",url:"https://www.bloomberg.com",logo:{"@type":"ImageObject",url:z,width:262,height:60}}),L=(e,t)=>({"@context":"http://schema.org","@type":"Thing",name:e,url:t}),q=(e,t,n,o)=>{let a=[];if(!e)return a;if(o){let e=o.toLowerCase(),t=E[e]||E.default,n=L(e,"".concat("https://www.bloomberg.com/markets/sectors").concat(t));a.push(n)}let r=R[t]||R.default,i=L(n,"".concat(r,"/").concat(e));return a.push(i),a},A=e=>{let{bicsSector:t,description:n,displayName:o,keywords:a,pageType:r,tickerId:i,title:l,url:s}=e;return{"@context":"https://schema.org","@type":"WebPage",name:l,description:n,keywords:a,mainEntityOfPage:s,mentions:q(i,r,o,t),publisher:U(),isAccessibleForFree:"False",hasPart:{"@type":"WebPageElement",isAccessibleForFree:"False",cssSelector:".paywall"}}};function B(e){let{constructedTitle:t,description:n,keywords:a,title:r,url:l}=e.metadata,s=(0,M.gq)({canonical:l,description:n,keywords:a}),c=(0,M.W4)({twitterHandle:"@markets",creator:"@markets",description:n,title:r,image:"https://www.bloomberg.com/favicon-black.png"}),u=(0,M.wU)({type:"company",title:r,url:l,image:"https://www.bloomberg.com/favicon-black.png",description:n,keywords:a}),{mediaSecurityType:d,tickerId:p}=e.metadata,m=JSON.stringify(A(e.metadata)),g=p&&JSON.stringify(P(e.metadata)),h=p&&(0,O.T$)(p,d);return(0,i.useEffect)(()=>{var e,t,n,o;(null===(t=window)||void 0===t?void 0:null===(e=t.__bloomberg__)||void 0===e?void 0:e.setContentMetadata)&&(null===(o=window)||void 0===o||null===(n=o.__bloomberg__)||void 0===n||n.setContentMetadata(h))},[]),(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(I(),{children:[(0,o.jsx)("title",{children:t||r}),(0,o.jsx)(M.sC,{env:"production"}),(0,o.jsx)("meta",{httpEquiv:"refresh",content:"3600"}),s,c,u,(0,o.jsx)("meta",{name:"will-have-content-metadata",content:"true"}),(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify((0,S.Z)())}}),(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:m}}),g&&(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:g}})]})})}var W=n(40281),H=n(19042);function J(e){let{id:t,contentType:n}=e;return(0,i.useEffect)(()=>{t&&n&&H.e5.setContentMetadata("production",{id:t,contentType:n})},[t,n]),null}var Y=n(4298),Z=n.n(Y);let $="//".concat("assets.bwbx.io","/s3/fence/plug-client/v0/app.bundle.js");function G(){return(0,o.jsx)(Z(),{src:$,id:"plug-client-snippet",onReady:()=>{window.plugClient&&window.plugClient.init({"top-of-content":".plug-top-of-content",banner:".plug-banner"})},strategy:"lazyOnload"})}let K="production",V=["production","blue","orange"].includes("production")?v.I.PRODUCTION:v.I.STAGING,Q=()=>{var e,t;return(null===(e=window)||void 0===e?void 0:e.location.hostname.includes("localhost"))||(null===(t=window)||void 0===t?void 0:t.location.hostname.includes("local.bloomberg"))?"development":"production"},X=new w.S;function ee(e){let{analytics:t,children:n,contentType:a,countryCode:c,disablePaywall:v=!1,footerMenuItems:w,fortressOptions:T,menuItems:I,metadata:S,partial:M,pageId:F,pageData:N={},pageType:P,tickerbar:D,removeTickerBar:z=!1,tophat:E,adConfig:R}=e,U="page-preference-".concat(F),[L,q]=(0,j._)(U,{}),A=(0,i.useCallback)((e,t)=>{q(n=>{let o=n||{};return o[e]=t,{...o}})},[q]),H=(0,d.useStatsigClientWebSetup)({environmentTier:Q(),statsigClientKey:"client-1p8DG5KLb7bMbqNY9JDTj19BblTiBaafd3BOWdruTrz"}),{locale:Y}=(0,C.Z)(),Z=(0,i.useMemo)(()=>({...T,...T.articleInfo?{articleInfo:{...T.articleInfo,locale:Y}}:void 0}),[T,Y]);if(M)return null;if(D||"watchlist"!==P||(0,f.uH)("watchlistError","Get Watchlist Tickerbar Failure","error","watchlist"),!E||!I||!w||!z&&!D)return(0,o.jsx)(r(),{statusCode:500});let $={adOptions:R.globalAdOptions,articleMetadata:(0,O.T$)(F,a)},ee={options:Z,...v&&{inView:!1}},{isDecoupled:et,adContextData:en}=(0,O.u2)(F);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(G,{}),(0,o.jsx)(f.C2,{analytics:t}),(0,o.jsx)(b.iJ,{...ee,children:(0,o.jsx)(s.RegUIClientProvider,{children:(0,o.jsx)(d.StatsigProvider,{client:H,children:(0,o.jsxs)(u(),{...(0,O.Rw)(P,null==t?void 0:t.adcode,et,en,e.adTargeting,Y),children:[(0,o.jsx)(B,{metadata:S}),(0,o.jsx)(J,{id:F,contentType:a}),(0,o.jsx)(l.Z,{...$,children:(0,o.jsxs)(p.zd,{isDecoupled:et,children:[(0,o.jsx)(g.Q,{snippet:E}),(0,o.jsx)(h.N7,{children:(0,o.jsx)(k.Z,{menuItems:I,countryCode:c,locale:Y})}),!z&&(0,o.jsx)(m.C,{tickerBar:D||[]}),(0,o.jsxs)(x.aH,{client:X,children:[(0,o.jsx)(W.z.Provider,{value:{countryCode:c,pageId:F,pageData:N,pageType:P,partial:M,pagePreference:L,updatePagePreference:A,searchClientURL:"https://search.bloomberg.com/"},children:n}),(0,o.jsx)(y.t,{initialIsOpen:!1})]}),(0,o.jsx)(b.r5,{fortressClientDomain:V,color:K}),(0,o.jsx)(b.CO,{fortressClientDomain:V,color:K,esm:!0}),(0,o.jsx)(_.Z,{footerMenuItems:w,locale:Y})]})})]})})})})]})}},40281:function(e,t,n){"use strict";n.d(t,{V:function(){return r},z:function(){return a}});var o=n(67294);let a=(0,o.createContext)(null),r=()=>{let e=(0,o.useContext)(a);if(!e)throw Error("usePageData must be used within a PageContext.Provider");return e}},53537:function(e,t,n){"use strict";n.d(t,{Rw:function(){return l},T$:function(){return s},u2:function(){return a}});let o={"stocks-bazaar":"markets/stocks/index","quote-bazaar":"markets/quote","watchlist-bazaar":"markets/watchlist"},a=e=>({isDecoupled:!0,adContextData:{adPageType:"quote",tickerId:e}}),r=(e,t,n)=>{let a="ja"===n?"japan":"bloomberg";return t?"".concat(a,"/").concat(t):"".concat(a,"/").concat(o[e]||"markets/custom")},i={mobile:0,tablet:768,small_desktop:1123,large_desktop:1335},l=(e,t,n,o,a,l)=>({defaultAdCode:r(e,t,l),sparkleInitOptions:{pageTargeting:{page:e,...a},breakpoints:i,useCachedConsent:!0,disableIAS:!0,enableBombora:!0,isDecoupled:n,adContextData:o,excludeTargetingTypes:["content"],dvScriptUrl:"https://pub.doubleverify.com/dvtag/24434720/DV1462763/pub.js"}}),s=(e,t)=>({contentType:t,id:e,contentTags:[{id:e,type:t}]})},1437:function(e){e.exports={gridFooter:"footer_gridFooter__ftk5A"}},90573:function(e){e.exports={gridNavDesktop:"nav_gridNavDesktop__4OxRl",nav:"nav_nav__7WSAd"}}}]);