{"version":3,"sources":["../node_modules/@arcgis/core/node_modules/@stencil/core/internal/client lazy /^/.*$/ include: /.entry/.js$/ exclude: /.system/.entry/.js$/ groupOptions: {} namespace object","components/ExportDialog.tsx","components/WebNAV.tsx","App.tsx","reportWebVitals.ts","index.tsx"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","module","exports","id","ExportDialog","props","console","log","Dialog","open","onClose","DialogTitle","DialogContent","data","map","da","indexo","DialogContentText","display","items","item","index","rawData","Name","text","DialogActions","Button","onClick","autoFocus","WebNAV","view","highlight","markerGraphic","locateType","foundLayer","userId","coreClient","state","closeDialog","setState","import","config","search","webnav","url","CoreClient","startWebNAV","this","authenticateApp","window","irgendwas","info","OAuthInfo","appId","portal","portalUrl","popup","popupCallbackUrl","esriId","registerOAuthInfos","checkSignInStatus","signInEvt","createMap","catch","getCredential","oAuthPopupConfirmation","webmapItem","PortalItem","webmap","Portal","WebMap","portalItem","MapView","container","layerList","LayerList","ui","add","position","homeWidget","Home","watchUtils","focused","graphics","remove","undefined","a","getInstance","esriAPIVersion","pathToEsriAPI","logLevel","language","nls","selectFilter","filteredBy","selectSelection","geometryless","failedCaregories","conf","getLayerByLayerKey","layerid","_res","_rej","_found","allLayerViews","forEach","layer","title","type","startsWith","mapImageLayer","sublayerId","substring","lastIndexOf","length","sublayer","findSublayerById","parseInt","warn","geocoder","getCenter","get","createSearchView","useAsFilter","onAttach","onItemOperation","fct","setItemAsGeometryless","hideResult","properties","layerKey","locate","_result","set","visible","extent","spatialReference","webMercatorUtils","projection","whenLayerView","layerView","Extent","goTo","feature","setTimeout","error","xmin","ymin","xmax","ymax","symbol","esriGeocoder","color","size","reject","location","centerPoint","x","center","y","wkid","Graphic","SimpleMarkerSymbol","geometry","zoom","showCategories","hasBackButton","React","Component","App","className","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","fetch","json","ReactDOM","render","StrictMode","document","getElementById"],"mappings":"wIAAA,SAASA,EAAy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AAqBjL,MAAK,YAAkD,IAA/CkL,EAA8C,EAA9CA,OAAQC,EAAsC,EAAtCA,OAAQC,EAA8B,EAA9BA,OAAQC,EAAsB,EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOF,GACPG,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAQN,OCHd,sBAAC,4BAAAtF,EAAA,+EAE+B6F,MAAM,oBAFrC,8BAE0DC,OAF1D,OAES3I,EAFT,OAGG4I,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,EAAD,CAAK9I,OAAQA,MAEf+I,SAASC,eAAe,SAP7B,gDAUGnL,QAAQ2I,MAAM,qBAAd,MAVH,wDAAD,GAkBA0B,M","file":"static/js/main.31df155d.chunk.js","sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 476;","import Dialog from '@mui/material/Dialog'\r\nimport { Button, DialogActions, DialogContent, DialogContentText, DialogTitle } from '@mui/material'\r\n\r\nexport default function ExportDialog(props: { open: boolean; data: any; onClose: any }) {\r\n console.log('file: ExportDialog.tsx:5 ~ ExportDialog ~ props:', props)\r\n\r\n return (\r\n \r\n )\r\n}\r\n","import React from 'react'\nimport WebMap from '@arcgis/core/WebMap'\nimport Portal from '@arcgis/core/portal/Portal'\nimport PortalItem from '@arcgis/core/portal/PortalItem'\nimport FeatureLayer from '@arcgis/core/layers/FeatureLayer'\nimport Layer from '@arcgis/core/layers/Layer'\nimport Sublayer from 'esri/layers/support/Sublayer'\nimport * as projection from '@arcgis/core/geometry/projection'\nimport esriId from '@arcgis/core/identity/IdentityManager'\nimport OAuthInfo from '@arcgis/core/identity/OAuthInfo'\nimport Home from '@arcgis/core/widgets/Home'\nimport MapImageLayer from '@arcgis/core/layers/MapImageLayer'\nimport LayerList from '@arcgis/core/widgets/LayerList'\nimport Extent from '@arcgis/core/geometry/Extent'\nimport * as watchUtils from '@arcgis/core/core/watchUtils'\nimport SimpleMarkerSymbol from '@arcgis/core/symbols/SimpleMarkerSymbol'\nimport Graphic from '@arcgis/core/Graphic'\nimport Point from '@arcgis/core/geometry/Point'\nimport * as webMercatorUtils from '@arcgis/core/geometry/support/webMercatorUtils'\nimport MapView from '@arcgis/core/views/MapView'\nimport { TConfigWebNAVDemoApp } from '../conf/conf'\nimport { LocateResult, SearchResultItem } from 'CoreClient/src/search/interfaces'\nimport '../css/WebNAV.css'\nimport ExportDialog from './ExportDialog'\n\nexport interface WebNAVProps {\n config: TConfigWebNAVDemoApp\n}\n\nexport default class WebNAV extends React.Component {\n map!: WebMap\n view!: MapView\n highlight: any\n markerGraphic!: Graphic | undefined\n locateType: 'webnav' | 'geocoder' | undefined\n foundLayer!: Layer | Sublayer\n userId!: string\n coreClient: any\n state = {\n open: false,\n data: [],\n }\n closeDialog = () => {\n this.setState({\n open: false,\n data: [],\n })\n }\n constructor(props: any) {\n super(props)\n import(/*webpackIgnore:true*/ props.config.search.webnav.url + '/coreclient/CoreClient.js').then(\n (CoreClient) => {\n this.coreClient = CoreClient\n this.startWebNAV()\n }\n )\n }\n\n componentDidMount() {\n this.authenticateApp()\n\n //@ts-ignore\n window.irgendwas = (data: any) => {\n console.log('file: WebNAV.tsx:79 ~ WebNAV ~ componentDidMount ~ data:', data)\n this.setState({\n open: true,\n data,\n })\n }\n }\n\n authenticateApp() {\n const info = new OAuthInfo({\n appId: this.props.config.portal.appId,\n portalUrl: this.props.config.portal.url,\n popup: false,\n popupCallbackUrl: './oauth.html',\n })\n esriId.registerOAuthInfos([info])\n esriId\n .checkSignInStatus(info.portalUrl + '/sharing')\n .then((signInEvt: any) => {\n console.log('User signed in', signInEvt)\n this.userId = signInEvt.userId\n this.createMap()\n })\n .catch((e: Error) => {\n console.log('User not signed in', e)\n esriId\n .getCredential(info.portalUrl + '/sharing', {\n oAuthPopupConfirmation: false,\n })\n .then((signInEvt: any) => {\n console.log('User signed in', signInEvt)\n this.userId = signInEvt.userId\n this.createMap()\n })\n })\n }\n\n createMap() {\n let webmapItem = new PortalItem({\n id: this.props.config.webmap.id,\n portal: new Portal({\n url: this.props.config.portal.url,\n }),\n })\n this.map = new WebMap({\n portalItem: webmapItem,\n })\n this.view = new MapView({\n map: this.map,\n container: 'viewDiv',\n })\n let layerList = new LayerList({\n view: this.view,\n })\n this.view.ui.add(layerList, {\n position: 'top-right',\n })\n let homeWidget = new Home({\n view: this.view,\n })\n this.view.ui.add(homeWidget, 'top-left')\n watchUtils.whenTrue(this.view, 'stationary', () => {\n //focus bedeutet, dass wir gerade nicht suchen\n if (this.view.focused) {\n if (this.markerGraphic) {\n this.view.graphics.remove(this.markerGraphic)\n }\n if (this.highlight !== undefined) {\n this.highlight.remove()\n }\n }\n })\n }\n async startWebNAV() {\n const coreClient = this.coreClient.getInstance({\n esriAPIVersion: 4,\n pathToEsriAPI: 'https://js.arcgis.com/4.20/',\n logLevel: 'debug',\n language: 'de',\n nls: {\n search: 'Suche',\n selectFilter: 'Wählen Sie ein Filterkriterium:',\n filteredBy: 'Aktive Filter',\n selectSelection: 'Selektion exportieren',\n geometryless: 'Dieses Objekt hat keine Geometrie',\n failedCaregories: 'Die Suche in folgenden Kategorien ist fehlgeschlagen:',\n },\n webnav: {\n url: this.props.config.search.webnav.url,\n conf: this.props.config.search.webnav.conf ? this.props.config.search.webnav.conf : 'default',\n getLayerByLayerKey: (layerid: string) => {\n return new Promise((_res, _rej) => {\n let _found = false\n \n\n this.view.allLayerViews.forEach((view) => {\n console.log(\n `Layer with title ${view.layer.title} has id ${view.layer.id} and is of type ${view.layer.type}`\n )\n if (view.layer.type === 'map-image' && layerid.startsWith(view.layer.id)) {\n const mapImageLayer = view.layer as MapImageLayer\n const sublayerId = layerid.substring(layerid.lastIndexOf('_') + 1, layerid.length)\n const sublayer = mapImageLayer.findSublayerById(parseInt(sublayerId))\n if (sublayer) {\n _found = true\n this.locateType = 'webnav'\n this.foundLayer = sublayer\n _res(sublayer)\n }\n }\n if (view.layer.id === layerid) {\n _found = true\n this.locateType = 'webnav'\n this.foundLayer = view.layer\n _res(view.layer as FeatureLayer)\n }\n })\n if (!_found) {\n console.warn(`Could not find layer with id ${layerid}`)\n }\n })\n },\n },\n geocoder: {\n getCenter: () => {\n return this.view.map.get('center')\n },\n },\n })\n\n coreClient.createSearchView(\n {\n useAsFilter: false,\n onAttach: () => {\n console.log('################ onAttach #########################')\n },\n onClose: () => {\n console.log('did close!')\n },\n onItemOperation: (\n item: SearchResultItem,\n fct: string,\n setItemAsGeometryless: () => void,\n hideResult: () => void\n ) => {\n console.log('item clicked: ', item, fct)\n console.log('layerId: ', item.properties.layerKey)\n\n coreClient.locate(item).then((_result: LocateResult) => {\n if (this.highlight !== undefined) {\n this.highlight.remove()\n this.highlight = undefined\n }\n if (this.markerGraphic !== undefined) {\n this.view.graphics.remove(this.markerGraphic)\n this.markerGraphic = undefined\n }\n\n if (this.locateType === 'webnav') {\n console.log(this.foundLayer, 'this.foundLayer')\n console.log('WebNav Provider locate result: ', _result)\n\n this.foundLayer.set({ visible: true })\n\n if (\n _result.extent.spatialReference &&\n !webMercatorUtils.canProject(_result.extent.spatialReference, this.view)\n ) {\n projection.load().then(() => {\n this.view.whenLayerView(this.foundLayer as FeatureLayer).then((layerView: any) => {\n let extent = projection.project(\n new Extent(_result.extent),\n this.view.extent.spatialReference\n )\n this.view.goTo(extent)\n\n if (_result.feature !== undefined) {\n _result.feature.layer = this.foundLayer as Layer\n this.highlight = layerView.highlight(_result.feature)\n setTimeout(() => {\n //loadingbar.style.display = 'none';\n hideResult()\n }, 500)\n } else {\n console.error('Result Feature is undefined')\n setTimeout(() => {\n //loadingbar.style.display = 'none';\n hideResult()\n }, 500)\n }\n })\n })\n } else {\n let extent = new Extent({\n xmin: _result.extent.xmin,\n ymin: _result.extent.ymin,\n xmax: _result.extent.xmax,\n ymax: _result.extent.ymax,\n spatialReference: _result.extent.spatialReference,\n })\n this.view.goTo(extent)\n setTimeout(() => {\n //loadingbar.style.display = 'none';\n hideResult()\n }, 500)\n\n this.foundLayer.set({ visible: true })\n }\n this.locateType = undefined\n } else {\n console.log('Geocoder Provider locate result: ', _result)\n\n // Create marker for location on the map\n const symbol = this.props.config.search.esriGeocoder.symbol ?? {\n color: [25, 118, 210],\n size: 15,\n }\n\n const addMarker = new Promise((resolve, reject) => {\n if (_result.location !== undefined) {\n const centerPoint = {\n type: 'point',\n x: (_result.location.extent.center as Point).x,\n y: (_result.location.extent.center as Point).y,\n spatialReference: {\n wkid: _result.location.extent.center.spatialReference.wkid,\n },\n } as Point\n\n this.markerGraphic = new Graphic({\n symbol: new SimpleMarkerSymbol(symbol),\n geometry: centerPoint,\n })\n resolve('')\n } else {\n reject('There is no Graphic!')\n // loadingbar.style.display = 'none';\n hideResult()\n }\n })\n addMarker.then(() => {\n // Zoom on the boundingbox/point\n if (this.markerGraphic !== undefined) {\n this.view.graphics.add(this.markerGraphic)\n\n this.view.goTo({\n center: this.markerGraphic,\n zoom: 15,\n })\n setTimeout(() => {\n // loadingbar.style.display = 'none';\n hideResult()\n }, 500)\n }\n })\n }\n })\n },\n showCategories: true,\n hasBackButton: false,\n },\n 'search_container'\n )\n }\n\n render() {\n return (\n \n )\n }\n}","import './css/App.css';\r\nimport '@arcgis/core/assets/esri/themes/light/main.css';\r\nimport WebNAV from './components/WebNAV'; \r\nimport { TConfigWebNAVDemoApp } from './conf/conf';\r\n\r\nfunction App(props:{config: TConfigWebNAVDemoApp}) {\r\n return (\r\n \r\n \r\n
\r\n );\r\n}\r\n\r\nexport default App;\r\n","import { ReportHandler } from 'web-vitals';\n\nconst reportWebVitals = (onPerfEntry?: ReportHandler) => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './css/index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\n\n(async () => {\n try {\n const config = await (await fetch('config/conf.json')).json();\n ReactDOM.render(\n \n \n ,\n document.getElementById('root')\n );\n } catch(error){\n console.error('Could not load App', error);\n }\n \n})();\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"sourceRoot":""}