"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[569],{70214:(e,r,t)=>{t.r(r),t.d(r,{LineToolArrowMark:()=>l,LineToolArrowMarkDown:()=>w,LineToolArrowMarkLeft:()=>u,LineToolArrowMarkRight:()=>c,LineToolArrowMarkUp:()=>p});var o=t(50605),n=t(78176),i=t(41414),s=t(43337),a=t(65045);class l extends i.LineDataSource{constructor(e,r,o,n,i){super(e,r??l.createProperties(e.backgroundTheme().spawnOwnership(),null,o),n,i),this._textPaneView=null,Promise.all([t.e(6290),t.e(986),t.e(6668),t.e(1583)]).then(t.bind(t,94755)).then((({ArrowMarkPaneView:r})=>{const t=[new r(this,e)];this._setPaneViews(t)}))}paneViews(e){const r=super.paneViews();return null!==r&&this._textPaneView&&r.push(this._textPaneView),r}pointsCount(){return 1}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e,r,t){const o=new n.DefaultProperty({defaultName:t,state:r});return this._configureProperties(o),o}_normalizePoint(e,r){return super._normalizePointWithoutOffset(e)??super._normalizePoint(e,r)}_getPropertyDefinitionsViewModelClass(){return Promise.all([t.e(3198),t.e(5410),t.e(2745),t.e(8823),t.e(8537)]).then(t.bind(t,28578)).then((e=>e.ArrowMarkDefinitionsViewModel))}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}static _configureProperties(e){super._configureProperties(e),e.addChild("linesColors",new a.LineToolColorsProperty([e.childs().arrowColor])),e.addChild("textsColors",new a.LineToolColorsProperty([e.childs().color])),e.hasChild("text")||e.addChild("text",new s.Property("")),e.addExcludedKey("text",1)}}l.version=2;class u extends l{constructor(e,r,t,o){super(e,r,"linetoolarrowmarkleft",t,o)}direction(){return"left"}name(){return"Arrow Mark Left"}textAlignParams(){return{horzAlign:o.HorizontalAlign.Left,vertAlign:o.VerticalAlign.Middle,offsetX:22,offsetY:3}}static createProperties(e,r){return super.createProperties(e,r,"linetoolarrowmarkleft")}}class p extends l{constructor(e,r,t,o){super(e,r,"linetoolarrowmarkup",t,o)}direction(){return"up"}name(){return"Arrow Mark Up"}textAlignParams(){return{horzAlign:o.HorizontalAlign.Center,vertAlign:o.VerticalAlign.Top,offsetX:0,offsetY:20}}static createProperties(e,r){return super.createProperties(e,r,"linetoolarrowmarkup")}}class c extends l{constructor(e,r,t,o){super(e,r,"linetoolarrowmarkright",t,o)}direction(){return"right"}name(){return"Arrow Mark Right"}textAlignParams(){return{horzAlign:o.HorizontalAlign.Right,vertAlign:o.VerticalAlign.Middle,offsetX:22,offsetY:3,forceTextAlign:!0}}static createProperties(e,r){return super.createProperties(e,r,"linetoolarrowmarkright")}}class w extends l{constructor(e,r,t,o){super(e,r,"linetoolarrowmarkdown",t,o)}direction(){return"down"}name(){return"Arrow Mark Down"}textAlignParams(){return{horzAlign:o.HorizontalAlign.Center,vertAlign:o.VerticalAlign.Bottom,offsetX:0,offsetY:20}}static createProperties(e,r){return super.createProperties(e,r,"linetoolarrowmarkdown")}}}}]);