PageSourceSearch

https://www.dmi.dk/typo3conf/ext/dmi_sitepackage/Resources/Public/…/ReactBundle/3643.f8361a307a66e0998624.js

js dmi.dk collected 2026-10-01 09:12:27 UTC 6,996 bytes, 3 lines download raw bytes

1/*! For license information please see 3643.f8361a307a66e0998624.js.LICENSE.txt */
2"use strict";(self.webpackChunkdmidk_react_v2=self.webpackChunkdmidk_react_v2||[]).push([[3643],{24652(t,e,a){var n=a(52397),s=a(87231),i=a(54753);const{sma:{prototype:o}}=n.A.seriesTypes;var r;!function(t){const e=["bottomLine"],a=["top","bottom"],n=["top"];function r(t){return"plot"+t.charAt(0).toUpperCase()+t.slice(1)}function l(t,e){const a=[];return(t.pointArrayMap||[]).forEach(t=>{t!==e&&a.push(r(t))}),a}function p(){const t=this,e=t.pointValKey,a=t.linesApiNames,n=t.areaLinesNames,p=t.points,c=t.options,u=t.graph,h={options:{gapSize:c.gapSize}},d=[],f=l(t,e);let m,y=p.length;if(f.forEach((t,e)=>{for(d[e]=[];y--;)m=p[y],d[e].push({x:m.x,plotX:m.plotX,plotY:m[t],isNull:!(0,s.sw)(m[t])});y=p.length}),t.userOptions.fillColor&&n.length){const e=f.indexOf(r(n[0])),a=d[e],i=1===n.length?p:d[f.indexOf(r(n[1]))],l=t.color;t.points=i,t.nextPoints=a,t.color=t.userOptions.fillColor,t.options=(0,s.h1)(p,h),t.graph=t.area,t.fillGraph=!0,o.drawGraph.call(t),t.area=t.graph,delete t.nextPoints,delete t.fillGraph,t.color=l}a.forEach((e,a)=>{d[a]?(t.points=d[a],c[e]?t.options=(0,s.h1)(c[e].styles,h):(0,i.z3)('Error: "There is no '+e+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names."'),t.graph=t["graph"+e],o.drawGraph.call(t),t["graph"+e]=t.graph):(0,i.z3)('Error: "'+e+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")}),t.points=p,t.options=c,t.graph=u,o.drawGraph.call(t)}function c(t){let e,a=[],n=[];if(t=t||this.points,this.fillGraph&&this.nextPoints){if(e=o.getGraphPath.call(this,this.nextPoints),e&&e.length){e[0][0]="L",a=o.getGraphPath.call(this,t),n=e.slice(0,a.length);for(let t=n.length-1;t>=0;t--)a.push(n[t])}}else a=o.getGraphPath.apply(this,arguments);return a}function u(t){const e=[];return(this.pointArrayMap||[]).forEach(a=>{e.push(t[a])}),e}function h(){const t=this.pointArrayMap;let e,a=[];a=l(this),o.translate.apply(this,arguments),this.points.forEach(n=>{t.forEach((t,s)=>{e=n[t],this.dataModify&&(e=this.dataModify.modifyValue(e)),null!==e&&(n[a[s]]=this.yAxis.toPixels(e,!0))})})}t.compose=function(t){const s=t.prototype;return s.linesApiNames=s.linesApiNames||e.slice(),s.pointArrayMap=s.pointArrayMap||a.slice(),s.pointValKey=s.pointValKey||"top",s.areaLinesNames=s.areaLinesNames||n.slice(),s.drawGraph=p,s.getGraphPath=c,s.toYData=u,s.translate=h,t}}(r||(r={}));const l=r;a.d(e,["A",0,l])},93643(t,e,a){a.r(e),a.d(e,{default:()=>y});var n=a(13037),s=a(38398),i=a(75883),o=a(52397),r=a(87231),l=a(54753);const{line:p}=o.A.seriesTypes,c=(t,e)=>{const a=[],n=t.pointArrayMap,s=e&&t.dataTable.getModified()||t.dataTable;if(!n)return t.getColumn("y",e);const i=n.map(a=>t.getColumn(a,e));for(let t=0;t<s.rowCount;t++){const e=n.map((e,a)=>i[a]?.[t]||0);a.push(e)}return a};class u extends p{destroy(){this.dataEventsToUnbind.forEach(function(t){t()}),super.destroy.apply(this,arguments)}getName(){const t=[];let e=this.name;return e||((this.nameComponents||[]).forEach(function(e,a){t.push(this.options.params[e]+(this.nameSuffixes[a]??""))},this),e=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+t.join(", ")+")":"")),e}getValues(t,e){const a=e.period,n=t.xData||[],s=t.yData,i=s.length,o=[],l=[],p=[];let c,u,h=-1,d=0,f=0;if(!(n.length<a)){for((0,r.cy)(s[0])&&(h=e.index?e.index:0);d<a-1;)f+=h<0?s[d]:s[d][h],d++;for(c=d;c<i;c++)f+=h<0?s[c]:s[c][h],u=[n[c],f/a],o.push(u),l.push(u[0]),p.push(u[1]),f-=h<0?s[c-d]:s[c-d][h];return{values:o,xData:l,yData:p}}}init(t,e){const a=this;super.init.call(a,t,e);const n=(0,r.W2)(s.A,"afterLinkSeries",function({isUpdating:e}){if(e)return;const n=!!a.dataEventsToUnbind.length;if(!a.linkedParent)return(0,l.z3)("Series "+a.options.linkedTo+" not found! Check `linkedTo`.",!1,t);if(n||(a.dataEventsToUnbind.push((0,r.W2)(a.linkedParent,"updatedData",function(){a.recalculateValues()})),a.calculateOn.xAxis&&a.dataEventsToUnbind.push((0,r.W2)(a.linkedParent.xAxis,a.calculateOn.xAxis,function(){a.recalculateValues()}))),"init"===a.calculateOn.chart)a.closestPointRange||a.recalculateValues();else if(!n){const t=(0,r.W2)(a.chart,a.calculateOn.chart,function(){a.recalculateValues(),t()})}},{order:0});a.dataEventsToUnbind=[],a.eventsToUnbind.push(n)}
2recalculateValues(){const t=this,e=this.dataTable,a=t.dataTable.rowCount,n={values:[],xData:[],yData:[]};let s,o,l=!0;const p=t.linkedParent.yData,u=t.linkedParent.processedYData;t.linkedParent.xData=t.linkedParent.getColumn("x"),t.linkedParent.yData=c(t.linkedParent),t.linkedParent.processedYData=c(t.linkedParent,!0);const h=t.linkedParent.options&&t.linkedParent.dataTable.rowCount&&t.getValues(t.linkedParent,t.options.params)||n;h.xData.length=h.values.length,delete t.linkedParent.xData,t.linkedParent.yData=p,t.linkedParent.processedYData=u;const d=t.pointArrayMap||["y"],f={};if(h.yData.forEach(t=>{d.forEach((e,a)=>{const n=f[e]||[];n.push((0,r.cy)(t)?t[a]:t),f[e]||(f[e]=n)})}),a&&!t.hasGroupedData&&t.visible&&t.points)if(t.cropped){t.xAxis&&(s=t.xAxis.min,o=t.xAxis.max);const a=t.cropData(e,s,o);t.setData(a.modified,!1)}else(t.updateAllPoints||h.xData.length!==a-1&&h.xData.length!==a+1)&&(l=!1,this.setData(new i.A({columns:{x:h.xData,...f}}),!1));if(l){const a=f;a.x=h.xData,h.values.reduce((t,e,a)=>(Object.keys(e).forEach(n=>{t[n]||(t[n]=[]),t[n][a]=e[n]}),t),a),e.setColumns(a),delete t.xColumn,delete t.xColumnIsNumbers}t.calculateOn.xAxis&&t.getColumn("x",!0).length&&(t.isDirty=!0,t.redraw()),t.isDirtyData=!!t.linkedSeries.length,(0,r.rC)(t,"updatedData")}processData(){const t=this,e=t.options.compareToMain,a=t.linkedParent;super.processData.apply(t,arguments),t.dataModify&&a&&a.dataModify&&a.dataModify.compareValue&&e&&(t.dataModify.compareValue=a.dataModify.compareValue)}}u.defaultOptions=(0,r.h1)(p.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}}),(0,r.X$)(u.prototype,{calculateOn:{chart:"init"},hasDerivedData:!0,nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0}),o.A.registerSeriesType("sma",u);const{sma:h}=o.A.seriesTypes;class d extends h{accumulatePeriodPoints(t,e,a){let n=0,s=0,i=0;for(;s<t;)i=e<0?a[s]:a[s][e],n+=i,s++;return n}calculateEma(t,e,a,n,s,i,o){const l=t[a-1],p=i<0?e[a-1]:e[a-1][i];return[l,void 0===s?o:(0,r.xg)(p*n+s*(1-n))]}getValues(t,e){const a=e.period,n=t.xData,s=t.yData,i=s?s.length:0,o=2/(a+1),l=[],p=[],c=[];let u,h,d,f=-1,m=0,y=0;if(!(i<a)){for((0,r.cy)(s[0])&&(f=e.index?e.index:0),m=this.accumulatePeriodPoints(a,f,s),y=m/a,d=a;d<i+1;d++)h=this.calculateEma(n,s,d,o,u,f,y),l.push(h),p.push(h[0]),c.push(h[1]),u=h[1];return{values:l,xData:p,yData:c}}}}d.defaultOptions=(0,r.h1)(h.defaultOptions,{params:{index:3,period:9}}),o.A.registerSeriesType("ema",d);var f=a(24652);const m=n.A;m.MultipleLinesComposition=m.MultipleLinesComposition||f.A;const y=n.A}}]);
3//# sourceMappingURL=3643.f8361a307a66e0998624.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.