42 lines
120 KiB
JavaScript
42 lines
120 KiB
JavaScript
"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[9328],{7973:(e,t,i)=>{i.d(t,{convertToInt:()=>r,floor:()=>o,limitedPrecision:()=>l});var n=i(95440);function o(e){return Math.floor(e)}function r(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}}},64226:(e,t,i)=>{i.d(t,{getLinesStylesPropertiesDefinitions:()=>f});var n=i(91599),o=i(72769),r=i(72674),l=i(73405),s=i(42897);const a=new o.TranslatedString("change {title} price label visibility",n.t(null,void 0,i(33246))),c=new o.TranslatedString("change {title} extension",n.t(null,void 0,i(81747))),d=new o.TranslatedString("change {title} time label visibility",n.t(null,void 0,i(72275))),p=n.t(null,void 0,i(51809)),u=n.t(null,void 0,i(22565)),h=n.t(null,void 0,i(62726));function f(e,t,i){const n=(0,s.removeSpaces)(i.originalText()),o=[],f=(0,r.createLineStyleDefinition)(e,{lineColor:t.linecolor,lineWidth:t.linewidth,lineStyle:t.linestyle},i,"Line");if(o.push(f),"showPrice"in t){const r=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showPrice,a.format({title:i}))},{id:`${n}ShowPrice`,title:p});o.push(r)}if("extendLine"in t){const r=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.extendLine,c.format({title:i}))},{id:`${n}ExtendLine`,title:h});o.push(r)}if("showTime"in t){const r=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showTime,d.format({title:i}))},{id:`${n}ShowTime`,title:u});o.push(r)}return{definitions:o}}},77992:(e,t,i)=>{i.r(t),i.d(t,{getSelectionStylePropertiesDefinitions:()=>y});var n=i(91599),o=i(33993),r=i(92401),l=i(72769),s=i(73405);const a=new l.TranslatedString("lines width",n.t(null,void 0,i(55368))),c=new l.TranslatedString("lines style",n.t(null,void 0,i(14832))),d=new l.TranslatedString("lines color",n.t(null,void 0,i(1716))),p=new l.TranslatedString("backgrounds color",n.t(null,void 0,i(60740))),u=new l.TranslatedString("backgrounds filled",n.t(null,void 0,i(20739))),h=new l.TranslatedString("text color",n.t(null,void 0,i(69731))),f=new l.TranslatedString("show price",n.t(null,void 0,i(22489)));function y(e,t){const l=[];if("linesWidths"in e||"linestyle"in e||"linesColors"in e){const p=(0,s.createLinePropertyDefinition)({width:e.linesWidths?new r.CollectiblePropertyUndoWrapper(new o.LineToolCollectedProperty(e.linesWidths),a,t):void 0,style:e.linestyle?new r.CollectiblePropertyUndoWrapper(new o.LineToolCollectedProperty(e.linestyle),c,t):void 0,color:e.linesColors?new r.CollectiblePropertyUndoWrapper(new o.LineToolCollectedProperty(e.linesColors),d,t):void 0},{id:"LineStyles",title:n.t(null,void 0,i(27912))});l.push(p)}if("showPrice"in e||"showPriceLabels"in e||"axisLabelVisible"in e){const{showPrice:a=[],showPriceLabels:c=[],axisLabelVisible:d=[]}=e,p=(0,s.createCheckablePropertyDefinition)({
|
|
checked:new r.CollectiblePropertyUndoWrapper(new o.LineToolCollectedProperty([...a,...c,...d]),f,t)},{id:"ShowPrice",title:n.t(null,void 0,i(51809))});l.push(p)}if("backgroundsColors"in e){const a=(0,s.createColorPropertyDefinition)({checked:e.fillBackground?new r.CollectiblePropertyUndoWrapper(new o.LineToolCollectedProperty(e.fillBackground),u,t):void 0,color:new r.CollectiblePropertyUndoWrapper(new o.LineToolCollectedProperty(e.backgroundsColors),p,t)},{id:"BackgroundColors",title:n.t(null,void 0,i(36926))});l.push(a)}if("textsColors"in e){const a=(0,s.createLinePropertyDefinition)({color:new r.CollectiblePropertyUndoWrapper(new o.LineToolCollectedProperty(e.textsColors),h,t)},{id:"TextColors",title:n.t(null,void 0,i(79115))});l.push(a)}return{definitions:l}}},20364:(e,t,i)=>{i.d(t,{getTrendLineToolsStylePropertiesDefinitions:()=>B});var n=i(91599),o=i(72769),r=i(72674),l=i(73405),s=i(89659),a=i(45124),c=i(42897);const d=new o.TranslatedString("change {title} middle point visibility",n.t(null,void 0,i(81394))),p=new o.TranslatedString("change {title} price labels visibility",n.t(null,void 0,i(59122))),u=new o.TranslatedString("change {title} price range visibility",n.t(null,void 0,i(29228))),h=new o.TranslatedString("change {title} percent change visibility",n.t(null,void 0,i(65858))),f=new o.TranslatedString("change {title} change in pips visibility",n.t(null,void 0,i(36038))),y=new o.TranslatedString("change {title} bars range visibility",n.t(null,void 0,i(82169))),v=new o.TranslatedString("change {title} date/time range visibility",n.t(null,void 0,i(34699))),g=new o.TranslatedString("change {title} distance visibility",n.t(null,void 0,i(42643))),w=new o.TranslatedString("change {title} angle visibility",n.t(null,void 0,i(96305))),P=new o.TranslatedString("change {title} always show stats",n.t(null,void 0,i(62373))),_=new o.TranslatedString("change {title} stats position",n.t(null,void 0,i(32875))),T=[{value:a.StatsPosition.Left,title:n.t(null,void 0,i(48816))},{value:a.StatsPosition.Center,title:n.t(null,void 0,i(93283))},{value:a.StatsPosition.Right,title:n.t(null,void 0,i(98415))},{value:a.StatsPosition.Auto,title:n.t(null,void 0,i(28013))}],D=n.t(null,void 0,i(16155)),S=n.t(null,void 0,i(45144)),m=n.t(null,void 0,i(87615)),b=n.t(null,void 0,i(22931)),x=n.t(null,void 0,i(6997)),k=n.t(null,void 0,i(7027)),C=n.t(null,void 0,i(43177)),L=n.t(null,void 0,i(8933)),A=n.t(null,void 0,i(45440)),V=n.t(null,void 0,i(99506)),R=n.t(null,void 0,i(88447)),$=n.t(null,void 0,i(76192)),M=n.t(null,void 0,i(51408));function B(e,t,i,n){const o=(0,c.removeSpaces)(i.originalText()),a=[],B=t,W=(0,r.createLineStyleDefinition)(e,{...B,lineColor:t.linecolor,lineWidth:t.linewidth,lineStyle:t.linestyle},i,"Line");a.push(W);const z=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showMiddlePoint,d.format({title:i}))},{id:`${o}MiddlePoint`,title:n&&n.middlePoint||D});a.push(z);const N=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showPriceLabels,p.format({
|
|
title:i}))},{id:`${o}ShowPriceLabels`,title:n&&n.showPriceLabelsTitle||S});a.push(N);const I=[],G=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showPriceRange,u.format({title:i}))},{id:`${o}PriceRange`,title:n&&n.priceRange||b});I.push(G);const O=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showPercentPriceRange,h.format({title:i}))},{id:`${o}PercentChange`,title:n&&n.percentChange||x});I.push(O);const E=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showPipsPriceRange,f.format({title:i}))},{id:`${o}PipsChange`,title:n&&n.pipsChange||k});I.push(E);const F=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showBarsRange,y.format({title:i}))},{id:`${o}BarsRange`,title:n&&n.barRange||C});if(I.push(F),"showDateTimeRange"in t){const r=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showDateTimeRange,v.format({title:i}))},{id:`${o}DateTimeRange`,title:n&&n.dateTimeRange||L});I.push(r)}if("showDistance"in t){const r=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showDistance,g.format({title:i}))},{id:`${o}Distance`,title:n&&n.distance||A});I.push(r)}if("showAngle"in t){const r=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showAngle,w.format({title:i}))},{id:`${o}Angle`,title:n&&n.angle||V});I.push(r)}const U=[];U.push((0,l.createPropertyDefinitionsCheckableListOptionsGroup)(I,void 0,[],"trendLineToolCheckableListGroup",$));const H=(0,l.createOptionsPropertyDefinition)({option:(0,l.convertToDefinitionProperty)(e,t.statsPosition,_.format({title:i}))},{id:"trendLineToolStatsPosition",title:n&&n.statsPosition||m,options:new s.WatchedValue(T)});U.push(H);const j=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.alwaysShowStats,P.format({title:i}))},{id:`${o}ShowStats`,title:n&&n.showStats||R});return U.push(j),a.push((0,l.createPropertyDefinitionsGeneralGroup)(U,`${o}StatsGroup`,M)),{definitions:a}}},2171:(e,t,i)=>{i.d(t,{createTextStyleDefinition:()=>x});var n=i(91599),o=i(72769),r=i(73405),l=i(42897)
|
|
;const s=new o.TranslatedString("change {toolName} text visibility",n.t(null,void 0,i(67684))),a=new o.TranslatedString("change {toolName} text color",n.t(null,void 0,i(65304))),c=new o.TranslatedString("change {toolName} text font size",n.t(null,void 0,i(70052))),d=new o.TranslatedString("change {toolName} text font bold",n.t(null,void 0,i(75446))),p=new o.TranslatedString("change {toolName} text font italic",n.t(null,void 0,i(63944))),u=new o.TranslatedString("change {toolName} text",n.t(null,void 0,i(40382))),h=new o.TranslatedString("change {toolName} labels alignment vertical",n.t(null,void 0,i(28579))),f=new o.TranslatedString("change {toolName} labels alignment horizontal",n.t(null,void 0,i(81746))),y=new o.TranslatedString("change {toolName} labels direction",n.t(null,void 0,i(10377))),v=new o.TranslatedString("change {toolName} text background visibility",n.t(null,void 0,i(31397))),g=new o.TranslatedString("change {toolName} text background color",n.t(null,void 0,i(28838))),w=new o.TranslatedString("change {toolName} text border visibility",n.t(null,void 0,i(12379))),P=new o.TranslatedString("change {toolName} text border width",n.t(null,void 0,i(81802))),_=new o.TranslatedString("change {toolName} text border color",n.t(null,void 0,i(22174))),T=new o.TranslatedString("change {toolName} text wrap",n.t(null,void 0,i(55044))),D=n.t(null,void 0,i(36926)),S=n.t(null,void 0,i(69407)),m=n.t(null,void 0,i(41697)),b=n.t(null,void 0,i(3443));function x(e,t,i,n){const o={},x={id:`${(0,l.removeSpaces)(i.originalText())}Text`,title:n.customTitles&&n.customTitles.text||"",placeholder:n.placeholder??b};if(void 0===t.showText||n.hideTextCheckbox||(o.checked=(0,r.convertToDefinitionProperty)(e,t.showText,s.format({toolName:i}))),void 0!==t.textColor&&(o.color=(0,r.getColorDefinitionProperty)(e,t.textColor,t.transparency||null,a.format({toolName:i}))),void 0!==t.fontSize&&(o.size=(0,r.convertToDefinitionProperty)(e,t.fontSize,c.format({toolName:i}))),void 0!==t.bold&&(o.bold=(0,r.convertToDefinitionProperty)(e,t.bold,d.format({toolName:i}))),void 0!==t.italic&&(o.italic=(0,r.convertToDefinitionProperty)(e,t.italic,p.format({toolName:i}))),void 0!==t.text){const l=u.format({toolName:i});o.text=(0,r.convertToDefinitionProperty)(e,t.text,l,void 0),x.isEditable=Boolean(n.isEditable),x.isMultiLine=Boolean(n.isMultiLine)}if(void 0!==t.vertLabelsAlign&&(o.alignmentVertical=(0,r.convertToDefinitionProperty)(e,t.vertLabelsAlign,h.format({toolName:i})),x.alignmentVerticalItems=n.alignmentVerticalItems),void 0!==t.horzLabelsAlign&&(o.alignmentHorizontal=(0,r.convertToDefinitionProperty)(e,t.horzLabelsAlign,f.format({toolName:i})),x.alignmentHorizontalItems=n.alignmentHorizontalItems),void 0!==t.textOrientation&&(o.orientation=(0,r.convertToDefinitionProperty)(e,t.textOrientation,y.format({toolName:i}))),void 0!==t.backgroundVisible&&(o.backgroundVisible=(0,r.convertToDefinitionProperty)(e,t.backgroundVisible,v.format({toolName:i}))),void 0!==t.backgroundColor){let n=null;void 0!==t.backgroundTransparency&&(n=t.backgroundTransparency),
|
|
o.backgroundColor=(0,r.getColorDefinitionProperty)(e,t.backgroundColor,n,g.format({toolName:i}))}return void 0===t.backgroundVisible&&void 0===t.backgroundColor||(x.backgroundTitle=n.customTitles&&n.customTitles.backgroundTitle||D),void 0!==t.borderVisible&&(o.borderVisible=(0,r.convertToDefinitionProperty)(e,t.borderVisible,w.format({toolName:i}))),void 0!==t.borderWidth&&(o.borderWidth=(0,r.convertToDefinitionProperty)(e,t.borderWidth,P.format({toolName:i}))),void 0!==t.borderColor&&(o.borderColor=(0,r.getColorDefinitionProperty)(e,t.borderColor,null,_.format({toolName:i}))),void 0===t.borderVisible&&void 0===t.borderColor&&void 0===t.borderWidth||(x.borderTitle=n.customTitles&&n.customTitles.borderTitle||S),void 0!==t.wrap&&(o.wrap=(0,r.convertToDefinitionProperty)(e,t.wrap,T.format({toolName:i})),x.wrapTitle=n.customTitles&&n.customTitles.wrapTitle||m),(0,r.createTextPropertyDefinition)(o,x)}},17859:(e,t,i)=>{i.r(t),i.d(t,{ArrowMarkDefinitionsViewModel:()=>d});var n=i(91599),o=i(72769),r=i(2171),l=i(44907),s=i(73405);const a=new o.TranslatedString("change arrow color",n.t(null,void 0,i(82535))),c=n.t(null,void 0,i(51979));class d extends l.LineDataSourceDefinitionsViewModel{_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,r.createTextStyleDefinition)(this._propertyApplier,{text:e.text,textColor:e.color,fontSize:e.fontsize,bold:e.bold,italic:e.italic},new o.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0})]}}_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:c})]}}}},43534:(e,t,i)=>{i.r(t),i.d(t,{ArrowMarkerDefinitionsViewModel:()=>p});var n=i(91599),o=i(72769),r=i(73405),l=i(44907),s=i(42897),a=i(2171);const c=new o.TranslatedString("change {title} color",n.t(null,void 0,i(1728))),d=n.t(null,void 0,i(21666));class p extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new o.TranslatedString(t,this._source.translatedType());return{definitions:[(0,r.createColorPropertyDefinition)({color:(0,r.getColorDefinitionProperty)(this._propertyApplier,e.backgroundColor,null,c.format({title:i}))},{id:(0,s.removeSpaces)(`${t}Color`),title:d})]}}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,a.createTextStyleDefinition)(this._propertyApplier,{text:e.text,textColor:e.textColor,fontSize:e.fontsize,bold:e.bold,italic:e.italic},new o.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0})]}}}},69311:(e,t,i)=>{i.r(t),i.d(t,{BarsPatternDefinitionsViewModel:()=>_});var n=i(91599),o=i(72769),r=i(44907),l=i(73405),s=i(89659),a=i(96645),c=i(7973),d=i(42897)
|
|
;const p=new o.TranslatedString("change {title} color",n.t(null,void 0,i(1728))),u=new o.TranslatedString("change {title} mode",n.t(null,void 0,i(7914))),h=new o.TranslatedString("change {title} mirrored",n.t(null,void 0,i(14989))),f=new o.TranslatedString("change {title} flipped",n.t(null,void 0,i(18256))),y=n.t(null,void 0,i(21666)),v=n.t(null,void 0,i(79865)),g=n.t(null,void 0,i(67769)),w=n.t(null,void 0,i(74934)),P=[{value:a.LineToolBarsPatternMode.Bars,title:n.t(null,void 0,i(15884))},{value:a.LineToolBarsPatternMode.OpenClose,title:n.t(null,void 0,i(53154))},{value:a.LineToolBarsPatternMode.Line,title:n.t(null,void 0,i(15867))},{value:a.LineToolBarsPatternMode.LineOpen,title:n.t(null,void 0,i(39480))},{value:a.LineToolBarsPatternMode.LineHigh,title:n.t(null,void 0,i(93967))},{value:a.LineToolBarsPatternMode.LineLow,title:n.t(null,void 0,i(20596))},{value:a.LineToolBarsPatternMode.LineHL2,title:n.t(null,void 0,i(8425))}];class _ extends r.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new o.TranslatedString(t,this._source.translatedType()),n=(0,d.removeSpaces)(t);return{definitions:[(0,l.createColorPropertyDefinition)({color:(0,l.getColorDefinitionProperty)(this._propertyApplier,e.color,null,p.format({title:i}))},{id:`${n}Color`,title:y}),(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(P)}),(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,f.format({title:i}))},{id:`${n}Flipped`,title:w})]}}}},31544:(e,t,i)=>{i.r(t),i.d(t,{BrushDefinitionsViewModel:()=>u});var n=i(91599),o=i(72769),r=i(72674),l=i(44907),s=i(73405),a=i(42897);const c=new o.TranslatedString("change {title} background visibility",n.t(null,void 0,i(19514))),d=new o.TranslatedString("change {title} background color",n.t(null,void 0,i(77582))),p=n.t(null,void 0,i(36926));class u extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new o.TranslatedString(t,this._source.translatedType());return{definitions:[(0,r.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,d.format({title:i}))},{id:(0,a.removeSpaces)(`${t}BackgroundColor`),title:p})]}}_coordinatesPropertyDefinitions(){return null}}},81084:(e,t,i)=>{i.r(t),i.d(t,{CalloutDefinitionsViewModel:()=>l});var n=i(2171),o=i(44907),r=i(72769)
|
|
;class l extends o.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 r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0})]}}}},83275:(e,t,i)=>{i.r(t),i.d(t,{CrossLineDefinitionsViewModel:()=>c});var n=i(91599),o=i(72769),r=i(44907),l=i(64226),s=i(2171);const a=n.t(null,void 0,i(79115));class c extends r.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return(0,l.getLinesStylesPropertiesDefinitions)(this._propertyApplier,e,new o.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,textColor:e.textcolor,fontSize:e.fontsize},new o.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,customTitles:{text:a}})]}}return null}}},32635:(e,t,i)=>{i.r(t),i.d(t,{CyclicAndSineLinesPatternDefinitionsViewModel:()=>a});var n=i(91599),o=i(72769),r=i(72674),l=i(44907);const s=n.t(null,void 0,i(99758));class a extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,r.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.linecolor,lineWidth:e.linewidth,lineStyle:e.linestyle},new o.TranslatedString(this._source.name(),this._source.translatedType()),"Line",{line:s})]}}}},41652:(e,t,i)=>{i.r(t),i.d(t,{ElliottPatternDefinitionsViewModel:()=>y});var n=i(91599),o=i(72769),r=i(72674),l=i(44907),s=i(73405),a=i(89659),c=i(42897);const d=new o.TranslatedString("change {title} color",n.t(null,void 0,i(1728))),p=new o.TranslatedString("change {title} degree",n.t(null,void 0,i(18460))),u=n.t(null,void 0,i(21666)),h=n.t(null,void 0,i(58450)),f=n.t(null,void 0,i(7978));class y extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new o.TranslatedString(t,this._source.translatedType());return{definitions:[(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.color,null,d.format({title:i}))},{id:(0,c.removeSpaces)(`${t}BackgroundColor`),title:u}),(0,r.createLineStyleDefinition)(this._propertyApplier,{showLine:e.showWave,lineWidth:e.linewidth},i,"Line",{line:h}),(0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.degree,p.format({title:i}))},{id:`${t}Degree`,title:f,options:new a.WatchedValue(this._source.availableDegreesValues())})]}}}},75691:(e,t,i)=>{i.r(t),i.d(t,{EllipseCircleDefinitionsViewModel:()=>l})
|
|
;var n=i(72769),o=i(2171),r=i(40488);class l extends r.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},new n.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0})]}}}},98599:(e,t,i)=>{i.r(t),i.d(t,{FibCirclesDefinitionsViewModel:()=>b});var n=i(85842),o=i(91599),r=i(72769),l=i(72674),s=i(73405),a=i(44907),c=i(42897),d=i(75840);const p=new r.TranslatedString("change {title} level {index} line visibility",o.t(null,void 0,i(78521))),u=new r.TranslatedString("change {title} levels visibility",o.t(null,void 0,i(75057))),h=new r.TranslatedString("change {title} level {index} line color",o.t(null,void 0,i(15226))),f=new r.TranslatedString("change {title} level {index} line width",o.t(null,void 0,i(53825))),y=new r.TranslatedString("change {title} level {index} line coeff",o.t(null,void 0,i(44475))),v=new r.TranslatedString("change {title} all lines color",o.t(null,void 0,i(80264))),g=new r.TranslatedString("change {title} background visibility",o.t(null,void 0,i(19514))),w=new r.TranslatedString("change {title} background transparency",o.t(null,void 0,i(44263))),P=new r.TranslatedString("change {title} coeffs as percents visibility",o.t(null,void 0,i(57814))),_=o.t(null,void 0,i(32145)),T=o.t(null,void 0,i(64846)),D=o.t(null,void 0,i(36926)),S=o.t(null,void 0,i(4361)),m=o.t(null,void 0,i(74107));class b extends a.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),o=(0,c.removeSpaces)(i),a=new r.TranslatedString(i,this._source.translatedType()),b=t.trendline.childs(),x=(0,l.createLineStyleDefinition)(this._propertyApplier,{showLine:b.visible,lineColor:b.color,lineStyle:b.linestyle,lineWidth:b.linewidth},a,"TrendLine",{line:_});e.push(x);const k=this._source.levelsCount();for(let i=1;i<=k;i++){const n=t[`level${i}`].childs(),r=(0,s.createLeveledLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,n.visible,p.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,f.format({title:a,index:i})),level:(0,s.convertToDefinitionProperty)(this._propertyApplier,n.coeff,y.format({title:a,index:i}))},{id:`${o}LineLevel${i}`});e.push(r)}const C=(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,new d.CollectibleColorPropertyUndoWrapper((0,n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,null),null,v.format({title:a}),!0)},{id:`${o}AllLineColor`,title:T});e.push(C);const L=(0,s.createTransparencyPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.fillBackground,g.format({title:a})),transparency:(0,
|
|
s.convertToDefinitionProperty)(this._propertyApplier,t.transparency,w.format({title:a}))},{id:`${o}Background`,title:D});e.push(L);const A=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.showCoeffs,u.format({title:a}))},{id:`${o}Levels`,title:S});e.push(A);const V=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.coeffsAsPercents,P.format({title:a}))},{id:`${o}Percentage`,title:m});return e.push(V),{definitions:e}}}},75899:(e,t,i)=>{i.r(t),i.d(t,{FibDrawingsWith24LevelsDefinitionsViewModel:()=>j});var n=i(85842),o=i(91599),r=i(72769),l=i(72674),s=i(73405),a=i(44907),c=i(95385),d=i(23157),p=i(89659),u=i(42897),h=i(75840);const f=new r.TranslatedString("change {title} level {index} line visibility",o.t(null,void 0,i(78521))),y=new r.TranslatedString("change {title} level {index} line color",o.t(null,void 0,i(15226))),v=new r.TranslatedString("change {title} level {index} line coeff",o.t(null,void 0,i(44475))),g=new r.TranslatedString("change {title} all lines color",o.t(null,void 0,i(80264))),w=new r.TranslatedString("change {title} background visibility",o.t(null,void 0,i(19514))),P=new r.TranslatedString("change {title} background transparency",o.t(null,void 0,i(44263))),_=new r.TranslatedString("change {title} reverse",o.t(null,void 0,i(30910))),T=new r.TranslatedString("change {title} prices visibility",o.t(null,void 0,i(94073))),D=new r.TranslatedString("change {title} labels alignment",o.t(null,void 0,i(17417))),S=new r.TranslatedString("change {title} text alignment",o.t(null,void 0,i(93281))),m=new r.TranslatedString("change {title} text visibility",o.t(null,void 0,i(46921))),b=new r.TranslatedString("change {title} labels font size",o.t(null,void 0,i(40932))),x=new r.TranslatedString("change {title} style",o.t(null,void 0,i(67236))),k=new r.TranslatedString("change {title} fib levels based on log scale",o.t(null,void 0,i(80243))),C=o.t(null,void 0,i(32145)),L=o.t(null,void 0,i(91343)),A=o.t(null,void 0,i(11379)),V=o.t(null,void 0,i(53892)),R=o.t(null,void 0,i(38188)),$=o.t(null,void 0,i(44370)),M=o.t(null,void 0,i(96162)),B=o.t(null,void 0,i(21313)),W=o.t(null,void 0,i(4361)),z=o.t(null,void 0,i(27150)),N=o.t(null,void 0,i(79115)),I=o.t(null,void 0,i(95484)),G=o.t(null,void 0,i(64846)),O=o.t(null,void 0,i(36926)),E=o.t(null,void 0,i(84313)),F=[{id:"values",value:!1,title:o.t(null,void 0,i(86960))},{id:"percents",value:!0,title:o.t(null,void 0,i(93933))}],U=[{id:c.VerticalAlign.Top,value:c.VerticalAlign.Bottom,title:o.t(null,void 0,i(65388))},{id:c.VerticalAlign.Middle,value:c.VerticalAlign.Middle,title:o.t(null,void 0,i(55636))},{id:c.VerticalAlign.Bottom,value:c.VerticalAlign.Top,title:o.t(null,void 0,i(65244))}],H=[8,10,11,12,14,16,18,20,22,24].map((e=>({title:String(e),value:e})));class j 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 p.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(),o=this._source.name(),a=(0,u.removeSpaces)(o),c=new r.TranslatedString(o,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:C});e.push(n)}const j=i.levelsStyle.childs(),Y={lineStyle:j.linestyle,lineWidth:j.linewidth},q={line:L};"extendLines"in i&&(Y.extendRight=i.extendLines,q.extendRightTitle=R),"extendLinesLeft"in i&&(Y.extendLeft=i.extendLinesLeft,q.extendLeftTitle=$),"extendRight"in i&&(Y.extendRight=i.extendRight,q.extendRightTitle=A),"extendLeft"in i&&(Y.extendLeft=i.extendLeft,q.extendLeftTitle=V);const Q=(0,l.createLineStyleDefinition)(this._propertyApplier,Y,c,"LevelsStyleLine",q);e.push(Q);const X=[],K=this._source.levelsCount();for(let e=1;e<=K;e++){const t=i[`level${e}`].childs(),n=(0,s.createLeveledLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.visible,f.format({title:c,index:e})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,t.color,null,y.format({title:c,index:e})),level:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.coeff,v.format({title:c,index:e}))},{id:`${a}LineLevel${e}`});X.push(n)}const J=(0,s.createPropertyDefinitionsLeveledLinesGroup)(X,`${a}LeveledLinesGroup`);e.push((0,s.createPropertyDefinitionsGeneralGroup)([J],`${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:G});e.push(Z);const ee=(0,s.createTransparencyPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.fillBackground,w.format({title:c})),transparency:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.transparency,P.format({title:c}))},{id:`${a}Background`,title:O});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:M});e.push(t)}const ie=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.showPrices,T.format({title:c}))},{id:`${a}Prices`,title:B});e.push(ie);const ne=(0,s.createOptionsPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.showCoeffs,x.format({title:c})),option:(0,
|
|
s.convertToDefinitionProperty)(this._propertyApplier,i.coeffsAsPercents,x.format({title:c}))},{id:`${a}PitchStyle`,title:W,options:new p.WatchedValue(F)});e.push(ne);const oe=(0,s.createTwoOptionsPropertyDefinition)({option1:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.horzLabelsAlign,D.format({title:c})),option2:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.vertLabelsAlign,D.format({title:c}))},{id:`${a}Alignment`,title:z,optionsItems1:new p.WatchedValue(d.availableAlignmentHorizontalItems),optionsItems2:new p.WatchedValue(U)});e.push(oe);const re=t.child("showText"),le=t.child("horzTextAlign"),se=t.child("vertTextAlign");if(re&&le&&se){const t=(0,s.createTwoOptionsPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,re,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:N,optionsItems1:new p.WatchedValue(d.availableAlignmentHorizontalItems),optionsItems2:new p.WatchedValue(U)});e.push(t)}const ae=(0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.labelFontSize,b.format({title:c}))},{id:`${a}FontSize`,title:I,options:new p.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,k.format({title:c})),checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.fibLevelsBasedOnLogScale,k.format({title:c}))},{id:`${a}BasedOnLog`,title:E});e.push(t)}return{definitions:e}}}},23157:(e,t,i)=>{i.r(t),i.d(t,{FibTimezoneDefinitionsViewModel:()=>k,availableAlignmentHorizontalItems:()=>x,availableAlignmentVerticalItems:()=>b});var n=i(85842),o=i(91599),r=i(72769),l=i(73405),s=i(44907),a=i(95385),c=i(89659),d=i(42897),p=i(75840);const u=new r.TranslatedString("change {title} level {index} line visibility",o.t(null,void 0,i(78521))),h=new r.TranslatedString("change {title} level {index} line color",o.t(null,void 0,i(15226))),f=new r.TranslatedString("change {title} level {index} line width",o.t(null,void 0,i(53825))),y=new r.TranslatedString("change {title} level {index} line style",o.t(null,void 0,i(26260))),v=new r.TranslatedString("change {title} level {index} line coeff",o.t(null,void 0,i(44475))),g=new r.TranslatedString("change {title} all lines color",o.t(null,void 0,i(80264))),w=new r.TranslatedString("change {title} background visibility",o.t(null,void 0,i(19514))),P=new r.TranslatedString("change {title} background transparency",o.t(null,void 0,i(44263))),_=new r.TranslatedString("change {title} labels visibility",o.t(null,void 0,i(11080))),T=new r.TranslatedString("change {title} labels alignment",o.t(null,void 0,i(17417))),D=o.t(null,void 0,i(64846)),S=o.t(null,void 0,i(36926)),m=o.t(null,void 0,i(27150)),b=[{id:a.VerticalAlign.Bottom,
|
|
value:a.VerticalAlign.Top,title:o.t(null,void 0,i(65388))},{id:a.VerticalAlign.Middle,value:a.VerticalAlign.Middle,title:o.t(null,void 0,i(55636))},{id:a.VerticalAlign.Top,value:a.VerticalAlign.Bottom,title:o.t(null,void 0,i(65244))}],x=[{id:a.HorizontalAlign.Left,value:a.HorizontalAlign.Left,title:o.t(null,void 0,i(48816))},{id:a.HorizontalAlign.Center,value:a.HorizontalAlign.Center,title:o.t(null,void 0,i(93283))},{id:a.HorizontalAlign.Right,value:a.HorizontalAlign.Right,title:o.t(null,void 0,i(98415))}];class k extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),o=(0,d.removeSpaces)(i),s=new r.TranslatedString(i,this._source.translatedType()),a=this._source.levelsCount();for(let i=1;i<=a;i++){const n=t[`level${i}`].childs(),r=(0,l.createLeveledLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.visible,u.format({title:s,index:i})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,n.color,null,h.format({title:s,index:i})),width:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.linewidth,f.format({title:s,index:i})),style:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.linestyle,y.format({title:s,index:i})),level:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.coeff,v.format({title:s,index:i}))},{id:`${o}LineLevel${i}`});e.push(r)}const k=(0,l.createColorPropertyDefinition)({color:(0,l.getColorDefinitionProperty)(this._propertyApplier,new p.CollectibleColorPropertyUndoWrapper((0,n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,null),null,g.format({title:s}),!0)},{id:`${o}AllLineColor`,title:D});e.push(k);const C=(0,l.createTransparencyPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.fillBackground,w.format({title:s})),transparency:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.transparency,P.format({title:s}))},{id:`${o}Background`,title:S});e.push(C);const L=(0,l.createTwoOptionsPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showLabels,_.format({title:s})),option1:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.horzLabelsAlign,T.format({title:s})),option2:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.vertLabelsAlign,T.format({title:s}))},{id:`${o}Labels`,title:m,optionsItems1:new c.WatchedValue(x),optionsItems2:new c.WatchedValue(b)});return e.push(L),{definitions:e}}}},88736:(e,t,i)=>{i.r(t),i.d(t,{FlagMarkDefinitionsViewModel:()=>c});var n=i(91599),o=i(72769),r=i(44907),l=i(73405);const s=new o.TranslatedString("change flag color",n.t(null,void 0,i(63437))),a=n.t(null,void 0,i(71527));class c extends r.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})]}}}},12374:(e,t,i)=>{i.r(t),i.d(t,{
|
|
GannComplexAndFixedDefinitionsViewModel:()=>z,isGannComplexLineTool:()=>W});var n=i(85842),o=i(91599),r=i(72769),l=i(2171),s=i(73405),a=i(44907),c=i(76429),d=i(89659),p=i(7973),u=i(42897),h=i(75840);const f=new r.TranslatedString("change {title} level {index} line visibility",o.t(null,void 0,i(78521))),y=new r.TranslatedString("change {title} level {index} line color",o.t(null,void 0,i(15226))),v=new r.TranslatedString("change {title} level {index} line width",o.t(null,void 0,i(53825))),g=new r.TranslatedString("change {title} all lines color",o.t(null,void 0,i(80264))),w=new r.TranslatedString("change {title} background visibility",o.t(null,void 0,i(19514))),P=new r.TranslatedString("change {title} background transparency",o.t(null,void 0,i(44263))),_=new r.TranslatedString("change {title} reverse",o.t(null,void 0,i(30910))),T=new r.TranslatedString("change {title} fan {index} line visibility",o.t(null,void 0,i(66656))),D=new r.TranslatedString("change {title} fan {index} line color",o.t(null,void 0,i(13236))),S=new r.TranslatedString("change {title} fan {index} line width",o.t(null,void 0,i(95109))),m=new r.TranslatedString("change {title} arcs {index} line visibility",o.t(null,void 0,i(13695))),b=new r.TranslatedString("change {title} arcs {index} line color",o.t(null,void 0,i(83858))),x=new r.TranslatedString("change {title} arcs {index} line width",o.t(null,void 0,i(37414))),k=new r.TranslatedString("change top margin",o.t(null,void 0,i(16257))),C=o.t(null,void 0,i(96162)),L=o.t(null,void 0,i(64846)),A=o.t(null,void 0,i(36926)),V=o.t(null,void 0,i(47597)),R=o.t(null,void 0,i(48861)),$=o.t(null,void 0,i(4361)),M=o.t(null,void 0,i(91223)),B=o.t(null,void 0,i(80920));function W(e){return e instanceof c.LineToolGannComplex}class z extends a.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),o=(0,u.removeSpaces)(i),a=new r.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,f.format({title:a,index:e})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,i.color,null,y.format({title:a,index:e})),width:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.width,v.format({title:a,index:e}))},{id:`${o}LineLevel${e}`,title:`${e}`});c.push(n)}const N=(0,s.createPropertyDefinitionsLeveledLinesGroup)(c,`${o}LeveledLinesGroup`);e.push((0,s.createPropertyDefinitionsGeneralGroup)([N],`${o}LevelGroup`,$));const I=[],G=t.fanlines.childCount();for(let e=0;e<G;e++){const i=t.fanlines.childs()[e].childs(),n=(0,s.createLeveledLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.visible,T.format({title:a,index:e})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,i.color,null,D.format({title:a,index:e})),width:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.width,S.format({title:a,
|
|
index:e}))},{id:`${o}FanLineLevel${e}`,title:`${i.x.value()}x${i.y.value()}`});I.push(n)}const O=(0,s.createPropertyDefinitionsLeveledLinesGroup)(I,`${o}FanLeveledLinesGroup`);e.push((0,s.createPropertyDefinitionsGeneralGroup)([O],`${o}FanLinesGroup`,M));const E=[],F=t.arcs.childCount();for(let e=0;e<F;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,x.format({title:a,index:e}))},{id:`${o}ArcsLineLevel${e}`,title:`${i.x.value()}x${i.y.value()}`});E.push(n)}const U=(0,s.createPropertyDefinitionsLeveledLinesGroup)(E,`${o}ArcsLeveledLinesGroup`);e.push((0,s.createPropertyDefinitionsGeneralGroup)([U],`${o}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:`${o}AllLineColor`,title:L});e.push(H);const j=t.arcsBackground.childs(),Y=(0,s.createTransparencyPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,j.fillBackground,w.format({title:a})),transparency:(0,s.convertToDefinitionProperty)(this._propertyApplier,j.transparency,P.format({title:a}))},{id:`${o}Background`,title:A});e.push(Y);const q=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,t.reverse,_.format({title:a}))},{id:`${o}Reverse`,title:C});if(e.push(q),W(this._source)){const t=this._source,i=t.properties().childs(),n=(0,s.createNumberPropertyDefinition)({value:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.scaleRatio,k,[(0,p.limitedPrecision)(7),e=>null!==e?parseFloat(t.getScaleRatioFormatter().format(e,{ignoreLocaleNumberFormat:!0,noExponentialForm:!0})):null])},{id:"scaleRatio",title:V,min:new d.WatchedValue(1e-7),max:new d.WatchedValue(1e8),step:new d.WatchedValue(t.getScaleRatioStep())});e.push(n);const o=i.labelsStyle.childs(),r=(0,l.createTextStyleDefinition)(this._propertyApplier,{showText:i.showLabels,fontSize:o.fontSize,bold:o.bold,italic:o.italic},a,{customTitles:{text:R}});e.push(r)}return{definitions:e}}}},96680:(e,t,i)=>{i.r(t),i.d(t,{GannFanDefinitionsViewModel:()=>T});var n=i(85842),o=i(91599),r=i(72769),l=i(73405),s=i(44907),a=i(42897),c=i(75840)
|
|
;const d=new r.TranslatedString("change {title} level {index} line visibility",o.t(null,void 0,i(78521))),p=new r.TranslatedString("change {title} level {index} line color",o.t(null,void 0,i(15226))),u=new r.TranslatedString("change {title} level {index} line width",o.t(null,void 0,i(53825))),h=new r.TranslatedString("change {title} level {index} line style",o.t(null,void 0,i(26260))),f=new r.TranslatedString("change {title} all lines color",o.t(null,void 0,i(80264))),y=new r.TranslatedString("change {title} background visibility",o.t(null,void 0,i(19514))),v=new r.TranslatedString("change {title} background transparency",o.t(null,void 0,i(44263))),g=new r.TranslatedString("change {title} labels visibility",o.t(null,void 0,i(11080))),w=o.t(null,void 0,i(64846)),P=o.t(null,void 0,i(36926)),_=o.t(null,void 0,i(27150));class T extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),o=(0,a.removeSpaces)(i),s=new r.TranslatedString(i,this._source.translatedType()),T=this._source.levelsCount();for(let i=1;i<=T;i++){const n=t[`level${i}`].childs(),r=(0,l.createLeveledLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.visible,d.format({title:s,index:i})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,n.color,null,p.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:`${o}LineLevel${i}`,title:`${n.coeff1.value()}/${n.coeff2.value()}`});e.push(r)}const D=(0,l.createColorPropertyDefinition)({color:(0,l.getColorDefinitionProperty)(this._propertyApplier,new c.CollectibleColorPropertyUndoWrapper((0,n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,null),null,f.format({title:s}))},{id:`${o}AllLineColor`,title:w});e.push(D);const S=(0,l.createTransparencyPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.fillBackground,y.format({title:s})),transparency:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.transparency,v.format({title:s}))},{id:`${o}Background`,title:P});e.push(S);const m=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showLabels,g.format({title:s}))},{id:`${o}Labels`,title:_});return e.push(m),{definitions:e}}}},16080:(e,t,i)=>{i.r(t),i.d(t,{GannSquareDefinitionsViewModel:()=>$});var n=i(85842),o=i(91599),r=i(72769),l=i(73405),s=i(44907),a=i(42897),c=i(75840)
|
|
;const d=new r.TranslatedString("change {title} level {index} line visibility",o.t(null,void 0,i(78521))),p=new r.TranslatedString("change {title} level {index} line color",o.t(null,void 0,i(15226))),u=new r.TranslatedString("change {title} level {index} line coeff",o.t(null,void 0,i(44475))),h=new r.TranslatedString("change {title} all lines color",o.t(null,void 0,i(80264))),f=new r.TranslatedString("change {title} background visibility",o.t(null,void 0,i(19514))),y=new r.TranslatedString("change {title} background transparency",o.t(null,void 0,i(44263))),v=new r.TranslatedString("change {title} reverse",o.t(null,void 0,i(30910))),g=new r.TranslatedString("change {title} left labels visibility",o.t(null,void 0,i(82989))),w=new r.TranslatedString("change {title} right labels visibility",o.t(null,void 0,i(95295))),P=new r.TranslatedString("change {title} top labels visibility",o.t(null,void 0,i(23271))),_=new r.TranslatedString("change {title} bottom labels visibility",o.t(null,void 0,i(45593))),T=new r.TranslatedString("change {title} fans visibility",o.t(null,void 0,i(86643))),D=new r.TranslatedString("change {title} fans line color",o.t(null,void 0,i(98846))),S=o.t(null,void 0,i(64846)),m=o.t(null,void 0,i(36926)),b=o.t(null,void 0,i(50975)),x=o.t(null,void 0,i(46711)),k=o.t(null,void 0,i(24280)),C=o.t(null,void 0,i(16671)),L=o.t(null,void 0,i(87269)),A=o.t(null,void 0,i(71733)),V=o.t(null,void 0,i(63601)),R=o.t(null,void 0,i(96162));class $ extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),o=(0,a.removeSpaces)(i),s=new r.TranslatedString(i,this._source.translatedType()),$=[],M=this._source.hLevelsCount();for(let e=1;e<=M;e++){const i=t[`hlevel${e}`].childs(),n=(0,l.createLeveledLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.visible,d.format({title:s,index:e})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,i.color,null,p.format({title:s,index:e})),level:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.coeff,u.format({title:s,index:e}))},{id:`${o}HLineLevel${e}`});$.push(n)}const B=(0,l.createPropertyDefinitionsLeveledLinesGroup)($,`${o}HLeveledLinesGroup`),W=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showLeftLabels,g.format({title:s}))},{id:`${o}LeftLabels`,title:k}),z=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showRightLabels,w.format({title:s}))},{id:`${o}RightLabels`,title:C}),N=(0,l.createTransparencyPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.fillHorzBackground,f.format({title:s})),transparency:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.horzTransparency,y.format({title:s}))},{id:`${o}BackgroundH`,title:m}),I=(0,l.createPropertyDefinitionsGeneralGroup)([B,W,z,N],`${o}HLevelGroup`,b);e.push(I);const G=[],O=this._source.vLevelsCount();for(let e=1;e<=O;e++){
|
|
const i=t[`vlevel${e}`].childs(),n=(0,l.createLeveledLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.visible,d.format({title:s,index:e})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,i.color,null,p.format({title:s,index:e})),level:(0,l.convertToDefinitionProperty)(this._propertyApplier,i.coeff,u.format({title:s,index:e}))},{id:`${o}VLineLevel${e}`});G.push(n)}const E=(0,l.createPropertyDefinitionsLeveledLinesGroup)(G,`${o}VLeveledLinesGroup`),F=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showTopLabels,P.format({title:s}))},{id:`${o}TopLabels`,title:L}),U=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.showBottomLabels,_.format({title:s}))},{id:`${o}BottomLabels`,title:A}),H=(0,l.createTransparencyPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.fillVertBackground,f.format({title:s})),transparency:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.vertTransparency,y.format({title:s}))},{id:`${o}BackgroundV`,title:m}),j=(0,l.createPropertyDefinitionsGeneralGroup)([E,F,U,H],`${o}VLevelGroup`,x);e.push(j);const Y=(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:`${o}AllLineColor`,title:S});e.push(Y);const q=t.fans.childs(),Q=(0,l.createColorPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,q.visible,T.format({title:s})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,q.color,null,D.format({title:s}))},{id:`${o}FansLines`,title:V});e.push(Q);const X=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.reverse,v.format({title:s}))},{id:`${o}Reverse`,title:R});return e.push(X),{definitions:e}}}},51540:(e,t,i)=>{i.r(t),i.d(t,{GeneralBezierDefinitionsViewModel:()=>u});var n=i(91599),o=i(72769),r=i(72674),l=i(44907),s=i(73405),a=i(42897);const c=new o.TranslatedString("change {title} background visibility",n.t(null,void 0,i(19514))),d=new o.TranslatedString("change {title} background color",n.t(null,void 0,i(77582))),p=n.t(null,void 0,i(36926));class u extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new o.TranslatedString(t,this._source.translatedType());return{definitions:[(0,r.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,d.format({
|
|
title:i}))},{id:(0,a.removeSpaces)(`${t}BackgroundColor`),title:p})]}}}},52989:(e,t,i)=>{i.r(t),i.d(t,{GeneralDatePriceRangeDefinitionsViewModel:()=>N});var n=i(91599),o=i(72769),r=i(72674),l=i(2171),s=i(44907),a=i(73405),c=i(42897);const d=new o.TranslatedString("change {title} background visibility",n.t(null,void 0,i(19514))),p=new o.TranslatedString("change {title} background color",n.t(null,void 0,i(77582))),u=new o.TranslatedString("change {title} extend top",n.t(null,void 0,i(88939))),h=new o.TranslatedString("change {title} extend bottom",n.t(null,void 0,i(94183))),f=new o.TranslatedString("change {title} extend left",n.t(null,void 0,i(8225))),y=new o.TranslatedString("change {title} price range visibility",n.t(null,void 0,i(29228))),v=new o.TranslatedString("change {title} percent change visibility",n.t(null,void 0,i(65858))),g=new o.TranslatedString("change {title} change in pips visibility",n.t(null,void 0,i(36038))),w=new o.TranslatedString("change {title} bars range visibility",n.t(null,void 0,i(82169))),P=new o.TranslatedString("change {title} date/time range visibility",n.t(null,void 0,i(34699))),_=new o.TranslatedString("change {title} volume visibility",n.t(null,void 0,i(54628))),T=n.t(null,void 0,i(27912)),D=n.t(null,void 0,i(69407)),S=n.t(null,void 0,i(36926)),m=n.t(null,void 0,i(10293)),b=n.t(null,void 0,i(37965)),x=n.t(null,void 0,i(53892)),k=n.t(null,void 0,i(11379)),C=n.t(null,void 0,i(51408)),L=n.t(null,void 0,i(76192)),A=n.t(null,void 0,i(43177)),V=n.t(null,void 0,i(8933)),R=n.t(null,void 0,i(47062)),$=n.t(null,void 0,i(22931)),M=n.t(null,void 0,i(6997)),B=n.t(null,void 0,i(7027)),W=n.t(null,void 0,i(78011)),z=n.t(null,void 0,i(41198));class N extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),s=this._source.name(),N=(0,c.removeSpaces)(s),I=new o.TranslatedString(s,this._source.translatedType()),G=(0,r.createLineStyleDefinition)(this._propertyApplier,{lineColor:t.linecolor,lineWidth:t.linewidth},I,"Line",{line:T});e.push(G);const O=t.hasOwnProperty("borderWidth");if(O){const i=(0,r.createLineStyleDefinition)(this._propertyApplier,{showLine:t.drawBorder,lineColor:t.borderColor,lineWidth:t.borderWidth},I,"Border",{line:D});e.push(i)}const E=(0,a.createColorPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.fillBackground,d.format({title:I})),color:(0,a.getColorDefinitionProperty)(this._propertyApplier,t.backgroundColor,t.backgroundTransparency,p.format({title:I}))},{id:`${N}BackgroundColor`,title:S});e.push(E);const F=function(e){return e.hasOwnProperty("extendTop")}(t);if(F){const o=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.extendTop,u.format({title:I}))},{id:`${N}ExtendTop`,title:m}),r=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.extendBottom,h.format({title:I}))},{id:`${N}ExtendBottom`,title:b});e.push((0,
|
|
a.createPropertyDefinitionsCheckableListOptionsGroup)([o,r],void 0,[],"lineExtend",n.t(null,void 0,i(62726)),void 0,void 0,n.t(null,void 0,i(18656))))}const U=function(e){return e.hasOwnProperty("extendLeft")}(t);if(U){const o=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.extendLeft,f.format({title:I}))},{id:`${N}ExtendLeft`,title:x}),r=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.extendRight,h.format({title:I}))},{id:`${N}ExtendRight`,title:k});e.push((0,a.createPropertyDefinitionsCheckableListOptionsGroup)([o,r],void 0,[],"lineExtend",n.t(null,void 0,i(62726)),void 0,void 0,n.t(null,void 0,i(18656))))}const H=[];if(U||O){const e=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.showPriceRange,y.format({title:I}))},{id:`${N}PriceRange`,title:$});H.push(e);const i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.showPercentPriceRange,v.format({title:I}))},{id:`${N}PercentChange`,title:M});H.push(i);const n=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.showPipsPriceRange,g.format({title:I}))},{id:`${N}PipsChange`,title:B});H.push(n)}if(F||O){const e=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.showBarsRange,w.format({title:I}))},{id:`${N}BarsRange`,title:A});H.push(e);const i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.showDateTimeRange,P.format({title:I}))},{id:`${N}DateTimeRange`,title:V});H.push(i);const n=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._propertyApplier,t.showVolume,_.format({title:I}))},{id:`${N}ShowVolume`,title:R});H.push(n)}const j=[];j.push((0,a.createPropertyDefinitionsCheckableListOptionsGroup)(H,void 0,[],"datePriceRangeCheckableListGroup",L));const Y=(0,l.createTextStyleDefinition)(this._propertyApplier,{textColor:t.textcolor,backgroundColor:t.labelBackgroundColor,backgroundTransparency:t.backgroundTransparency,fontSize:t.fontsize,backgroundVisible:t.fillLabelBackground},I,{isEditable:!0,isMultiLine:!0,customTitles:{text:W,backgroundTitle:z}});return j.push(Y),e.push((0,a.createPropertyDefinitionsGeneralGroup)(j,`${N}InfoGroup`,C)),{definitions:e}}_textPropertyDefinitions(){const e=this._source.properties().childs().customText.childs();return{definitions:[(0,l.createTextStyleDefinition)(this._propertyApplier,{...e,textColor:e.color,fontSize:e.fontsize},new o.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0})]}}}},40488:(e,t,i)=>{i.r(t),i.d(t,{GeneralFiguresDefinitionsViewModel:()=>f,GeneralFiguresDefinitionsViewModelBase:()=>h});var n=i(91599),o=i(72769),r=i(72674),l=i(44907),s=i(73405),a=i(42897)
|
|
;const c=new o.TranslatedString("change {title} background visibility",n.t(null,void 0,i(19514))),d=new o.TranslatedString("change {title} background color",n.t(null,void 0,i(77582))),p=n.t(null,void 0,i(69407)),u=n.t(null,void 0,i(36926));class h extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new o.TranslatedString(t,this._source.translatedType()),n=(0,r.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.color,lineWidth:e.linewidth,lineStyle:e.linestyle},i,"Line",{line:p}),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,d.format({title:i}))},{id:(0,a.removeSpaces)(`${t}BackgroundColor`),title:u})]}}}class f extends h{}},90210:(e,t,i)=>{i.r(t),i.d(t,{GeneralTrendFiguresDefinitionsViewModel:()=>v});var n=i(91599),o=i(72769),r=i(72674),l=i(2171),s=i(44907),a=i(73405),c=i(95385),d=i(42897);const p=new o.TranslatedString("change {title} background visibility",n.t(null,void 0,i(19514))),u=new o.TranslatedString("change {title} background color",n.t(null,void 0,i(77582))),h=[{value:c.VerticalAlign.Bottom,title:n.t(null,void 0,i(65388))},{value:c.VerticalAlign.Middle,title:n.t(null,void 0,i(37648))},{value:c.VerticalAlign.Top,title:n.t(null,void 0,i(65244))}],f=n.t(null,void 0,i(21313)),y=n.t(null,void 0,i(36926));class v extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new o.TranslatedString(t,this._source.translatedType());return{definitions:[(0,r.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,p.format({title:i})),color:(0,a.getColorDefinitionProperty)(this._propertyApplier,e.backgroundColor,e.transparency,u.format({title:i}))},{id:(0,d.removeSpaces)(`${t}Background`),title:y})]}}_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},new o.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,alignmentVerticalItems:h})]}}}},54214:(e,t,i)=>{i.r(t),i.d(t,{GhostFeedDefinitionsViewModel:()=>b});var n=i(91599),o=i(72769),r=i(44907),l=i(73405),s=i(89659),a=i(42897)
|
|
;const c=new o.TranslatedString("change {title} candle up color",n.t(null,void 0,i(11729))),d=new o.TranslatedString("change {title} candle down color",n.t(null,void 0,i(16817))),p=new o.TranslatedString("change {title} candle border visibility",n.t(null,void 0,i(98998))),u=new o.TranslatedString("change {title} candle border up color",n.t(null,void 0,i(28359))),h=new o.TranslatedString("change {title} candle border down color",n.t(null,void 0,i(16048))),f=new o.TranslatedString("change {title} candle wick visibility",n.t(null,void 0,i(38134))),y=new o.TranslatedString("change {title} candle wick color",n.t(null,void 0,i(85637))),v=new o.TranslatedString("change {title} transparency",n.t(null,void 0,i(19525))),g=new o.TranslatedString("change {title} average HL value",n.t(null,void 0,i(70394))),w=new o.TranslatedString("change {title} variance value",n.t(null,void 0,i(24902))),P=n.t(null,void 0,i(18e3)),_=n.t(null,void 0,i(65229)),T=n.t(null,void 0,i(32807)),D=n.t(null,void 0,i(11149)),S=n.t(null,void 0,i(14138)),m=n.t(null,void 0,i(86464));class b extends r.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=(0,a.removeSpaces)(t),n=new o.TranslatedString(t,this._source.translatedType()),r=e.candleStyle.childs();return{definitions:[(0,l.createTwoColorsPropertyDefinition)({color1:(0,l.getColorDefinitionProperty)(this._propertyApplier,r.upColor,null,c.format({title:n})),color2:(0,l.getColorDefinitionProperty)(this._propertyApplier,r.downColor,null,d.format({title:n}))},{id:`${i}Candle2Colors`,title:P}),(0,l.createTwoColorsPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,r.drawBorder,p.format({title:n})),color1:(0,l.getColorDefinitionProperty)(this._propertyApplier,r.borderUpColor,null,u.format({title:n})),color2:(0,l.getColorDefinitionProperty)(this._propertyApplier,r.borderDownColor,null,h.format({title:n}))},{id:`${i}CandleBorder2Colors`,title:_}),(0,l.createColorPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,r.drawWick,f.format({title:n})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,r.wickColor,null,y.format({title:n}))},{id:`${i}CandleWickColor`,title:T}),(0,l.createTransparencyPropertyDefinition)({transparency:(0,l.convertToDefinitionProperty)(this._propertyApplier,e.transparency,v.format({title:n}))},{id:`${i}Transparency`,title:D})]}}_inputsPropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=(0,a.removeSpaces)(t),n=new o.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,w.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)})]}}}},86349:(e,t,i)=>{i.r(t),i.d(t,{HighlighterDefinitionsViewModel:()=>u});var n=i(91599),o=i(42897),r=i(72769),l=i(89659),s=i(73405),a=i(72674),c=i(44907);const d=new r.TranslatedString("change {title} width",n.t(null,void 0,i(32540))),p=[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 r.TranslatedString(t,this._source.translatedType()),u=(0,o.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,d.format({title:c}))},{id:`${u}Thickness`,title:n.t(null,void 0,i(90814)),options:new l.WatchedValue(p)})]}}_coordinatesPropertyDefinitions(){return null}}},64563:(e,t,i)=>{i.r(t),i.d(t,{HorizontalLineDefinitionsViewModel:()=>u});var n=i(91599),o=i(72769),r=i(73405),l=i(14405),s=i(42897),a=i(44907),c=i(64226),d=i(2171);const p=n.t(null,{context:"linetool point"},i(686));class u extends a.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return(0,c.getLinesStylesPropertiesDefinitions)(this._propertyApplier,e,new o.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,r.createCoordinatesPropertyDefinition)({y:i.property},{id:(0,s.removeSpaces)(`${this._source.name()}Point`),title:p,...i.info})]}}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,d.createTextStyleDefinition)(this._propertyApplier,{...e,textColor:e.textcolor,fontSize:e.fontsize,textOrientation:e.textOrientation},new o.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0})]}}}},44455:(e,t,i)=>{i.r(t),i.d(t,{HorizontalRayDefinitionsViewModel:()=>s});var n=i(72769),o=i(44907),r=i(64226),l=i(2171);class s extends o.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return(0,r.getLinesStylesPropertiesDefinitions)(this._propertyApplier,e,new n.TranslatedString(this._source.name(),this._source.translatedType()))}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,l.createTextStyleDefinition)(this._propertyApplier,{...e,textColor:e.textcolor,fontSize:e.fontsize,textOrientation:e.textOrientation},new n.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0})]}}}},85086:(e,t,i)=>{i.r(t),i.d(t,{IconsDefinitionsViewModel:()=>d});var n=i(91599),o=i(72769),r=i(44907),l=i(73405),s=i(42897)
|
|
;const a=new o.TranslatedString("change {title} color",n.t(null,void 0,i(1728))),c=n.t(null,void 0,i(21666));class d extends r.LineDataSourceDefinitionsViewModel{constructor(e,t){super(e,t)}_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new o.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})]}}}},22251:(e,t,i)=>{i.r(t),i.d(t,{ImageDefinitionsViewModel:()=>p});var n=i(91599),o=i(72769),r=i(73405),l=i(44907);const s=new o.TranslatedString("change image",n.t(null,void 0,i(88919))),a=new o.TranslatedString("change image transparency",n.t(null,void 0,i(71377))),c=n.t(null,void 0,i(23621)),d=n.t(null,void 0,i(11149));class p extends l.LineDataSourceDefinitionsViewModel{destroy(){this._source.properties().childs().url.unsubscribeAll(this),super.destroy()}_stylePropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,r.createImagePropertyDefinition)({url:(0,r.convertToDefinitionProperty)(this._propertyApplier,this._source.absoluteUserImageUrl(),s),transparency:(0,r.convertToDefinitionProperty)(this._propertyApplier,e.transparency,a)},{id:"image",title:c}),(0,r.createTransparencyPropertyDefinition)({transparency:(0,r.convertToDefinitionProperty)(this._propertyApplier,e.transparency,a)},{id:"imageTransparency",title:d})]}}}},16415:(e,t,i)=>{i.r(t),i.d(t,{ParallelChannelDefinitionsViewModel:()=>x});var n=i(91599),o=i(85842),r=i(72769),l=i(73405),s=i(95385),a=i(44907),c=i(2171),d=i(42897),p=i(14405),u=i(1341);const h=new r.TranslatedString("change {title} extending left",n.t(null,void 0,i(33318))),f=new r.TranslatedString("change {title} extending right",n.t(null,void 0,i(10992))),y=new r.TranslatedString("change {title} background visibility",n.t(null,void 0,i(19514))),v=new r.TranslatedString("change {title} background color",n.t(null,void 0,i(77582))),g=[{value:s.VerticalAlign.Bottom,title:n.t(null,void 0,i(65388))},{value:s.VerticalAlign.Middle,title:n.t(null,void 0,i(37648))},{value:s.VerticalAlign.Top,title:n.t(null,void 0,i(65244))}],w=n.t(null,void 0,i(32389)),P=n.t(null,void 0,i(74573)),_=n.t(null,void 0,i(36926)),T=new r.TranslatedString("change {title} level {index} line visibility",n.t(null,void 0,i(78521))),D=new r.TranslatedString("change {title} level {index} line color",n.t(null,void 0,i(15226))),S=new r.TranslatedString("change {title} level {index} line width",n.t(null,void 0,i(53825))),m=new r.TranslatedString("change {title} level {index} line style",n.t(null,void 0,i(26260))),b=new r.TranslatedString("change {title} level {index} line coeff",n.t(null,void 0,i(44475)));class x extends a.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties(),s=t.childs(),a=this._source.name(),c=(0,d.removeSpaces)(a),p=new r.TranslatedString(a,this._source.translatedType()),u=this._source.levelsCount()
|
|
;for(let i=1;i<=u;i++){const n=(0,o.ensureDefined)(t.child(`level${i}`)).childs(),r=(0,l.createLeveledLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.visible,T.format({title:p,index:i})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,n.color,null,D.format({title:p,index:i})),width:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.lineWidth,S.format({title:p,index:i})),style:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.lineStyle,m.format({title:p,index:i})),level:(0,l.convertToDefinitionProperty)(this._propertyApplier,n.coeff,b.format({title:p,index:i}))},{id:`${c}LineLevel${i}`,locked:2===i||6===i});e.push(r)}const g=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,s.extendLeft,h.format({title:p}))},{id:`${c}ExtendLeft`,title:w}),x=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,s.extendRight,f.format({title:p}))},{id:`${c}ExtendRight`,title:P});return e.push((0,l.createPropertyDefinitionsCheckableListOptionsGroup)([g,x],void 0,[],"lineExtend",n.t(null,void 0,i(62726)),void 0,void 0,n.t(null,void 0,i(18656)))),e.push((0,l.createColorPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,s.fillBackground,y.format({title:p})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,s.backgroundColor,s.transparency,v.format({title:p}))},{id:`${c}Background`,title:_})),{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},new r.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,alignmentVerticalItems:g})]}}_coordinatesPropertyDefinitions(){const e=this._source.points().slice(0,2),t=this._source.pointsProperty().childs().points,o=[],s=this._getYCoordinateStepWV();return e.forEach(((e,i)=>{const n=t[i].childs();n&&o.push((0,p.getCoordinatesPropertiesDefinitions)(this._propertyApplier,n,e,s,a.pointPriceBarTitle.format({count:(i+1).toString()}),this._source.name()))})),o.push((0,u.createNumberPropertyDefinition)({value:(0,l.convertToDefinitionProperty)(this._propertyApplier,this._source.priceOffsetProperty(),new r.TranslatedString("Change price offset",n.t(null,void 0,i(55516))))},{id:"PriceOffset",title:"Price offset",type:1,step:s})),{definitions:o}}}},61869:(e,t,i)=>{i.r(t),i.d(t,{PathDefinitionsViewModel:()=>a});var n=i(91599),o=i(72769),r=i(72674),l=i(44907);const s=n.t(null,void 0,i(27912));class a extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,r.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.lineColor,lineWidth:e.lineWidth,lineStyle:e.lineStyle,leftEnd:e.leftEnd,
|
|
rightEnd:e.rightEnd},new o.TranslatedString(this._source.name(),this._source.translatedType()),"Line",{line:s})]}}_coordinatesPropertyDefinitions(){return null}}},57207:(e,t,i)=>{i.r(t),i.d(t,{PatternWithBackgroundDefinitionViewModel:()=>y});var n=i(91599),o=i(72769),r=i(72674),l=i(2171),s=i(44907),a=i(73405),c=i(42897);const d=new o.TranslatedString("change {title} background visibility",n.t(null,void 0,i(19514))),p=new o.TranslatedString("change {title} background color",n.t(null,void 0,i(77582))),u=n.t(null,void 0,i(78011)),h=n.t(null,void 0,i(69407)),f=n.t(null,void 0,i(36926));class y extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new o.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,r.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.color,lineWidth:e.linewidth},i,"Line",{line:h}),(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,p.format({title:i}))},{id:(0,c.removeSpaces)(`${t}BackgroundColor`),title:f})]}}}},33458:(e,t,i)=>{i.r(t),i.d(t,{PatternWithoutBackgroundDefinitionsViewModel:()=>d});var n=i(91599),o=i(72769),r=i(72674),l=i(2171),s=i(44907);const a=n.t(null,void 0,i(78011)),c=n.t(null,void 0,i(69407));class d extends s.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=new o.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,r.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.color,lineWidth:e.linewidth},t,"Line",{line:c})]}}}},23627:(e,t,i)=>{i.r(t),i.d(t,{PitchForkDefinitionsViewModel:()=>u});var n=i(91599),o=i(72769),r=i(73405),l=i(57508),s=i(56777),a=i(89659);const c=new o.TranslatedString("change {title} style",n.t(null,void 0,i(67236))),d=n.t(null,void 0,i(31992)),p=[{value:s.LineToolPitchforkStyle.Original,title:n.t(null,void 0,i(25536))},{value:s.LineToolPitchforkStyle.Schiff2,title:n.t(null,void 0,i(85138))},{value:s.LineToolPitchforkStyle.Schiff,title:n.t(null,void 0,i(58026))},{value:s.LineToolPitchforkStyle.Inside,title:n.t(null,void 0,i(37648))}];class u extends l.PitchBaseDefinitionsViewModel{_stylePropertyDefinitions(){const e=super._stylePropertyDefinitions(),t=this._source.properties().childs(),i=this._source.name(),n=new o.TranslatedString(i,this._source.translatedType()),l=(0,r.createOptionsPropertyDefinition)({option:(0,r.convertToDefinitionProperty)(this._propertyApplier,t.style,c.format({title:n}))},{
|
|
id:`${i}PitchStyle`,title:d,options:new a.WatchedValue(p)});return e.definitions.push(l),e}}},55539:(e,t,i)=>{i.r(t),i.d(t,{PolylinesDefinitionsViewModel:()=>h});var n=i(91599),o=i(72769),r=i(72674),l=i(44907),s=i(73405),a=i(42897);const c=new o.TranslatedString("change {title} background visibility",n.t(null,void 0,i(19514))),d=new o.TranslatedString("change {title} background color",n.t(null,void 0,i(77582))),p=n.t(null,void 0,i(69407)),u=n.t(null,void 0,i(36926));class h extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new o.TranslatedString(t,this._source.translatedType());return{definitions:[(0,r.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.linecolor,lineWidth:e.linewidth},i,"Line",{line:p}),(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,d.format({title:i}))},{id:(0,a.removeSpaces)(`${t}BackgroundColor`),title:u})]}}_coordinatesPropertyDefinitions(){return null}}},36067:(e,t,i)=>{i.r(t),i.d(t,{PredictionDefinitionsViewModel:()=>L});var n=i(91599),o=i(72769),r=i(72674),l=i(44907),s=i(73405),a=i(42897);const c=new o.TranslatedString("change {title} source text color",n.t(null,void 0,i(61551))),d=new o.TranslatedString("change {title} source background color",n.t(null,void 0,i(19993))),p=new o.TranslatedString("change {title} source border color",n.t(null,void 0,i(82766))),u=new o.TranslatedString("change {title} target text color",n.t(null,void 0,i(30216))),h=new o.TranslatedString("change {title} target background color",n.t(null,void 0,i(94021))),f=new o.TranslatedString("change {title} target border color",n.t(null,void 0,i(77119))),y=new o.TranslatedString("change {title} success text color",n.t(null,void 0,i(88043))),v=new o.TranslatedString("change {title} success background color",n.t(null,void 0,i(27830))),g=new o.TranslatedString("change {title} failure text color",n.t(null,void 0,i(28757))),w=new o.TranslatedString("change {title} failure background color",n.t(null,void 0,i(14784))),P=n.t(null,void 0,i(24655)),_=n.t(null,void 0,i(997)),T=n.t(null,void 0,i(70004)),D=n.t(null,void 0,i(87268)),S=n.t(null,void 0,i(13658)),m=n.t(null,void 0,i(93617)),b=n.t(null,void 0,i(90712)),x=n.t(null,void 0,i(37925)),k=n.t(null,void 0,i(26240)),C=n.t(null,void 0,i(50621));class L extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=(0,a.removeSpaces)(t),n=new o.TranslatedString(t,this._source.translatedType());return{definitions:[(0,r.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:P}),(0,
|
|
s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.sourceBackColor,e.transparency,d.format({title:n}))},{id:`${i}SourceBackgroundColor`,title:_}),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.sourceStrokeColor,null,p.format({title:n}))},{id:`${i}SourceBorderColor`,title:T}),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.targetTextColor,null,u.format({title:n}))},{id:`${i}TargetTextColor`,title:D}),(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,f.format({title:n}))},{id:`${i}TargetBorderColor`,title:m}),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.successTextColor,null,y.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:x}),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.failureTextColor,null,g.format({title:n}))},{id:`${i}FailureTextColor`,title:k}),(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,e.failureBackground,null,w.format({title:n}))},{id:`${i}FailureBackgroundColor`,title:C})]}}}},30534:(e,t,i)=>{i.r(t),i.d(t,{PriceLabelDefinitionsViewModel:()=>a});var n=i(91599),o=i(72769),r=i(2171),l=i(44907);const s=n.t(null,void 0,i(79115));class a extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,r.createTextStyleDefinition)(this._propertyApplier,{textColor:e.color,fontSize:e.fontsize,backgroundColor:e.backgroundColor,backgroundTransparency:e.transparency,borderColor:e.borderColor},new o.TranslatedString(this._source.name(),this._source.translatedType()),{customTitles:{text:s}})]}}}},45147:(e,t,i)=>{i.r(t),i.d(t,{ProjectionDefinitionsViewModel:()=>h});var n=i(91599),o=i(72769),r=i(72674),l=i(44907),s=i(73405),a=i(42897);const c=new o.TranslatedString("change {title} background color 1",n.t(null,void 0,i(70067))),d=new o.TranslatedString("change {title} background color 2",n.t(null,void 0,i(67101))),p=n.t(null,void 0,i(69407)),u=n.t(null,void 0,i(36926));class h extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new o.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,d.format({title:i}))},{id:(0,a.removeSpaces)(`${t}Background2Color`),title:u}),(0,r.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.trendline.childs().color,lineWidth:e.linewidth},i,"Line",{line:p})]}}}},84115:(e,t,i)=>{i.r(t),i.d(t,{RectangleDefinitionsViewModel:()=>g});var n=i(91599),o=i(72769),r=i(42897),l=i(95385),s=i(73405),a=i(72674),c=i(40488),d=i(2171);const p=new o.TranslatedString("change {title} extending left",n.t(null,void 0,i(33318))),u=new o.TranslatedString("change {title} extending right",n.t(null,void 0,i(10992))),h=n.t(null,void 0,i(53892)),f=n.t(null,void 0,i(11379)),y=n.t(null,void 0,i(76788)),v=[{value:l.VerticalAlign.Bottom,title:n.t(null,void 0,i(65388))},{value:l.VerticalAlign.Middle,title:n.t(null,void 0,i(37648))},{value:l.VerticalAlign.Top,title:n.t(null,void 0,i(65244))}];class g extends c.GeneralFiguresDefinitionsViewModelBase{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),l=new o.TranslatedString(t,this._source.translatedType()),c=super._stylePropertyDefinitions(),d=e.middleLine.childs(),v=(0,a.createLineStyleDefinition)(this._propertyApplier,{showLine:d.showLine,lineColor:d.lineColor,lineWidth:d.lineWidth,lineStyle:d.lineStyle},l,t,{line:y}),g=c.definitions.findIndex((e=>e.id===(0,r.removeSpaces)(`${t}BackgroundColor`)));g<0?c.definitions.push(v):c.definitions.splice(g,0,v);const w=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.extendLeft,p.format({title:l}))},{id:`${t}ExtendLeft`,title:h}),P=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,e.extendRight,u.format({title:l}))},{id:`${t}ExtendRight`,title:f});return c.definitions.unshift((0,s.createPropertyDefinitionsCheckableListOptionsGroup)([w,P],void 0,[],"lineExtend",n.t(null,void 0,i(62726)),void 0,void 0,n.t(null,void 0,i(18656)))),c}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,d.createTextStyleDefinition)(this._propertyApplier,{textColor:e.textColor,text:e.text,bold:e.bold,italic:e.italic,fontSize:e.fontSize,horzLabelsAlign:e.horzLabelsAlign,vertLabelsAlign:e.vertLabelsAlign},new o.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0,alignmentVerticalItems:v})]}}}},60169:(e,t,i)=>{i.r(t),i.d(t,{RiskRewardDefinitionsViewModel:()=>he});var n=i(42897),o=i(91599),r=i(72769),l=i(72674),s=i(2171),a=i(44907),c=i(73405),d=i(60135);const p=d.t(null,{context:"Risk Reward tool block info title, target profit price offset"},i(77266)),u=d.t(null,{context:"Risk Reward tool block info title, target profit percent offset"},i(14974)),h=d.t(null,{context:"Risk Reward tool block info title, target profit tick offset"},i(71512)),f=d.t(null,{context:"Risk Reward tool block info title, target profit amount"},i(94217)),y=d.t(null,{context:"Risk Reward tool block info title, TP PL"},i(41970)),v=d.t(null,{
|
|
context:"Risk Reward tool block info title"},i(90394)),g=d.t(null,{context:"Risk Reward tool block info title"},i(81527)),w=d.t(null,{context:"Risk Reward tool block info title"},i(42037)),P=d.t(null,{context:"Risk Reward tool block info title, stop level price offset"},i(361)),_=d.t(null,{context:"Risk Reward tool block info title, stop level percent offset"},i(22651)),T=d.t(null,{context:"Risk Reward tool block info title, stop level tick offset"},i(25497)),D=d.t(null,{context:"Risk Reward tool block info title, stop level amount"},i(88378)),S=d.t(null,{context:"Risk Reward tool block info title, SL PL"},i(87715)),m=[{translatedString:new r.TranslatedString("TP price offset",p),propName:"tpPriceOffset"},{translatedString:new r.TranslatedString("TP percent offset",u),propName:"tpPercentOffset"},{translatedString:new r.TranslatedString("TP tick offset",h),propName:"tpTickOffset"},{translatedString:new r.TranslatedString("TP amount",f),propName:"tpAmount"},{translatedString:new r.TranslatedString("TP PL",y),propName:"tpPL"},{translatedString:new r.TranslatedString("Open/closed PL",v),propName:"openClosePL"},{translatedString:new r.TranslatedString("Qty",g),propName:"qty"},{translatedString:new r.TranslatedString("Risk/reward ratio",w),propName:"riskRewardRatio"},{translatedString:new r.TranslatedString("SL price offset",P),propName:"slPriceOffset"},{translatedString:new r.TranslatedString("SL percent offset",_),propName:"slPercentOffset"},{translatedString:new r.TranslatedString("SL tick offset",T),propName:"slTickOffset"},{translatedString:new r.TranslatedString("SL amount",D),propName:"slAmount"},{translatedString:new r.TranslatedString("SL PL",S),propName:"slPL"}];var b=i(22496),x=i(89659);const k=new r.TranslatedString("change {title} stop color",o.t(null,{context:"Risk Reward tool"},i(5517))),C=new r.TranslatedString("change {title} target color",o.t(null,{context:"Risk Reward tool"},i(77816))),L=new r.TranslatedString("change {title} price labels visibility",o.t(null,{context:"Risk Reward tool"},i(60248))),A=new r.TranslatedString("change {title} compact stats mode",o.t(null,{context:"Risk Reward tool"},i(41935))),V=new r.TranslatedString("change {title} always show stats",o.t(null,{context:"Risk Reward tool"},i(89319))),R=new r.TranslatedString("change {title} account size",o.t(null,{context:"Risk Reward tool"},i(73031))),$=(new r.TranslatedString("change {title} currency",o.t(null,{context:"Risk Reward tool"},i(36584))),new r.TranslatedString("change {title} lot size",o.t(null,{context:"Risk Reward tool"},i(91309)))),M=new r.TranslatedString("change {title} risk",o.t(null,{context:"Risk Reward tool"},i(54599))),B=new r.TranslatedString("change {title} risk display mode",o.t(null,{context:"Risk Reward tool"},i(32734))),W=new r.TranslatedString("change {title} entry price",o.t(null,{context:"Risk Reward tool"},i(67841))),z=new r.TranslatedString("change {title} leverage",o.t(null,{context:"Risk Reward tool"},i(6749))),N=new r.TranslatedString("change {title} profit level",o.t(null,{context:"Risk Reward tool"
|
|
},i(35783))),I=new r.TranslatedString("change {title} profit price",o.t(null,{context:"Risk Reward tool"},i(21109))),G=new r.TranslatedString("change {title} stop level",o.t(null,{context:"Risk Reward tool"},i(63259))),O=new r.TranslatedString("change {title} stop price",o.t(null,{context:"Risk Reward tool"},i(14129))),E=new r.TranslatedString("change {title} decimal places",o.t(null,{context:"Risk Reward tool"},i(87893))),F=o.t(null,{context:"Risk Reward tool"},i(16168)),U=o.t(null,{context:"Risk Reward tool"},i(77669)),H=o.t(null,{context:"Risk Reward tool"},i(86556)),j=o.t(null,{context:"Risk Reward tool"},i(92165)),Y=o.t(null,{context:"Risk Reward tool"},i(35641)),q=o.t(null,{context:"Risk Reward tool"},i(61021)),Q=o.t(null,{context:"Risk Reward tool"},i(64512)),X=o.t(null,{context:"Risk Reward tool"},i(95087)),K=o.t(null,{context:"Risk Reward tool"},i(11637)),J=o.t(null,{context:"Risk Reward tool"},i(69327)),Z=o.t(null,{context:"Risk Reward tool"},i(96307)),ee=o.t(null,{context:"Risk Reward tool"},i(62401)),te=o.t(null,{context:"Risk Reward tool"},i(8005)),ie=o.t(null,{context:"Risk Reward tool"},i(75247)),ne=o.t(null,{context:"Risk Reward tool"},i(30537)),oe=o.t(null,{context:"Risk Reward tool"},i(23834)),re=o.t(null,{context:"Risk Reward tool"},i(40182)),le=o.t(null,{context:"Risk Reward tool"},i(34585)),se=o.t(null,{context:"Risk Reward tool"},i(51154)),ae=o.t(null,{context:"Risk Reward tool"},i(47350)),ce=o.t(null,{context:"Risk Reward tool"},i(86044)),de=o.t(null,{context:"Risk Reward tool"},i(82691));function pe(e){return[{value:b.RiskDisplayMode.Percentage,title:ce},{value:b.RiskDisplayMode.Money,title:e||de}]}function ue(){const e=[{title:re,value:"default"}];for(let t=0;t<=10;t++){const n=t,r=n.toString(),l=0===n?o.t(null,{context:"Risk Reward tool qty precision"},i(16637)):o.t(null,{plural:"{value} decimals",count:n,replace:{value:r},context:"Risk Reward tool qty precision"},i(1712));e.push({title:l,value:r})}return e}class he extends a.LineDataSourceDefinitionsViewModel{constructor(e,t){super(e,t);const i=this._source.properties().childs(),n=i.riskDisplayMode.value();this._riskMaxWV=new x.WatchedValue(this._getRiskMax(n)),this._riskStepWV=new x.WatchedValue(this._getRiskStep(n)),this._riskPrecisionWV=new x.WatchedValue(this._getRiskPrecision(n)),this._riskUnitWV=new x.WatchedValue(this._getRiskUnit()),this._riskUnitOptionsWV=new x.WatchedValue(this._getRiskUnitOptions()),this._lotSizeStepWV=new x.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())),i.currency.subscribe(this,(()=>this._updateRiskUnit())),this._undoModel.model().mainSeries().dataEvents().symbolResolved().subscribe(this,this._updateRiskUnit)}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),o=new r.TranslatedString(t,this._source.translatedType()),a=(0,l.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.linecolor,lineWidth:e.linewidth},o,"Line",{line:F}),d=(0,c.createColorPropertyDefinition)({color:(0,c.getColorDefinitionProperty)(this._propertyApplier,e.stopBackground,e.stopBackgroundTransparency,k.format({title:o}))},{id:`${i}StopColor`,title:U}),p=(0,c.createColorPropertyDefinition)({color:(0,c.getColorDefinitionProperty)(this._propertyApplier,e.profitBackground,e.profitBackgroundTransparency,C.format({title:o}))},{id:`${i}ProfitColor`,title:H}),u=(0,s.createTextStyleDefinition)(this._propertyApplier,{textColor:e.textcolor,fontSize:e.fontsize},o,{isEditable:!0,isMultiLine:!0,customTitles:{text:j}}),h=(0,c.createCheckablePropertyDefinition)({checked:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.showPriceLabels,L.format({title:o}))},{id:`${i}ShowPriceLabels`,title:oe}),f=e.infoBlocks.childs(),y=m.map((e=>(0,c.createCheckablePropertyDefinition)({checked:(0,c.convertToDefinitionProperty)(this._undoModel,f[e.propName].childs().visible,e.translatedString)},{id:`${i}${e.translatedString.originalText()}`,title:e.translatedString.translatedText(),notFormatedTitle:!0}))),v=[];v.push((0,c.createPropertyDefinitionsCheckableListOptionsGroup)(y,void 0,[],"riskRewardCheckableListGroup",se));const g=(0,c.createCheckablePropertyDefinition)({checked:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.compact,A.format({title:o}))},{id:`${i}CompactMode`,title:Y});v.push(g);const w=(0,c.createCheckablePropertyDefinition)({checked:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.alwaysShowStats,V.format({title:o}))},{id:`${i}AlwaysShowStats`,title:ne});return v.push(w),{definitions:[a,d,p,u,h,(0,c.createPropertyDefinitionsGeneralGroup)(v,`${i}StatsGroup`,ae)]}}_inputsPropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=(0,n.removeSpaces)(t),o=new r.TranslatedString(t,this._source.translatedType()),l=this._getYCoordinateStepWV();let s;s=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.accountSize,R.format({title:o}))},{id:`${i}AccountSize`,title:ee,type:1,min:new x.WatchedValue(1e-9),max:new x.WatchedValue(1e9),step:new x.WatchedValue(1),unit:this._riskUnitWV});const a=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.lotSize,$.format({title:o}))},{id:`${i}LotSize`,title:te,type:1,min:new x.WatchedValue(1e-9),max:new x.WatchedValue(1e8),step:this._lotSizeStepWV}),d=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.risk,M.format({title:o}),[e=>parseFloat(e)]),unitOptionsValue:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.riskDisplayMode,B.format({title:o}))},{id:`${i}Risk`,title:ie,
|
|
type:1,min:new x.WatchedValue(1e-9),max:this._riskMaxWV,precision:this._riskPrecisionWV,step:this._riskStepWV,unitOptions:this._riskUnitOptionsWV}),p=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.entryPrice,W.format({title:o}))},{id:`${i}EntryPrice`,title:X,type:1,step:l}),u=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.leverage,z.format({title:o}))},{id:`${i}LEverage`,title:K,type:1,step:new x.WatchedValue(.1),min:new x.WatchedValue(1),max:new x.WatchedValue(1e4)}),h=(0,c.createPropertyDefinitionsGeneralGroup)([s,a,d,p,u],`${i}AccountRisk`),f=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.profitLevel,N.format({title:o}))},{id:`${i}ProfitLevelTicks`,title:q,type:0,min:new x.WatchedValue(0),max:new x.WatchedValue(1e9),step:new x.WatchedValue(1)}),y=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.targetPrice,I.format({title:o}),[e=>e,e=>this._source.prepareProfitPrice(e)])},{id:`${i}ProfitLevelPrice`,title:Q,type:1,step:l}),v=(0,c.createPropertyDefinitionsGeneralGroup)([f,y],`${i}ProfitLevel`,J),g=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.stopLevel,G.format({title:o}))},{id:`${i}StopLevelTicks`,title:q,type:0,min:new x.WatchedValue(0),max:new x.WatchedValue(1e9),step:new x.WatchedValue(1)}),w=(0,c.createNumberPropertyDefinition)({value:(0,c.convertToDefinitionProperty)(this._propertyApplier,e.stopPrice,O.format({title:o}),[e=>e,e=>this._source.prepareStopPrice(e)])},{id:`${i}StopLevelPrice`,title:Q,type:1,step:l}),P=(0,c.createPropertyDefinitionsGeneralGroup)([g,w],`${i}StopLevel`,Z),_=(0,c.createOptionsPropertyDefinition)({option:(0,c.convertToDefinitionProperty)(this._undoModel,e.qtyPrecision,E.format({title:o}))},{id:`${o}QtyPrecision`,title:le,options:new x.WatchedValue(ue())});return{definitions:[h,v,P,(0,c.createPropertyDefinitionsGeneralGroup)([_],`${i}QtyPrecision`)]}}_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())}_updateRiskUnit(){this._riskUnitWV.setValue(this._getRiskUnit()),this._riskUnitOptionsWV.setValue(this._getRiskUnitOptions())}_getRiskMax(e){return e===b.RiskDisplayMode.Percentage?100:this._source.properties().childs().accountSize.value()}_getRiskStep(e){return e===b.RiskDisplayMode.Percentage?.01:1}_getRiskPrecision(e){if(e===b.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?pe(e.currency_code):pe()}}},14617:(e,t,i)=>{i.r(t),i.d(t,{SignpostDefinitionsViewModel:()=>g});var n=i(91599),o=i(72769),r=i(42897),l=i(89659),s=i(73405),a=i(2171),c=i(14405),d=i(44907);const p=new o.TranslatedString("change vertical position Y coordinate",n.t(null,void 0,i(10206))),u=new o.TranslatedString("change {title} emoji visibility",n.t(null,void 0,i(94449))),h=new o.TranslatedString("change {title} image background color",n.t(null,void 0,i(87777))),f=new o.TranslatedString("change {title} emoji",n.t(null,void 0,i(65078))),y=n.t(null,{context:"linetool point"},i(83511)),v=n.t(null,void 0,i(92494));class g extends d.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 o.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,p),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,r.removeSpaces)(`${t}Coordinates${y}`),title:y,...i.info,...n.info})]}}_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new o.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,f.format({title:i}))},{id:(0,r.removeSpaces)(`${t}Emoji${v}`),title:v})]}}}},98237:(e,t,i)=>{i.r(t),i.d(t,{TextDefinitionsViewModel:()=>l});var n=i(2171),o=i(44907),r=i(72769);class l extends o.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 r.TranslatedString(this._source.name(),this._source.translatedType()),{
|
|
isEditable:!0,isMultiLine:!0})]}}}},68552:(e,t,i)=>{i.r(t),i.d(t,{TimeCyclesPatternDefinitionsViewModel:()=>h});var n=i(91599),o=i(72769),r=i(72674),l=i(44907),s=i(73405),a=i(42897);const c=new o.TranslatedString("change {title} background visibility",n.t(null,void 0,i(19514))),d=new o.TranslatedString("change {title} background color",n.t(null,void 0,i(77582))),p=n.t(null,void 0,i(27912)),u=n.t(null,void 0,i(36926));class h extends l.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=new o.TranslatedString(t,this._source.translatedType());return{definitions:[(0,r.createLineStyleDefinition)(this._propertyApplier,{lineColor:e.linecolor,lineWidth:e.linewidth,lineStyle:e.linestyle},i,"Line",{line:p}),(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,d.format({title:i}))},{id:(0,a.removeSpaces)(`${t}BackgroundColor`),title:u})]}}}},28291:(e,t,i)=>{i.r(t),i.d(t,{TrendAngleDefinitionsViewModel:()=>f});var n=i(91599),o=i(72769),r=i(73405),l=i(44907),s=i(89659),a=i(14405),c=i(20364);const d=new o.TranslatedString("change angle",n.t(null,void 0,i(96360))),p=n.t(null,void 0,i(99506)),u=n.t(null,void 0,i(79115)),h=n.t(null,{context:"linetool point"},i(21198));class f 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 o=(0,r.createNumberPropertyDefinition)({value:(0,r.convertToDefinitionProperty)(this._propertyApplier,this._source.properties().childs().angle,d)},{id:"TrendLineAngleCoordinate",title:p,min:new s.WatchedValue(-360),max:new s.WatchedValue(360),step:new s.WatchedValue(1)});return t.push(o),{definitions:t}}_stylePropertyDefinitions(){const e=this._source.properties().childs();return(0,c.getTrendLineToolsStylePropertiesDefinitions)(this._propertyApplier,e,new o.TranslatedString(this._source.name(),this._source.translatedType()),{text:u})}}},72403:(e,t,i)=>{i.r(t),i.d(t,{TrendBasedFibTimeDefinitionsViewModel:()=>k});var n=i(85842),o=i(91599),r=i(72769),l=i(72674),s=i(73405),a=i(44907),c=i(23157),d=i(89659),p=i(42897),u=i(75840)
|
|
;const h=new r.TranslatedString("change {title} level {index} line visibility",o.t(null,void 0,i(78521))),f=new r.TranslatedString("change {title} level {index} line color",o.t(null,void 0,i(15226))),y=new r.TranslatedString("change {title} level {index} line width",o.t(null,void 0,i(53825))),v=new r.TranslatedString("change {title} level {index} line style",o.t(null,void 0,i(26260))),g=new r.TranslatedString("change {title} level {index} line coeff",o.t(null,void 0,i(44475))),w=new r.TranslatedString("change {title} all lines color",o.t(null,void 0,i(80264))),P=new r.TranslatedString("change {title} background visibility",o.t(null,void 0,i(19514))),_=new r.TranslatedString("change {title} background transparency",o.t(null,void 0,i(44263))),T=new r.TranslatedString("change {title} labels visibility",o.t(null,void 0,i(11080))),D=new r.TranslatedString("change {title} labels alignment",o.t(null,void 0,i(17417))),S=o.t(null,void 0,i(32145)),m=o.t(null,void 0,i(64846)),b=o.t(null,void 0,i(36926)),x=o.t(null,void 0,i(27150));class k extends a.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=[],t=this._source.properties(),i=t.childs(),o=this._source.name(),a=(0,p.removeSpaces)(o),k=new r.TranslatedString(o,this._source.translatedType()),C=i.trendline.childs(),L=(0,l.createLineStyleDefinition)(this._propertyApplier,{showLine:C.visible,lineColor:C.color,lineStyle:C.linestyle,lineWidth:C.linewidth},k,"TrendLine",{line:S});e.push(L);const A=this._source.levelsCount();for(let i=1;i<=A;i++){const o=(0,n.ensureDefined)(t.child(`level${i}`)).childs(),r=(0,s.createLeveledLinePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,o.visible,h.format({title:k,index:i})),color:(0,s.getColorDefinitionProperty)(this._propertyApplier,o.color,null,f.format({title:k,index:i})),width:(0,s.convertToDefinitionProperty)(this._propertyApplier,o.linewidth,y.format({title:k,index:i})),style:(0,s.convertToDefinitionProperty)(this._propertyApplier,o.linestyle,v.format({title:k,index:i})),level:(0,s.convertToDefinitionProperty)(this._propertyApplier,o.coeff,g.format({title:k,index:i}))},{id:`${a}LineLevel${i}`});e.push(r)}const V=(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(this._propertyApplier,new u.CollectibleColorPropertyUndoWrapper((0,n.ensureNotNull)(this._source.lineColorsProperty()),this._propertyApplier,null),null,w.format({title:k}),!0)},{id:`${a}AllLineColor`,title:m});e.push(V);const R=(0,s.createTransparencyPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.fillBackground,P.format({title:k})),transparency:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.transparency,_.format({title:k}))},{id:`${a}Background`,title:b});e.push(R);const $=(0,s.createTwoOptionsPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.showCoeffs,T.format({title:k})),option1:(0,s.convertToDefinitionProperty)(this._propertyApplier,i.horzLabelsAlign,D.format({title:k})),option2:(0,
|
|
s.convertToDefinitionProperty)(this._propertyApplier,i.vertLabelsAlign,D.format({title:k}))},{id:`${a}Labels`,title:x,optionsItems1:new d.WatchedValue(c.availableAlignmentHorizontalItems),optionsItems2:new d.WatchedValue(c.availableAlignmentVerticalItems)});return e.push($),{definitions:e}}}},44252:(e,t,i)=>{i.r(t),i.d(t,{TrendLineDefinitionsViewModel:()=>s});var n=i(72769),o=i(44907),r=i(20364),l=i(2171);class s extends o.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return(0,r.getTrendLineToolsStylePropertiesDefinitions)(this._propertyApplier,e,new n.TranslatedString(this._source.name(),this._source.translatedType()))}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,l.createTextStyleDefinition)(this._propertyApplier,{...e,textColor:e.textcolor,fontSize:e.fontsize},new n.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0})]}}}},23053:(e,t,i)=>{i.r(t),i.d(t,{VerticalLineDefinitionsViewModel:()=>u});var n=i(91599),o=i(72769),r=i(73405),l=i(14405),s=i(64226),a=i(42897),c=i(44907),d=i(2171);const p=n.t(null,{context:"linetool point"},i(99126));class u extends c.LineDataSourceDefinitionsViewModel{_stylePropertyDefinitions(){const e=this._source.properties().childs();return(0,s.getLinesStylesPropertiesDefinitions)(this._propertyApplier,e,new o.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,r.createCoordinatesPropertyDefinition)({x:t.property},{id:(0,a.removeSpaces)(`${this._source.name()}Point1`),title:p,...t.info})]}}_textPropertyDefinitions(){const e=this._source.properties().childs();return{definitions:[(0,d.createTextStyleDefinition)(this._propertyApplier,{...e,textColor:e.textcolor,fontSize:e.fontsize,textOrientation:e.textOrientation},new o.TranslatedString(this._source.name(),this._source.translatedType()),{isEditable:!0,isMultiLine:!0})]}}}},33659:(e,t,i)=>{i.r(t),i.d(t,{AnchoredVWAPDefinitionsViewModel:()=>E});var n=i(42897),o=i(91599),r=i(72769),l=(i(53225),i(73405)),s=i(54011),a=i(76210)
|
|
;const c=new r.TranslatedString("change {title} VWAP line color",o.t(null,void 0,i(57306))),d=new r.TranslatedString("change {title} VWAP line width",o.t(null,void 0,i(95905))),p=new r.TranslatedString("change {title} lower band #1 line visibility",o.t(null,void 0,i(36233))),u=new r.TranslatedString("change {title} lower band #1 line color",o.t(null,void 0,i(35008))),h=new r.TranslatedString("change {title} lower band #1 line width",o.t(null,void 0,i(5855))),f=new r.TranslatedString("change {title} upper band #1 line visibility",o.t(null,void 0,i(45803))),y=new r.TranslatedString("change {title} upper band #1 line color",o.t(null,void 0,i(88920))),v=new r.TranslatedString("change {title} upper band #1 line width",o.t(null,void 0,i(31591))),g=new r.TranslatedString("change {title} lower band #2 line visibility",o.t(null,void 0,i(68609))),w=new r.TranslatedString("change {title} lower band #2 line color",o.t(null,void 0,i(75538))),P=new r.TranslatedString("change {title} lower band #2 line width",o.t(null,void 0,i(32553))),_=new r.TranslatedString("change {title} upper band #2 line visibility",o.t(null,void 0,i(75513))),T=new r.TranslatedString("change {title} upper band #2 line color",o.t(null,void 0,i(51354))),D=new r.TranslatedString("change {title} upper band #2 line width",o.t(null,void 0,i(89953))),S=new r.TranslatedString("change {title} lower band #3 line visibility",o.t(null,void 0,i(6257))),m=new r.TranslatedString("change {title} lower band #3 line color",o.t(null,void 0,i(66914))),b=new r.TranslatedString("change {title} lower band #3 line width",o.t(null,void 0,i(19865))),x=new r.TranslatedString("change {title} upper band #3 line visibility",o.t(null,void 0,i(99081))),k=new r.TranslatedString("change {title} upper band #3 line color",o.t(null,void 0,i(31306))),C=new r.TranslatedString("change {title} upper band #3 line width",o.t(null,void 0,i(15729))),L=new r.TranslatedString("change {title} background visibility",o.t(null,void 0,i(19514))),A=new r.TranslatedString("change {title} background color",o.t(null,void 0,i(77582))),V=new r.TranslatedString("change {title} price visibility",o.t(null,void 0,i(67171))),R=o.t(null,void 0,i(51167)),$=o.t(null,void 0,i(5911)),M=o.t(null,void 0,i(2771)),B=o.t(null,void 0,i(92433)),W=o.t(null,void 0,i(68533)),z=o.t(null,void 0,i(32577)),N=o.t(null,void 0,i(57093)),I=o.t(null,void 0,i(84495)),G=o.t(null,void 0,i(51809));function O(e,t,i,n,o,r,s,c,d){return(0,l.createLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,new a.StudyPlotVisibleProperty(t.display),i.format({title:d})),color:(0,l.getColorDefinitionProperty)(e,t.color,t.transparency??null,n.format({title:d})),width:(0,l.convertToDefinitionProperty)(e,t.linewidth,o.format({title:d}))},{id:`${c}${s}`,title:r})}class E extends s.StudyLineDataSourceDefinitionsViewModel{constructor(e,t){super(e,t)}_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=(0,
|
|
n.removeSpaces)(t),o=new r.TranslatedString(t,this._source.translatedType()),s=e.styles.childs().VWAP.childs(),a=[(0,l.createLinePropertyDefinition)({color:(0,l.getColorDefinitionProperty)(this._propertyApplier,s.color,s.transparency??null,c.format({title:o})),width:(0,l.convertToDefinitionProperty)(this._propertyApplier,s.linewidth,d.format({title:o}))},{id:`${i}VWAPLine`,title:R})],E=this._source.metaInfo();if(E.styles?.UpperBand&&E.styles?.LowerBand){const t=e.styles.childs().LowerBand.childs(),n=O(this._propertyApplier,t,p,u,h,$,"LowerBandLine",i,o),r=e.styles.childs().UpperBand.childs(),l=O(this._propertyApplier,r,f,y,v,M,"UpperBandLine",i,o);a.push(n,l)}if(E?.area){const t=e.areaBackground.childs(),n=(0,l.createLinePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,t.fillBackground,L.format({title:o})),color:(0,l.getColorDefinitionProperty)(this._propertyApplier,t.backgroundColor,t.transparency,A.format({title:o}))},{id:`${i}Background`,title:I});a.push(n)}if(E.styles?.UpperBand_2&&E.styles?.LowerBand_2&&E.styles?.UpperBand_3&&E.styles?.LowerBand_3){const t=e.styles.childs().LowerBand_2.childs(),n=O(this._propertyApplier,t,g,w,P,B,"LowerBand2Line",i,o),r=e.styles.childs().UpperBand_2.childs(),l=O(this._propertyApplier,r,_,T,D,W,"UpperBand2Line",i,o),s=e.styles.childs().LowerBand_3.childs(),c=O(this._propertyApplier,s,S,m,b,z,"LowerBand3Line",i,o),d=e.styles.childs().UpperBand_3.childs(),p=O(this._propertyApplier,d,x,k,C,N,"UpperBand3Line",i,o);a.push(n,l,c,p)}const F=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._propertyApplier,e.axisLabelVisible,V.format({title:o}))},{id:`${i}ShowPrice`,title:G});return a.push(F),{definitions:a}}_coordinatesPropertyDefinitions(){return null}}},54011:(e,t,i)=>{i.r(t),i.d(t,{StudyLineDataSourceDefinitionsViewModel:()=>d});var n=i(91599),o=(i(53225),i(36870)),r=i(73405),l=i(44907),s=i(5003),a=i(14405),c=i(42897);class d extends l.LineDataSourceDefinitionsViewModel{constructor(e,t){super(e,t)}_inputsPropertyDefinitions(){return{definitions:[(0,r.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 o.Delegate,resolvedSymbolInfoBySymbol:e=>null}})]}}_coordinatesPropertyDefinitions(){const e=this._source.points(),t=this._source.pointsProperty().childs().points,o=[];return e.forEach(((e,l)=>{const s=t[l].childs();if(!s)return;const d=(0,a.getCoordinateXMetaInfo)(this._propertyApplier,s);o.push((0,r.createCoordinatesPropertyDefinition)({x:d.property},{id:(0,c.removeSpaces)(`${this._source.name()}Point${l}`),title:n.t(null,{context:"linetool point"},i(76811)).format({count:(l+1).toString()}),...d.info}))})),{definitions:o}}}},20714:(e,t,i)=>{i.d(t,{isCustomStudy:()=>o});const n={VbPFixed:!0,PivotPointsStandard:!0,VbPVisible:!0,VbPAnchored:!0};function o(e){return e in n}},
|
|
5003:(e,t,i)=>{i.d(t,{MetaInfoHelper:()=>u});var n=i(85842),o=i(73775),r=i(6620),l=i(65164),s=i(7321),a=i(16570);function c(e){return!e.groupId&&!e.isHidden&&e.id!==a.RangeDependentStudyInputNames.FirstBar&&e.id!==a.RangeDependentStudyInputNames.LastBar}var d=i(20714);const p=(0,o.getLogger)("Platform.GUI.PropertyDialog.Indicators.MetaInfo");class u{constructor(e){this._metaInfo=e}hasUserEditableInputs(){return this._metaInfo.inputs.some(c)}getUserEditableInputs(){return this._metaInfo.inputs.filter(c)}hasUserEditableProperties(){return r.StudyMetaInfo.isScriptStrategy(this._metaInfo)}hasUserEditableStyles(){const e=this._metaInfo;return e.plots.length>0||void 0!==e.bands||void 0!==e.filledAreas||(0,d.isCustomStudy)(e.shortId)||r.StudyMetaInfo.isScriptStrategy(this._metaInfo)||Object.values(e.graphics).some((e=>void 0!==e))}getUserEditablePlots(){const e=new Set,t=this._metaInfo;return t.plots.filter((i=>{if((0,l.isColorerPlot)(i)||(0,l.isTextColorerPlot)(i)||(0,l.isDataOffsetPlot)(i)||(0,l.isOhlcColorerPlot)(i)||(0,l.isAlertConditionPlot)(i)||(0,l.isDataPlot)(i))return!1;if((0,l.isOhlcPlot)(i)){const o=i.target;if(e.has(o))return!1;e.add(o);const r=(0,n.ensureDefined)(t.ohlcPlots);return!(0,n.ensureDefined)(r[o]).isHidden}{const e=t.styles?t.styles[i.id]:void 0;return void 0===e||!e.isHidden}}))}hasUserEditableOptions(){return this.hasUserEditableInputs()||this.hasUserEditableProperties()||this.hasUserEditableStyles()}getStrategyProperties(){const e=this._metaInfo,t=e.inputs.filter(f),i={...h};for(const n of t){const t=n.internalID;i[t]=n,h.hasOwnProperty(t)||p.logWarn(`Unknown strategy input internal id ${t} in ${e.fullId}`)}return(0,s.clone)(i)}}const h={currency:void 0,backtest_fill_limits_assumption:void 0,calc_on_every_tick:void 0,calc_on_order_fills:void 0,commission_value:void 0,commission_type:void 0,initial_capital:void 0,pyramiding:void 0,slippage:void 0,default_qty_type:void 0,default_qty_value:void 0,margin_long:void 0,margin_short:void 0,use_bar_magnifier:void 0,process_orders_on_close:void 0,fill_orders_on_standard_ohlc:void 0};function f(e){return"strategy_props"===e.groupId}},28751:(e,t,i)=>{i.d(t,{createPropertiesObject:()=>s});var n=i(7321),o=i(75191);function r(e,t,i){for(const o of Object.keys(e.levels??{}))if(e.levels[o]&&(0,n.isSameType)(e.levels[o],t.typecheck())){let n=t.tpl();i.names.forEach(((i,r)=>{n=t.fill(""+r,i,e.levels[o],n)})),e.levels[o]=n}return e}class l extends o.LevelsProperty{constructor(e,t,i){super({defaultName:e,state:i,map:{names:["width","color","visible"]},levelsIterator:r,theme:t})}}function s(e,t,i){return new l(e,t,i)}},76429:(e,t,i)=>{i.r(t),i.d(t,{LineToolGannComplex:()=>u});var n,o=i(57415),r=i(85842),l=i(95440),s=i(82014),a=i(77417),c=i(28751),d=i(33993),p=i(14491);!function(e){e[e.ScaleRatioStep=1e-7]="ScaleRatioStep",e[e.ScaleRatioPrecision=7]="ScaleRatioPrecision",e.ScaleRatioInitialValue=""}(n||(n={}));class u extends s.LineDataSource{constructor(e,t,n,o){super(e,t??u.createProperties(e.backgroundTheme().spawnOwnership()),n,o),this.version=2,
|
|
this._scaleRatioFormatter=new l.LimitedPrecisionNumericFormatter(7),this.version=2,Promise.all([i.e(8263),i.e(144),i.e(4073),i.e(1912),i.e(1495)]).then(i.bind(i,20936)).then((({GannComplexPaneView:e})=>{this._setPaneViews([new e(this,this.model())])}));const r=this.properties();this._adjustScaleRatio(r),r.subscribe(this,this._adjustScaleRatio),r.childs().scaleRatio.subscribe(this,this._correctFirstPoint),this._syncStateExclusions.push("scaleRatio"),r.onRestoreFactoryDefaults().subscribe(this,this._handleRestoringFactoryDefaults),this._onTemplateApplying.subscribe(this,this._handleTemplateApplying),this._onTemplateApplied.subscribe(this,this._correctFirstPoint)}migrateVersion(e,t,i){1===e&&(this._points.length>=this.pointsCount()?setTimeout((()=>this._migratePoint())):this._timePoint.length>=this.pointsCount()&&this._pointAdded.subscribe(this,this._migratePoint))}destroy(){const e=this.properties();e.unsubscribe(this,this._adjustScaleRatio),e.childs().scaleRatio.unsubscribe(this,this._correctFirstPoint),e.onRestoreFactoryDefaults().unsubscribe(this,this._handleRestoringFactoryDefaults),this._onTemplateApplying.unsubscribe(this,this._handleTemplateApplying),this._onTemplateApplied.unsubscribe(this,this._correctFirstPoint),super.destroy()}pointsCount(){return 2}name(){return"Gann Square"}addPoint(e,t,i){this._points.length>1&&this._points.pop();const n=super.addPoint(e,t,i),o=this.priceScale();return!(0,r.ensureNotNull)(o).isLog()&&n&&this._correctFirstPoint(),n}setPoint(e,t,i){super.setPoint(e,t,i),void 0!==i&&i.shift()?this._correctPoint(e):this._correctScaleRatio()}setLastPoint(e,t){const i=this.priceScale();return(0,r.ensureNotNull)(i).isLog()||(this._points[1]={...e,interval:this._model.mainSeries().interval()},this._correctPoint(1)),super.setLastPoint(e,t)}isReversed(){return this.properties().childs().reverse.value()}levelsCount(){return this.properties().childs().levels.childCount()}levels(){const e=[],t=this.properties().childs(),i=t.levels.childCount();for(let n=0;n<i;n++){const i=t.levels.childs()[n].childs();e.push({index:n,visible:i.visible.value(),color:i.color.value(),width:i.width.value()})}return e}fanLinesCount(){return this.properties().childs().fanlines.childCount()}fanLines(){const e=[],t=this.properties().childs(),i=t.fanlines.childCount();for(let n=0;n<i;n++){const i=t.fanlines.childs()[n].childs();e.push({index:n,visible:i.visible.value(),x:i.x.value(),y:i.y.value(),color:i.color.value(),width:i.width.value()})}return e}arcsCount(){return this.properties().childs().arcs.childCount()}arcs(){const e=[],t=this.properties().childs(),i=t.arcs.childCount();for(let n=0;n<i;n++){const i=t.arcs.childs()[n].childs();e.push({index:n,visible:i.visible.value(),x:i.x.value(),y:i.y.value(),color:i.color.value(),width:i.width.value()})}return e}arcsBackgroundTransparency(){return this.properties().childs().arcsBackground.childs().transparency.value()}isArcsBackgroundFilled(){return this.properties().childs().arcsBackground.childs().fillBackground.value()}isLabelsVisible(){
|
|
return this.properties().childs().showLabels.value()}getLabelsStyle(){const e=this.properties().childs(),{fontSize:t,bold:i,italic:n}=e.labelsStyle.childs(),o=e.levels.childCount();return{textColor:e.levels.childs()[o-1].childs().color.value(),font:p.CHART_FONT_FAMILY,fontSize:t.value(),bold:i.value(),italic:n.value()}}getScaleRatioStep(){return 1e-7}getScaleRatioFormatter(){return this._scaleRatioFormatter}getPriceDiff(){const e=this.points();if(e.length<2)return null;const[t,i]=e;return i.price-t.price}getIndexDiff(){const e=this.points();if(e.length<2)return null;const[t,i]=e;return i.index-t.index}getScaleRatio(){const e=this.getPriceDiff(),t=this.getIndexDiff();return null!==e&&null!==t&&0!==t?Math.abs(e/t):null}static createProperties(e,t){const i=(0,c.createPropertiesObject)("linetoolganncomplex",e,t);return this._configureProperties(i),i}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1982),i.e(7686),i.e(2428),i.e(3920),i.e(9328)]).then(i.bind(i,12374)).then((e=>e.GannComplexAndFixedDefinitionsViewModel))}static _configureProperties(e){super._configureProperties(e),e.addExcludedKey("scaleRatio",1);const t=[],i=[],n=e.childs();{const e=n.levels.childCount();for(let o=0;o<e;o++){const e=n.levels.childs()[o].childs();t.push(e.width),i.push(e.color)}}{const e=n.fanlines.childCount();for(let o=0;o<e;o++){const e=n.fanlines.childs()[o].childs();t.push(e.width),i.push(e.color)}}{const e=n.arcs.childCount();for(let o=0;o<e;o++){const e=n.arcs.childs()[o].childs();t.push(e.width),i.push(e.color)}}e.addChild("linesColors",new d.LineToolColorsProperty(i)),e.addChild("linesWidths",new d.LineToolWidthsProperty(t))}_correctScaleRatio(){const e=this.properties().childs(),t=this.getScaleRatio();e.scaleRatio.setValue(t)}_getAdjustedScaleRatio(){const e=this.model().mainSeries().priceScale(),t=this.model().timeScale();return(0,a.scaleRatio)(t,e)}_adjustScaleRatio(e){const t=e.scaleRatio.value();""!==t&&null!==t||e.scaleRatio.setValue(this._getAdjustedScaleRatio())}_correctPoint(e){if(this._points.length<2)return;const t=this.getIndexDiff();if(null===t)return;const i=this.properties().childs().scaleRatio.value();if(null!==i){const n=this._points[e],o=0===e?this._points[1]:this._points[0],r=n.price-o.price>0,l=n.index-o.index>0;let s=r&&!l||!r&&l?-1:1;0===e&&(s=-s),n.price=o.price+s*t*i,this._pointChanged.fire(e)}this._normalizePoints()}_correctFirstPoint(){this._correctPoint(this.isReversed()?0:1)}_handleRestoringFactoryDefaults(){this.properties().childs().scaleRatio.setValue(this._getAdjustedScaleRatio())}_handleTemplateApplying(e){""===e.scaleRatio&&(e.scaleRatio=this._getAdjustedScaleRatio())}_migratePoint(){if(this.points().length<this.pointsCount())return;const e=this._getScreenPoints();if(null===e)return;const t=(0,r.ensureNotNull)(this.screenPointToPoint(e[1]));this.setPoint(1,t),this._pointAdded.unsubscribe(this,this._migratePoint)}_getScreenPoints(){const e=this._calcAngle();if(null===e)return null;let[t,i]=this.points();this.isReversed()&&([t,i]=[i,t]);const n=(0,
|
|
r.ensureNotNull)(this.pointToScreenPoint(t)),l=(0,r.ensureNotNull)(this.pointToScreenPoint(i)),s=Math.sqrt(Math.pow(n.x-l.x,2)+Math.pow(n.y-l.y,2)),a=new o.Point(Math.cos(e),-Math.sin(e)),c=a.normalized(),d=c.x<0?-1:1,p=c.y<0?-1:1;return[n.addScaled(a,s),n.add(new o.Point(5*s*d,5*s*p))]}_calcAngle(){const[e,t]=this.points(),i=(0,r.ensureNotNull)(this.pointToScreenPoint(e));let n=(0,r.ensureNotNull)(this.pointToScreenPoint(t)).subtract(i);if(n.length()>0){n=n.normalized();let e=Math.acos(n.x);return n.y>0&&(e=-e),e}return null}}},22496:(e,t,i)=>{var n;i.d(t,{RiskDisplayMode:()=>n}),function(e){e.Percentage="percents",e.Money="money"}(n||(n={}))},76210:(e,t,i)=>{i.d(t,{StudyPlotVisibleProperty:()=>r});var n=i(944),o=i(68484);class r extends o.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?4294967295:0)}setValueSilently(e){this._displayProperty.setValueSilently(e?4294967295:0)}storeStateIfUndefined(){return!1}weakReference(){return(0,n.weakReference)(this)}ownership(){return(0,n.ownership)(this)}_displayPropertyValueChanged(){this.fireChanged()}}}}]); |