{"version":3,"sources":["webpack:///./node_modules/@arcgis/core/layers/RouteLayer.js"],"names":["p","e","super","this","type","_getNamedFeatureLayer","t","r","revert","layers","map","read","featureCollection","featureCollections","reduce","union","fullExtent","maxScale","Math","min","forEach","_set","minScale","addResolvingPromise","loadFromPortal","supportedTypes","Promise","resolve","find","title","prototype","ofType","readOnly","json","c"],"mappings":"gHAAA,mKAImoB,IAAIA,EAAE,cAAc,cAAD,CAAG,eAAE,eAAE,WAAM,eAAeC,GAAGC,SAASD,GAAGE,KAAKC,KAAK,QAAQ,mBAAmB,OAAOD,KAAKE,sBAAsB,oBAAoB,oBAAoB,OAAOF,KAAKE,sBAAsB,YAAY,sBAAsB,OAAOF,KAAKE,sBAAsB,mBAAmB,qBAAqB,OAAOF,KAAKE,sBAAsB,kBAAkB,sBAAsB,OAAOF,KAAKE,sBAAsB,mBAAmB,+BAA+BJ,EAAEK,EAAEC,GAAG,OAAOJ,KAAKK,OAAO,qBAAqB,eAAeF,EAAEG,OAAOC,IAAKT,IAAI,MAAMK,EAAE,IAAI,aAAE,OAAOA,EAAEK,KAAKV,EAAEM,GAAGD,IAAK,iCAAiCL,EAAEK,EAAEC,GAAG,OAAOD,EAAEM,kBAAkBH,OAAOC,IAAKT,IAAI,MAAMK,EAAE,IAAI,aAAE,OAAOA,EAAEK,KAAKV,EAAEM,GAAGD,IAAK,iBAAiB,MAAML,EAAE,KAAK,OAAOE,KAAKU,mBAAmBV,KAAKU,mBAAmBC,OAAO,CAAEb,EAAEK,IAAIL,EAAEA,EAAEc,MAAMT,EAAEU,YAAYV,EAAEU,WAAYf,GAAGA,EAAE,eAAe,MAAMA,EAAE,KAAK,OAAOE,KAAKU,mBAAmBV,KAAKU,mBAAmBC,OAAO,CAAEb,EAAEK,IAAI,MAAML,EAAEK,EAAEW,SAASC,KAAKC,IAAIlB,EAAEK,EAAEW,UAAWhB,GAAG,EAAE,aAAaA,GAAGE,KAAKU,mBAAmBO,QAASd,IAAIA,EAAEW,SAAShB,IA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E,CAAC,kBAAK9B,EAAE8B,UAAU,WAAW,MAAM,eAAE,CAAC,kBAAK9B,EAAE8B,UAAU,WAAW,MAAM,eAAE,CAAC,kBAAK9B,EAAE8B,UAAU,YAAY,MAAM,eAAE,CAAC,kBAAK9B,EAAE8B,UAAU,QAAQ,MAAM,eAAE,CAAC,eAAE,CAACE,UAAS,EAAGC,KAAK,CAACtB,MAAK,MAAOX,EAAE8B,UAAU,YAAO,GAAQ9B,EAAE,eAAE,CAAC,eAAE,2BAA2BA,GAAG,IAAIkC,EAAElC,EAAiB","file":"js/chunk-2d20f003.cbeb1fe3.js","sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.20/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../chunks/tslib.es6.js\";import t from\"../core/Collection.js\";import{MultiOriginJSONMixin as r}from\"../core/MultiOriginJSONSupport.js\";import{property as o}from\"../core/accessorSupport/decorators/property.js\";import\"../core/has.js\";import\"../core/accessorSupport/ensureType.js\";import\"../core/Logger.js\";import{reader as l}from\"../core/accessorSupport/decorators/reader.js\";import{subclass as a}from\"../core/accessorSupport/decorators/subclass.js\";import s from\"./FeatureLayer.js\";import i from\"./Layer.js\";import{OperationalLayer as n}from\"./mixins/OperationalLayer.js\";import{PortalLayer as u}from\"./mixins/PortalLayer.js\";let p=class extends(n(u(r(i)))){constructor(...e){super(...e),this.type=\"route\"}get barrierLines(){return this._getNamedFeatureLayer(\"PolylineBarriers\")}get barrierPoints(){return this._getNamedFeatureLayer(\"Barriers\")}get barrierPolygons(){return this._getNamedFeatureLayer(\"PolygonBarriers\")}get directionLines(){return this._getNamedFeatureLayer(\"DirectionLines\")}get directionPoints(){return this._getNamedFeatureLayer(\"DirectionPoints\")}readFeatureCollectionsFromItem(e,t,r){return this.revert(\"featureCollections\",\"portal-item\"),t.layers.map((e=>{const t=new s;return t.read(e,r),t}))}readFeatureCollectionsFromWebMap(e,t,r){return t.featureCollection.layers.map((e=>{const t=new s;return t.read(e,r),t}))}get fullExtent(){const e=null;return this.featureCollections?this.featureCollections.reduce(((e,t)=>e?e.union(t.fullExtent):t.fullExtent),e):e}get maxScale(){const e=null;return this.featureCollections?this.featureCollections.reduce(((e,t)=>null==e?t.maxScale:Math.min(e,t.maxScale)),e):0}set maxScale(e){this.featureCollections.forEach((t=>{t.maxScale=e})),this._set(\"maxScale\",e)}get minScale(){const e=null;return this.featureCollections?this.featureCollections.reduce(((e,t)=>null==e?t.minScale:Math.min(e,t.minScale)),e):0}set minScale(e){this.featureCollections.forEach((t=>{t.minScale=e})),this._set(\"minScale\",e)}get routeInfo(){return this._getNamedFeatureLayer(\"RouteInfo\")}get stops(){return this._getNamedFeatureLayer(\"Stops\")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:[\"Feature Collection\"]},e)),Promise.resolve(this)}_getNamedFeatureLayer(e){if(this.featureCollections)return this.featureCollections.find((t=>t.title===e))}};e([o()],p.prototype,\"barrierLines\",null),e([o()],p.prototype,\"barrierPoints\",null),e([o()],p.prototype,\"barrierPolygons\",null),e([o()],p.prototype,\"directionLines\",null),e([o()],p.prototype,\"directionPoints\",null),e([o({type:t.ofType(s)})],p.prototype,\"featureCollections\",void 0),e([l(\"portal-item\",\"featureCollections\",[\"layers\"])],p.prototype,\"readFeatureCollectionsFromItem\",null),e([l(\"web-map\",\"featureCollections\",[\"featureCollection.layers\"])],p.prototype,\"readFeatureCollectionsFromWebMap\",null),e([o({readOnly:!0})],p.prototype,\"fullExtent\",null),e([o({type:[\"show\",\"hide\"]})],p.prototype,\"listMode\",void 0),e([o()],p.prototype,\"maxScale\",null),e([o()],p.prototype,\"minScale\",null),e([o()],p.prototype,\"routeInfo\",null),e([o()],p.prototype,\"stops\",null),e([o({readOnly:!0,json:{read:!1}})],p.prototype,\"type\",void 0),p=e([a(\"esri.layers.RouteLayer\")],p);var c=p;export default c;\n"],"sourceRoot":""}