@arcgis/ai-components 5.1.0-next.27 → 5.1.0-next.29
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/dist/cdn/{L6GSXSFL.js → 3ZTCMCVK.js} +1 -1
- package/dist/cdn/{KNO5FPHC.js → 6GNTHKHI.js} +1 -1
- package/dist/cdn/{KFJGHW3R.js → BVUO6BDM.js} +1 -1
- package/dist/cdn/{J6CQSODR.js → CHL3WCSP.js} +1 -1
- package/dist/cdn/CXBXMIVC.js +2 -0
- package/dist/cdn/{YEFXAQW5.js → GWUKXADL.js} +1 -1
- package/dist/cdn/{ZY2CR3GQ.js → I2T7WY7H.js} +1 -1
- package/dist/cdn/{Y56ZMMCL.js → NEUTYI6D.js} +1 -1
- package/dist/cdn/{U66MPKOC.js → OG537NIF.js} +1 -1
- package/dist/cdn/{LDSZVLLN.js → PTPC46CI.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/utils2.js +8 -4
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/cdn/OJUEJ4RT.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./4EMGNDF6.js";import b from"./6Z5UQ3RY.js";import{a as e,c as a}from"./
|
|
2
|
+
import c from"./4EMGNDF6.js";import b from"./6Z5UQ3RY.js";import{a as e,c as a}from"./OG537NIF.js";import"./CXBXMIVC.js";import"./WBSNYWJJ.js";import{v as s,z as r}from"./53TKGRHQ.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{e:i}])=>{var t=class extends s{constructor(){super(...arguments),this.agent=i}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-layer-styling-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=e(this,"arcgis-assistant-layer-styling-agent"),a(this)}};r("arcgis-assistant-layer-styling-agent",t);return t},b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./4EMGNDF6.js";import b from"./6Z5UQ3RY.js";import{a as r,c as a}from"./
|
|
2
|
+
import c from"./4EMGNDF6.js";import b from"./6Z5UQ3RY.js";import{a as r,c as a}from"./OG537NIF.js";import"./CXBXMIVC.js";import"./WBSNYWJJ.js";import{v as s,z as e}from"./53TKGRHQ.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{f:i}])=>{var t=class extends s{constructor(){super(...arguments),this.agent=i}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-help-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=r(this,"arcgis-assistant-help-agent"),a(this)}};e("arcgis-assistant-help-agent",t);return t},b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./4EMGNDF6.js";import b from"./6Z5UQ3RY.js";import{a as r,c as e}from"./
|
|
2
|
+
import c from"./4EMGNDF6.js";import b from"./6Z5UQ3RY.js";import{a as r,c as e}from"./OG537NIF.js";import"./CXBXMIVC.js";import"./WBSNYWJJ.js";import{v as a,z as s}from"./53TKGRHQ.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{b:i}])=>{var t=class extends a{constructor(){super(...arguments),this.agent=i}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-data-exploration-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=r(this,"arcgis-assistant-data-exploration-agent"),e(this)}};s("arcgis-assistant-data-exploration-agent",t);return t},b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{b as e,c as i}from"./
|
|
2
|
+
import{b as e,c as i}from"./OG537NIF.js";import"./CXBXMIVC.js";import"./WBSNYWJJ.js";import{v as s,z as a}from"./53TKGRHQ.js";import"./CFDTXKJ6.js";var t=class extends s{static{this.properties={agent:0,context:0}}async getContext(){return e(this.context)?await this.context():this.context}load(){i(this)}};a("arcgis-assistant-agent",t);export{t as ArcgisAssistantAgent};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{b as r}from"./WBSNYWJJ.js";function c(t,e){return e?typeof e=="string"?u(t,e)??null:e:r(t,"arcgis-map")??null}function u(t,e){let l=e.includes("#")||e.includes(".")||e.includes("["),n=t.getRootNode();return(l?void 0:n.querySelector(`#${e}`))??n.querySelector(e)??void 0}export{c as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./4EMGNDF6.js";import b from"./6Z5UQ3RY.js";import{a as i,c as e}from"./
|
|
2
|
+
import c from"./4EMGNDF6.js";import b from"./6Z5UQ3RY.js";import{a as i,c as e}from"./OG537NIF.js";import"./CXBXMIVC.js";import"./WBSNYWJJ.js";import{v as a,z as s}from"./53TKGRHQ.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{a:r}])=>{var t=class extends a{constructor(){super(...arguments),this.agent=r}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-navigation-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=i(this,"arcgis-assistant-navigation-agent"),e(this)}};s("arcgis-assistant-navigation-agent",t);return t},b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as k}from"./U4HT5SFC.js";import c from"./6Z5UQ3RY.js";import{a as C}from"./
|
|
2
|
+
import{a as k}from"./U4HT5SFC.js";import c from"./6Z5UQ3RY.js";import{a as C}from"./CXBXMIVC.js";import"./WBSNYWJJ.js";import{g as b,h,l as v,n as a,t as u,u as m,v as f,z as w}from"./53TKGRHQ.js";import"./CFDTXKJ6.js";export default $arcgis.t(([S,{whenOnce:I,watch:L,when:P},O,M,{property:p,subclass:x},{y:E}])=>{var R=b`:host{display:block;width:var(--arcgis-internal-panel-width, 100%);height:var(--arcgis-internal-expand-max-height, 100%)}`,A=Object.defineProperty,z=Object.getOwnPropertyDescriptor,l=(c,t,e,i)=>{for(var s=i>1?void 0:i?z(t,e):t,r=c.length-1,n;r>=0;r--)(n=c[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&A(t,e,s),s},o=class extends M{constructor(c){super(c),this.view=null,this.loading=!1,this.processing=!1,this.processingStep=""}async load(){this._set("loading",!0);try{await this._initialize()}finally{this._set("loading",!1)}}destroy(){this.orchestrator?.dispose(),super.destroy()}async _initialize(){this.removeHandles(),await Promise.all([this.portal.load(),this.view?.when()]),this.view&&await I(()=>!this.view.updating),this._set("orchestrator",await E.init({agents:[...this.agents],view:this.view??void 0})),this.addHandles([L(()=>[this.view,this.agents],()=>void this._initialize())])}clearChatHistory(){this.orchestrator?.newConversation()}async*ask(c,t){if(!this.orchestrator)throw new Error("Orchestrator not initialized yet.");this._set("processing",!0),this._set("processingStep","");let e=[];try{let i=this.orchestrator.ask(c);for await(let s of i){let r=s.runId;if(t?.aborted){yield{type:"cancelled",runId:r};break}switch(s.type){case"trace":{this._set("processingStep",s.data.text),e.push(s.data.text);break}case"completed":{if(!s.result.content.length){yield{type:"completed",error:"Could not process the request.",log:e,runId:r};return}let n=s.result.content;this._set("processingStep",""),yield{type:"completed",response:n,log:e,runId:r};return}case"interrupt":{let{kind:n,message:g,metadata:_}=s.interrupt,d=Array.isArray(_)?[..._]:[],$=(()=>{switch(n){case"booleanChoice":return{type:"boolean-choice",message:g,options:d};case"singleSelection":return{type:"single-select",message:g,options:d};case"multipleSelection":return{type:"multi-select",message:g,options:d};case"textInput":return{type:"text-input",message:g};default:return{type:n,message:g,options:d}}})();this._set("processingStep","Waiting for user input..."),yield{type:"interrupt",payload:$,runId:r};break}case"cancelled":{yield{type:"cancelled",runId:r};return}case"error":{yield{type:"completed",error:s.error.message,log:e,runId:r};return}default:{console.warn("Unknown event type:",s);break}}}}catch(i){console.warn("Error during message processing:",i),yield{type:"completed",error:"An error occurred during message processing.",log:e,runId:"error"};return}finally{this._set("processing",!1)}}};l([p({readOnly:!0})],o.prototype,"orchestrator",2);l([p()],o.prototype,"agents",2);l([p()],o.prototype,"portal",2);l([p()],o.prototype,"view",2);l([p({readOnly:!0})],o.prototype,"loading",2);l([p({readOnly:!0})],o.prototype,"processing",2);l([p({readOnly:!0})],o.prototype,"processingStep",2);o=l([x("OrchestratorController")],o);var H="Embeddings resource 'embeddings-v01.json' not found in the webmap portal item.",j="Embeddings not found for this web map.",F="https://developers.arcgis.com/javascript/latest/agentic-apps/ai-webmap-setup/#embeddings",y=class extends f{constructor(){super(...arguments),this._messages=k({blocking:!0}),this.#t=u(),this.#e=u(),this.#s=null,this.#a=new Map,this.#r=O.getDefault(),this.#i=t=>{t.stopPropagation(),this.arcgisInterruptCancel.emit(),this.orchestrator?.cancelInterrupt(),this._interrupt=null},this.#o=t=>{t.stopPropagation();let e=t.detail;this.arcgisInterruptSubmit.emit(e),this.orchestrator?.resumeInterrupt(e),this._interrupt=null},this.#n=t=>{t.stopPropagation(),this.keepSuggestedPrompts||(this.suggestedPrompts=[]);let e=t.detail;this.arcgisSubmit.emit(e),this.submitMessage(e)},this.#l=t=>{if(t.stopPropagation(),this.arcgisCancel.emit(),this._interrupt){this.orchestrator?.cancelInterrupt(),this._interrupt=null;return}this.#s?.abort()},this.#c=t=>{t.stopPropagation();let e=t.detail;this.arcgisFeedback.emit(e)},this._orchestratorController=null,this._interrupt=null,this._error=null,this.messages=new S([]),this.referenceElement=null,this.suggestedPrompts=[],this.feedbackEnabled=!1,this.keepSuggestedPrompts=!1,this.logEnabled=!1,this.copyEnabled=!1,this.arcgisCancel=a(),this.arcgisError=a(),this.arcgisFeedback=a(),this.arcgisInterrupt=a(),this.arcgisInterruptCancel=a(),this.arcgisInterruptSubmit=a(),this.arcgisReady=a(),this.arcgisSubmit=a()}static{this.properties={_orchestratorController:16,_interrupt:16,_error:16,_user:16,messages:0,orchestrator:32,entryMessage:1,heading:1,description:1,referenceElement:1,suggestedPrompts:0,feedbackEnabled:5,keepSuggestedPrompts:5,logEnabled:5,copyEnabled:5}}static{this.styles=R}#t;#e;#s;#a;#r;#i;#o;#n;#l;#c;async#h(){try{let t=C(this.el,this.referenceElement);await t?.componentOnReady();let e=[...this.#a.values()];return e.length?(this._orchestratorController=new o({agents:e,portal:this.#r,view:t?.view}),await this._orchestratorController.load(),!0):(this._error="No agents found.",!1)}catch(t){return this._error=t?.message??"Error initializing orchestrator.",v(this)(t),!1}}get _user(){return this.#r?.user?.fullName||this.#r?.user?.username}get orchestrator(){return this._orchestratorController?.orchestrator}async clearChatHistory(){this._reset(),this._orchestratorController?.clearChatHistory()}register(t){this.#a.set(t.agent.id,t)}async submitMessage(t){let e=t.trim();if(!e||(this.messages.push({id:Date.now().toString(),role:"user",content:e}),!this._orchestratorController))return;let i=this._orchestratorController.ask(e,this.#s?.signal);for await(let s of i){let r=s.runId;switch(s.type){case"completed":this.messages.push({role:"assistant",content:s.response,log:s.log,error:s.error,id:r});break;case"interrupt":this._interrupt={...s.payload,id:r};break;case"cancelled":this.messages.push({role:"assistant",error:"Request cancelled.",id:r});break}}}load(){this.manager.onLifecycle(this._reset.bind(this))}loaded(){this.manager.onLifecycle(()=>{this.#t.value?.addEventListener("arcgisSubmit",this.#n),this.#t.value?.addEventListener("arcgisCancel",this.#l),this.#t.value?.addEventListener("arcgisFeedback",this.#c);let t=P(()=>!!this._interrupt&&!!this.#e.value,()=>{let e=this.#e.value;e.removeEventListener("arcgisSubmit",this.#o),e.removeEventListener("arcgisCancel",this.#i),e.addEventListener("arcgisSubmit",this.#o,{once:!0}),e.addEventListener("arcgisCancel",this.#i,{once:!0}),this._interrupt&&this.arcgisInterrupt.emit(this._interrupt)});return queueMicrotask(()=>{this.#h().then(e=>{e?this.arcgisReady.emit():this._error&&this.arcgisError.emit(new Error(this._error))})}),()=>{t.remove(),this.#e.value?.removeEventListener("arcgisSubmit",this.#o),this.#e.value?.removeEventListener("arcgisCancel",this.#i),this.#t.value?.removeEventListener("arcgisSubmit",this.#n),this.#t.value?.removeEventListener("arcgisCancel",this.#l),this.#t.value?.removeEventListener("arcgisFeedback",this.#c),this._orchestratorController?.destroy(),this._orchestratorController=null}})}_reset(){this.#s?.abort(),this._interrupt=null,this.messages.removeAll(),this._error=null}_renderErrorNotice(){return this._error?h`<calcite-notice closable slot=entry-message open kind=danger icon width=full>${this._error===H?h`<div slot=message>${j}</div><calcite-link slot=link .href=${F} target=_blank title="Learn about web map embeddings">Read more</calcite-link>`:h`<div slot=message>${this._error}</div>`}</calcite-notice>`:null}render(){return h`<arcgis-assistant-shell .loading=${!this._orchestratorController&&!this._error||this._orchestratorController?.loading} .heading=${this.heading??this._messages.assistantLabel} .description=${this.description} .entryMessage=${this.entryMessage} .entryMessageClosed=${this.messages.length>0} .awaitingResponse=${this._orchestratorController?.processing} .suggestedPrompts=${this.suggestedPrompts} .messages=${this.messages} ${m(this.#t)}>${this._renderErrorNotice()}${this._interrupt?h`<arcgis-assistant-interrupt slot=entry-message .type=${this._interrupt.type} .message=${this._interrupt.message} .options=${this._interrupt.options} ${m(this.#e)}></arcgis-assistant-interrupt>`:null}<arcgis-assistant-chat .loading=${this._orchestratorController?.processing} .loadingMessage=${this._orchestratorController?.processingStep||""} .messages=${this.messages} .user=${this._user} .feedbackEnabled=${this.feedbackEnabled} .logEnabled=${this.logEnabled} .copyEnabled=${this.copyEnabled}><slot></slot></arcgis-assistant-chat><slot name=header-actions-end slot=header-actions-end></slot>${this.entryMessage?null:h`<slot name=entry-message slot=entry-message></slot>`}<slot name=entry-actions-start slot=entry-actions-start></slot><slot name=footer-content slot=footer-content></slot></arcgis-assistant-shell>`}};w("arcgis-assistant",y);return y},"core/Collection","core/reactiveUtils","portal/Portal","core/Accessor","core/accessorSupport/decorators",c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./4EMGNDF6.js";import b from"./6Z5UQ3RY.js";import{a as s,c as a}from"./
|
|
2
|
+
import c from"./4EMGNDF6.js";import b from"./6Z5UQ3RY.js";import{a as s,c as a}from"./OG537NIF.js";import"./CXBXMIVC.js";import"./WBSNYWJJ.js";import{v as r,z as e}from"./53TKGRHQ.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{c:i}])=>{var t=class extends r{constructor(){super(...arguments),this.agent=i}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-layer-filter-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=s(this,"arcgis-assistant-layer-filter-agent"),a(this)}};e("arcgis-assistant-layer-filter-agent",t);return t},b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as s}from"./
|
|
2
|
+
import{a as s}from"./CXBXMIVC.js";import{b as r}from"./WBSNYWJJ.js";function i(e,t){let n=s(e.el,e.referenceElement);if(n)return n;let a=r(e.el,"arcgis-assistant"),o=s(e.el,a?.referenceElement);if(o)return o;throw new Error(`${t}: Reference element not found`)}function g(e,t){let n=i(e,t).view;if(!n)throw new Error(`${t}: Reference element does not have a view`);return n}function l(e){return typeof e=="function"}function m(e){let t=r(e.el,"arcgis-assistant");if(t===void 0)throw new Error("arcgis-assistant-agent must be used within an arcgis-assistant element");t.register({agent:e.agent,getContext:async()=>await e.getContext?.()??e.context??{}})}export{g as a,l as b,m as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./4EMGNDF6.js";import b from"./6Z5UQ3RY.js";import{a as s,c as a}from"./
|
|
2
|
+
import c from"./4EMGNDF6.js";import b from"./6Z5UQ3RY.js";import{a as s,c as a}from"./OG537NIF.js";import"./CXBXMIVC.js";import"./WBSNYWJJ.js";import{v as e,z as r}from"./53TKGRHQ.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{d:i}])=>{var t=class extends e{constructor(){super(...arguments),this.agent=i}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-layer-query-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=s(this,"arcgis-assistant-layer-query-agent"),a(this)}};r("arcgis-assistant-layer-query-agent",t);return t},b,c)
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{p as e,y as s}from"./53TKGRHQ.js";import"./CFDTXKJ6.js";var t=e(s,{"arcgis-assistant":[()=>import("./
|
|
2
|
+
import{p as e,y as s}from"./53TKGRHQ.js";import"./CFDTXKJ6.js";var t=e(s,{"arcgis-assistant":[()=>import("./I2T7WY7H.js"),"_messages:,copyEnabled,description,entryMessage,feedbackEnabled,heading,keepSuggestedPrompts,logEnabled,messages:,orchestrator:,referenceElement,suggestedPrompts:;clearChatHistory,submitMessage;register"],"arcgis-assistant-agent":[()=>import("./CHL3WCSP.js"),"agent:,context:;getContext"],"arcgis-assistant-data-exploration-agent":[()=>import("./BVUO6BDM.js"),"referenceElement;;getContext"],"arcgis-assistant-help-agent":[()=>import("./6GNTHKHI.js"),"referenceElement;;getContext"],"arcgis-assistant-layer-filter-agent":[()=>import("./NEUTYI6D.js"),"referenceElement;;getContext"],"arcgis-assistant-layer-query-agent":[()=>import("./PTPC46CI.js"),"referenceElement;;getContext"],"arcgis-assistant-layer-styling-agent":[()=>import("./3ZTCMCVK.js"),"referenceElement;;getContext"],"arcgis-assistant-navigation-agent":[()=>import("./GWUKXADL.js"),"referenceElement;;getContext"],"arcgis-assistant-chat":[()=>import("./NEVZK4JW.js"),"copyEnabled,feedbackEnabled,loading,loadingMessage,logEnabled,messages:,user"],"arcgis-assistant-chat-card":[()=>import("./3ZE6XU77.js"),"_messages:,content,copyEnabled,error,feedbackEnabled,loading,loadingMessage,log:,logEnabled,message:,messageRole,user"],"arcgis-assistant-chat-card-content":[()=>import("./LISD2QEG.js"),"content,loading,loadingMessage,type"],"arcgis-assistant-chat-entry":[()=>import("./LLGW4MK2.js"),"_messages:,awaitingResponse,entryPlaceholder,inputValue,keyboardShortcutsDisabled,messages:,status"],"arcgis-assistant-interrupt":[()=>import("./MEEDCDFY.js"),"_messages:,message,options:,type"],"arcgis-assistant-shell":[()=>import("./M2ZUX33F.js"),"_messages:,awaitingResponse,description,entryMessage,entryMessageClosed,heading,inputValue,loading,messages:,status,suggestedPrompts:"]});t({resourcesUrl:import.meta.url});var a=new CSSStyleSheet;a.replaceSync("@layer{:not([hydrated]):is(arcgis-assistant,arcgis-assistant-agent,arcgis-assistant-data-exploration-agent,arcgis-assistant-help-agent,arcgis-assistant-layer-filter-agent,arcgis-assistant-layer-query-agent,arcgis-assistant-layer-styling-agent,arcgis-assistant-navigation-agent,arcgis-assistant-chat,arcgis-assistant-chat-card,arcgis-assistant-chat-card-content,arcgis-assistant-chat-entry,arcgis-assistant-interrupt,arcgis-assistant-shell){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,a];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,s)
|
package/dist/chunks/utils2.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { getClosestElement as
|
|
3
|
-
function
|
|
4
|
-
return
|
|
2
|
+
import { getClosestElement as i } from "@arcgis/toolkit/dom";
|
|
3
|
+
function r(s, o) {
|
|
4
|
+
return o ? typeof o == "string" ? l(s, o) ?? null : o : i(s, "arcgis-map") ?? null;
|
|
5
|
+
}
|
|
6
|
+
function l(s, o) {
|
|
7
|
+
const u = o.includes("#") || o.includes(".") || o.includes("["), t = s.getRootNode();
|
|
8
|
+
return (u ? void 0 : t.querySelector(`#${o}`)) ?? t.querySelector(o) ?? void 0;
|
|
5
9
|
}
|
|
6
10
|
export {
|
|
7
|
-
|
|
11
|
+
r as g
|
|
8
12
|
};
|