Files
ai/charting_library/bundles/study-property-pages-with-definitions.9c9de31077f18c1bec20.js

8 lines
22 KiB
JavaScript

"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8381],{44907:(e,t,i)=>{i.r(t),i.d(t,{LineDataSourceDefinitionsViewModel:()=>g,LineDataSourceTabTypes:()=>s,pointPriceBarTitle:()=>v});var s,r=i(85842),o=i(91599),n=i(72769),l=(i(53225),i(73405)),a=i(18632),u=i(89659),p=i(5258),d=i(14405),c=i(78379),y=i(65366);!function(e){e.Visibility="visibility",e.Coordinates="coordinates",e.Style="style",e.Text="text",e.Inputs="inputs"}(s||(s={}));const h=o.t(null,void 0,i(87733)),_=o.t(null,void 0,i(18817)),f=o.t(null,void 0,i(31992)),P=o.t(null,void 0,i(79115)),S=o.t(null,void 0,i(2931)),v=o.t(null,{context:"linetool point"},i(59712));class g{constructor(e,t){this._yCoordinateStepWV=null,this._propertyPages=[],this._source=t,this._undoModel=e,this._ownerSource=(0,r.ensureNotNull)(this._source.ownerSource()),this._propertyApplier=new c.PropertyApplierWithoutSavingChart((()=>e)),this._createPropertyRages()}destroy(){null!==this._yCoordinateStepWV&&(this._source.ownerSourceChanged().unsubscribeAll(this),this._ownerSource.priceStepChanged().unsubscribeAll(this)),this._source.pointAdded().unsubscribeAll(this),this._propertyPages.forEach((e=>{(0,l.destroyDefinitions)(e.definitions.value())}))}propertyPages(){return Promise.resolve(this._propertyPages)}_createPropertyRages(){this._propertyPages=[];const e=this._createInputsPropertyPage();null!==e&&this._propertyPages.push(e);const t=this._createStylePropertyPage();null!==t&&this._propertyPages.push(t);const i=this._createTextPropertyPage();null!==i&&this._propertyPages.push(i);const s=this._createCoordinatesPropertyPage();null!==s&&(s.visible=this._source.hasEditableCoordinates(),this._propertyPages.push(s));const r=this._createVisibilitiesPropertyPage();this._propertyPages.push(r)}_createVisibilitiesPropertyPage(){const e=this._source.properties().childs().intervalsVisibilities.childs();return(0,a.createPropertyPage)((0,p.getIntervalsVisibilitiesPropertiesDefinitions)(this._propertyApplier,e,new n.TranslatedString(this._source.name(),this._source.title(y.TitleDisplayTarget.StatusLine,!0))),"visibility",h)}_createCoordinatesPropertyPage(){const e=this._coordinatesPropertyDefinitions();return null!==e?(e.definitions.length<this._source.pointsCount()&&this._source.pointAdded().subscribe(this,this._updateCoordinatesPropertyDefinitons),(0,a.createPropertyPage)(e,"coordinates",_)):null}_getYCoordinateStepWV(){return null===this._yCoordinateStepWV&&(this._yCoordinateStepWV=new u.WatchedValue(function(e){if(null!==e){const t=e.priceStep();if(null!==t)return t}return 1}(this._source.ownerSource())),this._ownerSource.priceStepChanged().subscribe(this,(()=>this._updateYCoordinateStep())),this._source.ownerSourceChanged().subscribe(this,(()=>{this._ownerSource.priceStepChanged().unsubscribeAll(this),this._ownerSource=(0,r.ensureNotNull)(this._source.ownerSource()),this._ownerSource.priceStepChanged().subscribe(this,(()=>this._updateYCoordinateStep()))}))),this._yCoordinateStepWV}_coordinatesPropertyDefinitions(){
const e=this._source.points(),t=this._source.pointsProperty().childs().points,i=[],s=this._getYCoordinateStepWV();return e.forEach(((e,r)=>{const o=t[r].childs();o&&i.push((0,d.getCoordinatesPropertiesDefinitions)(this._propertyApplier,o,e,s,v.format({count:(r+1).toString()}),this._source.name()))})),{definitions:i}}_createStylePropertyPage(){const e=this._stylePropertyDefinitions();return null!==e?(0,a.createPropertyPage)(e,"style",f):null}_stylePropertyDefinitions(){return null}_createTextPropertyPage(){const e=this._textPropertyDefinitions();return null!==e?(0,a.createPropertyPage)(e,"text",P):null}_textPropertyDefinitions(){return null}_createInputsPropertyPage(){const e=this._inputsPropertyDefinitions();return null!==e?(0,a.createPropertyPage)(e,"inputs",S):null}_inputsPropertyDefinitions(){return null}_updateYCoordinateStep(){const e=this._ownerSource.priceStep();this._getYCoordinateStepWV().setValue(e||1)}_updateCoordinatesPropertyDefinitons(){const e=this._coordinatesPropertyDefinitions();if(null!==e){(0,r.ensureDefined)(this._propertyPages.find((e=>"coordinates"===e.id))).definitions.setValue(e.definitions),this._source.points().length===this._source.pointsCount()&&this._source.pointAdded().unsubscribeAll(this)}}}},64101:(e,t,i)=>{i.r(t),i.d(t,{RegressionTrendDefinitionsViewModel:()=>V});var s=i(91599),r=i(72769),o=(i(53225),i(73405)),n=i(54011),l=i(42897),a=i(76210);const u=new r.TranslatedString("change {title} base line visibility",s.t(null,void 0,i(83752))),p=new r.TranslatedString("change {title} base line color",s.t(null,void 0,i(46565))),d=new r.TranslatedString("change {title} base line width",s.t(null,void 0,i(27550))),c=new r.TranslatedString("change {title} base line style",s.t(null,void 0,i(1031))),y=new r.TranslatedString("change {title} up line visibility",s.t(null,void 0,i(5242))),h=new r.TranslatedString("change {title} up line color",s.t(null,void 0,i(37806))),_=new r.TranslatedString("change {title} up line width",s.t(null,void 0,i(67699))),f=new r.TranslatedString("change {title} up line style",s.t(null,void 0,i(62090))),P=new r.TranslatedString("change {title} down line visibility",s.t(null,void 0,i(42647))),S=new r.TranslatedString("change {title} down line color",s.t(null,void 0,i(28228))),v=new r.TranslatedString("change {title} down line width",s.t(null,void 0,i(70419))),g=new r.TranslatedString("change {title} down line style",s.t(null,void 0,i(18570))),m=new r.TranslatedString("change {title} extend lines",s.t(null,void 0,i(29099))),b=new r.TranslatedString("change {title} show pearson's r",s.t(null,void 0,i(75502))),D=s.t(null,void 0,i(60556)),I=s.t(null,void 0,i(32364)),w=s.t(null,void 0,i(3189)),T=s.t(null,void 0,i(2901)),C=s.t(null,void 0,i(83577));class V extends n.StudyLineDataSourceDefinitionsViewModel{constructor(e,t){super(e,t)}_stylePropertyDefinitions(){const e=this._source.properties().childs().styles.childs(),t=this._source.name(),i=(0,l.removeSpaces)(t),s=new r.TranslatedString(t,this._source.translatedType()),n=e.baseLine.childs(),V=(0,
o.createLinePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(this._propertyApplier,new a.StudyPlotVisibleProperty(n.display),u.format({title:s})),color:(0,o.getColorDefinitionProperty)(this._propertyApplier,n.color,e.transparency,p.format({title:s})),width:(0,o.convertToDefinitionProperty)(this._propertyApplier,n.linewidth,d.format({title:s})),style:(0,o.convertToDefinitionProperty)(this._propertyApplier,n.linestyle,c.format({title:s}))},{id:`${i}BaseLine`,title:D}),A=e.upLine.childs(),M=(0,o.createLinePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(this._propertyApplier,new a.StudyPlotVisibleProperty(A.display),y.format({title:s})),color:(0,o.getColorDefinitionProperty)(this._propertyApplier,A.color,e.transparency,h.format({title:s})),width:(0,o.convertToDefinitionProperty)(this._propertyApplier,A.linewidth,_.format({title:s})),style:(0,o.convertToDefinitionProperty)(this._propertyApplier,A.linestyle,f.format({title:s}))},{id:`${i}UpLine`,title:I}),L=e.downLine.childs();return{definitions:[V,M,(0,o.createLinePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(this._propertyApplier,new a.StudyPlotVisibleProperty(L.display),P.format({title:s})),color:(0,o.getColorDefinitionProperty)(this._propertyApplier,L.color,e.transparency,S.format({title:s})),width:(0,o.convertToDefinitionProperty)(this._propertyApplier,L.linewidth,v.format({title:s})),style:(0,o.convertToDefinitionProperty)(this._propertyApplier,L.linestyle,g.format({title:s}))},{id:`${i}DownLine`,title:w}),(0,o.createCheckablePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(this._propertyApplier,e.extendLines,m.format({title:s}))},{id:`${i}ExtendLines`,title:C}),(0,o.createCheckablePropertyDefinition)({checked:(0,o.convertToDefinitionProperty)(this._propertyApplier,e.showPearsons,b.format({title:s}))},{id:`${i}Pearsons`,title:T})]}}}},54011:(e,t,i)=>{i.r(t),i.d(t,{StudyLineDataSourceDefinitionsViewModel:()=>p});var s=i(91599),r=(i(53225),i(36870)),o=i(73405),n=i(44907),l=i(5003),a=i(14405),u=i(42897);class p extends n.LineDataSourceDefinitionsViewModel{constructor(e,t){super(e,t)}_inputsPropertyDefinitions(){return{definitions:[(0,o.createStudyInputsPropertyDefinition)({},{id:"StudyInputs",inputs:new l.MetaInfoHelper(this._source.metaInfo()).getUserEditableInputs(),inputsTabProperty:this._source.properties(),model:this._undoModel,studyMetaInfo:this._source.metaInfo(),source:{isInputsStudy:!0,symbolsResolved:()=>new r.Delegate,resolvedSymbolInfoBySymbol:e=>null}})]}}_coordinatesPropertyDefinitions(){const e=this._source.points(),t=this._source.pointsProperty().childs().points,r=[];return e.forEach(((e,n)=>{const l=t[n].childs();if(!l)return;const p=(0,a.getCoordinateXMetaInfo)(this._propertyApplier,l);r.push((0,o.createCoordinatesPropertyDefinition)({x:p.property},{id:(0,u.removeSpaces)(`${this._source.name()}Point${n}`),title:s.t(null,{context:"linetool point"},i(76811)).format({count:(n+1).toString()}),...p.info}))})),{definitions:r}}}},30684:(e,t,i)=>{i.r(t),i.d(t,{StudyOverlayDefinitionsViewModel:()=>X})
;var s=i(91599),r=i(16905),o=i(72769),n=i(85842),l=(i(53225),i(73405)),a=i(18632),u=i(16570),p=i(89659),d=i(82372),c=i(42897);const y=new o.TranslatedString("change {inputName} property",s.t(null,void 0,i(32412)));function h(e,t){const i=e.id;return i!==u.RangeDependentStudyInputNames.FirstBar&&i!==u.RangeDependentStudyInputNames.LastBar&&("time"!==e.type&&(!e.isHidden&&(!(t&&!e.confirm)&&void 0===e.groupId)))}function _(e){return e.name||(0,c.capitalizeFirstLetterInWord)(e.id.toLowerCase())}var f,P=i(6620),S=i(77555),v=i(65366),g=i(5258),m=i(28434);!function(e){e.Style="style",e.Inputs="inputs",e.Visibility="visibility"}(f||(f={}));const b=s.t(null,void 0,i(31992)),D=s.t(null,void 0,i(2931)),I=s.t(null,void 0,i(87733)),w=["1","3","5","15","30","45","60","120","180","240","1D","1W","1M"].map((e=>({value:e,title:(0,S.getTranslatedResolutionModel)(e).hint})));class T{constructor(e,t){this._inputSourceItems=null,this._propertyPages=[],this._sourceInput=null,this._source=t,this._undoModel=e;const i=this._sortInputs(this._source.metaInfo().inputs);for(const e of i)"source"===e.type&&(this._sourceInput=e);this._createPropertyRages(),null!==this._inputSourceItems&&this._undoModel.model().dataSourceCollectionChanged().subscribe(this,(()=>{null!==this._inputSourceItems&&this._inputSourceItems.setValue(this._getInputSourceItems())}))}destroy(){null!==this._inputSourceItems&&this._undoModel.model().dataSourceCollectionChanged().unsubscribeAll(this),this._propertyPages.forEach((e=>{(0,l.destroyDefinitions)(e.definitions.value())}))}propertyPages(){return Promise.resolve(this._propertyPages)}_createPropertyRages(){this._propertyPages=[];const e=this._createInputsPropertyPage();null!==e&&this._propertyPages.push(e);const t=this._createStylePropertyPage();null!==t&&this._propertyPages.push(t),this._propertyPages.push(this._createVisibilitiesPropertyPage())}_createStylePropertyPage(){const e=this._stylePropertyDefinitions();return null!==e?(0,a.createPropertyPage)(e,"style",b):null}_createVisibilitiesPropertyPage(){const e=this._source.properties().childs().intervalsVisibilities.childs();return(0,a.createPropertyPage)((0,g.getIntervalsVisibilitiesPropertiesDefinitions)(this._undoModel,e,new o.TranslatedString(this._source.name(!0),this._source.title(v.TitleDisplayTarget.StatusLine,!0))),"visibility",I)}_stylePropertyDefinitions(){return null}_createInputsPropertyPage(){const e=this._inputsPropertyDefinitions();return null!==e?(0,a.createPropertyPage)(e,"inputs",D):null}_inputsPropertyDefinitions(){const e=this._sortInputs(this._source.metaInfo().inputs),t=this._source.properties().childs().inputs.childs();return null!==this._sourceInput&&(this._inputSourceItems=new p.WatchedValue(this._getInputSourceItems())),function(e,t,i,s,r){const a=[];for(const u of t){if(!h(u,s))continue;const t=_(u),c=`StudyInput${u.id}`,f=(0,d.getTranslatedInputTitle)(t),P=new o.TranslatedString(t,f);let S=null;if("resolution"===u.type)S=(0,l.createOptionsPropertyDefinition)({option:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},{id:c,
title:f,options:new p.WatchedValue(r.resolutionItems)});else if("source"===u.type){const t=(0,n.ensure)(r.sourcesItems);S=(0,l.createOptionsPropertyDefinition)({option:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},{id:c,title:f,options:t})}else if("options"in u&&void 0!==u.options){const t=[];for(const e of u.options){const i=u.optionsTitles&&u.optionsTitles[e]||e,s=(0,d.getTranslatedInputTitle)(i);t.push({value:e,title:s})}S=(0,l.createOptionsPropertyDefinition)({option:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},{id:c,title:f,options:new p.WatchedValue(t)})}else if("symbol"===u.type){const t=i[u.id],s=(0,n.ensure)(r.getSymbolInfoBySymbol),o=(0,n.ensure)(r.onSymbolsInfosChanged);S=(0,l.createSymbolPropertyDefinition)({symbol:(0,l.getSymbolDefinitionProperty)(e,t,s,o,y.format({inputName:P}),r.customSymbolInputSetter)},{id:c,title:f})}else if("session"===u.type)S=(0,l.createSessionPropertyDefinition)({session:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},{id:c,title:f});else if("bool"===u.type)S=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},{id:c,title:f});else if("integer"===u.type||"float"===u.type||"price"===u.type){const t={id:c,title:f,type:"float"===u.type||"price"===u.type?1:0,defval:u.defval};void 0!==u.min&&(t.min=new p.WatchedValue(u.min)),void 0!==u.max&&(t.max=new p.WatchedValue(u.max)),void 0!==u.step&&isFinite(u.step)&&u.step>0&&(t.step=new p.WatchedValue(u.step)),S=(0,l.createNumberPropertyDefinition)({value:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},t)}else S=(0,l.createTextPropertyDefinition)({text:(0,l.convertToDefinitionProperty)(e,i[u.id],y.format({inputName:P}))},{id:c,title:f,isEditable:!0,isMultiLine:!1});a.push(S)}return 0===a.length?null:{definitions:a}}(this._undoModel,e,t,!1,{resolutionItems:w,customSymbolInputSetter:this._customSymbolInputSetter(),getSymbolInfoBySymbol:this._getSymbolInfoBySymbol.bind(this),onSymbolsInfosChanged:this._source.symbolsResolved(),sourcesItems:this._inputSourceItems})}_sortInputs(e){return e}_getInputSourceItems(){const e=m.basePriceSources.slice(),t=(0,n.ensureNotNull)(this._sourceInput);if(this._source&&this._source.isChildStudy()){const i=this._source.inputs()[t.id],s=(0,n.ensureNotNull)(this._source.parentSourceForInput(i.v)),r=s.title(v.TitleDisplayTarget.StatusLine),o=P.StudyMetaInfo.getChildSourceInputTitles(t,s.metaInfo(),r);for(const t of Object.keys(o))e.push({id:t,value:t,title:o[t]})}if((0,r.isFeaturesetEnabled)("study_on_study")&&this._source&&(this._source.isChildStudy()||P.StudyMetaInfo.canBeChild(this._source.metaInfo()))){const t=new Set([this._source,...this._source.getAllChildren()]);this._undoModel.model().allStudies().filter((e=>e.canHaveChildren()&&!t.has(e))).forEach((t=>{const i=t.title(v.TitleDisplayTarget.StatusLine,!0,void 0,!0),s=t.sourceId()||"#"+t.id(),r=t.metaInfo(),o=r.styles,l=r.plots||[];if(1===l.length)e.push({id:s,value:s,title:i});else if(l.length>1){
const t=l.reduce(((e,t,r)=>{if(!P.StudyMetaInfo.canPlotBeSourceOfChildStudy(t.type))return e;let l;try{l=(0,n.ensureDefined)((0,n.ensureDefined)(o)[t.id]).title}catch(e){l=t.id}return{...e,[`${s}$${r}`]:`${i}: ${l}`}}),{});for(const i of Object.keys(t))e.push({id:i,value:i,title:t[i]})}}))}return e}_customSymbolInputSetter(){}_getSymbolInfoBySymbol(e){return this._source.resolvedSymbolInfoBySymbol(e.value())}}var C=i(48421),V=i(12827),A=i(37032),M=i(8420);const L=new o.TranslatedString("change study overlay style",s.t(null,void 0,i(11430))),W=new o.TranslatedString("change price line visibility",s.t(null,void 0,i(22912))),k=new o.TranslatedString("change study overlay min tick",s.t(null,void 0,i(88728))),x=s.t(null,void 0,i(25962)),N=s.t(null,void 0,i(18e3)),E=s.t(null,void 0,i(96829)),B=s.t(null,void 0,i(62639)),O=s.t(null,void 0,i(27912)),R=s.t(null,void 0,i(45086)),$=s.t(null,void 0,i(78424)),U=s.t(null,void 0,i(65782)),F=s.t(null,void 0,i(54183)),H=s.t(null,void 0,i(23222)),Y=s.t(null,void 0,i(53759)),G=s.t(null,void 0,i(39093)),j=s.t(null,void 0,i(31992)),q=s.t(null,void 0,i(80222)),z=s.t(null,void 0,i(61547)),J=[{title:x,value:0},{title:N,value:1},{title:E,value:9},{title:B,value:13},{title:O,value:2},{title:H,value:14},{title:Y,value:15},{title:R,value:3},{title:$,value:16},{title:U,value:10},{title:G,value:21}];(0,r.isFeaturesetEnabled)("chart_style_hilo")&&J.push({title:F,value:12});class X extends T{constructor(e,t){super(e,t),this._stylesPropertyPage=null,this.propertyPages().then((e=>{this._stylesPropertyPage=e.filter((e=>"style"===e.id))[0]})),this._source.properties().childs().style.subscribe(this,(e=>{null!==this._stylesPropertyPage&&((0,l.destroyDefinitions)(this._stylesPropertyPage.definitions.value()),this._stylesPropertyPage.definitions.setValue(this._stylePropertyDefinitions().definitions)),this._availableStylesWV?.setValue(this._availableStyles())}))}destroy(){this._source.properties().childs().style.unsubscribeAll(this),this._source.symbolResolved().unsubscribeAll(this),super.destroy()}_customSymbolInputSetter(){return e=>{this._undoModel.setSymbol(this._source,e)}}_stylePropertyDefinitions(){void 0===this._availableStylesWV&&(this._availableStylesWV=new p.WatchedValue(this._availableStyles()),this._source.symbolResolved().subscribe(this,(()=>{this._availableStylesWV?.setValue(this._availableStyles())})));const e=this._source.properties().childs(),t=(0,l.createOptionsPropertyDefinition)({option:(0,l.convertToDefinitionProperty)(this._undoModel,e.style,L)},{id:"StudyOverlayStyle",title:j,options:this._availableStylesWV}),i=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(this._undoModel,e.showPriceLine,W)},{id:"StudyOverlayPriceLine",title:q}),s=(0,l.createOptionsPropertyDefinition)({option:(0,l.convertToDefinitionProperty)(this._undoModel,e.minTick,k)},{id:"StudyOverlayMinTick",title:z,options:new p.WatchedValue((0,V.seriesPrecisionValues)())}),r=(0,c.removeSpaces)(this._source.title(v.TitleDisplayTarget.StatusLine));return{definitions:[(0,
l.createPropertyDefinitionsGeneralGroup)([t,...this._getSeriesStylesDefinitions()],`SeriesStyleGroup${r}`),i,s]}}_getSeriesStylesDefinitions(){const e=this._source.properties().childs(),t=e.style.value();return(0,C.getSeriesStylePropertiesDefinitions)(this._undoModel,e,t,{seriesPriceSources:m.basePriceSources,isJapaneseChartsAvailable:!1},"mainSeries",M.LineStylePropertyDefinitionsMode.Simple)}_availableStyles(){const e=this._source.symbolInfo();return J.map((t=>t.readonly?t:{readonly:!1,value:t.value,title:t.title,disabled:(0,A.isCloseBasedSymbol)(e)&&!(0,A.isSingleValueBasedStyle)(t.value)||"hlc"===e?.visible_plots_set&&!((0,A.isHLCBasedStyle)(t.value)||(0,A.isSingleValueBasedStyle)(t.value))}))}}},20714:(e,t,i)=>{i.d(t,{isCustomStudy:()=>r});const s={VbPFixed:!0,PivotPointsStandard:!0,VbPVisible:!0,VbPAnchored:!0};function r(e){return e in s}},5003:(e,t,i)=>{i.d(t,{MetaInfoHelper:()=>c});var s=i(85842),r=i(73775),o=i(6620),n=i(65164),l=i(7321),a=i(16570);function u(e){return!e.groupId&&!e.isHidden&&e.id!==a.RangeDependentStudyInputNames.FirstBar&&e.id!==a.RangeDependentStudyInputNames.LastBar}var p=i(20714);const d=(0,r.getLogger)("Platform.GUI.PropertyDialog.Indicators.MetaInfo");class c{constructor(e){this._metaInfo=e}hasUserEditableInputs(){return this._metaInfo.inputs.some(u)}getUserEditableInputs(){return this._metaInfo.inputs.filter(u)}hasUserEditableProperties(){return o.StudyMetaInfo.isScriptStrategy(this._metaInfo)}hasUserEditableStyles(){const e=this._metaInfo;return e.plots.length>0||void 0!==e.bands||void 0!==e.filledAreas||(0,p.isCustomStudy)(e.shortId)||o.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,n.isColorerPlot)(i)||(0,n.isTextColorerPlot)(i)||(0,n.isDataOffsetPlot)(i)||(0,n.isOhlcColorerPlot)(i)||(0,n.isAlertConditionPlot)(i)||(0,n.isDataPlot)(i))return!1;if((0,n.isOhlcPlot)(i)){const r=i.target;if(e.has(r))return!1;e.add(r);const o=(0,s.ensureDefined)(t.ohlcPlots);return!(0,s.ensureDefined)(o[r]).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(h),i={...y};for(const s of t){const t=s.internalID;i[t]=s,y.hasOwnProperty(t)||d.logWarn(`Unknown strategy input internal id ${t} in ${e.fullId}`)}return(0,l.clone)(i)}}const y={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 h(e){return"strategy_props"===e.groupId}},76210:(e,t,i)=>{i.d(t,{StudyPlotVisibleProperty:()=>o});var s=i(944),r=i(68484)
;class o extends r.PropertyBase{constructor(e){super(),this._displayProperty=e,this._displayProperty.subscribe(this,this._displayPropertyValueChanged)}destroy(){this._displayProperty.unsubscribe(this,this._displayPropertyValueChanged),this._listeners.destroy()}value(){return 0!==this._displayProperty.value()}setValue(e,t){this._displayProperty.setValue(e?4294967295:0)}setValueSilently(e){this._displayProperty.setValueSilently(e?4294967295:0)}storeStateIfUndefined(){return!1}weakReference(){return(0,s.weakReference)(this)}ownership(){return(0,s.ownership)(this)}_displayPropertyValueChanged(){this.fireChanged()}}}}]);