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

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,6 +8,8 @@ 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.
12
+
11
13
  ## Package role
12
14
 
13
15
  ```text
@@ -93,10 +95,10 @@ import {
93
95
  } from "@agentic-ui-experience/ui-arcgis";
94
96
  ```
95
97
 
96
- - Register `arcgisPromptDescriptor` with the Agent-side catalog registry.
98
+ - Pass `arcgisPromptDescriptor` to the agent-side `createUIToolCatalog`.
97
99
  - Register `arcgisRuntimeCatalog` with a non-React runtime.
98
- - Pass `arcgisReactCatalog` to `useUIRuntime({ catalogs: [...] })` in a React
99
- application.
100
+ - Pass `arcgisReactCatalog` to `useUIRuntime({ catalog: arcgisReactCatalog })`
101
+ in a React application.
100
102
 
101
103
  All three projections include the A2UI basic catalog capabilities.
102
104
 
@@ -123,6 +125,85 @@ The hook waits for the component view, exposes serializable snapshots plus
123
125
  `goTo` and `setLayerVisibility`, and removes its watches on unmount. It does
124
126
  not render or destroy the host element. This controller API is separate from
125
127
  the A2UI `ArcGISMapView`, which remains a display-only catalog component.
128
+ `execute(command, { signal, origin }?)` forwards cancellation to navigation and
129
+ checks the signal immediately around every map mutation. Cancelled operations
130
+ return the controller's typed `cancelled` failure instead of reporting success.
131
+ `origin` is an optional generic `{ transactionId, operationId }` identity; each
132
+ trimmed identifier is limited to 128 characters. It lets a host correlate
133
+ controller feedback with one exact transaction without coupling the package to
134
+ an application runtime.
135
+
136
+ `subscribe(listener)` publishes strict snapshot notifications with:
137
+
138
+ - `snapshot`: the complete serializable live map snapshot read at frame time;
139
+ - `operationOrigins`: at most 16 unique valid origins that explain mutations in
140
+ that frame; and
141
+ - `hasExternalChanges`: `true` whenever any observable change is not explained
142
+ by the controller's bounded mutation evidence.
143
+
144
+ The controller coalesces ordered visibility writes in one animation frame and
145
+ deduplicates repeated origins. It does not claim navigation interpolation from
146
+ viewpoint values alone. A navigation carrying a valid origin calls ArcGIS
147
+ `goTo` with `animate: false`; only its unchanged baseline or requested target
148
+ can remain a candidate for ownership until the matching promise and terminal
149
+ snapshot authenticate the origin. The viewpoint watcher latches any non-target
150
+ value as external even if another write restores the target before publication.
151
+ Navigation without an origin omits the animation option and keeps the ArcGIS
152
+ SDK's default behavior; its viewpoint feedback remains external.
153
+ Replacing the actual host map object retires queued evidence even when the old
154
+ and new maps share an item ID or omit item IDs.
155
+
156
+ Consumers must treat origins as hints scoped to the exact transaction that
157
+ created them, never as general snapshot ownership. A notification with
158
+ `hasExternalChanges: true` must always take the fail-closed reconciliation path,
159
+ even when it also contains one or more recognized origins.
160
+
161
+ ### Structured feature filtering
162
+
163
+ The controller also exposes three serializable feature methods for host-owned
164
+ feature layers:
165
+
166
+ - `describeFeatureLayer(layerId, options?)` verifies that a layer view is
167
+ available without changing its filter, then returns the layer id, title,
168
+ and live field names, aliases, and ArcGIS field types.
169
+ - `setFeatureFilter(request, options?)` validates structured predicates,
170
+ counts the matching features, and applies one controller-owned filter for
171
+ the layer. A success includes the normalized request and
172
+ `matchedFeatureCount`, including when that count is zero.
173
+ - `clearFeatureFilter({ layerId }, options?)` clears one controller-owned filter, or all
174
+ controller-owned filters when `layerId` is `null`, and reports the layer ids
175
+ actually cleared. A pre-aborted clear performs no mutation.
176
+
177
+ A set request has one `layerId`, `logic: "and" | "or"`, and one to eight
178
+ predicates. Each predicate has an exact live `fieldName`, an `operator`, and
179
+ zero to 50 string or finite-number `values`; strings are limited to 256
180
+ characters. Supported field categories are numeric, string, GUID/global ID,
181
+ and date/time. The operators are:
182
+
183
+ - `eq` and `ne`: numeric, string, identifier, or date/time fields; exactly one
184
+ value.
185
+ - `gt`, `gte`, `lt`, and `lte`: numeric or date/time fields; exactly one value.
186
+ - `between`: numeric or date/time fields; exactly two values.
187
+ - `in`: numeric, string, or GUID/global ID fields; one to 50 values.
188
+ - `contains` and `starts_with`: string fields; exactly one string value.
189
+ - `is_null` and `is_not_null`: every supported field category; no values.
190
+
191
+ `date` field values must be ISO instants with `Z` or an explicit offset and
192
+ second precision; fractional seconds are rejected rather than truncated.
193
+
194
+ The controller compiles these predicates internally. Raw expressions and
195
+ ArcGIS SDK objects are never public inputs or results.
196
+
197
+ Feature filters are transient and view-local. On the first set for a layer,
198
+ the controller clones the host's existing layer-view filter as its baseline.
199
+ It composes the structured predicate with the baseline `where` using `AND` and
200
+ preserves the baseline object ids, geometry, spatial relationship, distance,
201
+ units, and time extent. It queries the combined candidate count before
202
+ swapping the view filter; validation, count, cancellation, or apply failures
203
+ leave the old filter unchanged. A later set replaces only the
204
+ controller-owned predicate. Clear and controller disposal restore a clone of
205
+ the original host baseline. Nothing is written to the WebMap, and no filter
206
+ survives controller disposal or a newly mounted view.
126
207
 
127
208
  ### Reference application
128
209
 
@@ -1 +1 @@
1
- const _0x6672cb=_0x394d;(function(_0x44007b,_0x3c2566){const _0x2c869e=_0x394d,_0x2cd1ad=_0x44007b();while(!![]){try{const _0x22cad3=parseInt(_0x2c869e(0x1e8))/0x1+parseInt(_0x2c869e(0x1db))/0x2*(-parseInt(_0x2c869e(0x1dd))/0x3)+-parseInt(_0x2c869e(0x1f0))/0x4*(parseInt(_0x2c869e(0x20e))/0x5)+-parseInt(_0x2c869e(0x1eb))/0x6+parseInt(_0x2c869e(0x1e3))/0x7*(-parseInt(_0x2c869e(0x1fb))/0x8)+-parseInt(_0x2c869e(0x1ee))/0x9*(-parseInt(_0x2c869e(0x207))/0xa)+parseInt(_0x2c869e(0x20a))/0xb;if(_0x22cad3===_0x3c2566)break;else _0x2cd1ad['push'](_0x2cd1ad['shift']());}catch(_0xba4cb2){_0x2cd1ad['push'](_0x2cd1ad['shift']());}}}(_0x2e3a,0xea040));import{jsx,jsxs,Fragment}from'react/jsx-runtime';import _0x1f044e from'react';function _0x2e3a(){const _0x5f801=['12px\x2014px','6965MXPMHK','arcgis-legend','then','resolve','isFinite','defaultBasemap','current','addEventListener','source','webmap','space-between','type','986EGmoLj','zoom','2559CgoVVC','noopener\x20noreferrer','none','search','failure','100%','157087JDToeo','stringify','_blank','portal/default','registration','46747NvTPkI','arcgis-search','title','9918486oLbyDy','&level=','flex','13809033UmfuUO','hidden','4852HBqghf','ArcGISMapView\x20needs\x20valid\x20finite\x20latitude\x20and\x20longitude.','portalUrl','10px\x2012px','arcgisLoadError','useEffect','description','/home/webmap/viewer.html?center=','layerList','load','div','280pUAytD','createElement','arcgis-layer-list','top-right','toFixed','itemId','ellipsis','removeEventListener','center','basemap','ArcGIS\x20map','#64748b','10liheSU','ArcGIS\x20map\x20components\x20could\x20not\x20be\x20loaded.','controls','43188178jlBNFg','all','latitude'];_0x2e3a=function(){return _0x5f801;};return _0x2e3a();}import _0x136f1c from'@arcgis/core/config.js';import{createComponentImplementation}from'@agentic-ui-experience/ui-react';import{ArcGISMapViewApi,normalizeArcGISMapViewProps}from'./api.js';let arcgisComponentsRegistration;function _0x394d(_0x555e53,_0x34546e){_0x555e53=_0x555e53-0x1d1;const _0x2e3af6=_0x2e3a();let _0x394ddd=_0x2e3af6[_0x555e53];return _0x394ddd;}async function getDefaultArcGISPortal(){const {default:_0x43ec0a}=await import('@arcgis/core/portal/Portal.js');return _0x43ec0a['getDefault']();}async function applyPortalDefaultBasemap(_0x1f90c4,_0x3b52c1=getDefaultArcGISPortal,_0x1ca061=()=>!![]){const _0x12fd32=_0x394d,_0x378705=await _0x3b52c1();await _0x378705['load']();if(!_0x378705['defaultBasemap'])throw new Error('The\x20configured\x20ArcGIS\x20portal\x20has\x20no\x20default\x20basemap.');_0x1ca061()&&(_0x1f90c4[_0x12fd32(0x204)]=_0x378705[_0x12fd32(0x1d4)]);}function ensureArcGISMapComponents(){const _0x296028=_0x394d;if(typeof window==='undefined')return Promise[_0x296028(0x1d2)]();return!arcgisComponentsRegistration&&(arcgisComponentsRegistration=Promise[_0x296028(0x20b)]([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')])[_0x296028(0x1d1)](()=>void 0x0)['catch'](_0x4bc5a7=>{arcgisComponentsRegistration=void 0x0;throw _0x4bc5a7;})),arcgisComponentsRegistration;}function observeArcGISComponentRegistration(_0x2d93f3,_0x2e7a34){return _0x2d93f3['then'](()=>void 0x0,()=>{_0x2e7a34('registration');});}function createArcGISMapLoadErrorHandler(_0xf0f2e){return()=>{const _0x3bf5c2=_0x394d;_0xf0f2e(_0x3bf5c2(0x1f9));};}function observeArcGISMapLoadError(_0x3c779d,_0x35df2f){const _0x1367d6=_0x394d,_0x1e33d8=createArcGISMapLoadErrorHandler(_0x35df2f);return _0x3c779d[_0x1367d6(0x1d6)]('arcgisLoadError',_0x1e33d8),()=>{const _0x37f021=_0x1367d6;_0x3c779d[_0x37f021(0x202)](_0x37f021(0x1f4),_0x1e33d8);};}function getArcGISMapSourceKey(_0x3422be){const _0x142c83=_0x394d;if(_0x3422be['type']===_0x142c83(0x1d8))return JSON[_0x142c83(0x1e4)]([_0x3422be[_0x142c83(0x1da)],_0x3422be[_0x142c83(0x200)]]);return JSON[_0x142c83(0x1e4)]([_0x3422be['type'],_0x3422be['basemap'],_0x3422be[_0x142c83(0x203)]['longitude'],_0x3422be[_0x142c83(0x203)]['latitude'],_0x3422be['zoom']??null]);}function createArcGISMapElementProps(_0x575590,_0x317567){const _0xe31079=_0x394d,_0x15be95=_0x575590['source'][_0xe31079(0x1da)]==='webmap'?{'item-id':_0x575590['source']['itemId']}:{..._0x575590[_0xe31079(0x1d7)][_0xe31079(0x204)]==='portal/default'?{}:{'basemap':_0x575590['source']['basemap']},'center':_0x575590[_0xe31079(0x1d7)]['center']['longitude']+','+_0x575590[_0xe31079(0x1d7)]['center']['latitude'],..._0x575590['source']['zoom']===void 0x0?{}:{'zoom':String(_0x575590['source']['zoom'])}};return{'key':_0x317567,..._0x15be95,'style':{'display':'block','height':_0x575590['height']+'px','width':'100%'}};}function getArcGISMapFailureForSource(_0x1c09df,_0x1b3106){const _0x34c9bd=_0x394d;return _0x1c09df['sourceKey']===_0x1b3106?_0x1c09df[_0x34c9bd(0x1e1)]:null;}function resetArcGISMapFailureForSource(_0x40998b,_0xc4f6b4){const _0x478054=_0x394d;if(_0x40998b['sourceKey']===_0xc4f6b4&&_0x40998b[_0x478054(0x1e1)]===null)return _0x40998b;return{'sourceKey':_0xc4f6b4,'failure':null};}function createOpenUrl(_0x34ba93){const _0x17b592=_0x394d,_0x1f3619=_0x136f1c[_0x17b592(0x1f2)]['replace'](/\/+$/,'');if(_0x34ba93[_0x17b592(0x1d7)][_0x17b592(0x1da)]===_0x17b592(0x1d8))return _0x1f3619+'/home/webmap/viewer.html?webmap='+encodeURIComponent(_0x34ba93['source'][_0x17b592(0x200)]);const {latitude:_0x45bf29,longitude:_0x10b051}=_0x34ba93[_0x17b592(0x1d7)][_0x17b592(0x203)],_0x167ddc=_0x34ba93[_0x17b592(0x1d7)][_0x17b592(0x1dc)]??0xb,_0x10b959=_0x10b051[_0x17b592(0x1ff)](0x5)+','+_0x45bf29['toFixed'](0x5);return _0x1f3619+_0x17b592(0x1f7)+encodeURIComponent(_0x10b959)+_0x17b592(0x1ec)+_0x167ddc;}const ArcGISMapView=createComponentImplementation(ArcGISMapViewApi,({props:_0x4246dc})=>jsx(ArcGISMapViewContent,{'props':_0x4246dc}));function ArcGISMapViewContent({props:_0x540332}){const _0x3b27d6=_0x394d,_0x35622c=normalizeArcGISMapViewProps(_0x540332),_0x54ac41=_0x35622c[_0x3b27d6(0x1ea)]??_0x3b27d6(0x205),_0x1cf8ac=createOpenUrl(_0x35622c);if(_0x35622c[_0x3b27d6(0x1d7)]['type']==='basemap'&&(!Number['isFinite'](_0x35622c['source'][_0x3b27d6(0x203)][_0x3b27d6(0x20c)])||!Number[_0x3b27d6(0x1d3)](_0x35622c[_0x3b27d6(0x1d7)]['center']['longitude'])))return jsx('div',{'style':fallbackStyle,'children':_0x3b27d6(0x1f1)});return jsxs('section',{'style':shellStyle,'aria-label':_0x54ac41,'children':[jsxs('header',{'style':headerStyle,'children':[jsxs(_0x3b27d6(0x1fa),{'style':{'minWidth':0x0},'children':[jsx('div',{'style':titleStyle,'children':_0x54ac41}),_0x35622c['description']?jsx('div',{'style':descriptionStyle,'children':_0x35622c[_0x3b27d6(0x1f6)]}):null]}),_0x35622c['openInArcGIS']&&_0x1cf8ac?jsx('a',{'href':_0x1cf8ac,'target':_0x3b27d6(0x1e5),'rel':_0x3b27d6(0x1de),'style':linkStyle,'children':'Open\x20in\x20ArcGIS'}):null]}),jsx(ArcGISMapBody,{'props':_0x35622c})]});}function ArcGISMapBody({props:_0x573de0}){const _0x21e42f=_0x394d,_0x559901=getArcGISMapSourceKey(_0x573de0[_0x21e42f(0x1d7)]),_0x32fca0=_0x1f044e['useRef'](null),[_0x32e116,_0x3be451]=_0x1f044e['useState']({'sourceKey':_0x559901,'failure':null}),_0x11d242=getArcGISMapFailureForSource(_0x32e116,_0x559901);_0x1f044e[_0x21e42f(0x1f5)](()=>{let _0x13acc6=!![];_0x3be451(_0x90b08f=>resetArcGISMapFailureForSource(_0x90b08f,_0x559901));const _0x6d58cd=_0x3e5a3a=>{_0x13acc6&&_0x3be451({'sourceKey':_0x559901,'failure':_0x3e5a3a});};return void ensureArcGISMapComponents()['then'](()=>{const _0x3105f8=_0x394d;if(!_0x13acc6||_0x573de0[_0x3105f8(0x1d7)][_0x3105f8(0x1da)]!=='basemap'||_0x573de0[_0x3105f8(0x1d7)][_0x3105f8(0x204)]!==_0x3105f8(0x1e6))return;const _0xb67380=_0x32fca0['current'];if(!_0xb67380){_0x6d58cd('load');return;}void applyPortalDefaultBasemap(_0xb67380,getDefaultArcGISPortal,()=>_0x13acc6&&_0x32fca0[_0x3105f8(0x1d5)]===_0xb67380)['catch'](()=>{const _0x369861=_0x3105f8;_0x6d58cd(_0x369861(0x1f9));});},()=>{_0x6d58cd('registration');}),()=>{_0x13acc6=![];};},[_0x559901]),_0x1f044e[_0x21e42f(0x1f5)](()=>{const _0x38dbf7=_0x32fca0['current'];if(!_0x38dbf7)return;return observeArcGISMapLoadError(_0x38dbf7,_0x9eb4f0=>{_0x3be451({'sourceKey':_0x559901,'failure':_0x9eb4f0});});},[_0x559901]);if(_0x11d242)return jsx(ArcGISMapFailureFallback,{'failure':_0x11d242});return _0x1f044e[_0x21e42f(0x1fc)]('arcgis-map',{...createArcGISMapElementProps(_0x573de0,_0x559901),'ref':_0x32fca0},jsxs(Fragment,{'children':[_0x573de0['controls'][_0x21e42f(0x1dc)]?_0x1f044e[_0x21e42f(0x1fc)]('arcgis-zoom',{'slot':'top-left'}):null,_0x573de0[_0x21e42f(0x209)][_0x21e42f(0x1e0)]?_0x1f044e[_0x21e42f(0x1fc)](_0x21e42f(0x1e9),{'slot':_0x21e42f(0x1fe)}):null,_0x573de0[_0x21e42f(0x209)]['legend']?_0x1f044e['createElement'](_0x21e42f(0x20f),{'slot':'bottom-left'}):null,_0x573de0['controls'][_0x21e42f(0x1f8)]?_0x1f044e[_0x21e42f(0x1fc)](_0x21e42f(0x1fd),{'slot':_0x21e42f(0x1fe)}):null]}));}function ArcGISMapFailureFallback({failure:_0x56eeae}){const _0x321b78=_0x394d;return jsx(_0x321b78(0x1fa),{'role':'alert','style':mapFailureStyle,'children':_0x56eeae===_0x321b78(0x1e7)?_0x321b78(0x208):'ArcGIS\x20map\x20could\x20not\x20be\x20loaded.'});}const shellStyle={'width':_0x6672cb(0x1e2),'borderRadius':0x8,'border':'1px\x20solid\x20rgba(148,\x20163,\x20184,\x200.45)','background':'#ffffff','overflow':_0x6672cb(0x1ef)},headerStyle={'display':_0x6672cb(0x1ed),'alignItems':'center','justifyContent':_0x6672cb(0x1d9),'gap':0xa,'padding':_0x6672cb(0x1f3),'borderBottom':'1px\x20solid\x20rgba(226,\x20232,\x20240,\x200.9)'},titleStyle={'color':'#111827','fontSize':0xd,'fontWeight':0x2bc,'lineHeight':1.2,'overflow':_0x6672cb(0x1ef),'textOverflow':_0x6672cb(0x201),'whiteSpace':'nowrap'},descriptionStyle={'color':_0x6672cb(0x206),'fontSize':0xc,'lineHeight':1.3,'marginTop':0x4},linkStyle={'color':'#2563eb','flexShrink':0x0,'fontSize':0xc,'fontWeight':0x2bc,'textDecoration':_0x6672cb(0x1df)},fallbackStyle={'width':'100%','borderRadius':0x8,'border':'1px\x20solid\x20rgba(220,\x2038,\x2038,\x200.25)','background':'#fff5f5','color':'#991b1b','fontSize':0xd,'padding':_0x6672cb(0x20d)},mapFailureStyle={...fallbackStyle,'border':0x0,'borderRadius':0x0};export{ArcGISMapFailureFallback,ArcGISMapView,ArcGISMapViewContent,applyPortalDefaultBasemap,createArcGISMapElementProps,createArcGISMapLoadErrorHandler,getArcGISMapFailureForSource,getArcGISMapSourceKey,observeArcGISComponentRegistration,observeArcGISMapLoadError,resetArcGISMapFailureForSource};
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};
package/dist/api.js CHANGED
@@ -1 +1 @@
1
- const _0x1cedf0=_0x4a9a;function _0x397e(){const _0x3629b1=['27PLBcaZ','162ZxfWUW','102072SMWwjo','max','isFinite','strict','number','string','latitude','basemap','layerList','source','center','DynamicString','243578euKEyh','187210BVKRIE','1932940ylsItA','37384QLFeZr','DynamicBoolean','zoom','refine','legend','6SRMILI','130380uVcWlO','discriminatedUnion','description','title','2181597jIsfKb','type','literal','itemId','optional','webmap','518lOPGOy','arcgis/outdoor','arcgis/topographic','DynamicNumber','object','search'];_0x397e=function(){return _0x3629b1;};return _0x397e();}function _0x4a9a(_0x53db4c,_0x70aa1c){_0x53db4c=_0x53db4c-0x1ed;const _0x397e65=_0x397e();let _0x4a9a3e=_0x397e65[_0x53db4c];return _0x4a9a3e;}(function(_0x5f3de1,_0x4e0401){const _0x40757c=_0x4a9a,_0x280fea=_0x5f3de1();while(!![]){try{const _0x207549=parseInt(_0x40757c(0x203))/0x1*(parseInt(_0x40757c(0x20b))/0x2)+parseInt(_0x40757c(0x1f7))/0x3+-parseInt(_0x40757c(0x205))/0x4+parseInt(_0x40757c(0x20c))/0x5*(parseInt(_0x40757c(0x1f6))/0x6)+parseInt(_0x40757c(0x1ef))/0x7*(-parseInt(_0x40757c(0x206))/0x8)+parseInt(_0x40757c(0x1f5))/0x9*(parseInt(_0x40757c(0x204))/0xa)+-parseInt(_0x40757c(0x210))/0xb;if(_0x207549===_0x4e0401)break;else _0x280fea['push'](_0x280fea['shift']());}catch(_0x301ce3){_0x280fea['push'](_0x280fea['shift']());}}}(_0x397e,0x797c9));import{z,CommonSchemas}from'@agentic-ui-experience/ui-runtime';const ArcGISBasemaps=[_0x1cedf0(0x1f1),'arcgis/streets','arcgis/navigation','arcgis/light-gray','arcgis/dark-gray','arcgis/imagery',_0x1cedf0(0x1f0),'portal/default'],defaultArcGISBasemap=_0x1cedf0(0x1f1),defaultArcGISMapControls={'zoom':!![],'legend':![],'layerList':![],'search':![]},ArcGISBasemapSchema=z['enum'](ArcGISBasemaps),ArcGISMapHeightSchema=CommonSchemas['DynamicNumber'][_0x1cedf0(0x209)](_0x4993c2=>typeof _0x4993c2!==_0x1cedf0(0x1fb)||_0x4993c2>=0xb4&&_0x4993c2<=0x280,'ArcGISMapView\x20height\x20must\x20be\x20between\x20180\x20and\x20640\x20pixels.'),ArcGISMapControlsSchema=z['object']({'zoom':CommonSchemas['DynamicBoolean']['optional'](),'legend':CommonSchemas[_0x1cedf0(0x207)]['optional'](),'layerList':CommonSchemas[_0x1cedf0(0x207)]['optional'](),'search':CommonSchemas[_0x1cedf0(0x207)]['optional']()})[_0x1cedf0(0x1fa)](),ArcGISMapSourceSchema=z[_0x1cedf0(0x20d)](_0x1cedf0(0x211),[z['object']({'type':z['literal'](_0x1cedf0(0x1ee)),'itemId':CommonSchemas['DynamicString']})[_0x1cedf0(0x1fa)](),z[_0x1cedf0(0x1f3)]({'type':z[_0x1cedf0(0x212)](_0x1cedf0(0x1fe)),'basemap':ArcGISBasemapSchema[_0x1cedf0(0x1ed)](),'center':z['object']({'latitude':CommonSchemas[_0x1cedf0(0x1f2)],'longitude':CommonSchemas[_0x1cedf0(0x1f2)]})['strict'](),'zoom':CommonSchemas[_0x1cedf0(0x1f2)]['optional']()})['strict']()]),ArcGISMapViewPropsSchema=z[_0x1cedf0(0x1f3)]({'title':CommonSchemas[_0x1cedf0(0x202)]['optional'](),'description':CommonSchemas['DynamicString'][_0x1cedf0(0x1ed)](),'source':ArcGISMapSourceSchema,'controls':ArcGISMapControlsSchema[_0x1cedf0(0x1ed)](),'height':ArcGISMapHeightSchema[_0x1cedf0(0x1ed)](),'openInArcGIS':CommonSchemas['DynamicBoolean']['optional']()})[_0x1cedf0(0x1fa)](),ArcGISMapViewApi={'name':'ArcGISMapView','schema':ArcGISMapViewPropsSchema};function normalizeArcGISMapViewProps(_0x17520e){const _0x34d674=_0x1cedf0,_0x60233a={...defaultArcGISMapControls,..._0x17520e['controls']},_0x4ee134=Number(_0x17520e['height']??0x118);return{'title':typeof _0x17520e['title']===_0x34d674(0x1fc)?_0x17520e[_0x34d674(0x20f)]:void 0x0,'description':typeof _0x17520e[_0x34d674(0x20e)]==='string'?_0x17520e['description']:void 0x0,'source':_0x17520e[_0x34d674(0x200)][_0x34d674(0x211)]==='basemap'?{'type':_0x34d674(0x1fe),'basemap':_0x17520e[_0x34d674(0x200)][_0x34d674(0x1fe)]??defaultArcGISBasemap,'center':{'latitude':Number(_0x17520e[_0x34d674(0x200)][_0x34d674(0x201)][_0x34d674(0x1fd)]),'longitude':Number(_0x17520e[_0x34d674(0x200)]['center']['longitude'])},'zoom':_0x17520e['source']['zoom']===void 0x0?void 0x0:Number(_0x17520e[_0x34d674(0x200)]['zoom'])}:{'type':_0x34d674(0x1ee),'itemId':String(_0x17520e[_0x34d674(0x200)][_0x34d674(0x213)])},'controls':{'zoom':Boolean(_0x60233a[_0x34d674(0x208)]),'legend':Boolean(_0x60233a[_0x34d674(0x20a)]),'layerList':Boolean(_0x60233a[_0x34d674(0x1ff)]),'search':Boolean(_0x60233a[_0x34d674(0x1f4)])},'height':Number[_0x34d674(0x1f9)](_0x4ee134)?Math['min'](Math[_0x34d674(0x1f8)](_0x4ee134,0xb4),0x280):0x118,'openInArcGIS':Boolean(_0x17520e['openInArcGIS']??![])};}export{ArcGISBasemaps,ArcGISMapViewApi,ArcGISMapViewPropsSchema,defaultArcGISBasemap,defaultArcGISMapControls,normalizeArcGISMapViewProps};
1
+ const _0x2c4292=_0x3b77;(function(_0x1076dc,_0x71ee88){const _0x49e5ae=_0x3b77,_0x1efd80=_0x1076dc();while(!![]){try{const _0x5ba412=parseInt(_0x49e5ae(0x119))/0x1*(-parseInt(_0x49e5ae(0x135))/0x2)+parseInt(_0x49e5ae(0x138))/0x3+-parseInt(_0x49e5ae(0x12f))/0x4*(-parseInt(_0x49e5ae(0x11a))/0x5)+-parseInt(_0x49e5ae(0x12c))/0x6+-parseInt(_0x49e5ae(0x125))/0x7*(-parseInt(_0x49e5ae(0x139))/0x8)+-parseInt(_0x49e5ae(0x126))/0x9*(-parseInt(_0x49e5ae(0x133))/0xa)+-parseInt(_0x49e5ae(0x127))/0xb*(parseInt(_0x49e5ae(0x11e))/0xc);if(_0x5ba412===_0x71ee88)break;else _0x1efd80['push'](_0x1efd80['shift']());}catch(_0x5de5d0){_0x1efd80['push'](_0x1efd80['shift']());}}}(_0x18ed,0x7ba29));function _0x3b77(_0x447fcc,_0x3dbde9){_0x447fcc=_0x447fcc-0x117;const _0x18edb6=_0x18ed();let _0x3b776e=_0x18edb6[_0x447fcc];return _0x3b776e;}import{z,CommonSchemas}from'@agentic-ui-experience/ui-runtime';const ArcGISBasemaps=[_0x2c4292(0x130),'arcgis/streets',_0x2c4292(0x121),_0x2c4292(0x11c),_0x2c4292(0x12d),_0x2c4292(0x136),'arcgis/outdoor',_0x2c4292(0x123)],defaultArcGISBasemap=_0x2c4292(0x130),defaultArcGISMapControls={'zoom':!![],'legend':![],'layerList':![],'search':![]},ArcGISBasemapSchema=z[_0x2c4292(0x13c)](ArcGISBasemaps),ArcGISMapHeightSchema=CommonSchemas[_0x2c4292(0x124)]['refine'](_0x5c646f=>typeof _0x5c646f!==_0x2c4292(0x137)||_0x5c646f>=0xb4&&_0x5c646f<=0x280,_0x2c4292(0x12a)),ArcGISMapControlsSchema=z['object']({'zoom':CommonSchemas[_0x2c4292(0x11b)][_0x2c4292(0x120)](),'legend':CommonSchemas['DynamicBoolean'][_0x2c4292(0x120)](),'layerList':CommonSchemas['DynamicBoolean'][_0x2c4292(0x120)](),'search':CommonSchemas['DynamicBoolean'][_0x2c4292(0x120)]()})['strict'](),ArcGISMapSourceSchema=z['discriminatedUnion']('type',[z['object']({'type':z[_0x2c4292(0x132)](_0x2c4292(0x129)),'itemId':CommonSchemas['DynamicString']})['strict'](),z['object']({'type':z['literal']('basemap'),'basemap':ArcGISBasemapSchema['optional'](),'center':z['object']({'latitude':CommonSchemas['DynamicNumber'],'longitude':CommonSchemas['DynamicNumber']})[_0x2c4292(0x13a)](),'zoom':CommonSchemas[_0x2c4292(0x124)]['optional']()})[_0x2c4292(0x13a)]()]),ArcGISMapViewPropsSchema=z[_0x2c4292(0x131)]({'title':CommonSchemas['DynamicString'][_0x2c4292(0x120)](),'description':CommonSchemas['DynamicString']['optional'](),'source':ArcGISMapSourceSchema,'controls':ArcGISMapControlsSchema[_0x2c4292(0x120)](),'height':ArcGISMapHeightSchema[_0x2c4292(0x120)](),'openInArcGIS':CommonSchemas[_0x2c4292(0x11b)][_0x2c4292(0x120)]()})[_0x2c4292(0x13a)](),ArcGISMapViewApi={'name':_0x2c4292(0x13f),'schema':ArcGISMapViewPropsSchema};function normalizeArcGISMapViewProps(_0x2224d6){const _0x3f8d54=_0x2c4292,_0x50519a={...defaultArcGISMapControls,..._0x2224d6['controls']},_0x4e968a=Number(_0x2224d6['height']??0x118);return{'title':typeof _0x2224d6[_0x3f8d54(0x11f)]==='string'?_0x2224d6[_0x3f8d54(0x11f)]:void 0x0,'description':typeof _0x2224d6['description']===_0x3f8d54(0x12e)?_0x2224d6['description']:void 0x0,'source':_0x2224d6[_0x3f8d54(0x118)][_0x3f8d54(0x13e)]===_0x3f8d54(0x122)?{'type':'basemap','basemap':_0x2224d6[_0x3f8d54(0x118)]['basemap']??defaultArcGISBasemap,'center':{'latitude':Number(_0x2224d6['source'][_0x3f8d54(0x134)]['latitude']),'longitude':Number(_0x2224d6[_0x3f8d54(0x118)][_0x3f8d54(0x134)][_0x3f8d54(0x117)])},'zoom':_0x2224d6[_0x3f8d54(0x118)]['zoom']===void 0x0?void 0x0:Number(_0x2224d6[_0x3f8d54(0x118)][_0x3f8d54(0x128)])}:{'type':'webmap','itemId':String(_0x2224d6[_0x3f8d54(0x118)]['itemId'])},'controls':{'zoom':Boolean(_0x50519a['zoom']),'legend':Boolean(_0x50519a[_0x3f8d54(0x11d)]),'layerList':Boolean(_0x50519a['layerList']),'search':Boolean(_0x50519a[_0x3f8d54(0x13b)])},'height':Number['isFinite'](_0x4e968a)?Math[_0x3f8d54(0x12b)](Math['max'](_0x4e968a,0xb4),0x280):0x118,'openInArcGIS':Boolean(_0x2224d6[_0x3f8d54(0x13d)]??![])};}export{ArcGISBasemaps,ArcGISMapViewApi,ArcGISMapViewPropsSchema,defaultArcGISBasemap,defaultArcGISMapControls,normalizeArcGISMapViewProps};function _0x18ed(){const _0x28c9ac=['arcgis/dark-gray','string','5868daqsob','arcgis/topographic','object','literal','10Xjcypa','center','536ylCbQf','arcgis/imagery','number','176880oOpPOM','7650584NaXplU','strict','search','enum','openInArcGIS','type','ArcGISMapView','longitude','source','971KgcgpT','2545gLEhZs','DynamicBoolean','arcgis/light-gray','legend','19356oZonML','title','optional','arcgis/navigation','basemap','portal/default','DynamicNumber','7XQMvnW','8152623OkYkCI','8404vKftnS','zoom','webmap','ArcGISMapView\x20height\x20must\x20be\x20between\x20180\x20and\x20640\x20pixels.','min','4013184ruUduD'];_0x18ed=function(){return _0x28c9ac;};return _0x18ed();}
package/dist/catalog.js CHANGED
@@ -1 +1 @@
1
- const _0x19ade1=_0x118f;(function(_0x516948,_0x1e9a1b){const _0xac38d3=_0x118f,_0x232533=_0x516948();while(!![]){try{const _0x524bad=parseInt(_0xac38d3(0x1f7))/0x1+parseInt(_0xac38d3(0x1f2))/0x2+parseInt(_0xac38d3(0x1fb))/0x3+-parseInt(_0xac38d3(0x1f8))/0x4*(parseInt(_0xac38d3(0x1fa))/0x5)+-parseInt(_0xac38d3(0x1f6))/0x6*(parseInt(_0xac38d3(0x1f3))/0x7)+-parseInt(_0xac38d3(0x1f9))/0x8*(parseInt(_0xac38d3(0x1f1))/0x9)+parseInt(_0xac38d3(0x1f5))/0xa*(parseInt(_0xac38d3(0x1f0))/0xb);if(_0x524bad===_0x1e9a1b)break;else _0x232533['push'](_0x232533['shift']());}catch(_0x2c3f0b){_0x232533['push'](_0x232533['shift']());}}}(_0x48e1,0xc184a));import{defineCatalogPromptDescriptor}from'@agentic-ui-experience/ui-core';import{defineCatalog}from'@agentic-ui-experience/ui-runtime';import{defineReactCatalog}from'@agentic-ui-experience/ui-react';function _0x48e1(){const _0x471fa4=['5524937Odqlgk','89019xfaDMQ','846886qegWGI','45416euUzGC','com.agentic-ui-experience.arcgis.v1','20ZOaGnF','1440CpHGXT','1452956aEAChl','12HLKWRc','48GpxhUk','1590285Gtaybm','1447062gKAUnO'];_0x48e1=function(){return _0x471fa4;};return _0x48e1();}import{ArcGISMapViewApi}from'./api.js';import{ArcGISMapView}from'./ArcGISMapView.js';function _0x118f(_0x527e9a,_0x5643d8){_0x527e9a=_0x527e9a-0x1f0;const _0x48e17b=_0x48e1();let _0x118f0f=_0x48e17b[_0x527e9a];return _0x118f0f;}import{arcgisStyleGuide,arcGISMapViewDescription}from'./prompt.js';const ARCGIS_CATALOG_ID=_0x19ade1(0x1f4),arcgisComponentApis=[ArcGISMapViewApi],arcgisComponents=[ArcGISMapView],arcgisPromptDescriptor=defineCatalogPromptDescriptor({'id':ARCGIS_CATALOG_ID,'components':arcgisComponentApis,'descriptions':{'ArcGISMapView':arcGISMapViewDescription},'styleGuide':arcgisStyleGuide}),arcgisRuntimeCatalog=defineCatalog({'id':ARCGIS_CATALOG_ID,'components':arcgisComponentApis}),arcgisReactCatalog=defineReactCatalog({'id':ARCGIS_CATALOG_ID,'components':arcgisComponents});export{ARCGIS_CATALOG_ID,arcgisComponentApis,arcgisComponents,arcgisPromptDescriptor,arcgisReactCatalog,arcgisRuntimeCatalog};
1
+ const _0x2a2de5=_0x295f;(function(_0x14b752,_0x2fbfeb){const _0x4e5c83=_0x295f,_0x4735d6=_0x14b752();while(!![]){try{const _0x23f19f=parseInt(_0x4e5c83(0x121))/0x1+-parseInt(_0x4e5c83(0x11f))/0x2+-parseInt(_0x4e5c83(0x11e))/0x3+parseInt(_0x4e5c83(0x120))/0x4+-parseInt(_0x4e5c83(0x11b))/0x5+parseInt(_0x4e5c83(0x11c))/0x6*(parseInt(_0x4e5c83(0x11d))/0x7)+parseInt(_0x4e5c83(0x11a))/0x8;if(_0x23f19f===_0x2fbfeb)break;else _0x4735d6['push'](_0x4735d6['shift']());}catch(_0x223c9b){_0x4735d6['push'](_0x4735d6['shift']());}}}(_0x5182,0x352d0));function _0x295f(_0x30b004,_0x3ac682){_0x30b004=_0x30b004-0x119;const _0x5182dd=_0x5182();let _0x295fed=_0x5182dd[_0x30b004];return _0x295fed;}function _0x5182(){const _0x42250f=['7RyKkLO','295767JfJnkA','455796rCsjvi','473748yMhrmC','96712wGRKbO','com.agentic-ui-experience.arcgis.v1','3114760RGzEMz','989590lYlyOT','826314XoeGhy'];_0x5182=function(){return _0x42250f;};return _0x5182();}import{defineCatalogPromptDescriptor}from'@agentic-ui-experience/ui-core';import{defineCatalog}from'@agentic-ui-experience/ui-runtime';import{defineReactCatalog}from'@agentic-ui-experience/ui-react';import{ArcGISMapViewApi}from'./api.js';import{ArcGISMapView}from'./ArcGISMapView.js';import{arcgisStyleGuide,arcGISMapViewDescription}from'./prompt.js';const ARCGIS_CATALOG_ID=_0x2a2de5(0x119),arcgisComponentApis=[ArcGISMapViewApi],arcgisComponents=[ArcGISMapView],arcgisPromptDescriptor=defineCatalogPromptDescriptor({'id':ARCGIS_CATALOG_ID,'components':arcgisComponentApis,'descriptions':{'ArcGISMapView':arcGISMapViewDescription},'styleGuide':arcgisStyleGuide}),arcgisRuntimeCatalog=defineCatalog({'id':ARCGIS_CATALOG_ID,'components':arcgisComponentApis}),arcgisReactCatalog=defineReactCatalog({'id':ARCGIS_CATALOG_ID,'components':arcgisComponents});export{ARCGIS_CATALOG_ID,arcgisComponentApis,arcgisComponents,arcgisPromptDescriptor,arcgisReactCatalog,arcgisRuntimeCatalog};
@@ -1,4 +1,7 @@
1
1
  import { z } from "zod";
2
+ import type { ArcGISClearFeatureFilterRequest, ArcGISClearFeatureFilterResult, ArcGISFeatureFilterRequest, ArcGISFeatureLayerDescriptionResult, ArcGISFeatureOperationOptions, ArcGISSetFeatureFilterResult, ArcGISValidateFeatureFilterResult } from "./featureFilter.js";
3
+ import type { ArcGISFeatureQueryRequest, ArcGISFeatureQueryResult } from "./featureQuery.js";
4
+ export type { ArcGISFeatureQueryErrorCode, ArcGISFeatureQueryRequest, ArcGISFeatureQueryResult } from "./featureQuery.js";
2
5
  export declare const ArcGISMapSnapshotSchema: z.ZodObject<{
3
6
  map: z.ZodObject<{
4
7
  itemId: z.ZodOptional<z.ZodString>;
@@ -169,7 +172,262 @@ export declare const ArcGISMapCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
169
172
  visible: boolean;
170
173
  layerId: string;
171
174
  }>]>;
172
- export declare const ArcGISMapCommandErrorCodes: readonly ["map-not-ready", "layer-not-found", "invalid-target", "unsupported-command", "execution-failed"];
175
+ export declare const ArcGISMapOperationOriginSchema: z.ZodObject<{
176
+ transactionId: z.ZodString;
177
+ operationId: z.ZodString;
178
+ }, "strict", z.ZodTypeAny, {
179
+ transactionId: string;
180
+ operationId: string;
181
+ }, {
182
+ transactionId: string;
183
+ operationId: string;
184
+ }>;
185
+ export declare const ArcGISMapSnapshotNotificationSchema: z.ZodEffects<z.ZodObject<{
186
+ snapshot: z.ZodObject<{
187
+ map: z.ZodObject<{
188
+ itemId: z.ZodOptional<z.ZodString>;
189
+ title: z.ZodOptional<z.ZodString>;
190
+ }, "strict", z.ZodTypeAny, {
191
+ itemId?: string | undefined;
192
+ title?: string | undefined;
193
+ }, {
194
+ itemId?: string | undefined;
195
+ title?: string | undefined;
196
+ }>;
197
+ viewpoint: z.ZodObject<{
198
+ center: z.ZodObject<{
199
+ longitude: z.ZodNumber;
200
+ latitude: z.ZodNumber;
201
+ }, "strict", z.ZodTypeAny, {
202
+ latitude: number;
203
+ longitude: number;
204
+ }, {
205
+ latitude: number;
206
+ longitude: number;
207
+ }>;
208
+ zoom: z.ZodNumber;
209
+ scale: z.ZodNumber;
210
+ }, "strict", z.ZodTypeAny, {
211
+ zoom: number;
212
+ center: {
213
+ latitude: number;
214
+ longitude: number;
215
+ };
216
+ scale: number;
217
+ }, {
218
+ zoom: number;
219
+ center: {
220
+ latitude: number;
221
+ longitude: number;
222
+ };
223
+ scale: number;
224
+ }>;
225
+ layers: z.ZodArray<z.ZodObject<{
226
+ id: z.ZodString;
227
+ title: z.ZodString;
228
+ type: z.ZodString;
229
+ visible: z.ZodBoolean;
230
+ }, "strict", z.ZodTypeAny, {
231
+ type: string;
232
+ title: string;
233
+ visible: boolean;
234
+ id: string;
235
+ }, {
236
+ type: string;
237
+ title: string;
238
+ visible: boolean;
239
+ id: string;
240
+ }>, "many">;
241
+ capabilities: z.ZodObject<{
242
+ goTo: z.ZodBoolean;
243
+ setLayerVisibility: z.ZodBoolean;
244
+ }, "strict", z.ZodTypeAny, {
245
+ goTo: boolean;
246
+ setLayerVisibility: boolean;
247
+ }, {
248
+ goTo: boolean;
249
+ setLayerVisibility: boolean;
250
+ }>;
251
+ }, "strict", z.ZodTypeAny, {
252
+ map: {
253
+ itemId?: string | undefined;
254
+ title?: string | undefined;
255
+ };
256
+ viewpoint: {
257
+ zoom: number;
258
+ center: {
259
+ latitude: number;
260
+ longitude: number;
261
+ };
262
+ scale: number;
263
+ };
264
+ layers: {
265
+ type: string;
266
+ title: string;
267
+ visible: boolean;
268
+ id: string;
269
+ }[];
270
+ capabilities: {
271
+ goTo: boolean;
272
+ setLayerVisibility: boolean;
273
+ };
274
+ }, {
275
+ map: {
276
+ itemId?: string | undefined;
277
+ title?: string | undefined;
278
+ };
279
+ viewpoint: {
280
+ zoom: number;
281
+ center: {
282
+ latitude: number;
283
+ longitude: number;
284
+ };
285
+ scale: number;
286
+ };
287
+ layers: {
288
+ type: string;
289
+ title: string;
290
+ visible: boolean;
291
+ id: string;
292
+ }[];
293
+ capabilities: {
294
+ goTo: boolean;
295
+ setLayerVisibility: boolean;
296
+ };
297
+ }>;
298
+ operationOrigins: z.ZodArray<z.ZodObject<{
299
+ transactionId: z.ZodString;
300
+ operationId: z.ZodString;
301
+ }, "strict", z.ZodTypeAny, {
302
+ transactionId: string;
303
+ operationId: string;
304
+ }, {
305
+ transactionId: string;
306
+ operationId: string;
307
+ }>, "many">;
308
+ hasExternalChanges: z.ZodBoolean;
309
+ }, "strict", z.ZodTypeAny, {
310
+ snapshot: {
311
+ map: {
312
+ itemId?: string | undefined;
313
+ title?: string | undefined;
314
+ };
315
+ viewpoint: {
316
+ zoom: number;
317
+ center: {
318
+ latitude: number;
319
+ longitude: number;
320
+ };
321
+ scale: number;
322
+ };
323
+ layers: {
324
+ type: string;
325
+ title: string;
326
+ visible: boolean;
327
+ id: string;
328
+ }[];
329
+ capabilities: {
330
+ goTo: boolean;
331
+ setLayerVisibility: boolean;
332
+ };
333
+ };
334
+ operationOrigins: {
335
+ transactionId: string;
336
+ operationId: string;
337
+ }[];
338
+ hasExternalChanges: boolean;
339
+ }, {
340
+ snapshot: {
341
+ map: {
342
+ itemId?: string | undefined;
343
+ title?: string | undefined;
344
+ };
345
+ viewpoint: {
346
+ zoom: number;
347
+ center: {
348
+ latitude: number;
349
+ longitude: number;
350
+ };
351
+ scale: number;
352
+ };
353
+ layers: {
354
+ type: string;
355
+ title: string;
356
+ visible: boolean;
357
+ id: string;
358
+ }[];
359
+ capabilities: {
360
+ goTo: boolean;
361
+ setLayerVisibility: boolean;
362
+ };
363
+ };
364
+ operationOrigins: {
365
+ transactionId: string;
366
+ operationId: string;
367
+ }[];
368
+ hasExternalChanges: boolean;
369
+ }>, {
370
+ snapshot: {
371
+ map: {
372
+ itemId?: string | undefined;
373
+ title?: string | undefined;
374
+ };
375
+ viewpoint: {
376
+ zoom: number;
377
+ center: {
378
+ latitude: number;
379
+ longitude: number;
380
+ };
381
+ scale: number;
382
+ };
383
+ layers: {
384
+ type: string;
385
+ title: string;
386
+ visible: boolean;
387
+ id: string;
388
+ }[];
389
+ capabilities: {
390
+ goTo: boolean;
391
+ setLayerVisibility: boolean;
392
+ };
393
+ };
394
+ operationOrigins: {
395
+ transactionId: string;
396
+ operationId: string;
397
+ }[];
398
+ hasExternalChanges: boolean;
399
+ }, {
400
+ snapshot: {
401
+ map: {
402
+ itemId?: string | undefined;
403
+ title?: string | undefined;
404
+ };
405
+ viewpoint: {
406
+ zoom: number;
407
+ center: {
408
+ latitude: number;
409
+ longitude: number;
410
+ };
411
+ scale: number;
412
+ };
413
+ layers: {
414
+ type: string;
415
+ title: string;
416
+ visible: boolean;
417
+ id: string;
418
+ }[];
419
+ capabilities: {
420
+ goTo: boolean;
421
+ setLayerVisibility: boolean;
422
+ };
423
+ };
424
+ operationOrigins: {
425
+ transactionId: string;
426
+ operationId: string;
427
+ }[];
428
+ hasExternalChanges: boolean;
429
+ }>;
430
+ export declare const ArcGISMapCommandErrorCodes: readonly ["map-not-ready", "layer-not-found", "invalid-target", "unsupported-command", "execution-failed", "cancelled", "stale-controller"];
173
431
  export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
174
432
  ok: z.ZodLiteral<true>;
175
433
  command: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -344,20 +602,6 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
344
602
  }>;
345
603
  }, "strict", z.ZodTypeAny, {
346
604
  ok: true;
347
- command: {
348
- type: "goTo";
349
- target: {
350
- center: {
351
- latitude: number;
352
- longitude: number;
353
- };
354
- zoom?: number | undefined;
355
- };
356
- } | {
357
- type: "setLayerVisibility";
358
- visible: boolean;
359
- layerId: string;
360
- };
361
605
  snapshot: {
362
606
  map: {
363
607
  itemId?: string | undefined;
@@ -382,8 +626,6 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
382
626
  setLayerVisibility: boolean;
383
627
  };
384
628
  };
385
- }, {
386
- ok: true;
387
629
  command: {
388
630
  type: "goTo";
389
631
  target: {
@@ -398,6 +640,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
398
640
  visible: boolean;
399
641
  layerId: string;
400
642
  };
643
+ }, {
644
+ ok: true;
401
645
  snapshot: {
402
646
  map: {
403
647
  itemId?: string | undefined;
@@ -422,6 +666,20 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
422
666
  setLayerVisibility: boolean;
423
667
  };
424
668
  };
669
+ command: {
670
+ type: "goTo";
671
+ target: {
672
+ center: {
673
+ latitude: number;
674
+ longitude: number;
675
+ };
676
+ zoom?: number | undefined;
677
+ };
678
+ } | {
679
+ type: "setLayerVisibility";
680
+ visible: boolean;
681
+ layerId: string;
682
+ };
425
683
  }>, z.ZodObject<{
426
684
  ok: z.ZodLiteral<false>;
427
685
  command: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -482,7 +740,7 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
482
740
  visible: boolean;
483
741
  layerId: string;
484
742
  }>]>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
485
- code: z.ZodEnum<["map-not-ready", "layer-not-found", "invalid-target", "unsupported-command", "execution-failed"]>;
743
+ code: z.ZodEnum<["map-not-ready", "layer-not-found", "invalid-target", "unsupported-command", "execution-failed", "cancelled", "stale-controller"]>;
486
744
  message: z.ZodString;
487
745
  snapshot: z.ZodOptional<z.ZodObject<{
488
746
  map: z.ZodObject<{
@@ -597,7 +855,7 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
597
855
  };
598
856
  }>>;
599
857
  }, "strict", z.ZodTypeAny, {
600
- code: "map-not-ready" | "layer-not-found" | "invalid-target" | "unsupported-command" | "execution-failed";
858
+ code: "map-not-ready" | "layer-not-found" | "cancelled" | "stale-controller" | "invalid-target" | "unsupported-command" | "execution-failed";
601
859
  message: string;
602
860
  ok: false;
603
861
  command: {
@@ -639,7 +897,7 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
639
897
  };
640
898
  } | undefined;
641
899
  }, {
642
- code: "map-not-ready" | "layer-not-found" | "invalid-target" | "unsupported-command" | "execution-failed";
900
+ code: "map-not-ready" | "layer-not-found" | "cancelled" | "stale-controller" | "invalid-target" | "unsupported-command" | "execution-failed";
643
901
  message: string;
644
902
  ok: false;
645
903
  command: {
@@ -683,10 +941,30 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
683
941
  }>]>;
684
942
  export type ArcGISMapSnapshot = z.infer<typeof ArcGISMapSnapshotSchema>;
685
943
  export type ArcGISMapCommand = z.infer<typeof ArcGISMapCommandSchema>;
944
+ export type ArcGISMapOperationOrigin = z.infer<typeof ArcGISMapOperationOriginSchema>;
945
+ export type ArcGISMapSnapshotNotification = z.infer<typeof ArcGISMapSnapshotNotificationSchema>;
686
946
  export type ArcGISMapCommandResult = z.infer<typeof ArcGISMapCommandResultSchema>;
687
947
  export type ArcGISMapCommandErrorCode = (typeof ArcGISMapCommandErrorCodes)[number];
948
+ export interface ArcGISMapCommandOptions extends ArcGISFeatureOperationOptions {
949
+ /**
950
+ * Generic caller identity used only to classify controller-originated map
951
+ * feedback. A valid origin makes navigation non-animated so its target has
952
+ * a deterministic causal boundary; navigation without an origin keeps the
953
+ * ArcGIS SDK's default animation behavior.
954
+ */
955
+ origin?: ArcGISMapOperationOrigin;
956
+ }
688
957
  export interface ArcGISMapController {
689
958
  getSnapshot(): Promise<ArcGISMapSnapshot>;
690
- subscribe(listener: (snapshot: ArcGISMapSnapshot) => void): () => void;
691
- execute(command: ArcGISMapCommand): Promise<ArcGISMapCommandResult>;
959
+ /**
960
+ * Publishes one live, frame-time snapshot with every exact operation origin
961
+ * that explains its full diff. Any unexplained field sets hasExternalChanges.
962
+ */
963
+ subscribe(listener: (notification: ArcGISMapSnapshotNotification) => void): () => void;
964
+ execute(command: ArcGISMapCommand, options?: ArcGISMapCommandOptions): Promise<ArcGISMapCommandResult>;
965
+ describeFeatureLayer(layerId: string, options?: ArcGISFeatureOperationOptions): Promise<ArcGISFeatureLayerDescriptionResult>;
966
+ validateFeatureFilter(request: ArcGISFeatureFilterRequest, options?: ArcGISFeatureOperationOptions): Promise<ArcGISValidateFeatureFilterResult>;
967
+ setFeatureFilter(request: ArcGISFeatureFilterRequest, options?: ArcGISFeatureOperationOptions): Promise<ArcGISSetFeatureFilterResult>;
968
+ clearFeatureFilter(request: ArcGISClearFeatureFilterRequest, options?: ArcGISFeatureOperationOptions): Promise<ArcGISClearFeatureFilterResult>;
969
+ queryFeatureLayer(request: ArcGISFeatureQueryRequest, options?: ArcGISFeatureOperationOptions): Promise<ArcGISFeatureQueryResult>;
692
970
  }
@@ -1 +1 @@
1
- const _0x492d45=_0x3c94;(function(_0x4f228a,_0x2dfab3){const _0x220fb7=_0x3c94,_0x23ed68=_0x4f228a();while(!![]){try{const _0x455879=-parseInt(_0x220fb7(0x15e))/0x1+-parseInt(_0x220fb7(0x16f))/0x2*(-parseInt(_0x220fb7(0x171))/0x3)+-parseInt(_0x220fb7(0x160))/0x4+parseInt(_0x220fb7(0x175))/0x5*(parseInt(_0x220fb7(0x174))/0x6)+parseInt(_0x220fb7(0x176))/0x7*(parseInt(_0x220fb7(0x162))/0x8)+-parseInt(_0x220fb7(0x167))/0x9+parseInt(_0x220fb7(0x16e))/0xa;if(_0x455879===_0x2dfab3)break;else _0x23ed68['push'](_0x23ed68['shift']());}catch(_0x12d5a9){_0x23ed68['push'](_0x23ed68['shift']());}}}(_0x18d1,0x2f720));import{z}from'zod';function _0x3c94(_0x31d371,_0x26eda2){_0x31d371=_0x31d371-0x15d;const _0x18d12f=_0x18d1();let _0x3c9482=_0x18d12f[_0x31d371];return _0x3c9482;}const FiniteNumberSchema=z['number']()[_0x492d45(0x170)](),ArcGISMapCenterSchema=z[_0x492d45(0x168)]({'longitude':FiniteNumberSchema[_0x492d45(0x166)](-0xb4)[_0x492d45(0x15d)](0xb4),'latitude':FiniteNumberSchema[_0x492d45(0x166)](-0x5a)[_0x492d45(0x15d)](0x5a)})[_0x492d45(0x15f)](),ArcGISMapLayerSnapshotSchema=z['object']({'id':z['string']()['min'](0x1),'title':z[_0x492d45(0x173)](),'type':z[_0x492d45(0x173)](),'visible':z[_0x492d45(0x165)]()})['strict'](),ArcGISMapSnapshotSchema=z['object']({'map':z['object']({'itemId':z[_0x492d45(0x173)]()['min'](0x1)[_0x492d45(0x169)](),'title':z['string']()[_0x492d45(0x166)](0x1)['optional']()})['strict'](),'viewpoint':z['object']({'center':ArcGISMapCenterSchema,'zoom':FiniteNumberSchema[_0x492d45(0x166)](0x0)[_0x492d45(0x15d)](0x17),'scale':FiniteNumberSchema['positive']()})['strict'](),'layers':z[_0x492d45(0x161)](ArcGISMapLayerSnapshotSchema),'capabilities':z['object']({'goTo':z[_0x492d45(0x165)](),'setLayerVisibility':z['boolean']()})['strict']()})['strict'](),ArcGISGoToCommandSchema=z['object']({'type':z[_0x492d45(0x16b)](_0x492d45(0x163)),'target':z['object']({'center':ArcGISMapCenterSchema,'zoom':FiniteNumberSchema['min'](0x0)[_0x492d45(0x15d)](0x17)['optional']()})['strict']()})[_0x492d45(0x15f)](),ArcGISSetLayerVisibilityCommandSchema=z[_0x492d45(0x168)]({'type':z[_0x492d45(0x16b)]('setLayerVisibility'),'layerId':z[_0x492d45(0x173)]()['min'](0x1),'visible':z[_0x492d45(0x165)]()})['strict'](),ArcGISMapCommandSchema=z['discriminatedUnion'](_0x492d45(0x16a),[ArcGISGoToCommandSchema,ArcGISSetLayerVisibilityCommandSchema]),ArcGISMapCommandErrorCodes=['map-not-ready','layer-not-found',_0x492d45(0x164),_0x492d45(0x172),'execution-failed'],ArcGISMapCommandErrorCodeSchema=z[_0x492d45(0x16d)](ArcGISMapCommandErrorCodes),ArcGISMapCommandSuccessSchema=z['object']({'ok':z[_0x492d45(0x16b)](!![]),'command':ArcGISMapCommandSchema,'snapshot':ArcGISMapSnapshotSchema})[_0x492d45(0x15f)](),ArcGISMapCommandFailureSchema=z[_0x492d45(0x168)]({'ok':z['literal'](![]),'command':z['union']([ArcGISMapCommandSchema,z['record'](z['unknown']())]),'code':ArcGISMapCommandErrorCodeSchema,'message':z[_0x492d45(0x173)]()[_0x492d45(0x166)](0x1),'snapshot':ArcGISMapSnapshotSchema['optional']()})[_0x492d45(0x15f)](),ArcGISMapCommandResultSchema=z[_0x492d45(0x16c)]('ok',[ArcGISMapCommandSuccessSchema,ArcGISMapCommandFailureSchema]);function _0x18d1(){const _0x45a503=['optional','type','literal','discriminatedUnion','enum','3623370FduUtq','106WrKLni','finite','16005kDyazC','unsupported-command','string','6aSbiXW','399940IXNNqR','182658QjLHwI','max','214249nFxOel','strict','1022444ucOVmb','array','40IbIGfr','goTo','invalid-target','boolean','min','1722186QiwMKk','object'];_0x18d1=function(){return _0x45a503;};return _0x18d1();}export{ArcGISMapCommandErrorCodes,ArcGISMapCommandResultSchema,ArcGISMapCommandSchema,ArcGISMapSnapshotSchema};
1
+ function _0x578a(_0x3a4b63,_0x413c11){_0x3a4b63=_0x3a4b63-0xe6;const _0x13a1e=_0x13a1();let _0x578af1=_0x13a1e[_0x3a4b63];return _0x578af1;}function _0x13a1(){const _0x352453=['4PselDr','955008ZGTeHW','927zRGGFz','2635362whAxnZ','superRefine','operationOrigins','99128LjyaCM','literal','31211550RTqEqs','stale-controller','2165961ctprxk','hasExternalChanges','optional','size','unsupported-command','record','custom','49kdhltF','195462RRuTyn','A\x20map\x20notification\x20requires\x20an\x20operation\x20origin\x20or\x20an\x20external-change\x20marker.','string','addIssue','5068390xsoqyB','max','min','strict','Map\x20notification\x20operation\x20origins\x20must\x20be\x20unique.','unknown','array','type','object','boolean'];_0x13a1=function(){return _0x352453;};return _0x13a1();}const _0x82106=_0x578a;(function(_0x52afee,_0x3c1197){const _0x639b23=_0x578a,_0x367b55=_0x52afee();while(!![]){try{const _0x213b88=-parseInt(_0x639b23(0xe7))/0x1+parseInt(_0x639b23(0xf8))/0x2+-parseInt(_0x639b23(0xff))/0x3*(parseInt(_0x639b23(0xf5))/0x4)+parseInt(_0x639b23(0xeb))/0x5+parseInt(_0x639b23(0xf6))/0x6*(parseInt(_0x639b23(0xe6))/0x7)+-parseInt(_0x639b23(0xfb))/0x8*(-parseInt(_0x639b23(0xf7))/0x9)+-parseInt(_0x639b23(0xfd))/0xa;if(_0x213b88===_0x3c1197)break;else _0x367b55['push'](_0x367b55['shift']());}catch(_0x3b221d){_0x367b55['push'](_0x367b55['shift']());}}}(_0x13a1,0xa6cc4));import{z}from'zod';const FiniteNumberSchema=z['number']()['finite'](),ArcGISMapCenterSchema=z['object']({'longitude':FiniteNumberSchema['min'](-0xb4)['max'](0xb4),'latitude':FiniteNumberSchema[_0x82106(0xed)](-0x5a)['max'](0x5a)})[_0x82106(0xee)](),ArcGISMapLayerSnapshotSchema=z['object']({'id':z[_0x82106(0xe9)]()['min'](0x1),'title':z['string'](),'type':z[_0x82106(0xe9)](),'visible':z[_0x82106(0xf4)]()})['strict'](),ArcGISMapSnapshotSchema=z['object']({'map':z['object']({'itemId':z['string']()['min'](0x1)[_0x82106(0x101)](),'title':z['string']()['min'](0x1)[_0x82106(0x101)]()})[_0x82106(0xee)](),'viewpoint':z['object']({'center':ArcGISMapCenterSchema,'zoom':FiniteNumberSchema[_0x82106(0xed)](0x0)[_0x82106(0xec)](0x17),'scale':FiniteNumberSchema['positive']()})[_0x82106(0xee)](),'layers':z['array'](ArcGISMapLayerSnapshotSchema),'capabilities':z['object']({'goTo':z['boolean'](),'setLayerVisibility':z[_0x82106(0xf4)]()})['strict']()})[_0x82106(0xee)](),ArcGISGoToCommandSchema=z['object']({'type':z['literal']('goTo'),'target':z['object']({'center':ArcGISMapCenterSchema,'zoom':FiniteNumberSchema[_0x82106(0xed)](0x0)[_0x82106(0xec)](0x17)['optional']()})['strict']()})['strict'](),ArcGISSetLayerVisibilityCommandSchema=z['object']({'type':z['literal']('setLayerVisibility'),'layerId':z[_0x82106(0xe9)]()[_0x82106(0xed)](0x1),'visible':z['boolean']()})['strict'](),ArcGISMapCommandSchema=z['discriminatedUnion'](_0x82106(0xf2),[ArcGISGoToCommandSchema,ArcGISSetLayerVisibilityCommandSchema]),ArcGISMapOperationOriginIdSchema=z[_0x82106(0xe9)]()['trim']()[_0x82106(0xed)](0x1)['max'](0x80),ArcGISMapOperationOriginSchema=z['object']({'transactionId':ArcGISMapOperationOriginIdSchema,'operationId':ArcGISMapOperationOriginIdSchema})[_0x82106(0xee)](),ArcGISMapSnapshotNotificationSchema=z[_0x82106(0xf3)]({'snapshot':ArcGISMapSnapshotSchema,'operationOrigins':z[_0x82106(0xf1)](ArcGISMapOperationOriginSchema)['max'](0x10),'hasExternalChanges':z[_0x82106(0xf4)]()})['strict']()[_0x82106(0xf9)]((_0x15ea06,_0x32ba4c)=>{const _0x53ee3f=_0x82106;_0x15ea06[_0x53ee3f(0xfa)]['length']===0x0&&!_0x15ea06[_0x53ee3f(0x100)]&&_0x32ba4c[_0x53ee3f(0xea)]({'code':_0x53ee3f(0x105),'path':[_0x53ee3f(0xfa)],'message':_0x53ee3f(0xe8)});const _0x223de7=_0x15ea06['operationOrigins']['map'](({transactionId:_0x52d91a,operationId:_0x1b2f47})=>_0x52d91a+'\x00'+_0x1b2f47);new Set(_0x223de7)[_0x53ee3f(0x102)]!==_0x223de7['length']&&_0x32ba4c['addIssue']({'code':'custom','path':[_0x53ee3f(0xfa)],'message':_0x53ee3f(0xef)});}),ArcGISMapCommandErrorCodes=['map-not-ready','layer-not-found','invalid-target',_0x82106(0x103),'execution-failed','cancelled',_0x82106(0xfe)],ArcGISMapCommandErrorCodeSchema=z['enum'](ArcGISMapCommandErrorCodes),ArcGISMapCommandSuccessSchema=z[_0x82106(0xf3)]({'ok':z[_0x82106(0xfc)](!![]),'command':ArcGISMapCommandSchema,'snapshot':ArcGISMapSnapshotSchema})['strict'](),ArcGISMapCommandFailureSchema=z['object']({'ok':z['literal'](![]),'command':z['union']([ArcGISMapCommandSchema,z[_0x82106(0x104)](z[_0x82106(0xf0)]())]),'code':ArcGISMapCommandErrorCodeSchema,'message':z[_0x82106(0xe9)]()[_0x82106(0xed)](0x1),'snapshot':ArcGISMapSnapshotSchema['optional']()})['strict'](),ArcGISMapCommandResultSchema=z['discriminatedUnion']('ok',[ArcGISMapCommandSuccessSchema,ArcGISMapCommandFailureSchema]);export{ArcGISMapCommandErrorCodes,ArcGISMapCommandResultSchema,ArcGISMapCommandSchema,ArcGISMapOperationOriginSchema,ArcGISMapSnapshotNotificationSchema,ArcGISMapSnapshotSchema};