@agentic-ui-experience/ui-arcgis 0.0.1-beta.4 → 0.0.1-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,7 +8,7 @@ The package provides the `ArcGISMapView` component, its schema and Agent
8
8
  metadata, and ready-made catalog projections. It does not proxy or re-export
9
9
  the generic APIs from the foundational UI packages.
10
10
 
11
- In this document, **Catalog**, **Runtime**, **Renderer**, and **Host app** follow the definitions in the [project glossary](../../docs/glossary.md). `ui-arcgis` extends the AGUI UI stack; A2UI remains the upstream basis of the UI Spec.
11
+ In this document, **Catalog**, **Runtime**, **Renderer**, and **Host app** follow the definitions in the [project glossary](../../docs/glossary.md). `ui-arcgis` extends the UI stack; A2UI remains the upstream basis of the UI Spec.
12
12
 
13
13
  ## Package role
14
14
 
@@ -267,6 +267,7 @@ application needs.
267
267
 
268
268
  - `title?`, `description?`
269
269
  - `source`: required `webmap` or `basemap` source
270
+ - `graphics?`: declarative point, polyline, or polygon Graphics
270
271
  - `controls?`: `zoom`, `legend`, `layerList`, and `search`
271
272
  - `height?`: 180–640 pixels; defaults to 280
272
273
  - `openInArcGIS?`: show the open-in-ArcGIS action
@@ -298,7 +299,69 @@ Basemap source:
298
299
  Other basemap values are `arcgis/topographic`, `arcgis/streets`,
299
300
  `arcgis/navigation`, `arcgis/light-gray`, `arcgis/dark-gray`,
300
301
  `arcgis/imagery`, and `arcgis/outdoor`. Omitting `basemap` defaults to
301
- `arcgis/topographic`.
302
+ `portal/default`.
303
+
304
+ The `arcgis/*` values use the production ArcGIS Basemap Styles service. The
305
+ Host app must configure a compatible ArcGIS Online credential or a Basemap
306
+ Styles API key before using them. Prefer `portal/default` for applications
307
+ configured against another portal environment.
308
+
309
+ ### Declarative Graphics
310
+
311
+ `graphics` displays a small set of temporary points, polylines, and polygons:
312
+
313
+ ```json
314
+ {
315
+ "source": {
316
+ "type": "basemap",
317
+ "center": { "latitude": 39.9042, "longitude": 116.4074 },
318
+ "zoom": 8
319
+ },
320
+ "graphics": [
321
+ {
322
+ "geometry": {
323
+ "type": "point",
324
+ "coordinates": { "longitude": 116.4074, "latitude": 39.9042 }
325
+ }
326
+ },
327
+ {
328
+ "geometry": {
329
+ "type": "polyline",
330
+ "coordinates": [
331
+ { "longitude": 116.3, "latitude": 39.9 },
332
+ { "longitude": 116.5, "latitude": 39.95 }
333
+ ]
334
+ },
335
+ "style": "warning"
336
+ },
337
+ {
338
+ "geometry": {
339
+ "type": "polygon",
340
+ "coordinates": [
341
+ { "longitude": 116.3, "latitude": 39.8 },
342
+ { "longitude": 116.5, "latitude": 39.8 },
343
+ { "longitude": 116.5, "latitude": 40.0 }
344
+ ]
345
+ },
346
+ "style": "danger"
347
+ }
348
+ ]
349
+ }
350
+ ```
351
+
352
+ Every position is a WGS84 `{ longitude, latitude }` object. A polyline has one
353
+ path with at least two positions. A polygon has one outer ring with at least
354
+ three positions; the Renderer closes an open ring. `graphics` accepts at most
355
+ 50 items.
356
+
357
+ `style` is `primary`, `success`, `warning`, `danger`, or `neutral` and defaults
358
+ to `primary`. Non-empty Graphics fit automatically, with zoom capped at 14.
359
+ Empty or absent Graphics keep the source viewpoint.
360
+
361
+ The contract does not accept ArcGIS SDK objects, custom symbols, attributes,
362
+ popups, labels, layers, queries, filters, selections, editing, or Actions.
363
+ The ready-made ArcGIS Catalog uses the v2 ID; a Surface created against v1 is
364
+ not compatible with the v2 schema.
302
365
 
303
366
  ## Verify
304
367
 
@@ -0,0 +1,44 @@
1
+ import type { ArcgisMap } from "@arcgis/map-components/components/arcgis-map/customElement";
2
+ import type { NormalizedArcGISMapGraphic } from "./api.js";
3
+ type GraphicLike = object;
4
+ type GraphicConstructorProperties = {
5
+ geometry: Record<string, unknown>;
6
+ symbol?: Record<string, unknown>;
7
+ };
8
+ type GraphicConstructor = new (properties: GraphicConstructorProperties) => GraphicLike;
9
+ export interface ArcGISGraphicsCollectionLike {
10
+ addMany(values: GraphicLike[]): unknown;
11
+ removeMany(values: GraphicLike[]): unknown;
12
+ includes(value: GraphicLike): boolean;
13
+ }
14
+ interface ArcGISViewAnimationForGraphics {
15
+ stop(): void;
16
+ }
17
+ export interface ArcGISMapViewForGraphics {
18
+ graphics: ArcGISGraphicsCollectionLike;
19
+ animation?: ArcGISViewAnimationForGraphics | null;
20
+ zoom?: number;
21
+ goTo(target: unknown, options: {
22
+ animate: false;
23
+ }): Promise<unknown>;
24
+ }
25
+ export interface ArcGISMapElementForGraphics extends Pick<ArcgisMap, "viewOnReady"> {
26
+ view: ArcGISMapViewForGraphics;
27
+ }
28
+ export type ArcGISMapGraphicsUpdateResult = {
29
+ status: "committed";
30
+ } | {
31
+ status: "cancelled";
32
+ } | {
33
+ status: "failed";
34
+ failure: "view" | "graphics" | "fit";
35
+ };
36
+ export interface ArcGISMapGraphicsController {
37
+ update(graphics: readonly NormalizedArcGISMapGraphic[]): Promise<ArcGISMapGraphicsUpdateResult>;
38
+ dispose(): void;
39
+ }
40
+ interface ArcGISMapGraphicsControllerOptions {
41
+ loadGraphic?: () => Promise<GraphicConstructor>;
42
+ }
43
+ export declare function createArcGISMapGraphicsController(mapElement: ArcGISMapElementForGraphics, options?: ArcGISMapGraphicsControllerOptions): ArcGISMapGraphicsController;
44
+ export {};
@@ -0,0 +1 @@
1
+ (function(_0x37d7f8,_0x2048d1){const _0x1da9a7=_0xe53c,_0x45c9c5=_0x37d7f8();while(!![]){try{const _0x41cc93=-parseInt(_0x1da9a7(0x139))/0x1+parseInt(_0x1da9a7(0x125))/0x2+parseInt(_0x1da9a7(0x13b))/0x3+-parseInt(_0x1da9a7(0x12e))/0x4+-parseInt(_0x1da9a7(0x135))/0x5+parseInt(_0x1da9a7(0x12d))/0x6*(-parseInt(_0x1da9a7(0x134))/0x7)+-parseInt(_0x1da9a7(0x12b))/0x8*(-parseInt(_0x1da9a7(0x127))/0x9);if(_0x41cc93===_0x2048d1)break;else _0x45c9c5['push'](_0x45c9c5['shift']());}catch(_0x461f9a){_0x45c9c5['push'](_0x45c9c5['shift']());}}}(_0x345f,0x606ce));import{createArcGISGraphicProperties,getArcGISGraphicsFitTarget,ARCGIS_GRAPHICS_FIT_MAX_ZOOM}from'./graphics.js';async function loadArcGISGraphic(){const {default:_0x3f6505}=await import('@arcgis/core/Graphic.js');return _0x3f6505;}function _0xe53c(_0xf8c68,_0x38a900){_0xf8c68=_0xf8c68-0x125;const _0x345fce=_0x345f();let _0xe53c4d=_0x345fce[_0xf8c68];return _0xe53c4d;}function isAbortError(_0x26094c){const _0x5cf6c8=_0xe53c;return typeof _0x26094c==='object'&&_0x26094c!==null&&_0x5cf6c8(0x13e)in _0x26094c&&_0x26094c['name']==='AbortError';}function getPresent(_0x1e1b26,_0x54b8ce){const _0x2250cd=_0xe53c;return _0x54b8ce[_0x2250cd(0x131)](_0x2b4327=>_0x1e1b26[_0x2250cd(0x12a)](_0x2b4327));}function removePresent(_0xeac9c8,_0x2fb28e){const _0x587a88=getPresent(_0xeac9c8,_0x2fb28e);if(_0x587a88['length']>0x0)_0xeac9c8['removeMany'](_0x587a88);}function _0x345f(){const _0x35bb0a=['13075976fSonMo','fit','416994EQccfl','1089724nyTfbJ','cancelled','latitude','filter','zoom','map','7tzNcia','2417510lByQOf','failed','view','target','595432GeHsBM','center','170817QWzNFw','number','animation','name','longitude','length','complete','248772AuCKnF','point','9MWjRar','committed','graphics','includes'];_0x345f=function(){return _0x35bb0a;};return _0x345f();}function restoreMissing(_0x163ee1,_0x1fe89f){const _0x235d12=_0x1fe89f['filter'](_0x370ed6=>!_0x163ee1['includes'](_0x370ed6));if(_0x235d12['length']>0x0)_0x163ee1['addMany'](_0x235d12);}function rollbackReplacement(_0x4a9182,_0x2d4d57,_0x30511e){try{removePresent(_0x4a9182,_0x2d4d57);}catch{}try{restoreMissing(_0x4a9182,_0x30511e);}catch{}}function mergeOwned(_0x497523,_0x280b63){return[...new Set([..._0x497523,..._0x280b63])];}async function fitGraphics(_0x549eb3,_0x26f6e1,_0x411798,_0x5d5fc1,_0x402876){const _0x56192b=_0xe53c,_0x1149fb=getArcGISGraphicsFitTarget(_0x26f6e1);if(!_0x1149fb)return _0x56192b(0x141);if(_0x1149fb['kind']==='point')return await _0x5d5fc1({'target':_0x402876(_0x1149fb[_0x56192b(0x138)]),'zoom':_0x1149fb['zoom']}),_0x411798()?'complete':_0x56192b(0x12f);await _0x5d5fc1(_0x402876(_0x1149fb['target']));if(!_0x411798())return'cancelled';if(typeof _0x549eb3[_0x56192b(0x132)]===_0x56192b(0x13c)&&_0x549eb3['zoom']>ARCGIS_GRAPHICS_FIT_MAX_ZOOM){await _0x5d5fc1({'target':_0x402876({'type':_0x56192b(0x126),'longitude':_0x1149fb[_0x56192b(0x13a)][_0x56192b(0x13f)],'latitude':_0x1149fb['center'][_0x56192b(0x130)],'spatialReference':{'wkid':0x10e6}}),'zoom':ARCGIS_GRAPHICS_FIT_MAX_ZOOM});if(!_0x411798())return'cancelled';}return _0x56192b(0x141);}function createArcGISMapGraphicsController(_0x503a5f,_0x498fb8={}){const _0x3b4455=_0x498fb8['loadGraphic']??loadArcGISGraphic;let _0x1d38e4=0x0,_0x77aec9=![],_0x257dd4,_0x4d41dc,_0x1f58a7=[],_0x327791;const _0x1e3632=_0x2449f9=>!_0x77aec9&&_0x2449f9===_0x1d38e4,_0x24207d=_0x1cb117=>{const _0x5b3613=_0xe53c;try{return _0x1cb117[_0x5b3613(0x13d)];}catch{return void 0x0;}},_0x2ca6f1=()=>{const _0x599428=_0xe53c,_0x590fda=_0x327791;_0x327791=void 0x0;if(!_0x590fda||_0x24207d(_0x590fda['view'])!==_0x590fda[_0x599428(0x13d)])return;try{_0x590fda[_0x599428(0x13d)]['stop']();}catch{}},_0x4b4213=async(_0x1fc6d5,_0x5d73a0)=>{const _0x302a67=_0x24207d(_0x1fc6d5),_0x14e8ad=_0x1fc6d5['goTo'](_0x5d73a0,{'animate':![]}),_0x3a9db0=_0x24207d(_0x1fc6d5),_0x1b62e1=_0x3a9db0&&_0x3a9db0!==_0x302a67?{'view':_0x1fc6d5,'animation':_0x3a9db0}:void 0x0;if(_0x1b62e1)_0x327791=_0x1b62e1;try{return await _0x14e8ad;}finally{if(_0x327791===_0x1b62e1)_0x327791=void 0x0;}},_0x36e11d=()=>{return _0x257dd4??(_0x257dd4=_0x503a5f['viewOnReady']()['then'](()=>{const _0x236842=_0xe53c,_0x4fc3e0=_0x503a5f[_0x236842(0x137)];return _0x4d41dc=_0x4fc3e0,_0x4fc3e0;})),_0x257dd4;};return{async 'update'(_0x5251c4){const _0x325f36=_0xe53c;_0x2ca6f1();const _0xbb3e0=++_0x1d38e4;if(!_0x1e3632(_0xbb3e0))return{'status':'cancelled'};if(_0x5251c4['length']===0x0&&_0x1f58a7['length']===0x0)return{'status':'committed'};let _0x290218;try{_0x290218=await _0x36e11d();}catch{return _0x257dd4=void 0x0,_0x1e3632(_0xbb3e0)?{'status':'failed','failure':_0x325f36(0x137)}:{'status':_0x325f36(0x12f)};}if(!_0x1e3632(_0xbb3e0))return{'status':_0x325f36(0x12f)};const _0x4aca55=_0x1f58a7;if(_0x5251c4[_0x325f36(0x140)]===0x0)try{return removePresent(_0x290218['graphics'],_0x4aca55),_0x1f58a7=[],{'status':_0x325f36(0x128)};}catch{try{restoreMissing(_0x290218['graphics'],_0x4aca55);}catch{}return{'status':'failed','failure':_0x325f36(0x129)};}let _0x232958,_0x4f4a2d;try{const _0x24cc0c=await _0x3b4455();if(!_0x1e3632(_0xbb3e0))return{'status':_0x325f36(0x12f)};_0x4f4a2d=_0x5eafea=>new _0x24cc0c({'geometry':_0x5eafea}),_0x232958=_0x5251c4[_0x325f36(0x133)](_0x4e236d=>new _0x24cc0c(createArcGISGraphicProperties(_0x4e236d)));}catch{return _0x1e3632(_0xbb3e0)?{'status':'failed','failure':_0x325f36(0x129)}:{'status':_0x325f36(0x12f)};}try{_0x290218['graphics']['addMany'](_0x232958);}catch{return rollbackReplacement(_0x290218[_0x325f36(0x129)],_0x232958,_0x4aca55),_0x1f58a7=mergeOwned(_0x4aca55,_0x232958),_0x1e3632(_0xbb3e0)?{'status':'failed','failure':'graphics'}:{'status':'cancelled'};}if(!_0x1e3632(_0xbb3e0)){try{removePresent(_0x290218['graphics'],_0x232958);}catch{}return _0x1f58a7=mergeOwned(_0x1f58a7,_0x232958),{'status':_0x325f36(0x12f)};}try{removePresent(_0x290218['graphics'],_0x4aca55);}catch{return rollbackReplacement(_0x290218['graphics'],_0x232958,_0x4aca55),_0x1f58a7=mergeOwned(_0x4aca55,_0x232958),{'status':_0x325f36(0x136),'failure':_0x325f36(0x129)};}_0x1f58a7=_0x232958;try{const _0x448fb0=await fitGraphics(_0x290218,_0x5251c4,()=>_0x1e3632(_0xbb3e0),_0x28f10c=>_0x4b4213(_0x290218,_0x28f10c),_0x4f4a2d);return _0x448fb0==='complete'?{'status':'committed'}:{'status':_0x325f36(0x12f)};}catch(_0x1a3eaa){if(!_0x1e3632(_0xbb3e0))return{'status':_0x325f36(0x12f)};return isAbortError(_0x1a3eaa)?{'status':'committed'}:{'status':_0x325f36(0x136),'failure':_0x325f36(0x12c)};}},'dispose'(){const _0x586062=_0xe53c;if(_0x77aec9)return;_0x77aec9=!![],_0x1d38e4+=0x1,_0x2ca6f1();if(_0x4d41dc)try{removePresent(_0x4d41dc[_0x586062(0x129)],_0x1f58a7);}catch{}_0x1f58a7=[];}};}export{createArcGISMapGraphicsController};
@@ -1,8 +1,13 @@
1
1
  import { type ReactComponentImplementation } from "@agentic-ui-experience/ui-react";
2
2
  import { type ArcGISMapViewProps, normalizeArcGISMapViewProps } from "./api.js";
3
+ import { createArcGISMapGraphicsController, type ArcGISMapElementForGraphics } from "./ArcGISMapGraphicsController.js";
3
4
  type ArcGISMapFailure = "registration" | "load";
4
5
  type NormalizedArcGISMapViewProps = ReturnType<typeof normalizeArcGISMapViewProps>;
5
6
  type ArcGISMapSource = NormalizedArcGISMapViewProps["source"];
7
+ type ArcGISMapElement = HTMLElement & ArcGISMapElementForGraphics & {
8
+ basemap?: unknown;
9
+ };
10
+ type CreateArcGISMapGraphicsController = typeof createArcGISMapGraphicsController;
6
11
  type ArcGISPortalWithDefaultBasemap = {
7
12
  defaultBasemap: unknown | null;
8
13
  load(): Promise<unknown>;
@@ -12,12 +17,16 @@ type ArcGISMapFailureState = {
12
17
  sourceKey: string;
13
18
  failure: ArcGISMapFailure | null;
14
19
  };
20
+ type RegisterArcGISMapComponents = () => Promise<void>;
21
+ type PreparePortalDefaultBasemap = (mapElement: ArcGISMapElement, isCurrent: () => boolean) => Promise<void>;
15
22
  export declare function applyPortalDefaultBasemap(mapElement: {
16
23
  basemap?: unknown;
17
24
  }, getPortal?: GetDefaultArcGISPortal, isCurrent?: () => boolean): Promise<void>;
18
25
  export declare function observeArcGISComponentRegistration(registration: Promise<unknown>, onFailure: (failure: ArcGISMapFailure) => void): Promise<void>;
19
- export declare function createArcGISMapLoadErrorHandler(onFailure: (failure: ArcGISMapFailure) => void): () => void;
20
- export declare function observeArcGISMapLoadError(mapElement: EventTarget, onFailure: (failure: ArcGISMapFailure) => void): () => void;
26
+ export declare function createArcGISMapLoadErrorHandler(onLoadError: () => void): () => void;
27
+ export declare function observeArcGISMapLoadError(mapElement: EventTarget, onLoadError: () => void): () => void;
28
+ export declare function createArcGISMapViewReadyErrorHandler(onFailure: (failure: ArcGISMapFailure) => void): () => void;
29
+ export declare function observeArcGISMapViewReadyError(mapElement: EventTarget, onFailure: (failure: ArcGISMapFailure) => void): () => void;
21
30
  export declare function getArcGISMapSourceKey(source: ArcGISMapSource): string;
22
31
  export declare function createArcGISMapElementProps(props: NormalizedArcGISMapViewProps, sourceKey: string): {
23
32
  style: {
@@ -45,6 +54,12 @@ export declare const ArcGISMapView: ReactComponentImplementation;
45
54
  export declare function ArcGISMapViewContent({ props }: {
46
55
  props: ArcGISMapViewProps;
47
56
  }): import("react/jsx-runtime").JSX.Element;
57
+ export declare function ArcGISMapBody({ props, createGraphicsController, registerComponents, preparePortalDefaultBasemap }: {
58
+ props: NormalizedArcGISMapViewProps;
59
+ createGraphicsController?: CreateArcGISMapGraphicsController;
60
+ registerComponents?: RegisterArcGISMapComponents;
61
+ preparePortalDefaultBasemap?: PreparePortalDefaultBasemap;
62
+ }): import("react/jsx-runtime").JSX.Element;
48
63
  export declare function ArcGISMapFailureFallback({ failure }: {
49
64
  failure: ArcGISMapFailure;
50
65
  }): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- const _0x1b108b=_0x1ff4;(function(_0x1e4085,_0x25a20c){const _0xfe742a=_0x1ff4,_0xc7559a=_0x1e4085();while(!![]){try{const _0x5acfde=parseInt(_0xfe742a(0x218))/0x1*(parseInt(_0xfe742a(0x1ea))/0x2)+-parseInt(_0xfe742a(0x1ef))/0x3*(-parseInt(_0xfe742a(0x206))/0x4)+parseInt(_0xfe742a(0x21f))/0x5*(parseInt(_0xfe742a(0x1f4))/0x6)+parseInt(_0xfe742a(0x219))/0x7*(-parseInt(_0xfe742a(0x201))/0x8)+parseInt(_0xfe742a(0x1f2))/0x9*(-parseInt(_0xfe742a(0x20d))/0xa)+parseInt(_0xfe742a(0x210))/0xb*(parseInt(_0xfe742a(0x21d))/0xc)+-parseInt(_0xfe742a(0x1eb))/0xd;if(_0x5acfde===_0x25a20c)break;else _0xc7559a['push'](_0xc7559a['shift']());}catch(_0xd26fe6){_0xc7559a['push'](_0xc7559a['shift']());}}}(_0x1d2d,0x51245));import{jsx,jsxs,Fragment}from'react/jsx-runtime';import _0x421bb5 from'react';import _0x16e949 from'@arcgis/core/config.js';import{createComponentImplementation}from'@agentic-ui-experience/ui-react';import{ArcGISMapViewApi,normalizeArcGISMapViewProps}from'./api.js';let arcgisComponentsRegistration;async function getDefaultArcGISPortal(){const {default:_0x3b7609}=await import('@arcgis/core/portal/Portal.js');return _0x3b7609['getDefault']();}async function applyPortalDefaultBasemap(_0x38d425,_0x573ce9=getDefaultArcGISPortal,_0x5129ca=()=>!![]){const _0x1f2c6b=_0x1ff4,_0x3e95ba=await _0x573ce9();await _0x3e95ba['load']();if(!_0x3e95ba['defaultBasemap'])throw new Error('The\x20configured\x20ArcGIS\x20portal\x20has\x20no\x20default\x20basemap.');_0x5129ca()&&(_0x38d425[_0x1f2c6b(0x213)]=_0x3e95ba[_0x1f2c6b(0x1fd)]);}function ensureArcGISMapComponents(){const _0x9e9e8d=_0x1ff4;if(typeof window===_0x9e9e8d(0x209))return Promise['resolve']();return!arcgisComponentsRegistration&&(arcgisComponentsRegistration=Promise['all']([import('@arcgis/map-components/components/arcgis-map'),import('@arcgis/map-components/components/arcgis-zoom'),import('@arcgis/map-components/components/arcgis-legend'),import('@arcgis/map-components/components/arcgis-layer-list'),import('@arcgis/map-components/components/arcgis-search')])['then'](()=>void 0x0)[_0x9e9e8d(0x21b)](_0x31b46c=>{arcgisComponentsRegistration=void 0x0;throw _0x31b46c;})),arcgisComponentsRegistration;}function observeArcGISComponentRegistration(_0x18669a,_0x5c27d1){const _0x29c121=_0x1ff4;return _0x18669a[_0x29c121(0x20b)](()=>void 0x0,()=>{_0x5c27d1('registration');});}function createArcGISMapLoadErrorHandler(_0x1255d4){return()=>{_0x1255d4('load');};}function _0x1ff4(_0x2f8779,_0x4b4421){_0x2f8779=_0x2f8779-0x1e5;const _0x1d2d94=_0x1d2d();let _0x1ff4c4=_0x1d2d94[_0x2f8779];return _0x1ff4c4;}function observeArcGISMapLoadError(_0x4b43d8,_0x2e9de3){const _0x2402bc=createArcGISMapLoadErrorHandler(_0x2e9de3);return _0x4b43d8['addEventListener']('arcgisLoadError',_0x2402bc),()=>{const _0x5aa7a2=_0x1ff4;_0x4b43d8[_0x5aa7a2(0x211)](_0x5aa7a2(0x1f5),_0x2402bc);};}function _0x1d2d(){const _0x594e4e=['defaultBasemap','layerList','registration','#64748b','8XUWuAU','_blank','section','alert','noopener\x20noreferrer','368jvQlIL','webmap','arcgis-legend','undefined','/home/webmap/viewer.html?webmap=','then','1px\x20solid\x20rgba(226,\x20232,\x20240,\x200.9)','521530avnXnj','#ffffff','&level=','11EpQKgA','removeEventListener','toFixed','basemap','source','header','nowrap','center','12unZNUR','1791181jgwBzu','div','catch','100%','7035972rpDGKe','ArcGIS\x20map\x20could\x20not\x20be\x20loaded.','35AwbgbO','#2563eb','longitude','arcgis-layer-list','createElement','latitude','/home/webmap/viewer.html?center=','sourceKey','36028cIbEZW','7425613agdJdt','current','Open\x20in\x20ArcGIS','arcgis-zoom','14061YhHRDt','top-right','zoom','18sHOAGZ','type','25752AzdKiH','arcgisLoadError','flex','controls','stringify','isFinite','height','legend','hidden'];_0x1d2d=function(){return _0x594e4e;};return _0x1d2d();}function getArcGISMapSourceKey(_0x145c41){const _0x1b6ab1=_0x1ff4;if(_0x145c41['type']===_0x1b6ab1(0x207))return JSON['stringify']([_0x145c41[_0x1b6ab1(0x1f3)],_0x145c41['itemId']]);return JSON[_0x1b6ab1(0x1f8)]([_0x145c41['type'],_0x145c41['basemap'],_0x145c41['center'][_0x1b6ab1(0x221)],_0x145c41['center'][_0x1b6ab1(0x1e7)],_0x145c41['zoom']??null]);}function createArcGISMapElementProps(_0xe6e260,_0x6f397a){const _0x5c7380=_0x1ff4,_0x1c3683=_0xe6e260[_0x5c7380(0x214)][_0x5c7380(0x1f3)]===_0x5c7380(0x207)?{'item-id':_0xe6e260[_0x5c7380(0x214)]['itemId']}:{..._0xe6e260[_0x5c7380(0x214)][_0x5c7380(0x213)]==='portal/default'?{}:{'basemap':_0xe6e260['source']['basemap']},'center':_0xe6e260[_0x5c7380(0x214)][_0x5c7380(0x217)][_0x5c7380(0x221)]+','+_0xe6e260[_0x5c7380(0x214)]['center']['latitude'],..._0xe6e260[_0x5c7380(0x214)]['zoom']===void 0x0?{}:{'zoom':String(_0xe6e260[_0x5c7380(0x214)][_0x5c7380(0x1f1)])}};return{'key':_0x6f397a,..._0x1c3683,'style':{'display':'block','height':_0xe6e260[_0x5c7380(0x1fa)]+'px','width':'100%'}};}function getArcGISMapFailureForSource(_0x43777a,_0x1bf755){return _0x43777a['sourceKey']===_0x1bf755?_0x43777a['failure']:null;}function resetArcGISMapFailureForSource(_0x1e5b2f,_0x1061d6){const _0x280e63=_0x1ff4;if(_0x1e5b2f[_0x280e63(0x1e9)]===_0x1061d6&&_0x1e5b2f['failure']===null)return _0x1e5b2f;return{'sourceKey':_0x1061d6,'failure':null};}function createOpenUrl(_0x4e4be1){const _0x58caa5=_0x1ff4,_0x279eb0=_0x16e949['portalUrl']['replace'](/\/+$/,'');if(_0x4e4be1[_0x58caa5(0x214)][_0x58caa5(0x1f3)]==='webmap')return _0x279eb0+_0x58caa5(0x20a)+encodeURIComponent(_0x4e4be1[_0x58caa5(0x214)]['itemId']);const {latitude:_0x9a595d,longitude:_0xdb4c02}=_0x4e4be1['source']['center'],_0x4dfc5c=_0x4e4be1[_0x58caa5(0x214)][_0x58caa5(0x1f1)]??0xb,_0x3fe962=_0xdb4c02['toFixed'](0x5)+','+_0x9a595d[_0x58caa5(0x212)](0x5);return _0x279eb0+_0x58caa5(0x1e8)+encodeURIComponent(_0x3fe962)+_0x58caa5(0x20f)+_0x4dfc5c;}const ArcGISMapView=createComponentImplementation(ArcGISMapViewApi,({props:_0x279cd7})=>jsx(ArcGISMapViewContent,{'props':_0x279cd7}));function ArcGISMapViewContent({props:_0x226552}){const _0x36cfdc=_0x1ff4,_0x43231b=normalizeArcGISMapViewProps(_0x226552),_0x5341a0=_0x43231b['title']??'ArcGIS\x20map',_0xe35d9=createOpenUrl(_0x43231b);if(_0x43231b[_0x36cfdc(0x214)]['type']==='basemap'&&(!Number[_0x36cfdc(0x1f9)](_0x43231b['source'][_0x36cfdc(0x217)][_0x36cfdc(0x1e7)])||!Number[_0x36cfdc(0x1f9)](_0x43231b['source']['center']['longitude'])))return jsx(_0x36cfdc(0x21a),{'style':fallbackStyle,'children':'ArcGISMapView\x20needs\x20valid\x20finite\x20latitude\x20and\x20longitude.'});return jsxs(_0x36cfdc(0x203),{'style':shellStyle,'aria-label':_0x5341a0,'children':[jsxs(_0x36cfdc(0x215),{'style':headerStyle,'children':[jsxs(_0x36cfdc(0x21a),{'style':{'minWidth':0x0},'children':[jsx(_0x36cfdc(0x21a),{'style':titleStyle,'children':_0x5341a0}),_0x43231b['description']?jsx(_0x36cfdc(0x21a),{'style':descriptionStyle,'children':_0x43231b['description']}):null]}),_0x43231b['openInArcGIS']&&_0xe35d9?jsx('a',{'href':_0xe35d9,'target':_0x36cfdc(0x202),'rel':_0x36cfdc(0x205),'style':linkStyle,'children':_0x36cfdc(0x1ed)}):null]}),jsx(ArcGISMapBody,{'props':_0x43231b})]});}function ArcGISMapBody({props:_0xb48313}){const _0x20224b=_0x1ff4,_0x1bccdd=getArcGISMapSourceKey(_0xb48313['source']),_0x34d1bc=_0x421bb5['useRef'](null),[_0x513985,_0x358766]=_0x421bb5['useState']({'sourceKey':_0x1bccdd,'failure':null}),_0x4ccb8e=getArcGISMapFailureForSource(_0x513985,_0x1bccdd);_0x421bb5['useEffect'](()=>{let _0x58ecbd=!![];_0x358766(_0x1b2b8a=>resetArcGISMapFailureForSource(_0x1b2b8a,_0x1bccdd));const _0x453986=_0x3f5907=>{_0x58ecbd&&_0x358766({'sourceKey':_0x1bccdd,'failure':_0x3f5907});};return void ensureArcGISMapComponents()['then'](()=>{const _0x4b8e92=_0x1ff4;if(!_0x58ecbd||_0xb48313['source'][_0x4b8e92(0x1f3)]!==_0x4b8e92(0x213)||_0xb48313['source'][_0x4b8e92(0x213)]!=='portal/default')return;const _0x50635f=_0x34d1bc[_0x4b8e92(0x1ec)];if(!_0x50635f){_0x453986('load');return;}void applyPortalDefaultBasemap(_0x50635f,getDefaultArcGISPortal,()=>_0x58ecbd&&_0x34d1bc['current']===_0x50635f)[_0x4b8e92(0x21b)](()=>{_0x453986('load');});},()=>{const _0x300eac=_0x1ff4;_0x453986(_0x300eac(0x1ff));}),()=>{_0x58ecbd=![];};},[_0x1bccdd]),_0x421bb5['useEffect'](()=>{const _0x427dd0=_0x1ff4,_0x492d4b=_0x34d1bc[_0x427dd0(0x1ec)];if(!_0x492d4b)return;return observeArcGISMapLoadError(_0x492d4b,_0x58ba36=>{_0x358766({'sourceKey':_0x1bccdd,'failure':_0x58ba36});});},[_0x1bccdd]);if(_0x4ccb8e)return jsx(ArcGISMapFailureFallback,{'failure':_0x4ccb8e});return _0x421bb5['createElement']('arcgis-map',{...createArcGISMapElementProps(_0xb48313,_0x1bccdd),'ref':_0x34d1bc},jsxs(Fragment,{'children':[_0xb48313[_0x20224b(0x1f7)]['zoom']?_0x421bb5[_0x20224b(0x1e6)](_0x20224b(0x1ee),{'slot':'top-left'}):null,_0xb48313['controls']['search']?_0x421bb5['createElement']('arcgis-search',{'slot':_0x20224b(0x1f0)}):null,_0xb48313[_0x20224b(0x1f7)][_0x20224b(0x1fb)]?_0x421bb5[_0x20224b(0x1e6)](_0x20224b(0x208),{'slot':'bottom-left'}):null,_0xb48313[_0x20224b(0x1f7)][_0x20224b(0x1fe)]?_0x421bb5[_0x20224b(0x1e6)](_0x20224b(0x1e5),{'slot':_0x20224b(0x1f0)}):null]}));}function ArcGISMapFailureFallback({failure:_0x3f6e73}){const _0x385927=_0x1ff4;return jsx('div',{'role':_0x385927(0x204),'style':mapFailureStyle,'children':_0x3f6e73==='registration'?'ArcGIS\x20map\x20components\x20could\x20not\x20be\x20loaded.':_0x385927(0x21e)});}const shellStyle={'width':_0x1b108b(0x21c),'borderRadius':0x8,'border':'1px\x20solid\x20rgba(148,\x20163,\x20184,\x200.45)','background':_0x1b108b(0x20e),'overflow':'hidden'},headerStyle={'display':_0x1b108b(0x1f6),'alignItems':'center','justifyContent':'space-between','gap':0xa,'padding':'10px\x2012px','borderBottom':_0x1b108b(0x20c)},titleStyle={'color':'#111827','fontSize':0xd,'fontWeight':0x2bc,'lineHeight':1.2,'overflow':_0x1b108b(0x1fc),'textOverflow':'ellipsis','whiteSpace':_0x1b108b(0x216)},descriptionStyle={'color':_0x1b108b(0x200),'fontSize':0xc,'lineHeight':1.3,'marginTop':0x4},linkStyle={'color':_0x1b108b(0x220),'flexShrink':0x0,'fontSize':0xc,'fontWeight':0x2bc,'textDecoration':'none'},fallbackStyle={'width':'100%','borderRadius':0x8,'border':'1px\x20solid\x20rgba(220,\x2038,\x2038,\x200.25)','background':'#fff5f5','color':'#991b1b','fontSize':0xd,'padding':'12px\x2014px'},mapFailureStyle={...fallbackStyle,'border':0x0,'borderRadius':0x0};export{ArcGISMapFailureFallback,ArcGISMapView,ArcGISMapViewContent,applyPortalDefaultBasemap,createArcGISMapElementProps,createArcGISMapLoadErrorHandler,getArcGISMapFailureForSource,getArcGISMapSourceKey,observeArcGISComponentRegistration,observeArcGISMapLoadError,resetArcGISMapFailureForSource};
1
+ const _0x58c3b4=_0x6d6d;(function(_0x313af3,_0x15b80d){const _0x23c60a=_0x6d6d,_0x46e656=_0x313af3();while(!![]){try{const _0xe06bf4=-parseInt(_0x23c60a(0x96))/0x1*(parseInt(_0x23c60a(0x84))/0x2)+parseInt(_0x23c60a(0x93))/0x3+-parseInt(_0x23c60a(0xa4))/0x4+parseInt(_0x23c60a(0x9d))/0x5+parseInt(_0x23c60a(0x95))/0x6*(parseInt(_0x23c60a(0x90))/0x7)+parseInt(_0x23c60a(0x98))/0x8*(parseInt(_0x23c60a(0xb6))/0x9)+parseInt(_0x23c60a(0x7c))/0xa;if(_0xe06bf4===_0x15b80d)break;else _0x46e656['push'](_0x46e656['shift']());}catch(_0x36b4a3){_0x46e656['push'](_0x46e656['shift']());}}}(_0x5a17,0x5c27c));import{jsx,jsxs,Fragment}from'react/jsx-runtime';import _0x220508 from'react';import _0x5dcaf8 from'@arcgis/core/config.js';import{createComponentImplementation}from'@agentic-ui-experience/ui-react';import{ArcGISMapViewApi,normalizeArcGISMapViewProps}from'./api.js';import{createArcGISMapGraphicsController}from'./ArcGISMapGraphicsController.js';import{getArcGISMapGraphicsKey}from'./graphics.js';function _0x6d6d(_0x203fae,_0x3aa86f){_0x203fae=_0x203fae-0x72;const _0x5a17dd=_0x5a17();let _0x6d6dcc=_0x5a17dd[_0x203fae];return _0x6d6dcc;}let arcgisComponentsRegistration;async function getDefaultArcGISPortal(){const _0x20f236=_0x6d6d,{default:_0x24c6f5}=await import('@arcgis/core/portal/Portal.js');return _0x24c6f5[_0x20f236(0x9a)]();}async function applyPortalDefaultBasemap(_0x28107e,_0x510fea=getDefaultArcGISPortal,_0x101ade=()=>!![]){const _0x39ccde=_0x6d6d,_0x3ef8fa=await _0x510fea();await _0x3ef8fa['load']();if(!_0x3ef8fa[_0x39ccde(0xb0)])throw new Error(_0x39ccde(0xb7));_0x101ade()&&(_0x28107e[_0x39ccde(0x7f)]=_0x3ef8fa[_0x39ccde(0xb0)]);}function ensureArcGISMapComponents(){const _0x51f0f3=_0x6d6d;if(typeof window==='undefined')return Promise[_0x51f0f3(0xa2)]();return!arcgisComponentsRegistration&&(arcgisComponentsRegistration=Promise[_0x51f0f3(0xb4)]([import('@arcgis/map-components/components/arcgis-map'),import('@arcgis/map-components/components/arcgis-zoom'),import('@arcgis/map-components/components/arcgis-legend'),import('@arcgis/map-components/components/arcgis-layer-list'),import('@arcgis/map-components/components/arcgis-search')])[_0x51f0f3(0x9c)](async()=>{const _0x84f2af=_0x51f0f3;typeof customElements!=='undefined'&&await customElements[_0x84f2af(0x91)](_0x84f2af(0x9e));})[_0x51f0f3(0x97)](_0x1627a6=>{arcgisComponentsRegistration=void 0x0;throw _0x1627a6;})),arcgisComponentsRegistration;}function observeArcGISComponentRegistration(_0x2de7ed,_0x353261){return _0x2de7ed['then'](()=>void 0x0,()=>{const _0x4782e7=_0x6d6d;_0x353261(_0x4782e7(0xb2));});}function createArcGISMapLoadErrorHandler(_0x3229bf){return()=>{_0x3229bf();};}function observeArcGISMapLoadError(_0x51761d,_0x2842ea){const _0xbcea90=createArcGISMapLoadErrorHandler(_0x2842ea);return _0x51761d['addEventListener']('arcgisLoadError',_0xbcea90),()=>{const _0x292c31=_0x6d6d;_0x51761d[_0x292c31(0x9f)]('arcgisLoadError',_0xbcea90);};}function _0x5a17(){const _0x112e68=['type','isFinite','Some\x20map\x20content\x20could\x20not\x20be\x20loaded.','toFixed','graphics','hidden','_blank','itemId','block','509340srEhcJ','header','Map\x20graphics\x20are\x20shown,\x20but\x20the\x20view\x20could\x20not\x20be\x20adjusted.','basemap','Open\x20in\x20ArcGIS','load','100%','addEventListener','1011204OHttxH','center','controls','source','stringify','alert','description','latitude','top-right','ellipsis','createElement','#fff7ed','84TKMpTD','whenDefined','#2563eb','449226VXFWLz','current','105108RwpFQz','1tCbNgG','catch','2272BYtwqT','8px\x2012px','getDefault','failure','then','525820oTwBHX','arcgis-map','removeEventListener','space-between','zoom','resolve','update','567656Haqpdj','longitude','#9a3412','sourceKey','useEffect','visible','legend','ArcGIS\x20map\x20components\x20could\x20not\x20be\x20loaded.','search','#991b1b','ArcGIS\x20map','useRef','defaultBasemap','useState','registration','arcgis-search','all','portal/default','16128IWTmeQ','The\x20configured\x20ArcGIS\x20portal\x20has\x20no\x20default\x20basemap.','arcgisViewReadyError','10px\x2012px','div'];_0x5a17=function(){return _0x112e68;};return _0x5a17();}function createArcGISMapViewReadyErrorHandler(_0x2c9b20){return()=>{_0x2c9b20('load');};}function observeArcGISMapViewReadyError(_0x13f5b9,_0xbc3892){const _0x3e4e60=_0x6d6d,_0x148ee4=createArcGISMapViewReadyErrorHandler(_0xbc3892);return _0x13f5b9[_0x3e4e60(0x83)](_0x3e4e60(0xb8),_0x148ee4),()=>{const _0x28e0f6=_0x3e4e60;_0x13f5b9[_0x28e0f6(0x9f)]('arcgisViewReadyError',_0x148ee4);};}function getArcGISMapSourceKey(_0x406d88){const _0x1e692c=_0x6d6d;if(_0x406d88['type']==='webmap')return JSON[_0x1e692c(0x88)]([_0x406d88['type'],_0x406d88[_0x1e692c(0x7a)]]);return JSON['stringify']([_0x406d88['type'],_0x406d88['basemap'],_0x406d88['center']['longitude'],_0x406d88[_0x1e692c(0x85)][_0x1e692c(0x8b)],_0x406d88['zoom']??null]);}function createArcGISMapElementProps(_0x43a136,_0x2fa235){const _0x2adc19=_0x6d6d,_0x4aabb8=_0x43a136[_0x2adc19(0x87)][_0x2adc19(0x73)]==='webmap'?{'item-id':_0x43a136[_0x2adc19(0x87)][_0x2adc19(0x7a)]}:{..._0x43a136['source'][_0x2adc19(0x7f)]==='portal/default'?{}:{'basemap':_0x43a136[_0x2adc19(0x87)][_0x2adc19(0x7f)]},'center':_0x43a136[_0x2adc19(0x87)][_0x2adc19(0x85)][_0x2adc19(0xa5)]+','+_0x43a136['source']['center']['latitude'],..._0x43a136[_0x2adc19(0x87)]['zoom']===void 0x0?{}:{'zoom':String(_0x43a136[_0x2adc19(0x87)]['zoom'])}};return{'key':_0x2fa235,..._0x4aabb8,'style':{'display':_0x2adc19(0x7b),'height':_0x43a136['height']+'px','width':'100%'}};}function getArcGISMapFailureForSource(_0x496df6,_0x3c4120){return _0x496df6['sourceKey']===_0x3c4120?_0x496df6['failure']:null;}function resetArcGISMapFailureForSource(_0x1e58a6,_0x599188){const _0x51c6a8=_0x6d6d;if(_0x1e58a6[_0x51c6a8(0xa7)]===_0x599188&&_0x1e58a6[_0x51c6a8(0x9b)]===null)return _0x1e58a6;return{'sourceKey':_0x599188,'failure':null};}function createOpenUrl(_0x1b0d01){const _0x5b0a27=_0x6d6d,_0x1a5007=_0x5dcaf8['portalUrl']['replace'](/\/+$/,'');if(_0x1b0d01['source']['type']==='webmap')return _0x1a5007+'/home/webmap/viewer.html?webmap='+encodeURIComponent(_0x1b0d01['source']['itemId']);const {latitude:_0x5c96aa,longitude:_0x42e51e}=_0x1b0d01['source']['center'],_0x43179d=_0x1b0d01[_0x5b0a27(0x87)][_0x5b0a27(0xa1)]??0xb,_0x2c1e80=_0x42e51e[_0x5b0a27(0x76)](0x5)+','+_0x5c96aa[_0x5b0a27(0x76)](0x5);return _0x1a5007+'/home/webmap/viewer.html?center='+encodeURIComponent(_0x2c1e80)+'&level='+_0x43179d;}const ArcGISMapView=createComponentImplementation(ArcGISMapViewApi,({props:_0x349b12})=>jsx(ArcGISMapViewContent,{'props':_0x349b12}));function ArcGISMapViewContent({props:_0x1b643c}){const _0x196753=_0x6d6d,_0x3fd676=normalizeArcGISMapViewProps(_0x1b643c),_0x110ba1=_0x3fd676['title']??_0x196753(0xae),_0x5bdea0=createOpenUrl(_0x3fd676);if(_0x3fd676['source'][_0x196753(0x73)]===_0x196753(0x7f)&&(!Number[_0x196753(0x74)](_0x3fd676['source'][_0x196753(0x85)]['latitude'])||!Number['isFinite'](_0x3fd676['source']['center'][_0x196753(0xa5)])))return jsx('div',{'style':fallbackStyle,'children':'ArcGISMapView\x20needs\x20valid\x20finite\x20latitude\x20and\x20longitude.'});return jsxs('section',{'style':shellStyle,'aria-label':_0x110ba1,'children':[jsxs(_0x196753(0x7d),{'style':headerStyle,'children':[jsxs(_0x196753(0x72),{'style':{'minWidth':0x0},'children':[jsx('div',{'style':titleStyle,'children':_0x110ba1}),_0x3fd676[_0x196753(0x8a)]?jsx(_0x196753(0x72),{'style':descriptionStyle,'children':_0x3fd676['description']}):null]}),_0x3fd676['openInArcGIS']&&_0x5bdea0?jsx('a',{'href':_0x5bdea0,'target':_0x196753(0x79),'rel':'noopener\x20noreferrer','style':linkStyle,'children':_0x196753(0x80)}):null]}),jsx(ArcGISMapBody,{'props':_0x3fd676})]});}function ArcGISMapBody({props:_0x30b739,createGraphicsController:createGraphicsController=createArcGISMapGraphicsController,registerComponents:registerComponents=ensureArcGISMapComponents,preparePortalDefaultBasemap:preparePortalDefaultBasemap=(_0xda7be5,_0x3b2290)=>applyPortalDefaultBasemap(_0xda7be5,getDefaultArcGISPortal,_0x3b2290)}){const _0x4e1fc5=_0x6d6d,_0x29fbf5=getArcGISMapSourceKey(_0x30b739['source']),_0x4222cc=getArcGISMapGraphicsKey(_0x30b739[_0x4e1fc5(0x77)]),_0x2ebe66=_0x220508[_0x4e1fc5(0xaf)](null),_0x9347c7=_0x220508[_0x4e1fc5(0xaf)](createGraphicsController);_0x9347c7[_0x4e1fc5(0x94)]=createGraphicsController;const _0xd61440=_0x220508[_0x4e1fc5(0xaf)](registerComponents);_0xd61440['current']=registerComponents;const _0x5234ff=_0x220508[_0x4e1fc5(0xaf)](preparePortalDefaultBasemap);_0x5234ff[_0x4e1fc5(0x94)]=preparePortalDefaultBasemap;const _0x2f578b=_0x220508['useRef'](null),[_0x21dfa6,_0x1cb40a]=_0x220508[_0x4e1fc5(0xb1)]({'sourceKey':_0x29fbf5,'failure':null}),[_0x5499b0,_0x4bf65f]=_0x220508['useState']({'sourceKey':_0x29fbf5,'ready':![]}),[_0x24ecb4,_0x5c7883]=_0x220508[_0x4e1fc5(0xb1)]({'sourceKey':_0x29fbf5,'graphicsKey':_0x4222cc,'notice':null}),[_0x271948,_0x373b6b]=_0x220508[_0x4e1fc5(0xb1)]({'sourceKey':_0x29fbf5,'visible':![]}),_0x264f0b=getArcGISMapFailureForSource(_0x21dfa6,_0x29fbf5),_0x4ffec4=_0x5499b0[_0x4e1fc5(0xa7)]===_0x29fbf5&&_0x5499b0['ready'],_0x26dafa=_0x24ecb4[_0x4e1fc5(0xa7)]===_0x29fbf5&&_0x24ecb4['graphicsKey']===_0x4222cc?_0x24ecb4['notice']:null,_0x3b25f1=_0x271948['sourceKey']===_0x29fbf5&&_0x271948[_0x4e1fc5(0xa9)];_0x220508['useEffect'](()=>{let _0x118675=!![];_0x4bf65f({'sourceKey':_0x29fbf5,'ready':![]}),_0x1cb40a(_0x2dbf3b=>resetArcGISMapFailureForSource(_0x2dbf3b,_0x29fbf5));const _0x2b41b4=_0x305a0e=>{_0x118675&&_0x1cb40a({'sourceKey':_0x29fbf5,'failure':_0x305a0e});};return void _0xd61440['current']()['then'](()=>{const _0x152193=_0x6d6d;if(!_0x118675)return;if(_0x30b739[_0x152193(0x87)]['type']!=='basemap'||_0x30b739[_0x152193(0x87)][_0x152193(0x7f)]!==_0x152193(0xb5)){_0x4bf65f({'sourceKey':_0x29fbf5,'ready':!![]});return;}const _0x230386=_0x2ebe66[_0x152193(0x94)];if(!_0x230386){_0x2b41b4(_0x152193(0x81));return;}const _0x32ec46=()=>_0x118675&&_0x2ebe66[_0x152193(0x94)]===_0x230386;void _0x5234ff[_0x152193(0x94)](_0x230386,_0x32ec46)[_0x152193(0x9c)](()=>{_0x32ec46()&&_0x4bf65f({'sourceKey':_0x29fbf5,'ready':!![]});},()=>{const _0x39daf5=_0x152193;_0x2b41b4(_0x39daf5(0x81));});},()=>{const _0x3ae5da=_0x6d6d;_0x2b41b4(_0x3ae5da(0xb2));}),()=>{_0x118675=![];};},[_0x29fbf5]),_0x220508['useEffect'](()=>{const _0x4348ab=_0x2ebe66['current'];if(!_0x4348ab)return;const _0x3b9345=observeArcGISMapLoadError(_0x4348ab,()=>{_0x373b6b({'sourceKey':_0x29fbf5,'visible':!![]});}),_0x333131=observeArcGISMapViewReadyError(_0x4348ab,_0x498e53=>{_0x1cb40a({'sourceKey':_0x29fbf5,'failure':_0x498e53});});return()=>{_0x3b9345(),_0x333131();};},[_0x29fbf5]),_0x220508[_0x4e1fc5(0xa8)](()=>{const _0x5710fa=_0x4e1fc5;if(!_0x4ffec4)return;const _0x13d380=_0x2ebe66[_0x5710fa(0x94)];if(!_0x13d380)return;const _0x3df13b=_0x9347c7['current'](_0x13d380);return _0x2f578b[_0x5710fa(0x94)]=_0x3df13b,()=>{_0x2f578b['current']===_0x3df13b&&(_0x2f578b['current']=null),_0x3df13b['dispose']();};},[_0x29fbf5,_0x4ffec4]),_0x220508['useEffect'](()=>{const _0x5b7f63=_0x4e1fc5;let _0x14b104=!![];_0x5c7883({'sourceKey':_0x29fbf5,'graphicsKey':_0x4222cc,'notice':null});if(!_0x4ffec4)return()=>{_0x14b104=![];};const _0x564bb8=_0x2f578b['current'];if(!_0x564bb8)return()=>{_0x14b104=![];};return void _0x564bb8[_0x5b7f63(0xa3)](_0x30b739['graphics'])[_0x5b7f63(0x9c)](_0x41f325=>{const _0x20b2ba=_0x5b7f63;if(!_0x14b104||_0x41f325['status']!=='failed')return;if(_0x41f325[_0x20b2ba(0x9b)]==='view'){_0x1cb40a({'sourceKey':_0x29fbf5,'failure':'load'});return;}_0x5c7883({'sourceKey':_0x29fbf5,'graphicsKey':_0x4222cc,'notice':_0x41f325['failure']});}),()=>{_0x14b104=![];};},[_0x29fbf5,_0x4222cc,_0x4ffec4]);if(_0x264f0b)return jsx(ArcGISMapFailureFallback,{'failure':_0x264f0b});return jsxs(Fragment,{'children':[_0x220508[_0x4e1fc5(0x8e)]('arcgis-map',{...createArcGISMapElementProps(_0x30b739,_0x29fbf5),'ref':_0x2ebe66},jsxs(Fragment,{'children':[_0x30b739[_0x4e1fc5(0x86)]['zoom']?_0x220508[_0x4e1fc5(0x8e)]('arcgis-zoom',{'slot':'top-left'}):null,_0x30b739['controls'][_0x4e1fc5(0xac)]?_0x220508['createElement'](_0x4e1fc5(0xb3),{'slot':'top-right'}):null,_0x30b739['controls'][_0x4e1fc5(0xaa)]?_0x220508['createElement']('arcgis-legend',{'slot':'bottom-left'}):null,_0x30b739[_0x4e1fc5(0x86)]['layerList']?_0x220508[_0x4e1fc5(0x8e)]('arcgis-layer-list',{'slot':_0x4e1fc5(0x8c)}):null]})),_0x26dafa?jsx('div',{'role':_0x4e1fc5(0x89),'style':graphicsNoticeStyle,'children':_0x26dafa==='graphics'?'Map\x20graphics\x20could\x20not\x20be\x20rendered.\x20The\x20previous\x20map\x20content\x20is\x20still\x20shown.':_0x4e1fc5(0x7e)}):null,_0x3b25f1?jsx('div',{'role':_0x4e1fc5(0x89),'style':graphicsNoticeStyle,'children':_0x4e1fc5(0x75)}):null]});}function ArcGISMapFailureFallback({failure:_0xd41e0a}){const _0x24ca63=_0x6d6d;return jsx('div',{'role':'alert','style':mapFailureStyle,'children':_0xd41e0a==='registration'?_0x24ca63(0xab):'ArcGIS\x20map\x20could\x20not\x20be\x20loaded.'});}const shellStyle={'width':_0x58c3b4(0x82),'borderRadius':0x8,'border':'1px\x20solid\x20rgba(148,\x20163,\x20184,\x200.45)','background':'#ffffff','overflow':'hidden'},headerStyle={'display':'flex','alignItems':'center','justifyContent':_0x58c3b4(0xa0),'gap':0xa,'padding':_0x58c3b4(0xb9),'borderBottom':'1px\x20solid\x20rgba(226,\x20232,\x20240,\x200.9)'},titleStyle={'color':'#111827','fontSize':0xd,'fontWeight':0x2bc,'lineHeight':1.2,'overflow':_0x58c3b4(0x78),'textOverflow':_0x58c3b4(0x8d),'whiteSpace':'nowrap'},descriptionStyle={'color':'#64748b','fontSize':0xc,'lineHeight':1.3,'marginTop':0x4},linkStyle={'color':_0x58c3b4(0x92),'flexShrink':0x0,'fontSize':0xc,'fontWeight':0x2bc,'textDecoration':'none'},fallbackStyle={'width':'100%','borderRadius':0x8,'border':'1px\x20solid\x20rgba(220,\x2038,\x2038,\x200.25)','background':'#fff5f5','color':_0x58c3b4(0xad),'fontSize':0xd,'padding':'12px\x2014px'},mapFailureStyle={...fallbackStyle,'border':0x0,'borderRadius':0x0},graphicsNoticeStyle={'background':_0x58c3b4(0x8f),'borderTop':'1px\x20solid\x20rgba(217,\x20119,\x206,\x200.25)','color':_0x58c3b4(0xa6),'fontSize':0xc,'lineHeight':1.4,'padding':_0x58c3b4(0x99)};export{ArcGISMapBody,ArcGISMapFailureFallback,ArcGISMapView,ArcGISMapViewContent,applyPortalDefaultBasemap,createArcGISMapElementProps,createArcGISMapLoadErrorHandler,createArcGISMapViewReadyErrorHandler,getArcGISMapFailureForSource,getArcGISMapSourceKey,observeArcGISComponentRegistration,observeArcGISMapLoadError,observeArcGISMapViewReadyError,resetArcGISMapFailureForSource};