"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5122],{71514:(e,r,s)=>{s.r(r),s.d(r,{LineToolBrush:()=>n});var t=s(78176),i=s(55393),o=s(65045);class n extends i.LineToolBrushBase{constructor(e,r,s,t){super(e,r??n.createProperties(e.backgroundTheme().spawnOwnership()),s,t),this._loadPaneViews(e)}smooth(){return this.properties().childs().smooth.value()}name(){return"Brush"}static createProperties(e,r){const s=new t.DefaultProperty({defaultName:"linetoolbrush",state:r,theme:e});return this._configureProperties(s),s}_loadPaneViews(e){Promise.all([s.e(6290),s.e(986),s.e(6668),s.e(1583)]).then(s.bind(s,4212)).then((r=>{this._setPaneViews([new r.BrushPaneView(this,e)])}))}_getPropertyDefinitionsViewModelClass(){return Promise.all([s.e(3198),s.e(5410),s.e(2745),s.e(8823),s.e(8537)]).then(s.bind(s,56370)).then((e=>e.BrushDefinitionsViewModel))}static _configureProperties(e){super._configureProperties(e),e.addChild("backgroundsColors",new o.LineToolColorsProperty([e.childs().backgroundColor],e.childs().fillBackground)),e.hasChild("linestyle")&&e.removeProperty("linestyle"),e.hasChild("linesStyles")&&e.removeProperty("linesStyles")}}}}]);