Files
ai/charting_library/bundles/general-property-page.22ecdfa32d18165d6800.js

10 lines
27 KiB
JavaScript

(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3596],{25008:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ChartPropertyDefinitionsViewModel:()=>kt});var n=i(50151),r=i(44352),o=i(2484),l=(i(8169),i(97070),i(40549)),a=i.n(l),s=i(65279),c=i(82623),d=i(11954),u=i(43074),p=i(37364),h=i(68622),v=i(35663),g=i(47539),y=i(1930),P=i(52865),f=i(21580),b=i(7019);const m=new g.TranslatedString("change symbol description visibility",r.t(null,void 0,i(26717))),w=new g.TranslatedString("change symbol legend format",r.t(null,void 0,i(95071))),S=new g.TranslatedString("change open market status visibility",r.t(null,void 0,i(18644))),D=new g.TranslatedString("change OHLC values visibility",r.t(null,void 0,i(57889))),_=new g.TranslatedString("change bar change visibility",r.t(null,void 0,i(45110))),T=new g.TranslatedString("change indicator arguments visibility",r.t(null,void 0,i(96162))),C=new g.TranslatedString("change indicator titles visibility",r.t(null,void 0,i(31325))),k=new g.TranslatedString("change indicator values visibility",r.t(null,void 0,i(99774))),V=new g.TranslatedString("change legend background visibility",r.t(null,void 0,i(61061))),O=new g.TranslatedString("change legend background transparency",r.t(null,void 0,i(97956))),L=new g.TranslatedString("change volume values visibility",r.t(null,void 0,i(9455))),M=r.t(null,void 0,i(67369)),x=r.t(null,void 0,i(99487)),G=r.t(null,void 0,i(22519)),R=r.t(null,void 0,i(1111)),W=r.t(null,void 0,i(31326)),A=r.t(null,void 0,i(68791)),F=r.t(null,void 0,i(91322)),z=r.t(null,void 0,i(27331)),N=r.t(null,void 0,i(75991));var E=i(79807),H=i(99846),j=i(34440),B=i(87172),U=i(35624);const I=o.enabled("show_average_close_price_line_and_label"),q=new g.TranslatedString("change symbol labels visibility",r.t(null,void 0,i(9402))),J=new g.TranslatedString("change symbol last value visibility",r.t(null,void 0,i(53150))),K=new g.TranslatedString("change symbol last value mode",r.t(null,void 0,i(28741))),Q=(new g.TranslatedString("change symbol previous close value visibility",r.t(null,void 0,i(12707))),new g.TranslatedString("change bid and ask labels visibility",r.t(null,void 0,i(5100))),new g.TranslatedString("change pre/post market price label visibility",r.t(null,void 0,i(49889))),new g.TranslatedString("change high and low price labels visibility",r.t(null,void 0,i(66805)))),X=new g.TranslatedString("change average close price label visibility",r.t(null,void 0,i(39402))),Y=(new g.TranslatedString("change indicators and financials name labels visibility",r.t(null,void 0,i(59820))),new g.TranslatedString("change indicators name labels visibility",r.t(null,void 0,i(87027)))),Z=(new g.TranslatedString("change indicators and financials value labels visibility",r.t(null,void 0,i(90512))),
new g.TranslatedString("change indicators value labels visibility",r.t(null,void 0,i(14922)))),$=new g.TranslatedString("change no overlapping labels",r.t(null,void 0,i(83935))),ee=new g.TranslatedString("change countdown to bar close visibility",r.t(null,void 0,i(58108))),te=new g.TranslatedString("change currency label visibility",r.t(null,void 0,i(79570))),ie=new g.TranslatedString("change unit label visibility",r.t(null,void 0,i(7011))),ne=new g.TranslatedString("change currency and unit labels visibility",r.t(null,void 0,i(88161))),re=new g.TranslatedString("change plus button visibility",r.t(null,void 0,i(50190))),oe=new g.TranslatedString("toggle lock scale",r.t(null,void 0,i(21203))),le=new g.TranslatedString("change price to bar ratio",r.t(null,void 0,i(69510))),ae=new g.TranslatedString("change date format",r.t(null,void 0,i(50457))),se=new g.TranslatedString("change time hours format",r.t(null,void 0,i(76991))),ce=(new g.TranslatedString("change day of week on labels",r.t(null,void 0,i(7104))),r.t(null,void 0,i(35383))),de=r.t(null,void 0,i(27767)),ue=(r.t(null,void 0,i(40847)),r.t(null,void 0,i(25084)),r.t(null,void 0,i(9654))),pe=(r.t(null,void 0,i(29687)),r.t(null,void 0,i(34905))),he=(r.t(null,void 0,i(47586)),r.t(null,void 0,i(74823)),r.t(null,void 0,i(95036))),ve=r.t(null,void 0,i(60971)),ge=r.t(null,void 0,i(42502)),ye=r.t(null,void 0,i(94420)),Pe=r.t(null,void 0,i(94370)),fe=r.t(null,void 0,i(50985)),be=r.t(null,void 0,i(77534)),me=r.t(null,void 0,i(17319)),we=r.t(null,void 0,i(97378)),Se=r.t(null,void 0,i(53224)),De=r.t(null,void 0,i(18219)),_e=r.t(null,void 0,i(64859)),Te=r.t(null,void 0,i(25209)),Ce=r.t(null,void 0,i(97316)),ke=r.t(null,void 0,i(43637)),Ve=(r.t(null,void 0,i(55090)),[{value:H.PriceAxisLastValueMode.LastPriceAndPercentageValue,title:r.t(null,void 0,i(76523))},{value:H.PriceAxisLastValueMode.LastValueAccordingToScale,title:r.t(null,void 0,i(80170))}]);const Oe=new g.TranslatedString("change chart background color",r.t(null,void 0,i(99011))),Le=new g.TranslatedString("change chart background type",r.t(null,void 0,i(72458))),Me=new g.TranslatedString("change vert grid lines color",r.t(null,void 0,i(22722))),xe=(new g.TranslatedString("change vert grid lines style",r.t(null,void 0,i(22867))),new g.TranslatedString("change horz grid lines color",r.t(null,void 0,i(88096)))),Ge=(new g.TranslatedString("change horz grid lines style",r.t(null,void 0,i(2523))),
new g.TranslatedString("change sessions breaks visibility",r.t(null,void 0,i(71589)))),Re=new g.TranslatedString("change sessions breaks color",r.t(null,void 0,i(1579))),We=new g.TranslatedString("change sessions breaks width",r.t(null,void 0,i(15035))),Ae=new g.TranslatedString("change sessions breaks style",r.t(null,void 0,i(21460))),Fe=new g.TranslatedString("change scales text color",r.t(null,void 0,i(35065))),ze=new g.TranslatedString("change scales font size",r.t(null,void 0,i(84382))),Ne=new g.TranslatedString("change scales lines color",r.t(null,void 0,i(12468))),Ee=new g.TranslatedString("change pane separators color",r.t(null,void 0,i(89032))),He=new g.TranslatedString("change crosshair color",r.t(null,void 0,i(29951))),je=new g.TranslatedString("change crosshair width",r.t(null,void 0,i(37034))),Be=new g.TranslatedString("change crosshair style",r.t(null,void 0,i(92027))),Ue=new g.TranslatedString("change symbol watermark visibility",r.t(null,void 0,i(87159))),Ie=new g.TranslatedString("change symbol watermark color",r.t(null,void 0,i(25616))),qe=new g.TranslatedString("change navigation buttons visibility",r.t(null,void 0,i(35646))),Je=new g.TranslatedString("change pane buttons visibility",r.t(null,void 0,i(37730))),Ke=new g.TranslatedString("change top margin",r.t(null,void 0,i(98905))),Qe=new g.TranslatedString("change bottom margin",r.t(null,void 0,i(10349))),Xe=new g.TranslatedString("change right margin",r.t(null,void 0,i(35636))),Ye=new g.TranslatedString("change right margin percentage",r.t(null,void 0,i(66601))),Ze=r.t(null,void 0,i(27331)),$e=r.t(null,void 0,i(70353)),et=r.t(null,void 0,i(95338)),tt=r.t(null,void 0,i(59827)),it=r.t(null,void 0,i(37229)),nt=r.t(null,void 0,i(83182)),rt=r.t(null,void 0,i(73908)),ot=r.t(null,void 0,i(46720)),lt=r.t(null,void 0,i(77705)),at=r.t(null,void 0,i(74343)),st=r.t(null,void 0,i(50446)),ct=r.t(null,void 0,i(65994)),dt=r.t(null,void 0,i(91757)),ut=r.t(null,void 0,i(21141)),pt=r.t(null,void 0,i(36014)),ht=r.t(null,void 0,i(16812)),vt=r.t(null,{context:"unit"},i(50831));var gt=i(54808),yt=i(55262),Pt=i(86985),ft=i(51620),bt=i(20364);const mt={symbol:i(77822),legend:i(35885),scales:i(23068),appearance:i(37424),events:i(13168),trading:i(73837)},wt=r.t(null,void 0,i(89053)),St=r.t(null,void 0,i(79194)),Dt=r.t(null,void 0,i(43115)),_t=r.t(null,void 0,i(19481)),Tt=(r.t(null,void 0,i(26897)),r.t(null,void 0,i(90801)),r.t(null,void 0,i(70500)),r.t(null,void 0,i(78621)),r.t(null,void 0,i(30973)),!1);const Ct=[{id:"symbol-text-source-description",value:"description",title:r.t(null,void 0,i(29601))},{id:"symbol-text-source-ticker",value:"ticker",title:r.t(null,void 0,i(23097))},{id:"symbol-text-source-ticker-and-description",value:"ticker-and-description",title:r.t(null,void 0,i(82168))}];class kt{constructor(e,t,i){this._propertyPages=null,this._maxRightOffsetPropertyObject=null,this._defaultRightOffsetPercentageWatchedValue=null,this._useRightOffsetPercentageWatchedValue=null,this._profitLossOptions=null,this._isDestroyed=!1,this._availableDateFormatValues=null,
this._undoModel=e,this._model=this._undoModel.model(),this._series=this._model.mainSeries(),this._chartWidgetProperties=t,this._options=i,this._seriesPropertyDefinitionViewModel=this._createSeriesViewModel(),this._legendPropertyPage=this._createLegendPropertyPage(),this._scalesPropertyPage=this._createScalesPropertyPage(),this._appearancePropertyPage=this._createAppearancePropertyPage(),this._tradingPropertyPage=this._createTradingPropertyPage(),this._eventsPropertyPage=this._createEventsPropertyPage(),this._series.onStyleChanged().subscribe(this,this._updateDefinitions),this._series.priceScaleChanged().subscribe(this,this._updateDefinitions)}destroy(){var e,t;null!==this._propertyPages&&this._propertyPages.filter(((e,t)=>0!==t)).forEach((e=>{(0,s.destroyDefinitions)(e.definitions.value())})),this._seriesPropertyDefinitionViewModel.destroy(),null===(e=this._pipValueTypeSubscription)||void 0===e||e.unsubscribe(),null===(t=this._availableDateFormatValues)||void 0===t||t.destroy(),this._series.onStyleChanged().unsubscribe(this,this._updateDefinitions),this._series.priceScaleChanged().unsubscribe(this,this._updateDefinitions);(0,n.ensureNotNull)(this._model.timeScale()).maxRightOffsetChanged().unsubscribeAll(this),this._isDestroyed=!0}propertyPages(){return null===this._propertyPages?this._seriesPropertyDefinitionViewModel.propertyPages().then((e=>{if(this._isDestroyed)throw new Error("ChartPropertyDefinitionsViewModel already destroyed");return null===this._propertyPages&&(this._propertyPages=[...e],this._propertyPages.push(this._legendPropertyPage,this._scalesPropertyPage,this._appearancePropertyPage),null!==this._tradingPropertyPage&&this._propertyPages.push(this._tradingPropertyPage),null!==this._eventsPropertyPage&&this._propertyPages.push(this._eventsPropertyPage)),this._propertyPages})):Promise.resolve(this._propertyPages)}_updatePlDisplayOptions(e){(0,n.ensureNotNull)(this._profitLossOptions).setValue([])}_updateDefinitions(){(0,s.destroyDefinitions)(this._scalesPropertyPage.definitions.value());const e=this._createScalesDefinitions();this._scalesPropertyPage.definitions.setValue(e.definitions)}_createSeriesViewModel(){const e={property:this._model.properties().childs().timezone,values:bt.availableTimezones.map((e=>({value:e.id,title:e.title})))};return new h.SeriesPropertyDefinitionsViewModel(this._series,this._undoModel,"symbol",wt,mt.symbol,e)}_createLegendPropertyPage(){const e=this._chartWidgetProperties.childs().paneProperties.childs().legendProperties.childs(),t={property:this._series.properties().childs().statusViewStyle.childs().symbolTextSource,values:Ct},n=function(e,t,n,o,l){const c=[],d=[],u=(0,s.createOptionsPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,t.showSeriesTitle,m),option:(0,s.convertToDefinitionProperty)(e,n.property,w)},{id:"symbolTextSource",title:M,options:new(a())(n.values)});if(d.push(u),null!==o){const t=(0,b.combineWithFilteredUpdate)(((t,i)=>"market"===t&&!(0,
y.isEconomicSymbol)(e.mainSeries().symbolInfo())),((e,t)=>null!==e),e.mainSeries().marketStatusModel().status(),e.mainSeries().symbolResolvingActive()),i=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,o,S),visible:(0,s.convertFromReadonlyWVToDefinitionProperty)(t)},{id:"showOpenMarketStatus",title:N});d.push(i)}const p=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,t.showSeriesOHLC,D)},{id:"ohlcTitle",title:x});d.push(p);const h=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,t.showBarChange,_)},{id:"barChange",title:G});d.push(h),d.push((0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,t.showVolume,L)},{id:"barVolume",title:R})),c.push((0,s.createPropertyDefinitionsGeneralGroup)(d,"seriesLegendVisibilityGroup",r.t(null,void 0,i(89053))));const v=[],g=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,t.showStudyArguments,T)},{id:"studyArguments",title:A}),E=(0,s.createCheckableSetPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,t.showStudyTitles,C)},{id:"studyTitles",title:W},[g]),H=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,t.showStudyValues,k)},{id:"studyValues",title:F}),j=(0,P.createWVFromGetterAndSubscription)((()=>e.model().priceDataSources().some((e=>!(0,f.isActingAsSymbolSource)(e)&&e.showInObjectTree()))),e.model().dataSourceCollectionChanged());v.push(E,H),c.push((0,s.createPropertyDefinitionsGeneralGroup)(v,"studiesLegendVisibilityGroup",r.t(null,void 0,i(61142)),j));const B=[],U=(0,s.createTransparencyPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,t.showBackground,V),transparency:(0,s.convertToDefinitionProperty)(e,t.backgroundTransparency,O)},{id:"legendBgTransparency",title:z});return B.push(U),c.push((0,s.createPropertyDefinitionsGeneralGroup)(B,"generalLegendGroup")),{definitions:c}}(this._undoModel,e,t,this._options.marketStatusWidgetEnabled?v.showMarketOpenStatusProperty:null);return(0,c.createPropertyPage)(n,"legend",St,mt.legend)}_createScalesPropertyPage(){const e=this._createScalesDefinitions();return(0,c.createPropertyPage)(e,"scales",Dt,mt.scales)}_createScalesDefinitions(){const e=this._chartWidgetProperties.childs().scalesProperties.childs(),t={property:this._model.properties().childs().priceScaleSelectionStrategyName,values:(0,p.allPriceScaleSelectionStrategyInfo)().map((e=>({value:e.name,title:e.title})))};null===this._availableDateFormatValues&&(this._availableDateFormatValues=new(a())(function(e=!1){const t=new Date(Date.UTC(1997,8,29));return gt.availableDateFormats.map((i=>({value:i,title:new Pt.DateFormatter(i,e).format(t)})))}()).spawn());const n={property:yt.dateFormatProperty,values:this._availableDateFormatValues},l={property:ft.timeHoursFormatProperty,values:[{value:"24-hours",title:r.t(null,void 0,i(55838))},{value:"12-hours",title:r.t(null,void 0,i(19648))}]},c=this._model.mainSeriesScaleRatioProperty()
;return function(e,t,i,n){const r=n.seriesPriceScale.properties().childs(),l=[],c=[],d=[],u=[];if(n.seriesHasClosePrice){const t=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,i.showSymbolLabels,q)},{id:"symbolNameLabel",title:ce}),n=(0,s.createOptionsPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,i.showSeriesLastValue,J),option:(0,s.convertToDefinitionProperty)(e,i.seriesLastValueMode,K)},{id:"symbolLastValueLabel",title:de,options:new(a())(Ve)});c.push(t,n)}const p=t.highLowAvgPrice.childs(),h=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,p.highLowPriceLabelsVisible,Q)},{id:"highLowPriceLabels",title:ve});if(c.push(h),I){const t=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,p.averageClosePriceLabelVisible,X)},{id:"averageClosePriceLabel",title:he});c.push(t)}const v=(0,P.createWVFromGetterAndSubscription)((()=>e.model().priceDataSources().some((e=>!(0,f.isActingAsSymbolSource)(e)&&e.showInObjectTree()))),e.model().dataSourceCollectionChanged());{const t=(0,s.createCheckablePropertyDefinition)({visible:(0,s.convertFromReadonlyWVToDefinitionProperty)(v),checked:(0,s.convertToDefinitionProperty)(e,i.showStudyPlotLabels,Y)},{id:"studyNameLabel",title:ue});c.push(t)}const g=(0,P.createWVFromGetterAndSubscription)((()=>e.model().priceDataSources().some((e=>!(0,f.isActingAsSymbolSource)(e)&&e.showInObjectTree()))),e.model().dataSourceCollectionChanged());{const t=(0,s.createCheckablePropertyDefinition)({visible:(0,s.convertFromReadonlyWVToDefinitionProperty)(g),checked:(0,s.convertToDefinitionProperty)(e,i.showStudyLastValue,Z)},{id:"studyLastValueLabel",title:pe});c.push(t)}const y=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,r.alignLabels,$)},{id:"noOverlappingLabels",title:ge});if(c.push(y),l.push((0,s.createPropertyDefinitionsGeneralGroup)(c,"scalesLabelsGroup",ye)),n.countdownEnabled){const i=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,t.showCountdown,ee)},{id:"countdown",title:Pe});d.push(i)}if(e.crossHairSource().isMenuEnabled()){const t=(0,s.createCheckablePropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,B.addPlusButtonProperty,re)},{id:"addPlusButton",title:we});d.push(t)}if(n.currencyConversionEnabled||n.unitConversionEnabled){const t=n.currencyConversionEnabled&&n.unitConversionEnabled?me:n.currencyConversionEnabled?fe:be,i=n.currencyConversionEnabled&&n.unitConversionEnabled?ne:n.currencyConversionEnabled?te:ie,r=(0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(e,(0,U.currencyUnitVisibilityProperty)(),i)},{id:"scalesCurrencyUnit",title:t,options:new(a())((0,U.currencyUnitVisibilityOptions)())});d.push(r)}const b=(0,s.createNumberPropertyDefinition)({checked:(0,s.getLockPriceScaleDefinitionProperty)(e,r.lockScale,n.seriesPriceScale,oe),value:(0,s.getScaleRatioDefinitionProperty)(e,n.mainSeriesScaleRatioProperty,le,[(0,j.limitedPrecision)(7),e=>e])},{
id:"lockScale",title:De,min:new(a())(n.mainSeriesScaleRatioProperty.getMinValue()),max:new(a())(n.mainSeriesScaleRatioProperty.getMaxValue()),step:new(a())(n.mainSeriesScaleRatioProperty.getStepChangeValue())}),m=(0,s.createOptionsPropertyDefinition)({option:(0,s.getPriceScaleSelectionStrategyDefinitionProperty)(e,n.scalesPlacementPropertyObj.property)},{id:"scalesPlacement",title:Se,options:new(a())(n.scalesPlacementPropertyObj.values)});if(d.push(b,m),l.push((0,s.createPropertyDefinitionsGeneralGroup)(d,"scalesPriceScaleGroup",_e)),o.enabled("scales_date_format")){const t=(0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(e,n.dateFormatPropertyObj.property,ae)},{id:"dateFormat",title:Te,options:n.dateFormatPropertyObj.values});u.push(t)}if(o.enabled("scales_time_hours_format")){const t=(0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(e,n.timeHoursFormatPropertyObj.property,se)},{id:"timeHoursFormat",title:Ce,options:new(a())(n.timeHoursFormatPropertyObj.values)});u.push(t)}return u.length>0&&l.push((0,s.createPropertyDefinitionsGeneralGroup)(u,"scalesTimeScaleGroup",ke)),{definitions:l}}(this._undoModel,this._series.properties().childs(),e,{disableSeriesPrevCloseValueProperty:this._series.isDWMProperty(),seriesHasClosePrice:this._series.hasClosePrice(),seriesPriceScale:this._series.priceScale(),mainSeriesScaleRatioProperty:c,scalesPlacementPropertyObj:t,dateFormatPropertyObj:n,timeHoursFormatPropertyObj:l,currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled,countdownEnabled:this._options.countdownEnabled,withWeekdayProperty:void 0})}_createMaxOffsetPropertyObject(){const e=(0,n.ensureNotNull)(this._model.timeScale()),t=new(a())(Math.floor(e.maxRightOffset()));e.maxRightOffsetChanged().subscribe(this,(e=>{t.setValue(Math.floor(e))})),this._maxRightOffsetPropertyObject={value:e.defaultRightOffset(),min:new(a())(0),max:t}}_createDefaultRightOffsetPercentageWatchedValue(){const e=(0,n.ensureNotNull)(this._model.timeScale());this._defaultRightOffsetPercentageWatchedValue=e.defaultRightOffsetPercentage()}_createUseRightOffsetPercentageWatchedValue(){const e=(0,n.ensureNotNull)(this._model.timeScale());this._useRightOffsetPercentageWatchedValue=e.usePercentageRightOffset()}_createAppearancePropertyPage(){const e=this._chartWidgetProperties.childs(),t=e.paneProperties.childs(),l=e.scalesProperties.childs(),p=this._model.watermarkSource();let h=null;null!==p&&(h=p.properties().childs());const v={property:d.property(),values:d.availableValues()},g={property:u.property(),values:u.availableValues()},y=this._model.sessions().properties().childs().graphics.childs().vertlines.childs().sessBreaks.childs();null===this._maxRightOffsetPropertyObject&&this._createMaxOffsetPropertyObject(),null===this._defaultRightOffsetPercentageWatchedValue&&this._createDefaultRightOffsetPercentageWatchedValue(),null===this._useRightOffsetPercentageWatchedValue&&this._createUseRightOffsetPercentageWatchedValue()
;const f=(0,n.ensureNotNull)(this._maxRightOffsetPropertyObject),b=(0,n.ensureNotNull)(this._defaultRightOffsetPercentageWatchedValue),m=(0,n.ensureNotNull)(this._useRightOffsetPercentageWatchedValue),w=function(e,t,n,l,c,d,u,p,h,v,g){const y=[],f=[],b=[],m=[],w=[],S=(0,s.createColorPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(e,t.background,null,Oe),gradientColor1:(0,s.getColorDefinitionProperty)(e,t.backgroundGradientStartColor,null,Oe),gradientColor2:(0,s.getColorDefinitionProperty)(e,t.backgroundGradientEndColor,null,Oe),type:(0,s.convertToDefinitionProperty)(e,t.backgroundType,Le)},{id:"chartBackground",title:Ze,noAlpha:!0}),D=t.vertGridProperties.childs(),_=(0,s.createLinePropertyDefinition)({color:(0,s.getColorDefinitionProperty)(e,D.color,null,Me),style:void 0},{id:"vertGridLine",title:$e}),T=t.horzGridProperties.childs(),C=(0,s.createLinePropertyDefinition)({color:(0,s.getColorDefinitionProperty)(e,T.color,null,xe),style:void 0},{id:"horizGridLine",title:et}),k=(0,P.combineProperty)((e=>!e),e.mainSeries().isDWMProperty()),V=(0,s.createLinePropertyDefinition)({visible:(0,E.makeProxyDefinitionPropertyDestroyable)(k),checked:(0,s.convertToDefinitionProperty)(e,c.visible,Ge),color:(0,s.getColorDefinitionProperty)(e,c.color,null,Re),width:(0,s.convertToDefinitionProperty)(e,c.width,We),style:(0,s.convertToDefinitionProperty)(e,c.style,Ae)},{id:"sessionBeaks",title:tt}),O=(0,P.createWVFromGetterAndSubscription)((()=>1!==e.model().panes().length),e.model().panesCollectionChanged()),L=(0,s.createLinePropertyDefinition)({visible:(0,s.convertFromReadonlyWVToDefinitionProperty)(O),color:(0,s.getColorDefinitionProperty)(e,t.separatorColor,null,Ee)},{id:"paneSeparators",title:rt}),M=t.crossHairProperties.childs(),x=(0,s.createLinePropertyDefinition)({color:(0,s.getColorDefinitionProperty)(e,M.color,M.transparency,He),width:(0,s.convertToDefinitionProperty)(e,M.width,je),style:(0,s.convertToDefinitionProperty)(e,M.style,Be)},{id:"crossHair",title:ot});if(y.push(S,_,C,V,L,x),null!==n){const t=(0,s.createColorPropertyDefinition)({checked:(0,s.convertToDefinitionProperty)(e,n.visibility,Ue),color:(0,s.getColorDefinitionProperty)(e,n.color,null,Ie)},{id:"watermark",title:lt});y.push(t)}const G=(0,s.createTextPropertyDefinition)({color:(0,s.getColorDefinitionProperty)(e,l.textColor,null,Fe),size:(0,s.convertToDefinitionProperty)(e,l.fontSize,ze)},{id:"scalesText",title:it}),R=(0,s.createLinePropertyDefinition)({color:(0,s.getColorDefinitionProperty)(e,l.lineColor,null,Ne)},{id:"scalesLine",title:nt});f.push(G,R);const W=(0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(e,p.property,qe)},{id:"navButtons",title:at,options:new(a())(p.values)}),A=(0,s.createOptionsPropertyDefinition)({option:(0,s.convertToDefinitionProperty)(e,h.property,Je)},{id:"paneButtons",title:st,options:new(a())(h.values)});b.push(W,A);const F=(0,s.createNumberPropertyDefinition)({value:(0,s.convertToDefinitionProperty)(e,t.topMargin,Ke,[j.floor])},{type:0,id:"paneTopMargin",title:ct,min:new(a())(0),
max:new(a())(25),step:new(a())(1),unit:new(a())("%")}),z=(0,s.createNumberPropertyDefinition)({value:(0,s.convertToDefinitionProperty)(e,t.bottomMargin,Qe,[j.floor])},{type:0,id:"paneBottomMargin",title:dt,min:new(a())(0),max:new(a())(25),step:new(a())(1),unit:new(a())("%")});if(m.push(F,z),o.enabled("chart_property_page_right_margin_editor")){const t={value:(0,s.convertFromWVToDefinitionProperty)(e,u.value,Xe,[j.floor])},i={type:0,id:"paneRightMargin",title:ut,min:u.min,max:u.max,step:new(a())(1),unit:new(a())(vt)};if(o.enabled("show_percent_option_for_right_margin")){const n=(0,s.createNumberPropertyDefinition)({...t,checked:(0,s.convertFromWVToDefinitionProperty)(e,g.opposite(),Ye)},{...i,title:ht}),r=(0,s.createNumberPropertyDefinition)({checked:(0,s.convertFromWVToDefinitionProperty)(e,g,Ye),value:(0,s.convertFromWVToDefinitionProperty)(e,v,Ye,[j.floor])},{type:0,id:"paneRightMarginPercentage",title:pt,min:new(a())(0),max:new(a())(99),step:new(a())(1),unit:new(a())("%")});w.push(n),w.push(r)}else{const e=(0,s.createNumberPropertyDefinition)(t,i);m.push(e)}}const N=[(0,s.createPropertyDefinitionsGeneralGroup)(y,"chartBasicStylesAppearanceGroup",r.t(null,void 0,i(88364))),(0,s.createPropertyDefinitionsGeneralGroup)(f,"scalesAppearanceGroup",r.t(null,void 0,i(43115))),(0,s.createPropertyDefinitionsGeneralGroup)(b,"buttonsAppearanceGroup",r.t(null,void 0,i(87845))),(0,s.createPropertyDefinitionsGeneralGroup)(m,"marginsAppearanceGroup",r.t(null,void 0,i(66653)))];return w.length>0&&N.push((0,s.createPropertyDefinitionsGeneralGroup)(w,"rightMarginsAppearanceGroup",r.t(null,void 0,i(40187)))),{definitions:N}}(this._undoModel,t,h,l,y,this._series.isDWMProperty(),f,v,g,b,m);return(0,c.createPropertyPage)(w,"appearance",_t,mt.appearance)}_createTradingPropertyPage(){return null}_createEventsPropertyPage(){return null}}},37424:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M7.5 16.5l-1 1v4h4l1-1m-4-4l2 2m-2-2l9-9m-5 13l-2-2m2 2l9-9m-11 7l9-9m0 0l-2-2m2 2l2 2m-4-4l.94-.94a1.5 1.5 0 0 1 2.12 0l1.88 1.88a1.5 1.5 0 0 1 0 2.12l-.94.94"/></svg>'},13168:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M10 4h1v2h6V4h1v2h2.5A2.5 2.5 0 0 1 23 8.5v11a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 5 19.5v-11A2.5 2.5 0 0 1 7.5 6H10V4zm8 3H7.5A1.5 1.5 0 0 0 6 8.5v11A1.5 1.5 0 0 0 7.5 21h13a1.5 1.5 0 0 0 1.5-1.5v-11A1.5 1.5 0 0 0 20.5 7H18zm-3 2h-2v2h2V9zm-7 4h2v2H8v-2zm12-4h-2v2h2V9zm-7 4h2v2h-2v-2zm-3 4H8v2h2v-2zm3 0h2v2h-2v-2zm7-4h-2v2h2v-2z"/></svg>'},23068:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M10.5 20.5a2 2 0 1 1-2-2m2 2a2 2 0 0 0-2-2m2 2h14m-16-2v-14m16 16L21 17m3.5 3.5L21 24M8.5 4.5L12 8M8.5 4.5L5 8"/></svg>'},35885:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" d="M6 13h12v1H6zM6 17h12v1H6zM6 21h12v1H6z"/><rect width="17" height="3" stroke="currentColor" rx="1.5" x="5.5" y="6.5"/></svg>'},77822:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M9 7H7v14h2v3h1v-3h2V7h-2V4H9v3zM8 8v12h3V8H8zm9 1h-2v10h2v3h1v-3h2V9h-2V6h-1v3zm-1 1v8h3v-8h-3z"/></svg>'},73837:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M24.068 9a.569.569 0 0 1 .73.872L19 14.842l-5.798-4.97a.569.569 0 0 1 .73-.872l4.751 3.887.317.26.317-.26L24.068 9zm1.47-.67a1.569 1.569 0 0 0-2.103-.104L19 11.854l-4.435-3.628a1.569 1.569 0 0 0-2.014 2.405l6.124 5.249.325.279.325-.28 6.124-5.248a1.569 1.569 0 0 0 .088-2.3zm-11.484 9.728a.57.57 0 0 0 .688-.91L9 12.636l-5.742 4.512a.57.57 0 0 0 .688.91l4.76-3.462.294-.214.294.214 4.76 3.462zm1.446.649a1.57 1.57 0 0 1-2.034.16L9 15.618l-4.466 3.249a1.57 1.57 0 0 1-1.894-2.505l6.051-4.755.309-.243.309.243 6.051 4.755c.74.581.806 1.68.14 2.345z"/></svg>'}}]);