// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("require ../chunks/tslib.es6 ../core/has ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/subclass ./Widget ./LineOfSight/LineOfSightViewModel ../chunks/componentsUtils ./support/globalCss ./support/widgetUtils ./support/decorators/messageBundle ./support/jsxFactory".split(" "),function(k,d,b,l,e,v,w,m,n,g,p,h,x,q,f){b=class extends n{constructor(a,c){super(a,c);this.messages=null;this.viewModel=new g;this._onNewAnalysis= ()=>{l.ignoreAbortErrors(this.viewModel.start())};this._onDone=()=>{this.viewModel.stop()};this._onContinue=()=>{this.viewModel.continue()}}loadDependencies(){return p.loadCalciteComponents({button:()=>new Promise((a,c)=>k(["../chunks/calcite-button"],a,c))})}get active(){return this.viewModel.active}get analysis(){return this.viewModel.analysis}set analysis(a){this.viewModel.analysis=a}get icon(){return"line-of-sight"}set icon(a){this._overrideIfSome("icon",a)}get label(){return this.messages?.widgetLabel?? ""}set label(a){this._overrideIfSome("label",a)}get view(){return this.viewModel.view}set view(a){this.viewModel.view=a}get visible(){return this.viewModel.visible}set visible(a){this.viewModel.visible=a}render(){return f.tsx("div",{class:this.classes("esri-line-of-sight",h.globalCss.widget,h.globalCss.panel),role:"presentation"},this._renderContainerNode())}_renderContainerNode(){if(!this.visible)return null;if(!this.viewModel.supported)return this._renderUnsupportedMessage();let a=null;const c= [this._renderNewAnalysisButton()];"creating"===this.viewModel.state?(a=this._renderHint(),c.unshift(this._renderDoneButton())):"created"===this.viewModel.state&&0