????
Your IP : 216.73.216.122
{"version":3,"sources":["./node_modules/arcgis-js-api/widgets/AreaMeasurement2D.js","./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js","./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js","./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/AreaMeasurement2D.js","./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/vi/AreaMeasurement2D.js","webpack:///./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/AreaMeasurement2D.js?f413"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,wIAAwC,CAAC,4HAAkC,CAAC,+NAAqD,CAAC,gIAAoC,CAAC,qFAAU,CAAC,iKAAgD,CAAC,qGAAkB,CAAC,mCAAC,4BAA4B,OAAO,skCAAskC,mBAAmB,cAAc,2BAA2B,mIAAmI,4CAA4C,+NAA+N,wBAAwB,YAAY,iBAAiB,yCAAyC,qCAAqC,kDAAkD,sBAAsB,yCAAyC,eAAe,6BAA6B,kBAAkB,6BAA6B,kBAAkB,sGAAsG,eAAe,6BAA6B,KAAK,sBAAsB,sCAAsC,uGAAuG,0BAA0B,gBAAgB,yBAAyB,sBAAsB,2BAA2B,iBAAiB,qEAAqE,mBAAmB,uBAAuB,cAAc,aAAa,sBAAsB,gCAAgC,uCAAuC,sBAAsB,iBAAiB,sKAAsK,qCAAqC,kBAAkB,iBAAiB,oBAAoB,4CAA4C,IAAI,wCAAwC,gCAAgC,qCAAqC,4CAA4C,iCAAiC,2XAA2X,OAAO,yYAAyY,gBAAgB;AAAA,oGAAC,C;;;;;;;;;;;ACxB5nI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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,0CAA0C,iCAAiC,SAAS,+BAA+B,6CAA6C,eAAe,mMAAmM,+BAA+B,4CAA4C,eAAe,4CAA4C,iBAAiB,sDAAsD,6CAA6C,+BAA+B,mDAAmD,eAAe,8BAA8B,iBAAiB,6DAA6D,qDAAqD,+BAA+B,wCAAwC,kBAAkB,yCAAyC,kBAAkB,yCAAyC,OAAO,wCAAwC,iBAAiB,4CAA4C,qEAAqE,iCAAiC,iBAAiB,mBAAmB,sBAAsB,mBAAmB,uDAAuD,UAAU,4BAA4B,gCAAgC,mCAAmC,+BAA+B,iCAAiC,iCAAiC,qCAAqC,mCAAmC,2CAA2C,6BAA6B,yCAAyC,6CAA6C,6CAA6C,2CAA2C,gCAAgC,qGAAqG,uCAAuC,8HAA8H,wCAAwC,mBAAmB,2BAA2B,6CAA6C,EAAE,qDAAqD,gGAAgG,YAAY,qHAAqH,yEAAyE,sGAAsG,yFAAyF,4CAA4C,6BAA6B,6CAA6C,oDAAoD,2CAA2C,cAAc,oHAAoH,yCAAyC;AAAA,oGAAC,C;;;;;;;;;;;ACxBrlJ;AACA;AACA;AACA;AACA,mBAAQ,CAAC,SAAS,+QAA+Q,sDAAsD,0BAA0B,gUAAgU,EAAE,yZAAyZ,C;;;;;;;;;;;ACJ5kC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAO,CAAC,0PAA0P,kDAAkD,sBAAsB,wSAAwS,CAAC,C;;;;;;;;;;;ACxBnnB,iGAAO,CAAC,mEAAW,EAAE,iJAA+G;AACpI,CAAC,wKAAyD;AAC1D,CAAC,yPAAiM;AAClM,CAAC,mCAAE;AACH,iFAAiF,mBAAmB;AACpG,CAAC;AAAA,oGAAC,C","file":"65-es2015.js","sourcesContent":["// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../core/tsSupport/declareExtendsHelper\",\"../core/tsSupport/decorateHelper\",\"dojo/i18n!./AreaMeasurement2D/nls/AreaMeasurement2D\",\"../core/accessorSupport/decorators\",\"./Widget\",\"./AreaMeasurement2D/AreaMeasurement2DViewModel\",\"./support/widget\"],function(e,t,s,a,n,i,r,l,u){var o={button:\"esri-button esri-button--secondary\",buttonDisabled:\"esri-button--disabled\",widgetIcon:\"esri-icon-measure-area\",base:\"esri-area-measurement-2d\",widget:\"esri-widget\",panel:\"esri-widget--panel\",container:\"esri-area-measurement-2d__container\",hint:\"esri-area-measurement-2d__hint\",hintText:\"esri-area-measurement-2d__hint-text\",panelError:\"esri-area-measurement-2d__panel--error\",measurement:\"esri-area-measurement-2d__measurement\",measurementItem:\"esri-area-measurement-2d__measurement-item\",measurementItemDisabled:\"esri-area-measurement-2d__measurement-item--disabled\",measurementItemTitle:\"esri-area-measurement-2d__measurement-item-title\",measurementItemValue:\"esri-area-measurement-2d__measurement-item-value\",settings:\"esri-area-measurement-2d__settings\",units:\"esri-area-measurement-2d__units\",unitsLabel:\"esri-area-measurement-2d__units-label\",unitsSelect:\"esri-area-measurement-2d__units-select esri-select\",unitsSelectWrapper:\"esri-area-measurement-2d__units-select-wrapper\",actionSection:\"esri-area-measurement-2d__actions\",clearButton:\"esri-area-measurement-2d__clear-button\"};return function(e){function t(t){var s=e.call(this,t)||this;return s.active=null,s.iconClass=o.widgetIcon,s.label=n.widgetLabel,s.unit=null,s.unitOptions=null,s.view=null,s.viewModel=new l,s}return s(t,e),t.prototype.render=function(){var e=this,t=this,s=t.id,a=t.viewModel,i=t.visible,r=a.active,l=a.isSupported,m=a.measurementLabel,d=a.state,c=a.unit,p=a.unitOptions,v=\"disabled\"===d,b=\"ready\"===d,_=\"measuring\"===d||\"measured\"===d,w=r&&b?u.tsx(\"section\",{key:\"hint\",class:o.hint},u.tsx(\"p\",{class:o.hintText},n.hint)):null,y=l?null:u.tsx(\"section\",{key:\"unsupported\",class:o.panelError},u.tsx(\"p\",null,n.unsupported)),M=function(t,s,a){return s?u.tsx(\"div\",{key:a+\"-enabled\",class:o.measurementItem},u.tsx(\"span\",{class:o.measurementItemTitle},t),u.tsx(\"span\",{class:o.measurementItemValue},s)):u.tsx(\"div\",{key:a+\"-disabled\",class:e.classes(o.measurementItem,o.measurementItemDisabled),\"aria-disabled\":\"true\"},u.tsx(\"span\",{class:o.measurementItemTitle},t))},x=_?u.tsx(\"section\",{key:\"measurement\",class:o.measurement},M(n.area,m.area,\"area\"),M(n.perimeter,m.perimeter,\"perimeter\")):null,h=s+\"__units\",g=u.tsx(\"section\",{key:\"units\",class:o.units},u.tsx(\"label\",{class:o.unitsLabel,for:h},n.unit),u.tsx(\"div\",{class:o.unitsSelectWrapper},u.tsx(\"select\",{class:o.unitsSelect,id:h,onchange:this._changeUnit,bind:this,value:c},p.map(function(e){return u.tsx(\"option\",{key:e,value:e},n.units[e])})))),f=_?u.tsx(\"div\",{key:\"settings\",class:o.settings},g):null,I=!l||r&&!_?null:u.tsx(\"div\",{class:o.actionSection},u.tsx(\"button\",{disabled:v,class:this.classes(o.button,o.clearButton,v&&o.buttonDisabled),bind:this,onclick:this._newMeasurement,title:n.newMeasurement,\"aria-label\":n.newMeasurement},n.newMeasurement)),O=i?u.tsx(\"div\",{class:o.container},y,w,f,x,I):null;return u.tsx(\"div\",{class:this.classes(o.base,o.widget,o.panel)},O)},t.prototype._newMeasurement=function(){this.viewModel.newMeasurement()},t.prototype._changeUnit=function(e){var t=e.target,s=t.options[t.selectedIndex];s&&(this.viewModel.unit=s.value)},a([i.aliasOf(\"viewModel.active\"),u.renderable()],t.prototype,\"active\",void 0),a([i.property()],t.prototype,\"iconClass\",void 0),a([i.property()],t.prototype,\"label\",void 0),a([i.aliasOf(\"viewModel.unit\")],t.prototype,\"unit\",void 0),a([i.aliasOf(\"viewModel.unitOptions\")],t.prototype,\"unitOptions\",void 0),a([i.aliasOf(\"viewModel.view\")],t.prototype,\"view\",void 0),a([i.property({type:l}),u.renderable([\"viewModel.state\",\"viewModel.unitOptions\",\"viewModel.unit\",\"viewModel.measurementLabel\"])],t.prototype,\"viewModel\",void 0),a([i.aliasOf(\"viewModel.visible\"),u.renderable()],t.prototype,\"visible\",void 0),a([u.accessibleHandler()],t.prototype,\"_newMeasurement\",null),a([u.accessibleHandler()],t.prototype,\"_changeUnit\",null),t=a([i.subclass(\"esri.widgets.AreaMeasurement2D\")],t)}(i.declared(r))});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../core/tsSupport/declareExtendsHelper\",\"../../core/tsSupport/decorateHelper\",\"../../Graphic\",\"../../core/Handles\",\"../../core/promiseUtils\",\"../../core/watchUtils\",\"../../core/accessorSupport/decorators\",\"../../geometry/geometryEngine\",\"../../geometry/Point\",\"../../geometry/Polygon\",\"../../geometry/Polyline\",\"../../geometry/projection\",\"../../geometry/SpatialReference\",\"../../geometry/support/geodesicUtils\",\"../../layers/GraphicsLayer\",\"../../symbols/SimpleMarkerSymbol\",\"../../views/2d/draw/Draw\",\"../../views/2d/interactive/dragUtils/dragHandlers\",\"../../views/interactive/GraphicManipulator\",\"../../views/interactive/InteractiveToolBase\"],function(e,t,r,i,o,s,a,n,l,c,p,h,d,u,y,v,m,f,g,_,w,L){function S(e,t,r,i){var s=new f({style:\"circle\",color:i.handleColor,size:i.handleWidth,outline:{type:\"simple-line\",width:0}}),a=new f({style:\"circle\",color:i.handleColor,size:1.5*i.handleWidth,outline:{type:\"simple-line\",width:0}}),n=new o({geometry:e,symbol:s});return new w.GraphicManipulator({view:t,layer:r,graphic:n,focusedSymbol:a})}return function(e){function t(t){var r=e.call(this,t)||this;return r._drawActive=!1,r._handles=new s,r._graphicsLayer=new m({listMode:\"hide\"}),r._manipulatorLayer=new m({listMode:\"hide\"}),r._vertices=[],r.deferCreation=!0,r}r(t,e),f=t,t.prototype.initialize=function(){var e=this,t=this.view;this._draw=new g({view:t}),t.map.addMany([this._graphicsLayer,this._manipulatorLayer]),t.focus(),this._handles.add([this.watch(\"viewModel.unit\",function(){e._vertices.length>0&&e._updateGraphics()})]),n.init(this,\"view.spatialReference\",function(t){f.isProjectionEngineRequired({spatialReference:t})&&e._loadProjectionEngine()})},t.prototype.destroy=function(){this.detach(),this._handles.removeAll(),this._graphicsLayer.removeAll();var e=this.viewModel,t=e.view.map;t.remove(this._graphicsLayer),t.remove(this._manipulatorLayer),e.measurement=null,this._draw&&(this._draw.destroy(),this._draw=null),this._handles&&(this._handles.destroy(),this._handles=null),this._graphicsLayer&&(this._graphicsLayer.destroy(),this._graphicsLayer=null),this._manipulatorLayer&&(this._manipulatorLayer.destroy(),this._manipulatorLayer=null)},Object.defineProperty(t.prototype,\"editable\",{set:function(e){this._set(\"editable\",e),e||this._draw.reset()},enumerable:!0,configurable:!0}),t.prototype.activate=function(){this._drawActive||0!==this._vertices.length||this._startSketch()},t.prototype.onShow=function(){this._graphicsLayer.visible=!0},t.prototype.onHide=function(){this._graphicsLayer.visible=!1},t.prototype.reset=function(){this._vertices=[],this._graphicsLayer.removeAll(),this.viewModel.measurement=null,this._draw.reset(),this._drawActive=!1,this._updateSketch([])},t.updateViewModelAndCreateGraphics=function(e,t){var r=t.geodesicDistanceThreshold,i=t.palette,s=t.view,a=s.spatialReference,n=i.fillColor,l=i.pathColor,p=i.pathWidth;if(2===e.length){var m=new d({paths:e,spatialReference:a}),f=void 0;if(a.isGeographic)if(v.isSupported(a))f=v.geodesicDensify(m,1e5);else{var g=u.project(m,y.WGS84),_=v.geodesicDensify(g,1e5);f=u.project(_,a)}else if(a.isWebMercator)f=c.geodesicDensify(m,1e5,\"meters\");else{var w=c.planarLength(m,\"meters\");if(w>=r){var g=u.project(m,y.WGS84),_=v.geodesicDensify(g,1e5);f=u.project(_,a)}else f=m}return[new o({geometry:f,symbol:{type:\"simple-line\",color:l,width:p}})]}e.push(e[0]);var L,S,A=new d({paths:[e],spatialReference:a}),b=new h({rings:[e],spatialReference:a}),j=null,M=null;if(a.isGeographic)if(v.isSupported(a)){if(j=v.geodesicDensify(A,1e5),M=v.geodesicDensify(b,1e5),!(M=c.simplify(M)))return null;L=v.geodesicLengths([A],\"meters\")[0],S=v.geodesicAreas([M],\"square-meters\")[0]}else{var g=y.WGS84,G=u.project(A,g),D=u.project(b,g);if(j=v.geodesicDensify(G,1e5),M=v.geodesicDensify(D,1e5),!(M=c.simplify(M)))return null;L=v.geodesicLengths([G],\"meters\")[0],S=v.geodesicAreas([M],\"square-meters\")[0],j=u.project(j,a),M=u.project(M,a)}else if(a.isWebMercator){if(j=c.geodesicDensify(A,1e5,\"meters\"),M=c.geodesicDensify(b,1e5,\"meters\"),!(M=c.simplify(M)))return null;L=c.geodesicLength(A,\"meters\"),S=c.geodesicArea(M,\"square-meters\")}else{var w=c.planarLength(A,\"meters\");if(w>=r){var g=y.WGS84,G=u.project(A,g),D=u.project(b,g);if(j=v.geodesicDensify(G,1e5),M=v.geodesicDensify(D,1e5),!(M=c.simplify(M)))return null;L=v.geodesicLengths([G],\"meters\")[0],S=v.geodesicAreas([M],\"square-meters\")[0],j=u.project(j,a),M=u.project(M,a)}else{if(j=A,!(M=c.simplify(b)))return null;L=w,S=c.planarArea(M,\"square-meters\")}}return t.measurement={geometry:M,area:S,perimeter:L},[new o({geometry:M,symbol:{type:\"simple-fill\",color:n,outline:{type:\"simple-line\",width:0}}}),new o({geometry:j,symbol:{type:\"simple-line\",color:l,width:p}}),new o({geometry:M.centroid,symbol:{type:\"text\",color:[255,255,255,1],haloColor:[0,0,0,.5],haloSize:2,text:t.measurementLabel.area,font:{size:14,family:\"sans-serif\"}}})]},t.isProjectionEngineRequired=function(e){if(!e)return!1;var t=e.spatialReference;if(!t)return!1;var r=t.isGeographic,i=t.isWebMercator,o=t.isWGS84;return r&&!o&&!v.isSupported(t)||!r&&!i},t.isProjectionEngineSupported=function(){return u.isSupported()},t.prototype.onInputEvent=function(e){\"pointer-move\"===e.type&&this._updateCursor()},t.prototype._loadProjectionEngine=function(){return f.isProjectionEngineSupported()&&!u.isLoaded()?u.load():a.resolve()},t.prototype._startSketch=function(){var e=this;this._drawActive=!0;var t=this._draw.create(\"polyline\",{mode:\"click\"});t.on([\"vertex-add\",\"vertex-update\",\"vertex-remove\",\"cursor-update\",\"undo\",\"redo\"],function(t){return e._updateSketch(t.vertices)}),t.on(\"draw-complete\",function(){return e._stopSketch()})},t.prototype._stopSketch=function(){if(this._vertices.length<3)return this.reset(),void this._startSketch();this.manipulators.forEach(function(e){e.manipulator.interactive=!0}),this._drawActive=!1,this.complete()},t.prototype._updateSketch=function(e){var t=this;if(!f.isProjectionEngineRequired(this.view)||u.isLoaded()){if(e.length<2)return this._vertices=[],this.manipulators.removeAll(),void this._graphicsLayer.removeAll();this.create();for(var r=this.view.spatialReference;this._vertices.length>e.length;){var i=this._vertices.pop().manipulatorId;this.manipulators.remove(i)}for(var o=this,s=this._vertices.length;s<e.length;s++)!function(i){var s=e[i],a=s[0],n=s[1],l=new p({x:a,y:n,spatialReference:r}),c=S(l,o.view,o._manipulatorLayer,o.viewModel.palette),h=o.manipulators.add(c);_.createGraphicManipulatorDragHandler2D(o.view,c,function(){var e=c.graphic.geometry;t._vertices[i].coord=[e.x,e.y],t._updateGraphics()}),o._vertices.push({manipulatorId:h,coord:[a,n]})}(s);var a=this._vertices.length-1,n=this._vertices[a],l=e[a],c=l[0],h=l[1];if(n.coord[0]!==c||n.coord[1]!==h){n.coord=[c,h];var d=new p({x:c,y:h,spatialReference:r});this.manipulators.findById(n.manipulatorId).graphic.geometry=d}var y=this._drawActive?this._vertices[a].manipulatorId:null;this.manipulators.forEach(function(e){e.manipulator.interactive=null==y||e.id!==y}),this._updateGraphics()}},t.prototype._updateCursor=function(){this.cursor=this._drawActive?\"crosshair\":null},t.prototype._updateGraphics=function(){this._graphicsLayer.removeAll();var e=this.viewModel,t=this._vertices.map(function(e){return e.coord}),r=f.updateViewModelAndCreateGraphics(t,e);r&&this._graphicsLayer.addMany(r)};var f;return i([l.property({constructOnly:!0})],t.prototype,\"view\",void 0),i([l.property({constructOnly:!0})],t.prototype,\"viewModel\",void 0),i([l.property()],t.prototype,\"cursor\",void 0),i([l.property({value:!0})],t.prototype,\"editable\",null),t=f=i([l.subclass(\"esri.widgets.AreaMeasurement2D.AreaMeasurement2DTool\")],t)}(l.declared(L.InteractiveToolBase))});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../core/tsSupport/declareExtendsHelper\",\"../../core/tsSupport/decorateHelper\",\"../../core/compilerUtils\",\"../../core/Error\",\"../../core/Logger\",\"../../core/unitFormatUtils\",\"../../core/unitUtils\",\"../../core/unitUtils\",\"../../core/accessorSupport/decorators\",\"./AreaMeasurement2DTool\",\"../support/commonProperties\",\"../support/InteractiveToolViewModel\"],function(e,t,r,i,n,o,a,s,u,l,p,c,m,d){var f={handleWidth:8,handleColor:[255,128,0,.5],pathWidth:2,pathColor:[255,128,0,1],fillColor:[255,128,0,.3]},h=a.getLogger(\"esri.widgets.AreaMeasurement2D.AreaMeasurement2DViewModel\");return function(e){function t(t){var r=e.call(this,t)||this;return r.supportedViewType=\"2d\",r.geodesicDistanceThreshold=1e5,r.measurement=null,r.palette=f,r.tool=null,r}return r(t,e),Object.defineProperty(t.prototype,\"measurementLabel\",{get:function(){if(!this.measurement)return null;var e={area:null,perimeter:null},t=this.measurement,r=t.area,i=t.perimeter;switch(this.unit){case\"metric\":e.area=s.formatMetricArea(r,\"square-meters\");break;case\"imperial\":e.area=s.formatImperialArea(r,\"square-meters\");break;default:var n=u.convertUnit(r,\"square-meters\",this.unit);e.area=s.formatDecimal(n,this.unit)}var o=this._deriveLengthUnitFromAreaUnit(this.unit);switch(o){case\"metric\":e.perimeter=s.formatMetricLength(i,\"meters\");break;case\"imperial\":e.perimeter=s.formatImperialLength(i,\"meters\");break;default:var a=u.convertUnit(i,\"meters\",o);e.perimeter=s.formatDecimal(a,o)}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"state\",{get:function(){return this.isDisabled?\"disabled\":c.isProjectionEngineRequired(this.view)&&!c.isProjectionEngineSupported()?\"disabled\":this.tool&&this.measurement?this.tool.active?\"measuring\":\"measured\":\"ready\"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"unit\",{get:function(){return this._validateUnit(this.defaultUnit)},set:function(e){if(void 0===e)return void this._clearOverride(\"unit\");this._override(\"unit\",this._validateUnit(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"unitOptions\",{get:function(){return l.measurementAreaUnits},set:function(e){if(void 0===e)return void this._clearOverride(\"unitOptions\");this._override(\"unitOptions\",this._validateUnits(e))},enumerable:!0,configurable:!0}),t.prototype.newMeasurement=function(){this.createTool()},t.prototype.clearMeasurement=function(){this.removeTool()},t.prototype.createToolParams=function(){return{toolConstructor:c,constructorArguments:{viewModel:this}}},t.prototype.logUnsupportedError=function(){h.error(\"AreaMeasurement2D widget is not implemented for SceneView\")},t.prototype.logError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];h.error.apply(h,e)},t.prototype._deriveLengthUnitFromAreaUnit=function(e){switch(e){case\"metric\":return\"metric\";case\"imperial\":return\"imperial\";case\"square-inches\":return\"inches\";case\"square-feet\":return\"feet\";case\"square-yards\":return\"yards\";case\"square-miles\":return\"miles\";case\"square-us-feet\":return\"us-feet\";case\"square-meters\":return\"meters\";case\"square-kilometers\":return\"kilometers\";case\"acres\":return\"imperial\";case\"ares\":case\"hectares\":return\"metric\";case\"square-millimeters\":return\"millimeters\";case\"square-centimeters\":return\"centimeters\";case\"square-decimeters\":return\"decimeters\";default:n.neverReachedSilent(e)}throw new o(\"area-measurement-2d-viewmodel:unhandled-area-unit\",\"Unexpected area unit encountered.\")},t.prototype._validateUnit=function(e){return-1!==this.unitOptions.indexOf(e)?e:-1!==this.unitOptions.indexOf(this.defaultUnit)?this.defaultUnit:this.unitOptions[0]},t.prototype._validateUnits=function(e){void 0===e&&(e=[]);var t=e.filter(function(e){return-1!==l.measurementAreaUnits.indexOf(e)});return 0===t.length?l.measurementAreaUnits.slice():t},i([p.property(m.defaultUnitPropertyMetadata)],t.prototype,\"defaultUnit\",void 0),i([p.property({type:Number})],t.prototype,\"geodesicDistanceThreshold\",void 0),i([p.property()],t.prototype,\"measurement\",void 0),i([p.property({dependsOn:[\"measurement\",\"unit\",\"geodesicDistanceThreshold\"],readOnly:!0})],t.prototype,\"measurementLabel\",null),i([p.property()],t.prototype,\"palette\",void 0),i([p.property({dependsOn:[\"isDisabled\",\"measurement\",\"tool.active\",\"view.spatialReference\"],readOnly:!0})],t.prototype,\"state\",null),i([p.property({constructOnly:!0,readOnly:!0})],t.prototype,\"tool\",void 0),i([p.property({type:String,dependsOn:[\"unitOptions\",\"defaultUnit\"]})],t.prototype,\"unit\",null),i([p.property({type:[String]})],t.prototype,\"unitOptions\",null),t=i([p.subclass(\"esri.widgets.AreaMeasurement2D.AreaMeasurement2DViewModel\")],t)}(p.declared(d.InteractiveToolViewModel))});","/*\n * This module was modified by dojo-webpack-plugin to disable some locales\n * that were excluded by the plugin's 'locales' option\n */\ndefine(({'root':({'widgetLabel':'Area Measurement','hint':'Start to measure by clicking in the map to place your first point','unsupported':'2D area measurement is only supported in MapView.','perimeter':'Perimeter','area':'Area','newMeasurement':'New measurement','mode':'Mode','modes':({'auto':'Auto','planar':'Planar','geodesic':'Geodesic'}),'unit':'Unit','units':({'metric':'Metric','imperial':'Imperial','square-kilometers':'Square kilometers','square-meters':'Square meters','square-miles':'Square miles','square-inches':'Square inches','square-feet':'Square feet','square-yards':'Square yards','square-us-feet':'Square feet (US)','acres':'Acres','ares':'Ares','hectares':'Hectares'})}),'ar':false,'bs':false,'ca':false,'cs':false,'da':false,'de':false,'el':false,'es':false,'et':false,'fi':false,'fr':false,'he':false,'hr':false,'hu':false,'id':false,'it':false,'ja':false,'ko':false,'lv':false,'lt':false,'nl':false,'nb':false,'pl':false,'pt-br':false,'pt-pt':false,'ro':false,'ru':false,'sr':false,'sv':false,'th':false,'tr':false,'uk':false,'vi':1,'zh-cn':false,'zh-hk':false,'zh-tw':false}))","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine({widgetLabel:\"Đo Diện tích\",hint:\"Bắt đầu đo bằng cách bấm vào bản đồ để đặt điểm đầu tiên\",unsupported:\"Tính toán diện tích 2D chỉ được hỗ trợ trong MapView.\",perimeter:\"Chu vi\",area:\"Vùng/Diện tích\",newMeasurement:\"Phép đo mới\",mode:\"Chế độ\",modes:{auto:\"Tự động\",planar:\"Phẳng\",geodesic:\"Trắc địa\"},unit:\"Đơn vị\",units:{metric:\"Hệ mét\",imperial:\"Hệ đo lường Anh\",\"square-kilometers\":\"Kilômét vuông\",\"square-meters\":\"Mét vuông\",\"square-miles\":\"Dặm vuông\",\"square-inches\":\"Inch vuông\",\"square-feet\":\"Feet vuông\",\"square-yards\":\"Thước vuông\",\"square-us-feet\":\"Feet vuông (Mỹ)\",acres:\"Acre\",ares:\"Are\",hectares:\"Hecta\"}});","define([\"dojo/i18n\", \"C:/Jenkins/workspace/_chinh-vien-thong_web-gis_master/node_modules/dojo-webpack-plugin/loaders/dojo/runner.js\"\n,\"esri/widgets/AreaMeasurement2D/nls/vi/AreaMeasurement2D\"\n,\"C:/Jenkins/workspace/_chinh-vien-thong_web-gis_master/node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/AreaMeasurement2D.js?absMid=esri/widgets/AreaMeasurement2D/nls/AreaMeasurement2D\"\n], function(loader, runner) {\n return runner(loader, \"esri/widgets/AreaMeasurement2D/nls/AreaMeasurement2D\", __webpack_require__.dj.c(), false);\n});"],"sourceRoot":"webpack:///"}