????
Current Path : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/ |
Current File : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/92-es2015.js.map |
{"version":3,"sources":["./node_modules/arcgis-js-api/layers/graphics/editingSupport.js"],"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,iIAAsC,CAAC,6HAAoC,CAAC,2HAAmC,CAAC,mFAAe,CAAC,mGAAuB,CAAC,yFAAkB,CAAC,uFAAiB,CAAC,uGAAyB,CAAC,+FAAqB,CAAC,mIAAuC,CAAC,mCAAC,kCAAkC,cAAc,4DAA4D,cAAc,6BAA6B,kBAAkB,uCAAuC,sBAAsB,0BAA0B,gBAAgB,iBAAiB,sCAAsC,QAAQ,EAAE,sCAAsC,sJAAsJ,QAAQ,IAAI,mGAAmG,QAAQ,EAAE,mBAAmB,4BAA4B,0DAA0D,uCAAuC,4BAA4B,eAAe,eAAe,IAAI,oQAAoQ,iMAAiM,+BAA+B,kBAAkB,EAAE,EAAE,kBAAkB,uCAAuC,YAAY,0BAA0B,gdAAgd,iNAAiN,6PAA6P,mNAAmN,iQAAiQ,gMAAgM,aAAa,8hBAA8hB,gBAAgB,uCAAuC,gBAAgB,uCAAuC,gBAAgB,uCAAuC,cAAc,0CAA0C,cAAc,WAAW,EAAE,EAAE,kBAAkB,MAAM,gKAAgK,4JAA4J,gBAAgB,+BAA+B,uKAAuK,yJAAyJ,kGAAkG,qHAAqH,yLAAyL,wNAAwN,4BAA4B,+BAA+B,sIAAsI,cAAc,uCAAuC,gBAAgB,0BAA0B,gBAAgB,+EAA+E,kBAAkB,oCAAoC,kFAAkF,4BAA4B,uCAAuC,+BAA+B,SAAS,EAAE,EAAE,cAAc,YAAY,qCAAqC,oDAAoD,sCAAsC,SAAS,qCAAqC;AAAA,oGAAC,C","file":"92-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/generatorHelper\",\"../../core/tsSupport/awaiterHelper\",\"../../core/tsSupport/assignHelper\",\"../../Graphic\",\"../../core/Collection\",\"../../core/Error\",\"../../core/lang\",\"../../core/promiseUtils\",\"../../core/urlUtils\",\"../../geometry/support/normalizeUtils\"],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(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});"],"sourceRoot":"webpack:///"}