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,OAAO,OAAO,oBAAoByL,EAAEpB,UAAU,gBAAW,IAAQ,OAAE,EAAC,QAAE,CAACrK,KAAKsL,OAAOuB,MAAM,CAACC,IAAI,EAAEC,IAAI,GAAGH,aAAY,KAAMnB,EAAEpB,UAAU,eAAU,IAAQ,OAAE,EAAC,QAAE,CAACgB,UAAS,KAAMI,EAAEpB,UAAU,cAAS,IAAQ,OAAE,EAAC,QAAE,CAACM,UAAS,KAAMc,EAAEpB,UAAU,YAAY,OAAM,OAAE,EAAC,QAAE,CAACrK,KAAK4K,WAAWa,EAAEpB,UAAU,oBAAe,IAAQ,OAAE,EAAC,QAAE,CAACrK,KAAK4K,WAAWa,EAAEpB,UAAU,0BAAqB,IAAQ,OAAE,EAAC,QAAE,CAACrK,KAAK,OAAKyL,EAAEpB,UAAU,wBAAmB,IAAQ,OAAE,EAAC,QAAE,CAACrK,KAAK6K,UAAUY,EAAEpB,UAAU,aAAQ,IAAQ,OAAE,EAAC,QAAE,CAACM,UAAS,EAAGF,KAAK,CAAC1C,MAAK,MAAO0D,EAAEpB,UAAU,YAAO,IAAQ,OAAE,EAAC,WAAKoB,EAAEpB,UAAU,WAAM,IAAQ,OAAE,EAAC,QAAE,CAACrK,KAAK4K,QAAQgC,aAAY,KAAMnB,EAAEpB,UAAU,eAAU,GAAQoB,GAAE,OAAE,EAAC,OAAE,sBAAsBA,GAAG,MAAMuB,EAAEvB,C","sources":["webpack://facilities-information-tool-v4/./node_modules/@arcgis/core/layers/FeatureLayer.js","webpack://facilities-information-tool-v4/./node_modules/@arcgis/core/layers/Layer.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.27/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../chunks/tslib.es6.js\";import t from\"../PopupTemplate.js\";import\"../renderers/ClassBreaksRenderer.js\";import\"../renderers/DictionaryRenderer.js\";import\"../renderers/DotDensityRenderer.js\";import\"../renderers/HeatmapRenderer.js\";import\"../renderers/PieChartRenderer.js\";import\"../renderers/Renderer.js\";import\"../renderers/SimpleRenderer.js\";import\"../renderers/UniqueValueRenderer.js\";import{read as r}from\"../renderers/support/jsonUtils.js\";import{rendererTypes as i,webSceneRendererTypes as o}from\"../renderers/support/types.js\";import s from\"../request.js\";import{symbolTypes as a}from\"../symbols.js\";import{ClonableMixin as n}from\"../core/Clonable.js\";import l from\"../core/Collection.js\";import p from\"../core/Error.js\";import u from\"../core/Handles.js\";import{clone as d}from\"../core/lang.js\";import y from\"../core/Logger.js\";import{destroyMaybe as c}from\"../core/maybe.js\";import{MultiOriginJSONMixin as m}from\"../core/MultiOriginJSONSupport.js\";import{setDeepValue as h}from\"../core/object.js\";import{throwIfAbortError as f,whenOrAbort as b}from\"../core/promiseUtils.js\";import{sqlAnd as g}from\"../core/sql.js\";import{urlToObject as w,join as j}from\"../core/urlUtils.js\";import{property as v}from\"../core/accessorSupport/decorators/property.js\";import{cast as F}from\"../core/accessorSupport/decorators/cast.js\";import{reader as S}from\"../core/accessorSupport/decorators/reader.js\";import{subclass as I}from\"../core/accessorSupport/decorators/subclass.js\";import{writer as T}from\"../core/accessorSupport/decorators/writer.js\";import D from\"../form/FormTemplate.js\";import E from\"../geometry/SpatialReference.js\";import L from\"./Layer.js\";import{MemorySource as _}from\"./graphics/sources/MemorySource.js\";import{APIKeyMixin as x}from\"./mixins/APIKeyMixin.js\";import{ArcGISService as P}from\"./mixins/ArcGISService.js\";import{BlendLayer as M}from\"./mixins/BlendLayer.js\";import{CustomParametersMixin as q}from\"./mixins/CustomParametersMixin.js\";import{EditBusLayer as C}from\"./mixins/EditBusLayer.js\";import{FeatureEffectLayer as O}from\"./mixins/FeatureEffectLayer.js\";import{FeatureLayerBase as R}from\"./mixins/FeatureLayerBase.js\";import{FeatureReductionLayer as U}from\"./mixins/FeatureReductionLayer.js\";import{OperationalLayer as A}from\"./mixins/OperationalLayer.js\";import{OrderedLayer as Q}from\"./mixins/OrderedLayer.js\";import{PortalLayer as V}from\"./mixins/PortalLayer.js\";import{PublishableLayer as N}from\"./mixins/PublishableLayer.js\";import{RefreshableLayer as G}from\"./mixins/RefreshableLayer.js\";import{ScaleRangeLayer as J}from\"./mixins/ScaleRangeLayer.js\";import{TemporalLayer as $}from\"./mixins/TemporalLayer.js\";import{titleFromUrlAndName as W,parse as B,cleanTitle as Z}from\"./support/arcgisLayerUrl.js\";import{id as k,labelsVisible as z,opacityDrawingInfo as H,legendEnabled as K,listMode as X,popupEnabled as Y,screenSizePerspectiveEnabled as ee}from\"./support/commonProperties.js\";import{ensureLayerCredential as te,computeEffectiveEditingEnabled as re,readGlobalIdField as ie,readObjectIdField as oe,createDefaultRenderer as se,addAttachment as ae,updateAttachment as ne,applyEdits as le,uploadAssets as pe,createQuery as ue,deleteAttachments as de,fetchRecomputedExtents as ye,queryAttachments as ce,queryObjectIds as me,queryFeatureCount as he,queryExtent as fe,queryRelatedFeatures as be,queryRelatedFeaturesCount as ge,hasDataChanged as we,geometryTypeKebabDict as je}from\"./support/featureLayerUtils.js\";import ve from\"./support/FeatureTemplate.js\";import Fe from\"./support/FeatureType.js\";import{defineFieldProperties as Se}from\"./support/fieldProperties.js\";import{fixRendererFields as Ie,fixTimeInfoFields as Te}from\"./support/fieldUtils.js\";import De from\"./support/LabelClass.js\";import{reader as Ee}from\"./support/labelingInfo.js\";import{getFeatureLayerCapabilities as Le}from\"./support/serviceCapabilitiesUtils.js\";import _e from\"./support/TimeInfo.js\";import{serviceSupportsSpatialReference as xe}from\"./support/versionUtils.js\";import{DataLayerSource as Pe}from\"./support/source/DataLayerSource.js\";import{loadStyleRenderer as Me}from\"../renderers/support/styleUtils.js\";import qe from\"../rest/support/FeatureSet.js\";import Ce from\"../rest/support/Query.js\";import Oe from\"../rest/support/TopFeaturesQuery.js\";import{createPopupTemplate as Re}from\"../support/popupUtils.js\";import{opacityToTransparency as Ue}from\"../webdoc/support/opacityUtils.js\";const Ae=\"FeatureLayer\",Qe=\"esri.layers.FeatureLayer\",Ve=y.getLogger(Qe);function Ne(e,t){return new p(\"layer:unsupported\",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}function Ge(e){return e&&e instanceof l}const Je=Se();function $e(e,t,r){const i=!!r?.writeLayerSchema;return{enabled:i,ignoreOrigin:i}}let We=class extends(R(U(O(N(C(M(Q($(J(G(P(A(V(m(q(x(n(L)))))))))))))))))){constructor(...e){super(...e),this._handles=new u,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=E.WGS84,this.subtypeCode=null,this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode=\"item-title\",this.type=\"feature\",this.typeIdField=null,this.types=null,this.visible=!0}destroy(){this.source?.destroy(),this._handles=c(this._handles)}normalizeCtorArgs(e,t){return\"string\"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then((e=>this.initLayerProperties(e)))),Promise.resolve(this);const r=this.loadFromPortal({supportedTypes:[\"Feature Service\",\"Feature Collection\"]},e).catch(f).then((async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\\/*$/i.test(this.url)){const e=await this._fetchFirstLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new p(\"feature-layer:missing-url-or-source\",\"Feature layer must be created with either a url or a source\");return this.initLayerProperties(await this.createGraphicsSource(t))})).then((()=>this._setUserPrivileges(this.serviceItemId,e))).then((()=>te(this,e)));return this.addResolvingPromise(r),Promise.resolve(this)}readCapabilities(e,t){return t=t.layerDefinition||t,Le(t,this.url)}get createQueryVersion(){return this.commitProperty(\"definitionExpression\"),this.commitProperty(\"dynamicDataSource\"),this.commitProperty(\"timeExtent\"),this.commitProperty(\"timeOffset\"),this.commitProperty(\"geometryType\"),this.commitProperty(\"gdbVersion\"),this.commitProperty(\"historicMoment\"),this.commitProperty(\"returnZ\"),this.commitProperty(\"capabilities\"),this.commitProperty(\"returnM\"),(this._get(\"createQueryVersion\")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden(\"editingEnabled\")?this._get(\"editingEnabled\"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome(\"editingEnabled\",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,r){return this._readEditingEnabled(t,!0,r)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,r,i){this._writeEditingEnabled(e,t,!0,i)}get effectiveEditingEnabled(){return re(this)}readIsTable(e,t){return\"Table\"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,r,i){i?.writeLayerSchema&&h(r,e?\"Table\":\"Feature Layer\",t)}readGlobalIdField(e,t){return ie(t.layerDefinition||t)}readObjectIdField(e,t){return oe(t.layerDefinition||t)}get parsedUrl(){const e=w(this.url);return null!=e&&(null!=this.dynamicDataSource?e.path=j(e.path,\"dynamicLayer\"):null!=this.layerId&&(e.path=j(e.path,this.layerId.toString()))),e}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){Ie(e,this.fieldsIndex),this._set(\"renderer\",e)}readRenderer(e,t,i){t=t.layerDefinition||t;const o=t.drawingInfo?.renderer;if(o){const e=r(o,t,i)??void 0;return e||Ve.error(\"Failed to create renderer\",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:i}),e}return se(t,i)}set source(e){const t=this._get(\"source\");t!==e&&(Ge(t)&&this._resetMemorySource(t),Ge(e)&&this._initMemorySource(e),this._set(\"source\",e))}castSource(e){return e?Array.isArray(e)||e instanceof l?new _({layer:this,items:e}):e:null}readSource(e,t){const r=qe.fromJSON(t.featureSet);return new _({layer:this,items:r?.features??[]})}readTemplates(e,t){const r=t.editFieldsInfo,i=r&&r.creatorField,o=r&&r.editorField;return e=e&&e.map((e=>ve.fromJSON(e))),this._fixTemplates(e,i),this._fixTemplates(e,o),e}readTitle(e,t){const r=t.layerDefinition?.name??t.name,i=t.title||t.layerDefinition&&t.layerDefinition.title;if(r){const e=this.portalItem&&this.portalItem.title;if(\"item-title\"===this.sublayerTitleMode)return this.url?W(this.url,r):r;let t=r;if(!t&&this.url){const e=B(this.url);null!=e&&(t=e.title)}if(!t)return;return\"item-title-and-service-name\"===this.sublayerTitleMode&&e&&e!==t&&(t=e+\" - \"+t),Z(t)}if(\"item-title\"===this.sublayerTitleMode&&i)return i}readTitleFromWebMap(e,t){return t.title||t.layerDefinition&&t.layerDefinition.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const e=t.fields.find((e=>e.name.toLowerCase()===r));e&&(r=e.name)}return r}readTypes(e,t){e=(t=t.layerDefinition||t).types;const r=t.editFieldsInfo,i=r&&r.creatorField,o=r&&r.editorField;return e&&e.map((e=>(e=Fe.fromJSON(e),this._fixTemplates(e.templates,i),this._fixTemplates(e.templates,o),e)))}readVisible(e,t){return t.layerDefinition&&null!=t.layerDefinition.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t){return ae(this,e,t,Ae)}async updateAttachment(e,t,r){return ne(this,e,t,r,Ae)}async applyEdits(e,t){return le(this,e,t)}async uploadAssets(e,t){return pe(this,e,t)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return Re(this,e)}async createGraphicsSource(e){if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});const{default:t}=await b(import(\"./graphics/sources/FeatureLayerSource.js\"),e);return new t({layer:this}).load({signal:e})}createQuery(){const e=ue(this);e.dynamicDataSource=this.dynamicDataSource;const t=null!=this.subtypeCode?`${this.subtypeField} = ${this.subtypeCode}`:null,r=g(this.definitionExpression,t);return e.where=r||\"1=1\",e}async deleteAttachments(e,t){return de(this,e,t,Ae)}async fetchRecomputedExtents(e){return ye(this,e,Ae)}getFeatureType(e){const{typeIdField:t,types:r}=this;if(!t||!e)return null;const i=e.attributes?e.attributes[t]:void 0;if(null==i)return null;let o=null;return r?.some((e=>{const{id:t}=e;return null!=t&&(t.toString()===i.toString()&&(o=e),!!o)})),o}getFieldDomain(e,t){const r=t?.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&\"inherited\"!==t.type)return t}return this._getLayerDomain(e)}getField(e){return this.fieldsIndex.get(e)}async queryAttachments(e,t){return ce(this,e,t,Ae)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(Ce.from(e)??r.createQuery(),t);if(i?.features)for(const o of i.features)o.layer=o.sourceLayer=r;return i}async queryObjectIds(e,t){return me(this,e,t,Ae)}async queryFeatureCount(e,t){return he(this,e,t,Ae)}async queryExtent(e,t){return fe(this,e,t,Ae)}async queryRelatedFeatures(e,t){return be(this,e,t,Ae)}async queryRelatedFeaturesCount(e,t){return ge(this,e,t,Ae)}async queryTopFeatures(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopFeatures||!i?.query?.supportsTopFeaturesQuery)throw new p(Ae,\"Layer source does not support queryTopFeatures capability\");const o=await r.queryTopFeatures(Oe.from(e),t);if(o?.features)for(const s of o.features)s.layer=s.sourceLayer=this;return o}async queryTopObjectIds(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopObjectIds||!i?.query.supportsTopFeaturesQuery)throw new p(Ae,\"Layer source does not support queryTopObjectIds capability\");return r.queryTopObjectIds(Oe.from(e),t)}async queryTopFeaturesExtent(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopExtents||!i?.query?.supportsTopFeaturesQuery)throw new p(Ae,\"Layer source does not support queryTopExtents capability\");return r.queryTopExtents(Oe.from(e),t)}async queryTopFeatureCount(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopCount||!i?.query?.supportsTopFeaturesQuery)throw new p(Ae,\"Layer source does not support queryFeatureCount capability\");return r.queryTopCount(Oe.from(e),t)}read(e,t){const r=e.featureCollection;if(r){const e=r.layers;e&&1===e.length&&(super.read(e[0],t),null!=r.showLegend&&super.read({showLegend:r.showLegend},t))}super.read(e,t),t&&\"service\"===t.origin&&(this.revert([\"objectIdField\",\"fields\",\"timeInfo\"],\"service\"),this.spatialReference||this.revert([\"spatialReference\"],\"service\"))}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};const{origin:r,layerContainerType:i,messages:o}=t;if(this.dynamicDataSource)return o?.push(Ne(this,\"using a dynamic data source cannot be written to web scenes, web maps and feature service items\")),null;if(this.isTable){if(\"web-scene\"===r||\"web-map\"===r&&\"tables\"!==i)return o?.push(Ne(this,\"using a table source cannot be written to web scenes and web maps\")),null;if(this._hasMemorySource())return o?.push(Ne(this,\"using an in-memory table source cannot be written to web scenes and web maps\")),null}else if(this.loaded&&\"web-map\"===r&&\"tables\"===i)return o?.push(Ne(this,\"using a non-table source cannot be written to tables in web maps\")),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new p(Ae,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&(\"memory\"===this.source?.type||xe(this,e))}async save(e){const{save:t}=await import(\"./save/featureLayerUtils.js\");return t(this,e)}async saveAs(e,t){const{saveAs:r}=await import(\"./save/featureLayerUtils.js\");return r(this,e,t)}_readEditingEnabled(e,t,r){let i=e.layerDefinition?.capabilities;return i?this._hasEditingCapability(i):(i=e.capabilities,t&&\"web-map\"===r?.origin&&!this._hasMemorySource()&&i?this._hasEditingCapability(i):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(\",\").map((e=>e.trim())).includes(\"editing\")}_writeEditingEnabled(e,t,r,i){if(!e){const e=this.capabilities?.operations?.supportsSync?\"Query,Sync\":\"Query\";h(\"layerDefinition.capabilities\",e,t),r&&!i?.writeLayerSchema&&(t.capabilities=e)}}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}_fetchFirstLayerId(e){return s(this.url,{query:{f:\"json\",...this.customParameters,token:this.apiKey},responseType:\"json\",signal:e}).then((e=>{const t=e.data;if(t)return Array.isArray(t.layers)&&t.layers.length>0?t.layers[0].id:Array.isArray(t.tables)&&t.tables.length>0?t.tables[0].id:void 0}))}async initLayerProperties(e){return this._set(\"source\",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:\"service\",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),this._verifyFields(),Ie(this.renderer,this.fieldsIndex),Te(this.timeInfo,this.fieldsIndex),Me(this,{origin:\"service\"})}async hasDataChanged(){return we(this)}async fetchPublishingStatus(){const e=this.source;return e?.fetchPublishingStatus?e.fetchPublishingStatus():\"unavailable\"}_verifyFields(){const e=this.parsedUrl?.path??\"undefined\";this.objectIdField||console.log(\"FeatureLayer: 'objectIdField' property is not defined (url: \"+e+\")\"),this.isTable||this._hasMemorySource()||-1!==e.search(/\\/FeatureServer\\//i)||this.fields?.some((e=>\"geometry\"===e.type))||console.log(\"FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: \"+e+\")\")}_fixTemplates(e,t){e&&e.forEach((e=>{const r=e.prototype&&e.prototype.attributes;r&&t&&delete r[t]}))}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new p(\"feature-layer:mixed-source-and-url\",\"FeatureLayer cannot be created with both an in-memory source and a url\")}else if(!this.url)throw new p(\"feature-layer:source-or-url-required\",\"FeatureLayer requires either a url, a valid portal item or a source\")}_initMemorySource(e){e.forEach((e=>{e.layer=this,e.sourceLayer=this})),this._handles.add([e.on(\"after-add\",(e=>{e.item.layer=this,e.item.sourceLayer=this})),e.on(\"after-remove\",(e=>{e.item.layer=null,e.item.sourceLayer=null}))],\"fl-source\")}_resetMemorySource(e){e.forEach((e=>{e.layer=null,e.sourceLayer=null})),this._handles.remove(\"fl-source\")}_hasMemorySource(){return!(this.url||!this.source)}};e([S(\"service\",\"capabilities\")],We.prototype,\"readCapabilities\",null),e([v({json:{origins:{\"portal-item\":{write:!0},\"web-map\":{write:!0}}}})],We.prototype,\"charts\",void 0),e([v({readOnly:!0})],We.prototype,\"createQueryVersion\",null),e([v({json:{read:{source:\"layerDefinition.copyrightText\"}}})],We.prototype,\"copyright\",void 0),e([v({json:{read:{source:\"layerDefinition.displayField\"}}})],We.prototype,\"displayField\",void 0),e([v({types:a,readOnly:!0})],We.prototype,\"defaultSymbol\",void 0),e([v({type:Pe})],We.prototype,\"dynamicDataSource\",void 0),e([v({type:Boolean})],We.prototype,\"editingEnabled\",null),e([S([\"portal-item\",\"web-scene\"],\"editingEnabled\",[\"layerDefinition.capabilities\"])],We.prototype,\"readEditingEnabled\",null),e([S(\"web-map\",\"editingEnabled\",[\"capabilities\",\"layerDefinition.capabilities\"])],We.prototype,\"readEditingEnabledFromWebMap\",null),e([T([\"portal-item\",\"web-scene\"],\"editingEnabled\",{\"layerDefinition.capabilities\":{type:String}})],We.prototype,\"writeEditingEnabled\",null),e([T(\"web-map\",\"editingEnabled\",{capabilities:{type:String},\"layerDefinition.capabilities\":{type:String}})],We.prototype,\"writeEditingEnabledToWebMap\",null),e([v({readOnly:!0})],We.prototype,\"effectiveEditingEnabled\",null),e([v({...Je.fields,json:{read:{source:\"layerDefinition.fields\"},origins:{service:{name:\"fields\"},\"web-map\":{write:{target:\"layerDefinition.fields\",overridePolicy:$e}}}}})],We.prototype,\"fields\",void 0),e([v(Je.fieldsIndex)],We.prototype,\"fieldsIndex\",void 0),e([v({type:D,json:{name:\"formInfo\",write:!0,origins:{\"web-scene\":{read:!1,write:!1}}}})],We.prototype,\"formTemplate\",void 0),e([v({json:{read:{source:\"layerDefinition.extent\"}}})],We.prototype,\"fullExtent\",void 0),e([v({json:{origins:{\"web-map\":{write:{target:\"layerDefinition.geometryType\",overridePolicy:$e,writer(e,t,r){const i=e?je.toJSON(e):null;i&&h(r,i,t)}}}},read:{source:\"layerDefinition.geometryType\",reader:je.read}}})],We.prototype,\"geometryType\",void 0),e([v({json:{read:{source:\"layerDefinition.hasM\"}}})],We.prototype,\"hasM\",void 0),e([v({json:{read:{source:\"layerDefinition.hasZ\"}}})],We.prototype,\"hasZ\",void 0),e([v(k)],We.prototype,\"id\",void 0),e([v({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],We.prototype,\"infoFor3D\",void 0),e([v({json:{origins:{\"web-map\":{write:{target:\"layerDefinition.type\"}}}}})],We.prototype,\"isTable\",void 0),e([S(\"service\",\"isTable\",[\"type\",\"geometryType\"]),S(\"isTable\",[\"layerDefinition.type\",\"layerDefinition.geometryType\"])],We.prototype,\"readIsTable\",null),e([T(\"web-map\",\"isTable\")],We.prototype,\"writeIsTable\",null),e([v(z)],We.prototype,\"labelsVisible\",void 0),e([v({type:[De],json:{origins:{service:{read:{source:\"drawingInfo.labelingInfo\",reader:Ee},write:{target:\"drawingInfo.labelingInfo\",enabled:!1}}},read:{source:\"layerDefinition.drawingInfo.labelingInfo\",reader:Ee},write:{target:\"layerDefinition.drawingInfo.labelingInfo\"}}})],We.prototype,\"labelingInfo\",void 0),e([v((()=>{const e=d(H);return e.json.origins[\"portal-item\"]={write:{target:\"layerDefinition.drawingInfo.transparency\",writer(e,t,r){h(r,Ue(e),t)}}},e})())],We.prototype,\"opacity\",void 0),e([v(K)],We.prototype,\"legendEnabled\",void 0),e([v({type:[\"show\",\"hide\"],json:(()=>{const e=d(X.json);return e.origins[\"portal-item\"]={read:!1,write:!1},e})()})],We.prototype,\"listMode\",void 0),e([S(\"globalIdField\",[\"layerDefinition.globalIdField\",\"layerDefinition.fields\"])],We.prototype,\"readGlobalIdField\",null),e([v({json:{origins:{\"web-map\":{write:{target:\"layerDefinition.objectIdField\",overridePolicy:$e}}}}})],We.prototype,\"objectIdField\",void 0),e([S(\"objectIdField\",[\"layerDefinition.objectIdField\",\"layerDefinition.fields\"])],We.prototype,\"readObjectIdField\",null),e([v({value:\"ArcGISFeatureLayer\",type:[\"ArcGISFeatureLayer\"]})],We.prototype,\"operationalLayerType\",void 0),e([v(Je.outFields)],We.prototype,\"outFields\",void 0),e([v({readOnly:!0})],We.prototype,\"parsedUrl\",null),e([v({type:String,json:{origins:{\"web-scene\":{read:!0,write:!0}},read:!1}})],We.prototype,\"path\",void 0),e([v(Y)],We.prototype,\"popupEnabled\",void 0),e([v({type:t,json:{name:\"popupInfo\",write:!0}})],We.prototype,\"popupTemplate\",void 0),e([v({readOnly:!0})],We.prototype,\"defaultPopupTemplate\",null),e([v({types:i,json:{origins:{service:{write:{target:\"drawingInfo.renderer\",enabled:!1}},\"web-scene\":{types:o,name:\"layerDefinition.drawingInfo.renderer\",write:{overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}},write:{target:\"layerDefinition.drawingInfo.renderer\",overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema})}}})],We.prototype,\"renderer\",null),e([S(\"service\",\"renderer\",[\"drawingInfo.renderer\",\"defaultSymbol\"]),S(\"renderer\",[\"layerDefinition.drawingInfo.renderer\",\"layerDefinition.defaultSymbol\"])],We.prototype,\"readRenderer\",null),e([v((()=>{const e=d(ee);return e.json.origins[\"portal-item\"]={read:!1,write:!1},e})())],We.prototype,\"screenSizePerspectiveEnabled\",void 0),e([v({clonable:!1})],We.prototype,\"source\",null),e([F(\"source\")],We.prototype,\"castSource\",null),e([S(\"portal-item\",\"source\",[\"featureSet\"]),S(\"web-map\",\"source\",[\"featureSet\"])],We.prototype,\"readSource\",null),e([v({json:{read:{source:\"layerDefinition.extent.spatialReference\"}}})],We.prototype,\"spatialReference\",void 0),e([v({type:Number})],We.prototype,\"subtypeCode\",void 0),e([v({type:[ve]})],We.prototype,\"templates\",void 0),e([S(\"templates\",[\"editFieldsInfo\",\"creatorField\",\"editorField\",\"templates\"])],We.prototype,\"readTemplates\",null),e([v({type:_e})],We.prototype,\"timeInfo\",void 0),e([v()],We.prototype,\"title\",void 0),e([S(\"service\",\"title\",[\"name\"]),S(\"portal-item\",\"title\",[\"layerDefinition.title\",\"layerDefinition.name\",\"title\"])],We.prototype,\"readTitle\",null),e([S(\"web-map\",\"title\",[\"layerDefinition.name\",\"title\"])],We.prototype,\"readTitleFromWebMap\",null),e([v({type:String})],We.prototype,\"sublayerTitleMode\",void 0),e([v({json:{read:!1}})],We.prototype,\"type\",void 0),e([v({type:String})],We.prototype,\"typeIdField\",void 0),e([S(\"service\",\"typeIdField\"),S(\"typeIdField\",[\"layerDefinition.typeIdField\"])],We.prototype,\"readTypeIdField\",null),e([v({type:[Fe]})],We.prototype,\"types\",void 0),e([S(\"service\",\"types\",[\"types\"]),S(\"types\",[\"layerDefinition.types\"])],We.prototype,\"readTypes\",null),e([v({type:Boolean,json:{origins:{\"portal-item\":{write:{target:\"layerDefinition.defaultVisibility\"}}}}})],We.prototype,\"visible\",void 0),e([S(\"portal-item\",\"visible\",[\"visibility\",\"layerDefinition.defaultVisibility\"])],We.prototype,\"readVisible\",null),We=e([I(Qe)],We);const Be=We;export{Be as default};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.27/esri/copyright.txt for details.\n*/\nimport{_ as t}from\"../chunks/tslib.es6.js\";import\"../geometry.js\";import e from\"../request.js\";import r from\"../core/Error.js\";import o from\"../core/Evented.js\";import{IdentifiableMixin as i}from\"../core/Identifiable.js\";import s from\"../core/Loadable.js\";import a from\"../core/Logger.js\";import{isAbortError as l}from\"../core/promiseUtils.js\";import{urlToObject as n}from\"../core/urlUtils.js\";import{property as p}from\"../core/accessorSupport/decorators/property.js\";import\"../core/accessorSupport/ensureType.js\";import\"../core/arrayUtils.js\";import\"../core/has.js\";import{subclass as y}from\"../core/accessorSupport/decorators/subclass.js\";import{fromPortalItem as d}from\"./support/fromPortalItem.js\";import u from\"../geometry/Extent.js\";import c from\"../geometry/SpatialReference.js\";let m=0,h=class extends(o.EventedMixin(i(s))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new u(-180,-90,180,90,c.WGS84),this.id=Date.now().toString(16)+\"-layer-\"+m++,this.legendEnabled=!0,this.listMode=\"show\",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e=\"string\"==typeof t?{url:t}:t;return(await import(\"./support/arcgisLayers.js\")).fromUrl(e)}static fromPortalItem(t){return d(t)}initialize(){this.when().catch((t=>{l(t)||a.getLogger(this).error(\"#load()\",`Failed to load layer (title: '${this.title??\"no title\"}', id: '${this.id??\"no id\"}')`,{error:t})}))}destroy(){if(this.parent){const t=this,e=this.parent;\"layers\"in e&&e.layers.includes(t)?e.layers.remove(t):\"tables\"in e&&e.tables.includes(t)?e.tables.remove(t):\"baseLayers\"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):\"baseLayers\"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return n(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t){return(await e(t,{query:{f:\"json\"},responseType:\"json\"})).data}throw new r(\"layer:no-attribution-data\",\"Layer does not have attribution data\")}};t([p({type:String})],h.prototype,\"attributionDataUrl\",void 0),t([p({type:u})],h.prototype,\"fullExtent\",void 0),t([p({readOnly:!0})],h.prototype,\"hasAttributionData\",null),t([p({type:String,clonable:!1})],h.prototype,\"id\",void 0),t([p({type:Boolean,nonNullable:!0})],h.prototype,\"legendEnabled\",void 0),t([p({type:[\"show\",\"hide\",\"hide-children\"]})],h.prototype,\"listMode\",void 0),t([p({type:Number,range:{min:0,max:1},nonNullable:!0})],h.prototype,\"opacity\",void 0),t([p({clonable:!1})],h.prototype,\"parent\",void 0),t([p({readOnly:!0})],h.prototype,\"parsedUrl\",null),t([p({type:Boolean})],h.prototype,\"popupEnabled\",void 0),t([p({type:Boolean})],h.prototype,\"attributionVisible\",void 0),t([p({type:c})],h.prototype,\"spatialReference\",void 0),t([p({type:String})],h.prototype,\"title\",void 0),t([p({readOnly:!0,json:{read:!1}})],h.prototype,\"type\",void 0),t([p()],h.prototype,\"url\",void 0),t([p({type:Boolean,nonNullable:!0})],h.prototype,\"visible\",void 0),h=t([y(\"esri.layers.Layer\")],h);const b=h;export{b as default};\n"],"names":["Ae","Qe","Ve","getLogger","Ne","e","t","title","id","declaredClass","layer","Ge","Je","$e","r","i","writeLayerSchema","enabled","ignoreOrigin","We","constructor","super","this","_handles","charts","copyright","displayField","dynamicDataSource","fields","fieldsIndex","formTemplate","fullExtent","geometryType","hasM","hasZ","infoFor3D","isTable","labelsVisible","labelingInfo","legendEnabled","objectIdField","outFields","path","popupEnabled","popupTemplate","screenSizePerspectiveEnabled","spatialReference","WGS84","subtypeCode","templates","timeInfo","sublayerTitleMode","type","typeIdField","types","visible","destroy","source","normalizeCtorArgs","url","load","signal","portalItem","loaded","addResolvingPromise","createGraphicsSource","then","initLayerProperties","Promise","resolve","loadFromPortal","supportedTypes","catch","layerId","test","_fetchFirstLayerId","_hasMemorySource","_setUserPrivileges","serviceItemId","readCapabilities","layerDefinition","createQueryVersion","commitProperty","_get","editingEnabled","capabilities","operations","supportsEditing","_isOverridden","userHasEditingPrivileges","_overrideIfSome","readEditingEnabled","_readEditingEnabled","readEditingEnabledFromWebMap","writeEditingEnabled","_writeEditingEnabled","writeEditingEnabledToWebMap","effectiveEditingEnabled","readIsTable","writeIsTable","readGlobalIdField","readObjectIdField","parsedUrl","toString","defaultPopupTemplate","createPopupTemplate","renderer","_set","readRenderer","o","drawingInfo","error","rendererDefinition","context","_resetMemorySource","_initMemorySource","castSource","Array","isArray","items","readSource","fromJSON","featureSet","features","readTemplates","editFieldsInfo","creatorField","editorField","map","_fixTemplates","readTitle","name","readTitleFromWebMap","readTypeIdField","toLowerCase","find","readTypes","readVisible","defaultVisibility","visibility","addAttachment","updateAttachment","applyEdits","uploadAssets","on","default","createQuery","subtypeField","definitionExpression","where","deleteAttachments","fetchRecomputedExtents","getFeatureType","attributes","some","getFieldDomain","feature","domains","_getLayerDomain","getField","get","queryAttachments","queryFeatures","from","sourceLayer","queryObjectIds","queryFeatureCount","queryExtent","queryRelatedFeatures","queryRelatedFeaturesCount","queryTopFeatures","query","supportsTopFeaturesQuery","s","queryTopObjectIds","queryTopFeaturesExtent","queryTopExtents","queryTopFeatureCount","queryTopCount","read","featureCollection","layers","length","showLegend","origin","revert","write","layerContainerType","messages","push","clone","serviceSupportsSpatialReference","save","saveAs","_hasEditingCapability","split","trim","includes","supportsSync","domain","f","customParameters","token","apiKey","responseType","data","tables","sourceJSON","portal","_verifySource","_verifyFields","hasDataChanged","fetchPublishingStatus","console","log","search","forEach","prototype","add","item","remove","json","origins","readOnly","Boolean","String","service","target","overridePolicy","writer","toJSON","reader","value","clonable","Number","Be","m","h","EventedMixin","arguments","attributionDataUrl","Date","now","listMode","opacity","parent","attributionVisible","fromArcGISServerUrl","fromUrl","fromPortalItem","initialize","when","baseLayers","referenceLayers","hasAttributionData","fetchAttributionData","nonNullable","range","min","max","b"],"sourceRoot":""}