42 lines
120 KiB
JavaScript
42 lines
120 KiB
JavaScript
"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8537,5231],{52305:(e,t,i)=>{i.d(t,{convertToInt:()=>o,floor:()=>r,limitedPrecision:()=>l});var n=i(73866);function r(e){return Math.floor(e)}function o(e){return parseInt(String(e))}function l(e){const t=new n.LimitedPrecisionNumericFormatter(e,!0);return e=>{if(null===e)return e;const i=t.parse(t.format(e));return i.res?i.value:null}}},88924:(e,t,i)=>{i.d(t,{getLinesStylesPropertiesDefinitions:()=>y});var n=i(11542),r=i(45126),o=i(53749),l=i(32097),s=i(91682);const a=new r.TranslatedString("change {title} price label visibility",n.t(null,void 0,i(98822))),c=new r.TranslatedString("change {title} extension",n.t(null,void 0,i(10390))),p=new r.TranslatedString("change {title} time label visibility",n.t(null,void 0,i(66960))),d=n.t(null,void 0,i(97273)),u=n.t(null,void 0,i(56822)),h=n.t(null,void 0,i(1337));function y(e,t,i){const n=(0,s.removeSpaces)(i.originalText()),r=[],y=(0,o.createLineStyleDefinition)(e,{lineColor:t.linecolor,lineWidth:t.linewidth,lineStyle:t.linestyle},i,"Line");if(r.push(y),"showPrice"in t){const o=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showPrice,a.format({title:i}))},{id:`${n}ShowPrice`,title:d});r.push(o)}if("extendLine"in t){const o=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.extendLine,c.format({title:i}))},{id:`${n}ExtendLine`,title:h});r.push(o)}if("showTime"in t){const o=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showTime,p.format({title:i}))},{id:`${n}ShowTime`,title:u});r.push(o)}return{definitions:r}}},72707:(e,t,i)=>{i.r(t),i.d(t,{getSelectionStylePropertiesDefinitions:()=>f});var n=i(11542),r=i(73305),o=i(46112),l=i(45126),s=i(32097);const a=new l.TranslatedString("lines width",n.t(null,void 0,i(41594))),c=new l.TranslatedString("lines style",n.t(null,void 0,i(96400))),p=new l.TranslatedString("lines color",n.t(null,void 0,i(24621))),d=new l.TranslatedString("backgrounds color",n.t(null,void 0,i(61218))),u=new l.TranslatedString("backgrounds filled",n.t(null,void 0,i(48433))),h=new l.TranslatedString("text color",n.t(null,void 0,i(44461))),y=new l.TranslatedString("show price",n.t(null,void 0,i(59012)));function f(e,t){const l=[];if("linesWidths"in e||"linestyle"in e||"linesColors"in e){const d=(0,s.createLinePropertyDefinition)({width:e.linesWidths?new o.CollectiblePropertyUndoWrapper(new r.LineToolCollectedProperty(e.linesWidths),a,t):void 0,style:e.linestyle?new o.CollectiblePropertyUndoWrapper(new r.LineToolCollectedProperty(e.linestyle),c,t):void 0,color:e.linesColors?new o.CollectiblePropertyUndoWrapper(new r.LineToolCollectedProperty(e.linesColors),p,t):void 0},{id:"LineStyles",title:n.t(null,void 0,i(3554))});l.push(d)}if("showPrice"in e||"showPriceLabels"in e||"axisLabelVisible"in e){const{showPrice:a=[],showPriceLabels:c=[],axisLabelVisible:p=[]}=e,d=(0,s.createCheckablePropertyDefinition)({
|
|
checked:new o.CollectiblePropertyUndoWrapper(new r.LineToolCollectedProperty([...a,...c,...p]),y,t)},{id:"ShowPrice",title:n.t(null,void 0,i(97273))});l.push(d)}if("backgroundsColors"in e){const a=(0,s.createColorPropertyDefinition)({checked:e.fillBackground?new o.CollectiblePropertyUndoWrapper(new r.LineToolCollectedProperty(e.fillBackground),u,t):void 0,color:new o.CollectiblePropertyUndoWrapper(new r.LineToolCollectedProperty(e.backgroundsColors),d,t)},{id:"BackgroundColors",title:n.t(null,void 0,i(79468))});l.push(a)}if("textsColors"in e){const a=(0,s.createLinePropertyDefinition)({color:new o.CollectiblePropertyUndoWrapper(new r.LineToolCollectedProperty(e.textsColors),h,t)},{id:"TextColors",title:n.t(null,void 0,i(70320))});l.push(a)}return{definitions:l}}},34412:(e,t,i)=>{i.d(t,{getTrendLineToolsStylePropertiesDefinitions:()=>W});var n=i(11542),r=i(45126),o=i(53749),l=i(32097),s=i(64147),a=i(39429),c=i(91682);const p=new r.TranslatedString("change {title} middle point visibility",n.t(null,void 0,i(27470))),d=new r.TranslatedString("change {title} price labels visibility",n.t(null,void 0,i(343))),u=new r.TranslatedString("change {title} price range visibility",n.t(null,void 0,i(63962))),h=new r.TranslatedString("change {title} percent change visibility",n.t(null,void 0,i(87246))),y=new r.TranslatedString("change {title} change in pips visibility",n.t(null,void 0,i(81340))),f=new r.TranslatedString("change {title} bars range visibility",n.t(null,void 0,i(98845))),v=new r.TranslatedString("change {title} date/time range visibility",n.t(null,void 0,i(37563))),g=new r.TranslatedString("change {title} distance visibility",n.t(null,void 0,i(45153))),T=new r.TranslatedString("change {title} angle visibility",n.t(null,void 0,i(59288))),D=new r.TranslatedString("change {title} always show stats",n.t(null,void 0,i(80390))),_=new r.TranslatedString("change {title} stats position",n.t(null,void 0,i(86722))),w=[{value:a.StatsPosition.Left,title:n.t(null,void 0,i(11626))},{value:a.StatsPosition.Center,title:n.t(null,void 0,i(24197))},{value:a.StatsPosition.Right,title:n.t(null,void 0,i(50421))},{value:a.StatsPosition.Auto,title:n.t(null,void 0,i(21469))}],P=n.t(null,void 0,i(12516)),S=n.t(null,void 0,i(42747)),m=n.t(null,void 0,i(16053)),b=n.t(null,void 0,i(62362)),L=n.t(null,void 0,i(73525)),C=n.t(null,void 0,i(4518)),x=n.t(null,void 0,i(89073)),A=n.t(null,void 0,i(62374)),k=n.t(null,void 0,i(3369)),V=n.t(null,void 0,i(390)),$=n.t(null,void 0,i(93857)),M=n.t(null,void 0,i(26754));function W(e,t,i,n){const r=(0,c.removeSpaces)(i.originalText()),a=[],W=t,B=(0,o.createLineStyleDefinition)(e,{...W,lineColor:t.linecolor,lineWidth:t.linewidth,lineStyle:t.linestyle},i,"Line");a.push(B);const R=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showMiddlePoint,p.format({title:i}))},{id:`${r}MiddlePoint`,title:n&&n.middlePoint||P});a.push(R);const z=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showPriceLabels,d.format({title:i}))},{
|
|
id:`${r}ShowPriceLabels`,title:n&&n.showPriceLabelsTitle||S});a.push(z);const I=[],N=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showPriceRange,u.format({title:i}))},{id:`${r}PriceRange`,title:n&&n.priceRange||b});I.push(N);const E=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showPercentPriceRange,h.format({title:i}))},{id:`${r}PercentChange`,title:n&&n.percentChange||L});I.push(E);const U=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showPipsPriceRange,y.format({title:i}))},{id:`${r}PipsChange`,title:n&&n.pipsChange||C});I.push(U);const G=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showBarsRange,f.format({title:i}))},{id:`${r}BarsRange`,title:n&&n.barRange||x});if(I.push(G),"showDateTimeRange"in t){const o=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showDateTimeRange,v.format({title:i}))},{id:`${r}DateTimeRange`,title:n&&n.dateTimeRange||A});I.push(o)}if("showDistance"in t){const o=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showDistance,g.format({title:i}))},{id:`${r}Distance`,title:n&&n.distance||k});I.push(o)}if("showAngle"in t){const o=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showAngle,T.format({title:i}))},{id:`${r}Angle`,title:n&&n.angle||V});I.push(o)}const O=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.alwaysShowStats,D.format({title:i}))},{id:`${r}ShowStats`,title:n&&n.showStats||$});I.push(O);const F=(0,l.createOptionsPropertyDefinition)({option:(0,l.convertToDefinitionProperty)(e,t.statsPosition,_.format({title:i}))},{id:`${r}StatsPosition`,title:n&&n.statsPosition||m,options:new s.WatchedValue(w)});return I.push(F),a.push((0,l.createPropertyDefinitionsGeneralGroup)(I,`${r}StatsGroup`,M)),{definitions:a}}},53749:(e,t,i)=>{i.d(t,{createLineStyleDefinition:()=>T});var n=i(11542),r=i(45126),o=i(32097),l=i(91682);const s=new r.TranslatedString("change {toolName} line visibility",n.t(null,void 0,i(24550))),a=new r.TranslatedString("change {toolName} line width",n.t(null,void 0,i(19541))),c=new r.TranslatedString("change {toolName} line style",n.t(null,void 0,i(66429))),p=new r.TranslatedString("change {toolName} line color",n.t(null,void 0,i(24059))),d=new r.TranslatedString("change {toolName} line extending left",n.t(null,void 0,i(18773))),u=new r.TranslatedString("change {toolName} line left end",n.t(null,void 0,i(21474))),h=new r.TranslatedString("change {toolName} line extending right",n.t(null,void 0,i(43823))),y=new r.TranslatedString("change {toolName} line right end",n.t(null,void 0,i(54827))),f=n.t(null,void 0,i(3554)),v=n.t(null,void 0,i(61856)),g=n.t(null,void 0,i(87430));function T(e,t,i,n,r){const T={},D={id:`${(0,l.removeSpaces)(i.originalText())}${n}`,title:r&&r.line||f};return void 0!==t.showLine&&(T.checked=(0,
|
|
o.convertToDefinitionProperty)(e,t.showLine,s.format({toolName:i}))),void 0!==t.lineWidth&&(T.width=(0,o.convertToDefinitionProperty)(e,t.lineWidth,a.format({toolName:i}))),void 0!==t.lineStyle&&(T.style=(0,o.convertToDefinitionProperty)(e,t.lineStyle,c.format({toolName:i}))),void 0!==t.lineColor&&(T.color=(0,o.getColorDefinitionProperty)(e,t.lineColor,null,p.format({toolName:i}))),void 0!==t.extendLeft&&(T.extendLeft=(0,o.convertToDefinitionProperty)(e,t.extendLeft,d.format({toolName:i})),D.extendLeftTitle=r&&r.extendLeftTitle||v),void 0!==t.leftEnd&&(T.leftEnd=(0,o.convertToDefinitionProperty)(e,t.leftEnd,u.format({toolName:i}))),void 0!==t.extendRight&&(T.extendRight=(0,o.convertToDefinitionProperty)(e,t.extendRight,h.format({toolName:i})),D.extendRightTitle=r&&r.extendRightTitle||g),void 0!==t.rightEnd&&(T.rightEnd=(0,o.convertToDefinitionProperty)(e,t.rightEnd,y.format({toolName:i}))),(0,o.createLinePropertyDefinition)(T,D)}},67675:(e,t,i)=>{i.r(t),i.d(t,{ArrowMarkDefinitionsViewModel:()=>d});var n=i(11542),r=i(45126),o=i(91335),l=i(18009),s=i(32097);const a=new r.TranslatedString("change arrow color",n.t(null,void 0,i(77931))),c=n.t(null,void 0,i(70320)),p=n.t(null,void 0,i(11858));class d extends l.LineDataSourceDefinitionsViewModel{_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,o.createTextStyleDefinition)(this._propertyApplier,{text:e.text,showText:e.showLabel,textColor:e.color,fontSize:e.fontsize,bold:e.bold,italic:e.italic},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,customTitles:{text:c}})]}}_stylePropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.arrowColor,null,a)},{id:"ArrowColor",title:p})]}}}},86658:(e,t,i)=>{i.r(t),i.d(t,{ArrowMarkerDefinitionsViewModel:()=>u});var n=i(11542),r=i(45126),o=i(32097),l=i(18009),s=i(91682),a=i(91335);const c=new r.TranslatedString("change {title} color",n.t(null,void 0,i(49442))),p=n.t(null,void 0,i(47370)),d=n.t(null,void 0,i(70320));class u extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType());return{definitions:[(0,o.createColorPropertyDefinition)({color:(0,o.getColorDefinitionProperty)(this._propertyApplier,e.backgroundColor,null,c.format({title:i}))},{id:(0,s.removeSpaces)(`${t}Color`),title:p})]}}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,a.createTextStyleDefinition)(this._propertyApplier,{text:e.text,showText:e.showLabel,textColor:e.textColor,fontSize:e.fontsize,bold:e.bold,italic:e.italic},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,customTitles:{text:d}})]}}}},18046:(e,t,i)=>{i.r(t),i.d(t,{BalloonDefinitionsViewModel:()=>a});var n=i(11542),r=i(45126),o=i(91335),l=i(18009)
|
|
;const s=n.t(null,void 0,i(70320));class a extends l.LineDataSourceDefinitionsViewModel{_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,o.createTextStyleDefinition)(this._propertyApplier,{textColor:e.color,fontSize:e.fontsize,text:e.text,backgroundColor:e.backgroundColor,backgroundTransparency:e.transparency,borderColor:e.borderColor},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,customTitles:{text:s}})]}}}},1847:(e,t,i)=>{i.r(t),i.d(t,{BarsPatternDefinitionsViewModel:()=>_});var n=i(11542),r=i(45126),o=i(18009),l=i(32097),s=i(64147),a=i(67467),c=i(52305),p=i(91682);const d=new r.TranslatedString("change {title} color",n.t(null,void 0,i(49442))),u=new r.TranslatedString("change {title} mode",n.t(null,void 0,i(57462))),h=new r.TranslatedString("change {title} mirrored",n.t(null,void 0,i(55134))),y=new r.TranslatedString("change {title} flipped",n.t(null,void 0,i(10643))),f=n.t(null,void 0,i(47370)),v=n.t(null,void 0,i(3214)),g=n.t(null,void 0,i(28941)),T=n.t(null,void 0,i(63271)),D=[{value:a.LineToolBarsPatternMode.Bars,title:n.t(null,void 0,i(49275))},{value:a.LineToolBarsPatternMode.OpenClose,title:n.t(null,void 0,i(98136))},{value:a.LineToolBarsPatternMode.Line,title:n.t(null,void 0,i(30216))},{value:a.LineToolBarsPatternMode.LineOpen,title:n.t(null,void 0,i(80332))},{value:a.LineToolBarsPatternMode.LineHigh,title:n.t(null,void 0,i(18387))},{value:a.LineToolBarsPatternMode.LineLow,title:n.t(null,void 0,i(53880))},{value:a.LineToolBarsPatternMode.LineHL2,title:n.t(null,void 0,i(32982))}];class _ extends o.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType()),n=(0,p.removeSpaces)(t);return{definitions:[(0,l.createColorPropertyDefinition)({color:(0,l.getColorDefinitionProperty)(this._propertyApplier,e.color,null,d.format({title:i}))},{id:`${n}Color`,title:f}),(0,l.createOptionsPropertyDefinition)({option:(0,l.convertToDefinitionProperty)(this._propertyApplier,e.mode,u.format({title:i}),[c.convertToInt])},{id:`${n}Mode`,title:v,options:new s.WatchedValue(D)}),(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,e.mirrored,h.format({title:i}))},{id:`${n}Mirrored`,title:g}),(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,e.flipped,y.format({title:i}))},{id:`${n}Flipped`,title:T})]}}}},32364:(e,t,i)=>{i.r(t),i.d(t,{BrushDefinitionsViewModel:()=>u});var n=i(11542),r=i(45126),o=i(53749),l=i(18009),s=i(32097),a=i(91682);const c=new r.TranslatedString("change {title} background visibility",n.t(null,void 0,i(30839))),p=new r.TranslatedString("change {title} background color",n.t(null,void 0,i(49765))),d=n.t(null,void 0,i(79468));class u extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){
|
|
const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType());return{definitions:[(0,o.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.linecolor,lineWidth:e.linewidth,leftEnd:e.leftEnd,rightEnd:e.rightEnd},i,"Line"),(0,s.createColorPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.fillBackground,c.format({title:i})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.backgroundColor,e.transparency,p.format({title:i}))},{id:(0,a.removeSpaces)(`${t}BackgroundColor`),title:d})]}}_coordinatesPropertyDefinitions(){return null}}},29908:(e,t,i)=>{i.r(t),i.d(t,{CalloutDefinitionsViewModel:()=>l});var n=i(91335),r=i(18009),o=i(45126);class l extends r.LineDataSourceDefinitionsViewModel{_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,n.createTextStyleDefinition)(this._propertyApplier,{textColor:e.color,fontSize:e.fontsize,bold:e.bold,italic:e.italic,text:e.text,backgroundColor:e.backgroundColor,backgroundTransparency:e.transparency,borderColor:e.bordercolor,borderWidth:e.linewidth,wrap:e.wordWrap},new o.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0})]}}}},9805:(e,t,i)=>{i.r(t),i.d(t,{CrossLineDefinitionsViewModel:()=>c});var n=i(11542),r=i(45126),o=i(18009),l=i(88924),s=i(91335);const a=n.t(null,void 0,i(70320));class c extends o.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return(0,l.getLinesStylesPropertiesDefinitions)(this._propertyApplier,e,new r.TranslatedString(this._source.name(),this._source.translatedType()))}_textPropertyDefinitions(){const e=this._source.properties().childs();if("showLabel"in e){return{definitions:[(0,s.createTextStyleDefinition)(this._propertyApplier,{...e,showText:e.showLabel,textColor:e.textcolor,fontSize:e.fontsize},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,customTitles:{text:a}})]}}return null}}},3868:(e,t,i)=>{i.r(t),i.d(t,{CyclicAndSineLinesPatternDefinitionsViewModel:()=>a});var n=i(11542),r=i(45126),o=i(53749),l=i(18009);const s=n.t(null,void 0,i(56982));class a extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,o.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.linecolor,lineWidth:e.linewidth,lineStyle:e.linestyle},new r.TranslatedString(this._source.name(),this._source.translatedType()),"Line",{line:s})]}}}},70491:(e,t,i)=>{i.r(t),i.d(t,{ElliottPatternDefinitionsViewModel:()=>f});var n=i(11542),r=i(45126),o=i(53749),l=i(18009),s=i(32097),a=i(64147),c=i(91682);const p=new r.TranslatedString("change {title} color",n.t(null,void 0,i(49442))),d=new r.TranslatedString("change {title} degree",n.t(null,void 0,i(86650))),u=n.t(null,void 0,i(47370)),h=n.t(null,void 0,i(32998)),y=n.t(null,void 0,i(23403));class f extends l.LineDataSourceDefinitionsViewModel{
|
|
_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType());return{definitions:[(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.color,null,p.format({title:i}))},{id:(0,c.removeSpaces)(`${t}BackgroundColor`),title:u}),(0,o.createLineStyleDefinition)(this._propertyApplier,{showLine:e.showWave,lineWidth:e.linewidth},i,"Line",{line:h}),(0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.degree,d.format({title:i}))},{id:`${t}Degree`,title:y,options:new a.WatchedValue(this._source.availableDegreesValues())})]}}}},99458:(e,t,i)=>{i.r(t),i.d(t,{EllipseCircleDefinitionsViewModel:()=>a});var n=i(11542),r=i(45126),o=i(91335),l=i(90490);const s=n.t(null,void 0,i(70320));class a extends l.GeneralFiguresDefinitionsViewModelBase{_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,o.createTextStyleDefinition)(this._propertyApplier,{textColor:e.textColor,text:e.text,bold:e.bold,italic:e.italic,fontSize:e.fontSize,showText:e.showLabel},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,customTitles:{text:s}})]}}}},41618:(e,t,i)=>{i.r(t),i.d(t,{FibCirclesDefinitionsViewModel:()=>b});var n=i(50151),r=i(11542),o=i(45126),l=i(53749),s=i(32097),a=i(18009),c=i(91682),p=i(95166);const d=new o.TranslatedString("change {title} level {index} line visibility",r.t(null,void 0,i(51403))),u=new o.TranslatedString("change {title} levels visibility",r.t(null,void 0,i(54517))),h=new o.TranslatedString("change {title} level {index} line color",r.t(null,void 0,i(664))),y=new o.TranslatedString("change {title} level {index} line width",r.t(null,void 0,i(97870))),f=new o.TranslatedString("change {title} level {index} line coeff",r.t(null,void 0,i(27154))),v=new o.TranslatedString("change {title} all lines color",r.t(null,void 0,i(59577))),g=new o.TranslatedString("change {title} background visibility",r.t(null,void 0,i(30839))),T=new o.TranslatedString("change {title} background transparency",r.t(null,void 0,i(13783))),D=new o.TranslatedString("change {title} coeffs as percents visibility",r.t(null,void 0,i(31753))),_=r.t(null,void 0,i(51574)),w=r.t(null,void 0,i(28683)),P=r.t(null,void 0,i(79468)),S=r.t(null,void 0,i(79650)),m=r.t(null,void 0,i(53912));class b extends a.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),r=(0,c.removeSpaces)(i),a=new o.TranslatedString(i,this._source.translatedType()),b=t.trendline.childs(),L=(0,l.createLineStyleDefinition)(this._propertyApplier,{showLine:b.visible,lineColor:b.color,lineStyle:b.linestyle,lineWidth:b.linewidth},a,"TrendLine",{line:_});e.push(L);const C=this._source.levelsCount();for(let i=1;i<=C;i++){const n=t[`level${i}`].childs(),o=(0,s.createLeveledLinePropertyDefinition)({checked:(0,
|
|
s.convertToDefinitionProperty)(this._propertyApplier,n.visible,d.format({title:a,index:i})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,n.color,null,h.format({title:a,index:i})),width:(0,s.convertToDefinitionProperty)(this._propertyApplier,n.linewidth,y.format({title:a,index:i})),level:(0,s.convertToDefinitionProperty)(this._propertyApplier,n.coeff,f.format({title:a,index:i}))},{id:`${r}LineLevel${i}`});e.push(o)}const x=(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,new p.CollectibleColorPropertyUndoWrapper((0,n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,null),null,v.format({title:a}),!0)},{id:`${r}AllLineColor`,title:w});e.push(x);const A=(0,s.createTransparencyPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.fillBackground,g.format({title:a})),transparency:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.transparency,T.format({title:a}))},{id:`${r}Background`,title:P});e.push(A);const k=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.showCoeffs,u.format({title:a}))},{id:`${r}Levels`,title:S});e.push(k);const V=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.coeffsAsPercents,D.format({title:a}))},{id:`${r}Percentage`,title:m});return e.push(V),{definitions:e}}}},75450:(e,t,i)=>{i.r(t),i.d(t,{FibDrawingsWith24LevelsDefinitionsViewModel:()=>Y});var n=i(50151),r=i(11542),o=i(45126),l=i(53749),s=i(32097),a=i(18009),c=i(30699),p=i(23720),d=i(64147),u=i(91682),h=i(95166)
|
|
;const y=new o.TranslatedString("change {title} level {index} line visibility",r.t(null,void 0,i(51403))),f=new o.TranslatedString("change {title} level {index} line color",r.t(null,void 0,i(664))),v=new o.TranslatedString("change {title} level {index} line coeff",r.t(null,void 0,i(27154))),g=new o.TranslatedString("change {title} all lines color",r.t(null,void 0,i(59577))),T=new o.TranslatedString("change {title} background visibility",r.t(null,void 0,i(30839))),D=new o.TranslatedString("change {title} background transparency",r.t(null,void 0,i(13783))),_=new o.TranslatedString("change {title} reverse",r.t(null,void 0,i(50762))),w=new o.TranslatedString("change {title} prices visibility",r.t(null,void 0,i(4714))),P=new o.TranslatedString("change {title} labels alignment",r.t(null,void 0,i(55612))),S=new o.TranslatedString("change {title} text alignment",r.t(null,void 0,i(94455))),m=new o.TranslatedString("change {title} text visibility",r.t(null,void 0,i(30353))),b=new o.TranslatedString("change {title} labels font size",r.t(null,void 0,i(19658))),L=new o.TranslatedString("change {title} style",r.t(null,void 0,i(98463))),C=new o.TranslatedString("change {title} fib levels based on log scale",r.t(null,void 0,i(85509))),x=r.t(null,void 0,i(51574)),A=r.t(null,void 0,i(36937)),k=r.t(null,void 0,i(68461)),V=r.t(null,void 0,i(25112)),$=r.t(null,void 0,i(79192)),M=r.t(null,void 0,i(25188)),W=r.t(null,void 0,i(64489)),B=r.t(null,void 0,i(29416)),R=r.t(null,void 0,i(79650)),z=r.t(null,void 0,i(5119)),I=r.t(null,void 0,i(70320)),N=r.t(null,void 0,i(2573)),E=r.t(null,void 0,i(28683)),U=r.t(null,void 0,i(79468)),G=r.t(null,void 0,i(66086)),O=[{id:"values",value:!1,title:r.t(null,void 0,i(60092))},{id:"percents",value:!0,title:r.t(null,void 0,i(33120))}],F=[{id:c.VerticalAlign.Top,value:c.VerticalAlign.Bottom,title:r.t(null,void 0,i(97118))},{id:c.VerticalAlign.Middle,value:c.VerticalAlign.Middle,title:r.t(null,void 0,i(68833))},{id:c.VerticalAlign.Bottom,value:c.VerticalAlign.Top,title:r.t(null,void 0,i(27567))}],H=[8,10,11,12,14,16,18,20,22,24].map((e=>({title:String(e),value:e})));class Y extends a.LineDataSourceDefinitionsViewModel{constructor(e,t){super(e,t),this._disabledBasedOnLog=null;if("fibLevelsBasedOnLogScale"in this._source.properties().childs()){const e=this._source.priceScale();null!==e&&(this._disabledBasedOnLog=new d.WatchedValue(Boolean(!e.mode().log)),this._createPropertyRages(),e.modeChanged().subscribe(this,((e,t)=>{null!==this._disabledBasedOnLog&&this._disabledBasedOnLog.setValue(Boolean(!t.log))})))}}destroy(){super.destroy();const e=this._source.priceScale();null!==e&&e.modeChanged().unsubscribeAll(this)}_stylePropertyDefinitions(){const e=[],t=this._source.properties(),i=t.childs(),r=this._source.name(),a=(0,u.removeSpaces)(r),c=new o.TranslatedString(r,this._source.translatedType());if("trendline"in i){const t=i.trendline.childs(),n=(0,l.createLineStyleDefinition)(this._propertyApplier,{showLine:t.visible,lineColor:t.color,lineStyle:t.linestyle,lineWidth:t.linewidth},c,"TrendLine",{line:x});e.push(n)}
|
|
const Y=i.levelsStyle.childs(),j={lineStyle:Y.linestyle,lineWidth:Y.linewidth},X={line:A};"extendLines"in i&&(j.extendRight=i.extendLines,X.extendRightTitle=$),"extendLinesLeft"in i&&(j.extendLeft=i.extendLinesLeft,X.extendLeftTitle=M),"extendRight"in i&&(j.extendRight=i.extendRight,X.extendRightTitle=k),"extendLeft"in i&&(j.extendLeft=i.extendLeft,X.extendLeftTitle=V);const K=(0,l.createLineStyleDefinition)(this._propertyApplier,j,c,"LevelsStyleLine",X);e.push(K);const q=[],J=this._source.levelsCount();for(let e=1;e<=J;e++){const t=i[`level${e}`].childs(),n=(0,s.createLeveledLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.visible,y.format({title:c,index:e})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,t.color,null,f.format({title:c,index:e})),level:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.coeff,v.format({title:c,index:e}))},{id:`${a}LineLevel${e}`});q.push(n)}const Q=(0,s.createPropertyDefinitionsLeveledLinesGroup)(q,`${a}LeveledLinesGroup`);e.push((0,s.createPropertyDefinitionsGeneralGroup)([Q],`${a}Group`));const Z=(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,new h.CollectibleColorPropertyUndoWrapper((0,n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,null),null,g.format({title:c}),!0)},{id:`${a}AllLineColor`,title:E});e.push(Z);const ee=(0,s.createTransparencyPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.fillBackground,T.format({title:c})),transparency:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.transparency,D.format({title:c}))},{id:`${a}Background`,title:U});e.push(ee);const te=i;if("reverse"in te){const t=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,te.reverse,_.format({title:c}))},{id:`${a}Reverse`,title:W});e.push(t)}const ie=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.showPrices,w.format({title:c}))},{id:`${a}Prices`,title:B});e.push(ie);const ne=(0,s.createOptionsPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.showCoeffs,L.format({title:c})),option:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.coeffsAsPercents,L.format({title:c}))},{id:`${a}PitchStyle`,title:R,options:new d.WatchedValue(O)});e.push(ne);const re=(0,s.createTwoOptionsPropertyDefinition)({option1:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.horzLabelsAlign,P.format({title:c})),option2:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.vertLabelsAlign,P.format({title:c}))},{id:`${a}Alignment`,title:z,optionsItems1:new d.WatchedValue(p.availableAlignmentHorizontalItems),optionsItems2:new d.WatchedValue(F)});e.push(re);const oe=t.child("showText"),le=t.child("horzTextAlign"),se=t.child("vertTextAlign");if(oe&&le&&se){const t=(0,s.createTwoOptionsPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,oe,m.format({title:c
|
|
})),option1:(0,s.convertToDefinitionProperty)(this._propertyApplier,le,S.format({title:c})),option2:(0,s.convertToDefinitionProperty)(this._propertyApplier,se,S.format({title:c}))},{id:`${a}Text`,title:I,optionsItems1:new d.WatchedValue(p.availableAlignmentHorizontalItems),optionsItems2:new d.WatchedValue(F)});e.push(t)}const ae=(0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.labelFontSize,b.format({title:c}))},{id:`${a}FontSize`,title:N,options:new d.WatchedValue(H)});if(e.push(ae),"fibLevelsBasedOnLogScale"in i&&null!==this._disabledBasedOnLog){const t=(0,s.createCheckablePropertyDefinition)({disabled:(0,s.convertFromWVToDefinitionProperty)(this._propertyApplier,this._disabledBasedOnLog,C.format({title:c})),checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.fibLevelsBasedOnLogScale,C.format({title:c}))},{id:`${a}BasedOnLog`,title:G});e.push(t)}return{definitions:e}}}},20875:(e,t,i)=>{i.r(t),i.d(t,{FibSpeedResistanceArcsDefinitionsViewModel:()=>b});var n=i(50151),r=i(11542),o=i(45126),l=i(53749),s=i(32097),a=i(18009),c=i(91682),p=i(95166);const d=new o.TranslatedString("change {title} level {index} line visibility",r.t(null,void 0,i(51403))),u=new o.TranslatedString("change {title} levels visibility",r.t(null,void 0,i(54517))),h=new o.TranslatedString("change {title} level {index} line color",r.t(null,void 0,i(664))),y=new o.TranslatedString("change {title} level {index} line width",r.t(null,void 0,i(97870))),f=new o.TranslatedString("change {title} level {index} line coeff",r.t(null,void 0,i(27154))),v=new o.TranslatedString("change {title} all lines color",r.t(null,void 0,i(59577))),g=new o.TranslatedString("change {title} background visibility",r.t(null,void 0,i(30839))),T=new o.TranslatedString("change {title} background transparency",r.t(null,void 0,i(13783))),D=new o.TranslatedString("change {title} full circles visibility",r.t(null,void 0,i(30484))),_=r.t(null,void 0,i(51574)),w=r.t(null,void 0,i(28683)),P=r.t(null,void 0,i(79468)),S=r.t(null,void 0,i(79650)),m=r.t(null,void 0,i(95279));class b extends a.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),r=(0,c.removeSpaces)(i),a=new o.TranslatedString(i,this._source.translatedType()),b=t.trendline.childs(),L=(0,l.createLineStyleDefinition)(this._propertyApplier,{showLine:b.visible,lineColor:b.color,lineStyle:b.linestyle,lineWidth:b.linewidth},a,"TrendLine",{line:_});e.push(L);const C=this._source.levelsCount();for(let i=1;i<=C;i++){const n=t[`level${i}`].childs(),o=(0,s.createLeveledLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,n.visible,d.format({title:a,index:i})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,n.color,null,h.format({title:a,index:i})),width:(0,s.convertToDefinitionProperty)(this._propertyApplier,n.linewidth,y.format({title:a,index:i})),level:(0,s.convertToDefinitionProperty)(this._propertyApplier,n.coeff,f.format({title:a,index:i}))
|
|
},{id:`${r}LineLevel${i}`});e.push(o)}const x=(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,new p.CollectibleColorPropertyUndoWrapper((0,n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,null),null,v.format({title:a}),!0)},{id:`${r}AllLineColor`,title:w});e.push(x);const A=(0,s.createTransparencyPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.fillBackground,g.format({title:a})),transparency:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.transparency,T.format({title:a}))},{id:`${r}Background`,title:P});e.push(A);const k=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.showCoeffs,u.format({title:a}))},{id:`${r}Levels`,title:S});e.push(k);const V=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.fullCircles,D.format({title:a}))},{id:`${r}FullCircles`,title:m});return e.push(V),{definitions:e}}}},72605:(e,t,i)=>{i.r(t),i.d(t,{FibSpeedResistanceFanDefinitionsViewModel:()=>B});var n=i(50151),r=i(11542),o=i(45126),l=i(32097),s=i(18009),a=i(91682),c=i(95166);const p=new o.TranslatedString("change {title} level {index} line visibility",r.t(null,void 0,i(51403))),d=new o.TranslatedString("change {title} level {index} line color",r.t(null,void 0,i(664))),u=new o.TranslatedString("change {title} level {index} line coeff",r.t(null,void 0,i(27154))),h=new o.TranslatedString("change {title} all lines color",r.t(null,void 0,i(59577))),y=new o.TranslatedString("change {title} background visibility",r.t(null,void 0,i(30839))),f=new o.TranslatedString("change {title} background transparency",r.t(null,void 0,i(13783))),v=new o.TranslatedString("change {title} left labels visibility",r.t(null,void 0,i(63021))),g=new o.TranslatedString("change {title} right labels visibility",r.t(null,void 0,i(8390))),T=new o.TranslatedString("change {title} top labels visibility",r.t(null,void 0,i(81301))),D=new o.TranslatedString("change {title} bottom labels visibility",r.t(null,void 0,i(62130))),_=new o.TranslatedString("change {title} reverse",r.t(null,void 0,i(50762))),w=new o.TranslatedString("change {title} grid visibility",r.t(null,void 0,i(20664))),P=new o.TranslatedString("change {title} grid line color",r.t(null,void 0,i(36467))),S=new o.TranslatedString("change {title} grid line width",r.t(null,void 0,i(30127))),m=new o.TranslatedString("change {title} grid line style",r.t(null,void 0,i(54244))),b=r.t(null,void 0,i(28683)),L=r.t(null,void 0,i(79468)),C=r.t(null,void 0,i(58557)),x=r.t(null,void 0,i(58476)),A=r.t(null,void 0,i(65e3)),k=r.t(null,void 0,i(28971)),V=r.t(null,void 0,i(74939)),$=r.t(null,void 0,i(17129)),M=r.t(null,void 0,i(81356)),W=r.t(null,void 0,i(64489));class B extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),r=(0,
|
|
a.removeSpaces)(i),s=new o.TranslatedString(i,this._source.translatedType()),B=[],R=this._source.hLevelsCount();for(let e=1;e<=R;e++){const i=t[`hlevel${e}`].childs(),n=(0,l.createLeveledLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.visible,p.format({title:s,index:e})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,i.color,null,d.format({title:s,index:e})),level:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.coeff,u.format({title:s,index:e}))},{id:`${r}HLineLevel${e}`});B.push(n)}const z=(0,l.createPropertyDefinitionsLeveledLinesGroup)(B,`${r}HLeveledLinesGroup`),I=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showLeftLabels,v.format({title:s}))},{id:`${r}LeftLabels`,title:A}),N=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showRightLabels,g.format({title:s}))},{id:`${r}RightLabels`,title:k}),E=(0,l.createPropertyDefinitionsGeneralGroup)([z,I,N],`${r}HLevelGroup`,C);e.push(E);const U=[],G=this._source.vLevelsCount();for(let e=1;e<=G;e++){const i=t[`vlevel${e}`].childs(),n=(0,l.createLeveledLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.visible,p.format({title:s,index:e})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,i.color,null,d.format({title:s,index:e})),level:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.coeff,u.format({title:s,index:e}))},{id:`${r}VLineLevel${e}`});U.push(n)}const O=(0,l.createPropertyDefinitionsLeveledLinesGroup)(U,`${r}VLeveledLinesGroup`),F=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showTopLabels,T.format({title:s}))},{id:`${r}TopLabels`,title:V}),H=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showBottomLabels,D.format({title:s}))},{id:`${r}BottomLabels`,title:$}),Y=(0,l.createPropertyDefinitionsGeneralGroup)([O,F,H],`${r}VLevelGroup`,x);e.push(Y);const j=(0,l.createColorPropertyDefinition)({color:(0,l.getColorDefinitionProperty)(this._propertyApplier,new c.CollectibleColorPropertyUndoWrapper((0,n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,null),null,h.format({title:s}),!0)},{id:`${r}AllLineColor`,title:b});e.push(j);const X=(0,l.createTransparencyPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.fillBackground,y.format({title:s})),transparency:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.transparency,f.format({title:s}))},{id:`${r}Background`,title:L});e.push(X);const K=t.grid.childs(),q=(0,l.createLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,K.visible,w.format({title:s})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,K.color,null,P.format({title:s})),width:(0,l.convertToDefinitionProperty)(this._propertyApplier,K.linewidth,S.format({title:s})),style:(0,
|
|
l.convertToDefinitionProperty)(this._propertyApplier,K.linestyle,m.format({title:s}))},{id:`${r}GridLine`,title:M});e.push(q);const J=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.reverse,_.format({title:s}))},{id:`${r}Reverse`,title:W});return e.push(J),{definitions:e}}}},49267:(e,t,i)=>{i.r(t),i.d(t,{FibWedgeDefinitionsViewModel:()=>S});var n=i(50151),r=i(11542),o=i(45126),l=i(53749),s=i(32097),a=i(18009),c=i(91682),p=i(95166);const d=new o.TranslatedString("change {title} level {index} line visibility",r.t(null,void 0,i(51403))),u=new o.TranslatedString("change {title} levels visibility",r.t(null,void 0,i(54517))),h=new o.TranslatedString("change {title} level {index} line color",r.t(null,void 0,i(664))),y=new o.TranslatedString("change {title} level {index} line width",r.t(null,void 0,i(97870))),f=new o.TranslatedString("change {title} level {index} line coeff",r.t(null,void 0,i(27154))),v=new o.TranslatedString("change {title} all lines color",r.t(null,void 0,i(59577))),g=new o.TranslatedString("change {title} background visibility",r.t(null,void 0,i(30839))),T=new o.TranslatedString("change {title} background transparency",r.t(null,void 0,i(13783))),D=r.t(null,void 0,i(51574)),_=r.t(null,void 0,i(28683)),w=r.t(null,void 0,i(79468)),P=r.t(null,void 0,i(79650));class S extends a.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),r=(0,c.removeSpaces)(i),a=new o.TranslatedString(i,this._source.translatedType()),S=t.trendline.childs(),m=(0,l.createLineStyleDefinition)(this._propertyApplier,{showLine:S.visible,lineColor:S.color,lineWidth:S.linewidth},a,"TrendLine",{line:D});e.push(m);const b=this._source.levelsCount();for(let i=1;i<=b;i++){const n=t[`level${i}`].childs(),o=(0,s.createLeveledLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,n.visible,d.format({title:a,index:i})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,n.color,null,h.format({title:a,index:i})),width:(0,s.convertToDefinitionProperty)(this._propertyApplier,n.linewidth,y.format({title:a,index:i})),level:(0,s.convertToDefinitionProperty)(this._propertyApplier,n.coeff,f.format({title:a,index:i}))},{id:`${r}LineLevel${i}`});e.push(o)}const L=(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,new p.CollectibleColorPropertyUndoWrapper((0,n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,null),null,v.format({title:a}),!0)},{id:`${r}AllLineColor`,title:_});e.push(L);const C=(0,s.createTransparencyPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.fillBackground,g.format({title:a})),transparency:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.transparency,T.format({title:a}))},{id:`${r}Background`,title:w});e.push(C);const x=(0,s.createCheckablePropertyDefinition)({checked:(0,
|
|
s.convertToDefinitionProperty)(this._propertyApplier,t.showCoeffs,u.format({title:a}))},{id:`${r}Levels`,title:P});return e.push(x),{definitions:e}}}},11138:(e,t,i)=>{i.r(t),i.d(t,{FlagMarkDefinitionsViewModel:()=>c});var n=i(11542),r=i(45126),o=i(18009),l=i(32097);const s=new r.TranslatedString("change flag color",n.t(null,void 0,i(77883))),a=n.t(null,void 0,i(33885));class c extends o.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,l.createColorPropertyDefinition)({color:(0,l.getColorDefinitionProperty)(this._propertyApplier,e.flagColor,null,s)},{id:"FlagColor",title:a})]}}}},53894:(e,t,i)=>{i.r(t),i.d(t,{GannComplexAndFixedDefinitionsViewModel:()=>z,isGannComplexLineTool:()=>R});var n=i(50151),r=i(11542),o=i(45126),l=i(91335),s=i(32097),a=i(18009),c=i(99083),p=i(64147),d=i(52305),u=i(91682),h=i(95166);const y=new o.TranslatedString("change {title} level {index} line visibility",r.t(null,void 0,i(51403))),f=new o.TranslatedString("change {title} level {index} line color",r.t(null,void 0,i(664))),v=new o.TranslatedString("change {title} level {index} line width",r.t(null,void 0,i(97870))),g=new o.TranslatedString("change {title} all lines color",r.t(null,void 0,i(59577))),T=new o.TranslatedString("change {title} background visibility",r.t(null,void 0,i(30839))),D=new o.TranslatedString("change {title} background transparency",r.t(null,void 0,i(13783))),_=new o.TranslatedString("change {title} reverse",r.t(null,void 0,i(50762))),w=new o.TranslatedString("change {title} fan {index} line visibility",r.t(null,void 0,i(28833))),P=new o.TranslatedString("change {title} fan {index} line color",r.t(null,void 0,i(62500))),S=new o.TranslatedString("change {title} fan {index} line width",r.t(null,void 0,i(6298))),m=new o.TranslatedString("change {title} arcs {index} line visibility",r.t(null,void 0,i(4313))),b=new o.TranslatedString("change {title} arcs {index} line color",r.t(null,void 0,i(95582))),L=new o.TranslatedString("change {title} arcs {index} line width",r.t(null,void 0,i(8745))),C=new o.TranslatedString("change top margin",r.t(null,void 0,i(74883))),x=r.t(null,void 0,i(64489)),A=r.t(null,void 0,i(28683)),k=r.t(null,void 0,i(79468)),V=r.t(null,void 0,i(78393)),$=r.t(null,void 0,i(27177)),M=r.t(null,void 0,i(79650)),W=r.t(null,void 0,i(84885)),B=r.t(null,void 0,i(59129));function R(e){return e instanceof c.LineToolGannComplex}class z extends a.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),r=(0,u.removeSpaces)(i),a=new o.TranslatedString(i,this._source.translatedType()),c=[],z=t.levels.childCount();for(let e=0;e<z;e++){const i=t.levels.childs()[e].childs(),n=(0,s.createLeveledLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.visible,y.format({title:a,index:e})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,i.color,null,f.format({title:a,index:e})),width:(0,
|
|
s.convertToDefinitionProperty)(this._propertyApplier,i.width,v.format({title:a,index:e}))},{id:`${r}LineLevel${e}`,title:`${e}`});c.push(n)}const I=(0,s.createPropertyDefinitionsLeveledLinesGroup)(c,`${r}LeveledLinesGroup`);e.push((0,s.createPropertyDefinitionsGeneralGroup)([I],`${r}LevelGroup`,M));const N=[],E=t.fanlines.childCount();for(let e=0;e<E;e++){const i=t.fanlines.childs()[e].childs(),n=(0,s.createLeveledLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.visible,w.format({title:a,index:e})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,i.color,null,P.format({title:a,index:e})),width:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.width,S.format({title:a,index:e}))},{id:`${r}FanLineLevel${e}`,title:`${i.x.value()}x${i.y.value()}`});N.push(n)}const U=(0,s.createPropertyDefinitionsLeveledLinesGroup)(N,`${r}FanLeveledLinesGroup`);e.push((0,s.createPropertyDefinitionsGeneralGroup)([U],`${r}FanLinesGroup`,W));const G=[],O=t.arcs.childCount();for(let e=0;e<O;e++){const i=t.arcs.childs()[e].childs(),n=(0,s.createLeveledLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.visible,m.format({title:a,index:e})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,i.color,null,b.format({title:a,index:e})),width:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.width,L.format({title:a,index:e}))},{id:`${r}ArcsLineLevel${e}`,title:`${i.x.value()}x${i.y.value()}`});G.push(n)}const F=(0,s.createPropertyDefinitionsLeveledLinesGroup)(G,`${r}ArcsLeveledLinesGroup`);e.push((0,s.createPropertyDefinitionsGeneralGroup)([F],`${r}ArcsLinesGroup`,B));const H=(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,new h.CollectibleColorPropertyUndoWrapper((0,n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,g.format({title:a})),null,null)},{id:`${r}AllLineColor`,title:A});e.push(H);const Y=t.arcsBackground.childs(),j=(0,s.createTransparencyPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,Y.fillBackground,T.format({title:a})),transparency:(0,s.convertToDefinitionProperty)(this._propertyApplier,Y.transparency,D.format({title:a}))},{id:`${r}Background`,title:k});e.push(j);const X=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.reverse,_.format({title:a}))},{id:`${r}Reverse`,title:x});if(e.push(X),R(this._source)){const t=this._source,i=t.properties().childs(),n=(0,s.createNumberPropertyDefinition)({value:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.scaleRatio,C,[(0,d.limitedPrecision)(7),e=>null!==e?parseFloat(t.getScaleRatioFormatter().format(e,{ignoreLocaleNumberFormat:!0})):null])},{id:"scaleRatio",title:V,min:new p.WatchedValue(1e-7),max:new p.WatchedValue(1e8),step:new p.WatchedValue(t.getScaleRatioStep())});e.push(n);const r=i.labelsStyle.childs(),o=(0,l.createTextStyleDefinition)(this._propertyApplier,{showText:i.showLabels,
|
|
fontSize:r.fontSize,bold:r.bold,italic:r.italic},a,{customTitles:{text:$}});e.push(o)}return{definitions:e}}}},72443:(e,t,i)=>{i.r(t),i.d(t,{GannFanDefinitionsViewModel:()=>w});var n=i(50151),r=i(11542),o=i(45126),l=i(32097),s=i(18009),a=i(91682),c=i(95166);const p=new o.TranslatedString("change {title} level {index} line visibility",r.t(null,void 0,i(51403))),d=new o.TranslatedString("change {title} level {index} line color",r.t(null,void 0,i(664))),u=new o.TranslatedString("change {title} level {index} line width",r.t(null,void 0,i(97870))),h=new o.TranslatedString("change {title} level {index} line style",r.t(null,void 0,i(64707))),y=new o.TranslatedString("change {title} all lines color",r.t(null,void 0,i(59577))),f=new o.TranslatedString("change {title} background visibility",r.t(null,void 0,i(30839))),v=new o.TranslatedString("change {title} background transparency",r.t(null,void 0,i(13783))),g=new o.TranslatedString("change {title} labels visibility",r.t(null,void 0,i(93340))),T=r.t(null,void 0,i(28683)),D=r.t(null,void 0,i(79468)),_=r.t(null,void 0,i(5119));class w extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),r=(0,a.removeSpaces)(i),s=new o.TranslatedString(i,this._source.translatedType()),w=this._source.levelsCount();for(let i=1;i<=w;i++){const n=t[`level${i}`].childs(),o=(0,l.createLeveledLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.visible,p.format({title:s,index:i})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,n.color,null,d.format({title:s,index:i})),width:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.linewidth,u.format({title:s,index:i})),style:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.linestyle,h.format({title:s,index:i}))},{id:`${r}LineLevel${i}`,title:`${n.coeff1.value()}/${n.coeff2.value()}`});e.push(o)}const P=(0,l.createColorPropertyDefinition)({color:(0,l.getColorDefinitionProperty)(this._propertyApplier,new c.CollectibleColorPropertyUndoWrapper((0,n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,null),null,y.format({title:s}))},{id:`${r}AllLineColor`,title:T});e.push(P);const S=(0,l.createTransparencyPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.fillBackground,f.format({title:s})),transparency:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.transparency,v.format({title:s}))},{id:`${r}Background`,title:D});e.push(S);const m=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showLabels,g.format({title:s}))},{id:`${r}Labels`,title:_});return e.push(m),{definitions:e}}}},27340:(e,t,i)=>{i.r(t),i.d(t,{GannSquareDefinitionsViewModel:()=>M});var n=i(50151),r=i(11542),o=i(45126),l=i(32097),s=i(18009),a=i(91682),c=i(95166)
|
|
;const p=new o.TranslatedString("change {title} level {index} line visibility",r.t(null,void 0,i(51403))),d=new o.TranslatedString("change {title} level {index} line color",r.t(null,void 0,i(664))),u=new o.TranslatedString("change {title} level {index} line coeff",r.t(null,void 0,i(27154))),h=new o.TranslatedString("change {title} all lines color",r.t(null,void 0,i(59577))),y=new o.TranslatedString("change {title} background visibility",r.t(null,void 0,i(30839))),f=new o.TranslatedString("change {title} background transparency",r.t(null,void 0,i(13783))),v=new o.TranslatedString("change {title} reverse",r.t(null,void 0,i(50762))),g=new o.TranslatedString("change {title} left labels visibility",r.t(null,void 0,i(63021))),T=new o.TranslatedString("change {title} right labels visibility",r.t(null,void 0,i(8390))),D=new o.TranslatedString("change {title} top labels visibility",r.t(null,void 0,i(81301))),_=new o.TranslatedString("change {title} bottom labels visibility",r.t(null,void 0,i(62130))),w=new o.TranslatedString("change {title} fans visibility",r.t(null,void 0,i(15972))),P=new o.TranslatedString("change {title} fans line color",r.t(null,void 0,i(1716))),S=r.t(null,void 0,i(28683)),m=r.t(null,void 0,i(79468)),b=r.t(null,void 0,i(58557)),L=r.t(null,void 0,i(58476)),C=r.t(null,void 0,i(65e3)),x=r.t(null,void 0,i(28971)),A=r.t(null,void 0,i(74939)),k=r.t(null,void 0,i(17129)),V=r.t(null,void 0,i(36335)),$=r.t(null,void 0,i(64489));class M extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),r=(0,a.removeSpaces)(i),s=new o.TranslatedString(i,this._source.translatedType()),M=[],W=this._source.hLevelsCount();for(let e=1;e<=W;e++){const i=t[`hlevel${e}`].childs(),n=(0,l.createLeveledLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.visible,p.format({title:s,index:e})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,i.color,null,d.format({title:s,index:e})),level:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.coeff,u.format({title:s,index:e}))},{id:`${r}HLineLevel${e}`});M.push(n)}const B=(0,l.createPropertyDefinitionsLeveledLinesGroup)(M,`${r}HLeveledLinesGroup`),R=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showLeftLabels,g.format({title:s}))},{id:`${r}LeftLabels`,title:C}),z=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showRightLabels,T.format({title:s}))},{id:`${r}RightLabels`,title:x}),I=(0,l.createTransparencyPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.fillHorzBackground,y.format({title:s})),transparency:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.horzTransparency,f.format({title:s}))},{id:`${r}BackgroundH`,title:m}),N=(0,l.createPropertyDefinitionsGeneralGroup)([B,R,z,I],`${r}HLevelGroup`,b);e.push(N);const E=[],U=this._source.vLevelsCount();for(let e=1;e<=U;e++){
|
|
const i=t[`vlevel${e}`].childs(),n=(0,l.createLeveledLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.visible,p.format({title:s,index:e})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,i.color,null,d.format({title:s,index:e})),level:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.coeff,u.format({title:s,index:e}))},{id:`${r}VLineLevel${e}`});E.push(n)}const G=(0,l.createPropertyDefinitionsLeveledLinesGroup)(E,`${r}VLeveledLinesGroup`),O=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showTopLabels,D.format({title:s}))},{id:`${r}TopLabels`,title:A}),F=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showBottomLabels,_.format({title:s}))},{id:`${r}BottomLabels`,title:k}),H=(0,l.createTransparencyPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.fillVertBackground,y.format({title:s})),transparency:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.vertTransparency,f.format({title:s}))},{id:`${r}BackgroundV`,title:m}),Y=(0,l.createPropertyDefinitionsGeneralGroup)([G,O,F,H],`${r}VLevelGroup`,L);e.push(Y);const j=(0,l.createColorPropertyDefinition)({color:(0,l.getColorDefinitionProperty)(this._propertyApplier,new c.CollectibleColorPropertyUndoWrapper((0,n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,null),null,h.format({title:s}),!0)},{id:`${r}AllLineColor`,title:S});e.push(j);const X=t.fans.childs(),K=(0,l.createColorPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,X.visible,w.format({title:s})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,X.color,null,P.format({title:s}))},{id:`${r}FansLines`,title:V});e.push(K);const q=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.reverse,v.format({title:s}))},{id:`${r}Reverse`,title:$});return e.push(q),{definitions:e}}}},86622:(e,t,i)=>{i.r(t),i.d(t,{GeneralBezierDefinitionsViewModel:()=>u});var n=i(11542),r=i(45126),o=i(53749),l=i(18009),s=i(32097),a=i(91682);const c=new r.TranslatedString("change {title} background visibility",n.t(null,void 0,i(30839))),p=new r.TranslatedString("change {title} background color",n.t(null,void 0,i(49765))),d=n.t(null,void 0,i(79468));class u extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType());return{definitions:[(0,o.createLineStyleDefinition)(this._undoModel,{lineColor:e.linecolor,lineWidth:e.linewidth,lineStyle:e.linestyle,extendLeft:e.extendLeft,extendRight:e.extendRight,leftEnd:e.leftEnd,rightEnd:e.rightEnd},i,"Line"),(0,s.createColorPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._undoModel,e.fillBackground,c.format({title:i})),color:(0,s.getColorDefinitionProperty)(this._undoModel,e.backgroundColor,e.transparency,p.format({
|
|
title:i}))},{id:(0,a.removeSpaces)(`${t}BackgroundColor`),title:d})]}}}},14336:(e,t,i)=>{i.r(t),i.d(t,{GeneralDatePriceRangeDefinitionsViewModel:()=>C});var n=i(11542),r=i(45126),o=i(53749),l=i(91335),s=i(18009),a=i(32097),c=i(91682);const p=new r.TranslatedString("change {title} background visibility",n.t(null,void 0,i(30839))),d=new r.TranslatedString("change {title} background color",n.t(null,void 0,i(49765))),u=new r.TranslatedString("change {title} extend top",n.t(null,void 0,i(30126))),h=new r.TranslatedString("change {title} extend bottom",n.t(null,void 0,i(59665))),y=new r.TranslatedString("change {title} extend left",n.t(null,void 0,i(35139))),f=new r.TranslatedString("change {title} volume visibility",n.t(null,void 0,i(36336))),v=n.t(null,void 0,i(3554)),g=n.t(null,void 0,i(38408)),T=n.t(null,void 0,i(79468)),D=n.t(null,void 0,i(71397)),_=n.t(null,void 0,i(76410)),w=n.t(null,void 0,i(25112)),P=n.t(null,void 0,i(68461)),S=n.t(null,void 0,i(74872)),m=n.t(null,void 0,i(73863)),b=n.t(null,void 0,i(70320)),L=n.t(null,void 0,i(37644));class C extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),n=(0,c.removeSpaces)(i),s=new r.TranslatedString(i,this._source.translatedType()),b=(0,o.createLineStyleDefinition)(this._propertyApplier,{lineColor:t.linecolor,lineWidth:t.linewidth},s,"Line",{line:v});e.push(b);const C=t.hasOwnProperty("borderWidth");if(C){const i=(0,o.createLineStyleDefinition)(this._propertyApplier,{showLine:t.drawBorder,lineColor:t.borderColor,lineWidth:t.borderWidth},s,"Border",{line:g});e.push(i)}const x=(0,a.createColorPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.fillBackground,p.format({title:s})),color:(0,a.getColorDefinitionProperty)(this._propertyApplier,t.backgroundColor,t.backgroundTransparency,d.format({title:s}))},{id:`${n}BackgroundColor`,title:T});e.push(x);const A=function(e){return e.hasOwnProperty("extendTop")}(t);if(A){const i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.extendTop,u.format({title:s}))},{id:`${n}ExtendTop`,title:D}),r=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.extendBottom,h.format({title:s}))},{id:`${n}ExtendBottom`,title:_});e.push(i,r)}if(function(e){return e.hasOwnProperty("extendLeft")}(t)){const i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.extendLeft,y.format({title:s}))},{id:`${n}extendLeft`,title:w}),r=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.extendRight,h.format({title:s}))},{id:`${n}ExtendBottom`,title:P});e.push(i,r)}const k=(0,l.createTextStyleDefinition)(this._propertyApplier,{textColor:t.textcolor,backgroundColor:t.labelBackgroundColor,backgroundTransparency:t.backgroundTransparency,fontSize:t.fontsize,backgroundVisible:t.fillLabelBackground},s,{isEditable:!0,isMultiLine:!0,
|
|
customTitles:{text:S,backgroundTitle:m}});if(e.push(k),C||A){const i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.showVolume,f.format({title:s}))},{id:`${n}ShowVolume`,title:L});e.push(i)}return{definitions:e}}_textPropertyDefinitions(){const e=this._source.properties().childs().customText.childs();return{definitions:[(0,l.createTextStyleDefinition)(this._propertyApplier,{...e,showText:e.visible,textColor:e.color,fontSize:e.fontsize},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,customTitles:{text:b}})]}}}},90490:(e,t,i)=>{i.r(t),i.d(t,{GeneralFiguresDefinitionsViewModel:()=>y,GeneralFiguresDefinitionsViewModelBase:()=>h});var n=i(11542),r=i(45126),o=i(53749),l=i(18009),s=i(32097),a=i(91682);const c=new r.TranslatedString("change {title} background visibility",n.t(null,void 0,i(30839))),p=new r.TranslatedString("change {title} background color",n.t(null,void 0,i(49765))),d=n.t(null,void 0,i(38408)),u=n.t(null,void 0,i(79468));class h extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType()),n=(0,o.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.color,lineWidth:e.linewidth,lineStyle:e.linestyle},i,"Line",{line:d}),l="transparency"in e?e.transparency:null;return{definitions:[n,(0,s.createColorPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.fillBackground,c.format({title:i})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.backgroundColor,l,p.format({title:i}))},{id:(0,a.removeSpaces)(`${t}BackgroundColor`),title:u})]}}}class y extends h{}},41585:(e,t,i)=>{i.r(t),i.d(t,{GeneralTrendFiguresDefinitionsViewModel:()=>g});var n=i(11542),r=i(45126),o=i(53749),l=i(91335),s=i(18009),a=i(32097),c=i(30699),p=i(91682);const d=new r.TranslatedString("change {title} background visibility",n.t(null,void 0,i(30839))),u=new r.TranslatedString("change {title} background color",n.t(null,void 0,i(49765))),h=[{value:c.VerticalAlign.Bottom,title:n.t(null,void 0,i(97118))},{value:c.VerticalAlign.Middle,title:n.t(null,void 0,i(91612))},{value:c.VerticalAlign.Top,title:n.t(null,void 0,i(27567))}],y=n.t(null,void 0,i(70320)),f=n.t(null,void 0,i(29416)),v=n.t(null,void 0,i(79468));class g extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType());return{definitions:[(0,o.createLineStyleDefinition)(this._propertyApplier,{...e,lineColor:e.linecolor,lineWidth:e.linewidth,lineStyle:e.linestyle},i,"Line"),(0,l.createTextStyleDefinition)(this._propertyApplier,{showText:e.showPrices,textColor:e.textcolor,fontSize:e.fontsize,bold:e.bold,italic:e.italic},i,{customTitles:{text:f}}),(0,a.createColorPropertyDefinition)({checked:(0,
|
|
a.convertToDefinitionProperty)(this._propertyApplier,e.fillBackground,d.format({title:i})),color:(0,a.getColorDefinitionProperty)(this._propertyApplier,e.backgroundColor,e.transparency,u.format({title:i}))},{id:(0,p.removeSpaces)(`${t}Background`),title:v})]}}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,l.createTextStyleDefinition)(this._propertyApplier,{textColor:e.labelTextColor,text:e.labelText,bold:e.labelBold,italic:e.labelItalic,fontSize:e.labelFontSize,horzLabelsAlign:e.labelHorzAlign,vertLabelsAlign:e.labelVertAlign,showText:e.labelVisible},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,alignmentVerticalItems:h,customTitles:{text:y}})]}}}},9786:(e,t,i)=>{i.r(t),i.d(t,{GhostFeedDefinitionsViewModel:()=>b});var n=i(11542),r=i(45126),o=i(18009),l=i(32097),s=i(64147),a=i(91682);const c=new r.TranslatedString("change {title} candle up color",n.t(null,void 0,i(21631))),p=new r.TranslatedString("change {title} candle down color",n.t(null,void 0,i(80022))),d=new r.TranslatedString("change {title} candle border visibility",n.t(null,void 0,i(88530))),u=new r.TranslatedString("change {title} candle border up color",n.t(null,void 0,i(97345))),h=new r.TranslatedString("change {title} candle border down color",n.t(null,void 0,i(81139))),y=new r.TranslatedString("change {title} candle wick visibility",n.t(null,void 0,i(85382))),f=new r.TranslatedString("change {title} candle wick color",n.t(null,void 0,i(33589))),v=new r.TranslatedString("change {title} transparency",n.t(null,void 0,i(51085))),g=new r.TranslatedString("change {title} average HL value",n.t(null,void 0,i(39393))),T=new r.TranslatedString("change {title} variance value",n.t(null,void 0,i(23171))),D=n.t(null,void 0,i(45054)),_=n.t(null,void 0,i(333)),w=n.t(null,void 0,i(32163)),P=n.t(null,void 0,i(19788)),S=n.t(null,void 0,i(52648)),m=n.t(null,void 0,i(29566));class b extends o.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=(0,a.removeSpaces)(t),n=new r.TranslatedString(t,this._source.translatedType()),o=e.candleStyle.childs();return{definitions:[(0,l.createTwoColorsPropertyDefinition)({color1:(0,l.getColorDefinitionProperty)(this._propertyApplier,o.upColor,null,c.format({title:n})),color2:(0,l.getColorDefinitionProperty)(this._propertyApplier,o.downColor,null,p.format({title:n}))},{id:`${i}Candle2Colors`,title:D}),(0,l.createTwoColorsPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,o.drawBorder,d.format({title:n})),color1:(0,l.getColorDefinitionProperty)(this._propertyApplier,o.borderUpColor,null,u.format({title:n})),color2:(0,l.getColorDefinitionProperty)(this._propertyApplier,o.borderDownColor,null,h.format({title:n}))},{id:`${i}CandleBorder2Colors`,title:_}),(0,l.createColorPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,o.drawWick,y.format({title:n})),color:(0,
|
|
l.getColorDefinitionProperty)(this._propertyApplier,o.wickColor,null,f.format({title:n}))},{id:`${i}CandleWickColor`,title:w}),(0,l.createTransparencyPropertyDefinition)({transparency:(0,l.convertToDefinitionProperty)(this._propertyApplier,e.transparency,v.format({title:n}))},{id:`${i}Transparency`,title:P})]}}_inputsPropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=(0,a.removeSpaces)(t),n=new r.TranslatedString(t,this._source.translatedType());return{definitions:[(0,l.createNumberPropertyDefinition)({value:(0,l.convertToDefinitionProperty)(this._propertyApplier,e.averageHL,g.format({title:n}))},{id:`${i}AvgHL`,title:S,type:0,min:new s.WatchedValue(1),max:new s.WatchedValue(5e4),step:new s.WatchedValue(1)}),(0,l.createNumberPropertyDefinition)({value:(0,l.convertToDefinitionProperty)(this._propertyApplier,e.variance,T.format({title:n}))},{id:`${i}Variance`,title:m,type:0,min:new s.WatchedValue(1),max:new s.WatchedValue(100),step:new s.WatchedValue(1)})]}}}},14542:(e,t,i)=>{i.r(t),i.d(t,{HighlighterDefinitionsViewModel:()=>u});var n=i(11542),r=i(91682),o=i(45126),l=i(64147),s=i(32097),a=i(53749),c=i(18009);const p=new o.TranslatedString("change {title} width",n.t(null,void 0,i(60111))),d=[8,12,20,32,48,64,80,96].map((e=>({value:e,title:`${e.toString()}px`})));class u extends c.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),c=new o.TranslatedString(t,this._source.translatedType()),u=(0,r.removeSpaces)(t);return{definitions:[(0,a.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.linecolor},c,"Line"),(0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.width,p.format({title:c}))},{id:`${u}Thickness`,title:n.t(null,void 0,i(54971)),options:new l.WatchedValue(d)})]}}_coordinatesPropertyDefinitions(){return null}}},84190:(e,t,i)=>{i.r(t),i.d(t,{HorizontalLineDefinitionsViewModel:()=>h});var n=i(11542),r=i(45126),o=i(32097),l=i(73174),s=i(91682),a=i(18009),c=i(88924),p=i(91335);const d=n.t(null,void 0,i(70320)),u=n.t(null,{context:"linetool point"},i(37814));class h extends a.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return(0,c.getLinesStylesPropertiesDefinitions)(this._propertyApplier,e,new r.TranslatedString(this._source.name(),this._source.translatedType()))}_coordinatesPropertyDefinitions(){const e=this._source.pointsProperty().childs().points[0].childs(),t=this._getYCoordinateStepWV(),i=(0,l.getCoordinateYMetaInfo)(this._propertyApplier,e,t);return{definitions:[(0,o.createCoordinatesPropertyDefinition)({y:i.property},{id:(0,s.removeSpaces)(`${this._source.name()}Point`),title:u,...i.info})]}}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,p.createTextStyleDefinition)(this._propertyApplier,{...e,showText:e.showLabel,textColor:e.textcolor,fontSize:e.fontsize,textOrientation:e.textOrientation
|
|
},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,customTitles:{text:d}})]}}}},22707:(e,t,i)=>{i.r(t),i.d(t,{HorizontalRayDefinitionsViewModel:()=>c});var n=i(11542),r=i(45126),o=i(18009),l=i(88924),s=i(91335);const a=n.t(null,void 0,i(70320));class c extends o.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return(0,l.getLinesStylesPropertiesDefinitions)(this._propertyApplier,e,new r.TranslatedString(this._source.name(),this._source.translatedType()))}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,s.createTextStyleDefinition)(this._propertyApplier,{...e,showText:e.showLabel,textColor:e.textcolor,fontSize:e.fontsize,textOrientation:e.textOrientation},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,customTitles:{text:a}})]}}}},19532:(e,t,i)=>{i.r(t),i.d(t,{IconsDefinitionsViewModel:()=>p});var n=i(11542),r=i(45126),o=i(18009),l=i(32097),s=i(91682);const a=new r.TranslatedString("change {title} color",n.t(null,void 0,i(49442))),c=n.t(null,void 0,i(47370));class p extends o.LineDataSourceDefinitionsViewModel{constructor(e,t){super(e,t)}_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType());return{definitions:[(0,l.createColorPropertyDefinition)({color:(0,l.getColorDefinitionProperty)(this._propertyApplier,e.color,null,a.format({title:i}))},{id:(0,s.removeSpaces)(`${t}Color`),title:c})]}}}},65504:(e,t,i)=>{i.r(t),i.d(t,{ImageDefinitionsViewModel:()=>f});var n=i(11542),r=i(45126),o=i(32097),l=i(18009),s=i(18181),a=i(12988);const c=new r.TranslatedString("change image",n.t(null,void 0,i(83842))),p=new r.TranslatedString("change image transparency",n.t(null,void 0,i(65309))),d=n.t(null,void 0,i(68065)),u=n.t(null,void 0,i(19788)),h=n.t(null,void 0,i(81169));function y(e){return null!==(0,s.buildAbsoluteUserImageUrl)(e)?"":h}class f extends l.LineDataSourceDefinitionsViewModel{destroy(){this._source.properties().childs().url.unsubscribeAll(this),super.destroy()}_stylePropertyDefinitions(){const e=this._source.properties().childs();if(void 0===this._customErrorProperty){const t=new a.Property(y(e.url.value()));this._customErrorProperty=t,e.url.subscribe(this,(e=>{t.setValue(y(e.value()))}))}return{definitions:[(0,o.createImagePropertyDefinition)({url:(0,o.convertToDefinitionProperty)(this._propertyApplier,this._source.absoluteUserImageUrl(),c),transparency:(0,o.convertToDefinitionProperty)(this._propertyApplier,e.transparency,p)},{id:"image",title:d}),(0,o.createTransparencyPropertyDefinition)({transparency:(0,o.convertToDefinitionProperty)(this._propertyApplier,e.transparency,p)},{id:"imageTransparency",title:u})]}}}},73653:(e,t,i)=>{i.r(t),i.d(t,{ParallelChannelDefinitionsViewModel:()=>C});var n=i(11542),r=i(50151),o=i(45126),l=i(32097),s=i(30699),a=i(18009),c=i(91335),p=i(91682),d=i(73174),u=i(14608)
|
|
;const h=new o.TranslatedString("change {title} extending left",n.t(null,void 0,i(58052))),y=new o.TranslatedString("change {title} extending right",n.t(null,void 0,i(74867))),f=new o.TranslatedString("change {title} background visibility",n.t(null,void 0,i(30839))),v=new o.TranslatedString("change {title} background color",n.t(null,void 0,i(49765))),g=[{value:s.VerticalAlign.Bottom,title:n.t(null,void 0,i(97118))},{value:s.VerticalAlign.Middle,title:n.t(null,void 0,i(91612))},{value:s.VerticalAlign.Top,title:n.t(null,void 0,i(27567))}],T=n.t(null,void 0,i(70320)),D=n.t(null,void 0,i(61856)),_=n.t(null,void 0,i(87430)),w=n.t(null,void 0,i(79468)),P=new o.TranslatedString("change {title} level {index} line visibility",n.t(null,void 0,i(51403))),S=new o.TranslatedString("change {title} level {index} line color",n.t(null,void 0,i(664))),m=new o.TranslatedString("change {title} level {index} line width",n.t(null,void 0,i(97870))),b=new o.TranslatedString("change {title} level {index} line style",n.t(null,void 0,i(64707))),L=new o.TranslatedString("change {title} level {index} line coeff",n.t(null,void 0,i(27154)));class C extends a.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties(),i=t.childs(),n=this._source.name(),s=(0,p.removeSpaces)(n),a=new o.TranslatedString(n,this._source.translatedType()),c=this._source.levelsCount();for(let i=1;i<=c;i++){const n=(0,r.ensureDefined)(t.child(`level${i}`)).childs(),o=(0,l.createLeveledLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.visible,P.format({title:a,index:i})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,n.color,null,S.format({title:a,index:i})),width:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.lineWidth,m.format({title:a,index:i})),style:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.lineStyle,b.format({title:a,index:i})),level:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.coeff,L.format({title:a,index:i}))},{id:`${s}LineLevel${i}`,locked:2===i||6===i});e.push(o)}return e.push((0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.extendLeft,h.format({title:a}))},{id:`${s}ExtendLeft`,title:D})),e.push((0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.extendRight,y.format({title:a}))},{id:`${s}ExtendRight`,title:_})),e.push((0,l.createColorPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.fillBackground,f.format({title:a})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,i.backgroundColor,i.transparency,v.format({title:a}))},{id:`${s}Background`,title:w})),{definitions:e}}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,c.createTextStyleDefinition)(this._propertyApplier,{textColor:e.labelTextColor,text:e.labelText,bold:e.labelBold,italic:e.labelItalic,fontSize:e.labelFontSize,horzLabelsAlign:e.labelHorzAlign,
|
|
vertLabelsAlign:e.labelVertAlign,showText:e.labelVisible},new o.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,alignmentVerticalItems:g,customTitles:{text:T}})]}}_coordinatesPropertyDefinitions(){const e=this._source.points().slice(0,2),t=this._source.pointsProperty().childs().points,r=[],s=this._getYCoordinateStepWV();return e.forEach(((e,i)=>{const n=t[i].childs();n&&r.push((0,d.getCoordinatesPropertiesDefinitions)(this._propertyApplier,n,e,s,a.pointPriceBarTitle.format({count:(i+1).toString()}),this._source.name()))})),r.push((0,u.createNumberPropertyDefinition)({value:(0,l.convertToDefinitionProperty)(this._propertyApplier,this._source.priceOffsetProperty(),new o.TranslatedString("Change price offset",n.t(null,void 0,i(9074))))},{id:"PriceOffset",title:"Price offset",type:1,step:s})),{definitions:r}}}},39878:(e,t,i)=>{i.r(t),i.d(t,{PathDefinitionsViewModel:()=>a});var n=i(11542),r=i(45126),o=i(53749),l=i(18009);const s=n.t(null,void 0,i(3554));class a extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,o.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.lineColor,lineWidth:e.lineWidth,lineStyle:e.lineStyle,leftEnd:e.leftEnd,rightEnd:e.rightEnd},new r.TranslatedString(this._source.name(),this._source.translatedType()),"Line",{line:s})]}}_coordinatesPropertyDefinitions(){return null}}},35737:(e,t,i)=>{i.r(t),i.d(t,{PatternWithBackgroundDefinitionViewModel:()=>f});var n=i(11542),r=i(45126),o=i(53749),l=i(91335),s=i(18009),a=i(32097),c=i(91682);const p=new r.TranslatedString("change {title} background visibility",n.t(null,void 0,i(30839))),d=new r.TranslatedString("change {title} background color",n.t(null,void 0,i(49765))),u=n.t(null,void 0,i(74872)),h=n.t(null,void 0,i(38408)),y=n.t(null,void 0,i(79468));class f extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType());return{definitions:[(0,l.createTextStyleDefinition)(this._propertyApplier,{textColor:e.textcolor,fontSize:e.fontsize,bold:e.bold,italic:e.italic},i,{isEditable:!0,isMultiLine:!0,customTitles:{text:u}}),(0,o.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.color,lineWidth:e.linewidth},i,"Line",{line:h}),(0,a.createColorPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,e.fillBackground,p.format({title:i})),color:(0,a.getColorDefinitionProperty)(this._propertyApplier,e.backgroundColor,e.transparency,d.format({title:i}))},{id:(0,c.removeSpaces)(`${t}BackgroundColor`),title:y})]}}}},66085:(e,t,i)=>{i.r(t),i.d(t,{PatternWithoutBackgroundDefinitionsViewModel:()=>p});var n=i(11542),r=i(45126),o=i(53749),l=i(91335),s=i(18009);const a=n.t(null,void 0,i(74872)),c=n.t(null,void 0,i(38408));class p extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){
|
|
const e=this._source.properties().childs(),t=new r.TranslatedString(this._source.name(),this._source.translatedType());return{definitions:[(0,l.createTextStyleDefinition)(this._propertyApplier,{textColor:e.textcolor,fontSize:e.fontsize,bold:e.bold,italic:e.italic},t,{isEditable:!0,isMultiLine:!0,customTitles:{text:a}}),(0,o.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.color,lineWidth:e.linewidth},t,"Line",{line:c})]}}}},56641:(e,t,i)=>{i.r(t),i.d(t,{PitchBaseDefinitionsViewModel:()=>m});var n=i(50151),r=i(11542),o=i(45126),l=i(53749),s=i(18009),a=i(32097),c=i(91682),p=i(95166);const d=new o.TranslatedString("change {title} extend lines",r.t(null,void 0,i(76295))),u=new o.TranslatedString("change {title} level {index} line visibility",r.t(null,void 0,i(51403))),h=new o.TranslatedString("change {title} level {index} line color",r.t(null,void 0,i(664))),y=new o.TranslatedString("change {title} level {index} line width",r.t(null,void 0,i(97870))),f=new o.TranslatedString("change {title} level {index} line style",r.t(null,void 0,i(64707))),v=new o.TranslatedString("change {title} level {index} line coeff",r.t(null,void 0,i(27154))),g=new o.TranslatedString("change {title} all lines color",r.t(null,void 0,i(59577))),T=new o.TranslatedString("change {title} background visibility",r.t(null,void 0,i(30839))),D=new o.TranslatedString("change {title} background transparency",r.t(null,void 0,i(13783))),_=r.t(null,{context:"study"},i(29291)),w=r.t(null,void 0,i(28683)),P=r.t(null,void 0,i(79468)),S=r.t(null,void 0,i(819));class m extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties(),i=t.childs(),r=this._source.name(),s=(0,c.removeSpaces)(r),m=new o.TranslatedString(r,this._source.translatedType());t.hasChild("extendLines")&&e.push((0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,i.extendLines,d.format({title:m}))},{id:`${s}ExtendLines`,title:S}));const b=i.median.childs(),L=(0,l.createLineStyleDefinition)(this._propertyApplier,{lineColor:b.color,lineStyle:b.linestyle,lineWidth:b.linewidth},m,"Median",{line:_});e.push(L);const C=this._source.levelsCount();for(let t=0;t<=C;t++){const n=i[`level${t}`].childs(),r=(0,a.createLeveledLinePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,n.visible,u.format({title:m,index:t+1})),color:(0,a.getColorDefinitionProperty)(this._propertyApplier,n.color,null,h.format({title:m,index:t+1})),width:(0,a.convertToDefinitionProperty)(this._propertyApplier,n.linewidth,y.format({title:m,index:t+1})),style:(0,a.convertToDefinitionProperty)(this._propertyApplier,n.linestyle,f.format({title:m,index:t+1})),level:(0,a.convertToDefinitionProperty)(this._propertyApplier,n.coeff,v.format({title:m,index:t+1}))},{id:`${s}LineLevel${t+1}`});e.push(r)}const x=(0,a.createColorPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(this._propertyApplier,new p.CollectibleColorPropertyUndoWrapper((0,
|
|
n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,null),null,g.format({title:m}),!0)},{id:`${s}AllLineColor`,title:w});e.push(x);const A=(0,a.createTransparencyPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,i.fillBackground,T.format({title:m})),transparency:(0,a.convertToDefinitionProperty)(this._propertyApplier,i.transparency,D.format({title:m}))},{id:`${s}Background`,title:P});return e.push(A),{definitions:e}}}},10258:(e,t,i)=>{i.r(t),i.d(t,{PitchForkDefinitionsViewModel:()=>u});var n=i(11542),r=i(45126),o=i(32097),l=i(56641),s=i(96333),a=i(64147);const c=new r.TranslatedString("change {title} style",n.t(null,void 0,i(98463))),p=n.t(null,void 0,i(92516)),d=[{value:s.LineToolPitchforkStyle.Original,title:n.t(null,void 0,i(46005))},{value:s.LineToolPitchforkStyle.Schiff2,title:n.t(null,void 0,i(69904))},{value:s.LineToolPitchforkStyle.Schiff,title:n.t(null,void 0,i(70382))},{value:s.LineToolPitchforkStyle.Inside,title:n.t(null,void 0,i(91612))}];class u extends l.PitchBaseDefinitionsViewModel{_stylePropertyDefinitions(){const e=super._stylePropertyDefinitions(),t=this._source.properties().childs(),i=this._source.name(),n=new r.TranslatedString(i,this._source.translatedType()),l=(0,o.createOptionsPropertyDefinition)({option:(0,o.convertToDefinitionProperty)(this._propertyApplier,t.style,c.format({title:n}))},{id:`${i}PitchStyle`,title:p,options:new a.WatchedValue(d)});return e.definitions.push(l),e}}},16963:(e,t,i)=>{i.r(t),i.d(t,{PolylinesDefinitionsViewModel:()=>h});var n=i(11542),r=i(45126),o=i(53749),l=i(18009),s=i(32097),a=i(91682);const c=new r.TranslatedString("change {title} background visibility",n.t(null,void 0,i(30839))),p=new r.TranslatedString("change {title} background color",n.t(null,void 0,i(49765))),d=n.t(null,void 0,i(38408)),u=n.t(null,void 0,i(79468));class h extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType());return{definitions:[(0,o.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.linecolor,lineWidth:e.linewidth},i,"Line",{line:d}),(0,s.createColorPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.fillBackground,c.format({title:i})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.backgroundColor,e.transparency,p.format({title:i}))},{id:(0,a.removeSpaces)(`${t}BackgroundColor`),title:u})]}}_coordinatesPropertyDefinitions(){return null}}},26486:(e,t,i)=>{i.r(t),i.d(t,{PredictionDefinitionsViewModel:()=>A});var n=i(11542),r=i(45126),o=i(53749),l=i(18009),s=i(32097),a=i(91682)
|
|
;const c=new r.TranslatedString("change {title} source text color",n.t(null,void 0,i(45833))),p=new r.TranslatedString("change {title} source background color",n.t(null,void 0,i(63047))),d=new r.TranslatedString("change {title} source border color",n.t(null,void 0,i(93889))),u=new r.TranslatedString("change {title} target text color",n.t(null,void 0,i(32230))),h=new r.TranslatedString("change {title} target background color",n.t(null,void 0,i(25987))),y=new r.TranslatedString("change {title} target border color",n.t(null,void 0,i(24138))),f=new r.TranslatedString("change {title} success text color",n.t(null,void 0,i(71715))),v=new r.TranslatedString("change {title} success background color",n.t(null,void 0,i(80428))),g=new r.TranslatedString("change {title} failure text color",n.t(null,void 0,i(58406))),T=new r.TranslatedString("change {title} failure background color",n.t(null,void 0,i(91321))),D=n.t(null,void 0,i(88479)),_=n.t(null,void 0,i(14279)),w=n.t(null,void 0,i(64598)),P=n.t(null,void 0,i(59264)),S=n.t(null,void 0,i(95631)),m=n.t(null,void 0,i(79622)),b=n.t(null,void 0,i(23971)),L=n.t(null,void 0,i(90431)),C=n.t(null,void 0,i(71525)),x=n.t(null,void 0,i(28357));class A extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=(0,a.removeSpaces)(t),n=new r.TranslatedString(t,this._source.translatedType());return{definitions:[(0,o.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.linecolor,lineWidth:e.linewidth},n,"Line"),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.sourceTextColor,null,c.format({title:n}))},{id:`${i}SourceTextColor`,title:D}),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.sourceBackColor,e.transparency,p.format({title:n}))},{id:`${i}SourceBackgroundColor`,title:_}),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.sourceStrokeColor,null,d.format({title:n}))},{id:`${i}SourceBorderColor`,title:w}),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.targetTextColor,null,u.format({title:n}))},{id:`${i}TargetTextColor`,title:P}),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.targetBackColor,null,h.format({title:n}))},{id:`${i}TargetBackgroundColor`,title:S}),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.targetStrokeColor,null,y.format({title:n}))},{id:`${i}TargetBorderColor`,title:m}),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.successTextColor,null,f.format({title:n}))},{id:`${i}SuccessTextColor`,title:b}),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.successBackground,null,v.format({title:n}))},{id:`${i}SuccessBackgroundColor`,title:L}),(0,s.createColorPropertyDefinition)({color:(0,
|
|
s.getColorDefinitionProperty)(this._propertyApplier,e.failureTextColor,null,g.format({title:n}))},{id:`${i}FailureTextColor`,title:C}),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.failureBackground,null,T.format({title:n}))},{id:`${i}FailureBackgroundColor`,title:x})]}}}},89785:(e,t,i)=>{i.r(t),i.d(t,{PriceLabelDefinitionsViewModel:()=>a});var n=i(11542),r=i(45126),o=i(91335),l=i(18009);const s=n.t(null,void 0,i(70320));class a extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,o.createTextStyleDefinition)(this._propertyApplier,{textColor:e.color,fontSize:e.fontsize,backgroundColor:e.backgroundColor,backgroundTransparency:e.transparency,borderColor:e.borderColor},new r.TranslatedString(this._source.name(),this._source.translatedType()),{customTitles:{text:s}})]}}}},48306:(e,t,i)=>{i.r(t),i.d(t,{ProjectionDefinitionsViewModel:()=>h});var n=i(11542),r=i(45126),o=i(53749),l=i(18009),s=i(32097),a=i(91682);const c=new r.TranslatedString("change {title} background color 1",n.t(null,void 0,i(2788))),p=new r.TranslatedString("change {title} background color 2",n.t(null,void 0,i(47108))),d=n.t(null,void 0,i(38408)),u=n.t(null,void 0,i(79468));class h extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType());return{definitions:[(0,s.createTwoColorsPropertyDefinition)({color1:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.color1,e.transparency,c.format({title:i})),color2:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.color2,e.transparency,p.format({title:i}))},{id:(0,a.removeSpaces)(`${t}Background2Color`),title:u}),(0,o.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.trendline.childs().color,lineWidth:e.linewidth},i,"Line",{line:d})]}}}},15041:(e,t,i)=>{i.r(t),i.d(t,{RectangleDefinitionsViewModel:()=>T});var n=i(11542),r=i(45126),o=i(91682),l=i(30699),s=i(32097),a=i(53749),c=i(90490),p=i(91335);const d=new r.TranslatedString("change {title} extending left",n.t(null,void 0,i(58052))),u=new r.TranslatedString("change {title} extending right",n.t(null,void 0,i(74867))),h=n.t(null,void 0,i(70320)),y=n.t(null,void 0,i(25112)),f=n.t(null,void 0,i(68461)),v=n.t(null,void 0,i(68286)),g=[{value:l.VerticalAlign.Bottom,title:n.t(null,void 0,i(97118))},{value:l.VerticalAlign.Middle,title:n.t(null,void 0,i(91612))},{value:l.VerticalAlign.Top,title:n.t(null,void 0,i(27567))}];class T extends c.GeneralFiguresDefinitionsViewModelBase{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType()),n=super._stylePropertyDefinitions(),l=e.middleLine.childs(),c=(0,a.createLineStyleDefinition)(this._propertyApplier,{showLine:l.showLine,lineColor:l.lineColor,lineWidth:l.lineWidth,lineStyle:l.lineStyle},i,t,{line:v
|
|
}),p=n.definitions.findIndex((e=>e.id===(0,o.removeSpaces)(`${t}BackgroundColor`)));p<0?n.definitions.push(c):n.definitions.splice(p,0,c);const h=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.extendRight,u.format({title:i}))},{id:`${t}ExtendRight`,title:f});n.definitions.push(h);const g=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.extendLeft,d.format({title:i}))},{id:`${t}ExtendLeft`,title:y});return n.definitions.push(g),n}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,p.createTextStyleDefinition)(this._propertyApplier,{textColor:e.textColor,text:e.text,bold:e.bold,italic:e.italic,fontSize:e.fontSize,horzLabelsAlign:e.horzLabelsAlign,vertLabelsAlign:e.vertLabelsAlign,showText:e.showLabel},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,alignmentVerticalItems:g,customTitles:{text:h}})]}}}},2243:(e,t,i)=>{i.r(t),i.d(t,{RiskRewardDefinitionsViewModel:()=>F});var n=i(91682),r=i(11542),o=i(45126),l=i(53749),s=i(91335),a=i(18009),c=i(32097),p=i(76386),d=i(64147);const u=new o.TranslatedString("change {title} stop color",r.t(null,void 0,i(26598))),h=new o.TranslatedString("change {title} target color",r.t(null,void 0,i(10504))),y=new o.TranslatedString("change {title} price labels visibility",r.t(null,void 0,i(343))),f=new o.TranslatedString("change {title} compact stats mode",r.t(null,void 0,i(49904))),v=new o.TranslatedString("change {title} always show stats",r.t(null,void 0,i(80390))),g=new o.TranslatedString("change {title} account size",r.t(null,void 0,i(99232))),T=(new o.TranslatedString("change {title} currency",r.t(null,void 0,i(91600))),new o.TranslatedString("change {title} lot size",r.t(null,void 0,i(54087)))),D=new o.TranslatedString("change {title} risk",r.t(null,void 0,i(79875))),_=new o.TranslatedString("change {title} risk display mode",r.t(null,void 0,i(60308))),w=new o.TranslatedString("change {title} entry price",r.t(null,void 0,i(91534))),P=new o.TranslatedString("change {title} profit level",r.t(null,void 0,i(64330))),S=new o.TranslatedString("change {title} profit price",r.t(null,void 0,i(12073))),m=new o.TranslatedString("change {title} stop level",r.t(null,void 0,i(45438))),b=new o.TranslatedString("change {title} stop price",r.t(null,void 0,i(27503))),L=r.t(null,void 0,i(56982)),C=r.t(null,void 0,i(33310)),x=r.t(null,void 0,i(3560)),A=r.t(null,void 0,i(70320)),k=r.t(null,void 0,i(89735)),V=r.t(null,void 0,i(24821)),$=r.t(null,void 0,i(83840)),M=r.t(null,void 0,i(6002)),W=r.t(null,void 0,i(67852)),B=r.t(null,void 0,i(23814)),R=r.t(null,void 0,i(97668)),z=r.t(null,void 0,i(74045)),I=r.t(null,void 0,i(63886)),N=r.t(null,void 0,i(93857)),E=r.t(null,void 0,i(42747)),U=r.t(null,void 0,i(75106)),G=r.t(null,void 0,i(87145));function O(e){return[{value:p.RiskDisplayMode.Percentage,title:U},{value:p.RiskDisplayMode.Money,title:e||G}]}class F extends a.LineDataSourceDefinitionsViewModel{
|
|
constructor(e,t){super(e,t);const i=this._source.properties().childs(),n=i.riskDisplayMode.value();this._riskMaxWV=new d.WatchedValue(this._getRiskMax(n)),this._riskStepWV=new d.WatchedValue(this._getRiskStep(n)),this._riskPrecisionWV=new d.WatchedValue(this._getRiskPrecision(n)),this._riskUnitWV=new d.WatchedValue(this._getRiskUnit()),this._riskUnitOptionsWV=new d.WatchedValue(this._getRiskUnitOptions()),this._lotSizeStepWV=new d.WatchedValue(this._getLotSizeStep()),this._createPropertyRages(),i.riskDisplayMode.subscribe(this,(e=>this._onRiskDisplayChanged(e))),i.accountSize.subscribe(this,(()=>this._onAccountSizeChanged())),i.lotSize.subscribe(this,(()=>this._onLotSizeChanged())),this._undoModel.model().mainSeries().dataEvents().symbolResolved().subscribe(this,this._onSymbolInfoChanged)}destroy(){super.destroy();const e=this._source.properties().childs();e.riskDisplayMode.unsubscribeAll(this),e.accountSize.unsubscribeAll(this),e.lotSize.unsubscribeAll(this),this._undoModel.model().mainSeries().dataEvents().symbolResolved().unsubscribeAll(this)}_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=(0,n.removeSpaces)(t),r=new o.TranslatedString(t,this._source.translatedType());return{definitions:[(0,l.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.linecolor,lineWidth:e.linewidth},r,"Line",{line:L}),(0,c.createColorPropertyDefinition)({color:(0,c.getColorDefinitionProperty)(this._propertyApplier,e.stopBackground,e.stopBackgroundTransparency,u.format({title:r}))},{id:`${i}StopColor`,title:C}),(0,c.createColorPropertyDefinition)({color:(0,c.getColorDefinitionProperty)(this._propertyApplier,e.profitBackground,e.profitBackgroundTransparency,h.format({title:r}))},{id:`${i}ProfitColor`,title:x}),(0,s.createTextStyleDefinition)(this._propertyApplier,{textColor:e.textcolor,fontSize:e.fontsize},r,{isEditable:!0,isMultiLine:!0,customTitles:{text:A}}),(0,c.createCheckablePropertyDefinition)({checked:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.showPriceLabels,y.format({title:r}))},{id:`${i}ShowPriceLabels`,title:E}),(0,c.createCheckablePropertyDefinition)({checked:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.compact,f.format({title:r}))},{id:`${i}CompactMode`,title:k}),(0,c.createCheckablePropertyDefinition)({checked:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.alwaysShowStats,v.format({title:r}))},{id:`${i}AlwaysShowStats`,title:N})]}}_inputsPropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=(0,n.removeSpaces)(t),r=new o.TranslatedString(t,this._source.translatedType()),l=this._getYCoordinateStepWV();let s;s=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.accountSize,g.format({title:r}))},{id:`${i}AccountSize`,title:R,type:1,min:new d.WatchedValue(1e-9),max:new d.WatchedValue(1e9),step:new d.WatchedValue(1),unit:this._riskUnitWV});const a=(0,c.createNumberPropertyDefinition)({value:(0,
|
|
c.convertToDefinitionProperty)(this._propertyApplier,e.lotSize,T.format({title:r}))},{id:`${i}LotSize`,title:z,type:1,min:new d.WatchedValue(1e-9),max:new d.WatchedValue(1e8),step:this._lotSizeStepWV}),p=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.risk,D.format({title:r}),[e=>parseFloat(e)]),unitOptionsValue:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.riskDisplayMode,_.format({title:r}))},{id:`${i}Risk`,title:I,type:1,min:new d.WatchedValue(1e-9),max:this._riskMaxWV,precision:this._riskPrecisionWV,step:this._riskStepWV,unitOptions:this._riskUnitOptionsWV}),u=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.entryPrice,w.format({title:r}))},{id:`${i}EntryPrice`,title:M,type:1,step:l}),h=(0,c.createPropertyDefinitionsGeneralGroup)([s,a,p,u],`${i}AccountRisk`),y=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.profitLevel,P.format({title:r}))},{id:`${i}ProfitLevelTicks`,title:V,type:0,min:new d.WatchedValue(0),max:new d.WatchedValue(1e9),step:new d.WatchedValue(1)}),f=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.targetPrice,S.format({title:r}),[e=>e,e=>this._source.prepareProfitPrice(e)])},{id:`${i}ProfitLevelPrice`,title:$,type:1,step:l}),v=(0,c.createPropertyDefinitionsGeneralGroup)([y,f],`${i}ProfitLevel`,W),L=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.stopLevel,m.format({title:r}))},{id:`${i}StopLevelTicks`,title:V,type:0,min:new d.WatchedValue(0),max:new d.WatchedValue(1e9),step:new d.WatchedValue(1)}),C=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.stopPrice,b.format({title:r}),[e=>e,e=>this._source.prepareStopPrice(e)])},{id:`${i}StopLevelPrice`,title:$,type:1,step:l});return{definitions:[h,v,(0,c.createPropertyDefinitionsGeneralGroup)([L,C],`${i}StopLevel`,B)]}}_coordinatesPropertyDefinitions(){return null}_onRiskDisplayChanged(e){const t=e.value();this._riskMaxWV.setValue(this._getRiskMax(t)),this._riskStepWV.setValue(this._getRiskStep(t)),this._riskPrecisionWV.setValue(this._getRiskPrecision(t))}_onAccountSizeChanged(){this._riskMaxWV.setValue(this._getRiskMax(this._source.properties().childs().riskDisplayMode.value()))}_onLotSizeChanged(){this._lotSizeStepWV.setValue(this._getLotSizeStep())}_onSymbolInfoChanged(){this._riskUnitWV.setValue(this._getRiskUnit()),this._riskUnitOptionsWV.setValue(this._getRiskUnitOptions())}_getRiskMax(e){return e===p.RiskDisplayMode.Percentage?100:this._source.properties().childs().accountSize.value()}_getRiskStep(e){return e===p.RiskDisplayMode.Percentage?.01:1}_getRiskPrecision(e){if(e===p.RiskDisplayMode.Percentage)return 2}_getLotSizeStep(){const e=this._source.properties().childs().lotSize.value();if(e%1==0)return 1;const t=e.toString(),i=t.split(".");if(2===i.length)return Number(`1e-${i[1].length}`);{const e=/\d+e-(\d+)/.exec(t)
|
|
;if(null!==e)return Number(`1e-${e[1]}`)}return this._lotSizeStepWV.value()}_getRiskUnit(){const e=this._undoModel.model().mainSeries().symbolInfo();return null!==e&&e.currency_code||""}_getRiskUnitOptions(){const e=this._undoModel.model().mainSeries().symbolInfo();return null!==e?O(e.currency_code):O()}}},91051:(e,t,i)=>{i.r(t),i.d(t,{SignpostDefinitionsViewModel:()=>g});var n=i(11542),r=i(45126),o=i(91682),l=i(64147),s=i(32097),a=i(91335),c=i(73174),p=i(18009);const d=new r.TranslatedString("change vertical position Y coordinate",n.t(null,void 0,i(69183))),u=new r.TranslatedString("change {title} emoji visibility",n.t(null,void 0,i(53274))),h=new r.TranslatedString("change {title} image background color",n.t(null,void 0,i(86993))),y=new r.TranslatedString("change {title} emoji",n.t(null,void 0,i(73247))),f=n.t(null,{context:"linetool point"},i(87476)),v=n.t(null,void 0,i(71310));class g extends p.LineDataSourceDefinitionsViewModel{_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,a.createTextStyleDefinition)(this._propertyApplier,{text:e.text,fontSize:e.fontSize,bold:e.bold,italic:e.italic},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0})]}}_coordinatesPropertyDefinitions(){const e=this._source.pointsProperty().childs().points[0].childs(),t=this._source.name(),i=(0,c.getCoordinateXMetaInfo)(this._propertyApplier,e),n={property:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.price,d),info:{typeY:1,stepY:new l.WatchedValue(1),minY:new l.WatchedValue(-100),maxY:new l.WatchedValue(100)}};return{definitions:[(0,s.createCoordinatesPropertyDefinition)({x:i.property,y:n.property},{id:(0,o.removeSpaces)(`${t}Coordinates${f}`),title:f,...i.info,...n.info})]}}_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType());return{definitions:[(0,s.createEmojiPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.showImage,u.format({title:i})),backgroundColor:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.plateColor,null,h.format({title:i})),emoji:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.emoji,y.format({title:i}))},{id:(0,o.removeSpaces)(`${t}Emoji${v}`),title:v})]}}}},27975:(e,t,i)=>{i.r(t),i.d(t,{TextDefinitionsViewModel:()=>l});var n=i(91335),r=i(18009),o=i(45126);class l extends r.LineDataSourceDefinitionsViewModel{_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,n.createTextStyleDefinition)(this._propertyApplier,{textColor:e.color,fontSize:e.fontsize,bold:e.bold,italic:e.italic,text:e.text,backgroundVisible:e.fillBackground,backgroundColor:e.backgroundColor,backgroundTransparency:e.backgroundTransparency,borderVisible:e.drawBorder,borderColor:e.borderColor,wrap:e.wordWrap},new o.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0})]}}}},84437:(e,t,i)=>{i.r(t),i.d(t,{
|
|
TimeCyclesPatternDefinitionsViewModel:()=>h});var n=i(11542),r=i(45126),o=i(53749),l=i(18009),s=i(32097),a=i(91682);const c=new r.TranslatedString("change {title} background visibility",n.t(null,void 0,i(30839))),p=new r.TranslatedString("change {title} background color",n.t(null,void 0,i(49765))),d=n.t(null,void 0,i(3554)),u=n.t(null,void 0,i(79468));class h extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new r.TranslatedString(t,this._source.translatedType());return{definitions:[(0,o.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.linecolor,lineWidth:e.linewidth,lineStyle:e.linestyle},i,"Line",{line:d}),(0,s.createColorPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.fillBackground,c.format({title:i})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.backgroundColor,e.transparency,p.format({title:i}))},{id:(0,a.removeSpaces)(`${t}BackgroundColor`),title:u})]}}}},30574:(e,t,i)=>{i.r(t),i.d(t,{TrendAngleDefinitionsViewModel:()=>y});var n=i(11542),r=i(45126),o=i(32097),l=i(18009),s=i(64147),a=i(73174),c=i(34412);const p=new r.TranslatedString("change angle",n.t(null,void 0,i(3894))),d=n.t(null,void 0,i(390)),u=n.t(null,void 0,i(70320)),h=n.t(null,{context:"linetool point"},i(6737));class y extends l.LineDataSourceDefinitionsViewModel{_coordinatesPropertyDefinitions(){const e=this._source.points(),t=[],i=this._source.pointsProperty().childs().points[0].childs(),n=this._getYCoordinateStepWV();t.push((0,a.getCoordinatesPropertiesDefinitions)(this._propertyApplier,i,e[0],n,h,this._source.name()));const r=(0,o.createNumberPropertyDefinition)({value:(0,o.convertToDefinitionProperty)(this._propertyApplier,this._source.properties().childs().angle,p)},{id:"TrendLineAngleCoordinate",title:d,min:new s.WatchedValue(-360),max:new s.WatchedValue(360),step:new s.WatchedValue(1)});return t.push(r),{definitions:t}}_stylePropertyDefinitions(){const e=this._source.properties().childs();return(0,c.getTrendLineToolsStylePropertiesDefinitions)(this._propertyApplier,e,new r.TranslatedString(this._source.name(),this._source.translatedType()),{text:u})}}},46662:(e,t,i)=>{i.r(t),i.d(t,{TrendBasedFibTimeDefinitionsViewModel:()=>C});var n=i(50151),r=i(11542),o=i(45126),l=i(53749),s=i(32097),a=i(18009),c=i(23720),p=i(64147),d=i(91682),u=i(95166)
|
|
;const h=new o.TranslatedString("change {title} level {index} line visibility",r.t(null,void 0,i(51403))),y=new o.TranslatedString("change {title} level {index} line color",r.t(null,void 0,i(664))),f=new o.TranslatedString("change {title} level {index} line width",r.t(null,void 0,i(97870))),v=new o.TranslatedString("change {title} level {index} line style",r.t(null,void 0,i(64707))),g=new o.TranslatedString("change {title} level {index} line coeff",r.t(null,void 0,i(27154))),T=new o.TranslatedString("change {title} all lines color",r.t(null,void 0,i(59577))),D=new o.TranslatedString("change {title} background visibility",r.t(null,void 0,i(30839))),_=new o.TranslatedString("change {title} background transparency",r.t(null,void 0,i(13783))),w=new o.TranslatedString("change {title} labels visibility",r.t(null,void 0,i(93340))),P=new o.TranslatedString("change {title} labels alignment",r.t(null,void 0,i(55612))),S=r.t(null,void 0,i(51574)),m=r.t(null,void 0,i(28683)),b=r.t(null,void 0,i(79468)),L=r.t(null,void 0,i(5119));class C extends a.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties(),i=t.childs(),r=this._source.name(),a=(0,d.removeSpaces)(r),C=new o.TranslatedString(r,this._source.translatedType()),x=i.trendline.childs(),A=(0,l.createLineStyleDefinition)(this._propertyApplier,{showLine:x.visible,lineColor:x.color,lineStyle:x.linestyle,lineWidth:x.linewidth},C,"TrendLine",{line:S});e.push(A);const k=this._source.levelsCount();for(let i=1;i<=k;i++){const r=(0,n.ensureDefined)(t.child(`level${i}`)).childs(),o=(0,s.createLeveledLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,r.visible,h.format({title:C,index:i})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,r.color,null,y.format({title:C,index:i})),width:(0,s.convertToDefinitionProperty)(this._propertyApplier,r.linewidth,f.format({title:C,index:i})),style:(0,s.convertToDefinitionProperty)(this._propertyApplier,r.linestyle,v.format({title:C,index:i})),level:(0,s.convertToDefinitionProperty)(this._propertyApplier,r.coeff,g.format({title:C,index:i}))},{id:`${a}LineLevel${i}`});e.push(o)}const V=(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,new u.CollectibleColorPropertyUndoWrapper((0,n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,null),null,T.format({title:C}),!0)},{id:`${a}AllLineColor`,title:m});e.push(V);const $=(0,s.createTransparencyPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.fillBackground,D.format({title:C})),transparency:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.transparency,_.format({title:C}))},{id:`${a}Background`,title:b});e.push($);const M=(0,s.createTwoOptionsPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.showCoeffs,w.format({title:C})),option1:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.horzLabelsAlign,P.format({title:C})),option2:(0,
|
|
s.convertToDefinitionProperty)(this._propertyApplier,i.vertLabelsAlign,P.format({title:C}))},{id:`${a}Labels`,title:L,optionsItems1:new p.WatchedValue(c.availableAlignmentHorizontalItems),optionsItems2:new p.WatchedValue(c.availableAlignmentVerticalItems)});return e.push(M),{definitions:e}}}},26360:(e,t,i)=>{i.r(t),i.d(t,{TrendLineDefinitionsViewModel:()=>c});var n=i(11542),r=i(45126),o=i(18009),l=i(34412),s=i(91335);const a=n.t(null,void 0,i(70320));class c extends o.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return(0,l.getTrendLineToolsStylePropertiesDefinitions)(this._propertyApplier,e,new r.TranslatedString(this._source.name(),this._source.translatedType()))}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,s.createTextStyleDefinition)(this._propertyApplier,{...e,showText:e.showLabel,textColor:e.textcolor,fontSize:e.fontsize},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,customTitles:{text:a}})]}}}},34353:(e,t,i)=>{i.r(t),i.d(t,{VerticalLineDefinitionsViewModel:()=>h});var n=i(11542),r=i(45126),o=i(32097),l=i(73174),s=i(88924),a=i(91682),c=i(18009),p=i(91335);const d=n.t(null,void 0,i(70320)),u=n.t(null,{context:"linetool point"},i(26381));class h extends c.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return(0,s.getLinesStylesPropertiesDefinitions)(this._propertyApplier,e,new r.TranslatedString(this._source.name(),this._source.translatedType()))}_coordinatesPropertyDefinitions(){const e=this._source.pointsProperty().childs().points[0].childs(),t=(0,l.getCoordinateXMetaInfo)(this._propertyApplier,e);return{definitions:[(0,o.createCoordinatesPropertyDefinition)({x:t.property},{id:(0,a.removeSpaces)(`${this._source.name()}Point1`),title:u,...t.info})]}}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,p.createTextStyleDefinition)(this._propertyApplier,{...e,showText:e.showLabel,textColor:e.textcolor,fontSize:e.fontsize,textOrientation:e.textOrientation},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,customTitles:{text:d}})]}}}},27873:(e,t,i)=>{i.r(t),i.d(t,{AnchoredVWAPDefinitionsViewModel:()=>G});var n=i(11542),r=i(45126),o=(i(21251),i(32097)),l=i(31507),s=i(91682),a=i(1183)
|
|
;const c=new r.TranslatedString("change {title} VWAP line color",n.t(null,void 0,i(83030))),p=new r.TranslatedString("change {title} VWAP line width",n.t(null,void 0,i(47479))),d=new r.TranslatedString("change {title} lower band #1 line visibility",n.t(null,void 0,i(87716))),u=new r.TranslatedString("change {title} lower band #1 line color",n.t(null,void 0,i(67450))),h=new r.TranslatedString("change {title} lower band #1 line width",n.t(null,void 0,i(43181))),y=new r.TranslatedString("change {title} upper band #1 line visibility",n.t(null,void 0,i(44828))),f=new r.TranslatedString("change {title} upper band #1 line color",n.t(null,void 0,i(27326))),v=new r.TranslatedString("change {title} upper band #1 line width",n.t(null,void 0,i(1353))),g=new r.TranslatedString("change {title} lower band #2 line visibility",n.t(null,void 0,i(94308))),T=new r.TranslatedString("change {title} lower band #2 line color",n.t(null,void 0,i(35092))),D=new r.TranslatedString("change {title} lower band #2 line width",n.t(null,void 0,i(8873))),_=new r.TranslatedString("change {title} upper band #2 line visibility",n.t(null,void 0,i(93075))),w=new r.TranslatedString("change {title} upper band #2 line color",n.t(null,void 0,i(12138))),P=new r.TranslatedString("change {title} upper band #2 line width",n.t(null,void 0,i(7943))),S=new r.TranslatedString("change {title} lower band #3 line visibility",n.t(null,void 0,i(32442))),m=new r.TranslatedString("change {title} lower band #3 line color",n.t(null,void 0,i(68180))),b=new r.TranslatedString("change {title} lower band #3 line width",n.t(null,void 0,i(3476))),L=new r.TranslatedString("change {title} upper band #3 line visibility",n.t(null,void 0,i(15698))),C=new r.TranslatedString("change {title} upper band #3 line color",n.t(null,void 0,i(51780))),x=new r.TranslatedString("change {title} upper band #3 line width",n.t(null,void 0,i(27414))),A=new r.TranslatedString("change {title} background visibility",n.t(null,void 0,i(30839))),k=new r.TranslatedString("change {title} background color",n.t(null,void 0,i(49765))),V=new r.TranslatedString("change {title} price visibility",n.t(null,void 0,i(727))),$=n.t(null,void 0,i(5682)),M=n.t(null,void 0,i(71571)),W=n.t(null,void 0,i(21315)),B=n.t(null,void 0,i(91889)),R=n.t(null,void 0,i(65448)),z=n.t(null,void 0,i(83301)),I=n.t(null,void 0,i(64848)),N=n.t(null,void 0,i(58375)),E=n.t(null,void 0,i(97273));function U(e,t,i,n,r,l,s,c,p){return(0,o.createLinePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(e,new a.StudyPlotVisibleProperty(t.display),i.format({title:p})),color:(0,o.getColorDefinitionProperty)(e,t.color,t.transparency??null,n.format({title:p})),width:(0,o.convertToDefinitionProperty)(e,t.linewidth,r.format({title:p}))},{id:`${c}${s}`,title:l})}class G extends l.StudyLineDataSourceDefinitionsViewModel{constructor(e,t){super(e,t)}_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=(0,
|
|
s.removeSpaces)(t),n=new r.TranslatedString(t,this._source.translatedType()),l=e.styles.childs().VWAP.childs(),a=[(0,o.createLinePropertyDefinition)({color:(0,o.getColorDefinitionProperty)(this._propertyApplier,l.color,l.transparency??null,c.format({title:n})),width:(0,o.convertToDefinitionProperty)(this._propertyApplier,l.linewidth,p.format({title:n}))},{id:`${i}VWAPLine`,title:$})],G=this._source.metaInfo();if(G.styles?.UpperBand&&G.styles?.LowerBand){const t=e.styles.childs().LowerBand.childs(),r=U(this._propertyApplier,t,d,u,h,M,"LowerBandLine",i,n),o=e.styles.childs().UpperBand.childs(),l=U(this._propertyApplier,o,y,f,v,W,"UpperBandLine",i,n);a.push(r,l)}if(G?.area){const t=e.areaBackground.childs(),r=(0,o.createLinePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(this._propertyApplier,t.fillBackground,A.format({title:n})),color:(0,o.getColorDefinitionProperty)(this._propertyApplier,t.backgroundColor,t.transparency,k.format({title:n}))},{id:`${i}Background`,title:N});a.push(r)}if(G.styles?.UpperBand_2&&G.styles?.LowerBand_2&&G.styles?.UpperBand_3&&G.styles?.LowerBand_3){const t=e.styles.childs().LowerBand_2.childs(),r=U(this._propertyApplier,t,g,T,D,B,"LowerBand2Line",i,n),o=e.styles.childs().UpperBand_2.childs(),l=U(this._propertyApplier,o,_,w,P,R,"UpperBand2Line",i,n),s=e.styles.childs().LowerBand_3.childs(),c=U(this._propertyApplier,s,S,m,b,z,"LowerBand3Line",i,n),p=e.styles.childs().UpperBand_3.childs(),d=U(this._propertyApplier,p,L,C,x,I,"UpperBand3Line",i,n);a.push(r,l,c,d)}const O=(0,o.createCheckablePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(this._propertyApplier,e.axisLabelVisible,V.format({title:n}))},{id:`${i}ShowPrice`,title:E});return a.push(O),{definitions:a}}_coordinatesPropertyDefinitions(){return null}}},31507:(e,t,i)=>{i.r(t),i.d(t,{StudyLineDataSourceDefinitionsViewModel:()=>p});var n=i(11542),r=(i(21251),i(52033)),o=i(32097),l=i(18009),s=i(28388),a=i(73174),c=i(91682);class p extends l.LineDataSourceDefinitionsViewModel{constructor(e,t){super(e,t)}_inputsPropertyDefinitions(){return{definitions:[(0,o.createStudyInputsPropertyDefinition)({},{id:"StudyInputs",inputs:new s.MetaInfoHelper(this._source.metaInfo()).getUserEditableInputs(),inputsTabProperty:this._source.properties(),model:this._undoModel,studyMetaInfo:this._source.metaInfo(),source:{isInputsStudy:!0,symbolsResolved:()=>new r.Delegate,resolvedSymbolInfoBySymbol:e=>null}})]}}_coordinatesPropertyDefinitions(){const e=this._source.points(),t=this._source.pointsProperty().childs().points,r=[];return e.forEach(((e,l)=>{const s=t[l].childs();if(!s)return;const p=(0,a.getCoordinateXMetaInfo)(this._propertyApplier,s);r.push((0,o.createCoordinatesPropertyDefinition)({x:p.property},{id:(0,c.removeSpaces)(`${this._source.name()}Point${l}`),title:n.t(null,{context:"linetool point"},i(13616)).format({count:(l+1).toString()}),...p.info}))})),{definitions:r}}}},18181:(e,t,i)=>{i.r(t),i.d(t,{LineToolImage:()=>V,OriginPoints:()=>L,buildAbsoluteUserImageUrl:()=>A})
|
|
;var n=i(50151),r=i(86441),o=i(9343),l=i(32679),s=i(12988),a=i(29875),c=i(44672),p=i(56840),d=i(51768),u=i(22980),h=i(11542),y=i(49483),f=i(68335),v=i(56570);const g=h.t(null,void 0,i(15402));var T=i(77788),D=i(928);async function _(e,t){return async function(e){const[t]=await Promise.all([Promise.all([i.e(5862),i.e(3703),i.e(4524),i.e(7939),i.e(9258),i.e(5387),i.e(6445),i.e(9325),i.e(8222),i.e(2440),i.e(8544),i.e(5058),i.e(2227),i.e(3746),i.e(9418),i.e(7038)]).then(i.bind(i,14653))]);return t.renderImageDialog(e)}({onConfirm:e,onClose:t})}let w=null;function P(e){if("LineToolImage"!==e)return w?.then((e=>e())),void(w=null);(0,u.runOrSigninWithFeature)((()=>{D.tool.setValue("LineToolImage"),w=_(S,(()=>{w?.then((e=>e())),w=null,"LineToolImage"===D.tool.value()&&(0,D.resetToCursor)(!0)})),(0,d.trackEvent)("Image","Open image dialog")}),{feature:"drawings",source:"Change drawing tool state"})}function S(e){const t=(0,T.chartWidgetCollectionService)();if(null===t)return;const r=!Boolean(p.getBool("hint.pasteImage")),o=t.activeChartWidget.value();var l,s;o.model().pasteImageAsLineTool(e.url,e.blobUrl,(0,n.ensureNotNull)(o.model().model().paneForSource(o.model().mainSeries())),e.transparency),r&&(l=t.getContainer(),s="hint.pasteImage",v.enabled("popup_hints")&&!y.CheckMobile.any()&&Promise.all([i.e(1737),i.e(2227),i.e(6166)]).then(i.bind(i,5015)).then((e=>{const t=new e.ChartEventHintRenderer(l),i=g.format({shortcut:(0,f.humanReadableHash)(f.Modifiers.Mod+86)});let n=null;t.show(i,(()=>{null!==n&&(clearTimeout(n),n=null,p.setValue(s,!0,{forceFlush:!0}))})),n=setTimeout((()=>{n=null,t.hide()}),5e3)})))}var m=i(64147);const b=(0,o.getLogger)("Chart.LineToolImage");var L;function C(e){return e.toLowerCase().startsWith("blob:")}function x(e){return e.toLowerCase().startsWith("data:")}!function(e){e[e.LeftTopAnchor=0]="LeftTopAnchor",e[e.RightTopAnchor=1]="RightTopAnchor",e[e.LeftBottomAnchor=2]="LeftBottomAnchor",e[e.RightBottomAnchor=3]="RightBottomAnchor",e[e.Center=4]="Center"}(L||(L={}));window.AWS_BBS3_DOMAIN;function A(e){return C(e)||x(e)?e:null}function k(e){return x(e)?e:new URL(e).pathname}class V extends a.LineDataSource{constructor(e,t,n,r){super(e,t||V.createProperties(e.backgroundTheme().spawnOwnership()),n,r),this._hasEditableCoordinates=new m.WatchedValue(!1),this._image=null,this._originPoint=4;const o=this.properties().childs().url;this._absoluteUserImageUrl=new s.Property(A(this.properties().childs().url.value())??""),this._absoluteUserImageUrl.subscribe(this,(e=>{const t=e.value();if(C(t))return;const i=A(t);null!==i&&o.setValue(k(i))})),o.subscribe(this,(()=>{const e=A(o.value());null!==e&&this._absoluteUserImageUrl.setValue(e)})),this._loadImage(),Promise.all([i.e(2870),i.e(2211),i.e(1583)]).then(i.bind(i,26087)).then((({ImagePaneView:t})=>{this._setPaneViews([new t(this,e)])})),this.properties().childs().url.subscribe(this,(()=>{this._loadImage()}))}absoluteUserImageUrl(){return this._absoluteUserImageUrl}cssWidth(){return this.properties().childs().cssWidth.value()}cssHeight(){
|
|
return this.properties().childs().cssHeight.value()}angle(){return this.properties().childs().angle.value()}originPoint(){return this._originPoint}dOffsetX(){return this._dOffsetX||0}pointsCount(){return 1}name(){return"Image"}image(){return this._image}setBlobImageUrl(e){this._image}getChangePointForSync(e){return null}pointToScreenPoint({index:e,price:t},i=0){const o=this._model.timeScale(),l=(0,n.ensureNotNull)(this.priceScale()),s=(0,n.ensureNotNull)((0,n.ensureNotNull)(this.ownerSource()).firstValue()),a=o.indexToCoordinate(e)+i,c=l.priceToCoordinate(t,s);return new r.Point(a,c)}setPoint(e,t,i){if(null===this._image)return;const{width:r,height:o}=this._image,l=(0,n.ensureNotNull)(this.pointToScreenPoint(t)),s=(0,n.ensureNotNull)(this.pointToScreenPoint(this._points[0],this.dOffsetX())),a=Math.max(Math.abs(s.x-l.x)/r,Math.abs(s.y-l.y)/o),c=Math.round(r*a),p=Math.round(o*a),d=this.properties().childs();d.cssWidth.setValue(c),d.cssHeight.setValue(p),this.propertiesChanged()}startChanging(e,t){super.startChanging(e,t),this._changeOriginPoint(V._oppositePoints[e])}endChanging(e,t){return this._changeOriginPoint(4),super.endChanging(e,t)}getPoint(){return null}syncLineStyleState(){const e=super.syncLineStyleState();return!e.url&&this._blobUrl&&(e.blobUrl=this._blobUrl),e}restoreExternalState(e){const{blobUrl:t,...i}=e;t&&this.setBlobImageUrl(t),super.restoreExternalState(i)}isSavedInChart(){return super.isSavedInChart()&&""!==this.absoluteUserImageUrl().value()}static createProperties(e,t){const i=new l.DefaultProperty({defaultName:"linetoolimage",state:t,theme:e});return this._configureProperties(i),i}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(3401),i.e(3889),i.e(8009),i.e(6204),i.e(1963),i.e(8537)]).then(i.bind(i,65504))).ImageDefinitionsViewModel}static _configureProperties(e){super._configureProperties(e),e.hasChild("url")||e.addChild("url",new s.Property("")),e.addExcludedKey("url",1),e.addExcludedKey("cssWidth",1),e.addExcludedKey("cssHeight",1),e.addExcludedKey("angle",1)}_loadImage(){const e=this.properties(),t=(0,n.ensureDefined)(e.child("url")).value();t&&this._createImage(t)}_changeOriginPoint(e){const t=this.originPoint(),i=4===t?V._correctOriginDirections[e]:V._correctOriginDirections[V._oppositePoints[t]],o=this.properties().childs().cssWidth.value()/2,l=this.properties().childs().cssHeight.value()/2,[s]=this._points,a=(0,n.ensureNotNull)(this.pointToScreenPoint(s)),c=new r.Point(a.x+o*i[0],a.y+l*i[1]),p=(0,n.ensureNotNull)(this.screenPointToPoint(c));this._dOffsetX=4===t?c.x-(0,n.ensureNotNull)(this.pointToScreenPoint(p)).x:void 0,s.index=p.index,s.price=p.price,this._originPoint=e}_createImage(e){const t=C(e),i=A(e);if(null===i)return void b.logWarn(`Invalid image URL: ${e}`);if(i===this._image?.src)return;const r=document.createElement("img");r.crossOrigin="anonymous",r.src=i,r.addEventListener("load",(()=>{this._image=r;const e=this._model,o=this.properties().childs();if(!t){const e=k(i);o.url.setValue(e),this._blobUrl=void 0}
|
|
if(o.cssWidth.value()&&o.cssHeight.value())return void this._model.updateSource(this);const l=e.timeScale().width()/4,s=(0,n.ensureNotNull)(this.priceScale()).height()/4,a=r.naturalWidth,p=r.naturalHeight,d=Math.min(1,l/a),u=Math.min(1,s/p),h=Math.min(d,u),y=Math.round(h*a),f=Math.round(h*p);o.cssWidth.setValue(y),o.cssHeight.setValue(f),this.updateAllViews((0,c.sourceChangeEvent)(this.id())),this._model.updateSource(this)})),r.addEventListener("error",(()=>{this.model().removeSource(this)}))}}V._correctOriginDirections=[[-1,-1],[1,-1],[-1,1],[1,1],[0,0]],V._oppositePoints=[3,2,1,0,4],(0,D.runOnDrawingStateReady)((()=>{D.tool.subscribe(P)}))},76386:(e,t,i)=>{var n;i.d(t,{RiskDisplayMode:()=>n}),function(e){e.Percentage="percents",e.Money="money"}(n||(n={}))},1183:(e,t,i)=>{i.d(t,{StudyPlotVisibleProperty:()=>o});var n=i(34776),r=i(23073);class o extends r.PropertyBase{constructor(e){super(),this._displayProperty=e,this._displayProperty.subscribe(this,this._displayPropertyValueChanged)}destroy(){this._displayProperty.unsubscribe(this,this._displayPropertyValueChanged),this._listeners.destroy()}value(){return 0!==this._displayProperty.value()}setValue(e,t){this._displayProperty.setValue(e?15:0)}setValueSilently(e){this._displayProperty.setValueSilently(e?15:0)}storeStateIfUndefined(){return!1}weakReference(){return(0,n.weakReference)(this)}ownership(){return(0,n.ownership)(this)}_displayPropertyValueChanged(){this.fireChanged()}}}}]); |