{"version":3,"file":"3956.3d505a12e56ee48e855c.js","mappings":"4FAAA,IAAIA,EAAM,CACT,gBAAiB,CAChB,KACA,MAED,mBAAoB,CACnB,KACA,MAED,wBAAyB,CACxB,MACA,KACA,KACA,IACA,KACA,KACA,MAED,2BAA4B,CAC3B,MACA,KACA,KACA,IACA,KACA,KACA,MAED,oCAAqC,CACpC,MACA,KACA,KACA,IACA,KACA,KACA,MAED,uCAAwC,CACvC,MACA,KACA,KACA,IACA,KACA,KACA,MAED,2BAA4B,CAC3B,MACA,KACA,KACA,IACA,KACA,KACA,MAED,8BAA+B,CAC9B,MACA,KACA,KACA,IACA,KACA,KACA,MAED,YAAa,CACZ,MACA,MAED,eAAgB,CACf,MACA,MAED,YAAa,CACZ,MACA,MAED,eAAgB,CACf,MACA,MAED,mBAAoB,CACnB,MACA,KACA,KACA,IACA,KACA,KACA,KACA,MAED,sBAAuB,CACtB,MACA,KACA,KACA,IACA,KACA,KACA,KACA,MAED,+BAAgC,CAC/B,KACA,KACA,KACA,IACA,KACA,KACA,KACA,MAED,kCAAmC,CAClC,KACA,KACA,KACA,IACA,KACA,KACA,KACA,MAED,sBAAuB,CACtB,MACA,KACA,KACA,IACA,KACA,KACA,KACA,KAED,yBAA0B,CACzB,MACA,KACA,KACA,IACA,KACA,KACA,KACA,KAED,iBAAkB,CACjB,MACA,MAED,oBAAqB,CACpB,MACA,MAED,6BAA8B,CAC7B,IACA,KACA,KACA,IACA,KACA,KACA,KACA,MAED,gCAAiC,CAChC,IACA,KACA,KACA,IACA,KACA,KACA,KACA,MAED,yCAA0C,CACzC,MACA,KACA,KACA,IACA,KACA,KACA,KACA,MAED,4CAA6C,CAC5C,MACA,KACA,KACA,IACA,KACA,KACA,KACA,MAED,gCAAiC,CAChC,MACA,KACA,KACA,IACA,KACA,KACA,KAED,mCAAoC,CACnC,MACA,KACA,KACA,IACA,KACA,KACA,MAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,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MlH,EAAmBkH,GAAalC,oBAAoBhF,kBAAoB,GACxE4F,EAAiBsB,GAAalC,oBAAoBY,gBAAkB,GACtE5F,EAAiBwB,OAASoE,EAAepE,QAC3C+B,QAAQD,MAAM,qBAAqBsC,EAAepE,sCAAsCxB,EAAiBwB,SAC3G,IACCkC,OAAMJ,IACPC,QAAQD,MAAM,0BAA0BwB,EAAM9B,SAAUM,EAAM,GAGpE,C","sources":["webpack://wingismaps/./src/featureDisplays/ lazy ^\\.\\/.*$ chunkName: featureDisplays/[request] namespace object","webpack://wingismaps/./src/general/initializeIdentify/highlightSymbols.js","webpack://wingismaps/./src/general/initializeIdentify/initializeDetails.js","webpack://wingismaps/./src/general/initializeIdentify/checkIfMarkupOrMeasure.js","webpack://wingismaps/./src/general/initializeIdentify.js","webpack://wingismaps/./src/general/initializeIdentify/executeIdentify.js","webpack://wingismaps/./src/general/initializeIdentify/processIdentifyResults.js","webpack://wingismaps/./src/general/initializeIdentify/importPopupModule.js","webpack://wingismaps/./src/general/initializeIdentify/showPopup.js","webpack://wingismaps/./src/general/initializeIdentify/getIdentifyParameters.js","webpack://wingismaps/./src/general/initializeIdentify/getResults.js","webpack://wingismaps/./src/general/initializeIdentify/initializeExcludedLayerIds.js"],"sourcesContent":["var map = {\n\t\"./assessorMap\": [\n\t\t8161,\n\t\t6310\n\t],\n\t\"./assessorMap.js\": [\n\t\t8161,\n\t\t6310\n\t],\n\t\"./boonePropertySearch\": [\n\t\t47942,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t8659\n\t],\n\t\"./boonePropertySearch.js\": [\n\t\t47942,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t8659\n\t],\n\t\"./boonePropertySearchSubscription\": [\n\t\t43883,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t2800\n\t],\n\t\"./boonePropertySearchSubscription.js\": [\n\t\t43883,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t2800\n\t],\n\t\"./boonePropertySearchWAN\": [\n\t\t65602,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t7151\n\t],\n\t\"./boonePropertySearchWAN.js\": [\n\t\t65602,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t7151\n\t],\n\t\"./default\": [\n\t\t27283,\n\t\t8616\n\t],\n\t\"./default.js\": [\n\t\t27283,\n\t\t8616\n\t],\n\t\"./platMap\": [\n\t\t72763,\n\t\t3984\n\t],\n\t\"./platMap.js\": [\n\t\t72763,\n\t\t3984\n\t],\n\t\"./propertySearch\": [\n\t\t67781,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t2347,\n\t\t7578\n\t],\n\t\"./propertySearch.js\": [\n\t\t67781,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t2347,\n\t\t7578\n\t],\n\t\"./propertySearchSubscription\": [\n\t\t2020,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t2347,\n\t\t2569\n\t],\n\t\"./propertySearchSubscription.js\": [\n\t\t2020,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t2347,\n\t\t2569\n\t],\n\t\"./propertySearchWAN\": [\n\t\t91931,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t2347,\n\t\t560\n\t],\n\t\"./propertySearchWAN.js\": [\n\t\t91931,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t2347,\n\t\t560\n\t],\n\t\"./salesLocator\": [\n\t\t29578,\n\t\t4775\n\t],\n\t\"./salesLocator.js\": [\n\t\t29578,\n\t\t4775\n\t],\n\t\"./stephensonPropertySearch\": [\n\t\t990,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t7826,\n\t\t4955\n\t],\n\t\"./stephensonPropertySearch.js\": [\n\t\t990,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t7826,\n\t\t4955\n\t],\n\t\"./stephensonPropertySearchSubscription\": [\n\t\t39363,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t5823,\n\t\t6376\n\t],\n\t\"./stephensonPropertySearchSubscription.js\": [\n\t\t39363,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t5823,\n\t\t6376\n\t],\n\t\"./stephensonPropertySearchWAN\": [\n\t\t39802,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t583\n\t],\n\t\"./stephensonPropertySearchWAN.js\": [\n\t\t39802,\n\t\t7468,\n\t\t4574,\n\t\t454,\n\t\t9922,\n\t\t6683,\n\t\t583\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(() => {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(() => {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = () => (Object.keys(map));\nwebpackAsyncContext.id = 27761;\nmodule.exports = webpackAsyncContext;","export let symbol = {\r\n type: \"simple-fill\",\r\n color: [0, 0, 0, 0],\r\n style: \"none\",\r\n outline: { // autocasts as new SimpleLineSymbol()\r\n color: '#F2893A',\r\n width: \"3px\"\r\n }\r\n };\r\n \r\nexport let pointSymbol = {\r\n type: \"simple-marker\", // autocasts as new SimpleMarkerSymbol()\r\n style: \"x\",\r\n color: \"blue\",\r\n size: \"8px\", // pixels\r\n outline: { // autocasts as new SimpleLineSymbol()\r\n color: '#F2893A',\r\n width: 3 // points\r\n }\r\n};\r\n \r\n \r\n ","import Popup from \"@arcgis/core/widgets/Popup\";\r\nimport * as reactiveUtils from \"@arcgis/core/core/reactiveUtils.js\";\r\nimport Features from \"@arcgis/core/widgets/Features.js\";\r\n\r\nimport { WinGISMap } from \"../../createMap\";\r\nimport { conditionalMapOptions } from \"../../util/importConditions\";\r\nimport { symbol, pointSymbol } from \"./highlightSymbols\";\r\n\r\n\r\nexport let features = new Features();\r\n\r\nexport function initializeDetails(view) {\r\n if (conditionalMapOptions.addAdvancedUI) {\r\n features.container = \"features-widget\";\r\n view.popup = features;\r\n } else {\r\n let popup = new Popup({ content: features });\r\n view.popup = popup;\r\n }\r\n \r\n reactiveUtils.watch(() => features.selectedFeature, () => {\r\n WinGISMap.view.graphics == null;\r\n if (features.selectedFeature) { \r\n WinGISMap.view.graphics.removeAll();\r\n let graphic;\r\n if (features.selectedFeature.geometry.type !== 'point') {\r\n graphic = {\r\n geometry: features.selectedFeature.geometry,\r\n symbol: symbol\r\n };\r\n } else {\r\n graphic = {\r\n geometry: features.selectedFeature.geometry,\r\n symbol: pointSymbol\r\n };\r\n }\r\n WinGISMap.view.graphics.add(graphic);\r\n }\r\n });\r\n return features;\r\n}","const sidebar = document.getElementById('sidebar');\r\n\r\nexport function checkIfMarkupOrMeasure() {\r\n if (sidebar) {\r\n const active = document.getElementsByClassName(\"active\");\r\n for (let i = 0; i < active.length; i++) {\r\n if (active[i].id === \"markuptab\" || active[i].id === \"measuretab\") {\r\n return true;\r\n }\r\n }\r\n } else {\r\n const popovers = document.querySelectorAll(\"calcite-popover[aria-hidden=false]\");\r\n if (popovers) {\r\n popovers.forEach(popover => {\r\n if (popover.ariaLabel === \"Markup\" || popover.ariaLabel === \"Measure\") {\r\n return true;\r\n }\r\n });\r\n }\r\n }\r\n return false;\r\n\r\n }\r\n \r\n \r\n ","import { executeIdentify } from \"./initializeIdentify/executeIdentify.js\";\r\nimport { initializeDetails } from \"./initializeIdentify/initializeDetails.js\";\r\nimport { checkIfMarkupOrMeasure } from \"./initializeIdentify/checkIfMarkupOrMeasure.js\";\r\nimport { getExcludedLayerIds } from \"./initializeIdentify/initializeExcludedLayerIds.js\";\r\nimport { showPopup } from \"./initializeIdentify/showPopup.js\";\r\nimport { conditionalMapOptions } from \"../util/importConditions\";\r\n\r\nconditionalMapOptions.excludedLayerIds = getExcludedLayerIds(); \r\nlet WinGISMap; \r\nexport default (_WinGISMap) => {\r\n WinGISMap = _WinGISMap;\r\n let features = initializeDetails(WinGISMap.view); \r\n WinGISMap.view.when(() => {\r\n WinGISMap.view.on(\"click\", (event) => {\r\n doIdentify(event); \r\n });\r\n WinGISMap.view.on(\"key-down\", function(event){\r\n if (event.key === \"Enter\"){\r\n doIdentify(event); \r\n }\r\n }); \r\n });\r\n}\r\n\r\nfunction doIdentify(event) {\r\n let userBusy = checkIfMarkupOrMeasure();\r\n if (!userBusy) {\r\n if (!event.mapPoint){\r\n event.mapPoint = WinGISMap.view.extent.center; \r\n }\r\n WinGISMap.view.graphics = null;\r\n executeIdentify(event).then((featuresToDisplay) => {\r\n if (featuresToDisplay)\r\n {\r\n showPopup(featuresToDisplay, WinGISMap.view, event);\r\n\r\n }\r\n });\r\n }\r\n}","import { GetResults } from \"./getResults\";\r\n\r\nimport { processIdentifyResults } from \"./processIdentifyResults\";\r\n\r\nexport async function executeIdentify(event) { \r\n let identifyResults = await GetResults(event);\r\n let featureArray = await processIdentifyResults(identifyResults); \r\n\r\n\r\n\r\n return featureArray; \r\n}\r\n\r\n \r\n ","import { importPopupModule } from \"./importPopupModule\";\r\nimport { WinGISMap } from \"../../createMap\";\r\n\r\nexport async function processIdentifyResults(identifyResults) {\r\n let foundFeatures = [];\r\n let popupPromises = [];\r\n identifyResults.forEach((idenResults) => {\r\n idenResults.results.map(result => {\r\n popupPromises.push(importPopupTemplate(result, idenResults.originLayer))\r\n });\r\n idenResults.results.forEach((result) => {\r\n result.originLayer = idenResults.originLayer;\r\n foundFeatures.push(result.feature);\r\n });\r\n });\r\n \r\n foundFeatures.sort((a, b) => a.layerId - b.layerId);\r\n \r\n await Promise.all(popupPromises);\r\n return foundFeatures;\r\n}\r\n\r\n\r\n\r\nfunction importPopupTemplate (result, originLayer) {\r\n const feature = result.feature;\r\n if (feature?.attributes?.OptOut == \"Y\")\r\n {\r\n const layerName = result.layerName;\r\n feature.attributes.layerName = layerName;\r\n \r\n feature.popupTemplate = {\r\n title: layerName,\r\n content: \"This parcel has opted out of WinGIS services.\"\r\n }\r\n \r\n return feature;\r\n\r\n }\r\n else {\r\n return importPopupModule(originLayer).then(featureModule => {\r\n const layerName = result.layerName;\r\n feature.attributes.layerName = layerName;\r\n \r\n const popup = featureModule(feature, result, WinGISMap.view);\r\n feature.popupTemplate = typeof popup === 'string' ? {\r\n title: layerName,\r\n content: popup\r\n } : popup;\r\n \r\n return feature;\r\n }).catch(error => console.error(\"Error importing search module:\", error)); \r\n }\r\n }","import { conditionalMapOptions } from \"../../util/importConditions\";\r\n\r\nexport async function importPopupModule(layerOrigin) {\r\n try {\r\n const layer = conditionalMapOptions.layers[layerOrigin];\r\n const displayPath = `${layer.identifyFeatureDisplay || 'default'}.js`;\r\n \r\n let module;\r\n try {\r\n module = await import(/* webpackChunkName: \"featureDisplays/[request]\" */ `../../featureDisplays/${displayPath}`);\r\n } catch (e) {\r\n module = await import(/* webpackChunkName: \"featureDisplays/default\" */ '../../featureDisplays/default.js');\r\n }\r\n \r\n if (module && module.default) {\r\n return module.default;\r\n } else {\r\n throw new Error(`Module at ${displayPath} does not have a default export`);\r\n }\r\n } catch (error) {\r\n console.error(\"Error importing module:\", error);\r\n \r\n // Fallback to default module in case of any errors\r\n const defaultModule = await import('../../featureDisplays/default.js');\r\n return defaultModule.default;\r\n }\r\n }\r\n ","import { symbol } from \"./highlightSymbols\";\r\n\r\nexport function showPopup(response, view, event) {\r\n view.popup.when(() => {\r\n if (response.length > 0) {\r\n \r\n view.openPopup({\r\n features: response,\r\n location: event.mapPoint\r\n });\r\n \r\n const sidebar = document.getElementById(\"sidebar\");\r\n if (sidebar) {\r\n document.querySelector(\"#features-widget > calcite-flow > calcite-flow-item\").shadowRoot.querySelector(\"calcite-panel\").shadowRoot.querySelector(\"article > footer\").style = \"order: -1\";\r\n document.getElementById('detailstab').click();\r\n \r\n if (sidebar.classList.contains(\"collapsed\")) {\r\n document.getElementById('sidebarExpand').click();\r\n }\r\n document.getElementById(\"detailTip\").innerHTML = \"\";\r\n }\r\n }\r\n else {\r\n document.getElementById(\"detailTip\").innerHTML = \"No results.\";\r\n }\r\n })\r\n }","import { WinGISMap } from \"../../createMap\";\r\nimport { getExcludedLayerIds } from \"./initializeExcludedLayerIds\";\r\nimport { conditionalMapOptions } from \"../../util/importConditions\";\r\n\r\n\r\nexport function getIdentifyParameters(event, layer, params) {\r\n\r\n return constructIdentifyParameters(event, layer, params); \r\n \r\n\r\n }\r\n\r\n function constructIdentifyParameters (event, layer, params) {\r\n let identifyParameters = {};\r\n \r\n let LayerIdenParams = conditionalMapOptions?.layers[layer.title]?.identifyParameters; \r\n \r\n if (LayerIdenParams) {\r\n for (const [key, value] of Object.entries(LayerIdenParams)) {\r\n identifyParameters[key] = value; \r\n }\r\n } else if (LayerIdenParams === false) {\r\n return false;\r\n }\r\n \r\n if(params) {\r\n for (const [key, value] of Object.entries(params)) {\r\n identifyParameters[key] = value;\r\n }\r\n }\r\n \r\n if (!identifyParameters.layerIds) {\r\n identifyParameters.layerIds = getVisibleSublayerIds(layer);\r\n \r\n if (LayerIdenParams?.excludedLayers) {\r\n if (!LayerIdenParams.excludedLayerIds) {\r\n console.error(\"Error getting excluded layers.\");\r\n getExcludedLayerIds();\r\n }\r\n for (const excludedLayerId of LayerIdenParams.excludedLayerIds) {\r\n const index = identifyParameters.layerIds.indexOf(excludedLayerId);\r\n if (index > -1) {\r\n identifyParameters.layerIds.splice(index, 1);\r\n }\r\n }\r\n }\r\n }\r\n \r\n identifyParameters.returnGeometry = true; \r\n if (event.mapPoint) {\r\n identifyParameters.geometry = event.mapPoint;\r\n }\r\n \r\n if (!identifyParameters.layerOption) {\r\n identifyParameters.layerOption = \"visible\";\r\n }\r\n \r\n if (!identifyParameters.tolerance) {\r\n identifyParameters.tolerance = 1; \r\n }\r\n identifyParameters.width = WinGISMap.view.width;\r\n identifyParameters.height = WinGISMap.view.height;\r\n identifyParameters.mapExtent = WinGISMap.view.extent;\r\n \r\n return identifyParameters; \r\n }\r\n \r\n function getVisibleSublayerIds(layer) {\r\n let sublayerArray = [];\r\n function exploreLayers(layer) {\r\n layer.sublayers.forEach(sublayer => {\r\n if (sublayer.visible) {\r\n if (sublayer.sublayers && sublayer.sublayers.length > 0) {\r\n exploreLayers(sublayer);\r\n } else {\r\n sublayerArray.push(sublayer.id);\r\n }\r\n } else {\r\n sublayerArray.push(-1);\r\n }\r\n });\r\n }\r\n exploreLayers(layer);\r\n return sublayerArray.filter(e => e !== -1);\r\n }","import { WinGISMap } from \"../../createMap\";\r\nimport {identify } from \"@arcgis/core/rest/identify.js\";\r\n\r\nimport { getIdentifyParameters } from \"./getIdentifyParameters\";\r\n\r\nexport async function GetResult(paramObj, layer){\r\n return identify(layer.url, paramObj).then((result) => {\r\n result.originLayer = layer.title;\r\n return result;\r\n })\r\n}\r\n\r\nexport async function GetResults(event, params) {\r\n const identifyPromises = [];\r\n for (const layer of WinGISMap.map.layers) {\r\n if (layer.visible && layer.type === \"map-image\") {\r\n let paramObj = await getIdentifyParameters(event, layer, params);\r\n\r\n if (paramObj !== false && paramObj.layerIds.length > 0) {\r\n identifyPromises.push(GetResult(paramObj, layer)); \r\n }\r\n }\r\n }\r\n const identifyResults = await Promise.all(identifyPromises);\r\n return identifyResults;\r\n}","// import { WinGISMap } from \"../../createMap\";\r\n// import { conditionalMapOptions } from \"../../WinGISMapPage\";\r\n// import * as reactiveUtils from \"@arcgis/core/core/reactiveUtils.js\";\r\n\r\n// let map = WinGISMap.map;\r\n\r\n// export async function getExcludedLayerIds() {\r\n\r\n\r\n// await map.when(); \r\n\r\n// await reactiveUtils.whenOnce(() => map.layers.updating === false);\r\n\r\n// const layerLoadedPromises = map.layers.items.map(layer => \r\n// reactiveUtils.whenOnce(() => layer.loaded === true) \r\n// );\r\n\r\n// await Promise.all(layerLoadedPromises); \r\n\r\n// const processLayer = (layer, layerParams) => {\r\n// if (layerParams.identifyParameters?.excludedLayers) {\r\n// conditionalMapOptions.layers[layer.title].identifyParameters.excludedLayerIds = [];\r\n\r\n// const processSublayer = (sublayer, params) => {\r\n// if (params.identifyParameters.excludedLayers.includes(sublayer.title)) {\r\n// conditionalMapOptions.layers[layer.title].identifyParameters.excludedLayerIds.push(sublayer.id);\r\n// }\r\n\r\n// if (sublayer.sublayers) {\r\n// sublayer.sublayers.forEach(sub => processSublayer(sub, params));\r\n// }\r\n// };\r\n\r\n// if (layer.sublayers) {\r\n// layer.sublayers.forEach(sublayer => processSublayer(sublayer, layerParams));\r\n// }\r\n// }\r\n// };\r\n\r\n// map.layers.items.forEach(layer => {\r\n// const layerParams = conditionalMapOptions.layers[layer.title];\r\n// if (layerParams) {\r\n// processLayer(layer, layerParams);\r\n// }\r\n// });\r\n\r\n// for (const [key, value] of Object.entries(conditionalMapOptions.layers)) {\r\n// if (conditionalMapOptions?.layers[key]?.identifyParameters?.excludedLayers && (conditionalMapOptions.layers[key].identifyParameters.excludedLayerIds.length < conditionalMapOptions.layers[key].identifyParameters.excludedLayers.length)) {\r\n// console.error(`Excluded layers = ${value.identifyParameters.excludedLayers.length}, layers actually excluded = ${excludedLayerIds[key]?.length ?? 0}`);\r\n// }\r\n// }\r\n\r\n\r\n// }\r\n\r\nimport { WinGISMap } from \"../../createMap\";\r\nimport { conditionalMapOptions } from \"../../util/importConditions\";\r\nimport * as reactiveUtils from \"@arcgis/core/core/reactiveUtils.js\";\r\n\r\nlet map = WinGISMap.map;\r\n\r\nexport async function getExcludedLayerIds() {\r\n await map.when();\r\n\r\n const processSublayer = (sublayer, params) => {\r\n if (params.identifyParameters.excludedLayers.includes(sublayer.title)) {\r\n params.identifyParameters.excludedLayerIds.push(sublayer.id);\r\n }\r\n\r\n if (sublayer.sublayers) {\r\n sublayer.sublayers.forEach(sub => processSublayer(sub, params));\r\n }\r\n };\r\n\r\n const processLayer = (layer, layerParams) => {\r\n if (layerParams.identifyParameters?.excludedLayers) {\r\n layerParams.identifyParameters.excludedLayerIds = [];\r\n\r\n if (layer.sublayers) {\r\n layer.sublayers.forEach(sublayer => processSublayer(sublayer, layerParams));\r\n }\r\n }\r\n };\r\n\r\n for (const layer of map.layers.items) {\r\n reactiveUtils.whenOnce(() => layer.loaded).then(() => {\r\n const layerParams = conditionalMapOptions.layers[layer.title];\r\n if (layerParams) {\r\n processLayer(layer, layerParams);\r\n }\r\n\r\n // Check and log discrepancies in excluded layers\r\n const excludedLayerIds = layerParams?.identifyParameters?.excludedLayerIds || [];\r\n const excludedLayers = layerParams?.identifyParameters?.excludedLayers || [];\r\n if (excludedLayerIds.length < excludedLayers.length) {\r\n console.error(`Excluded layers = ${excludedLayers.length}, layers actually excluded = ${excludedLayerIds.length}`);\r\n }\r\n }).catch(error => {\r\n console.error(`Error processing layer ${layer.title}:`, error);\r\n });\r\n }\r\n}\r\n"],"names":["map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","all","slice","keys","Object","module","exports","symbol","type","color","style","outline","width","pointSymbol","size","features","Features","sidebar","document","getElementById","WinGISMap","excludedLayerIds","_WinGISMap","view","addAdvancedUI","container","popup","Popup","content","reactiveUtils","selectedFeature","graphics","graphic","removeAll","geometry","add","initializeDetails","when","on","event","doIdentify","key","active","getElementsByClassName","i","length","popovers","querySelectorAll","forEach","popover","ariaLabel","checkIfMarkupOrMeasure","mapPoint","extent","center","async","identifyResults","foundFeatures","popupPromises","idenResults","results","result","push","originLayer","feature","attributes","OptOut","layerName","popupTemplate","title","layerOrigin","displayPath","layers","identifyFeatureDisplay","default","error","console","importPopupModule","featureModule","catch","importPopupTemplate","sort","a","b","layerId","processIdentifyResults","executeIdentify","featuresToDisplay","response","openPopup","location","querySelector","shadowRoot","click","classList","contains","innerHTML","showPopup","getIdentifyParameters","layer","params","identifyParameters","LayerIdenParams","value","entries","layerIds","sublayerArray","exploreLayers","sublayers","sublayer","visible","filter","getVisibleSublayerIds","excludedLayers","excludedLayerId","index","indexOf","splice","returnGeometry","layerOption","tolerance","height","mapExtent","constructIdentifyParameters","GetResult","paramObj","identify","url","GetResults","identifyPromises","getExcludedLayerIds","processSublayer","includes","sub","processLayer","layerParams","items","loaded"],"sourceRoot":""}