"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8820],{23283:(e,r,o)=>{o.r(r),o.d(r,{LineToolFlagMark:()=>a});var t=o(10555),n=o(41414),i=o(78176),s=o(65045);class a extends n.LineDataSource{constructor(e,r,n,i){super(e,r??a.createProperties(e.backgroundTheme().spawnOwnership()),n,i),Promise.all([o.e(6290),o.e(986),o.e(6668),o.e(1583)]).then(o.bind(o,76077)).then((({FlagMarkPaneView:e})=>{const r=new e(this,this.model());r.setAnchors(new t.Point(0,0)),this._setPaneViews([r])}))}pointsCount(){return 1}name(){return"Flag Mark"}static createProperties(e,r){r&&void 0===r.flagColor&&(r.flagColor="#318757");const o=new i.DefaultProperty({defaultName:"linetoolflagmark",state:r,theme:e});return this._configureProperties(o),o}_normalizePoint(e,r){return super._normalizePointWithoutOffset(e)??super._normalizePoint(e,r)}_getPropertyDefinitionsViewModelClass(){return Promise.all([o.e(3198),o.e(5410),o.e(2745),o.e(8823),o.e(8537)]).then(o.bind(o,77143)).then((e=>e.FlagMarkDefinitionsViewModel))}static _configureProperties(e){super._configureProperties(e),e.addChild("backgroundsColors",new s.LineToolColorsProperty([e.childs().flagColor])),e.addExcludedKey("backgroundsColors",3)}}a.version=2}}]);