@arcgis/coding-components 5.1.0-next.24 → 5.1.0-next.25

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
@@ -7,7 +7,7 @@ Want to get started immediately? See [Get started](https://developers.arcgis.com
7
7
  ## Documentation
8
8
 
9
9
  - [Key Features](https://developers.arcgis.com/javascript/latest/key-features/)
10
- - [Build with npm](https://developers.arcgis.com/javascript/latest/get-started/#npm)
10
+ - [Build with npm](https://developers.arcgis.com/javascript/latest/get-started/#use-arcgiscreate)
11
11
  - [API and component references](https://developers.arcgis.com/javascript/latest/references/)
12
12
  - [Functionality samples](https://developers.arcgis.com/javascript/latest/sample-code/)
13
13
  - [TypeScript setup](https://developers.arcgis.com/javascript/latest/get-started/#typescript)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import e from"./4Y64BGY2.js";import d from"./T7GEIGWF.js";import{a as L}from"./QNAUGPWS.js";import c from"./6SEUQ6EB.js";import"./PWVGWGF5.js";import a from"./NQVNVOQR.js";import"./IFNCCZ7O.js";import"./PJHAQGOB.js";import"./NKCYMRE4.js";import"./BQLG62QR.js";import"./WMLTLTIE.js";import"./UYBZWFE5.js";import{D as C,E as D,F as I,G as r,J as B,K as k,h as w,j as s,l as $,n as b,s as y}from"./Q5SGN46H.js";import{a as R,b as o}from"./BCUUVBXH.js";import"./YLN7EMJC.js";import"./GHSEU7VA.js";import"./4OSKRQ5X.js";import{Rk as M}from"./NG7S6FUK.js";import"./3TTFCHAA.js";export default $arcgis.t(([O,,l,{a:U,b:F},{a:T,h:S}])=>{var z=w`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}.main-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}`,N="https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0",a=(i,e)=>R(i,"Arcade Assistant",e),H=i=>{let{aiAssistantsEnabled:e}=i;return e===void 0?(a("warn","`areAiAssistantsEnabled` is not defined in the organizations settings."),!1):e},V=i=>!(!i||!("id"in i)),G=async i=>(await O.getCredential(i,{oAuthPopupConfirmation:!1})).token,q=async i=>{try{return!!await O.checkSignInStatus(i)}catch{return a("warn","User is not signed in."),!1}};async function Q({portalUrl:i,profile:e}){if(!V(e))return a("warn","Addon initialization failed. Reason: unsupported profile."),{shouldRender:!1};let t=i.replace(/\/sharing\/rest(\/.*)?$/iu,"").replace(/\/$/u,"");if(!await q(t))return{shouldRender:!1};let n=await G(i),c=`${t}/sharing/rest/portals/self?f=json&token=${n}`,p=`${t}/sharing/rest/portals/self/settings?f=json&token=${n}`,u=`${t}/sharing/rest/portals/self/signinSettings?f=json&token=${n}`,g=await Promise.allSettled([fetch(c,{credentials:"include"}).then(d=>d.json()),fetch(p,{credentials:"include"}).then(d=>d.json()),fetch(u,{credentials:"include"}).then(d=>d.json())]),[_,m,f]=g,h=_.status==="fulfilled"?_.value:(a("warn",`Failed to fetch selfUrl. Reason: ${_.reason}.`),{}),v=m.status==="fulfilled"?m.value:(a("warn",`Failed to fetch settingsUrl. Reason: ${m.reason}.`),{}),j=f.status==="fulfilled"?f.value:(a("warn",`Failed to fetch signinSettingsUrl. Reason: ${f.reason}.`),{});if(h.isPortal)return{shouldRender:!1};let x=h.helpBase||"";if(!v)return a("warn","Settings response is not available."),{shouldRender:!1};let A=H(v);j.blockBetaApps===!0&&(a("warn","Arcade Assistant is blocked by the organization settings. To enable it, do not block beta apps in the organization settings."),A=!1),h?.user?.privileges?.includes("portal:user:useAIAssistants")||(a("warn","User does not have the required privileges to use AI Assistants."),A=!1);let E=h?.helperServices?.aiAssistantServices?.url;return E?{shouldRender:!0,serviceUrl:E,helpBase:x,assistantsEnabled:A,feedbackServiceUrl:N}:{shouldRender:!0,assistantsEnabled:!1,helpBase:x,feedbackServiceUrl:N}}var P=class extends I{constructor(){super(...arguments),this._codeEditorElt=C(),this._componentReadyDefer=Promise.withResolvers(),this._disposables=[],this._editorProfilePromise=Promise.resolve(void 0),this.messages=L(),this._modelId=y(),this._openArcadeHelp=()=>void window.open(T,"Arcade Help"),this._toggleSidePanel=e=>{if(!e.target)return;let t=e.target?.dataset.panelName??"none";this.openedSidePanel=t===this.openedSidePanel?"none":t,this.openedSidePanel==="none"&&this._codeEditorElt.value?.setFocus().catch(o(this))},this._consoleLogs=[],this._executingScript=!1,this._preparingArcade=!1,this._resultPanel="output",this._showExecutionPanel=!1,this._arcadeAssistantRemoteState={shouldRender:!1},this.hideDocumentationActions=!1,this.hideSideBar=!1,this.openedSidePanel="none",this.script="",this.sideActionBarExpanded=!1,this.arcgisDiagnosticsChange=b({bubbles:!1}),this.arcgisScriptChange=b({bubbles:!1})}static{this.properties={_apiLibrary:16,_consoleLogs:16,_editorProfile:16,_executingScript:16,_executionResult:16,_preparingArcade:16,_resultPanel:16,_showExecutionPanel:16,_arcadeAssistantRemoteState:16,editorInstance:32,editorOptions:0,hideDocumentationActions:5,hideSideBar:5,openedSidePanel:3,profile:0,script:1,sideActionBarExpanded:7,snippets:0,suggestions:0,testData:0,customPanels:0,arcadeAssistant:0}}static{this.styles=[z]}get editorInstance(){return this._codeEditorElt.value?.editorInstance}async getTestResult(){if(!this.testData)return{type:"error",value:"Missing test data",error:null};let e=await this._editorProfilePromise;if(!e)return{type:"error",value:"Missing editor profile",error:null};await this._componentReadyDefer.promise;let t=this._codeEditorElt.value?.value;return await S(e.definition,t,this.testData)}async setFocus(){await this._componentReadyDefer.promise,await this._codeEditorElt.value?.setFocus()}async load(){let e=k("./assets");U(e),await this._updateDataModelDeps(),await this._updateArcadeAssistantRemoteState()}willUpdate(e){(e.has("messages")||e.has("profile"))&&this.hasUpdated&&this._updateDataModelDeps(),e.has("testData")&&this._testDataChanged(),e.has("snippets")&&l.updateApiContextForModel(this._modelId,{snippets:this.snippets}),e.has("arcadeAssistant")&&this._updateArcadeAssistantRemoteState()}async loaded(){this._componentReadyDefer.resolve(),await this._updateApiLibrary();let e=await F();this._disposables.push(e.onDiagnosticsChange(t=>!this._preparingArcade&&this.arcgisDiagnosticsChange.emit(t.diagnostics))),this.testData&&this._addExecuteScriptAction()}disconnectedCallback(){for(super.disconnectedCallback();this._disposables.length;)this._disposables.pop()?.dispose()}async _updateDataModelDeps(){await this._updateEditorProfile(),await this._updateApiLibrary()}_testDataChanged(){!this.testData&&this._executeScriptAction&&(this._disposeSafely(this._executeScriptAction),this._executeScriptAction=void 0),this.testData&&!this._executeScriptAction&&this._addExecuteScriptAction(),this._showExecutionPanel&&this._executeScript().catch(o(this))}async _updateEditorProfile(){this._preparingArcade=!0;try{await l.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale,snippets:this.snippets}),this._editorProfile=l.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._editorProfilePromise=Promise.resolve(this._editorProfile),this._preparingArcade=!1}}async _updateApiLibrary(){this._apiLibrary=await l.getApiLibraryForModel(this._modelId)}async _executeScript(){let e=this.testData;if(!this._codeEditorElt.value||!e)return;let t=await this._editorProfilePromise;if(!t){this._executionResult={type:"error",value:"Missing editor profile",error:null};return}this._showExecutionPanel=!0,this._executingScript=!0,this._consoleLogs=[],setTimeout(()=>void(async()=>{let n=this._codeEditorElt.value?.value;this._executionResult=await S(t.definition,n,e,c=>setTimeout(()=>this._consoleLogs=[...this._consoleLogs,c],0)),this._executingScript=!1})(),0)}_toggleShowExecutionPanel(){this._showExecutionPanel=!this._showExecutionPanel}_toggleSideActionBarExpanded(){this.sideActionBarExpanded=!this.sideActionBarExpanded}_onCodeEditorValueChange(e){e.stopPropagation(),this.script=e.detail,this.arcgisScriptChange.emit(e.detail)}_insertAsSnippet(e){this._codeEditorElt.value?.insertSnippet(e.detail).catch(o(this))}_insertAsText(e){this._insertText(e.detail)}_insertText(e){this._codeEditorElt.value?.insertText(e).catch(o(this))}_onResultPanelChange(e){let t=e.currentTarget;this._resultPanel=t.openedResultPanel}_onExecutionPanelClose(){this._showExecutionPanel=!1}_addExecuteScriptAction(){let e=this.editorInstance?.addAction({id:"run-script",label:"Run Arcade Expression",keybindings:[M.F5],contextMenuGroupId:"code",contextMenuOrder:1,run:()=>{this.testData&&this._executeScript().catch(o(this))}});e&&(this._executeScriptAction=e,this._disposables.push(e))}_disposeSafely(e){let t=this._disposables.indexOf(e);t!==-1&&this._disposables.splice(t,1),e.dispose()}async _updateArcadeAssistantRemoteState(){this.arcadeAssistant&&(this._arcadeAssistantRemoteState=await Q({...this.arcadeAssistant,profile:this.profile}))}renderMainActionBar(){return this.testData?s`<calcite-action-bar class="main-action-bar" layout=horizontal scale=s expanded expand-disabled slot=top-action-bar><calcite-action-group scale=s><calcite-action .text=${this.messages.run??""} text-enabled icon=play scale=s .loading=${this._preparingArcade} @click=${()=>void this._executeScript().catch(o(this))}></calcite-action>${this._executionResult?s`<calcite-action .text=${this.messages.lastresults??""} .active=${this._showExecutionPanel} text-enabled icon=access-string-results icon-flip-rtl scale=s @click=${this._toggleShowExecutionPanel}></calcite-action>`:null}</calcite-action-group></calcite-action-bar>`:null}renderMainPanel(){return s`<arcgis-code-editor slot=editor .editorOptions=${this.editorOptions} .language=${l.languageId} .value=${this.script??""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${D(this._codeEditorElt)}></arcgis-code-editor>`}renderAction({id:e,label:t,icon:n,active:c,panelName:p,iconFlipRtl:u=!1,onClick:g=this._toggleSidePanel}){return s`<calcite-action id=${e??$} .text=${t} .textEnabled=${this.sideActionBarExpanded} .icon=${n} .active=${c} @click=${g} data-panel-name=${p??$} .iconFlipRtl=${u}></calcite-action>${!this.sideActionBarExpanded&&s`<calcite-tooltip .referenceElement=${e}><span>${t}</span></calcite-tooltip>`||""}`}renderSideActionBar(){return this.hideSideBar?null:s`<calcite-action-bar slot=side-action-bar class="side-action-bar" .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action-group>${this.renderAction({id:"profile-variables-action",label:this.messages.profilevariables??"",icon:"profile-variables",active:this.openedSidePanel==="variables",panelName:"variables"})}${this.renderAction({id:"function-action",label:this.messages.constantsandfunctions??"",icon:"function",active:this.openedSidePanel==="api",panelName:"api"})}${this.suggestions?.length?this.renderAction({id:"suggestions-action",label:this.messages.suggestions??"",icon:"lightbulb",active:this.openedSidePanel==="suggestions",panelName:"suggestions"}):null}${this._arcadeAssistantRemoteState.shouldRender&&this.renderAction({id:"arcade-assistant-action",label:this.messages.arcadeassistant??"Arcade assistant",icon:"effects",active:this.openedSidePanel==="arcade-assistant",panelName:"arcade-assistant"})||""}${this.customPanels?.map(e=>e.enabled===!1?null:this.renderAction({id:e.id,label:e.name,icon:e.icon,active:this.openedSidePanel===e.id,panelName:e.id}))}${this.hideDocumentationActions?null:this.renderAction({id:"developer-website-action",label:this.messages.help??"",icon:"question",active:!1,panelName:"none",iconFlipRtl:this.messages._lang==="ar",onClick:this._openArcadeHelp})}</calcite-action-group></calcite-action-bar>`}renderSidePanel(){if(this.hideSideBar)return null;let{openedSidePanel:e}=this;return s`<arcgis-language-api-panel slot=side-panel class=${r(e==="api"?"":"hidden")} .loading=${this._preparingArcade} .apiLibrary=${this._apiLibrary} .hideDocumentationActions=${this.hideDocumentationActions} @arcgisInternalItemSelected=${this._insertAsSnippet} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none .closed=${e!=="api"}></arcgis-language-api-panel><arcgis-editor-variables slot=side-panel class=${r(e==="variables"?"":"hidden")} .loading=${this._preparingArcade} .modelId=${this._modelId} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none .variable=${this._editorProfile} .closed=${e!=="variables"}></arcgis-editor-variables>${this.suggestions?.length&&s`<arcgis-arcade-suggestions slot=side-panel class=${r(e==="suggestions"?"":"hidden")} .closed=${e!=="suggestions"} .suggestions=${this.suggestions} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none></arcgis-arcade-suggestions>`||""}${this.arcadeAssistant&&this._arcadeAssistantRemoteState.shouldRender&&s`<arcgis-arcade-coding-assistant slot=side-panel class=${r(e==="arcade-assistant"?"":"hidden")} .closed=${e!=="arcade-assistant"} .insertText=${this._insertText.bind(this)} .closePanel=${this._toggleSidePanel} .portalUrl=${this.arcadeAssistant.portalUrl} .serviceUrl=${"serviceUrl"in this._arcadeAssistantRemoteState?this._arcadeAssistantRemoteState.serviceUrl:void 0} .helpBase=${this._arcadeAssistantRemoteState.helpBase} .assistantsEnabled=${this._arcadeAssistantRemoteState.assistantsEnabled} .feedbackServiceUrl=${this._arcadeAssistantRemoteState.feedbackServiceUrl} .editorRef=${this.el} .appVersion=${this.arcadeAssistant.appVersion} .disableQuestionAnswerLogging=${this.arcadeAssistant.disableQuestionAnswerLogging}></arcgis-arcade-coding-assistant>`||""}${this.customPanels?.map(t=>s`<calcite-flow slot=side-panel class=${r(e===t.id?"":"hidden")}>${t?.useFlows?t.renderer?.({closePanel:this._toggleSidePanel,insertText:this._insertText.bind(this),closed:e!==t.id,editorRef:this.el}):s`<calcite-flow-item .heading=${t.name} heading-level=2 closable .closed=${e!==t.id} @calciteFlowItemClose=${this._toggleSidePanel} .description=${t.description}>${t.renderer?.({closePanel:this._toggleSidePanel,insertText:this._insertText.bind(this),closed:e!==t.id,editorRef:this.el})}</calcite-flow-item>`}</calcite-flow>`)}`}renderResultsPanel(){return this._showExecutionPanel?s`<arcgis-arcade-results slot=results-panel .openedResultPanel=${this._resultPanel} .loading=${this._executingScript} .result=${this._executionResult} .consoleLogs=${this._consoleLogs} @arcgisInternalOpenedResultPanelChange=${this._onResultPanelChange} @arcgisInternalClosePanel=${this._onExecutionPanelClose}></arcgis-arcade-results>`:null}render(){return s`<arcgis-code-editor-shell>${this.renderMainActionBar()}${this.renderMainPanel()}${this.renderResultsPanel()}${this.renderSidePanel()}${this.renderSideActionBar()}</arcgis-code-editor-shell>`}};B("arcgis-arcade-editor",P);return P},"identity/IdentityManager",a,c,d,e)
@@ -17381,7 +17381,7 @@ $.add = (t, e, r, n) => {
17381
17381
  }), $.add("wasm-simd", () => {
17382
17382
  const t = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11];
17383
17383
  return WebAssembly.validate(new Uint8Array(t));
17384
- }), $.add("esri-atomics", "Atomics" in er), $.add("esri-workers", "Worker" in er), $.add("web-feat:cache", "caches" in er), $.add("esri-workers-arraybuffer-transfer", !$("safari") || Number($("safari")) >= 12), $.add("workers-pool-size", 8), $.add("featurelayer-simplify-thresholds", [0.5, 0.5, 0.5, 0.5]), $.add("featurelayer-simplify-payload-size-factors", [1, 1, 4]), $.add("featurelayer-animation-enabled", !0), $.add("featurelayer-snapshot-enabled", !0), $.add("featurelayer-snapshot-initial-tolerance", 0), $.add("featurelayer-snapshot-point-min-threshold", 8e4), $.add("featurelayer-snapshot-point-max-threshold", 4e5), $.add("featurelayer-snapshot-multipoint-min-threshold", 2e4), $.add("featurelayer-snapshot-multipoint-max-threshold", 1e5), $.add("featurelayer-snapshot-polygon-min-threshold", 2e3), $.add("featurelayer-snapshot-polygon-max-threshold", 2e3), $.add("featurelayer-snapshot-polyline-min-threshold", 2e3), $.add("featurelayer-snapshot-polyline-max-threshold", 2e3), $.add("featurelayer-snapshot-max-vertex-count", 25e4), $.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled", !0), $.add("featurelayer-snapshot-concurrency", 4), $.add("featurelayer-snapshot-allow-editable", !1), $.add("featurelayer-snapshot-coverage", 0.1), $.add("featurelayer-query-max-depth", 4), $.add("featurelayer-query-max-page-size", 8e3), $.add("featurelayer-query-pausing-enabled", !1), $.add("featurelayer-query-tile-concurrency", 4), $.add("featurelayer-query-tile-max-features", 6e5), $.add("featurelayer-advanced-symbols", !1), $.add("featurelayer-pbf", !0), $.add("featurelayer-pbf-statistics", !1), $.add("featurelayer-pbf-true-curves", !0), $.add("feature-layers-workers", !0), $.add("feature-polyline-generalization-factor", 1), $.add("featurelayer-relative-time-queries-enabled", !0), $.add("featurelayer-relative-time-queries-bin-window-public", 1), $.add("featurelayer-relative-time-queries-bin-window-private", 60), $.add("parquetlayer-full-query-feature-count", 2e4), $.add("parquetlayer-hittest-max-feature-count", 1), $.add("parquetlayer-persistence-enabled", !1), $.add("parquetlayer-cache-enabled", !0), $.add("mapview-transitions-duration", 200), $.add("mapview-essential-goto-duration", 200), $.add("mapview-srswitch-adjust-rotation-scale-threshold", 24e6), $.add("mapserver-pbf-version-support", 10.81), $.add("mapservice-popup-identify-max-tolerance", 20), $.add("request-queue-concurrency-global", 50), $.add("request-queue-concurrency-hosted", 16), $.add("request-queue-concurrency-non-hosted", 6), $.add("curve-densification-coarse-segments", 128), $.add("curve-densification-max-segments", 2e3), $.add("curve-densification-min-segments", 3), $.add("curve-densification-pixel-deviation", 0.5), $.add("view-readyState-waiting-delay", 1e3), $.add("gradient-depth-bias", 0.01), $.add("gradient-depth-epsilon", 1e-8), $.add("enable-feature:esri-compress-textures", !0), $.add("enable-feature:basemap-groundlayers", !0), $.add("enable-feature:oit-ground", !0), !$("host-webworker") && $("host-browser") && ($.add("esri-csp-restrictions", () => {
17384
+ }), $.add("esri-atomics", "Atomics" in er), $.add("esri-workers", "Worker" in er), $.add("web-feat:cache", "caches" in er), $.add("esri-workers-arraybuffer-transfer", !$("safari") || Number($("safari")) >= 12), $.add("workers-pool-size", 8), $.add("featurelayer-simplify-thresholds", [0.5, 0.5, 0.5, 0.5]), $.add("featurelayer-simplify-payload-size-factors", [1, 1, 4]), $.add("featurelayer-animation-enabled", !0), $.add("featurelayer-snapshot-enabled", !0), $.add("featurelayer-snapshot-initial-tolerance", 0), $.add("featurelayer-snapshot-point-min-threshold", 8e4), $.add("featurelayer-snapshot-point-max-threshold", 4e5), $.add("featurelayer-snapshot-multipoint-min-threshold", 2e4), $.add("featurelayer-snapshot-multipoint-max-threshold", 1e5), $.add("featurelayer-snapshot-polygon-min-threshold", 2e3), $.add("featurelayer-snapshot-polygon-max-threshold", 2e3), $.add("featurelayer-snapshot-polyline-min-threshold", 2e3), $.add("featurelayer-snapshot-polyline-max-threshold", 2e3), $.add("featurelayer-snapshot-max-vertex-count", 25e4), $.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled", !0), $.add("featurelayer-snapshot-concurrency", 4), $.add("featurelayer-snapshot-allow-editable", !1), $.add("featurelayer-snapshot-coverage", 0.1), $.add("featurelayer-query-max-depth", 4), $.add("featurelayer-query-max-page-size", 8e3), $.add("featurelayer-query-pausing-enabled", !1), $.add("featurelayer-query-tile-concurrency", 4), $.add("featurelayer-query-tile-max-features", 6e5), $.add("featurelayer-advanced-symbols", !1), $.add("featurelayer-pbf", !0), $.add("featurelayer-pbf-statistics", !1), $.add("featurelayer-pbf-true-curves", !0), $.add("feature-layers-workers", !0), $.add("feature-polyline-generalization-factor", 1), $.add("featurelayer-relative-time-queries-enabled", !0), $.add("featurelayer-relative-time-queries-bin-window-public", 1), $.add("featurelayer-relative-time-queries-bin-window-private", 60), $.add("parquetlayer-full-query-feature-count", 2e4), $.add("parquetlayer-hittest-max-feature-count", 1), $.add("parquetlayer-persistence-enabled", !1), $.add("parquetlayer-cache-enabled", !0), $.add("mapview-transitions-duration", 200), $.add("mapview-essential-goto-duration", 200), $.add("mapview-srswitch-adjust-rotation-scale-threshold", 24e6), $.add("mapserver-pbf-version-support", 10.81), $.add("mapservice-popup-identify-max-tolerance", 20), $.add("request-queue-concurrency-global", 50), $.add("request-queue-concurrency-hosted", 16), $.add("request-queue-concurrency-non-hosted", 6), $.add("curve-densification-coarse-segments", 128), $.add("curve-densification-max-segments", 2e3), $.add("curve-densification-min-segments", 3), $.add("curve-densification-pixel-deviation", 0.5), $.add("view-readyState-waiting-delay", 1e3), $.add("gradient-depth-bias", 0.01), $.add("gradient-depth-epsilon", 1e-8), $.add("enable-feature:esri-compress-textures", !0), $.add("enable-feature:basemap-groundlayers", !0), $.add("enable-feature:oit-ground", !0), $.add("enable-feature:im-shading", !0), !$("host-webworker") && $("host-browser") && ($.add("esri-csp-restrictions", () => {
17385
17385
  try {
17386
17386
  new Function();
17387
17387
  } catch {
@@ -18245,8 +18245,8 @@ function se(t, e, r, n) {
18245
18245
  const cr = { apiKey: void 0, apiKeys: { scopes: [] }, applicationName: "", applicationUrl: globalThis.location?.href, assetsPath: "", fontsUrl: "https://static.arcgis.com/fonts", geometryServiceUrl: "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer", geoRSSServiceUrl: "https://utility.arcgis.com/sharing/rss", kmlServiceUrl: "https://utility.arcgis.com/sharing/kml", userPrivilegesApplied: !0, portalUrl: "https://www.arcgis.com", respectPrefersReducedMotion: !0, routeServiceUrl: "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World", workers: { loaderConfig: { has: {}, paths: {}, map: {}, packages: [] } }, request: { crossOriginNoCorsDomains: null, httpsDomains: ["arcgis.com", "arcgisonline.com", "esrikr.com", "premiumservices.blackbridge.com", "esripremium.accuweather.com", "gbm.digitalglobe.com", "firstlook.digitalglobe.com", "msi.digitalglobe.com"], interceptors: [], internalInterceptors: [], maxUrlLength: 2e3, priority: "high", proxyRules: [], proxyUrl: null, timeout: 62e3, trustedServers: [], useIdentity: !0 }, log: { interceptors: [], level: null } };
18246
18246
  if (globalThis.esriConfig && (Y4(cr, globalThis.esriConfig, !0), delete cr.has), !cr.assetsPath) {
18247
18247
  {
18248
- const t = "5.0.0";
18249
- cr.assetsPath = `https://js.arcgis.com/${t}/@arcgis/core/assets`;
18248
+ const t = "5.1.0-next.26";
18249
+ cr.assetsPath = `https://cdn.jsdelivr.net/npm/@arcgis/core@${t}/assets`;
18250
18250
  }
18251
18251
  cr.defaultAssetsPath = cr.assetsPath;
18252
18252
  }
package/dist/cdn/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{I as s,u as e}from"./Q5SGN46H.js";import"./BCUUVBXH.js";import"./3TTFCHAA.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./XEBWC2DR.js"),"appVersion,assistantsEnabled,closed,closePanel:,disableQuestionAnswerLogging,editorRef:,feedbackServiceUrl,helpBase,insertText:,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./2WP2KBSF.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,messages:,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./5BUDRQLY.js"),"calciteModeDark,consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./NJDJZN7V.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./KNGPT3DH.js"),"editorInstance:,editorOptions:,language,modelId,value;insertSnippet,insertText,setFocus"],"arcgis-code-editor-shell":[()=>import("./YTU3NKUS.js")],"arcgis-code-viewer":[()=>import("./RA74M3HP.js"),"language,round"],"arcgis-editor-variables":[()=>import("./FVKV5BJ5.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./ORWRXBNO.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./POJ55WJR.js"),"hideSideBar,messages:,profile:,script;setFocus"]});i({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];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)
2
+ import{I as s,u as e}from"./Q5SGN46H.js";import"./BCUUVBXH.js";import"./3TTFCHAA.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./XEBWC2DR.js"),"appVersion,assistantsEnabled,closed,closePanel:,disableQuestionAnswerLogging,editorRef:,feedbackServiceUrl,helpBase,insertText:,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./C5GIDGJ5.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,messages:,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./5BUDRQLY.js"),"calciteModeDark,consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./NJDJZN7V.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./KNGPT3DH.js"),"editorInstance:,editorOptions:,language,modelId,value;insertSnippet,insertText,setFocus"],"arcgis-code-editor-shell":[()=>import("./YTU3NKUS.js")],"arcgis-code-viewer":[()=>import("./RA74M3HP.js"),"language,round"],"arcgis-editor-variables":[()=>import("./FVKV5BJ5.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./ORWRXBNO.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./POJ55WJR.js"),"hideSideBar,messages:,profile:,script;setFocus"]});i({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];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)
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { g as I, c as D } from "../../chunks/runtime.js";
3
- import { css as C, html as s, nothing as b } from "lit";
3
+ import { css as C, html as i, nothing as b } from "lit";
4
4
  import { KeyCode as B } from "monaco-editor";
5
5
  import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
6
6
  import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
@@ -18,38 +18,41 @@ import { u as F } from "../../chunks/useT9n.js";
18
18
  import { createRef as N, ref as H } from "lit/directives/ref.js";
19
19
  import R from "@arcgis/core/identity/IdentityManager.js";
20
20
  import { log as O, rethrowError as o } from "@arcgis/toolkit/log";
21
- const j = C`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}.main-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}`, E = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", a = (i, e) => O(i, "Arcade Assistant", e), z = (i) => {
22
- const { aiAssistantsEnabled: e } = i;
21
+ const j = C`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}.main-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}`, E = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", a = (s, e) => O(s, "Arcade Assistant", e), z = (s) => {
22
+ const { aiAssistantsEnabled: e } = s;
23
23
  return e === void 0 ? (a("warn", "`areAiAssistantsEnabled` is not defined in the organizations settings."), !1) : e;
24
- }, V = (i) => !(!i || !("id" in i)), G = async (i) => (await R.getCredential(i, { oAuthPopupConfirmation: !1 })).token, q = async (i) => {
24
+ }, V = (s) => !(!s || !("id" in s)), G = async (s) => (await R.getCredential(s, { oAuthPopupConfirmation: !1 })).token, q = async (s) => {
25
25
  try {
26
- return !!await R.checkSignInStatus(i);
26
+ return !!await R.checkSignInStatus(s);
27
27
  } catch {
28
28
  return a("warn", "User is not signed in."), !1;
29
29
  }
30
30
  };
31
31
  async function Q({
32
- portalUrl: i,
32
+ portalUrl: s,
33
33
  profile: e
34
34
  }) {
35
35
  if (!V(e))
36
36
  return a("warn", "Addon initialization failed. Reason: unsupported profile."), { shouldRender: !1 };
37
- const t = i.replace(/\/sharing\/rest(\/.*)?$/iu, "").replace(/\/$/u, "");
37
+ const t = s.replace(/\/sharing\/rest(\/.*)?$/iu, "").replace(/\/$/u, "");
38
38
  if (!await q(t))
39
39
  return { shouldRender: !1 };
40
- const n = await G(i), h = `${t}/sharing/rest/portals/self?f=json&token=${n}`, p = `${t}/sharing/rest/portals/self/settings?f=json&token=${n}`, u = `${t}/sharing/rest/portals/self/signinSettings?f=json&token=${n}`, w = await Promise.allSettled([
41
- fetch(h, { credentials: "include" }).then((r) => r.json()),
40
+ const n = await G(s), p = `${t}/sharing/rest/portals/self?f=json&token=${n}`, u = `${t}/sharing/rest/portals/self/settings?f=json&token=${n}`, g = `${t}/sharing/rest/portals/self/signinSettings?f=json&token=${n}`, w = await Promise.allSettled([
42
41
  fetch(p, { credentials: "include" }).then((r) => r.json()),
43
- fetch(u, { credentials: "include" }).then((r) => r.json())
44
- ]), [g, f, _] = w, m = g.status === "fulfilled" ? g.value : (a("warn", `Failed to fetch selfUrl. Reason: ${g.reason}.`), {}), S = f.status === "fulfilled" ? f.value : (a("warn", `Failed to fetch settingsUrl. Reason: ${f.reason}.`), {}), y = _.status === "fulfilled" ? _.value : (a("warn", `Failed to fetch signinSettingsUrl. Reason: ${_.reason}.`), {}), $ = m.helpBase || "";
42
+ fetch(u, { credentials: "include" }).then((r) => r.json()),
43
+ fetch(g, { credentials: "include" }).then((r) => r.json())
44
+ ]), [f, _, m] = w, h = f.status === "fulfilled" ? f.value : (a("warn", `Failed to fetch selfUrl. Reason: ${f.reason}.`), {}), S = _.status === "fulfilled" ? _.value : (a("warn", `Failed to fetch settingsUrl. Reason: ${_.reason}.`), {}), y = m.status === "fulfilled" ? m.value : (a("warn", `Failed to fetch signinSettingsUrl. Reason: ${m.reason}.`), {});
45
+ if (h.isPortal)
46
+ return { shouldRender: !1 };
47
+ const $ = h.helpBase || "";
45
48
  if (!S)
46
49
  return a("warn", "Settings response is not available."), { shouldRender: !1 };
47
50
  let A = z(S);
48
51
  y.blockBetaApps === !0 && (a(
49
52
  "warn",
50
53
  "Arcade Assistant is blocked by the organization settings. To enable it, do not block beta apps in the organization settings."
51
- ), A = !1), m?.user?.privileges?.includes("portal:user:useAIAssistants") || (a("warn", "User does not have the required privileges to use AI Assistants."), A = !1);
52
- const P = m?.helperServices?.aiAssistantServices?.url;
54
+ ), A = !1), h?.user?.privileges?.includes("portal:user:useAIAssistants") || (a("warn", "User does not have the required privileges to use AI Assistants."), A = !1);
55
+ const P = h?.helperServices?.aiAssistantServices?.url;
53
56
  return P ? {
54
57
  shouldRender: !0,
55
58
  serviceUrl: P,
@@ -198,16 +201,16 @@ class X extends k {
198
201
  }));
199
202
  }
200
203
  renderMainActionBar() {
201
- return this.testData ? s`<calcite-action-bar class="main-action-bar" layout=horizontal scale=s expanded expand-disabled slot=top-action-bar><calcite-action-group scale=s><calcite-action .text=${this.messages.run ?? ""} text-enabled icon=play scale=s .loading=${this._preparingArcade} @click=${() => void this._executeScript().catch(o(this))}></calcite-action>${this._executionResult ? s`<calcite-action .text=${this.messages.lastresults ?? ""} .active=${this._showExecutionPanel} text-enabled icon=access-string-results icon-flip-rtl scale=s @click=${this._toggleShowExecutionPanel}></calcite-action>` : null}</calcite-action-group></calcite-action-bar>` : null;
204
+ return this.testData ? i`<calcite-action-bar class="main-action-bar" layout=horizontal scale=s expanded expand-disabled slot=top-action-bar><calcite-action-group scale=s><calcite-action .text=${this.messages.run ?? ""} text-enabled icon=play scale=s .loading=${this._preparingArcade} @click=${() => void this._executeScript().catch(o(this))}></calcite-action>${this._executionResult ? i`<calcite-action .text=${this.messages.lastresults ?? ""} .active=${this._showExecutionPanel} text-enabled icon=access-string-results icon-flip-rtl scale=s @click=${this._toggleShowExecutionPanel}></calcite-action>` : null}</calcite-action-group></calcite-action-bar>` : null;
202
205
  }
203
206
  renderMainPanel() {
204
- return s`<arcgis-code-editor slot=editor .editorOptions=${this.editorOptions} .language=${c.languageId} .value=${this.script ?? ""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${H(this._codeEditorElt)}></arcgis-code-editor>`;
207
+ return i`<arcgis-code-editor slot=editor .editorOptions=${this.editorOptions} .language=${c.languageId} .value=${this.script ?? ""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${H(this._codeEditorElt)}></arcgis-code-editor>`;
205
208
  }
206
- renderAction({ id: e, label: t, icon: d, active: n, panelName: h, iconFlipRtl: p = !1, onClick: u = this._toggleSidePanel }) {
207
- return s`<calcite-action id=${e ?? b} .text=${t} .textEnabled=${this.sideActionBarExpanded} .icon=${d} .active=${n} @click=${u} data-panel-name=${h ?? b} .iconFlipRtl=${p}></calcite-action>${!this.sideActionBarExpanded && s`<calcite-tooltip .referenceElement=${e}><span>${t}</span></calcite-tooltip>` || ""}`;
209
+ renderAction({ id: e, label: t, icon: d, active: n, panelName: p, iconFlipRtl: u = !1, onClick: g = this._toggleSidePanel }) {
210
+ return i`<calcite-action id=${e ?? b} .text=${t} .textEnabled=${this.sideActionBarExpanded} .icon=${d} .active=${n} @click=${g} data-panel-name=${p ?? b} .iconFlipRtl=${u}></calcite-action>${!this.sideActionBarExpanded && i`<calcite-tooltip .referenceElement=${e}><span>${t}</span></calcite-tooltip>` || ""}`;
208
211
  }
209
212
  renderSideActionBar() {
210
- return this.hideSideBar ? null : s`<calcite-action-bar slot=side-action-bar class="side-action-bar" .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action-group>${this.renderAction({
213
+ return this.hideSideBar ? null : i`<calcite-action-bar slot=side-action-bar class="side-action-bar" .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action-group>${this.renderAction({
211
214
  id: "profile-variables-action",
212
215
  label: this.messages.profilevariables ?? "",
213
216
  icon: "profile-variables",
@@ -251,13 +254,13 @@ class X extends k {
251
254
  if (this.hideSideBar)
252
255
  return null;
253
256
  const { openedSidePanel: e } = this;
254
- return s`<arcgis-language-api-panel slot=side-panel class=${l(e === "api" ? "" : "hidden")} .loading=${this._preparingArcade} .apiLibrary=${this._apiLibrary} .hideDocumentationActions=${this.hideDocumentationActions} @arcgisInternalItemSelected=${this._insertAsSnippet} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none .closed=${e !== "api"}></arcgis-language-api-panel><arcgis-editor-variables slot=side-panel class=${l(e === "variables" ? "" : "hidden")} .loading=${this._preparingArcade} .modelId=${this._modelId} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none .variable=${this._editorProfile} .closed=${e !== "variables"}></arcgis-editor-variables>${this.suggestions?.length && s`<arcgis-arcade-suggestions slot=side-panel class=${l(e === "suggestions" ? "" : "hidden")} .closed=${e !== "suggestions"} .suggestions=${this.suggestions} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none></arcgis-arcade-suggestions>` || ""}${this.arcadeAssistant && this._arcadeAssistantRemoteState.shouldRender && s`<arcgis-arcade-coding-assistant slot=side-panel class=${l(e === "arcade-assistant" ? "" : "hidden")} .closed=${e !== "arcade-assistant"} .insertText=${this._insertText.bind(this)} .closePanel=${this._toggleSidePanel} .portalUrl=${this.arcadeAssistant.portalUrl} .serviceUrl=${"serviceUrl" in this._arcadeAssistantRemoteState ? this._arcadeAssistantRemoteState.serviceUrl : void 0} .helpBase=${this._arcadeAssistantRemoteState.helpBase} .assistantsEnabled=${this._arcadeAssistantRemoteState.assistantsEnabled} .feedbackServiceUrl=${this._arcadeAssistantRemoteState.feedbackServiceUrl} .editorRef=${this.el} .appVersion=${this.arcadeAssistant.appVersion} .disableQuestionAnswerLogging=${this.arcadeAssistant.disableQuestionAnswerLogging}></arcgis-arcade-coding-assistant>` || ""}${this.customPanels?.map((t) => s`<calcite-flow slot=side-panel class=${l(e === t.id ? "" : "hidden")}>${t?.useFlows ? t.renderer?.({
257
+ return i`<arcgis-language-api-panel slot=side-panel class=${l(e === "api" ? "" : "hidden")} .loading=${this._preparingArcade} .apiLibrary=${this._apiLibrary} .hideDocumentationActions=${this.hideDocumentationActions} @arcgisInternalItemSelected=${this._insertAsSnippet} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none .closed=${e !== "api"}></arcgis-language-api-panel><arcgis-editor-variables slot=side-panel class=${l(e === "variables" ? "" : "hidden")} .loading=${this._preparingArcade} .modelId=${this._modelId} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none .variable=${this._editorProfile} .closed=${e !== "variables"}></arcgis-editor-variables>${this.suggestions?.length && i`<arcgis-arcade-suggestions slot=side-panel class=${l(e === "suggestions" ? "" : "hidden")} .closed=${e !== "suggestions"} .suggestions=${this.suggestions} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none></arcgis-arcade-suggestions>` || ""}${this.arcadeAssistant && this._arcadeAssistantRemoteState.shouldRender && i`<arcgis-arcade-coding-assistant slot=side-panel class=${l(e === "arcade-assistant" ? "" : "hidden")} .closed=${e !== "arcade-assistant"} .insertText=${this._insertText.bind(this)} .closePanel=${this._toggleSidePanel} .portalUrl=${this.arcadeAssistant.portalUrl} .serviceUrl=${"serviceUrl" in this._arcadeAssistantRemoteState ? this._arcadeAssistantRemoteState.serviceUrl : void 0} .helpBase=${this._arcadeAssistantRemoteState.helpBase} .assistantsEnabled=${this._arcadeAssistantRemoteState.assistantsEnabled} .feedbackServiceUrl=${this._arcadeAssistantRemoteState.feedbackServiceUrl} .editorRef=${this.el} .appVersion=${this.arcadeAssistant.appVersion} .disableQuestionAnswerLogging=${this.arcadeAssistant.disableQuestionAnswerLogging}></arcgis-arcade-coding-assistant>` || ""}${this.customPanels?.map((t) => i`<calcite-flow slot=side-panel class=${l(e === t.id ? "" : "hidden")}>${t?.useFlows ? t.renderer?.({
255
258
  closePanel: this._toggleSidePanel,
256
259
  insertText: this._insertText.bind(this),
257
260
  closed: e !== t.id,
258
261
  /** pass this.el instead of "this" as it is what actually gets attached to the dom */
259
262
  editorRef: this.el
260
- }) : s`<calcite-flow-item .heading=${t.name} heading-level=2 closable .closed=${e !== t.id} @calciteFlowItemClose=${this._toggleSidePanel} .description=${t.description}>${t.renderer?.({
263
+ }) : i`<calcite-flow-item .heading=${t.name} heading-level=2 closable .closed=${e !== t.id} @calciteFlowItemClose=${this._toggleSidePanel} .description=${t.description}>${t.renderer?.({
261
264
  closePanel: this._toggleSidePanel,
262
265
  insertText: this._insertText.bind(this),
263
266
  closed: e !== t.id,
@@ -266,10 +269,10 @@ class X extends k {
266
269
  })}</calcite-flow-item>`}</calcite-flow>`)}`;
267
270
  }
268
271
  renderResultsPanel() {
269
- return this._showExecutionPanel ? s`<arcgis-arcade-results slot=results-panel .openedResultPanel=${this._resultPanel} .loading=${this._executingScript} .result=${this._executionResult} .consoleLogs=${this._consoleLogs} @arcgisInternalOpenedResultPanelChange=${this._onResultPanelChange} @arcgisInternalClosePanel=${this._onExecutionPanelClose}></arcgis-arcade-results>` : null;
272
+ return this._showExecutionPanel ? i`<arcgis-arcade-results slot=results-panel .openedResultPanel=${this._resultPanel} .loading=${this._executingScript} .result=${this._executionResult} .consoleLogs=${this._consoleLogs} @arcgisInternalOpenedResultPanelChange=${this._onResultPanelChange} @arcgisInternalClosePanel=${this._onExecutionPanelClose}></arcgis-arcade-results>` : null;
270
273
  }
271
274
  render() {
272
- return s`<arcgis-code-editor-shell>${this.renderMainActionBar()}${this.renderMainPanel()}${this.renderResultsPanel()}${this.renderSidePanel()}${this.renderSideActionBar()}</arcgis-code-editor-shell>`;
275
+ return i`<arcgis-code-editor-shell>${this.renderMainActionBar()}${this.renderMainPanel()}${this.renderResultsPanel()}${this.renderSidePanel()}${this.renderSideActionBar()}</arcgis-code-editor-shell>`;
273
276
  }
274
277
  }
275
278
  D("arcgis-arcade-editor", X);