????
Current Path : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/ |
Current File : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/92-es5.js |
(function () { var absMids = { "esri/layers/graphics/editingSupport": "./node_modules/arcgis-js-api/layers/graphics/editingSupport.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([[92], { /***/ "./node_modules/arcgis-js-api/layers/graphics/editingSupport.js": /*!**********************************************************************!*\ !*** ./node_modules/arcgis-js-api/layers/graphics/editingSupport.js ***! \**********************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiLayersGraphicsEditingSupportJs(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/generatorHelper */ "./node_modules/arcgis-js-api/core/tsSupport/generatorHelper.js"), __webpack_require__( /*! ../../core/tsSupport/awaiterHelper */ "./node_modules/arcgis-js-api/core/tsSupport/awaiterHelper.js"), __webpack_require__( /*! ../../core/tsSupport/assignHelper */ "./node_modules/arcgis-js-api/core/tsSupport/assignHelper.js"), __webpack_require__( /*! ../../Graphic */ "./node_modules/arcgis-js-api/Graphic.js"), __webpack_require__( /*! ../../core/Collection */ "./node_modules/arcgis-js-api/core/Collection.js"), __webpack_require__( /*! ../../core/Error */ "./node_modules/arcgis-js-api/core/Error.js"), __webpack_require__( /*! ../../core/lang */ "./node_modules/arcgis-js-api/core/lang.js"), __webpack_require__( /*! ../../core/promiseUtils */ "./node_modules/arcgis-js-api/core/promiseUtils.js"), __webpack_require__( /*! ../../core/urlUtils */ "./node_modules/arcgis-js-api/core/urlUtils.js"), __webpack_require__( /*! ../../geometry/support/normalizeUtils */ "./node_modules/arcgis-js-api/geometry/support/normalizeUtils.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (e, t, a, r, i, d, n, s, l, u, o, p) { function c(e) { return !0 === e.get("capabilities.operations.supportsEditing"); } function h(e) { return e && null != e.applyEdits; } function m(e, t, i) { return r(this, void 0, void 0, function () { var r, d, n, o, p, c, m, b, y; return a(this, function (a) { switch (a.label) { case 0: return n = { edits: t, result: u.create(function (e, t) { r = e, d = t; }) }, e.emit("apply-edits", n), [4, e.load()]; case 1: if (a.sent(), o = e.source, !h(o)) return [2, u.reject(new s(e.type + "-layer:no-editing-support", "Layer source does not support applyEdits capability", { layer: e }))]; if (!e.editingEnabled) throw new s(e.type + "-layer:editing-disabled", "Editing is disabled for layer", { layer: e }); return [4, f(e, t, i)]; case 2: p = a.sent(), a.label = 3; case 3: return a.trys.push([3, 5,, 6]), [4, o.applyEdits(p, i)]; case 4: return c = a.sent(), m = function m(e) { return e.filter(function (e) { return !e.error; }).map(l.clone); }, b = { addedFeatures: m(c.addFeatureResults), updatedFeatures: m(c.updateFeatureResults), deletedFeatures: m(c.deleteFeatureResults), addedAttachments: m(c.addAttachmentResults), updatedAttachments: m(c.updateAttachmentResults), deletedAttachments: m(c.deleteAttachmentResults) }, (b.addedFeatures.length || b.updatedFeatures.length || b.deletedFeatures.length || b.addedAttachments.length || b.updatedAttachments.length || b.deletedAttachments.length) && e.emit("edits", b), r(b), [2, c]; case 5: throw y = a.sent(), d(y), y; case 6: return [2]; } }); }); } function f(e, t, d) { return r(this, void 0, void 0, function () { var r, l, u, o; return a(this, function (a) { if (r = t.addFeatures && t.addFeatures.length || t.updateFeatures && t.updateFeatures.length || t.deleteFeatures && t.deleteFeatures.length, l = t.addAttachments && t.addAttachments.length || t.updateAttachments && t.updateAttachments.length || t.deleteAttachments && t.deleteAttachments.length, !t || !r && !l) throw new s(e.type + "-layer:missing-parameters", "'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required"); if (!e.capabilities.data.isVersioned && d && d.gdbVersion) throw new s(e.type + "-layer:invalid-parameter", "'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'"); if (!e.capabilities.editing.supportsRollbackOnFailure && d && d.rollbackOnFailureEnabled) throw new s(e.type + "-layer:invalid-parameter", "This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'"); if (!e.capabilities.editing.supportsGlobalId && d && d.globalIdUsed) throw new s(e.type + "-layer:invalid-parameter", "This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'"); if (!e.capabilities.editing.supportsGlobalId && l) throw new s(e.type + "-layer:invalid-parameter", "'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'"); if ((!d || !d.globalIdUsed) && l) throw new s(e.type + "-layer:invalid-parameter", "When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true"); return u = i({}, t), u.addFeatures = n.isCollection(u.addFeatures) ? u.addFeatures.toArray() : u.addFeatures || [], u.updateFeatures = n.isCollection(u.updateFeatures) ? u.updateFeatures.toArray() : u.updateFeatures || [], u.deleteFeatures = n.isCollection(u.deleteFeatures) ? u.deleteFeatures.toArray() : u.deleteFeatures || [], u.addAttachments = u.addAttachments || [], u.updateAttachments = u.updateAttachments || [], u.deleteAttachments = u.deleteAttachments || [], u.addFeatures = u.addFeatures.map(F), u.updateFeatures = u.updateFeatures.map(F), o = d && d.globalIdUsed, u.addFeatures.forEach(function (t) { return b(t, e, o); }), u.updateFeatures.forEach(function (t) { return b(t, e, o); }), u.deleteFeatures.forEach(function (t) { return b(t, e, o); }), u.addAttachments.forEach(function (t) { return y(t, e); }), u.updateAttachments.forEach(function (t) { return y(t, e); }), [2, g(u)]; }); }); } function b(e, t, a) { if (a) { if ("attributes" in e && !e.attributes[t.globalIdField]) throw new s(t.type + "-layer:invalid-parameter", "Feature should have 'globalId' when 'globalIdUsed' is true"); if (!("attributes" in e || e.globalId)) throw new s(t.type + "-layer:invalid-parameter", "'globalId' of the feature should be passed when 'globalIdUsed' is true"); } } function y(e, t) { var a = e.feature, r = e.attachment; if (!a || "attributes" in a && !a.attributes[t.globalIdField]) throw new s(t.type + "-layer:invalid-parameter", "Attachment should have reference to a feature with 'globalId'"); if (!("attributes" in a || a.globalId)) throw new s(t.type + "-layer:invalid-parameter", "Attachment should have reference to 'globalId' of the parent feature"); if (!r.globalId) throw new s(t.type + "-layer:invalid-parameter", "Attachment should have 'globalId'"); if (!r.data && !r.uploadId) throw new s(t.type + "-layer:invalid-parameter", "Attachment should have 'data' or 'uploadId'"); if (!(r.data instanceof File && r.data.name || r.name)) throw new s(t.type + "-layer:invalid-parameter", "'name' is required when attachment is specified as Base64 encoded string using 'data'"); if (!t.capabilities.editing.supportsUploadWithItemId && r.uploadId) throw new s(t.type + "-layer:invalid-parameter", "This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'"); if ("string" == typeof r.data) { var i = o.dataComponents(r.data); if (i && !i.isBase64) throw new s(t.type + "-layer:invalid-parameter", "Attachment 'data' should be a Blob, File or Base64 encoded string"); } } function g(e) { return r(this, void 0, void 0, function () { var t, r, i, d, n, s; return a(this, function (a) { switch (a.label) { case 0: return t = e.addFeatures, r = e.updateFeatures, i = t.concat(r).map(function (e) { return e.geometry; }), [4, p.normalizeCentralMeridian(i)]; case 1: return d = a.sent(), n = t.length, s = r.length, d.slice(0, n).forEach(function (t, a) { e.addFeatures[a].geometry = t; }), d.slice(n, n + s).forEach(function (t, a) { e.updateFeatures[a].geometry = t; }), [2, e]; } }); }); } function F(e) { var t = new d(); return e.attributes || (e.attributes = {}), t.geometry = e.geometry, t.attributes = e.attributes, t; } Object.defineProperty(t, "__esModule", { value: !0 }), t.isEditableLayer = c, t.applyEdits = m; }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ } }]); //# sourceMappingURL=92-es5.js.map