PageSourceSearch

https://www.londonstockexchange.com/assets/widgets/v2.7.3/WTimeSales/WTimeSales.js

js londonstockexchange.com collected 2026-10-01 07:46:20 UTC 34,306 bytes, 1 lines download raw bytes

1"use strict";var fdc__widgets__;(self.webpackChunkfdc_widgets_=self.webpackChunkfdc_widgets_||[]).push([[9915],{2820:(e,t,i)=>{i.d(t,{_:()=>a});var s=i(77652);function a(){const e=(0,s.IL)(0),t=function(){const t=this.$el.querySelector(".display-full-content"),i=this.$el.querySelector(".display-full-content-wrap");t&&(t.classList.remove("display-full-content"),t.style.left=e.value+"px",t.parentElement.style["z-index"]=0),i&&(i.style.top="0px",i.classList.remove("display-full-content-wrap"),i.parentElement.style["z-index"]=0)};return{displayFullContent:function(i,s,a){let r=a?i.event.srcElement:i.srcElement;if(null!==r&&(0===r.childElementCount||s)){for(;!r.classList.contains("ag-cell")&&!r.classList.contains("ag-header-cell");)if(r=r.parentElement,null===r)return;if(0!==r.querySelectorAll(".v-flag").length)return;if(r.parentElement)if(r.classList.contains("ag-cell-wrap-text")){if(r.scrollHeight-parseFloat(getComputedStyle(r,null).paddingTop)-parseFloat(getComputedStyle(r,null).paddingBottom)>r.clientHeight){let e;null!==r.parentElement.previousSibling&&null!==r.parentElement.nextSibling?e=-(r.scrollHeight-r.clientHeight)/2:null===r.parentElement.nextSibling&&(e=-(r.scrollHeight-r.clientHeight)),r.style.top=e+"px",r.parentElement.style["z-index"]=1,r.classList.add("display-full-content-wrap")}}else{t.call(this);let i={"padding-left":getComputedStyle(r,null)["padding-left"],"padding-right":getComputedStyle(r,null)["padding-right"]};const s=function(e,t,i,s,a){let r=document.createElement("div");r.innerHTML=e,r.style.left="-99in",r.style.position="absolute",r.style.whiteSpace="nowrap",r.style["font-family"]=i,r.style["font-size"]=s,r.style["font-weight"]=a,Object.keys(t).forEach((e=>{r.style[e]=t[e]})),document.body.appendChild(r);const n=r.clientWidth;return document.body.removeChild(r),n}(r.textContent.trim(""),i,getComputedStyle(r,null)["font-family"],getComputedStyle(r,null)["font-size"],getComputedStyle(r,null)["font-weight"]);if(r.clientWidth<s+1){e.value=parseFloat(getComputedStyle(r,null).left);let t,i=e.value;const a=parseFloat(r.parentElement.parentElement.parentElement.scrollWidth);t=i+s,t>a&&(i-=t-a+(r.classList.contains("ag-cell")?5:10)),r.style.left=i+"px",r.classList.add("display-full-content"),r.parentElement.style["z-index"]=1}}}},displayOriginalView:t}}},38328:(e,t,i)=>{i.d(t,{g:()=>a});var s=i(77652);function a(e){e||(e=(0,s._S)().proxy);const{$d:t,$t:i,$tc:a,$te:r}=e;return{d:t.bind(e),t:i.bind(e),tc:a.bind(e),te:r.bind(e),locale:(0,s.S6)((()=>e.$i18n.locale))}}},95772:(e,t,i)=>{i.d(t,{_:()=>n});let s={setLogLevel:function(e){window.sessionStorage&&window.sessionStorage.setItem("fdc_log_level",e),dory.config.logger.level=e},getLogLevel:function(){return window.sessionStorage&&window.sessionStorage.getItem("fdc_log_level")||-1}};try{void 0===window.fdcLogger&&(window.fdcLogger=s)}catch(e){console.error(e.name+": "+e.message)}const a=s;var r=i(77652);function n(){const e=(0,r._S)().proxy.wid;return{log:function(...t){a.getLogLevel()>=0&&console.log(`[${e}] [${(new Date).toLocaleTimeString()}]`,...t)}}}},8624:(e,t,i)=>{i.d(t,{u:()=>n});var s=i(16308),a=i(84700),r=i(38328);function n(e){const{f:t}=(0,a.Yn)(),{t:i,te:n,locale:o}=(0,r.g)(),l=e=>{if(e&&"-"!==e&&":"!==e.trim()){let i=(new Date).toJSON().split("T")[0];i=i.replace(/-/g,"/");const s=new Date(`${i} ${e} UTC`),a=3===e.split(":").length;return t(s,a?"time.hms":"time.hm")}return"-"};return{formatTime:l,gridFormatCompactDateTime:e=>(e.data["q._TRADE_DATE"]&&(e.data["q._TRADE_DATE"]=e.data["q._TRADE_DATE"].trim()),e.data["q._TRDTIM_1"]&&(e.data["q._TRDTIM_1"]=e.data["q._TRDTIM_1"].trim()),e.data["q._TRDTIM_1"]&&"-"!==e.data["q._TRDTIM_1"]&&":"!==e.data["q._TRDTIM_1"]&&e.data["q._TRADE_DATE"]===(0,s.c)(new Date,"dd MMM yyyy").toUpperCase()||!e.data["q._TRADE_DATE"]||"-"===e.data["q._TRADE_DATE"]?l(e.data["q._TRDTIM_1"]):t(e.data["q._TRADE_DATE"],"date")),fieldValueTranslations:(t,s)=>{const a=`${e}Widget.fieldValueTranslations['${s}'].${t.value.trim()}`,r=`${e}Widget.fieldValueTranslations['${s}'].default`;return n(a,o)||n(a,"en-US")?i(a):n(r,o)||n(r,"en-US")?i(r):t.value}}}},10136:(e,t,i)=>{i.d(t,{k:()=>s});const s={positive:e=>e.data&&e.data.change?+e.data.change>0:e.value>0||"up"===e.value,neutral:e=>e.data&&e.data.change?0==+e.data.change:0===e.value||"right"===e.value,negative:e=>e.data&&e.data.change?+e.data.change<0:e.value<0||"down"===e.value}},91472:(e,t,i)=>{i.d(t,{y:()=>n});var s=i(52736),a=i(84700),r=i(8624);function n(e,t){const{f:i}=(0,a.Yn)(),{formatTime:n,fieldValueTranslations:o}=(0,r.u)(t);let l=(0,s.yK1)(e);delete l.width,delete l.$f;const d={};return e.valueFormatter||(d.valueFormatter=e=>{if(e.value){const t=e.colDef.field;switch(e.colDef.type?e.colDef.type.split(".")[0]:"string"){case"string":return o(e,t);case"float":return i(e.value,"q._TURNOVER"===t?"float.compact":e.colDef.type);case"int":return i(e.value,"q._ACVOL_1"===t?"float.compact":e.colDef.type);case"datetime":case"date":return i(e.value,e.colDef.type);case"time":return n(e.value);default:return e.value}}}),{...l,...d}}},83632:(e,t,i)=>{i.d(t,{W:()=>s,c:()=>a});try{if(void 0===window.dory)throw new Error("The Dory SDK is missing. Can't use the API.")}catch(e){console.error(e.name+": "+e.message)}const s={Auth:window.dory.Auth,Rest:window.dory.Rest,Streaming:window.dory.BaseStreaming,UserData:window.dory.UserData},a=s},35088:(e,t,i)=>{i.d(t,{c:()=>a});var s=i(83632);class a{constructor(e){this.widgetId=e}async get(e,t){return await s.W.Rest.get(e,{...t,headers:{"X-Component-Id":this.widgetId,...t?.headers}})}async post(e,t,i){return await s.W.Rest.post(e,t,{...i,headers:{"X-Component-Id":this.widgetId,...i?.headers}})}}},72487:(e,t,i)=>{i.d(t,{El:()=>d,G:()=>l,IL:()=>n,Uh:()=>o,cn:()=>r,mM:()=>a,ot:()=>c});const s={countryFlag:{field:"q._COUNTRY",fids:["q._COUNTRY"]},compactDateTime:{fids:["q._TRDTIM_1","q._TRADE_DATE"]},bidOrIndAuc:{fids:["q._BID","q.IND_AUC","q.RDN_EXCHD2","q.PERIOD_CDE","q.PERIOD_CD2"]},askOrIndAuc:{fids:["q._ASK","q.IND_AUC","q.RDN_EXCHD2","q.PERIOD_CDE","q.PERIOD_CD2"]}},a=e=>{let t=[];return e.forEach((e=>{e.renderer?s[e.renderer]&&t.push(...s[e.renderer].fids):t.push(e.field)})),t},r=e=>s[e]?s[e].field:void 0,n=(e,t,i)=>{const{event:s}=e,{keyCode:a}=s;
1if(13===a||32===a)if("button"===e.colDef.type){const{buttons:a}=e.colDef;for(let r=0;r<a.length;r++)i({ric:t,origin:s,button:a[r],gridContext:e})}else i({ric:t,origin:s,gridContext:e})},o=(e,t,i)=>{"button"!==e.colDef.type&&("button"===e.event.srcElement.localName?i({ric:t,origin:e.event,gridContext:e,button:{class:e.event.srcElement.getAttribute("class")}}):i({ric:t,origin:e.event,gridContext:e}))},l=(e,t)=>{switch(e.pinned){case"true":case!0:case"start":e.pinned=t?"right":"left";break;case"end":e.pinned=t?"left":"right";break;default:e.pinned=null}return e},d=(e,t,i)=>{if(e.api){const s=-1===t?void 0:t;e.rowHeight=s,e.api.forEachNode((function(e){e.setRowHeight(s)})),"corporateEvents"!==i&&"newsHeadlines"!==i||void 0!==s?e.api.onRowHeightChanged():e.api.redrawRows()}},c=(e,t)=>{if(t.api){e.classList.remove("auto-height"),t.api.setDomLayout("autoHeight");const i=e.querySelector(".ag-root-wrapper").scrollHeight,s=parseFloat(getComputedStyle(e).paddingTop)+parseFloat(getComputedStyle(e).paddingBottom);i>e.clientHeight-s?t.api.setDomLayout("normal"):e.classList.add("auto-height")}}},77780:(e,t,i)=>{i.d(t,{c:()=>s});const s=function(e,t){return{getLocaleMessages:(e="en-US")=>t.getLocaleMessages(e),setLocaleMessages:(e,i)=>("en"===e&&(e="en-US"),t.setLocaleMessages(e,i)),getLocale:()=>t.getStoreLocale(),setLocale:e=>t.setLocaleAndUpdateStore(e)}}},26684:(e,t,i)=>{i.d(t,{S:()=>g});var s=i(98820),a=i(54092),r=i(69340),n=i(38840);const o=JSON.parse('{"doryRestEndpoint":"https://dory-staging.financial.com/rest","numberFormats":{"int":{"minimumFractionDigits":0,"maximumFractionDigits":0,"useGrouping":true},"float":{"style":"decimal","minimumFractionDigits":1,"maximumFractionDigits":4,"useGrouping":true},"price":{"formats":["0.0000","00.000","000.00","000.00","000.00"]},"ratio":{"style":"decimal","minimumFractionDigits":2,"maximumFractionDigits":4,"useGrouping":true},"percent":{"style":"decimal","minimumFractionDigits":2,"maximumFractionDigits":2},"compact":["","","","0.0K","00K","000K","0.0M","00M","000M","0.0B","00B","000B","0.0T","00T","000T"]},"dateTimeFormats":{"time":{"hour":"2-digit","minute":"2-digit","second":"2-digit","hour12":true,"hm":{"hour":"2-digit","minute":"2-digit","hour12":true},"hms":{"hour":"2-digit","minute":"2-digit","second":"2-digit","hour12":true}},"date":{"year":"numeric","month":"2-digit","day":"2-digit","a11y":{"month":"long","day":"numeric","year":"numeric"},"ymd":{"year":"numeric","month":"2-digit","day":"2-digit"},"ym":{"year":"numeric","month":"2-digit"}}},"booleanFormats":{"bool":{"true":"Yes","false":"No","null":"-"}},"widgetStatus":{}}');var l=i(53896);function d(e,t){return e||t}function c(e){return e.numberFormats=(0,r.c)(e.numberFormats,o.numberFormats,d),e.dateTimeFormats=(0,r.c)(e.dateTimeFormats,o.dateTimeFormats,d),e}s.default.use(a.c);class g{wid=null;widgetKey=null;i18n=null;store=null;getDoryLibraryLocales=()=>({});isVuenit=!1;hasFlags=!1;static createI18n(){return new a.c({locale:"en-US",fallbackLocale:"en-US",silentTranslationWarn:!0,messages:[],numberFormats:{"en-US":o.numberFormats},dateTimeFormats:{"en-US":o.dateTimeFormats}})}constructor(e,t,i,s=(()=>({})),a=!1){switch(this.i18n=e,this.wid=t,this.store=i,this.isVuenit=a,t){case"esgCompanyScore":case"fundAllocation":case"fundScreener":this.widgetKey=this.wid+"Vuenit";break;case"worldHeatmap":this.widgetKey="worldHeatMap2D";break;case"marketList":case"winnersLosers":case"stockScreener":case"corporateEvents":case"instrumentInfo":case"mainIndex":case"marketTiles":case"economicEvents":case"interestRate":case"infoMatrix":this.hasFlags=!0;default:this.widgetKey=this.isVuenit?this.wid:this.wid+"Widget"}this.getDoryLibraryLocales=s}generateDoryLibraryLocales(e){const t={dory:{common:this.getDoryLibraryLocales(e)}};return this.hasFlags&&(t.dory.common.countries=l.k.W.w),t}generateBooleanFormats(e){return{booleanFormats:e&&e.booleanFormats?e.booleanFormats:o.booleanFormats}}getMergedRootLevelMessages(e,t){const i=this.i18n.getLocaleMessage(e),s=this.generateDoryLibraryLocales(t),a=this.generateBooleanFormats(t);return{dory:(0,r.c)(s.dory,i.dory,d),booleanFormats:(0,r.c)(a.booleanFormats,i.booleanFormats,d)}}setLocaleFormat(e="en-US",t={}){return this.i18n.setNumberFormat(e,t.numberFormats),this.i18n.setDateTimeFormat(e,t.dateTimeFormats),!0}getLocaleMessages(e="en-US"){return this.i18n.getLocaleMessage(e)[this.widgetKey]}addInitialLocales(e,t,i="en-US"){for(let i=0;i<e.length;i++){let s=e[i],a={...this.i18n.getLocaleMessage(s),[this.widgetKey]:c(t[s][this.widgetKey]),...this.getMergedRootLevelMessages(s,t[s][this.widgetKey])};this.i18n.setLocaleMessage(s,a)}-1===e.indexOf(i)&&this.i18n.setLocaleMessage(i,{...this.i18n.getLocaleMessage(i),[this.widgetKey]:o})}
1setLocaleMessages(e,t){t=t&&null!=t?t:{};const i=this.i18n.getLocaleMessage(e);let s=(0,n.c)(i[this.widgetKey],t);s=c(s);let a={[this.widgetKey]:s};a={...a,...this.getMergedRootLevelMessages(e,a[this.widgetKey])},a=(0,n.c)(this.i18n.getLocaleMessage(this.getLocale()),a),t?.numberFormats?.price&&(a[this.widgetKey].numberFormats.price=t.numberFormats.price),this.i18n.setLocaleMessage(e,a);let r=this.getFormatterLanguage(e,a[this.widgetKey]);return r!==e?this.setLocaleFormat(r,{numberFormats:a[this.widgetKey].numberFormats,dateTimeFormats:a[this.widgetKey].dateTimeFormats}):e===this.getStoreLocale()?this.setLocaleAndUpdateStore(e):this.setLocaleFormat(e,this.getLocaleMessages(e)),!0}setLocale(e){this.i18n.locale=this.getFormatterLanguage(e),this.setLocaleFormat(e,this.getLocaleMessages(e))}setLocaleInStore(e){let t=this.getLocaleMessages(e);return t=t||{},this.store.commit(`widget/${this.wid}/LOCALE_CHANGED`,{locale:e,...t}),this.i18n.locale}setLocaleAndUpdateStore(e){return this.setLocaleInStore(e),this.setLocale(e),!0}getFormatterLanguage(e,t){let i=t;if(!t&&(i=this.getLocaleMessages(e),!i)){const t=this.getLocaleMessages();this.setLocaleMessages(e,t)}return i&&i.formatterLanguage?i.formatterLanguage:e}getInstance(){return this.i18n}getLocale(){return this.i18n.locale}getStoreLocale(){return this.store.getters[`widget/${this.wid}/LOCALE_DEFAULT`]}}},10088:(e,t,i)=>{i.d(t,{Q:()=>r});var s=i(98820),a=i(58555);class r{widgetInstances=null;constructor(){this.widgetInstances=new Map}isWidgetInstancePresent(e){return this.widgetInstances.has(e)}destroyWidgetInstance(e,t){const{vm:i,wrapperElemTemplate:s}=this.widgetInstances.get(e);return i.$destroy(),t&&(i.$el.outerHTML=s.outerHTML),this.widgetInstances.delete(e),!0}getWidgetId(e){if(!("string"==typeof e))return e.getAttribute("id");{const t=document.querySelector(e);if(t)return t.getAttribute("id")}}generateWidgetId(){return`w-widget-${(0,a.Ck)()}`}createVM(e,t,i,a,r=(()=>{}),n=(()=>{})){const o=new s.default({i18n:i,store:a,render:r,destroyed:n});let l;return l="string"==typeof t?document.querySelector(t).cloneNode(!1):t.cloneNode(!1),o.$mount(t),this.widgetInstances.set(e,{vm:o,wrapperElemTemplate:l}),o}}},516:(e,t,i)=>{i.d(t,{a:()=>c});var s=i(98820),a=i(78820),r=i(30064),n=i(48416);function o(e){return null!==e&&"object"==typeof e}function l(e,t){if(!o(e)||!o(t))return t;for(const i in t)t.hasOwnProperty(i)&&((0,a.c)(t[i])||t[i]instanceof Date||!e.hasOwnProperty(i)||!o(e[i])||!o(t[i])?e[i]=t[i]:e[i]=l(e[i],t[i]));return e}function d(e,t,i){return"stockScreener"===e&&i?.exchanges&&(t.exchanges=i.exchanges),t}s.default.use(n.cp);class c{wid=null;store=null;constructor(e,t,i){this.wid=e,this.createStore(t,i)}createStore(e,t){this.store=new n.cp.Store({strict:!0,modules:{widget:{namespaced:!0,state:{}}},plugins:t}),this.store.registerModule(["widget",this.wid],e)}replaceState(e){let t=(0,r.c)(this.store.state);return e=e||{},this.store.replaceState({widget:{[this.wid]:d(this.wid,l(t.widget[this.wid],e),e)}}),this.store}getStore(){return this.store}}},61948:(e,t,i)=>{i.d(t,{m:()=>r});const s=["ar","fa","he","ur"],a=/^([a-zA-Z]*)([_\-a-zA-Z]*)$/,r=function(e="en-US"){const t=function(e){const t=a.exec(e);return null!=t&&t[1].toLowerCase()}(e);return-1!=s.indexOf(t)}},58555:(e,t,i)=>{i.d(t,{Ck:()=>c,G4:()=>r,Gb:()=>p,UV:()=>u,_c:()=>d,aq:()=>g,bY:()=>
1o,me:()=>m,sJ:()=>l,uw:()=>n,wm:()=>h});var s=i(27860),a=i(47064);const r=e=>[...new Set(e)].sort(((e,t)=>e-t)),n=e=>e.filter(((t,i)=>e.findIndex((e=>e.x===t.x))===i)),o=e=>e.toDateString()===new Date(Date.now()).toDateString(),l=e=>{const t=new Date(Date.now()),i=new Date(e);return t.getUTCDate()===i.getUTCDate()&&t.getUTCMonth()===i.getUTCMonth()},d=(e=0,t=0,i=0)=>{const s=new Date(Date.now());return(Date.UTC(s.getUTCFullYear(),s.getMonth(),s.getUTCDate())+(60*e*60*1e3+60*t*1e3+1e3*i))/1e3},c=()=>Date.now()+Math.ceil(100*Math.random(0,100)),g=(e="en-US")=>1.1.toLocaleString(e).replace(/\d/g,""),u=e=>{const t=[];let i=-1;return e.forEach(((e,s)=>{const a=e.replace(/[0.]/g,"");""!==a&&(i=-1===i?s:i,t.push(a))})),i=-1===i?3:i,{numericSymbolMagnitude:Math.pow(10,i),numericSymbols:[...new Set(t)]}},m=(e,t)=>{const i=e[t];if(0===Number(e["q.IND_AUC"])||-0===Number(e["q.IND_AUC"])||"-"===e["q.IND_AUC"]||NaN===Number(e["q.IND_AUC"]))return i;{const t=e["q.IND_AUC"];switch(e["q.RDN_EXCHD2"]){case"OSL":case"PAR":case"AEX":case"BRU":if(!e["q.PERIOD_CD2"].startsWith("2"))return t;break;case"LSE":if(["a","u","d"].indexOf(e["q.PERIOD_CD2"])>-1)return t;break;case"GER":if(e["q.PERIOD_CD2"]>=5)return t;break;case"VTX":if(["M","I"].indexOf(e["q.PERIOD_CD2"])>-1)return t;break;default:return i}return i}},h=({date:e,time:t,locale:i="en-US"})=>{const r="dd.MM.yyyy",n=(0,s.c)(e,r),o="HH:mm:ss",l=(0,s.c)(t,o);if(!n&&!l)return"-";let d="",c="";n&&(d+=r,c+=e),l&&(d+=" "+o,c+=" "+t);const g=(0,a.c)(c,d,new Date);if("Invalid Date"===g.toString())return"-";return`${n?g.toLocaleDateString(i,{day:"2-digit",month:"2-digit"}):""} ${l?g.toLocaleTimeString(i,{hour:"2-digit",minute:"2-digit",hour12:!1}):""}`.trim()},p=(e,t,i)=>{let s=t.axis.tickPositions.reduce(((e,t)=>{const i=t.toString().split(".")[1]?.length||0;return Math.max(e,i)}),0);const a=(e,t)=>t>0?i.numberFormat(e,t):e;return"percent"===e?.scaling||e?.ricsCompare?.length?`${a(t.value,s)}%`:"logarithmic"===e?.scaling?t.value:a(t.value,s)}},82120:(e,t,i)=>{i.r(t),i.d(t,{init:()=>W});var s=i(98820),a=i(84700),r=i(516),n=i(26684),o=i(77780),l=i(10088),d=i(95676),c=i(30064),g=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"use-parent-viewport",rawName:"v-use-parent-viewport:widget",value:{wrapperClass:"widget-grid",...e.breakpoints},expression:"{ wrapperClass: 'widget-grid', ...breakpoints }",arg:"widget"}],class:`fdc-widget fdc-widget-wrapper time-sales-widget ${e.theme}`,attrs:{role:"region"}},[t("w-body",{class:e.theme+" widget-body",attrs:{wid:e.wid,ric:e.ric,timeRange:e.timeRange,columns:e.columns,tableRowHeight:e.tableRowHeight,locale:e.locale}})],1)};g._withStripped=!0;var u=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"resize",rawName:"v-resize:debounce.30",value:e.onResize,expression:"onResize",arg:"debounce",modifiers:{30:!0}}],staticClass:"widget-body w-time-sales-widget",attrs:{id:"w-time-sales-widget"}},[e.isError?e.isError&&1!=e.isError?t("div",{staticClass:"p-3 v-error-message"},[e._v("\n    "+e._s(e.i18n("messages."+e.isError))+"\n  ")]):t("div",{staticClass:"p-3 v-error-message"},[e._v("\n    "+e._s(e.i18n("messages.error"))+"\n  ")]):t("v-container",{staticClass:"h-100 grid-wrap",attrs:{fluid:""}},[t("v-row",{staticClass:"h-100"},[t("v-col",[t("ag-grid-vue",{ref:"timeSalesGrid",staticClass:"c-data-grid ag-theme-balham",attrs:{modules:e.modules,gridOptions:e.gridOptions,columnDefs:e.columnDefs},on:{gridReady:e.onGridReady,componentStateChanged:e.onGridStateChanged}})],1)],1),e._v(" "),e.isLazyLoading?t("v-spinner"):e._e()],1),e._v(" "),e.isLoading?t("v-loader",{staticClass:"loading-border"}):e._e()],1)};u._withStripped=!0;var m=i(77652),h=i(36685),p=i.n(h),f=i(52736),w=i(99072),y=i(48872),D=i(58388),v=i(79072),S=i(91472),C=i(10136),L=i(95772),_=i(2820),T=i(8296),b=i(75288),R=i(30016),E=i(60984),F=i(23739),M=i(61948),I=i(72487),O=i(35088);const A={setup(e){const t=(0,m._S)().proxy,{log:i}=(0,L._)(),{displayFullContent:s,displayOriginalView:a}=(0,_._)(),r=(0,f.I5n)({context:{instance:t,componentParent:t},suppressNoRowsOverlay:!0,suppressPropertyNamesCheck:!0,rowBuffer:2,enableRtl:(0,M.m)(t.locale.messages),defaultColDef:(0,S.y)({valueGetter:e=>{let i=e.colDef.field,s=t.formats[i],a=e.data[i];switch(s){case"int":return parseInt(a);case"float":return isNaN(parseFloat(a))?"-":a;case"time":return a||"-";case"datetime":return a?new Date(+a):"-";default:return a}},sortable:!1,minWidth:70,headerClass:"text-center",cellClass:"text-start",menuTabs:[],autoHeaderHeight:!0},e.wid),columnTypes:{string:{cellClass:"text-start"},"string.currency":{minWidth:95},time:{minWidth:70},date:{minWidth:80,headerClass:"text-start",cellClass:"direction-ltr"},datetime:{minWidth:145,headerClass:"text-center",cellClass:"direction-ltr"},int:{minWidth:80,headerClass:"text-center",cellClass:"text-end"},float:{minWidth:80,cellClass:"text-end"},"float.price":{minWidth:80,cellClass:"text-center",headerClass:"text-center",valueFormatter:e=>{if(e.value){let i=e.value.split(".");return i[1]?i[1].length<2&&(e.value+="0"):e.value+=".00",t.$f(e.value,"float.price")}}},"float.price.change":{cellClassRules:C.k,cellClass:"text-end",minWidth:70},"float.percentage":{minWidth:50,cellClass:"text-end"},"float.percentage.change":{cellClassRules:C.k,cellClass:"text-end",minWidth:50},custom:{cellClass:"text-center"}},headerHeight:32,rowHeight:28,stopEditingWhenCellsLoseFocus:!0,onBodyScroll:()=>{t.isScrollEnd()&&(t.isLazyLoading=!0,t.getTimeAndSalesData(t.lastTimeStamp).then((()=>{1===t.pageSizeMultiplier&&(t.isLazyLoading=!1)})).catch((e=>{console.error(e),e.message.indexOf("timeout")>=0&&t.restRetryCount<2?(t.restRetryCount++,t.getTimeAndSalesData(t.lastTimeStamp)):t.isLazyLoading=!1})))}});delete r.options.getRowId;return{log:i,useGridSettings:r,displayFullContent:s,displayOriginalView:a,apiService:new O.c("TimeSales")}},name:"w-time-sales-widget",components:{VLoader:D.c,VSpinner:v.c,AgGridVue:T.e,VCol:w.o,VRow:y.M,VContainer:f.KhF},directives:{resize:p()},props:{wid:{type:String,required:!0},ric:{type:Object,required:!0,validator:e=>"string"==typeof e.value&&"string"==typeof e.label},timeRange:{type:Object,required:!1},columns:{type:Array,required:!0},tableRowHeight:{type:Number,required:!0},locale:{type:Object,required:!0}},data(){return{isLoading:!1,isFirstLoad:!1,isError:!1,debounceFunction:null,configChangedHandler:null,isLazyLoading:!1,endOfRangeData:!1,lastTimeStamp:null,pageSize:100,pageSizeMultiplier:1,restRetryCount:0,modules:[b.N],gridSettings:{...this.useGridSettings,options:{...this.useGridSettings.options,tabToNextCell:e=>{this.gridOptions.api?this.gridOptions.api.clearFocusedCell():this.$el.activeElement.blur(),e.backwards&&this.$el.getElementsByClassName("ag-header-cell")[0].focus()}}},formats:{},widgetActive:!0}},computed:{resultsCount(){return this.pageSize*this.pageSizeMultiplier},gridOptions(){return this.gridSettings.options},columnDefs(){let e=/i18n\((.*)\)/s;return this.columns.map((t=>{let i={...t};return e.exec(i.headerName)&&(i.headerName=this.i18n(e.exec(i.headerName)[1])),"custom"===i.type&&"function"==typeof i.renderFunction&&(i.cellRenderer=function(e){return i.renderFunction(e.value,e.data,e.rowIndex)}),this.formats[i.field]&&!i.type&&(i.type=this.formats[i.field]),i=(0,I.G)(i,(0,M.m)(this.locale.messages)),i.autoHeight=!1,i}))},fids(){return this.columnDefs.map((e=>e.field))},startDate(){return this.timeRange.toDate&&this.timeRange.fromDate?this.getTime(this.timeRange.toDate):null},endDate(){return this.timeRange.fromDate?this.getTime(this.timeRange.fromDate):this.timeRange.toDate?this.getTime(this.timeRange.toDate):null}},created(){this.debounceFunction=this._.debounce(this.fetch,10)},mounted(){this.debounceFunction()},watch:{ric(){this.log("Ric updated with:",this.ric),this.debounceFunction()},timeRange(){this.log("Time range updated with:",this.timeRange),this.debounceFunction()},columns(){this.log("Columns updated with:",this.columns),this.debounceFunction()},locale(){this.debounceFunction()},tableRowHeight(e){this.log("watch tableRowHeight"),(0,I.El)(this.gridOptions,e)}},methods:{onGridReady(e){this.log("GRID: onGridReady");this.$refs.timeSalesGrid.$el.querySelector('[role="treegrid"]').setAttribute("aria-label",this.i18n("a11y.caption")),(0,I.El)(this.gridOptions,this.tableRowHeight);const t=this.$refs.timeSalesGrid.$el.querySelector(".ag-root");t.addEventListener("mouseover",(e=>this.displayFullContent(e))),t.addEventListener("mouseout",(e=>this.displayOriginalView(e))),t.addEventListener("focusin",(e=>this.displayFullContent(e,!0))),t.addEventListener("focusout",(e=>this.displayOriginalView(e))),t.addEventListener("click",(e=>this.displayFullContent(e)))},i18n(e){return this.$t(`${this.wid+"Widget"}.${e}`,this.locale.messages)},onResize(){this.gridOptions.api&&(this.gridOptions.api.sizeColumnsToFit(),(0,I.El)(this.gridOptions,this.tableRowHeight))}
1,onGridStateChanged(){this.gridOptions.api&&this.gridOptions.api.sizeColumnsToFit()},getTime:e=>"string"==typeof e?(0,F.c)(new Date(e),"UTC").getTime():new Date(e).getTime(),isScrollEnd(){return!1===this.isLoading&&!1===this.isLazyLoading&&!1===this.endOfRangeData&&this.gridOptions.api.getLastDisplayedRow()+1===this.gridOptions.api.getDisplayedRowCount()&&this.lastTimeStamp>this.getTime(this.endDate)},isInputDatesValid(){const e=this.timeRange.fromDate?new Date(this.timeRange.fromDate):null,t=this.timeRange.toDate?new Date(this.timeRange.toDate):null;return e&&!(0,R.c)(e)||t&&!(0,R.c)(t)?(this.isError="invalidDate",!1):!((0,E.c)(e,t)>0)||(this.isError="invalidFromDate",!1)},clearGridBeforeFetch(){this.gridOptions.api&&(this.log("Clearing grid"),this.gridOptions.api.clearFocusedCell())},resetFieldsBeforFetch(){this.isLoading=!0,this.isFirstLoad=!0,this.endOfRangeData=!1,this.isError=!1,this.isError=!1,this.gridOptions.api&&this.gridOptions.api.setRowData([])},fetch(){if(this.isInputDatesValid()){this.resetFieldsBeforFetch(),this.log("Fetching time & sales data for:",this.ric.value);const e=this.startDate?this.getTime(this.startDate):null;this.lastTimeStamp=e,this.pageSizeMultiplier=1,this.getTimeAndSalesData(e)}},getTimeAndSalesData(e){let t="";return this.endDate&&(t+=`fromDate=${this.endDate}&`),e&&(t+=`toDate=${e}&`),this.apiService.get(`/timeseries/tns?ric=${this.ric.value}&fids=${this.fids}&${t}count=${this.resultsCount}`).then(this.handleRestResponse).catch((e=>{console.error(e),e.message.indexOf("timeout")>=0&&this.restRetryCount<2?(this.restRetryCount++,this.getTimeAndSalesData(this.lastTimeStamp)):this.isLoading=!1}))},handleRestResponse(e,t){if(this.log("rest response",e),t)return this.isFirstLoad&&(this.isError=!0,this.isLoading=!1),!1;if(this.restRetryCount=0,0===e.data.data.length)this.isFirstLoad?(this.isError="nodata",this.isLoading=!1):this.endOfRangeData=!0;else{if(this.rowData=this.filterNonTradeRows(e.data.data),this.isFirstLoad){if(0===this.rowData.length)return this.isError="nodata",this.isLoading=!1,!1;this.formats=Object.keys(e.data.metadata).reduce(((t,i)=>(t[i.split(".")[1]]=e.data.metadata[i].type,t)),{})}let t=[];if(e.data.data.length<this.resultsCount)this.endOfRangeData=!0,t=[...this.rowData];else{const e=0!==this.rowData.length?this.rowData[this.rowData.length-1][0]:null;t=this.rowData.filter((t=>t[0]!==e));const i=this.isFirstLoad?20:5;if(t.length<i&&!0===this.widgetActive&&this.pageSizeMultiplier<25)return this.pageSizeMultiplier+=5,this.log("Not enough unique records obtained. Retrying API call for",this.pageSize*this.pageSizeMultiplier,"records."),this.getTimeAndSalesData(this.lastTimeStamp),!1;this.pageSizeMultiplier=1,this.lastTimeStamp=e}this.gridOptions.api&&(this.isFirstLoad?(this.isFirstLoad=!1,this.gridOptions.api.setColumnDefs(this.columnDefs),this.gridOptions.api.setRowData(t),this.isLoading=!1):(this.gridOptions.api.applyTransaction({add:t}),this.isLoading=!1,this.isLazyLoading=!1),this.gridOptions.api.sizeColumnsToFit(),(0,I.El)(this.gridOptions,this.tableRowHeight),this.gridSettings.addAriaLabelToSortColumnHeaders(this.$refs.timeSalesGrid,this.i18n("header.sortable")))}},filterNonTradeRows(e){let t=[...e];return this.fids.indexOf("178")>-1&&(t=t.filter((e=>Object.keys(e).indexOf("178")>-1&&"0"!==e[178]))),t}},beforeDestroy(){this.widgetActive=!1}};var x=i(1456);const N=(0,x.c)(A,u,[],!1,null,null,null).exports;var $=i(83632);const H={name:"w-time-sales-wrapper",components:{WBody:N},directives:{"use-parent-viewport":f.oqM},props:{wid:{type:String,required:!0},breakpoints:{type:Object,default:()=>({xs:320,sm:640,md:992,lg:1200,xl:1600,xxl:1920})},theme:{type:String,default:"lseg-light"}},computed:{API:()=>$.W,ric(){return{label:"RIC",value:this.$store.state.widget[this.wid].ric,placeholder:"search"}},columns(){return this.$store.state.widget[this.wid].columns},timeRange(){return this.$store.state.widget[this.wid].timeRange},tableRowHeight(){return this.$store.state.widget[this.wid].tableRowHeight},locale(){return this.$store.state.widget[this.wid].locale}},methods:{onUpdateRic(e){this.$store.commit(`widget/${this.wid}/RIC_CHANGED`,e)},onUpdateTimeRange(e){this.$store.commit(`widget/${this.wid}/TIME_RANGE_CHANGED`,e)}}};const q=(0,x.c)(H,g,[],!1,null,null,null).exports,U={namespaced:!0,state:()=>({ric:"BMWG.DE",columns:[{headerName:"i18n(header.time)",field:"0",cellClass:"direction-ltr",pinned:!0},{headerName:"i18n(header.price)",field:"6"},{headerName:"i18n(header.volume)",field:"178"}],timeRange:{fromDate:"",toDate:""},tableRowHeight:-1,locale:{default:"en-US",formatter:"en-US",messages:"en-US"}}),mutations:{RIC_CHANGED(e,t){e.ric=t},TIME_RANGE_CHANGED(e,t){e.timeRange=t},COLUMNS_CHANGED(e,t){e.columns=t},ROW_HEIGHT_CHANGED(e,t){e.tableRowHeight=t},LOCALE_CHANGED(e,t){let i={};i.default=t.locale,i.formatter=t.formatterLanguage?t.formatterLanguage:i.default,i.messages=t.messageLanguage?t.messageLanguage:i.default,e.locale=i}},actions:{},getters:{LOCALE_DEFAULT:e=>e.locale.default}},k=JSON.parse('{"en-US":{"timeSalesWidget":{"a11y":{"caption":"Times & Sales Widget"},"controls":{"symbol":"Symbol","dateFrom":"From","dateTo":"To"},"header":{"time":"Time","ticker":"Ticker","name":"Name","price":"Price","change":"+/-","changePercentage":"%","bid":"Bid","ask":"Ask","histClose":"Hist.Close","volume":"Volume","sortable":"Sortable"},"grid":{"loadingOoo":"Loading...","noRowsToShow":"No Rows To Show"}
1,"messages":{"invalidDate":"Invalid date(s) provided.","futureDate":"A future date was provided.","invalidFromDate":"Start date cannot be greater than the end date.","nodata":"No data available.","error":"There was an error while getting the data. Please try reloading the page."},"numberFormats":{"compact":["","","","0.0K","00K","000K","0.0M","00M","000M","0.0B","00B","000B","0.0T","00T","000T"]},"dateTimeFormats":{"time":{"hour":"2-digit","minute":"2-digit","second":"2-digit","hour12":true,"hm":{"hour":"2-digit","minute":"2-digit","hour12":true},"hms":{"hour":"2-digit","minute":"2-digit","second":"2-digit","hour12":true}},"date":{"year":"numeric","month":"2-digit","day":"2-digit"}}}},"ar-ye":{"timeSalesWidget":{"formatterLanguage":"en-US","messageLanguage":"ar-ye","a11y":{"caption":"أداة الوقت والمبيعات"},"controls":{"symbol":"الرمز","dateFrom":"من","dateTo":"إلى"},"header":{"time":"الزمن","ticker":"الرمز","name":"الأسم","price":"السعر","change":"+/-","changePercentage":"نسبة التغيير %","bid":"العرض","ask":"الطلب","histClose":"السعر التاريخي","volume":"الحجم","sortable":"قابل للفرز"},"grid":{"loadingOoo":"جار التحميل...","noRowsToShow":"لا توجد صفوف للعرض"},"messages":{"invalidDate":"تم تقديم تاريخ (تواريخ) غير صالحة.","futureDate":"تم تقديم تاريخ في المستقبل.","invalidFromDate":"لا يمكن أن يكون تاريخ البدء أكبر من تاريخ الانتهاء.","nodata":"لا تتوافر بيانات.","error":"حدث خطأ أثناء الحصول على البيانات. من فضلك حاول إعادة تحميل الصفحة."},"numberFormats":{"compact":["","","","0.0K","00K","000K","0.0M","00M","000M","0.0B","00B","000B","0.0T","00T","000T"]},"dateTimeFormats":{"time":{"hour":"2-digit","minute":"2-digit","second":"2-digit","hour12":true,"hm":{"hour":"2-digit","minute":"2-digit","hour12":true},"hms":{"hour":"2-digit","minute":"2-digit","second":"2-digit","hour12":true}},"date":{"year":"numeric","month":"2-digit","day":"2-digit"}}}},"de-DE":{"timeSalesWidget":{"a11y":{"caption":"Times & Sales Widget"},"controls":{"symbol":"Symbol","dateFrom":"Von","dateTo":"Bis"},"header":{"time":"Zeit","ticker":"Ticker","name":"Name","price":"Kurs","change":"+/-","changePercentage":"%","bid":"Geld","ask":"Brief","histClose":"Hist. Schluss","volume":"Volumen","sortable":"Sortierbar"},"grid":{"loadingOoo":"Wird geladen...","noRowsToShow":"Keine Daten"},"messages":{"invalidDate":"Ungültiges Datum","futureDate":"Datum liegt in der Zukunft","invali
1dFromDate":"Das Enddatum darf nicht vor dem Startdatum liegen.","nodata":"Keine Daten verfügbar","error":"Beim Abrufen der Daten ist ein Fehler aufgetreten. Bitte versuchen Sie, die Seite neu zu laden."},"numberFormats":{"compact":["","","","0.0 Tsd","00 Tsd","000 Tsd","0.0 Mio","00 Mio","000 Mio","0.0 Mrd","00 Mrd","000 Mrd","0.0 Bn","00 Bn","000 Bn"]},"dateTimeFormats":{"time":{"hour":"2-digit","minute":"2-digit","second":"2-digit","hour12":false,"hm":{"hour":"2-digit","minute":"2-digit","hour12":false},"hms":{"hour":"2-digit","minute":"2-digit","second":"2-digit","hour12":false}},"date":{"year":"numeric","month":"2-digit","day":"2-digit"}}}}}');s.default.use(a.cp),s.default.prototype._={debounce:d.c};const W=function(e,t,i,s,a="lseg-light"){const d="timeSales",g=new l.Q;let u,m=g.getWidgetId(e);g.isWidgetInstancePresent(m)&&g.destroyWidgetInstance(m,"string"==typeof e),i=i||"en-US";let h={onError:null,onConfigChange:null};const p=[e=>{e.subscribe(((e,t)=>{h.onConfigChange&&h.onConfigChange((0,c.c)(t))}))}],f=new r.a(d,U,p),w=f.getStore();f.replaceState(t);const y=new n.S(n.S.createI18n(),d,w);y.addInitialLocales(["en-US"],k,i),y.setLocaleMessages(i,s),y.setLocaleAndUpdateStore(i);const D=new Promise((e=>{u=e}));m=g.generateWidgetId();const v="theme--"+a,S=g.createVM(m,e,y.getInstance(),w,(function(e){return e(q,{class:[v],attrs:{id:m},props:{wid:d,theme:v}})}),(function(){u(!0)}));return h={...h,...(0,o.c)(d,y)},h.setRic=e=>{S.$store.commit(`widget/${d}/RIC_CHANGED`,e)},h.setColumns=e=>{S.$store.commit(`widget/${d}/COLUMNS_CHANGED`,e)},h.setTimeRange=e=>{S.$store.commit(`widget/${d}/TIME_RANGE_CHANGED`,e)},h.setTableRowHeight=e=>{S.$store.commit(`widget/${d}/ROW_HEIGHT_CHANGED`,e)},h.destroy=function(){return g.destroyWidgetInstance(m,!0),D},h}},58388:(e,t,i)=>{i.d(t,{c:()=>r});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"v-loader__container"},[e._m(0),e._v(" "),t("p",{staticClass:"v-loader__label"},[e._v(e._s(e.label))])])};s._withStripped=!0;const a={name:"v-loader",props:{label:{type:String}}};const r=(0,i(1456).c)(a,s,[function(){var e=this._self._c;return e("div",{staticClass:"v-loader__item"},[e("div")])}],!1,null,null,null).exports},79072:(e,t,i)=>{i.d(t,{c:()=>r});var s=function(){this._self._c;return this._m(0)};s._withStripped=!0;const a={name:"v-spinner",props:{label:{type:String}}};const r=(0,i(1456).c)(a,s,[function(){var e=this,t=e._self._c;return t("div",{staticClass:"loader"},[t("div",{staticClass:"block"},[t("div",{staticClass:"item"}),e._v(" "),t("div",{staticClass:"item"}),e._v(" "),t("div",{staticClass:"item"}),e._v(" "),t("div",{staticClass:"item"}),e._v(" "),t("div",{staticClass:"item"}),e._v(" "),t("div",{staticClass:"item"}),e._v(" "),t("div",{staticClass:"item"}),e._v(" "),t("div",{staticClass:"item"})])])}],!1,null,null,null).exports}},e=>{e.O(0,[8148,3576,8816,5376],(()=>{return t=82120,e(e.s=t);var t}));var t=e.O();(fdc__widgets__=void 0===fdc__widgets__?{}:fdc__widgets__).WTimeSales=t}]);

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.