????

Your IP : 3.144.193.1


Current Path : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/
Upload File :
Current File : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/66-es2015.js.map

{"version":3,"sources":["./node_modules/arcgis-js-api/widgets/DistanceMeasurement2D.js","./node_modules/arcgis-js-api/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js","./node_modules/arcgis-js-api/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js","./node_modules/arcgis-js-api/widgets/DistanceMeasurement2D/nls/DistanceMeasurement2D.js","./node_modules/arcgis-js-api/widgets/DistanceMeasurement2D/nls/vi/DistanceMeasurement2D.js","webpack:///./node_modules/arcgis-js-api/widgets/DistanceMeasurement2D/nls/DistanceMeasurement2D.js?26f1"],"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,+OAA6D,CAAC,gIAAoC,CAAC,qFAAU,CAAC,iLAAwD,CAAC,qGAAkB,CAAC,mCAAC,4BAA4B,OAAO,0oCAA0oC,mBAAmB,cAAc,2BAA2B,qHAAqH,4CAA4C,+NAA+N,wBAAwB,YAAY,iBAAiB,yCAAyC,qCAAqC,qDAAqD,sCAAsC,iBAAiB,sBAAsB,yCAAyC,eAAe,6BAA6B,kBAAkB,6BAA6B,kBAAkB,sGAAsG,eAAe,6BAA6B,KAAK,kEAAkE,0BAA0B,gBAAgB,yBAAyB,sBAAsB,2BAA2B,iBAAiB,qEAAqE,mBAAmB,uBAAuB,cAAc,aAAa,2BAA2B,gCAAgC,uCAAuC,sBAAsB,iBAAiB,sKAAsK,qCAAqC,kBAAkB,iBAAiB,oBAAoB,4CAA4C,IAAI,wCAAwC,gCAAgC,qCAAqC,4C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iB,mBAAmB,sBAAsB,mBAAmB,uCAAuC,8HAA8H,wCAAwC,mBAAmB,2BAA2B,+CAA+C,EAAE,uDAAuD,gGAAgG,YAAY,qHAAqH,yEAAyE,sGAAsG,yFAAyF,4CAA4C,6BAA6B,6CAA6C,oDAAoD,2CAA2C,cAAc,4HAA4H,yCAAyC;AAAA,oGAAC,C;;;;;;;;;;;ACxBnlH;AACA;AACA;AACA;AACA,mBAAQ,CAAC,SAAS,uQAAuQ,sDAAsD,0BAA0B,gQAAgQ,EAAE,oaAAoa,C;;;;;;;;;;;ACJ/gC;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,4OAA4O,kDAAkD,sBAAsB,iOAAiO,CAAC,C;;;;;;;;;;;ACxB9hB,iGAAO,CAAC,mEAAW,EAAE,iJAA+G;AACpI,CAAC,wLAAiE;AAClE,CAAC,iRAAiN;AAClN,CAAC,mCAAE;AACH,yFAAyF,mBAAmB;AAC5G,CAAC;AAAA,oGAAC,C","file":"66-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!./DistanceMeasurement2D/nls/DistanceMeasurement2D\",\"../core/accessorSupport/decorators\",\"./Widget\",\"./DistanceMeasurement2D/DistanceMeasurement2DViewModel\",\"./support/widget\"],function(e,t,s,n,i,a,r,l,u){var o={button:\"esri-button esri-button--secondary\",buttonDisabled:\"esri-button--disabled\",widgetIcon:\"esri-icon-measure-line\",base:\"esri-distance-measurement-2d\",widget:\"esri-widget\",panel:\"esri-widget--panel\",container:\"esri-distance-measurement-2d__container\",hint:\"esri-distance-measurement-2d__hint\",hintText:\"esri-distance-measurement-2d__hint-text\",panelError:\"esri-distance-measurement-2d__panel--error\",measurement:\"esri-distance-measurement-2d__measurement\",measurementItem:\"esri-distance-measurement-2d__measurement-item\",measurementItemDisabled:\"esri-distance-measurement-2d__measurement-item--disabled\",measurementItemTitle:\"esri-distance-measurement-2d__measurement-item-title\",measurementItemValue:\"esri-distance-measurement-2d__measurement-item-value\",settings:\"esri-distance-measurement-2d__settings\",units:\"esri-distance-measurement-2d__units\",unitsLabel:\"esri-distance-measurement-2d__units-label\",unitsSelect:\"esri-distance-measurement-2d__units-select esri-select\",unitsSelectWrapper:\"esri-distance-measurement-2d__units-select-wrapper\",actionSection:\"esri-distance-measurement-2d__actions\",clearButton:\"esri-distance-measurement-2d__clear-button\"};return function(e){function t(t){var s=e.call(this,t)||this;return s.iconClass=o.widgetIcon,s.label=i.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,n=t.viewModel,a=t.visible,r=n.active,l=n.isSupported,d=n.measurementLabel,c=n.state,m=n.unit,p=n.unitOptions,v=\"disabled\"===c,b=\"ready\"===c,_=\"measuring\"===c||\"measured\"===c,w=r&&b?u.tsx(\"section\",{key:\"hint\",class:o.hint},u.tsx(\"p\",{class:o.hintText},i.hint)):null,y=l?null:u.tsx(\"section\",{key:\"unsupported\",class:o.panelError},u.tsx(\"p\",null,i.unsupported)),M=_?u.tsx(\"section\",{key:\"measurement\",class:o.measurement},function(t,s,n){return s?u.tsx(\"div\",{key:n+\"-enabled\",class:o.measurementItem},u.tsx(\"span\",{class:o.measurementItemTitle},t),u.tsx(\"span\",{class:o.measurementItemValue},s)):u.tsx(\"div\",{key:n+\"-disabled\",class:e.classes(o.measurementItem,o.measurementItemDisabled),\"aria-disabled\":\"true\"},u.tsx(\"span\",{class:o.measurementItemTitle},t))}(i.distance,d,\"distance\")):null,x=s+\"-units\",h=_?u.tsx(\"section\",{key:\"units\",class:o.units},u.tsx(\"label\",{class:o.unitsLabel,for:x},i.unit),u.tsx(\"div\",{class:o.unitsSelectWrapper},u.tsx(\"select\",{class:o.unitsSelect,id:x,onchange:this._changeUnit,bind:this,value:m},p.map(function(e){return u.tsx(\"option\",{key:e,value:e},i.units[e])})))):null,g=_?u.tsx(\"div\",{key:\"settings\",class:o.settings},h):null,f=!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:i.newMeasurement,\"aria-label\":i.newMeasurement},i.newMeasurement)),D=a?u.tsx(\"div\",{class:o.container},y,w,g,M,f):null;return u.tsx(\"div\",{class:this.classes(o.base,o.widget,o.panel)},D)},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)},n([a.aliasOf(\"viewModel.active\"),u.renderable()],t.prototype,\"active\",void 0),n([a.property()],t.prototype,\"iconClass\",void 0),n([a.property()],t.prototype,\"label\",void 0),n([a.aliasOf(\"viewModel.unit\")],t.prototype,\"unit\",void 0),n([a.aliasOf(\"viewModel.unitOptions\")],t.prototype,\"unitOptions\",void 0),n([a.aliasOf(\"viewModel.view\")],t.prototype,\"view\",void 0),n([a.property({type:l}),u.renderable([\"viewModel.state\",\"viewModel.unitOptions\",\"viewModel.unit\",\"viewModel.measurementLabel\"])],t.prototype,\"viewModel\",void 0),n([a.aliasOf(\"viewModel.visible\"),u.renderable()],t.prototype,\"visible\",void 0),n([u.accessibleHandler()],t.prototype,\"_newMeasurement\",null),n([u.accessibleHandler()],t.prototype,\"_changeUnit\",null),t=n([a.subclass(\"esri.widgets.DistanceMeasurement2D\")],t)}(a.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\",\"../../symbols\",\"../../core/Handles\",\"../../core/promiseUtils\",\"../../core/watchUtils\",\"../../core/accessorSupport/decorators\",\"../../geometry/geometryEngine\",\"../../geometry/Point\",\"../../geometry/Polyline\",\"../../geometry/projection\",\"../../geometry/SpatialReference\",\"../../geometry/support/geodesicUtils\",\"../../layers/GraphicsLayer\",\"../../views/2d/draw/Draw\",\"../../views/2d/interactive/dragUtils/dragHandlers\",\"../../views/interactive/GraphicManipulator\",\"../../views/interactive/InteractiveToolBase\"],function(e,t,i,r,o,n,a,s,l,p,c,d,h,u,y,v,m,_,f,w,g){function L(e,t,i,r){var a=new n.SimpleMarkerSymbol({style:\"circle\",color:r.handleColor,size:r.handleWidth,outline:{type:\"simple-line\",width:0}}),s=new n.SimpleMarkerSymbol({style:\"circle\",color:r.handleColor,size:1.5*r.handleWidth,outline:{type:\"simple-line\",width:0}}),l=new o({geometry:e,symbol:a});return new w.GraphicManipulator({view:t,layer:i,graphic:l,focusedSymbol:s})}return function(e){function t(t){var i=e.call(this,t)||this;return i._drawActive=!1,i._handles=new a,i._polylineLayer=new m({listMode:\"hide\"}),i._manipulatorLayer=new m({listMode:\"hide\"}),i._vertices=[],i.deferCreation=!0,i}i(t,e),n=t,t.prototype.initialize=function(){var e=this,t=this.view;this._draw=new _({view:t}),t.map.addMany([this._polylineLayer,this._manipulatorLayer]),t.focus(),this._handles.add([this.watch(\"viewModel.unit\",function(){e._vertices.length>0&&e._updatePolylines()})]),l.init(this,\"view.spatialReference\",function(t){n.isProjectionEngineRequired({spatialReference:t})&&e._loadProjectionEngine()})},t.prototype.destroy=function(){this.detach(),this._handles.removeAll(),this._polylineLayer.removeAll();var e=this.viewModel,t=e.view.map;t.remove(this._polylineLayer),t.remove(this._manipulatorLayer),e.measurement=null,this._draw&&(this._draw.destroy(),this._draw=null),this._handles&&(this._handles.destroy(),this._handles=null),this._polylineLayer&&(this._polylineLayer.destroy(),this._polylineLayer=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._polylineLayer.visible=!0},t.prototype.onHide=function(){this._polylineLayer.visible=!1},t.prototype.reset=function(){this._vertices=[],this._polylineLayer.removeAll(),this.viewModel.measurement=null,this._draw.reset(),this._drawActive=!1,this._updateSketch([])},t.updateViewModelAndCreateGraphics=function(e,t){var i,r,n=t.geodesicDistanceThreshold,a=t.palette,s=t.view,l=s.spatialReference,p=new h({paths:[e],spatialReference:l});if(l.isGeographic)if(v.isSupported(l))i=v.geodesicLengths([p],\"meters\")[0],r=v.geodesicDensify(p,1e5);else{var d=u.project(p,y.WGS84),m=v.geodesicDensify(d,1e5);i=v.geodesicLengths([d],\"meters\")[0],r=u.project(m,l)}else if(l.isWebMercator)i=c.geodesicLength(p,\"meters\"),r=c.geodesicDensify(p,1e5,\"meters\");else{var _=c.planarLength(p,\"meters\");if(_>=n){var d=u.project(p,y.WGS84),m=v.geodesicDensify(d,1e5);i=v.geodesicLengths([d],\"meters\")[0],r=u.project(m,l)}else i=_,r=p}t.measurement={geometry:r,length:i};var f=a.pathPrimaryColor,w=a.pathSecondaryColor,g=a.pathWidth;return[new o({geometry:r,symbol:{type:\"simple-line\",cap:\"butt\",join:\"round\",color:f,width:g}}),new o({geometry:r,symbol:{type:\"simple-line\",style:\"dash\",cap:\"butt\",join:\"round\",color:w,width:g-2}}),new o({geometry:p.extent.center,symbol:{type:\"text\",color:[255,255,255,1],haloColor:[0,0,0,.5],haloSize:2,text:t.measurementLabel,font:{size:14,family:\"sans-serif\"}}})]},t.isProjectionEngineRequired=function(e){if(!e)return!1;var t=e.spatialReference;if(!t)return!1;var i=t.isGeographic,r=t.isWebMercator,o=t.isWGS84;return i&&!o&&!v.isSupported(t)||!i&&!r},t.isProjectionEngineSupported=function(){return u.isSupported()},t.prototype.onInputEvent=function(e){\"pointer-move\"===e.type&&this._updateCursor()},t.prototype._loadProjectionEngine=function(){return n.isProjectionEngineSupported()&&!u.isLoaded()?u.load():s.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(){e._stopSketch()})},t.prototype._stopSketch=function(){this.manipulators.forEach(function(e){e.manipulator.interactive=!0}),this._drawActive=!1,this.complete()},t.prototype._updateSketch=function(e){var t=this;if(!n.isProjectionEngineRequired(this.view)||u.isLoaded()){if(e.length<2)return this._vertices=[],this.manipulators.removeAll(),void this._polylineLayer.removeAll();this.create();for(var i=this.view.spatialReference;this._vertices.length>e.length;){var r=this._vertices.pop().manipulatorId;this.manipulators.remove(r)}for(var o=this,a=this._vertices.length;a<e.length;a++)!function(r){var n=e[r],a=n[0],s=n[1],l=new d({x:a,y:s,spatialReference:i}),p=L(l,o.view,o._manipulatorLayer,o.viewModel.palette),c=o.manipulators.add(p);f.createGraphicManipulatorDragHandler2D(o.view,p,function(){var e=p.graphic.geometry;t._vertices[r].coord=[e.x,e.y],t._updatePolylines()}),o._vertices.push({manipulatorId:c,coord:[a,s]})}(a);var s=this._vertices.length-1,l=this._vertices[s],p=e[s],c=p[0],h=p[1];if(l.coord[0]!==c||l.coord[1]!==h){l.coord=[c,h];var y=new d({x:c,y:h,spatialReference:i});this.manipulators.findById(l.manipulatorId).graphic.geometry=y}var v=this._drawActive?this._vertices[s].manipulatorId:null;this.manipulators.forEach(function(e){e.manipulator.interactive=null==v||e.id!==v}),this._updatePolylines()}},t.prototype._updateCursor=function(){this.cursor=this._drawActive?\"crosshair\":null},t.prototype._updatePolylines=function(){this._polylineLayer.removeAll();var e=this.viewModel,t=this._vertices.map(function(e){return e.coord}),i=n.updateViewModelAndCreateGraphics(t,e);i&&this._polylineLayer.addMany(i)};var n;return r([p.property({constructOnly:!0})],t.prototype,\"view\",void 0),r([p.property({constructOnly:!0})],t.prototype,\"viewModel\",void 0),r([p.property()],t.prototype,\"cursor\",void 0),r([p.property({value:!0})],t.prototype,\"editable\",null),t=n=r([p.subclass(\"esri.widgets.DistanceMeasurement2D.DistanceMeasurement2DTool\")],t)}(p.declared(g.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/Logger\",\"../../core/unitFormatUtils\",\"../../core/unitUtils\",\"../../core/unitUtils\",\"../../core/accessorSupport/decorators\",\"./DistanceMeasurement2DTool\",\"../support/commonProperties\",\"../support/InteractiveToolViewModel\"],function(e,t,r,n,i,o,s,a,u,p,l,d){var c={handleWidth:8,handleColor:[255,128,0,.5],pathWidth:5,pathPrimaryColor:[255,128,0,1],pathSecondaryColor:[255,255,255,1]},m=i.getLogger(\"esri.widgets.DistanceMeasurement2D.DistanceMeasurement2DViewModel\");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=c,r.tool=null,r}return r(t,e),Object.defineProperty(t.prototype,\"measurementLabel\",{get:function(){if(!this.measurement)return null;switch(this.unit){case\"metric\":return o.formatMetricLength(this.measurement.length,\"meters\");case\"imperial\":return o.formatImperialLength(this.measurement.length,\"meters\");default:var e=s.convertUnit(this.measurement.length,\"meters\",this.unit);return o.formatDecimal(e,this.unit)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"state\",{get:function(){return this.isDisabled?\"disabled\":p.isProjectionEngineRequired(this.view)&&!p.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 a.measurementLengthUnits},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:p,constructorArguments:{viewModel:this}}},t.prototype.logUnsupportedError=function(){m.error(\"DistanceMeasurement2D widget is not implemented for SceneView\")},t.prototype.logError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];m.error.apply(m,e)},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!==a.measurementLengthUnits.indexOf(e)});return 0===t.length?a.measurementLengthUnits.slice():t},n([u.property(l.defaultUnitPropertyMetadata)],t.prototype,\"defaultUnit\",void 0),n([u.property({type:Number})],t.prototype,\"geodesicDistanceThreshold\",void 0),n([u.property()],t.prototype,\"measurement\",void 0),n([u.property({dependsOn:[\"measurement\",\"unit\",\"geodesicDistanceThreshold\"],readOnly:!0})],t.prototype,\"measurementLabel\",null),n([u.property()],t.prototype,\"palette\",void 0),n([u.property({dependsOn:[\"isDisabled\",\"measurement\",\"tool.active\",\"view.spatialReference\"],readOnly:!0})],t.prototype,\"state\",null),n([u.property({constructOnly:!0,readOnly:!0})],t.prototype,\"tool\",void 0),n([u.property({type:String,dependsOn:[\"unitOptions\",\"defaultUnit\"]})],t.prototype,\"unit\",null),n([u.property({type:[String]})],t.prototype,\"unitOptions\",null),t=n([u.subclass(\"esri.widgets.DistanceMeasurement2D.DistanceMeasurement2DViewModel\")],t)}(u.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':'Distance Measurement','hint':'Start to measure by clicking in the map to place your first point','unsupported':'2D distance measurement is only supported in MapView.','distance':'Distance','newMeasurement':'New measurement','mode':'Mode','modes':({'auto':'Auto','planar':'Planar','geodesic':'Geodesic'}),'unit':'Unit','units':({'metric':'Metric','imperial':'Imperial','kilometers':'Kilometers','meters':'Meters','miles':'Miles','inches':'Inches','feet':'Feet','yards':'Yards','nautical-miles':'Nautical miles','us-feet':'Feet (US)','degrees-minutes-seconds':'DMS','degrees':'Degrees'})}),'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,'sl':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 Khoảng cá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 khoảng cách 2D chỉ được hỗ trợ trong MapView.\",distance:\"Khoảng cá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\",kilometers:\"Kilômét\",meters:\"Mét\",miles:\"Dặm\",inches:\"Inch\",feet:\"Bộ\",yards:\"Thước\",\"nautical-miles\":\"Hải lý\",\"us-feet\":\"Feet (Hoa Kỳ)\",\"degrees-minutes-seconds\":\"DMS\",degrees:\"Độ\"}});","define([\"dojo/i18n\", \"C:/Jenkins/workspace/_chinh-vien-thong_web-gis_master/node_modules/dojo-webpack-plugin/loaders/dojo/runner.js\"\n,\"esri/widgets/DistanceMeasurement2D/nls/vi/DistanceMeasurement2D\"\n,\"C:/Jenkins/workspace/_chinh-vien-thong_web-gis_master/node_modules/arcgis-js-api/widgets/DistanceMeasurement2D/nls/DistanceMeasurement2D.js?absMid=esri/widgets/DistanceMeasurement2D/nls/DistanceMeasurement2D\"\n], function(loader, runner) {\n   return runner(loader, \"esri/widgets/DistanceMeasurement2D/nls/DistanceMeasurement2D\", __webpack_require__.dj.c(), false);\n});"],"sourceRoot":"webpack:///"}