Files
ai/charting_library/bundles/3986.7c74089dc005a87cd0fc.js
jenkins 8e8e606169 Release v25.000 (from 1394882f)
Fixes tradingview/charting_library#60
Fixes tradingview/charting_library#65
Fixes tradingview/charting_library#70
Fixes tradingview/charting_library#71
Fixes tradingview/charting_library#75
Fixes tradingview/charting_library#76
Fixes tradingview/charting_library#77
Fixes tradingview/charting_library#78
Fixes tradingview/charting_library#79
Fixes tradingview/charting_library#81
Fixes tradingview/charting_library#82
Fixes tradingview/charting_library#84
Fixes tradingview/charting_library#86
Fixes tradingview/charting_library#89
Fixes tradingview/charting_library#90
Fixes tradingview/charting_library#91
Fixes tradingview/charting_library#92
Fixes tradingview/charting_library#93
Fixes tradingview/charting_library#94
Fixes tradingview/charting_library#95
Fixes tradingview/charting_library#96
Fixes tradingview/charting_library#97
Fixes tradingview/charting_library#99
Fixes tradingview/charting_library#100
Fixes tradingview/charting_library#101
Fixes tradingview/charting_library#102
Fixes tradingview/charting_library#103
Fixes tradingview/charting_library#105
Fixes tradingview/charting_library#106
Fixes tradingview/charting_library#107
Fixes tradingview/charting_library#108
Fixes tradingview/charting_library#109
Fixes tradingview/charting_library#110
Fixes tradingview/charting_library#111
Fixes tradingview/charting_library#113
Fixes tradingview/charting_library#114
Fixes tradingview/charting_library#115
Fixes tradingview/charting_library#116
Fixes tradingview/charting_library#118
Fixes tradingview/charting_library#336
Fixes tradingview/charting_library#683
Fixes tradingview/charting_library#1818
Fixes tradingview/charting_library#1899
Fixes tradingview/charting_library#1995
Fixes tradingview/charting_library#2323
Fixes tradingview/charting_library#3945
Fixes tradingview/charting_library#4522
Fixes tradingview/charting_library#5348
Fixes tradingview/charting_library#5573
Fixes tradingview/charting_library#5726
Fixes tradingview/charting_library#6025
Fixes tradingview/charting_library#6039
Fixes tradingview/charting_library#6165
Fixes tradingview/charting_library#6215
Fixes tradingview/charting_library#6406
Fixes tradingview/charting_library#6500
Fixes tradingview/charting_library#6550
Fixes tradingview/charting_library#6559
Fixes tradingview/charting_library#6572
Fixes tradingview/charting_library#6617
Fixes tradingview/charting_library#6636
Fixes tradingview/charting_library#6659
Fixes tradingview/charting_library#6678
Fixes tradingview/charting_library#6695
Fixes tradingview/charting_library#6713
Fixes tradingview/charting_library#6714
Fixes tradingview/charting_library#6723
Fixes tradingview/charting_library#6737
Fixes tradingview/charting_library#6765
Fixes tradingview/charting_library#6767
Fixes tradingview/charting_library#6775
Fixes tradingview/charting_library#6783
Fixes tradingview/charting_library#6800
Fixes tradingview/charting_library#6825
Fixes tradingview/charting_library#6864
Fixes tradingview/charting_library#6926
Fixes tradingview/charting_library#7060
Fixes tradingview/charting_library#7169
Fixes tradingview/charting_library#7307
Fixes tradingview/charting_library#7443
Fixes tradingview/charting_library#7445
Fixes tradingview/charting_library#7446
Fixes tradingview/charting_library#7457
Fixes tradingview/charting_library#7472
Fixes tradingview/charting_library#7483
Fixes tradingview/charting_library#7492
Fixes tradingview/charting_library#7519
Fixes tradingview/charting_library#7578
2023-05-22 15:13:47 +00:00

10 lines
27 KiB
JavaScript

"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3986],{32766:(e,i,t)=>{t.d(i,{getSeriesStylePropertiesDefinitions:()=>Te});var n=t(44352),o=t(36298),r=t(28985),l=(t(62615),t(58275)),s=t.n(l),a=t(14483),c=t(79861),d=t(20345),u=t(94474);const p=new o.TranslatedString("change color bars based on previous close",n.t(null,void 0,t(29353))),h=new o.TranslatedString("change HLC bars",n.t(null,void 0,t(55740))),y=new o.TranslatedString("change bar up color",n.t(null,void 0,t(76804))),g=new o.TranslatedString("change bar down color",n.t(null,void 0,t(71816))),v=new o.TranslatedString("change thin bars",n.t(null,void 0,t(72886))),f=new o.TranslatedString("change line price source",n.t(null,void 0,t(17119))),S=new o.TranslatedString("change line color",n.t(null,void 0,t(87828))),w=new o.TranslatedString("change line width",n.t(null,void 0,t(69125))),b=new o.TranslatedString("change area price source",n.t(null,void 0,t(1316))),P=new o.TranslatedString("change area line color",n.t(null,void 0,t(661))),T=new o.TranslatedString("change area line width",n.t(null,void 0,t(6610))),m=new o.TranslatedString("change area fill color",n.t(null,void 0,t(97008))),D=new o.TranslatedString("change baseline price source",n.t(null,void 0,t(56819))),_=new o.TranslatedString("change baseline top line color",n.t(null,void 0,t(68621))),C=new o.TranslatedString("change baseline top line width",n.t(null,void 0,t(35339))),k=new o.TranslatedString("change baseline bottom line color",n.t(null,void 0,t(4164))),L=new o.TranslatedString("change baseline bottom line width",n.t(null,void 0,t(38990))),M=new o.TranslatedString("change baseline fill top area color",n.t(null,void 0,t(12673))),$=new o.TranslatedString("change baseline fill bottom area color",n.t(null,void 0,t(73163))),I=new o.TranslatedString("change base level",n.t(null,void 0,t(31547))),W=new o.TranslatedString("change high-low body visibility",n.t(null,void 0,t(30033))),V=new o.TranslatedString("change high-low body color",n.t(null,void 0,t(81080))),O=new o.TranslatedString("change high-low borders visibility",n.t(null,void 0,t(79236))),B=new o.TranslatedString("change high-low border color",n.t(null,void 0,t(76885))),A=new o.TranslatedString("change high-low labels visibility",n.t(null,void 0,t(42981))),x=new o.TranslatedString("change high-low labels color",n.t(null,void 0,t(31937))),F=(new o.TranslatedString("change renko wick visibility",n.t(null,void 0,t(9473))),new o.TranslatedString("change renko wick up color",n.t(null,void 0,t(7747))),new o.TranslatedString("change renko wick down color",n.t(null,void 0,t(75986))),new o.TranslatedString("change the display of real prices on price scale (instead of Heiken-Ashi price)",n.t(null,void 0,t(39783))),new o.TranslatedString("change range thin bars",n.t(null,void 0,t(28143))),new o.TranslatedString("change range bars style",n.t(null,void 0,t(35116))),
new o.TranslatedString("change {candleType} body visibility",n.t(null,void 0,t(47202)))),N=new o.TranslatedString("change {candleType} up color",n.t(null,void 0,t(61118))),E=new o.TranslatedString("change {candleType} down color",n.t(null,void 0,t(36320))),H=new o.TranslatedString("change {candleType} border visibility",n.t(null,void 0,t(23986))),R=new o.TranslatedString("change {candleType} up border color",n.t(null,void 0,t(5464))),j=new o.TranslatedString("change {candleType} down border color",n.t(null,void 0,t(92330))),U=new o.TranslatedString("change {candleType} wick visibility",n.t(null,void 0,t(39987))),G=new o.TranslatedString("change {candleType} wick up color",n.t(null,void 0,t(45543))),z=new o.TranslatedString("change {candleType} wick down color",n.t(null,void 0,t(60164))),J=(new o.TranslatedString("change {chartType} up color",n.t(null,void 0,t(59414))),new o.TranslatedString("change {chartType} down color",n.t(null,void 0,t(85503))),new o.TranslatedString("change {chartType} projection bar up color",n.t(null,void 0,t(50453))),new o.TranslatedString("change {chartType} projection bar down color",n.t(null,void 0,t(18465))),new o.TranslatedString("change {chartType} border bar up color",n.t(null,void 0,t(11107))),new o.TranslatedString("change {chartType} border bar down color",n.t(null,void 0,t(79088))),new o.TranslatedString("change {chartType} projection border bar up color",n.t(null,void 0,t(61250))),new o.TranslatedString("change {chartType} projection border bar up color",n.t(null,void 0,t(61250))),new o.TranslatedString("change column up color",n.t(null,void 0,t(85709)))),q=new o.TranslatedString("change column down color",n.t(null,void 0,t(12155))),K=new o.TranslatedString("change column price source",n.t(null,void 0,t(66890))),Q=n.t(null,void 0,t(63243)),X=n.t(null,void 0,t(86953)),Y=n.t(null,void 0,t(5536)),Z=n.t(null,void 0,t(87151)),ee=n.t(null,void 0,t(55314)),ie=n.t(null,void 0,t(83760)),te=n.t(null,void 0,t(72269)),ne=n.t(null,void 0,t(26458)),oe=n.t(null,void 0,t(24248)),re=n.t(null,void 0,t(1277)),le=n.t(null,void 0,t(57417)),se=n.t(null,void 0,t(50430)),ae=n.t(null,void 0,t(86846)),ce=n.t(null,void 0,t(58747)),de=n.t(null,void 0,t(11157)),ue=(n.t(null,void 0,t(83610)),n.t(null,void 0,t(39667)),n.t(null,void 0,t(80293)),n.t(null,void 0,t(94089)),n.t(null,void 0,t(5704)),n.t(null,void 0,t(29881)),n.t(null,void 0,t(7445))),pe=n.t(null,void 0,t(83760)),he=n.t(null,void 0,t(72269)),ye=n.t(null,void 0,t(94420)),ge=n.t(null,void 0,t(83678)),ve=n.t(null,void 0,t(15857)),fe=n.t(null,void 0,t(75310));n.t(null,void 0,t(32733)),n.t(null,void 0,t(16812)),n.t(null,void 0,t(63528));function Se(e,i,t,n){return(0,r.createCheckablePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,i.barColorsOnPrevClose,p)},{id:`${t}${n}`,title:Q})}function we(e,i,t,n,o,l){const a=(0,c.createWVFromGetterAndSubscription)((()=>e.model().isInReplay.bind(e.model())()&&false),e.model().onInReplayStateChanged());return(0,r.createOptionsPropertyDefinition)({disabled:(0,
r.convertFromReadonlyWVToDefinitionProperty)(a),option:(0,r.convertToDefinitionProperty)(e,i.priceSource,l)},{id:`${n}${o}`,title:oe,options:new(s())(t)})}function be(e,i,t,n){const o=(0,u.removeSpaces)(t.originalText());return[(0,r.createTwoColorsPropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,i.drawBody,F.format({candleType:t})),color1:(0,r.getColorDefinitionProperty)(e,i.upColor,null,N.format({candleType:t})),color2:(0,r.getColorDefinitionProperty)(e,i.downColor,null,E.format({candleType:t}))},{id:`${n}Symbol${o}CandlesColor`,title:ie}),(0,r.createTwoColorsPropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,i.drawBorder,H.format({candleType:t})),color1:(0,r.getColorDefinitionProperty)(e,i.borderUpColor,null,R.format({candleType:t})),color2:(0,r.getColorDefinitionProperty)(e,i.borderDownColor,null,j.format({candleType:t}))},{id:`${n}Symbol${o}BordersColor`,title:te}),(0,r.createTwoColorsPropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,i.drawWick,U.format({candleType:t})),color1:(0,r.getColorDefinitionProperty)(e,i.wickUpColor,null,G.format({candleType:t})),color2:(0,r.getColorDefinitionProperty)(e,i.wickDownColor,null,z.format({candleType:t}))},{id:`${n}Symbol${o}WickColors`,title:ne})]}function Pe(e,i,t,n){return[we(e,i,t,n,"SymbolLinePriceSource",f),(0,r.createLinePropertyDefinition)({color:(0,r.getColorDefinitionProperty)(e,i.color,null,S),width:(0,r.convertToDefinitionProperty)(e,i.linewidth,w)},{id:`${n}SymbolLineStyle`,title:re})]}function Te(e,i,l,c,u){switch(l){case 0:return function(e,i,t){return[Se(e,i,t,"SymbolBarStyleBarColorsOnPrevClose"),(0,r.createCheckablePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,i.dontDrawOpen,h)},{id:`${t}SymbolDontDrawOpen`,title:X}),(0,r.createColorPropertyDefinition)({color:(0,r.getColorDefinitionProperty)(e,i.upColor,null,y)},{id:`${t}SymbolUpColor`,title:Y}),(0,r.createColorPropertyDefinition)({color:(0,r.getColorDefinitionProperty)(e,i.downColor,null,g)},{id:`${t}SymbolDownColor`,title:Z}),(0,r.createCheckablePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,i.thinBars,v)},{id:`${t}SymbolBarThinBars`,title:ee})]}(e,i.barStyle.childs(),u);case 1:return function(e,i,r){return[Se(e,i,r,"SymbolCandleStyleBarColorsOnPrevClose"),...be(e,i,new o.TranslatedString("candle",n.t(null,void 0,t(30792))),r)]}(e,i.candleStyle.childs(),u);case 2:return Pe(e,i.lineStyle.childs(),c.seriesPriceSources,u);case 14:return Pe(e,i.lineWithMarkersStyle.childs(),c.seriesPriceSources,u);case 15:return Pe(e,i.steplineStyle.childs(),c.seriesPriceSources,u);case 3:return function(e,i,t,n){return[we(e,i,t,n,"SymbolAreaPriceSource",b),(0,r.createLinePropertyDefinition)({color:(0,r.getColorDefinitionProperty)(e,i.linecolor,null,P),width:(0,r.convertToDefinitionProperty)(e,i.linewidth,T)},{id:`${n}SymbolAreaLineStyle`,title:re}),(0,r.createTwoColorsPropertyDefinition)({color1:(0,r.getColorDefinitionProperty)(e,i.color1,i.transparency,m),color2:(0,r.getColorDefinitionProperty)(e,i.color2,i.transparency,m)},{
id:`${n}SymbolAreaFills`,title:ae})]}(e,i.areaStyle.childs(),c.seriesPriceSources,u);case 16:return function(e,i,t,n){return[(0,r.createLinePropertyDefinition)({color:(0,r.getColorDefinitionProperty)(e,i.highLineColor,null,P),width:(0,r.convertToDefinitionProperty)(e,i.highLineWidth,T)},{id:`${n}SymbolHLCAreaHighLineStyle`,title:ge}),(0,r.createLinePropertyDefinition)({color:(0,r.getColorDefinitionProperty)(e,i.lowLineColor,null,P),width:(0,r.convertToDefinitionProperty)(e,i.lowLineWidth,T)},{id:`${n}SymbolHLCAreaLowLineStyle`,title:fe}),(0,r.createLinePropertyDefinition)({color:(0,r.getColorDefinitionProperty)(e,i.closeLineColor,null,P),width:(0,r.convertToDefinitionProperty)(e,i.closeLineWidth,T)},{id:`${n}SymbolHLCAreaCloseLineStyle`,title:ve}),(0,r.createTwoColorsPropertyDefinition)({color1:(0,r.getColorDefinitionProperty)(e,i.highCloseFillColor,null,m),color2:(0,r.getColorDefinitionProperty)(e,i.closeLowFillColor,null,m)},{id:`${n}SymbolHLCAreaFills`,title:ae})]}(e,i.hlcAreaStyle.childs(),c.seriesPriceSources,u);case 9:return be(e,i.hollowCandleStyle.childs(),new o.TranslatedString("hollow candles",n.t(null,void 0,t(75165))),u);case 10:return function(e,i,t,n){return[we(e,i,t,n,"SymbolBaseLinePriceSource",D),(0,r.createLinePropertyDefinition)({color:(0,r.getColorDefinitionProperty)(e,i.topLineColor,null,_),width:(0,r.convertToDefinitionProperty)(e,i.topLineWidth,C)},{id:`${n}SymbolBaseLineTopLine`,title:le}),(0,r.createLinePropertyDefinition)({color:(0,r.getColorDefinitionProperty)(e,i.bottomLineColor,null,k),width:(0,r.convertToDefinitionProperty)(e,i.bottomLineWidth,L)},{id:`${n}SymbolBaseLineBottomLine`,title:se}),(0,r.createTwoColorsPropertyDefinition)({color1:(0,r.getColorDefinitionProperty)(e,i.topFillColor1,null,M),color2:(0,r.getColorDefinitionProperty)(e,i.topFillColor2,null,M)},{id:`${n}SymbolBaseLineTopFills`,title:ce}),(0,r.createTwoColorsPropertyDefinition)({color1:(0,r.getColorDefinitionProperty)(e,i.bottomFillColor1,null,$),color2:(0,r.getColorDefinitionProperty)(e,i.bottomFillColor2,null,$)},{id:`${n}SymbolBaseLineBottomFills`,title:de}),(0,r.createNumberPropertyDefinition)({value:(0,r.convertToDefinitionProperty)(e,i.baseLevelPercentage,I,[d.floor])},{id:`${n}SymbolBaseLevelPercentage`,title:ue,type:0,min:new(s())(0),max:new(s())(100),step:new(s())(1),unit:new(s())("%")})]}(e,i.baselineStyle.childs(),c.seriesPriceSources,u);case 13:return function(e,i,t,n){return[we(e,i,t,n,"SymbolColumnPriceSource",K),Se(e,i,n,"SymbolColumnStyleColumnColorsOnPrevClose"),(0,r.createColorPropertyDefinition)({color:(0,r.getColorDefinitionProperty)(e,i.upColor,null,J)},{id:`${n}SymbolUpColor`,title:Y}),(0,r.createColorPropertyDefinition)({color:(0,r.getColorDefinitionProperty)(e,i.downColor,null,q)},{id:`${n}SymbolDownColor`,title:Z})]}(e,i.columnStyle.childs(),c.seriesPriceSources,u)}if(12===l&&a.enabled("chart_style_hilo")){return function(e,i,t){return[(0,r.createColorPropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,i.drawBody,W),color:(0,r.getColorDefinitionProperty)(e,i.color,null,V)},{
id:`${t}SymbolBodiesColor`,title:pe}),(0,r.createColorPropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,i.showBorders,O),color:(0,r.getColorDefinitionProperty)(e,i.borderColor,null,B)},{id:`${t}SymbolBorderColor`,title:he}),(0,r.createTextPropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,i.showLabels,A),color:(0,r.getColorDefinitionProperty)(e,i.labelColor,null,x)},{id:`${t}SymbolLabels`,title:ye,isEditable:!1,isMultiLine:!1})]}(e,i.hiloStyle.childs(),u)}if(!i.hasOwnProperty("haStyle"))return[];if(c.isJapaneseChartsAvailable&&8===l){return function(e,i,r){const l=[];return l.push(Se(e,i,r,"SymbolHAStyleBarColorsOnPrevClose"),...be(e,i,new o.TranslatedString("Heikin Ashi",n.t(null,void 0,t(40530))),r)),l}(e,i.haStyle.childs(),u)}return c.isJapaneseChartsAvailable&&a.enabled("japanese_chart_styles"),[]}},73986:(e,i,t)=>{t.d(i,{SeriesPropertyDefinitionsViewModel:()=>ne,basePriceSources:()=>ie,seriesPrecisionValues:()=>te});var n=t(50151),o=t(44352),r=t(36298),l=t(14483),s=t(28985),a=(t(3347),t(58275)),c=t.n(a),d=t(42960),u=t(32766),p=t(20345);const h=new r.TranslatedString("change {inputName} property",o.t(null,void 0,t(21547)));function y(e){return e.map((e=>({value:e,title:o.t(e,{context:"input"},t(88601))})))}function g(e,i,l,a,u,g,v){const f=[];return l.forEach((l=>{if(!function(e,i){return!e.isHidden&&(void 0===e.visible||function(e,i){if(!e)return!0;const t=e.split("==");return!(t.length<2)&&i[t[0]].value()===t[1]}(e.visible,i))}(l,a))return;const S=l.id;if(!a.hasOwnProperty(S))return;const w=a[S],b=function(e,i){return"style"===e.id?"Box size assignment method":"boxSize"===e.id?"Box size":i.childs().name.value()}(l,u[S]),P=function(e){return o.t(e,{context:"input"},t(88601))}(b),T=new r.TranslatedString(b,P);if("options"in l){const i=(0,n.ensure)(l.options);f.push((0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(e,w,h.format({inputName:T}))},{id:`${v}${l.name}`,title:P,options:new(c())(y(i))}))}else if("integer"!==l.type){if("float"===l.type){let t;return t=function(e,i){return!((i===(0,d.chartStyleStudyId)(4)||i===(0,d.chartStyleStudyId)(6))&&"boxSize"===e||i===(0,d.chartStyleStudyId)(5)&&"reversalAmount"===e)}(S,i)||null===g.value()?new(c())(l.min):g,void f.push((0,s.createNumberPropertyDefinition)({value:(0,s.convertToDefinitionProperty)(e,w,h.format({inputName:T}))},{id:`${v}${l.name}`,title:P,type:1,min:t,max:new(c())(l.max),defval:l.defval}))}"text"!==l.type?"bool"!==l.type||f.push((0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,w,h.format({inputName:T}))},{id:`${v}${l.name}`,title:P})):f.push((0,s.createTextPropertyDefinition)({text:(0,s.convertToDefinitionProperty)(e,w,h.format({inputName:T}))},{id:`${v}${l.name}`,title:P,isEditable:!0,isMultiLine:!1}))}else f.push((0,s.createNumberPropertyDefinition)({value:(0,s.convertToDefinitionProperty)(e,w,h.format({inputName:T}),[p.floor])},{id:`${v}${l.name}`,title:P,type:0,min:new(c())(l.min),max:new(c())(l.max),defval:l.defval}))})),f}
var v=t(59224),f=t(93544),S=t(79861),w=t(97906),b=t(11678);const P=(0,v.getLogger)("Chart.Definitions.Series"),T=l.enabled("show_average_close_price_line_and_label"),m=l.enabled("pre_post_market_sessions"),D=new r.TranslatedString("change decimal places",o.t(null,void 0,t(71809))),_=new r.TranslatedString("change timezone",o.t(null,void 0,t(20505))),C=(new r.TranslatedString("adjust data for dividends",o.t(null,void 0,t(42390))),new r.TranslatedString("use settlement as close on daily interval",o.t(null,void 0,t(98402))),new r.TranslatedString("adjust for contract changes",o.t(null,void 0,t(99511))),new r.TranslatedString("change session",o.t(null,void 0,t(65303)))),k=new r.TranslatedString("change extended hours color",o.t(null,void 0,t(31317))),L=new r.TranslatedString("change pre market color",o.t(null,void 0,t(46257))),M=new r.TranslatedString("change post market color",o.t(null,void 0,t(49973))),$=new r.TranslatedString("change price line visibility",o.t(null,void 0,t(67761))),I=new r.TranslatedString("change price line color",o.t(null,void 0,t(77640))),W=new r.TranslatedString("change price line width",o.t(null,void 0,t(97322))),V=(new r.TranslatedString("change previous close price line visibility",o.t(null,void 0,t(59883))),new r.TranslatedString("change previous close price line color",o.t(null,void 0,t(91183))),new r.TranslatedString("change previous close price line width",o.t(null,void 0,t(87631))),new r.TranslatedString("change pre/post market price lines visibility",o.t(null,void 0,t(50393))),new r.TranslatedString("change pre market line color",o.t(null,void 0,t(60852))),new r.TranslatedString("change post market line color",o.t(null,void 0,t(5969))),new r.TranslatedString("change bid and ask lines visibility",o.t(null,void 0,t(32311))),new r.TranslatedString("change bid line color",o.t(null,void 0,t(36703))),new r.TranslatedString("change ask line color",o.t(null,void 0,t(29180))),new r.TranslatedString("change high and low price lines visibility",o.t(null,void 0,t(92556)))),O=new r.TranslatedString("change high and low price line color",o.t(null,void 0,t(60944))),B=new r.TranslatedString("change high and low price line width",o.t(null,void 0,t(83708))),A=new r.TranslatedString("change average close price line visibility",o.t(null,void 0,t(98866))),x=new r.TranslatedString("change average close price line color",o.t(null,void 0,t(30385))),F=new r.TranslatedString("change average close price line width",o.t(null,void 0,t(68927))),N=(o.t(null,void 0,t(9994)),o.t(null,void 0,t(25866))),E=(o.t(null,void 0,t(10989)),o.t(null,void 0,t(99983)),o.t(null,void 0,t(62521))),H=o.t(null,void 0,t(15107)),R=(o.t(null,void 0,t(8094)),o.t(null,void 0,t(47586)),o.t(null,void 0,t(6350)),
o.t(null,void 0,t(73947))),j=o.t(null,void 0,t(87492)),U=o.t(null,void 0,t(39280)),G=o.t(null,void 0,t(30777)),z=o.t(null,void 0,t(8136)),J=o.t(null,void 0,t(31691)),q=o.t(null,void 0,t(10591)),K=o.t(null,void 0,t(94884)),Q=o.t(null,void 0,t(22353)),X=o.t(null,void 0,t(4329)),Y=o.t(null,void 0,t(39292)),Z=o.t(null,void 0,t(70816)),ee=[...function(e=15){const i=[];for(let t=0;t<=e;t++)i.push({priceScale:Math.pow(10,t),minMove:1,frac:!1});return i}(),{priceScale:2,minMove:1,frac:!0},{priceScale:4,minMove:1,frac:!0},{priceScale:8,minMove:1,frac:!0},{priceScale:16,minMove:1,frac:!0},{priceScale:32,minMove:1,frac:!0},{priceScale:64,minMove:1,frac:!0},{priceScale:128,minMove:1,frac:!0},{priceScale:320,minMove:1,frac:!0}],ie=[{title:U,value:"open",id:"price-source-open"},{title:G,value:"high",id:"price-source-high"},{title:z,value:"low",id:"price-source-low"},{title:J,value:"close",id:"price-source-close"},{title:q,value:"hl2",id:"price-source-hl2"},{title:K,value:"hlc3",id:"price-source-hlc3"},{title:Q,value:"ohlc4",id:"price-source-ohlc4"}];function te(){const e=[{title:X,value:"default"}];for(let i=0;i<ee.length;i++)e.push({title:`${ee[i].minMove}/${ee[i].priceScale}`,value:`${ee[i].priceScale},${ee[i].minMove},${ee[i].frac}`});return e}class ne{constructor(e,i,t,n,o,r){this._definitions=null,this._inputsSubscriptions=null,this._isDestroyed=!1,this._propertyPages=null,this._seriesMinTickWV=null,this._sessionIdOptionsWV=new(c())([]),this._series=e,this._undoModel=i,this._model=this._undoModel.model(),this._propertyPageId=t,this._propertyPageName=n,this._propertyPageIcon=o,this._timezonePropertyObj=r,this._series.onStyleChanged().subscribe(this,this._updateDefinitions),this._series.properties().childs().rangeStyle.childs().barStyle.listeners().subscribe(this,this._updateDefinitions),this._series.dataEvents().symbolResolved().subscribe(this,this._updateSeriesMinTickWV),this._series.dataEvents().symbolResolved().subscribe(this,this._updateSessionIdOptionsWV),this._updateSeriesMinTickWV(),this._updateSessionIdOptionsWV()}destroy(){null!==this._propertyPages&&this._propertyPages.forEach((e=>{(0,s.destroyDefinitions)(e.definitions.value())})),this._series.onStyleChanged().unsubscribe(this,this._updateDefinitions),this._series.properties().childs().rangeStyle.childs().barStyle.listeners().unsubscribeAll(this),this._series.dataEvents().symbolResolved().unsubscribeAll(this),this._unsubscribeInputsUpdate(),this._isDestroyed=!0}propertyPages(){return null===this._propertyPages?this._getDefinitions().then((e=>{var i;if(this._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed");return null===this._propertyPages&&(this._propertyPages=[{id:this._propertyPageId,title:this._propertyPageName,icon:this._propertyPageIcon,definitions:new(c())(e.definitions),visible:null!==(i=e.visible)&&void 0!==i?i:new(c())(!0).readonly()}]),this._propertyPages})):Promise.resolve(this._propertyPages)}_seriesMinTick(){const e=this._series.symbolInfo();return null!==e?e.minmov/e.pricescale:null}_updateSeriesMinTickWV(){
null===this._seriesMinTickWV?this._seriesMinTickWV=new(c())(this._seriesMinTick()):this._seriesMinTickWV.setValue(this._seriesMinTick())}_updateSessionIdOptionsWV(){if(!m)return;const e=this._series.symbolInfo();if(null===e)return;const i=(e.subsessions||[]).filter((e=>!e.private)).map((e=>({title:(0,b.translateSessionDescription)(e.description),value:e.id})));this._sessionIdOptionsWV.setValue(i)}_updateDefinitions(){null!==this._definitions&&(0,s.destroyDefinitions)(this._definitions.definitions),this._definitions=null,this._unsubscribeInputsUpdate(),this._createSeriesDefinitions().then((e=>{if(this._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed");(0,n.ensureNotNull)(this._propertyPages)[0].definitions.setValue(e.definitions)}))}_getDefinitions(){return null===this._definitions?this._createSeriesDefinitions():Promise.resolve(this._definitions)}_unsubscribeInputsUpdate(){null!==this._inputsSubscriptions&&(this._inputsSubscriptions.forEach((e=>{e.unsubscribeAll(this)})),this._inputsSubscriptions=null)}_subscribeInputsUpdate(e,i){const t=[];e.forEach((e=>{if(void 0!==e.visible){const n=e.visible.split("==");if(2===n.length){const e=i[n[0]];-1===t.indexOf(e)&&(e.subscribe(this,this._updateDefinitions),t.push(e))}}})),t.length>0?this._inputsSubscriptions=t:this._inputsSubscriptions=null}_createSeriesDefinitions(){const e=this._series.properties().childs(),i=this._series.getInputsProperties(),r=this._series.getInputsInfoProperties(),l=e.style.value(),a=this._series.getStyleShortName();return new Promise((e=>{const t=(0,d.chartStyleStudyId)(l);null!==t?this._model.studyMetaInfoRepository().findById({type:"java",studyId:t}).then((t=>{if(this._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed");if(null!==this._definitions)return void e(null);const o=(0,n.ensureNotNull)(this._seriesMinTickWV),l=g(this._undoModel,t.id,t.inputs,i,r,o,a);this._subscribeInputsUpdate(t.inputs,i),e(l)})).catch((i=>{P.logWarn(`Find meta info for create series definitions with error - ${(0,f.errorToString)(i)}`),e(null)})):e(null)})).then((i=>{if(this._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed");if(null!==this._definitions)return this._definitions;const n=(0,u.getSeriesStylePropertiesDefinitions)(this._undoModel,e,l,{seriesPriceSources:ie,isJapaneseChartsAvailable:true},"mainSeries");null!==i&&n.push(...i);const r=(0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(this._undoModel,e.minTick,D)},{id:`${a}SymbolMinTick`,title:R,options:new(c())(te())}),p=(0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(this._undoModel,this._timezonePropertyObj.property,_)},{id:`${a}SymbolTimezone`,title:j,options:new(c())(this._timezonePropertyObj.values)});return this._definitions={definitions:[(0,s.createPropertyDefinitionsGeneralGroup)(n,"generalSymbolStylesGroup",(0,d.getTranslatedChartStyleName)(l)),(0,
s.createPropertyDefinitionsGeneralGroup)(this._seriesPriceLinesDefinitions(a),"priceLinesGroup",o.t(null,void 0,t(77986))),(0,s.createPropertyDefinitionsGeneralGroup)([...this._seriesDataDefinitions(a),r,p],"dataModififcationGroup",o.t(null,void 0,t(81285)))]},this._definitions}))}_seriesDataDefinitions(e){const i=[];if(m){const t=this._series.sessionIdProxyProperty(),n=(0,w.combineWithFilteredUpdate)(((e,i)=>!i&&(0,d.symbolHasSeveralSessions)(this._series.symbolInfo())),((e,i)=>i||!e),this._series.symbolResolvingActive(),(0,S.createWVFromProperty)(this._series.isDWMProperty())),o=(0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(this._undoModel,t,C),visible:(0,s.convertFromReadonlyWVToDefinitionProperty)(n)},{id:"sessionId",title:N,options:this._sessionIdOptionsWV});i.push(o);const r=this._model.sessions().graphicsInfo();let l=!1;r.backgrounds&&(l=void 0!==r.backgrounds.outOfSession);const a=l?this._createOutOfSessionDefinition(e):this._createPrePostMarketDefinition(e);i.push(a)}return i}_createOutOfSessionDefinition(e){const i=this._model.sessions().properties().childs().graphics.childs().backgrounds.childs().outOfSession.childs();return(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._undoModel,i.color,i.transparency,k)},{id:`${e}SymbolExtendedHoursColors`,title:E})}_createPrePostMarketDefinition(e){const i=(0,w.combineWithFilteredUpdate)(((e,i)=>!i&&(0,d.symbolHasPreOrPostMarket)(this._series.symbolInfo())&&!(0,d.isRegularSessionId)(this._series.sessionIdProxyProperty().value())),((e,i)=>i||!e),this._series.symbolResolvingActive(),(0,S.createWVFromProperty)(this._series.isDWMProperty())),t=this._model.sessions(),n=t.properties().childs().graphics.childs().backgrounds.childs().preMarket.childs(),o=t.properties().childs().graphics.childs().backgrounds.childs().postMarket.childs();return(0,s.createTwoColorsPropertyDefinition)({color1:(0,s.getColorDefinitionProperty)(this._undoModel,n.color,n.transparency,L),color2:(0,s.getColorDefinitionProperty)(this._undoModel,o.color,o.transparency,M),visible:(0,s.convertFromReadonlyWVToDefinitionProperty)(i)},{id:`${e}SymbolExtendedHoursColors`,title:E})}_seriesPriceLinesDefinitions(e){const i=[],t=this._series.properties().childs();if(this._series.hasClosePrice()){const n=(0,s.createLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._undoModel,t.showPriceLine,$),color:(0,s.getColorDefinitionProperty)(this._undoModel,t.priceLineColor,null,I),width:(0,s.convertToDefinitionProperty)(this._undoModel,t.priceLineWidth,W)},{id:`${e}SymbolLastValuePriceLine`,title:H});i.push(n)}this._series.hasClosePrice();const n=t.highLowAvgPrice.childs(),o=(0,s.createLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._undoModel,n.highLowPriceLinesVisible,V),color:(0,s.getColorDefinitionProperty)(this._undoModel,n.highLowPriceLinesColor,null,O),width:(0,s.convertToDefinitionProperty)(this._undoModel,n.highLowPriceLinesWidth,B)},{id:`${e}SymbolHighLowPriceLines`,title:Y});if(i.push(o),T){const t=(0,
s.createLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._undoModel,n.averageClosePriceLineVisible,A),color:(0,s.getColorDefinitionProperty)(this._undoModel,n.averagePriceLineColor,null,x),width:(0,s.convertToDefinitionProperty)(this._undoModel,n.averagePriceLineWidth,F)},{id:`${e}SymbolAverageClosePriceLine`,title:Z});i.push(t)}return i}}}}]);