@agentic-ui-experience/ui-arcgis 0.0.1-beta.2 → 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 +84 -3
- package/dist/ArcGISMapView.js +1 -1
- package/dist/api.js +1 -1
- package/dist/catalog.js +1 -1
- package/dist/controller/api.d.ts +300 -22
- package/dist/controller/api.js +1 -1
- package/dist/controller/createArcGISMapController.js +1 -1
- package/dist/controller/featureFilter.d.ts +425 -0
- package/dist/controller/featureFilter.js +1 -0
- package/dist/controller/featureFilterExpression.d.ts +16 -0
- package/dist/controller/featureFilterExpression.js +1 -0
- package/dist/controller/featureFilterRuntime.d.ts +19 -0
- package/dist/controller/featureFilterRuntime.js +1 -0
- package/dist/controller/featureQuery.d.ts +275 -0
- package/dist/controller/featureQuery.js +1 -0
- package/dist/controller/featureQueryExpression.d.ts +16 -0
- package/dist/controller/featureQueryExpression.js +1 -0
- package/dist/controller/featureQueryRuntime.d.ts +12 -0
- package/dist/controller/featureQueryRuntime.js +1 -0
- package/dist/controller/useArcGISMapController.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/prompt.js +1 -1
- package/package.json +4 -4
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
|
-
-
|
|
98
|
+
- Pass `arcgisPromptDescriptor` to the agent-side `createUIToolCatalog`.
|
|
97
99
|
- Register `arcgisRuntimeCatalog` with a non-React runtime.
|
|
98
|
-
- Pass `arcgisReactCatalog` to `useUIRuntime({
|
|
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
|
|
package/dist/ArcGISMapView.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4b247b=_0x1a78;(function(_0x342ac1,_0x2b76e9){const _0x13f1c5=_0x1a78,_0x50c366=_0x342ac1();while(!![]){try{const _0x575495=-parseInt(_0x13f1c5(0x1b8))/0x1+-parseInt(_0x13f1c5(0x1a5))/0x2*(-parseInt(_0x13f1c5(0x1bc))/0x3)+parseInt(_0x13f1c5(0x1b6))/0x4+-parseInt(_0x13f1c5(0x19f))/0x5+-parseInt(_0x13f1c5(0x1c5))/0x6*(-parseInt(_0x13f1c5(0x19a))/0x7)+parseInt(_0x13f1c5(0x1ab))/0x8+parseInt(_0x13f1c5(0x18c))/0x9*(-parseInt(_0x13f1c5(0x1b9))/0xa);if(_0x575495===_0x2b76e9)break;else _0x50c366['push'](_0x50c366['shift']());}catch(_0x445d85){_0x50c366['push'](_0x50c366['shift']());}}}(_0x29d3,0x7a650));function _0x29d3(){const _0x570efc=['search','portalUrl','load','top-right','div','toFixed','type','3487164CWHnrj','then','820042zGTWos','22590jnwQOm','useState','arcgis-search','1418397VRNCoZ','webmap','arcgis-layer-list','hidden','zoom','current','/home/webmap/viewer.html?webmap=','catch','createElement','12iCOXXg','useRef','#fff5f5','latitude','registration','Open\x20in\x20ArcGIS','&level=','useEffect','1px\x20solid\x20rgba(226,\x20232,\x20240,\x200.9)','5634Weosha','undefined','The\x20configured\x20ArcGIS\x20portal\x20has\x20no\x20default\x20basemap.','itemId','addEventListener','#2563eb','source','controls','12px\x2014px','defaultBasemap','100%','header','height','top-left','2122890mPHMDL','arcgisLoadError','bottom-left','arcgis-map','block','3172710HHhCYl','ArcGIS\x20map\x20could\x20not\x20be\x20loaded.','sourceKey','resolve','flex','description','4REuhMC','stringify','longitude','title','basemap','#ffffff','7568936Cwggwq','alert','center','portal/default'];_0x29d3=function(){return _0x570efc;};return _0x29d3();}function _0x1a78(_0x141619,_0x535bc4){_0x141619=_0x141619-0x186;const _0x29d36e=_0x29d3();let _0x1a781c=_0x29d36e[_0x141619];return _0x1a781c;}import{jsx,jsxs,Fragment}from'react/jsx-runtime';import _0x309a9e from'react';import _0x48cbef 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:_0x551831}=await import('@arcgis/core/portal/Portal.js');return _0x551831['getDefault']();}async function applyPortalDefaultBasemap(_0x4d1f4d,_0x1dd79d=getDefaultArcGISPortal,_0x306316=()=>!![]){const _0x2a01be=_0x1a78,_0x451a3a=await _0x1dd79d();await _0x451a3a[_0x2a01be(0x1b1)]();if(!_0x451a3a['defaultBasemap'])throw new Error(_0x2a01be(0x18e));_0x306316()&&(_0x4d1f4d['basemap']=_0x451a3a[_0x2a01be(0x195)]);}function ensureArcGISMapComponents(){const _0x5a2e7e=_0x1a78;if(typeof window===_0x5a2e7e(0x18d))return Promise[_0x5a2e7e(0x1a2)]();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')])[_0x5a2e7e(0x1b7)](()=>void 0x0)[_0x5a2e7e(0x1c3)](_0x370655=>{arcgisComponentsRegistration=void 0x0;throw _0x370655;})),arcgisComponentsRegistration;}function observeArcGISComponentRegistration(_0x1a8c74,_0x39ff11){const _0x4dafd3=_0x1a78;return _0x1a8c74[_0x4dafd3(0x1b7)](()=>void 0x0,()=>{_0x39ff11('registration');});}function createArcGISMapLoadErrorHandler(_0x58d6e2){return()=>{const _0x2e64f1=_0x1a78;_0x58d6e2(_0x2e64f1(0x1b1));};}function observeArcGISMapLoadError(_0x4f3fa8,_0x1a4970){const _0x58f87d=_0x1a78,_0x21b3be=createArcGISMapLoadErrorHandler(_0x1a4970);return _0x4f3fa8[_0x58f87d(0x190)]('arcgisLoadError',_0x21b3be),()=>{const _0x24441b=_0x58f87d;_0x4f3fa8['removeEventListener'](_0x24441b(0x19b),_0x21b3be);};}function getArcGISMapSourceKey(_0x1284dc){const _0x21ce1a=_0x1a78;if(_0x1284dc['type']===_0x21ce1a(0x1bd))return JSON[_0x21ce1a(0x1a6)]([_0x1284dc['type'],_0x1284dc[_0x21ce1a(0x18f)]]);return JSON[_0x21ce1a(0x1a6)]([_0x1284dc['type'],_0x1284dc['basemap'],_0x1284dc['center'][_0x21ce1a(0x1a7)],_0x1284dc['center'][_0x21ce1a(0x186)],_0x1284dc[_0x21ce1a(0x1c0)]??null]);}function createArcGISMapElementProps(_0x11f5e,_0x16be61){const _0x25a798=_0x1a78,_0x1b3be8=_0x11f5e['source'][_0x25a798(0x1b5)]===_0x25a798(0x1bd)?{'item-id':_0x11f5e[_0x25a798(0x192)]['itemId']}:{..._0x11f5e[_0x25a798(0x192)][_0x25a798(0x1a9)]==='portal/default'?{}:{'basemap':_0x11f5e['source'][_0x25a798(0x1a9)]},'center':_0x11f5e['source']['center']['longitude']+','+_0x11f5e[_0x25a798(0x192)][_0x25a798(0x1ad)]['latitude'],..._0x11f5e[_0x25a798(0x192)][_0x25a798(0x1c0)]===void 0x0?{}:{'zoom':String(_0x11f5e[_0x25a798(0x192)][_0x25a798(0x1c0)])}};return{'key':_0x16be61,..._0x1b3be8,'style':{'display':_0x25a798(0x19e),'height':_0x11f5e[_0x25a798(0x198)]+'px','width':_0x25a798(0x196)}};}function getArcGISMapFailureForSource(_0x46c5ae,_0x451109){return _0x46c5ae['sourceKey']===_0x451109?_0x46c5ae['failure']:null;}function resetArcGISMapFailureForSource(_0x42c114,_0xa2cf3f){const _0x3da5e4=_0x1a78;if(_0x42c114[_0x3da5e4(0x1a1)]===_0xa2cf3f&&_0x42c114['failure']===null)return _0x42c114;return{'sourceKey':_0xa2cf3f,'failure':null};}function createOpenUrl(_0x566de6){const _0x59be03=_0x1a78,_0x57a326=_0x48cbef[_0x59be03(0x1b0)]['replace'](/\/+$/,'');if(_0x566de6[_0x59be03(0x192)][_0x59be03(0x1b5)]==='webmap')return _0x57a326+_0x59be03(0x1c2)+encodeURIComponent(_0x566de6['source'][_0x59be03(0x18f)]);const {latitude:_0x515da4,longitude:_0x5c9758}=_0x566de6['source'][_0x59be03(0x1ad)],_0x61fd11=_0x566de6[_0x59be03(0x192)]['zoom']??0xb,_0x2a5df9=_0x5c9758[_0x59be03(0x1b4)](0x5)+','+_0x515da4['toFixed'](0x5);return _0x57a326+'/home/webmap/viewer.html?center='+encodeURIComponent(_0x2a5df9)+_0x59be03(0x189)+_0x61fd11;}const ArcGISMapView=createComponentImplementation(ArcGISMapViewApi,({props:_0x17f34f})=>jsx(ArcGISMapViewContent,{'props':_0x17f34f}));function ArcGISMapViewContent({props:_0x114415}){const _0x1d3ca2=_0x1a78,_0x5e9946=normalizeArcGISMapViewProps(_0x114415),_0x4e05ce=_0x5e9946[_0x1d3ca2(0x1a8)]??'ArcGIS\x20map',_0x3d9357=createOpenUrl(_0x5e9946);if(_0x5e9946[_0x1d3ca2(0x192)][_0x1d3ca2(0x1b5)]===_0x1d3ca2(0x1a9)&&(!Number['isFinite'](_0x5e9946[_0x1d3ca2(0x192)][_0x1d3ca2(0x1ad)]['latitude'])||!Number['isFinite'](_0x5e9946[_0x1d3ca2(0x192)][_0x1d3ca2(0x1ad)][_0x1d3ca2(0x1a7)])))return jsx('div',{'style':fallbackStyle,'children':'ArcGISMapView\x20needs\x20valid\x20finite\x20latitude\x20and\x20longitude.'});return jsxs('section',{'style':shellStyle,'aria-label':_0x4e05ce,'children':[jsxs(_0x1d3ca2(0x197),{'style':headerStyle,'children':[jsxs(_0x1d3ca2(0x1b3),{'style':{'minWidth':0x0},'children':[jsx(_0x1d3ca2(0x1b3),{'style':titleStyle,'children':_0x4e05ce}),_0x5e9946['description']?jsx(_0x1d3ca2(0x1b3),{'style':descriptionStyle,'children':_0x5e9946[_0x1d3ca2(0x1a4)]}):null]}),_0x5e9946['openInArcGIS']&&_0x3d9357?jsx('a',{'href':_0x3d9357,'target':'_blank','rel':'noopener\x20noreferrer','style':linkStyle,'children':_0x1d3ca2(0x188)}):null]}),jsx(ArcGISMapBody,{'props':_0x5e9946})]});}function ArcGISMapBody({props:_0x3c6d39}){const _0x112876=_0x1a78,_0x3f7664=getArcGISMapSourceKey(_0x3c6d39['source']),_0x2d2891=_0x309a9e[_0x112876(0x1c6)](null),[_0x1e6203,_0x216b9c]=_0x309a9e[_0x112876(0x1ba)]({'sourceKey':_0x3f7664,'failure':null}),_0x5d490e=getArcGISMapFailureForSource(_0x1e6203,_0x3f7664);_0x309a9e[_0x112876(0x18a)](()=>{let _0x4d2cc5=!![];_0x216b9c(_0xdb8f91=>resetArcGISMapFailureForSource(_0xdb8f91,_0x3f7664));const _0x5d213a=_0x203ffb=>{_0x4d2cc5&&_0x216b9c({'sourceKey':_0x3f7664,'failure':_0x203ffb});};return void ensureArcGISMapComponents()['then'](()=>{const _0x862d3e=_0x1a78;if(!_0x4d2cc5||_0x3c6d39[_0x862d3e(0x192)]['type']!=='basemap'||_0x3c6d39[_0x862d3e(0x192)][_0x862d3e(0x1a9)]!==_0x862d3e(0x1ae))return;const _0x3ec4a3=_0x2d2891[_0x862d3e(0x1c1)];if(!_0x3ec4a3){_0x5d213a('load');return;}void applyPortalDefaultBasemap(_0x3ec4a3,getDefaultArcGISPortal,()=>_0x4d2cc5&&_0x2d2891['current']===_0x3ec4a3)['catch'](()=>{const _0xce50d2=_0x862d3e;_0x5d213a(_0xce50d2(0x1b1));});},()=>{const _0x3ac99e=_0x1a78;_0x5d213a(_0x3ac99e(0x187));}),()=>{_0x4d2cc5=![];};},[_0x3f7664]),_0x309a9e['useEffect'](()=>{const _0x218ebb=_0x2d2891['current'];if(!_0x218ebb)return;return observeArcGISMapLoadError(_0x218ebb,_0x59bf6c=>{_0x216b9c({'sourceKey':_0x3f7664,'failure':_0x59bf6c});});},[_0x3f7664]);if(_0x5d490e)return jsx(ArcGISMapFailureFallback,{'failure':_0x5d490e});return _0x309a9e['createElement'](_0x112876(0x19d),{...createArcGISMapElementProps(_0x3c6d39,_0x3f7664),'ref':_0x2d2891},jsxs(Fragment,{'children':[_0x3c6d39['controls'][_0x112876(0x1c0)]?_0x309a9e[_0x112876(0x1c4)]('arcgis-zoom',{'slot':_0x112876(0x199)}):null,_0x3c6d39[_0x112876(0x193)][_0x112876(0x1af)]?_0x309a9e['createElement'](_0x112876(0x1bb),{'slot':_0x112876(0x1b2)}):null,_0x3c6d39['controls']['legend']?_0x309a9e['createElement']('arcgis-legend',{'slot':_0x112876(0x19c)}):null,_0x3c6d39[_0x112876(0x193)]['layerList']?_0x309a9e['createElement'](_0x112876(0x1be),{'slot':_0x112876(0x1b2)}):null]}));}function ArcGISMapFailureFallback({failure:_0x4db332}){const _0x2a3c25=_0x1a78;return jsx(_0x2a3c25(0x1b3),{'role':_0x2a3c25(0x1ac),'style':mapFailureStyle,'children':_0x4db332==='registration'?'ArcGIS\x20map\x20components\x20could\x20not\x20be\x20loaded.':_0x2a3c25(0x1a0)});}const shellStyle={'width':'100%','borderRadius':0x8,'border':'1px\x20solid\x20rgba(148,\x20163,\x20184,\x200.45)','background':_0x4b247b(0x1aa),'overflow':_0x4b247b(0x1bf)},headerStyle={'display':_0x4b247b(0x1a3),'alignItems':'center','justifyContent':'space-between','gap':0xa,'padding':'10px\x2012px','borderBottom':_0x4b247b(0x18b)},titleStyle={'color':'#111827','fontSize':0xd,'fontWeight':0x2bc,'lineHeight':1.2,'overflow':'hidden','textOverflow':'ellipsis','whiteSpace':'nowrap'},descriptionStyle={'color':'#64748b','fontSize':0xc,'lineHeight':1.3,'marginTop':0x4},linkStyle={'color':_0x4b247b(0x191),'flexShrink':0x0,'fontSize':0xc,'fontWeight':0x2bc,'textDecoration':'none'},fallbackStyle={'width':_0x4b247b(0x196),'borderRadius':0x8,'border':'1px\x20solid\x20rgba(220,\x2038,\x2038,\x200.25)','background':_0x4b247b(0x1c7),'color':'#991b1b','fontSize':0xd,'padding':_0x4b247b(0x194)},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
|
|
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
|
-
(function(
|
|
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};
|
package/dist/controller/api.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
691
|
-
|
|
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
|
}
|
package/dist/controller/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
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};
|