????
Current Path : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/ |
Current File : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/65-es5.js |
(function () { var absMids = { "esri/widgets/AreaMeasurement2D": "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D.js", "esri/widgets/AreaMeasurement2D/AreaMeasurement2DTool": "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js", "esri/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel": "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js", "esri/widgets/AreaMeasurement2D/nls/AreaMeasurement2D": "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/AreaMeasurement2D.js", "esri/widgets/AreaMeasurement2D/nls/vi/AreaMeasurement2D": "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/vi/AreaMeasurement2D.js", "dojo/i18n!esri/widgets/AreaMeasurement2D/nls/AreaMeasurement2D": "./node_modules/dojo-webpack-plugin/loaders/dojo/i18n/index.js!./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/AreaMeasurement2D.js" }; var globalObj = this || window; var jsonpArray = globalObj["webpackJsonp"] = globalObj["webpackJsonp"] || []; if (jsonpArray.registerAbsMids) { jsonpArray.registerAbsMids(absMids); } else { var absMidsWaiting = jsonpArray.absMidsWaiting = jsonpArray.absMidsWaiting || []; absMidsWaiting.push(absMids); } })(), (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[65], { /***/ "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D.js": /*!*****************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/AreaMeasurement2D.js ***! \*****************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiWidgetsAreaMeasurement2DJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ../core/tsSupport/declareExtendsHelper */ "./node_modules/arcgis-js-api/core/tsSupport/declareExtendsHelper.js"), __webpack_require__( /*! ../core/tsSupport/decorateHelper */ "./node_modules/arcgis-js-api/core/tsSupport/decorateHelper.js"), __webpack_require__( /*! dojo/i18n!./AreaMeasurement2D/nls/AreaMeasurement2D */ "./node_modules/dojo-webpack-plugin/loaders/dojo/i18n/index.js!./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/AreaMeasurement2D.js"), __webpack_require__( /*! ../core/accessorSupport/decorators */ "./node_modules/arcgis-js-api/core/accessorSupport/decorators.js"), __webpack_require__( /*! ./Widget */ "./node_modules/arcgis-js-api/widgets/Widget.js"), __webpack_require__( /*! ./AreaMeasurement2D/AreaMeasurement2DViewModel */ "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js"), __webpack_require__( /*! ./support/widget */ "./node_modules/arcgis-js-api/widgets/support/widget.js")], __WEBPACK_AMD_DEFINE_RESULT__ = 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 M(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)); }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }, /***/ "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js": /*!***************************************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js ***! \***************************************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiWidgetsAreaMeasurement2DAreaMeasurement2DToolJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ../../core/tsSupport/declareExtendsHelper */ "./node_modules/arcgis-js-api/core/tsSupport/declareExtendsHelper.js"), __webpack_require__( /*! ../../core/tsSupport/decorateHelper */ "./node_modules/arcgis-js-api/core/tsSupport/decorateHelper.js"), __webpack_require__( /*! ../../Graphic */ "./node_modules/arcgis-js-api/Graphic.js"), __webpack_require__( /*! ../../core/Handles */ "./node_modules/arcgis-js-api/core/Handles.js"), __webpack_require__( /*! ../../core/promiseUtils */ "./node_modules/arcgis-js-api/core/promiseUtils.js"), __webpack_require__( /*! ../../core/watchUtils */ "./node_modules/arcgis-js-api/core/watchUtils.js"), __webpack_require__( /*! ../../core/accessorSupport/decorators */ "./node_modules/arcgis-js-api/core/accessorSupport/decorators.js"), __webpack_require__( /*! ../../geometry/geometryEngine */ "./node_modules/arcgis-js-api/geometry/geometryEngine.js"), __webpack_require__( /*! ../../geometry/Point */ "./node_modules/arcgis-js-api/geometry/Point.js"), __webpack_require__( /*! ../../geometry/Polygon */ "./node_modules/arcgis-js-api/geometry/Polygon.js"), __webpack_require__( /*! ../../geometry/Polyline */ "./node_modules/arcgis-js-api/geometry/Polyline.js"), __webpack_require__( /*! ../../geometry/projection */ "./node_modules/arcgis-js-api/geometry/projection.js"), __webpack_require__( /*! ../../geometry/SpatialReference */ "./node_modules/arcgis-js-api/geometry/SpatialReference.js"), __webpack_require__( /*! ../../geometry/support/geodesicUtils */ "./node_modules/arcgis-js-api/geometry/support/geodesicUtils.js"), __webpack_require__( /*! ../../layers/GraphicsLayer */ "./node_modules/arcgis-js-api/layers/GraphicsLayer.js"), __webpack_require__( /*! ../../symbols/SimpleMarkerSymbol */ "./node_modules/arcgis-js-api/symbols/SimpleMarkerSymbol.js"), __webpack_require__( /*! ../../views/2d/draw/Draw */ "./node_modules/arcgis-js-api/views/2d/draw/Draw.js"), __webpack_require__( /*! ../../views/2d/interactive/dragUtils/dragHandlers */ "./node_modules/arcgis-js-api/views/2d/interactive/dragUtils/dragHandlers.js"), __webpack_require__( /*! ../../views/interactive/GraphicManipulator */ "./node_modules/arcgis-js-api/views/interactive/GraphicManipulator.js"), __webpack_require__( /*! ../../views/interactive/InteractiveToolBase */ "./node_modules/arcgis-js-api/views/interactive/InteractiveToolBase.js")], __WEBPACK_AMD_DEFINE_RESULT__ = 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 set(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)); }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }, /***/ "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js": /*!********************************************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js ***! \********************************************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiWidgetsAreaMeasurement2DAreaMeasurement2DViewModelJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ../../core/tsSupport/declareExtendsHelper */ "./node_modules/arcgis-js-api/core/tsSupport/declareExtendsHelper.js"), __webpack_require__( /*! ../../core/tsSupport/decorateHelper */ "./node_modules/arcgis-js-api/core/tsSupport/decorateHelper.js"), __webpack_require__( /*! ../../core/compilerUtils */ "./node_modules/arcgis-js-api/core/compilerUtils.js"), __webpack_require__( /*! ../../core/Error */ "./node_modules/arcgis-js-api/core/Error.js"), __webpack_require__( /*! ../../core/Logger */ "./node_modules/arcgis-js-api/core/Logger.js"), __webpack_require__( /*! ../../core/unitFormatUtils */ "./node_modules/arcgis-js-api/core/unitFormatUtils.js"), __webpack_require__( /*! ../../core/unitUtils */ "./node_modules/arcgis-js-api/core/unitUtils.js"), __webpack_require__( /*! ../../core/unitUtils */ "./node_modules/arcgis-js-api/core/unitUtils.js"), __webpack_require__( /*! ../../core/accessorSupport/decorators */ "./node_modules/arcgis-js-api/core/accessorSupport/decorators.js"), __webpack_require__( /*! ./AreaMeasurement2DTool */ "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js"), __webpack_require__( /*! ../support/commonProperties */ "./node_modules/arcgis-js-api/widgets/support/commonProperties.js"), __webpack_require__( /*! ../support/InteractiveToolViewModel */ "./node_modules/arcgis-js-api/widgets/support/InteractiveToolViewModel.js")], __WEBPACK_AMD_DEFINE_RESULT__ = 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 get() { 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 get() { 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 get() { return this._validateUnit(this.defaultUnit); }, set: function set(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 get() { return l.measurementAreaUnits; }, set: function set(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)); }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }, /***/ "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/AreaMeasurement2D.js": /*!***************************************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/AreaMeasurement2D.js ***! \***************************************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiWidgetsAreaMeasurement2DNlsAreaMeasurement2DJs(module, exports, __webpack_require__) { /* * This module was modified by dojo-webpack-plugin to disable some locales * that were excluded by the plugin's 'locales' option */ !(module.exports = { '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 }); /***/ }, /***/ "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/vi/AreaMeasurement2D.js": /*!******************************************************************************************!*\ !*** ./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/vi/AreaMeasurement2D.js ***! \******************************************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiWidgetsAreaMeasurement2DNlsViAreaMeasurement2DJs(module, exports, __webpack_require__) { // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(module.exports = { 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" } }); /***/ }, /***/ "./node_modules/dojo-webpack-plugin/loaders/dojo/i18n/index.js!./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/AreaMeasurement2D.js": /*!********************************************************************************************************************************************!*\ !*** ./node_modules/dojo-webpack-plugin/loaders/dojo/i18n!./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/AreaMeasurement2D.js ***! \********************************************************************************************************************************************/ /*! no static exports found */ /***/ function node_modulesDojoWebpackPluginLoadersDojoI18nIndexJsNode_modulesArcgisJsApiWidgetsAreaMeasurement2DNlsAreaMeasurement2DJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__( /*! dojo/i18n */ "./node_modules/dojo/i18n.js"), __webpack_require__( /*! ./node_modules/dojo-webpack-plugin/loaders/dojo/runner.js */ "./node_modules/dojo-webpack-plugin/loaders/dojo/runner.js"), __webpack_require__( /*! esri/widgets/AreaMeasurement2D/nls/vi/AreaMeasurement2D */ "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/vi/AreaMeasurement2D.js"), __webpack_require__( /*! ./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/AreaMeasurement2D.js?absMid=esri/widgets/AreaMeasurement2D/nls/AreaMeasurement2D */ "./node_modules/arcgis-js-api/widgets/AreaMeasurement2D/nls/AreaMeasurement2D.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (loader, runner) { return runner(loader, "esri/widgets/AreaMeasurement2D/nls/AreaMeasurement2D", __webpack_require__.dj.c(), false); }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ } }]); //# sourceMappingURL=65-es5.js.map