@arcgis/portal-components 5.2.0-next.3 → 5.2.0-next.31

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.
Files changed (195) hide show
  1. package/dist/cdn/25UUUQAQ.js +71 -0
  2. package/dist/cdn/2MV6L7TF.js +2 -0
  3. package/dist/cdn/2XILGLOG.js +2 -0
  4. package/dist/cdn/{AQWTJKUH.js → 3MQIRMUM.js} +9 -7
  5. package/dist/cdn/3XVBYE54.js +2 -0
  6. package/dist/cdn/3ZYTCYNE.js +2 -0
  7. package/dist/cdn/{LAFNDBTQ.js → 43IIAMZ3.js} +1 -1
  8. package/dist/cdn/{QNUYUNEY.js → 4YGBHWHG.js} +1 -1
  9. package/dist/cdn/5H4VCRNA.js +2 -0
  10. package/dist/cdn/6AGZRMJC.js +2 -0
  11. package/dist/cdn/6KRP5D52.js +2 -0
  12. package/dist/cdn/6W2IHKCA.js +2 -0
  13. package/dist/cdn/{LQ3DMZ3K.js → 6XWNBD36.js} +1 -1
  14. package/dist/cdn/7355NM43.js +2 -0
  15. package/dist/cdn/7LC4ZEXB.js +2 -0
  16. package/dist/cdn/ADC752YM.js +2 -0
  17. package/dist/cdn/AX5KYSWU.js +2 -0
  18. package/dist/cdn/BTYTNPSM.js +2 -0
  19. package/dist/cdn/BUPFZ5MT.js +2 -0
  20. package/dist/cdn/DFTUMKSN.js +3 -0
  21. package/dist/cdn/DWPIXEWQ.js +2 -0
  22. package/dist/cdn/E67OMPRM.js +2 -0
  23. package/dist/cdn/ECNI2A4K.js +2 -0
  24. package/dist/cdn/EIOSA4DR.js +2 -0
  25. package/dist/cdn/EZ3BR2FP.js +134 -0
  26. package/dist/cdn/G2YAOSMT.js +2 -0
  27. package/dist/cdn/G6YH7AFY.js +2 -0
  28. package/dist/cdn/GNBMYDRC.js +2 -0
  29. package/dist/cdn/H6QISDOR.js +2 -0
  30. package/dist/cdn/HA2J6NDT.js +2 -0
  31. package/dist/cdn/HMBSJR37.js +2 -0
  32. package/dist/cdn/HVF4Z3VA.js +2 -0
  33. package/dist/cdn/{V2EOXGK2.js → I234NUZ5.js} +1 -1
  34. package/dist/cdn/IILAKXVC.js +65 -0
  35. package/dist/cdn/J2KLHUBJ.js +2 -0
  36. package/dist/cdn/JEXN44WM.js +2 -0
  37. package/dist/cdn/KDDYAFAF.js +637 -0
  38. package/dist/cdn/{ZTHTFEYA.js → KPEWVVE5.js} +1 -1
  39. package/dist/cdn/MM6SCKYE.js +2 -0
  40. package/dist/cdn/NWIIOJEG.js +2 -0
  41. package/dist/cdn/NZVLEDFZ.js +2 -0
  42. package/dist/cdn/OU2AR22N.js +3 -0
  43. package/dist/cdn/Q22FWLJZ.js +2 -0
  44. package/dist/cdn/QUEBM77K.js +2 -0
  45. package/dist/cdn/QUMJ5FTJ.js +2 -0
  46. package/dist/cdn/S5XNEB7F.js +99 -0
  47. package/dist/cdn/S745KWLM.js +34 -0
  48. package/dist/cdn/{GT26WGJS.js → SXZRHHXC.js} +1 -1
  49. package/dist/cdn/T6JAFB2A.js +2 -0
  50. package/dist/cdn/{72N3KAXN.js → TW4LFQA5.js} +1 -1
  51. package/dist/cdn/U3FVMN32.js +2 -0
  52. package/dist/cdn/ULD747OT.js +22 -0
  53. package/dist/cdn/{7WZHZP6U.js → UR7W4CEV.js} +8 -2
  54. package/dist/cdn/V7LZAIB6.js +2 -0
  55. package/dist/cdn/{W6PSG4GX.js → VRXKORTR.js} +9 -4
  56. package/dist/cdn/VSAH76S7.js +2 -0
  57. package/dist/cdn/{2UUZHENH.js → WSNLUGEP.js} +1 -1
  58. package/dist/cdn/{53MSUMA3.js → XCZSPNKS.js} +16 -0
  59. package/dist/cdn/{WOZDQW3S.js → XHM6I6YG.js} +1 -1
  60. package/dist/cdn/XNZQ5PXA.js +2 -0
  61. package/dist/cdn/YCAVVVZV.js +2 -0
  62. package/dist/cdn/YHXXIHQA.js +2 -0
  63. package/dist/cdn/Z2ZUXONU.js +2 -0
  64. package/dist/cdn/{DHHSKOUY.js → ZZ4DR3HN.js} +1 -1
  65. package/dist/cdn/assets/portal-browser/t9n/messages.en.json +1 -0
  66. package/dist/cdn/assets/portal-group-badges/t9n/messages.en.json +1 -0
  67. package/dist/cdn/assets/portal-group-card/t9n/messages.en.json +1 -0
  68. package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer16.svg +1 -0
  69. package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer32.svg +1 -0
  70. package/dist/cdn/assets/portal-item-type/icons/storymapframe16.svg +1 -0
  71. package/dist/cdn/assets/portal-item-type/icons/storymapframe32.svg +1 -0
  72. package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
  73. package/dist/cdn/assets/portal-user-popup/t9n/messages.en.json +1 -0
  74. package/dist/cdn/index.js +1 -1
  75. package/dist/cdn/main.css +1 -1
  76. package/dist/chunks/dom.js +36 -0
  77. package/dist/chunks/functionalities.js +5 -4
  78. package/dist/chunks/groups.js +7 -83
  79. package/dist/chunks/item2.js +86 -0
  80. package/dist/chunks/portal.js +48 -8
  81. package/dist/chunks/store.js +18 -0
  82. package/dist/chunks/ui.js +10 -0
  83. package/dist/chunks/user2.js +26 -25
  84. package/dist/components/arcgis-portal-ai-assistant/agents/types.d.ts +11 -2
  85. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +4 -2
  86. package/dist/components/arcgis-portal-ai-assistant/customElement.js +797 -488
  87. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +10 -10
  88. package/dist/components/arcgis-portal-browser/customElement.d.ts +235 -0
  89. package/dist/components/arcgis-portal-browser/customElement.js +201 -0
  90. package/dist/components/arcgis-portal-browser/index.d.ts +1 -0
  91. package/dist/components/arcgis-portal-browser/index.js +6 -0
  92. package/dist/components/arcgis-portal-browser/utils/store.d.ts +31 -0
  93. package/dist/components/arcgis-portal-browser/utils/types.d.ts +18 -0
  94. package/dist/components/arcgis-portal-browser-actions/customElement.d.ts +187 -0
  95. package/dist/components/arcgis-portal-browser-actions/customElement.js +70 -0
  96. package/dist/components/arcgis-portal-browser-actions/index.d.ts +1 -0
  97. package/dist/components/arcgis-portal-browser-actions/index.js +6 -0
  98. package/dist/components/arcgis-portal-browser-actions/types.d.ts +9 -0
  99. package/dist/components/arcgis-portal-browser-filter/customElement.d.ts +226 -0
  100. package/dist/components/arcgis-portal-browser-filter/customElement.js +32 -0
  101. package/dist/components/arcgis-portal-browser-filter/index.d.ts +1 -0
  102. package/dist/components/arcgis-portal-browser-filter/index.js +4 -0
  103. package/dist/components/arcgis-portal-browser-filter-date/customElement.d.ts +233 -0
  104. package/dist/components/arcgis-portal-browser-filter-date/customElement.js +117 -0
  105. package/dist/components/arcgis-portal-browser-filter-date/index.d.ts +1 -0
  106. package/dist/components/arcgis-portal-browser-filter-date/index.js +5 -0
  107. package/dist/components/arcgis-portal-browser-filter-status/customElement.d.ts +193 -0
  108. package/dist/components/arcgis-portal-browser-filter-status/customElement.js +56 -0
  109. package/dist/components/arcgis-portal-browser-filter-status/index.d.ts +1 -0
  110. package/dist/components/arcgis-portal-browser-filter-status/index.js +5 -0
  111. package/dist/components/arcgis-portal-browser-filters/customElement.d.ts +7 -0
  112. package/dist/components/arcgis-portal-browser-filters/customElement.js +29 -0
  113. package/dist/components/arcgis-portal-browser-filters/index.d.ts +1 -0
  114. package/dist/components/arcgis-portal-browser-filters/index.js +2 -0
  115. package/dist/components/arcgis-portal-browser-pagination/customElement.d.ts +194 -0
  116. package/dist/components/arcgis-portal-browser-pagination/customElement.js +51 -0
  117. package/dist/components/arcgis-portal-browser-pagination/index.d.ts +1 -0
  118. package/dist/components/arcgis-portal-browser-pagination/index.js +2 -0
  119. package/dist/components/arcgis-portal-browser-search/customElement.d.ts +195 -0
  120. package/dist/components/arcgis-portal-browser-search/customElement.js +65 -0
  121. package/dist/components/arcgis-portal-browser-search/index.d.ts +1 -0
  122. package/dist/components/arcgis-portal-browser-search/index.js +3 -0
  123. package/dist/components/arcgis-portal-browser-sort/customElement.d.ts +196 -0
  124. package/dist/components/arcgis-portal-browser-sort/customElement.js +93 -0
  125. package/dist/components/arcgis-portal-browser-sort/index.d.ts +1 -0
  126. package/dist/components/arcgis-portal-browser-sort/index.js +9 -0
  127. package/dist/components/arcgis-portal-browser-sort/utils.d.ts +3 -0
  128. package/dist/components/arcgis-portal-browser-top-bar/customElement.d.ts +184 -0
  129. package/dist/components/arcgis-portal-browser-top-bar/customElement.js +51 -0
  130. package/dist/components/arcgis-portal-browser-top-bar/index.d.ts +1 -0
  131. package/dist/components/arcgis-portal-browser-top-bar/index.js +3 -0
  132. package/dist/components/arcgis-portal-browser-view/customElement.d.ts +21 -0
  133. package/dist/components/arcgis-portal-browser-view/customElement.js +30 -0
  134. package/dist/components/arcgis-portal-browser-view/index.d.ts +1 -0
  135. package/dist/components/arcgis-portal-browser-view/index.js +5 -0
  136. package/dist/components/arcgis-portal-group-badges/customElement.d.ts +102 -0
  137. package/dist/components/arcgis-portal-group-badges/customElement.js +50 -0
  138. package/dist/components/arcgis-portal-group-badges/index.d.ts +1 -0
  139. package/dist/components/arcgis-portal-group-badges/index.js +3 -0
  140. package/dist/components/arcgis-portal-group-badges/types.d.ts +3 -0
  141. package/dist/components/arcgis-portal-group-card/customElement.d.ts +167 -0
  142. package/dist/components/arcgis-portal-group-card/customElement.js +183 -0
  143. package/dist/components/arcgis-portal-group-card/index.d.ts +1 -0
  144. package/dist/components/arcgis-portal-group-card/index.js +8 -0
  145. package/dist/components/arcgis-portal-group-thumbnail/customElement.d.ts +32 -0
  146. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +153 -0
  147. package/dist/components/arcgis-portal-group-thumbnail/index.d.ts +1 -0
  148. package/dist/components/arcgis-portal-group-thumbnail/index.js +3 -0
  149. package/dist/components/arcgis-portal-item-type/customElement.d.ts +2 -0
  150. package/dist/components/arcgis-portal-item-type/customElement.js +45 -37
  151. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +1 -1
  152. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +53 -42
  153. package/dist/components/arcgis-portal-user-popup/customElement.d.ts +111 -0
  154. package/dist/components/arcgis-portal-user-popup/customElement.js +224 -0
  155. package/dist/components/arcgis-portal-user-popup/index.d.ts +1 -0
  156. package/dist/components/arcgis-portal-user-popup/index.js +5 -0
  157. package/dist/components/arcgis-portal-voice-input/customElement.d.ts +1 -1
  158. package/dist/docs/api.json +1 -1
  159. package/dist/docs/docs.json +1 -1
  160. package/dist/docs/vscode.html-custom-data.json +1 -1
  161. package/dist/docs/web-types.json +1 -1
  162. package/dist/index.d.ts +122 -2
  163. package/dist/loader.js +19 -4
  164. package/dist/types/group.d.ts +13 -13
  165. package/dist/types/item.d.ts +77 -2
  166. package/dist/types/lumina.d.ts +93 -1
  167. package/dist/types/preact.d.ts +108 -1
  168. package/dist/types/react.d.ts +123 -1
  169. package/dist/types/search.d.ts +27 -0
  170. package/dist/types/stencil.d.ts +93 -1
  171. package/dist/types/tracking.d.ts +10 -0
  172. package/dist/types/user.d.ts +2 -2
  173. package/package.json +7 -7
  174. package/dist/cdn/5DPWJ7DI.js +0 -2
  175. package/dist/cdn/5VSDGPHH.js +0 -2
  176. package/dist/cdn/ANPXRYLV.js +0 -5
  177. package/dist/cdn/BEHLBKKM.js +0 -2
  178. package/dist/cdn/CI5ENGVT.js +0 -2
  179. package/dist/cdn/EVDOPN3G.js +0 -54
  180. package/dist/cdn/G47ZZQYL.js +0 -2
  181. package/dist/cdn/GAHILDQF.js +0 -45
  182. package/dist/cdn/GHQ3ZW4U.js +0 -2
  183. package/dist/cdn/GNOZCQ34.js +0 -2
  184. package/dist/cdn/JNRN6DTV.js +0 -2
  185. package/dist/cdn/K3HS2LQ7.js +0 -2
  186. package/dist/cdn/KEKBRUUC.js +0 -2
  187. package/dist/cdn/N6G6Z7BF.js +0 -516
  188. package/dist/cdn/OQDPULPD.js +0 -2
  189. package/dist/cdn/RNLVNDGG.js +0 -2
  190. package/dist/cdn/SM4GWLRA.js +0 -66
  191. package/dist/cdn/TMYTUOSS.js +0 -2
  192. package/dist/cdn/YG5YYL6X.js +0 -2
  193. package/dist/cdn/YL7PGYWC.js +0 -5
  194. package/dist/cdn/YMPTDKT6.js +0 -2
  195. /package/dist/cdn/{B7633S2A.js → 5NIJVBS7.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{J as l,P as h,j as u,v as e}from"./DHHSKOUY.js";import"./YIMNOUTF.js";var o=class extends l{constructor(){super(...arguments),this.recognition=null,this.isListening=!1,this.status="idle",this.isSupported=!1,this.arcgisVoiceInputError=e(),this.arcgisVoiceInputInterimTranscription=e(),this.arcgisVoiceInputStart=e(),this.arcgisVoiceInputStop=e(),this.arcgisVoiceInputTranscription=e()}static{this.properties={isListening:16,status:16,isSupported:16,language:1}}async clearText(){this.status="idle"}async startListening(){if(!this.isSupported)return"not-supported";if(this.isListening)return"already-listening";if(!this.recognition)return"uninitialized";try{return this.recognition.start(),null}catch(n){return console.error("Failed to start listening",n),"unhandled"}}async stopListening(){this.isListening&&this.recognition?.stop()}connectedCallback(){super.connectedCallback(),this.initializeSpeechRecognition()}disconnectedCallback(){super.disconnectedCallback(),this.recognition&&this.recognition.stop()}initializeSpeechRecognition(){if(typeof window>"u")return;let n=window.SpeechRecognition??window.webkitSpeechRecognition;if(!n){this.isSupported=!1,this.arcgisVoiceInputError.emit({errorCode:"not-supported"});return}this.isSupported=!0;let t=new n;this.recognition=t,t.continuous=!0,t.interimResults=!0,this.language&&(t.lang=this.language),t.onstart=()=>{this.isListening=!0,this.status="listening",this.arcgisVoiceInputStart.emit()},t.onresult=s=>{let{finalTranscript:i,interimTranscript:a}=Array.from(s.results).slice(s.resultIndex).reduce((r,c)=>{let p=c[0].transcript;return c.isFinal?r.finalTranscript+=p:r.interimTranscript+=p,r},{finalTranscript:"",interimTranscript:""});i?this.arcgisVoiceInputTranscription.emit({text:i}):a&&this.arcgisVoiceInputInterimTranscription.emit({text:a})},t.onerror=s=>{this.isListening=!1,this.status="error";let i="unhandled";switch(s.error){case"no-speech":i="no-speech";break;case"service-not-allowed":case"not-allowed":i="not-allowed";break;default:i="unhandled";break}this.arcgisVoiceInputError.emit({errorCode:i})},t.onend=()=>{this.isListening=!1,this.status="idle",this.arcgisVoiceInputStop.emit()}}render(){return u`<slot></slot>`}};h("arcgis-portal-voice-input",o);export{o as ArcgisPortalVoiceInput};
2
+ import{L as l,R as h,j as u,v as e}from"./ZZ4DR3HN.js";import"./YIMNOUTF.js";var o=class extends l{constructor(){super(...arguments),this.recognition=null,this.isListening=!1,this.status="idle",this.isSupported=!1,this.arcgisVoiceInputError=e(),this.arcgisVoiceInputInterimTranscription=e(),this.arcgisVoiceInputStart=e(),this.arcgisVoiceInputStop=e(),this.arcgisVoiceInputTranscription=e()}static{this.properties={isListening:16,status:16,isSupported:16,language:1}}async clearText(){this.status="idle"}async startListening(){if(!this.isSupported)return"not-supported";if(this.isListening)return"already-listening";if(!this.recognition)return"uninitialized";try{return this.recognition.start(),null}catch(n){return console.error("Failed to start listening",n),"unhandled"}}async stopListening(){this.isListening&&this.recognition?.stop()}connectedCallback(){super.connectedCallback(),this.initializeSpeechRecognition()}disconnectedCallback(){super.disconnectedCallback(),this.recognition&&this.recognition.stop()}initializeSpeechRecognition(){if(typeof window>"u")return;let n=window.SpeechRecognition??window.webkitSpeechRecognition;if(!n){this.isSupported=!1,this.arcgisVoiceInputError.emit({errorCode:"not-supported"});return}this.isSupported=!0;let t=new n;this.recognition=t,t.continuous=!0,t.interimResults=!0,this.language&&(t.lang=this.language),t.onstart=()=>{this.isListening=!0,this.status="listening",this.arcgisVoiceInputStart.emit()},t.onresult=s=>{let{finalTranscript:i,interimTranscript:a}=Array.from(s.results).slice(s.resultIndex).reduce((r,c)=>{let p=c[0].transcript;return c.isFinal?r.finalTranscript+=p:r.interimTranscript+=p,r},{finalTranscript:"",interimTranscript:""});i?this.arcgisVoiceInputTranscription.emit({text:i}):a&&this.arcgisVoiceInputInterimTranscription.emit({text:a})},t.onerror=s=>{this.isListening=!1,this.status="error";let i="unhandled";switch(s.error){case"no-speech":i="no-speech";break;case"service-not-allowed":case"not-allowed":i="not-allowed";break;default:i="unhandled";break}this.arcgisVoiceInputError.emit({errorCode:i})},t.onend=()=>{this.isListening=!1,this.status="idle",this.arcgisVoiceInputStop.emit()}}render(){return u`<slot></slot>`}};h("arcgis-portal-voice-input",o);export{o as ArcgisPortalVoiceInput};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as $}from"./35SKVD6F.js";import c from"./WSNLUGEP.js";import a from"./SXZRHHXC.js";import{a as w,d as R}from"./6W2IHKCA.js";import{a as k}from"./XHM6I6YG.js";import{a as I}from"./6XWNBD36.js";import"./G2YAOSMT.js";import"./QUEBM77K.js";import{J as h,K as f,L as g,O as v,R as b,S as y,h as u,j as l,v as d}from"./ZZ4DR3HN.js";import"./YIMNOUTF.js";export default $arcgis.t(([C,j,{p:S},{c:M}])=>{var x=u`.thumbnail{object-fit:cover;max-height:8rem}.replacement-container{margin:.5rem}.replacement-message{margin-bottom:.5rem}.replacement-card__title{margin-bottom:.25rem}`,D=["360 VR Experience","Big Data Analytic","Dashboard","Data Pipeline","Deep Learning Studio Project","Discussion","Document Link","Excalibur Imagery Project","Feature Collection","Feature Service","Feed","Form","GeoBIM Application","GeoBIM Project","Hub Event","Hub Initiative","Hub Initiative Template","Hub Page","Hub Project","Image Service","Knowledge Graph","Knowledge Studio Project","Map Service","Map Showcase","Mission Report","Mission Template","Notebook","OGCFeatureServer","Ortho Mapping Project","Parquet Feature Layer","Real Time Analytic","Route Layer","Scene Service","Solution","StoryMap","StoryMap Theme","Tile Layer","Urban Model","Urban Project","Vector Tile Service","Video Service","Web Experience","Web Experience Template","Web Map","Web Mapping Application","Web Scene","WFS","Workflow"],L=["3DInsetMap","3DScene","3DViz","AttachmentViewer","CapacityAnalysis","Cascade","Compare","Compare/Configure","Compare/Multiviewer","Compare/Search","Compare/SideBySideViewer_Configure","Compare/storytelling_compare","Compare/storytelling_sidepanel","Compare/storytelling_tabbed","Compare3d","CompareAnalysis","CompareMaps","CrowdsourceManager","CrowdsourcePolling","CrowdsourceReporter","Directions","Edit","Editor","Elevations","ElevationsProfile","Embed","Filter","FilterGallery","GeoForm","GeoList","GeoTour","HeaderFooter","Identify","ImageInterpretation","ImageMask","ImageVisit","ImageryViewer","ImpactSummary","InformationLookup","InteractiveFilter","InteractiveLegend","LayerShowcase","Legend","LiveMaps","LocalPerspective","MapAndAppGallery","MapCarousel","MapJournal","MapSeries","Shortlist","MapTools","MapTour","Media","MinimalGallery","Minimalist","MobileViewer","Nearby","OnePane","Panels","PanelsLegend","Profile","PublicGallery","PublicInformation","ServiceLookup","SimpleMapViewer","SimpleViewer","SocialMedia","Solutions/s2.html?app=apps2/FindEditFilter","Solutions/s2.html?app=apps2/Finder","Solutions/s2.html","StoryMapBasic","StorytellingSwipe","StorytellingTextLegend","Styler","SummaryViewer","Time","TimeAware","TwoPane","View","Viewer","ZoneLookup"],U=i=>{if(!i)return!1;let e=L.some(t=>{let a=t.includes(".html"),r=`/apps/${t}${a?"":"/"}`;return decodeURIComponent(i.url)?.includes(r)});return i.type==="Web Mapping Application"&&!!i.url&&e};function F(i){let e=["Cascade","MapTour","MapJournal","MapSeries","Shortlist","StoryMapCrowdsource","SwipeSpyglass","Story Map"];return i.type==="Web Mapping Application"&&(E(e,i)||V(i))}function V(i){return["Cascade","MapTour","MapJournal","MapSeries","Shortlist","StoryMapCrowdsource","StorytellingSwipe"].some(e=>{let t=`/apps/${e}/index.html`;return decodeURIComponent(i.url)?.includes(t)})}function E(i,e){return i?.some(t=>e?.typeKeywords?.includes(t))}function H(i){return!!i&&D.some(e=>i.type===e)}function A(i){let e=G(i);return y(`assets/portal-item-thumbnail/${e}`)}function G(i){let e=i.type?.toLowerCase(),t=i.typeKeywords||[];switch(e){case"web mapping application":return"webapp.avif";case"mobile application":return"mobileapp.avif";case"notebook code snippets":case"notebook code snippet library":return"notebookcodesnippets.avif";case"notebook":return"notebook.avif";case"style":return t.includes("Dictionary")?"dictionarystyle.avif":"style.avif";case"feature service":return t.includes("Location Tracking View")?"locationtrackingservice.avif":t.includes("IndoorPositioningDataService")?"indoor-positioning-data-service.avif":"default.avif";case"pro presentation":return"pro-presentation.avif";case"reality mapping project":return"realitymappingproject.avif";case"raster function template":return"rasterfunctiontemplate.avif";case"workforce project":return"workforceproject.avif";case"hub initiative":return"hubinitiative.avif";case"hub page":return"hubpage.avif";case"hub site application":case"site application":return"hubsite.avif";case"hub event":return"hubevent.avif";case"hub project":return"hubproject.avif";case"dashboard":return t.includes("ArcGIS Dashboards")?"dashboards.avif":"opsdashboard.avif";case"geoprocessing service":return t.includes("Notebook Web Tool")?"notebookwebtool.avif":"webtool.avif";case"web scene":case"scene service":return"scene.avif";case"ortho mapping project":return"orthomappingproject.avif";case"ortho mapping template":return"orthomappingtemplate.avif";case"insights theme":return"insightstheme.avif";case"insights workbook package":return"insightsworkbookpackage.avif";case"solution":return"solution.avif";case"mobile scene package":return"mobilescenepackage.avif";case"deep learning package":return"deeplearningpackage.avif";case"big data analytic":return"bigdataanalytic.avif";case"real time analytic":return"realtimeanalytic.avif";case"feed":return"feed.avif";case"excalibur imagery project":return"excaliburimageryproject.avif";case"storymap":return t?.includes("storymapcollection")?"storymapcollection.avif":"storymap.avif";case"survey123 add in":return"survey123addin.avif";case"mission":return"mission.avif";case"mission template":return"missiontemplate.avif";case"quickcapture project":return"quickcaptureproject.avif";case"pro report":return"proreport.avif";case"pro package":return"propackage.avif";case"pro report template":return"proreporttemplate.avif";case"urban model":return"urbanmodel.avif";case"urban project":return"urbanproject.avif";case"web experience":return"webexperience.avif";case"web experience template":return"webexperiencetemplate.avif";case"experience builder widget":return"experiencebuilderwidget.avif";case"experience builder widget package":return"experiencebuilderwidgetpackage.avif";case"workflow":return"workflow.avif";case"insights script":return"insightsscript.avif";case"kernel gateway connection":return"kernelgatewayconnection.avif";case"hub initiative template":return"hubinitiativetemplate.avif";case"image service":return t?.includes("Tile Imagery")?"tiledimagerylayer.avif":"imagerylayer.avif";case"mission report":return"missionreport.avif";case"administrative report":return"administrativereport.avif";case"storymap theme":return"storymaptheme.avif";case"knowledge graph":return"knowledgegraph.avif";case"knowledge graph layer":return"knowledgegraphlayer.avif";case"knowledge studio project":return"knowledgestudio.avif";case"earth configuration":return"earthconfiguration.avif";case"link chart":return"linkchart.avif";case"investigation":return"investigation.avif";case"apache parquet":return"apacheparquet.avif";case"curated collection":return"curatedcollection.avif";case"video service":return"mediaservice.avif";case"geodata service":return"geodataservice.avif";case"suitability model":return"suitabilitymodel.avif";case"esri classifier definition":return"classifierdefinition.avif";case"esri spectral library":return"spectrallibrary.avif";case"deep learning studio project":return"deeplearningstudioproject.avif";case"esri classification schema":return"classificationschema.avif";case"insights data engineering workbook":return"dataengineeringworkbook.avif";case"insights data engineering model":return"dataengineeringmodel.avif";case"discussion":return"discussion.avif";case"api key":return"apikey.avif";case"data pipeline":return"datapipeline.avif";case"analysis model":return"analysismodel.avif";case"service connection":return"serviceconnection.avif";case"xr experience":return"xrexperience.avif";case"3dtiles service":return t?.includes("GaussianSplat")?"gaussiansplatlayer.avif":"default.avif";default:return"default.avif"}}function _(i,e,t){let{restUrl:a}=i,r=B(i),o=r?`token=${r}`:"",s=`${a}/content/items/${e.id}`;if(e.thumbnail){let c=e.thumbnailUrl;if(c){let n=new URL(c);return n.searchParams.append("w","400"),n.href}return`${s}/info/${e.thumbnail}?w=400${r?"&":""}${o}`}else if(e.type==="Image")return`${s}/data?${o}`;return A(e)}function B(i){return i?.credential?.token||i?.token||i?.user?.credential?.token||i?.portalUser?.token||""}function O({portal:i,usePortalHostname:e}){let{customBaseUrl:t,portalHostname:a,urlKey:r}=i,{protocol:o}=window.location,s=!e&&r?`${r}.${t}`:a;return`${o}//${s}`}async function W(i){if(!i?.user)return[];let e=`${w(i)}portals/self/signinSettings`;return(await j(e,{query:{f:"json"}}))?.data.blockedApps||[]}var T=5e3,p=class extends g{constructor(){super(...arguments),this.replacementId=null,this.itemOwnerName="",this.replacementItemInRecycleBin=!1,this.hasInaccessibleReplacementItem=!1,this.replacementItemSupportsOpenActions=!1,this.thumbnailUrl=null,this.timer=void 0,this.messages=I({blocking:!0}),this.primaryActionRef=h(),this.getItemDetailsUrl=({portal:e,itemId:t,redirect:a})=>{let r=O({portal:e,usePortalHostname:!this.user});return r?`${`${r}/home`}/item.html?id=${t}${a?"&performRedirectAction=true":""}`:""},this.performRedirectAction=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId,redirect:!0}),"_self")},this.viewItemDetailsPage=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId??this.itemId}),this.supportsReplacement?"_self":"_blank")},this.canRedirect=!1,this.item=null,this.replacementItem=null,this.redirectAction=null,this.supportsReplacement=!1,this.redirectCancelled=!1,this.open=!1,this.redirectTimeRemaining=T/1e3,this.arcgisPortalReplacementItemFetch=d()}static{this.properties={item:16,replacementItem:16,redirectAction:16,supportsReplacement:16,redirectCancelled:16,open:16,redirectTimeRemaining:16,itemId:1,portal:0,user:0}}static{this.styles=x}async setFocus(){this.primaryActionRef.value?.setFocus()}willUpdate(e){(e.has("itemId")||e.has("portal")||e.has("user"))&&(this.user??=this.portal?.user??null,this.initItem())}setupTimer({onComplete:e}){typeof this.timer=="number"&&clearInterval(this.timer),this.redirectTimeRemaining=T/1e3,this.timer=setInterval(()=>{if(this.redirectTimeRemaining<=0){clearInterval(this.timer),this.timer=void 0,e();return}this.redirectTimeRemaining-=1},1e3)}cancelTimer({onCancel:e}={}){e?.(),clearInterval(this.timer)}handleClose(){this.cancelTimer(),this.itemId="",this.item=null,this.open=!1}cancelRedirect(){this.cancelTimer(),this.redirectCancelled=!0}isItemRetired(e){return U(e)||F(e)}async initItem(){if(!this.itemId)return;let{itemId:e,portal:t,performRedirectAction:a}=this,r=new C({id:e,portal:t});this.item=await r?.load();let o=await S(e,t,{relationshipType:"ReplacementItem2Item",direction:"reverse"},!0),s=o.data?.relatedItems?.[0];this.replacementItemInRecycleBin=s?.inRecycleBin;let c=s?.id,n=!this.replacementItemInRecycleBin&&c?new C({id:c,portal:t}):null;await n?.load(),this.replacementItem=n,this.hasInaccessibleReplacementItem=this.replacementItemInRecycleBin||!n&&o.data?.aggregations?.total?.count>0&&o.data?.relatedItems?.length===0,this.arcgisPortalReplacementItemFetch.emit({replacementItem:this.hasInaccessibleReplacementItem?{}:n||null}),this.replacementItem=n;let m=this.replacementItem?.owner??(r?.owner||null);this.itemOwnerName=m?$(await M(m,t),this.messages?._t9nLocale||"en"):"",this.replacementItemSupportsOpenActions=H(n),this.thumbnailUrl=_(t,n??this.item),this.supportsReplacement=!!n&&this.isItemRetired(r);let P=R(this.replacementItem,await W(this.portal),this.portal?.isPortal??!1);this.canRedirect=this.supportsReplacement&&this.replacementItemSupportsOpenActions&&!P,this.replacementId=n?.id||null,this.canRedirect&&this.setupTimer({onComplete:()=>a()}),this.open=!0}getReplacementHeading(){let{messages:e,hasInaccessibleReplacementItem:t,canRedirect:a}=this;return t?e.replacementUnavailable:a?e.redirectToReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.replacementUnavailable:e.replacementAvailable}getReplacementMessage(){let{messages:e,hasInaccessibleReplacementItem:t,supportsReplacement:a}=this;return t?e.retiredReplacementUnavailable:a?e.deprecatedHasReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.retired:e.deprecatedHasReplacement}getRedirectActionMessage(){let{messages:e,canRedirect:t,redirectTimeRemaining:a,redirectCancelled:r}=this;return r?e.redirectToReplacement:t?e.redirect.replace("${seconds}",`${a}`):e.moreDetails}renderCard(e){let{canRedirect:t,messages:a}=this;return l`<calcite-card thumbnail-position=inline-start><img slot=thumbnail class="thumbnail" src=${(this.thumbnailUrl||void 0)??v} @error=${async()=>this.thumbnailUrl=A(e)}><span slot=heading class="replacement-card__title">${e.title}</span><span slot=description>${a.ownedBy?.replace("${owner}",this.itemOwnerName)}</span>${t&&l`<calcite-link slot=footer-start icon-end=launch .href=${this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId})} target=_blank>${a.moreDetails}</calcite-link>`||""}</calcite-card>`}render(){let{open:e,messages:t,item:a,replacementItem:r,supportsReplacement:o,canRedirect:s,redirectCancelled:c}=this;if(!(!a||!this.isItemRetired(a)))return l`<calcite-dialog modal .open=${e} width=s kind=info outside-close-disabled escape-disabled close-disabled .heading=${this.getReplacementHeading()} @calciteDialogClose=${()=>this.handleClose()}><div class="replacement-container"><div class="replacement-message">${k(this.getReplacementMessage()?.replace("${itemTitle}",this.item?.title||""))}</div>${this.renderCard(o?r:a)}</div>${s&&!c&&l`<calcite-button slot=footer-end appearance=outline-fill kind=neutral @click=${()=>{this.cancelRedirect()}}>${t.cancelRedirection}</calcite-button>`||""}<calcite-button slot=footer-end @click=${()=>{this.cancelTimer(),s?this.performRedirectAction():this.viewItemDetailsPage()}} .iconEnd=${s?void 0:"launch"} ${f(this.primaryActionRef)}>${this.getRedirectActionMessage()}</calcite-button></calcite-dialog>`}};b("arcgis-portal-replacement-item-redirect",p);return p},"portal/PortalItem","request",a,c)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ var s={xxs:320,xs:480,sm:640,md:768};export{s as a};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import a from"./JEXN44WM.js";export default $arcgis.t(([{watch:s},{b:r}])=>{var c=["folder","group","contentType"],n=e=>e.type==="item-browser",m=(e={})=>r({filters:{},hiddenFilters:[],...e});function p(e,t){let o=s(()=>e.preview,t);return()=>o.remove()}return{a:c,b:n,c:m,d:p}},"core/reactiveUtils",a)
@@ -0,0 +1,3 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as C}from"./35SKVD6F.js";import a from"./WSNLUGEP.js";import{a as L,b as z}from"./U3FVMN32.js";import{a as O}from"./6W2IHKCA.js";import"./DFTUMKSN.js";import{a as B}from"./6XWNBD36.js";import"./G2YAOSMT.js";import"./QUEBM77K.js";import{J as y,K as U,L as A,M as I,N as R,R as N,h as P,j as u,v as k}from"./ZZ4DR3HN.js";import"./YIMNOUTF.js";export default $arcgis.t(([{a:w,b:v,c:_}])=>{function S(e){let r=/(https?:\/\/[^\s]+)/gu;return e?.replace(r,a=>`<a href="${a}" target="_blank">${a}</a>`)}function T(e){return e?.replace(/(?:\r)/gu,"&#10;").replace(/(?:\n)/gu,"&#13;")}function E(e){return e?.replace(/(?:&#10;)/gu,"\r").replace(/(?:&#13;)/gu,`
3
+ `)}function F(e){return e?.replace(/&#10;&#13;|&#10;|&#13;|\r\n|\r|\n/gu,"<br>")}function G(e){return F(T(S(E(e))))}function H(e){return e?.endsWith("/")?e.slice(0,e.length-1):e}var J=P`:host{display:flex}.button{display:flex;align-items:center;max-width:100%;cursor:pointer;white-space:normal;border-style:none;padding:0;font-size:.75rem;color:var(--calcite-color-text-2);outline:2px solid transparent;outline-offset:2px;transition-property:all;outline-color:transparent;background:transparent;font-family:inherit;line-height:1.5;&:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.button--outline{box-sizing:border-box;width:100%;padding:.5rem .75rem;transition-property:all;border:1px solid var(--calcite-color-border-3);&:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}}.name{overflow:hidden;white-space:nowrap;margin-inline-start:.5rem;text-overflow:ellipsis}.popover__wrapper{background-color:var(--calcite-color-foreground-1);width:min(32rem,80vw)}.popover__header{padding:1.25rem 1rem}.popover__avatar{max-width:100%}.popover__content{padding:.5rem 1rem 1.25rem}.popover__description{margin:0;overflow:auto;padding:0;padding-bottom:1rem;font-size:.875rem;color:var(--calcite-color-text-2);max-height:21.25rem}.popover__fade{position:relative;z-index:10;margin-bottom:.25rem;display:block;height:1rem;width:100%;background:linear-gradient(to bottom,transparent,var(--calcite-color-foreground-1) 100%);margin-top:-1rem}.popover__buttons{display:grid;grid-auto-flow:column;grid-gap:.5rem}.popover__buttons--no-description{padding-top:1rem}.popover__button{min-width:0px}.popover__loader{--calcite-loader-padding: 0}`;async function D(e,r,a,o,t){let s=e.portal?.portalHostname||o?.portalHostname||o?.restUrl?.replace("/sharing/rest",""),n=t?`https://www.arcgis.com/sharing/rest/portals/${r}`:`https://${s}/sharing/rest/portals/${r}`;if(!s&&!t)return null;let i=t?{disableIdentityLookup:!0,addTokenManually:!1}:{},l=await v({url:n,portal:o,options:i}),{urlKey:p,thumbnail:h,customBaseUrl:c}=l,f=`https://${p}.${c}/`,d=h?`${f}sharing/rest/portals/self/resources/${h}`:null,m="",$="";try{let g=await v({url:`${n}/resources/localizedOrgProperties`,portal:o,params:{start:1,num:100},options:i});if(g){let b=g[a]||g.default;m=b.name,$=b.description}}catch{}return{name:m||l.name,description:z($||l.description),url:`${f}home/`,thumbnail:d}}async function K(e,r,a,o){let t=e.sourceJSON?.orgId??e.portal?.id??a?.id;return await w({requester:async()=>await D(e,t,r,a,o),key:"verified",id:t})}var M=e=>e?.sourceJSON?.contentStatus==="public_authoritative";async function W(e,r,a,o){if(M(e)){let t=e.owner||"",s=await K(e,a,r,o);if(!s)return await _(t,r,o);let{description:n,name:i,thumbnail:l,url:p}=s;return{description:n?L(n):"",fullName:i,username:t,thumbnail:l,id:e.portal.id,url:p}}return await _(e.owner||"",r,o)}async function V(e,r,a){let o=a?"https://www.arcgis.com/sharing/rest/":O(r),t=a?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await w({requester:async()=>await v({url:`${o}community/groups`,portal:r,params:{q:`(owner:"${e}")`,num:100},options:t}),key:"userGroups",id:e})}async function Q(e,r,a){let o=a?"https://www.arcgis.com/sharing/rest/":O(r),t=a?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await w({requester:async()=>(await v({url:`${o}search`,portal:r,params:{q:`(owner:"${e}") -typekeywords:"recyclebin"`,num:1},options:t})).total,key:"userItemsTotal",id:e})}function q({baseUrl:e,user:r,type:a}){let o=H(e),t=encodeURIComponent(r.username||"");return t?`${o}/${a}.html?user=${t}`:`${o}/${a}.html`}var x=class extends A{constructor(){super(...arguments),this.messages=B({blocking:!0}),this.buttonRef=y(),this.popoverRef=y(),this.isPopoverOpen=!1,this.scale="m",this.showAvatar=!0,this.showName=!0,this.showUsername=!1,this.appearance="transparent",this.arcgisUserPopupInternalUIAction=k(),this.arcgisUserPopupClose=k()}static{this.properties={itemUserInfo:16,groups:16,total:16,isPopoverOpen:16,user:0,username:1,fullName:1,item:0,scale:3,portal:0,baseUrl:1,underline:5,showAvatar:5,showName:5,showUsername:5,wrap:5,appearance:1,zIndex:9,avatarAriaHidden:5,checkOnline:5}}static{this.styles=J}async setFocus(){this.buttonRef.value?.focus()}async openPopup(){this.buttonRef.value?.click()}connectedCallback(){super.connectedCallback(),this.init()}updated(r){r.has("isPopoverOpen")&&this.isPopoverOpen&&this.setPopoverOpen(!0)}get resolvedBaseUrl(){return this.baseUrl||`${this.portal.url}/home`}async init(){let{item:r,username:a,portal:o,fullName:t,messages:s}=this;if(!(!s._lang||!o)){if(r){this.itemUserInfo=await W(r,o,s._lang,this.checkOnline);return}if(a){let n=await _(a,o,this.checkOnline);!n.fullName&&t&&(n.fullName=t),this.itemUserInfo=n}}}async fetchItemsAndGroups(){let{user:r,itemUserInfo:a,item:o,portal:t,username:s,checkOnline:n}=this,i=s||r?.username||o?.owner||a?.username;if(!(!i||!t)){if(!this.groups){let l=await V(i,t,n);this.groups=l}this.total=await Q(i,t,n)}}setPopoverOpen(r){requestAnimationFrame(()=>{this.popoverRef.value&&(this.popoverRef.value.open=r)})}openLink(r,a){r.preventDefault(),window.open(a,"_blank")}renderOrgButtons(r){let{messages:a}=this,o=(r.url||this.resolvedBaseUrl).replace(/\/$/u,"");return u`<calcite-button appearance=outline-fill kind=neutral .href=${o} target=_blank @click=${t=>this.openLink(t,o)}>${a.homepage}</calcite-button><calcite-button appearance=outline-fill kind=neutral .href=${`${o}/gallery.html`} target=_blank @click=${t=>this.openLink(t,`${o}/gallery.html`)}>${a.gallery}</calcite-button>`}renderUserButtons(r){let{total:a,groups:o,messages:t}=this,s=r.username||"";if(typeof a!="number"||!o)return u`<calcite-loader .label=${t.loadingUserInformation} scale=s class="popover__loader"></calcite-loader>`;let n=q({baseUrl:this.resolvedBaseUrl,user:{username:s},type:"groups"}),i=q({baseUrl:this.resolvedBaseUrl,user:{username:s},type:"content"}),l=`${this.resolvedBaseUrl.replace(/\/$/u,"")}/user.html?user=${encodeURIComponent(s)}`;return u`${!!o.total&&u`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${n} target=_blank @click=${p=>{this.openLink(p,n),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view all groups"})}}>${t.groups.replace("${number}",new Intl.NumberFormat(t._lang).format(o.total))}</calcite-button>`||""}${!!a&&u`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${i} target=_blank @click=${p=>{this.openLink(p,i),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view all content"})}}>${t.items.replace("${number}",new Intl.NumberFormat(t._lang).format(a))}</calcite-button>`||""}<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${l} target=_blank @click=${p=>{this.openLink(p,l),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view profile"})}}>${t.profile}</calcite-button>`}render(){let{user:r,itemUserInfo:a,portal:o,item:t,appearance:s,scale:n,isPopoverOpen:i,showName:l,showUsername:p,messages:h}=this,c=r||a;if(!h._lang||!c)return u`<arcgis-portal-user-avatar scale=s show-name .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar>`;let f=M(t),d=c.username||"",m=G(c.description||"")||"",$=C(c,h._lang),g=f?h.itemManagedBy.replace("${username}",d):d;return u`<button class=${I({button:!0,"button--outline":s==="outline"})} @click=${()=>{this.isPopoverOpen||(this.isPopoverOpen=!0),this.fetchItemsAndGroups()}} ${U(this.buttonRef)}><slot><arcgis-portal-user-avatar .user=${c} .scale=${n} .portal=${o} .showName=${l} .description=${p?d:""} .hideAvatar=${!this.showAvatar} .underline=${this.underline} .checkOnline=${this.checkOnline} .wrap=${this.wrap}></arcgis-portal-user-avatar></slot></button>${i&&this.buttonRef.value&&c&&u`<calcite-popover class="popover" .label=${$} pointer-disabled .referenceElement=${this.buttonRef.value} placement=auto .id=${`${d}-popover`} auto-close style=${R({"--calcite-popover-z-index":this.zIndex?.toString()||"12"})} @calcitePopoverOpen=${()=>{this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"open profile popup"})}} @calcitePopoverClose=${()=>{this.isPopoverOpen=!1,this.arcgisUserPopupClose.emit()}} @keydown=${b=>{b.key==="Escape"&&setTimeout(()=>{this.buttonRef.value?.focus()},200)}} ${U(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${c} scale=l .portal=${o} show-name .description=${g} .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar></div><div class="popover__content">${!!m&&u`<p class="popover__description">${m}</p>`||""}${!!m&&u`<div class="popover__fade"></div>`||""}<div class=${I({popover__buttons:!0,"popover__buttons--no-description":!m})}>${f?this.renderOrgButtons(c):this.renderUserButtons(c)}</div></div></div></calcite-popover>`||""}`}};N("arcgis-portal-user-popup",x);return x},a)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as b,b as k}from"./6W2IHKCA.js";import{J as c,K as h,L as g,N as f,O as $,R as d,h as m,j as l}from"./ZZ4DR3HN.js";import"./YIMNOUTF.js";var E=/^#[0-9a-f]{3}$/iu,x=/^#[0-9a-f]{6}$/iu;function u(o){return I(o)||v(o)}function I(o){return o?.length===4&&E.test(o)}function v(o){return o?.length===7&&x.test(o)}function O(o){if(!u(o))return null;let t=o.replace("#","");if(t.length===3){let[e,i,r]=t.split("");return{r:Number.parseInt(`${e}${e}`,16),g:Number.parseInt(`${i}${i}`,16),b:Number.parseInt(`${r}${r}`,16)}}return{r:Number.parseInt(t.slice(0,2),16),g:Number.parseInt(t.slice(2,4),16),b:Number.parseInt(t.slice(4,6),16)}}function w(o){let t=0;for(let i=0;i<o.length;i++)t=o.charCodeAt(i)+((t<<5)-t);let e="#";for(let i=0;i<3;i++){let r=t>>i*8&255;e+=`00${r.toString(16)}`.slice(-2)}return e}function y(o){let{r:t,g:e,b:i}=o;t/=255,e/=255,i/=255;let r=Math.max(t,e,i),n=Math.min(t,e,i),s=r-n;if(s===0)return 0;let a=0;switch(r){case t:a=(e-i)/s+(e<i?6:0);break;case e:a=(i-t)/s+2;break;default:a=(t-e)/s+4;break}return Math.round(a*60)}function M(o){let t=O(o);return t?y(t):0}var T=m`:host{display:inline-block}:host([scale="s"]){height:1.5rem;width:1.5rem;font-size:.625rem}:host([scale="m"]){height:2rem;width:2rem;font-size:.75rem}:host([scale="l"]){font-size:1rem;height:2.75rem;width:2.75rem}:host([scale="xl"]){font-size:1.25rem;height:4rem;width:4rem}.icon{display:flex;color:var(--calcite-color-text-3)}.background{position:relative;display:flex;height:100%;width:100%;align-items:center;justify-content:center}.initials{position:absolute;font-weight:700;text-transform:uppercase;color:var(--calcite-color-text-2)}.thumbnail{height:100%;width:100%}.tooltip-text{margin:0;padding:0;font-size:.75rem;color:var(--calcite-color-text-2)}calcite-tooltip{pointer-events:none}`,p=class extends g{constructor(){super(...arguments),this.imageEl=c(),this.fallbackEl=c(),this.tooltipEl=c(),this.imageError=!1,this.tooltipOpen=!1,this.tooltip=!1,this.scale="m"}static{this.properties={imageError:16,tooltipOpen:16,group:0,portal:0,tooltip:5,scale:3}}static{this.styles=T}willUpdate(t){t.has("group")&&(this.imageError=!1)}updated(){let t=this.tooltipEl.value,e=this.imageEl.value||this.fallbackEl.value;t&&e&&(t.referenceElement=e)}isDarkMode(){return!!this.el.closest(".calcite-mode-dark")}getThumbnailURI(){let{group:t,portal:e}=this;if(!t)return null;if(t.thumbnailUrl)return t.thumbnailUrl;let i=t.thumbnail;if(!i)return null;if(i.startsWith("http"))return i;if(!e||!t.id)return null;let r=k(e),n=r?`?token=${r}`:"";return`${b(e)}community/groups/${t.id}/info/${i}${n}`}generateFillColor(){let{id:t,title:e}=this.group||{},i=t?`#${t.slice(Math.max(0,t.length-6))}`:"",r=t&&u(i)?i:w(e||"");if(!t&&!e||!u(r))return"var(--calcite-color-foreground-2)";let n=M(r),s=this.isDarkMode()?20:90;return`hsl(${n}, 60%, ${s}%)`}generateInitials(){let t=this.group?.title?.trim().charAt(0);return t?.match(/^\w+$/u)?t:null}getIconScale(){return this.scale==="xl"?"l":this.scale==="xs"?"s":this.scale}renderTooltip(){return!this.tooltip||!this.group?.title?null:l`<calcite-tooltip .open=${this.tooltipOpen} close-on-click placement=bottom-start offset-distance=6 offset-skidding=0 ${h(this.tooltipEl)}><p class="tooltip-text">${this.group.title}</p></calcite-tooltip>`}render(){let t=this.getThumbnailURI();if(t&&!this.imageError)return l`<img class="thumbnail" src=${t??$} alt @error=${()=>{this.imageError=!0}} @mouseenter=${()=>{this.tooltipOpen=!0}} @mouseleave=${()=>{this.tooltipOpen=!1}} @focusin=${()=>{this.tooltipOpen=!0}} @focusout=${()=>{this.tooltipOpen=!1}} ${h(this.imageEl)}>${this.renderTooltip()}`;let e=this.generateInitials();return l`<span class="background" style=${f({backgroundColor:this.generateFillColor()})} @mouseenter=${()=>{this.tooltipOpen=!0}} @mouseleave=${()=>{this.tooltipOpen=!1}} @focusin=${()=>{this.tooltipOpen=!0}} @focusout=${()=>{this.tooltipOpen=!1}} ${h(this.fallbackEl)}>${e?l`<span aria-hidden=true class="initials">${e}</span>`:l`<calcite-icon class="icon" icon=users .scale=${this.getIconScale()}></calcite-icon>`}</span>${this.renderTooltip()}`}};d("arcgis-portal-group-thumbnail",p);export{p as ArcgisPortalGroupThumbnail};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{d as m,e as c,f as d,g as f,t as C}from"./ZZ4DR3HN.js";var P=t=>(...p)=>{let s=c(),e=new t(...p),o=e.exports;m(s.at(-1));let n=e.component.manager;n.W(e,o),e.watchExports(n.W.bind(n,e)),d(e);let r=[e.component,...s].reverse();return C(r,a=>a===void 0?void 0:E(e,a,o),o)},E=(t,{host:p,key:s,isReactive:e},o)=>{let n=p,r=n[s]!==t.exports,a=n[s]!==o,h=o!==t.exports;if(r&&!a&&h&&(n[s]=t.exports),p===t.component){if(e){let i=t.component.manager;a&&i.W(t,n[s]),t.onUpdate(v=>{if(v.has(s)){let x=n[s];x!==t.exports&&i.W(t,x)}})}t.O=e?void 0:s}let g=t.component.constructor.elementProperties.get(s)?.readOnly;t.watchExports(()=>{n[s]!==t.exports&&(g?f(()=>{n[s]=t.exports}):n[s]=t.exports)})};export{P as a};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a}from"./E67OMPRM.js";import"./6XWNBD36.js";import"./G2YAOSMT.js";import"./QUEBM77K.js";import"./ZZ4DR3HN.js";import"./YIMNOUTF.js";export{a as ArcgisPortalBrowserFilter};
@@ -0,0 +1,99 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import"./YIMNOUTF.js";var e=`# ArcGIS Knowledge Graph Cypher Rules
3
+
4
+ ## GOAL
5
+
6
+ Generate a Cypher query that answers the user\u2019s request and conforms to the data model.
7
+
8
+ ---
9
+
10
+ ## 1. USER OVERRIDES (HIGHEST PRIORITY)
11
+
12
+ If the user specifies any of the following, ALWAYS follow their instructions over defaults:
13
+
14
+ - LIMIT (or no limit)
15
+ - Output columns / data model
16
+ - Inclusion/exclusion of globalid
17
+ - Ordering, grouping, filtering, projection
18
+
19
+ ---
20
+
21
+ ## 2. DATA MODEL CONFORMANCE (NON-NEGOTIABLE)
22
+
23
+ Use ONLY valid data model elements.
24
+
25
+ ### Required
26
+
27
+ - Use only valid entity types, relationship types, and properties
28
+ - Ensure relationships connect valid entity types
29
+ - infer direction from user prompt. if not clear use the least restrictive valid form supported by the model.
30
+
31
+ ### VALIDATION RULES (STRICT)
32
+
33
+ - Enforce exact schema match: all entities, relationships, and properties must exist exactly in the data model
34
+ - Validate relationship integrity: types, source\u2192target pairing, and direction must match schema
35
+ - Enforce field correctness: properties and filters must exist on the referenced type and use valid data types
36
+ - Ensure alias consistency: each alias maps to one type only and cannot change meaning
37
+ - Apply strict failure: if any component is invalid, do NOT generate the query and do NOT infer or repair
38
+
39
+ ## 4. PATH RESOLUTION
40
+
41
+ - First attempt a direct relationship
42
+ - If none exists \u2192 use a valid multi-hop path
43
+ - Each hop MUST be valid in the data model
44
+ - Max path length: 3 (unless user requests more)
45
+
46
+ ### Path selection
47
+
48
+ - Prefer shortest valid path
49
+ - If multiple valid paths exist \u2192 choose best match to user intent
50
+ - If no valid path exists \u2192 do not speculate
51
+
52
+ ---
53
+
54
+ ## 5. PERFORMANCE
55
+
56
+ - Use the minimal number of entities and relationships
57
+ - Prefer shortest valid path
58
+ - Avoid unnecessary patterns or complexity
59
+
60
+ ---
61
+
62
+ ## 6. CYPHER RULES
63
+
64
+ - UNION queries must return identical columns
65
+ - Apply LIMIT only after UNION (not inside subqueries)
66
+ - Do NOT use: OVER, REDUCE()
67
+ - Do NOT use reserved keywords as variables (call, match, return, as etc.)
68
+ - Use only valid openCypher syntax
69
+ - After OPTIONAL MATCH, always add:
70
+ WITH ...
71
+ WHERE var IS NOT NULL
72
+ before using var in any MATCH or relationship pattern.
73
+
74
+ ---
75
+
76
+ ## 7. SPATIAL RULES
77
+
78
+ - Prefer graph relationships over spatial functions
79
+ - Use spatial functions only when necessary
80
+ - Always ensure geometry is not null if using spatial functions
81
+ - for example: WHERE n.shape IS NOT NULL
82
+
83
+ ---
84
+
85
+ ## 9. DEFAULT OUTPUT (IF NOT SPECIFIED)
86
+
87
+ - Add LIMIT 50 unless results are clearly small
88
+ - Use descriptive aliases with AS
89
+ - ALWAYS Return full entities and relationships unless user requests specific properties
90
+
91
+ ---
92
+
93
+ ## 11. OUTPUT FORMAT
94
+
95
+ - Valid \u2192 return ONLY Cypher query
96
+ - No explanation
97
+
98
+ ---
99
+ `;export{e as default};
@@ -0,0 +1,34 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import"./YIMNOUTF.js";var e=`## Membership Bind Parameters
3
+
4
+ The current map contains a subset of entities and relationships from the database. Their membership is available to Cypher queries as lists of string identifiers through these bind parameters:
5
+
6
+ - $entityIds
7
+ - $relationshipIds
8
+
9
+ Included Types:
10
+ {nonDynamicTypes}
11
+
12
+ Filtering rules:
13
+
14
+ - Apply membership filtering only when BOTH are true:
15
+ - The user is asking for data to be limited by the records already on 'the current map', 'my map', 'the knowledge graph layer' or similar.
16
+ - The variable in the cypher query is a type in Included Types above.
17
+ - IMPORTANT: In all other cases, DO NOT apply membership filtering. DO NOT include membership filters for any type not listed in Included Types above.
18
+
19
+ ### START EXAMPLES
20
+
21
+ User request: 'Add all records that are connected to people on this map to the map'
22
+ Context: 'Person' entity in data model and included in the bind parameter types above.
23
+ Expected Result: MATCH (n:Person)-[r]->(m) WHERE id(n) IN $entityIds return r, m
24
+
25
+ User request: 'Add all the suppliers to the map'
26
+ Context: 'Supplier' entity in the data model.
27
+ Expected Result: MATCH (s:Supplier) RETURN s
28
+
29
+ User request: 'Add all suppliers connected to plants on my map'
30
+ Context: 'Plant' entity in data model but not included in the bind parameter types above.
31
+ Expected Result: MATCH (p:Plant)-[r]->(s:Supplier) return r, s
32
+
33
+ ### END EXAMPLES
34
+ `;export{e as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as i}from"./5VSDGPHH.js";export default $arcgis.t(([a])=>{function w(e){return e.typeKeywords?.includes("Hosted Service")&&e.type!=="Insights Workbook"&&e.type!=="Insights Data Engineering Workbook"&&e.type!=="Insights Page"}function g(e){return e.typeKeywords?.includes("View Service")}function h(e){return e.typeKeywords?.includes("Service Proxy")&&e.typeKeywords.includes("Geocoding filter")}function v(e){return e.type==="Image Collection"&&e.typeKeywords?.includes("Photo locations")}function p(e){return e?.sourceType==="mosaic-dataset"||e?.serviceSourceType==="esriImageServiceSourceTypeMosaicDataset"}function P(e,t){return e.typeKeywords?.includes("Managed Image Collection")||p(t)&&!e.typeKeywords?.includes("Tiled Imagery")}function I(e,t){return!!((e.sourceJSON?.serviceProperties?.tags||e?.serviceProperties?.tags)?.includes("hasMultidimensions")||t?.hasMultidimensions)}function S(e,t){return c(e,t)||y(e,t)}function c(e,t){return e.owner===t.username}function y(e,t){let r=e.owner,n=e.itemControl==="admin",s=["esri_livingatlas","esri_demographics","esri_boundaries"];return e.portal?.isPortal&&!c(e,t)&&n&&r?.includes("esri_")&&!s.includes(r)?!1:n}var K=(e,t)=>!!t.orgId&&e.every(r=>r.isOrgItem);function j(e){return e.typeKeywords?.includes("Spatiotemporal")}function k(e){return e.typeKeywords?.includes("View Service")}function T(e){return e.typeKeywords?.includes("Hosted Service")}function b(e){return e.typeKeywords?.includes("Multi Services View")}function M(e){return e?.hasViews&&!e.sourceSchemaChangesAllowed}async function $(e){let t=e?.portalItem;if(!t)return await Promise.resolve(null);let r=t.portal;if(r?.user){let n=`${i(r)}community/users/${r.user.username}`;return await a(n,{query:{f:"json",token:t.portal.credential?.token},responseType:"json"}).then(async s=>{let o=s.data?.groups??[];return await Promise.resolve(o)},async()=>await Promise.reject(new Error("Failed to fetch user groups")))}return await Promise.resolve(null)}async function C(e){let t=e?.portalItem;if(!t)return await Promise.resolve(null);let r=t.portal,n=`${i(r)}content/items/${t.id}/groups`;return await a(n,{query:{f:"json",token:t.portal.credential?.token},responseType:"json"}).then(async s=>{let o=s.data?.admin??[],u=s.data?.member??[],l=s.data?.other??[],d=[...o,...u,...l];return await Promise.resolve(d)},async()=>await Promise.reject(new Error("Failed to fetch item groups")))}async function V(e,t,{relationshipType:r,direction:n},s=!1){let o=`${i(t)}content/items/${e}/relatedItems`;return await a(o,{query:{f:"json",relationshipType:r,direction:n,includeRecycleBin:s},responseType:"json"})}function _(e,t){return e?.some(r=>t?.some(n=>r.id===n.id&&r.capabilities.includes("updateitemcontrol")))}return{a:w,b:g,c:h,d:v,e:P,f:I,g:S,h:K,i:j,j:k,k:T,l:b,m:M,n:$,o:C,p:V,q:_}},"request")
2
+ import{a as i}from"./6W2IHKCA.js";export default $arcgis.t(([a])=>{function w(e){return e.typeKeywords?.includes("Hosted Service")&&e.type!=="Insights Workbook"&&e.type!=="Insights Data Engineering Workbook"&&e.type!=="Insights Page"}function g(e){return e.typeKeywords?.includes("View Service")}function h(e){return e.typeKeywords?.includes("Service Proxy")&&e.typeKeywords.includes("Geocoding filter")}function v(e){return e.type==="Image Collection"&&e.typeKeywords?.includes("Photo locations")}function p(e){return e?.sourceType==="mosaic-dataset"||e?.serviceSourceType==="esriImageServiceSourceTypeMosaicDataset"}function P(e,t){return e.typeKeywords?.includes("Managed Image Collection")||p(t)&&!e.typeKeywords?.includes("Tiled Imagery")}function I(e,t){return!!((e.sourceJSON?.serviceProperties?.tags||e?.serviceProperties?.tags)?.includes("hasMultidimensions")||t?.hasMultidimensions)}function S(e,t){return c(e,t)||y(e,t)}function c(e,t){return e.owner===t.username}function y(e,t){let r=e.owner,n=e.itemControl==="admin",s=["esri_livingatlas","esri_demographics","esri_boundaries"];return e.portal?.isPortal&&!c(e,t)&&n&&r?.includes("esri_")&&!s.includes(r)?!1:n}var K=(e,t)=>!!t.orgId&&e.every(r=>r.isOrgItem);function j(e){return e.typeKeywords?.includes("Spatiotemporal")}function k(e){return e.typeKeywords?.includes("View Service")}function T(e){return e.typeKeywords?.includes("Hosted Service")}function b(e){return e.typeKeywords?.includes("Multi Services View")}function M(e){return e?.hasViews&&!e.sourceSchemaChangesAllowed}async function $(e){let t=e?.portalItem;if(!t)return await Promise.resolve(null);let r=t.portal;if(r?.user){let n=`${i(r)}community/users/${r.user.username}`;return await a(n,{query:{f:"json",token:t.portal.credential?.token},responseType:"json"}).then(async s=>{let o=s.data?.groups??[];return await Promise.resolve(o)},async()=>await Promise.reject(new Error("Failed to fetch user groups")))}return await Promise.resolve(null)}async function C(e){let t=e?.portalItem;if(!t)return await Promise.resolve(null);let r=t.portal,n=`${i(r)}content/items/${t.id}/groups`;return await a(n,{query:{f:"json",token:t.portal.credential?.token},responseType:"json"}).then(async s=>{let o=s.data?.admin??[],u=s.data?.member??[],l=s.data?.other??[],d=[...o,...u,...l];return await Promise.resolve(d)},async()=>await Promise.reject(new Error("Failed to fetch item groups")))}async function V(e,t,{relationshipType:r,direction:n},s=!1){let o=`${i(t)}content/items/${e}/relatedItems`;return await a(o,{query:{f:"json",relationshipType:r,direction:n,includeRecycleBin:s},responseType:"json"})}function _(e,t){return e?.some(r=>t?.some(n=>r.id===n.id&&r.capabilities.includes("updateitemcontrol")))}return{a:w,b:g,c:h,d:v,e:P,f:I,g:S,h:K,i:j,j:k,k:T,l:b,m:M,n:$,o:C,p:V,q:_}},"request")
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import a from"./SXZRHHXC.js";import"./6W2IHKCA.js";import{a as A}from"./6XWNBD36.js";import"./G2YAOSMT.js";import"./QUEBM77K.js";import{L as I,M,O as k,R as D,S as x,h as P,j as d}from"./ZZ4DR3HN.js";import"./YIMNOUTF.js";export default $arcgis.t(([{a:j,b:G,c:C,d:T,e:L,f:E,g:b,h:h}])=>{var V=P`:host{display:inline-flex;align-items:center}:host([scale="s"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--2);--arcgis-portal-item-type-spacing: 1rem}:host([scale="m"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--1);--arcgis-portal-item-type-spacing: 1rem}:host([scale="l"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size-0);--arcgis-portal-item-type-spacing: 1rem}.icon{display:block;flex-grow:0;flex-shrink:0;width:var(--arcgis-portal-item-type-spacing);height:var(--arcgis-portal-item-type-spacing)}.text{color:var(--calcite-text-color-2);font-size:var(--arcgis-portal-item-type-font-size);line-height:1.25rem}.text--ellipsis{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.text--spaced{margin-inline-start:calc(var(--arcgis-portal-item-type-spacing) / 2);word-wrap:break-word;word-break:break-word}`,B=t=>typeof t?.role=="string"&&t?.role?t?.role:t?.roleId??t?.sourceJSON?.id;function $(t){return["org_admin","account_admin"].includes(B(t))&&!t?.roleId}function K(t){return!!(t?.roleId&&t.roleId.length>0)}function O(t){return!!t?.privileges?.includes("portal:admin:deleteItems")}function q(t,r){return r?b(t,r)||t.itemControl==="update"||h([t],r)&&$(r):!1}function z(t,r){if(!r)return!1;let a=h([t],r),e=b(t,r)||$(r)&&a,i=K(r)&&O(r);return!!(e||a&&i)}async function _({item:t,messages:r,user:a,serviceInfo:e,portal:i}){let s=X(t),o=J(t,r,i);return{displayName:W(o,{item:t,user:a,messages:r,serviceInfo:e},!1),displayNameHosted:W(o,{item:t,user:a,messages:r,serviceInfo:e},!0),icon:s}}function Q(t){if(t.type!=="Scene Service"&&t.type!=="3DTiles Service")return null;let r=t.typeKeywords;return r?.includes("IntegratedMesh")?"mesh":r?.includes("3DObject")?"3D object":r?.includes("Point")?"3D point":r?.includes("PointCloud")?"point cloud":r?.includes("Building")?"building":r?.includes("Voxel")?"voxel":null}function W(t,{item:r,user:a,messages:e,serviceInfo:i},s=!0){let o=r.type==="Image Service";if(!r||!e||!(s&&a)&&r.type!=="Image Service")return t;let n=r.type==="Feature Service"&&r.typeKeywords?.includes("UtilityNetwork"),l=r.type==="Feature Service"&&r.typeKeywords?.includes("ParcelFabric"),g=r.type==="Feature Service"&&r.typeKeywords?.includes("Query Layer"),p=a&&q(r,a),u=a&&z(r,a),m=j(r),f=(p||u)&&m,w=(p||u)&&s;if(g)return`${t} (${e.query})`;if(l)return`${t} (${f?e.parcelFabricHosted:e.parcelFabric})`;if(n){let c=f?`, ${e.hosted}`:"";return`${t} (${e.utilityNetwork}${c})`}if(o){let c=r.typeKeywords?.includes("Elevation 3D Layer"),N=w&&m,R=E(r,i)&&!c,F=L(r,i)&&!c,y=`${N?"Hosted":""}${F?"Collection":""}${R?"Multidimensional":""}`,S=y&&`${y[0].toLowerCase()}${y.slice(1)}`,H=S?` (${e[S]})`:"";return`${t}${H}`}if(w){if(r.type==="Scene Service"||r.type==="3DTiles Service"){let c=Q(r);c&&(t=`${t} - ${e[c]||c}`)}if(m){let c=` (${G(r)?e.hostedView:e.hosted})`;return`${t}${c}`}return C(r)?`${t} (${e.locatorView})`:T(r)?`${t} (${e.photoLocations})`:t}return t}var U={"360 VR Experience":"360 VR experience","3DTiles Package":"3D tiles package","3DTiles Service":"3D tiles layer","Addin Package":"Add-in package","Administrative Report":"Administrative report","Analysis Model":"Analysis model","Apache Parquet":"Apache Parquet","API Key":"API key","AppBuilder Extension":"AppBuilder extension","AppBuilder Widget Package":"AppBuilder widget package","ArcGIS Explorer Application Configuration":"ArcGIS Explorer application configuration","ArcGIS Pro Add In":"ArcGIS Pro add-in","ArcGIS Pro Configuration":"ArcGIS Pro configuration","ArcMap Document":"ArcMap document","ArcPad Package":"ArcPad package","Basemap Package":"Basemap package","Big Data Analytic":"Big data analytic","Big Data File Share":"Big data file share","CAD Drawing":"CAD drawing","CityEngine Web Scene":"CityEngine web scene","Code Attachment":"Code attachment","Code Sample":"Code sample","Color Set":"Color set","Compact Tile Package":"Compact tile package","Content Category Set":"Content category set","CSV Collection":"CSV collection","Data Pipeline":"Data pipeline","datastore catalog service":"Datastore catalog service","Deep Learning Package":"Deep learning package","Deep Learning Studio Project":"Deep Learning Studio project","Desktop Add In":"Desktop add-in","Desktop Application":"Desktop application","Desktop Application Template":"Desktop application template","Desktop Style":"Desktop style","Dictionary Style":"Dictionary style","Document Link":"Document link","Earth Configuration":"Earth configuration","Esri Classification Schema":"Esri classification schema","Esri Classifier Definition":"Esri classifier definition","Excalibur Imagery Project":"Excalibur imagery project","Experience Builder Widget":"Experience Builder widget","Experience Builder Widget Package":"Experience Builder widget package","Explorer Add In":"Explorer add-in","Explorer Layer":"Explorer layer","Explorer Map":"Explorer map","Export Package":"Export package","Feature Collection Template":"Feature collection template","Feature Service":"Feature layer","File Geodatabase":"File geodatabase","GeoBIM Application":"GeoBIM application","GeoBIM Project":"GeoBIM project","Geocoding Service":"Geocoding service","Geodata Service":"Geodata service","Geoenrichment Service":"GeoEnrichment service","Geometry Service":"Geometry service","Geoprocessing Package":"Geoprocessing package","Geoprocessing Sample":"Geoprocessing sample","Globe Document":"Globe document","Globe Layer":"Globe layer","Globe Service":"Globe service","Group Layer":"Group layer","Hub Event":"Hub event","Hub Initiative":"Hub initiative","Hub Initiative Template":"Hub initiative template","Hub Page":"Hub page","Hub Project":"Hub project","Hub Site Application":"Hub site application","Image Collection":"Image collection","Image Service":"Image service","Imagery Layer":"Imagery layer","Insights Data Engineering Model":"Insights data engineering model","Insights Data Engineering Workbook":"Insights data engineering workbook","Insights Model":"Insights model","Insights Page":"Insights page","Insights Script":"Insights script","Insights Theme":"Insights theme","Insights Workbook":"Insights workbook","Insights Workbook Package":"Insights workbook package","Integration Info":"Integration info","iWork Keynote":"iWork Keynote","iWork Numbers":"iWork Numbers","iWork Pages":"iWork Pages","Kernel Gateway Connection":"Kernel gateway connection","KML Collection":"KML collection","Knowledge Graph":"Knowledge graph","Knowledge Graph Layer":"Knowledge graph layer","Knowledge Graph Web Investigation":"Knowledge graph web investigation","Knowledge Studio Project":"Knowledge Studio project","Layer Package":"Layer package","Layer Template":"Layer template","Living Atlas Export Package":"Living Atlas export package","Locator Package":"Locator package","Map Area":"Map area","Map Document":"Map document","Map Package":"Map package","Map Service":"Map service","Map Showcase":"Map showcase","Map Template":"Map template","Media Layer":"Media layer","Mission Report":"Mission report","Mission Template":"Mission template","Mobile Application":"Mobile application","Mobile Basemap Package":"Mobile basemap package","Mobile Map Package":"Mobile map package","Mobile Scene Package":"Mobile scene package","Native Application":"Native application","Native Application Installer":"Native application installer","Network Analysis Service":"Network analysis service","Notebook Code Snippet Library":"Notebook code snippet library","Notebook Code Snippets":"Notebook code snippets","Operation View":"Operation view","Operations Dashboard Add In":"Operations Dashboard add-in","Operations Dashboard Extension":"Operations Dashboard extension","Oriented Imagery Catalog":"Oriented imagery catalog","Ortho Mapping Project":"Ortho mapping project","Ortho Mapping Template":"Ortho mapping template","Parquet Feature Layer":"Parquet feature layer","Parquet Collection":"Parquet collection","Pro Map":"Pro map","Pro Presentation":"Pro presentation","Pro Project":"Pro project","Pro Report":"Pro report","Pro Report Template":"Pro report template","Project Package":"Project package","Project Template":"Project template","Published Map":"Published map","QuickCapture Project":"QuickCapture project","Raster function template":"Raster function template","Real Time Analytic":"Real time analytic","Reality Studio Project":"Reality Studio project","Reality Mapping Project":"Reality mapping project","Relational Database Connection":"Relational database connection","Replication Package":"Replication package","Report Template":"Report template","Route Layer":"Route layer","Rule Package":"Rule package","Scene Document":"Scene document","Scene Service":"Scene service","Service Connection":"Service connection","Service Definition":"Service definition","SQLite Geodatabase":"SQLite geodatabase","Statistical Data Collection":"Statistical data collection","StoryMap Theme":"StoryMap theme","Suitability Model":"Suitability model","Survey123 Add In":"Survey123 add-in","Symbol Set":"Symbol set","Task File":"Task file","Tile Layer":"Tile layer","Tile Package":"Tile package","Urban Model":"Urban model","Urban Project":"Urban project","Vector Tile Package":"Vector tile package","Vector Tile Service":"Vector tile service","Visio Document":"Visio document","Web AppBuilder Widget":"Web AppBuilder widget","Web Experience":"Web experience","Web Experience Template":"Web experience template","Web Link Chart":"Web link chart","Web Map":"Web map","Web Mapping Application":"Web mapping application","Web Scene":"Web scene","Windows Mobile Package":"Windows mobile package","Workflow Manager Package":"Workflow Manager package","Workflow Manager Service":"Workflow Manager service","Workforce Project":"Workforce project","Viewer Configuration":"Viewer configuration","XR Experience":"XR experience"};function J(t,r,a){let e=t.typeKeywords||[];switch(t.type){case"Stream Service":return"Stream layer";case"Feature Service":case"Feature Collection":return e.includes("Sketch Layer")?"Sketch layer":e.includes("IndoorPositioningDataService")?"Indoor positioning data service":e.includes("EditExtensionIndoorsSpaces")?"Indoors Spaces feature layer":e.includes("ArcgisWorkflowJobLocation")&&e.includes("View Service")?"Workflow job location view":e.includes("ArcgisWorkflowManager")?e.includes("View Service")?"Workflow view":"Workflow layer":e.includes("Table")?"Table":e.includes("Route Layer")?"Route layer":e.includes("Markup")?"Markup":"Feature layer";case"Image Service":return e.includes("Elevation 3D Layer")?"Elevation layer":e.includes("Tiled Imagery")?"Tiled imagery layer":"Imagery layer";case"Data Store":if(!e.length)return"Data store";let s=["cloudStore_amazon","cloudStore_azure","cloudStore_azureDataLakeStore","cloudStore_Google","cloudStore_Alibaba","Cloud"].some(l=>e.includes(l)),o=r.dataStore||{bigdata:"big data file share",cloud:"cloud",cloudStorage:"cloud storage",database:"database",folder:"folder"};return s?`Data store (${a?.isPortal?o.cloudStorage:o.cloud})`:e.includes("egdb")||e.includes("nosql")?`Data store (${o.database})`:e.includes("folder")||e.includes("ArcGIS Server")&&(e.includes("dedicated")||e.includes("global"))?`Data store (${o.folder})`:!e.includes("fileShare")||!e.includes("hdfs")||!e.includes("hive")||!e.includes("dataStore")?`Data store (${o.bigdata})`:"Data store";case"Scene Service":return"Scene layer";case"Video Service":return"Video layer";case"Scene Package":return"Scene layer package";case"Geoprocessing Service":return e.includes("Web Tool")?"Tool":"Geoprocessing service";case"StoryMap":let n=e.includes("storymaptemplate");return e.includes("storymapbriefing")?n?"StoryMap template (briefing)":"StoryMap briefing":e.includes("storymapcollection")?n?"StoryMap template (collection)":"StoryMap collection":e.includes("storymapframe")?n?"StoryMap template (frame)":"StoryMap frame":n?"StoryMap template (story)":"StoryMap story";case"Geocoding Service":return"Locator";case"Geoenrichment Service":return"GeoEnrichment service";case"Microsoft Powerpoint":return"Microsoft PowerPoint";case"GeoJson":return"GeoJSON";case"Globe Service":return"Globe layer";case"Vector Tile Service":return"Tile layer";case"netCDF":return"NetCDF";case"SQLite Geodatabase":return"Mobile geodatabase";case"Style":return e.includes("Dictionary")?"Dictionary style":"Style";case"Desktop Style":return e.includes("Dictionary")?"Desktop dictionary style":"Desktop style";case"Map Service":return!e.includes("Spatiotemporal")&&(e.includes("Hosted Service")||e.includes("Tiled"))&&!e.includes("Relational")?"Tile layer":"Map image layer";case"Compact Tile Package":return"Tile package (tpkx)";case"OGCFeatureServer":return"OGC feature layer";case"3DTiles Service":return e?.includes("GaussianSplat")?"Gaussian splat layer":"3D tiles layer";case"3DTiles Package":return"3D tiles package";case"API Key":return"API key (legacy)";case"Web Mapping Application":if(e.includes("configurableApp"))return"Instant App";if(e.includes("IndoorsApp"))return"Indoors Viewer";if(e.includes("IndoorsSpaceplannerApp"))return"Indoors Space Planner";if(e.includes("IndoorsFloorPlanEditorApp"))return"Indoors Floor Plan Editor";break;case"Application":case"Mobile Application":case"Operation View":case"Desktop Application":if(e.includes("configurableApp"))return"Instant App";break}let i=U[t.type]||t.type;return i?.toLowerCase().includes("add in")?i.replace(/(add in)/giu,"add-in"):i}function X(t){let r=t.type?.toLowerCase()||"",a=t.typeKeywords||[],e=a.includes("Hosted Service");switch(r.trim()){case"360 vr experience":return"360vr";case"3dtiles package":return"3dtileslayerpackage";case"3dtiles service":return a.includes("3DObject")?"3dobjecttileslayer":a.includes("IntegratedMesh")?"integratedmeshtileslayer":a.includes("GaussianSplat")?"gaussianSplatLayer":"3dobjecttileslayer";case"feature service":case"feature collection":case"kml":case"wfs":if(a.includes("ParcelFabric"))return"parcellayer";if(a.includes("IndoorPositioningDataService"))return"indoorpositioningdataservice";let i=a.includes("Spatiotemporal");return a.includes("Table")?i?"spatiotemporaltable":"table":r==="feature collection"&&a.includes("Sketch Layer")?"sketchlayer":a.includes("Route Layer")?"routelayer":a.includes("Markup")?"markup":i?"spatiotemporal":a.includes("UtilityNetwork")?"utilitynetwork":e?"featureshosted":"features";case"group layer":return a.includes("Map")?"layergroup2d":a.includes("Scene")?"layergroup3d":"layergroup";case"wmts":return"maptiles";case"map service":case"wms":return e||a.includes("Tiled")?"maptiles":"mapimages";case"scene service":return a.includes("Line")?"sceneweblayerline":a.includes("3DObject")?"sceneweblayermultipatch":a.includes("Point")?"sceneweblayerpoint":a.includes("IntegratedMesh")?"sceneweblayermesh":a.includes("PointCloud")?"sceneweblayerpointcloud":a.includes("Polygon")?"sceneweblayerpolygon":a.includes("Building")?"sceneweblayerbuilding":a.includes("Voxel")?"sceneweblayervoxel":"sceneweblayer";case"wcs":return"imagery";case"image service":return a.includes("Elevation 3D Layer")?"elevationlayer":a.includes("Tiled Imagery")?"tiledimagerylayer":"imagery";case"stream service":return"streamlayer";case"video service":return a.includes("Live Stream")?"livestreamvideolayer":"mediaservice";case"vector tile service":return"vectortile";case"datastore catalog service":return"datastorecollection";case"geocoding service":return"geocodeservice";case"geoprocessing service":return a.includes("Web Tool")?"tool":"layers";case"geodata service":return"geodataservice";case"web map":case"cityengine web scene":return"maps";case"web scene":return a.includes("ViewingMode-Local")?"webscenelocal":"websceneglobal";case"application":case"web mapping application":case"mobile application":case"operation view":case"desktop application":return a?.some(s=>["IndoorsApp","IndoorsSpaceplannerApp","IndoorsFloorPlanEditorApp"].includes(s))?"indoors":a.includes("configurableApp")?"instantapps":"apps";case"map document":case"map package":case"published map":case"scene document":case"globe document":case"basemap package":case"mobile basemap package":case"mobile map package":case"project package":case"project template":case"pro map":case"layout":return"mapsgray";case"layer":if(a.includes("ArcGIS Pro"))return"mapsgray";break;case"explorer map":if(a.indexOf("Explorer Document"))return"mapsgray";if(a.includes("Explorer Mapping Application"))return"datafilesgray";break;case"pro presentation":return"propresentation";case"api key":return"key";case"csv":return"csv";case"shapefile":return"shapefile";case"csv collection":return"csvcollection";case"media layer":return"medialayer";case"microsoft excel":return"excel";case"microsoft powerpoint":return"powerpoint";case"microsoft word":return"word";case"pdf":return"pdf";case"sqlite geodatabase":return"sqlite";case"administrative report":return"report";case"cad drawing":return"cad";case"service definition":case"geojson":case"netcdf":return"data";case"explorer add in":case"desktop add in":case"windows viewer add in":case"windows viewer configuration":return"appsgray";case"arcgis pro add in":case"arcgis pro configuration":return"addindesktop";case"rule package":case"file geodatabase":case"kml collection":case"windows mobile package":case"map template":case"desktop application template":case"gml":case"arcpad package":case"code sample":case"document link":case"earth configuration":case"operations dashboard add in":case"rules package":case"workflow manager package":return"datafilesgray";case"form":return a.includes("Survey123")?"survey":"datafilesgray";case"network analysis service":case"geometry service":case"geoprocessing package":case"locator package":case"geoprocessing sample":case"workflow manager service":return"toolsgray";case"layer package":case"explorer layer":return"layersgray";case"scene package":return"scenepackage";case"mobile scene package":return"mobilescenepackage";case"tile package":case"compact tile package":return"tilepackage";case"task file":return"taskfile";case"report template":return"reporttemplate";case"statistical data collection":return"statisticaldatacollection";case"analysis model":return"geoprocessingmodel";case"map showcase":return"mapshowcase";case"insights workbook":return"workbook";case"insights model":return"insightsmodel";case"insights page":return"insightspage";case"insights theme":return"insightstheme";case"discussion":return"discussion";case"hub initiative":return"hubinitiative";case"hub page":case"site page":return"hubpage";case"hub event":return"hubevent";case"hub site application":case"site application":return"hubsite";case"hub project":return"hubproject";case"relational database connection":return"relationaldatabaseconnection";case"image":return"image";case"image collection":return"imagecollection";case"style":return a.includes("Dictionary")?"dictionarystyle":"style";case"desktop style":return a.includes("Dictionary")?"dictionarydesktopstyle":"desktopstyle";case"dashboard":return"dashboard";case"raster function template":return"rasterprocessingtemplate";case"vector tile package":return"vectortilepackage";case"ortho mapping project":return"orthomappingproject";case"ortho mapping template":return"orthomappingtemplate";case"solution":return"solutions";case"geopackage":return"geopackage";case"deep learning package":return"deeplearningpackage";case"real time analytic":return"realtimeanalytics";case"big data analytic":return"bigdataanalytics";case"feed":return"feed";case"excalibur imagery project":return"excaliburimageryproject";case"notebook":return"notebook";case"reality mapping project":return"realitymappingproject";case"storymap":return a.includes("storymaptemplate")?"storymapstemplate":a.includes("storymapcollection")?"storymapcollection":a.includes("storymapbriefing")?"storymapbriefing":a.includes("storymapframe")?"storymapframe":"storymap";case"survey123 add in":return"survey123addin";case"mission":return"mission";case"mission report":return"missionreport";case"mission template":return"missiontemplate";case"quickcapture project":return"quickcaptureproject";case"pro report":return"proreport";case"urban model":return"urbanmodel";case"urban project":return"urbanproject";case"web experience":return"experiencebuilder";case"web experience template":return"webexperiencetemplate";case"experience builder widget":return"experiencebuilderwidget";case"experience builder widget package":return"experiencebuilderwidgetpackage";case"workflow":return"workflow";case"insights script":return"insightsscript";case"kernel gateway connection":return"kernelgatewayconnection";case"hub initiative template":return"hubinitiativetemplate";case"storymap theme":return"storymaptheme";case"knowledge graph":return"knowledgegraph";case"knowledge studio project":return"knowledgestudio";case"knowledge graph layer":return"knowledgegraphlayer";case"native application":return"nativeapp";case"native application installer":return"nativeappinstaller";case"web link chart":return"linkchart";case"knowledge graph web investigation":return"investigation";case"ogcfeatureserver":return"features";case"pro project":return"proproject";case"insights workbook package":return"insightsworkbookpackage";case"apache parquet":return"apacheparquet";case"notebook code snippets":case"notebook code snippet library":return"notebookcodesnippets";case"suitability model":return"suitabilitymodel";case"esri classifier definition":return"classifierdefinition";case"esri classification schema":return"classificationschema";case"esri spectral library":return"spectrallibrary";case"insights data engineering workbook":return"dataengineeringworkbook";case"insights data engineering model":return"dataengineeringmodel";case"deep learning studio project":return"deeplearningproject";case"data store":return"datastore";case"data pipeline":return"datapipeline";case"parquet collection":return"datafilesgray";case"parquet feature layer":return"parquetfeaturelayer";case"service connection":return"serviceconnection";case"xr experience":return"xrexperience"}return a.includes("Document")?"datafilesgray":r.includes("service")?"layers":"maps"}var v=class extends I{constructor(){super(...arguments),this.messages=A({blocking:!0}),this.icon=null,this.displayName="",this.displayNameHosted="",this.scale="s"}static{this.properties={icon:16,displayName:16,displayNameHosted:16,item:0,serviceInfo:0,portal:0,user:0,scale:3,hideText:5,hideIcon:5,ellipsis:5,showHosted:5}}static{this.styles=V}async load(){this.item&&await this.getItemDisplayInformation()}async getItemDisplayInformation(){let{messages:r,user:a,serviceInfo:e,portal:i,item:s}=this,{displayName:o,displayNameHosted:n,icon:l}=await _({item:s,messages:r,serviceInfo:e,user:a,portal:i||s.portal});this.displayName=o,this.displayNameHosted=n,this.icon=l}render(){let{showHosted:r,displayNameHosted:a,scale:e,icon:i,hideText:s,hideIcon:o,ellipsis:n}=this;if(!i)return null;let l=r?a:this.displayName,g=l?.includes("(")?"":"&#x202D;",p=x(`./assets/portal-item-type/icons/${i}16.svg`),u=this.hideText?l:void 0;return d`${!o&&d`<span class="icon"><img src=${p??k} alt=${(u||"")??k} class=${`icon icon--${e}`}></span>`||""}${!s&&d`<span class=${M({text:!0,"text--spaced":!o,"text--ellipsis":n})} .innerHTML=${`${g}${l}`}></span>`||""}`}};D("arcgis-portal-item-type",v);return v},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{$a as L,A as z,Ab as ha,B as A,Bb as ia,C as B,Cb as ja,Db as ka,Eb as la,Sa as C,Ta as D,Ua as E,Va as F,Wa as G,Xa as H,Ya as I,Za as J,_a as K,a,ab as M,b,bb as N,c,cb as O,d,db as P,e,eb as Q,f,gb as R,h as g,hb as S,i as h,ib as T,j as i,jb as U,k as j,kb as V,l as k,lb as W,m as l,mb as X,n as m,nb as Y,o as n,ob as Z,p as o,pb as _,q as p,qb as $,r as q,rb as aa,s as r,t as s,u as t,ub as ba,v as u,vb as ca,w as v,wb as da,x as w,xb as ea,y as x,yb as fa,z as y,zb as ga}from"./B7633S2A.js";import"./YIMNOUTF.js";export{L as Annotation,H as AsyncBatchedStore,J as BaseChannel,E as BaseCheckpointSaver,k as BaseLangGraphError,G as BaseStore,K as BinaryOperatorAggregate,d as COMMAND_SYMBOL,i as Command,e as CommandInstance,ca as CompiledStateGraph,b as END,v as EmptyChannelError,u as EmptyInputError,R as Graph,l as GraphBubbleUp,o as GraphInterrupt,m as GraphRecursionError,n as GraphValueError,c as INTERRUPT,I as InMemoryStore,w as InvalidUpdateError,F as MemorySaver,da as MessageGraph,ia as MessagesAnnotation,aa as MessagesValue,ja as MessagesZodMeta,ka as MessagesZodState,x as MultipleSubgraphsError,p as NodeInterrupt,g as Overwrite,q as ParentCommand,_ as REMOVE_ALL_MESSAGES,X as ReducedValue,z as RemoteException,a as START,f as Send,ba as StateGraph,A as StateGraphInputError,Z as StateSchema,y as UnreachableNodeError,Y as UntrackedValue,W as UntrackedValueChannel,$ as addMessages,D as copyCheckpoint,C as emptyCheckpoint,ga as entrypoint,O as getConfig,P as getCurrentTaskInput,U as getJsonSchemaFromSchema,ha as getPreviousState,V as getSchemaDefaultGetter,M as getStore,B as getSubgraphsSeenSet,N as getWriter,Q as interrupt,j as isCommand,s as isGraphBubbleUp,t as isGraphInterrupt,h as isInterrupted,r as isParentCommand,T as isSerializableSchema,S as isStandardSchema,$ as messagesStateReducer,ea as pushMessage,fa as task,la as writer};
2
+ import{$a as L,A as z,Ab as ha,B as A,Bb as ia,C as B,Cb as ja,Db as ka,Eb as la,Sa as C,Ta as D,Ua as E,Va as F,Wa as G,Xa as H,Ya as I,Za as J,_a as K,a,ab as M,b,bb as N,c,cb as O,d,db as P,e,eb as Q,f,gb as R,h as g,hb as S,i as h,ib as T,j as i,jb as U,k as j,kb as V,l as k,lb as W,m as l,mb as X,n as m,nb as Y,o as n,ob as Z,p as o,pb as _,q as p,qb as $,r as q,rb as aa,s as r,t as s,u as t,ub as ba,v as u,vb as ca,w as v,wb as da,x as w,xb as ea,y as x,yb as fa,z as y,zb as ga}from"./5NIJVBS7.js";import"./YIMNOUTF.js";export{L as Annotation,H as AsyncBatchedStore,J as BaseChannel,E as BaseCheckpointSaver,k as BaseLangGraphError,G as BaseStore,K as BinaryOperatorAggregate,d as COMMAND_SYMBOL,i as Command,e as CommandInstance,ca as CompiledStateGraph,b as END,v as EmptyChannelError,u as EmptyInputError,R as Graph,l as GraphBubbleUp,o as GraphInterrupt,m as GraphRecursionError,n as GraphValueError,c as INTERRUPT,I as InMemoryStore,w as InvalidUpdateError,F as MemorySaver,da as MessageGraph,ia as MessagesAnnotation,aa as MessagesValue,ja as MessagesZodMeta,ka as MessagesZodState,x as MultipleSubgraphsError,p as NodeInterrupt,g as Overwrite,q as ParentCommand,_ as REMOVE_ALL_MESSAGES,X as ReducedValue,z as RemoteException,a as START,f as Send,ba as StateGraph,A as StateGraphInputError,Z as StateSchema,y as UnreachableNodeError,Y as UntrackedValue,W as UntrackedValueChannel,$ as addMessages,D as copyCheckpoint,C as emptyCheckpoint,ga as entrypoint,O as getConfig,P as getCurrentTaskInput,U as getJsonSchemaFromSchema,ha as getPreviousState,V as getSchemaDefaultGetter,M as getStore,B as getSubgraphsSeenSet,N as getWriter,Q as interrupt,j as isCommand,s as isGraphBubbleUp,t as isGraphInterrupt,h as isInterrupted,r as isParentCommand,T as isSerializableSchema,S as isStandardSchema,$ as messagesStateReducer,ea as pushMessage,fa as task,la as writer};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as c}from"./DFTUMKSN.js";function a(n){return new c().sanitize(n)}function f(n){let e=a(n),t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}function m(n,e){let t=n;for(;t;){if(t.matches?.(e))return t;let i=t.closest(e);if(i)return i;let s=t.getRootNode?.();t=s instanceof ShadowRoot?s.host:t.parentElement}}var r=document.createElement("canvas").getContext("2d"),o={},d=({text:n,font:e})=>{if(e&&(o[e]=o[e]||{},o[e][n]))return o[e][n];if(!r)return n.length*8;r.font=e||"14px 'Avenir Next'";let t=r.measureText(n);return e&&(o[e][n]=t.width),t.width};export{a,f as b,m as c,d};
@@ -0,0 +1,22 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import"./YIMNOUTF.js";var e=`## Membership Bind Parameters
3
+
4
+ The current link chart contains a subset of entities and relationships from the database. Their membership is available to Cypher queries as lists of string identifiers through these bind parameters:
5
+
6
+ - $entityIds
7
+ - $relationshipIds
8
+
9
+ If, and ONLY if, the user is asking for data to be limited by the records already on 'the current link chart', 'my link chart', or similar, the generated Cypher should filter using these parameters.
10
+
11
+ ### START EXAMPLES
12
+
13
+ User request: 'Add all records that are connected to people on this link chart to the link chart'
14
+ Context: 'Person' entity in data model.
15
+ Expected Result: MATCH (n:Person)-[r]->(m) WHERE id(n) IN $entityIds return r, m
16
+
17
+ User request: 'Add all the suppliers to the link chart'
18
+ Context: 'Supplier' entity in the data model.
19
+ Expected Result: MATCH (s:Supplier) RETURN s
20
+
21
+ ### END EXAMPLES
22
+ `;export{e as default};
@@ -36,8 +36,14 @@ This is the order of preference in case of overlap:
36
36
 
37
37
  For example, "Where is Yosemite National Park". This is an address, but:
38
38
  A map that contains a bookmark with Yosemite National Park should prefer the bookmark.
39
- A map that has the National Parks layer, for example, should prefer the feature.
40
- If these do not exist, geocode and go to that address.
39
+ If bookmark does not exist, a map that has the National Parks layer, for example, should prefer the feature.
40
+ If both of these do not exist, geocode and go to that address.
41
+
42
+ Additional mapping guidance:
43
+
44
+ - "zoom/go to [layer]" with no filter \u2192 prefer \`goToLayer\`.
45
+ - "zoom/go to [features] where/with ..." (has a condition/filter) \u2192 prefer \`goToFeatures\`.
46
+ - Explicit numeric zoom/scale/viewpoint requests \u2192 prefer the matching zoom/scale/viewpoint tool.
41
47
 
42
48
  Return the name of the tool as a string.
43
49
  `;export{e as default};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import b from"./NZVLEDFZ.js";import a from"./JEXN44WM.js";import"./QUEBM77K.js";import{L as o,R as s,j as e,v as r}from"./ZZ4DR3HN.js";import"./YIMNOUTF.js";export default $arcgis.t(([,{c:n}])=>{var c=960,i=class extends o{constructor(){super(...arguments),this.options=[],this.view="",this.viewText="View",this.store=n(),this.arcgisBrowserViewChange=r()}static{this.properties={options:0,view:1,viewText:1,store:0}}renderOption(t){return e`<calcite-dropdown-item .selected=${t.value===this.view} @calciteDropdownItemSelect=${()=>{this.arcgisBrowserViewChange.emit(t.value)}} .iconStart=${t.value} icon-flip-rtl=start>${t.title}</calcite-dropdown-item>`}renderButton(){let t=this.options.find(a=>a.value===this.view),l=this.store.width||window.innerWidth;return e`<calcite-button class="button" slot=trigger scale=m appearance=outline-fill kind=neutral .iconStart=${t?.value} icon-flip-rtl=start .label=${`${this.viewText}: ${t?.title||""}`}>${l>c?t?.title:null}</calcite-button>`}render(){return e`<calcite-dropdown placement=bottom-end scale=m overlay-positioning=fixed width=s>${this.renderButton()}<calcite-dropdown-group selection-mode=single>${this.options.map(t=>this.renderOption(t))}</calcite-dropdown-group></calcite-dropdown>`}};s("arcgis-portal-browser-view",i);return i},a,b)
@@ -39,10 +39,13 @@ Prior steps:
39
39
  Last navigated features from shared state (if available):
40
40
  {lastNavigatedFeatures}
41
41
 
42
+ Last resolved location from shared state (if available):
43
+ {lastResolvedLocation}
44
+
42
45
  Use the assigned task as the primary instruction for the current query.
43
46
  Use the latest user request as supporting context when needed.
44
47
  Use prior steps only when the assigned task or user request clearly depends on earlier results.
45
- Use lastNavigatedFeatures as authoritative context for map-navigation references when present.
48
+ Use shared-state context (\`lastResolvedLocation\`, \`lastNavigatedFeatures\`) for referential follow-ups when relevant.
46
49
  Use chat history only when necessary to understand conversational references, and do not override the assigned task.
47
50
 
48
51
  ### Anchor selection rule (strict, single source of truth)
@@ -50,8 +53,9 @@ Use chat history only when necessary to understand conversational references, an
50
53
  When the request is referential (for example: "this", "it", "that", "those", "them", "of those", "the same one(s)"), choose exactly one anchor using this priority order:
51
54
 
52
55
  1. Explicit entity named in the current request (if present)
53
- 2. \`lastNavigatedFeatures\` (if present)
54
- 3. The immediately previous successful relevant step from \`priorSteps\`
56
+ 2. \`lastResolvedLocation\` (if present and the request refers to a place/location)
57
+ 3. \`lastNavigatedFeatures\` (if present)
58
+ 4. The immediately previous successful relevant step from \`priorSteps\`
55
59
 
56
60
  After selecting the anchor, keep that anchor for this query and do not switch to an older entity.
57
61
  If \`lastNavigatedFeatures\` is used as the anchor, reuse its \`layerId\` and \`where\` for query scope unless the current request explicitly overrides it.
@@ -78,7 +82,8 @@ Start with a fresh WHERE clause for each new question. Do not inherit filters fr
78
82
 
79
83
  This is an exception to the "fresh WHERE clause" rule above.
80
84
 
81
- - If the anchored context indicates \`useCurrentExtent: true\`, use \`useCurrentExtent: true\` with \`where: "1=1"\`.
85
+ - If the anchored context is \`lastResolvedLocation\` with a point, prefer \`geometryFilter.point\` and use \`where: "1=1"\` unless the user asked for additional attribute filters.
86
+ - Only use \`useCurrentExtent: true\` when the user explicitly asks about the current view/map extent (for example: "in my view", "on my map", "visible now").
82
87
  - If the anchored context includes specific feature IDs/objectIds, scope to those IDs.
83
88
  - Otherwise, use the anchored \`layerId\` + \`where\` combination.
84
89
 
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as w,b as $,c as y,d as x,e as v,f as T}from"./6AGZRMJC.js";import{a as f}from"./6XWNBD36.js";import"./G2YAOSMT.js";import"./QUEBM77K.js";import{L as h,M as m,O as u,R as b,h as g,j as n}from"./ZZ4DR3HN.js";import"./YIMNOUTF.js";var S=({appearance:t,badgeType:e,class:a,messages:i,scale:o,showTooltip:r,width:p})=>{let s=i[e]??{title:e,tooltip:""},O=U[e],l=p==="narrow",d=`portal-group-badge-${e}`;return n`<calcite-chip id=${d??u} class=${m({badge:!0,"badge--red":e==="SharedUpdate",narrow:l,[`narrow--${o}`]:l,[a]:!0})} .value=${e} tabindex=0 .scale=${o} .appearance=${t} .label=${s.title} .icon=${O}>${l?null:s.title}</calcite-chip>${r?n`<calcite-tooltip .referenceElement=${d} close-on-click placement=bottom-start offset-distance=6 offset-skidding=0>${l?n`<h3 class="tooltip-title">${s.title}</h3>`:null}<p class="tooltip-text">${s.tooltip}</p></calcite-tooltip>`:null}`},U={Collaboration:"collaboration",FeaturedContent:"home",Gallery:"images",OpenData:"open-data",SharedUpdate:"configure-editing",Partnered:"partnered-collaboration",AnyOrg:"zoom-to-object"},_=g`:host{display:flex;flex-wrap:wrap}.portal-group-badges__badge{display:inline-block;margin-inline-end:.25rem}.badge{--portal-group-badge-color: var(--calcite-color-brand);border:0}.badge--red{--portal-group-badge-color: var(--calcite-color-status-danger)}.narrow{box-sizing:border-box;width:2rem;--calcite-chip-spacing-unit-l: 0}.image{border-radius:0;display:inline-flex;align-items:center;justify-content:center;margin-inline-start:.5rem}.image svg{color:var(--portal-group-badge-color)}.narrow--s{width:1.5rem;.image{margin-inline-start:0}}.narrow--m{.image{margin-inline-start:0}}.narrow--l{width:2.75rem;.image{margin-inline-start:.25rem}}.tooltip-title{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);margin:0 0 .25rem;padding:0}.tooltip-text{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-1);margin:0;padding:0}`;function z(t,e){let a=[],i=$(t),o=y(t),r=x(t);return e.id&&(i.includes("updateitemcontrol")&&a.push("SharedUpdate"),v(t)&&o===e.id&&a.push("OpenData"),e.featuredItemsGroupQuery===`id:${t.id}`&&a.push("Gallery")),(w(t).collaborationInfo?.collaborationId||T(t))&&a.push("Collaboration"),!r&&!e.isPortal&&o!=="none"&&a.push("AnyOrg"),r==="collaboration"&&a.push("Partnered"),a.includes("SharedUpdate")&&!a.includes("Partnered")&&o!==e.id&&a.splice(a.indexOf("SharedUpdate"),1),a}var c=class extends h{constructor(){super(...arguments),this._messages=f({blocking:!0}),this.badges=[],this.width="full",this.scale="m",this.showTooltips=!1,this.empty=!1}static{this.properties={badges:16,group:0,portal:0,width:1,appearance:1,scale:1,showTooltips:5,empty:7}}static{this.styles=_}willUpdate(e){(e.has("group")||e.has("portal"))&&(this.badges=this.group&&this.portal?z(this.group,this.portal):[],this.empty=this.badges.length===0)}render(){let{appearance:e,badges:a,scale:i,showTooltips:o,width:r}=this;return a.map(p=>S({appearance:e,badgeType:p,class:"portal-group-badges__badge",messages:this._messages,scale:i,showTooltip:o,width:r}))}};b("arcgis-portal-group-badges",c);export{c as ArcgisPortalGroupBadges};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as u,b as g,c as k}from"./5VSDGPHH.js";export default $arcgis.t(([q,x])=>{var c={},l={},d={};async function y({requester:t,key:r,id:o,cacheOption:a}){let e=d[r]?.[o]?.expireAt,n=!!e&&new Date().getTime()>e;if(c[r]?.[o]&&!n)return c[r][o];l[r]||(l[r]={}),(!l[r][o]||n)&&(l[r][o]=t());let i=await l[r][o];if(c[r]||(c[r]={}),d[r]||(d[r]={}),c[r][o]=i,a){let{expireAfter:m,getExpireAfterFromResult:s}=a,f=s||m?new Date().getTime()+(s?.(i)??m??0):null;d[r][o]={...d[r][o],expireAt:f}}return i}async function A({url:t,portal:r,params:o={},options:a={},method:e,abortControllerId:n,excludeJson:i}){let m=T(n)?.signal,{customToken:s,addTokenManually:f,addSSL:S,useProxy:b}=a,w={...o};if(!t.includes("f=")&&!i&&(w.f="json"),s)w.token=s;else if(f!==!1){let h=await E(r);h&&(w.token=h)}let C=S?M(t,r):t,P={query:w,method:e||"auto",...a,timeout:a.timeout||0,useProxy:b,...a?.disableIdentityLookup?{authMode:"anonymous"}:{}},$=await x(C,{signal:m,...P});return n&&(p[n]=void 0),$.data}var p={};function T(t){if(t)return p[t]&&p[t].abort(),p[t]=new AbortController,p[t]}var E=async t=>{let r=k(t);if(!t?.isPortal||!r)return g(t);let o=t?.user;if(!o&&r)return;let{token:a}=await y({requester:async()=>await I(t),key:"platformSelf",id:o?.id??t.id??"<unknown>",cacheOption:{getExpireAfterFromResult:e=>e.expires_in}});return a},I=async t=>{let r={"X-Esri-Auth-Client-Id":await L(t),"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/u,"")};return(await x(`${u(t)}/oauth2/platformSelf`,{authMode:"no-prompt",headers:r,withCredentials:!0,method:"post"})).data},L=async t=>(await y({requester:async()=>await q.getCredential(u(t),{oAuthPopupConfirmation:!1}),key:"credential",id:t.user?.id??"<unknown>"})).oAuthState?.appId??"arcgisonline";function M(t,r){return window.location.protocol==="https:"||r.allSSL?t.replace("http:","https:"):t}async function D(t,r,o){let a=`${o?"https://www.arcgis.com/sharing/rest/":u(r)}community/users/${t}`,e=a?.includes("www.arcgis.com")&&r.isPortal,n=a?.includes(".arcgis.com")&&!r.isPortal&&!r.user,i=e||n?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await y({requester:async()=>{try{return await A({url:a,portal:r,options:i})}catch{return{username:t}}},key:"user",id:a})}var U=async t=>{let r=`${u(t)}/portals/${t.id}/users`;return await A({url:r,portal:t,params:{num:100,sortField:"lastlogin",sortOrder:"desc"}})};return{a:y,b:D,c:U}},"identity/IdentityManager","request")
2
+ import{a as u,b as g,c as k}from"./6W2IHKCA.js";export default $arcgis.t(([q,x])=>{var c={},l={},d={};async function y({requester:t,key:r,id:o,cacheOption:a}){let e=d[r]?.[o]?.expireAt,n=!!e&&new Date().getTime()>e;if(c[r]?.[o]&&!n)return c[r][o];l[r]||(l[r]={}),(!l[r][o]||n)&&(l[r][o]=t());let i=await l[r][o];if(c[r]||(c[r]={}),d[r]||(d[r]={}),c[r][o]=i,a){let{expireAfter:m,getExpireAfterFromResult:s}=a,f=s||m?new Date().getTime()+(s?.(i)??m??0):null;d[r][o]={...d[r][o],expireAt:f}}return i}async function A({url:t,portal:r,params:o={},options:a={},method:e,abortControllerId:n,excludeJson:i}){let m=T(n)?.signal,{customToken:s,addTokenManually:f,addSSL:S,useProxy:b}=a,w={...o};if(!t.includes("f=")&&!i&&(w.f="json"),s)w.token=s;else if(f!==!1){let h=await E(r);h&&(w.token=h)}let C=S?M(t,r):t,P={query:w,method:e||"auto",...a,timeout:a.timeout||0,useProxy:b,...a?.disableIdentityLookup?{authMode:"anonymous"}:{}},$=await x(C,{signal:m,...P});return n&&(p[n]=void 0),$.data}var p={};function T(t){if(t)return p[t]&&p[t].abort(),p[t]=new AbortController,p[t]}var E=async t=>{let r=k(t);if(!t?.isPortal||!r)return g(t);let o=t?.user;if(!o&&r)return;let{token:a}=await y({requester:async()=>await I(t),key:"platformSelf",id:o?.id??t.id??"<unknown>",cacheOption:{getExpireAfterFromResult:e=>e.expires_in}});return a},I=async t=>{let r={"X-Esri-Auth-Client-Id":await L(t),"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/u,"")};return(await x(`${u(t)}/oauth2/platformSelf`,{authMode:"no-prompt",headers:r,withCredentials:!0,method:"post"})).data},L=async t=>(await y({requester:async()=>await q.getCredential(u(t),{oAuthPopupConfirmation:!1}),key:"credential",id:t.user?.id??"<unknown>"})).oAuthState?.appId??"arcgisonline";function M(t,r){return window.location.protocol==="https:"||r.allSSL?t.replace("http:","https:"):t}async function D(t,r,o){let a=`${o?"https://www.arcgis.com/sharing/rest/":u(r)}community/users/${t}`,e=a?.includes("www.arcgis.com")&&r.isPortal,n=a?.includes(".arcgis.com")&&!r.isPortal&&!r.user,i=e||n?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await y({requester:async()=>{try{return await A({url:a,portal:r,options:i})}catch{return{username:t}}},key:"user",id:a})}var U=async t=>{let r=`${u(t)}/portals/${t.id}/users`;return await A({url:r,portal:t,params:{num:100,sortField:"lastlogin",sortOrder:"desc"}})};return{a:y,b:A,c:D,d:U}},"identity/IdentityManager","request")
@@ -97,6 +97,20 @@ Do not reinterpret the request into a different form.
97
97
 
98
98
  ---
99
99
 
100
+ ## Follow-up Reference Resolution
101
+
102
+ If the latest user request refers to prior results or prior context using a referential phrase such as "these", "those", "them", "that set", "the previous results", "this", "it", "that one", "this parcel", "this location", or "that feature", then the request depends on earlier context.
103
+
104
+ This also applies to equivalent referential wording in other languages.
105
+
106
+ Resolve the reference using the most recent relevant chat history or successful prior step.
107
+
108
+ In this case, the \`assignedTask\` should be standalone and should preserve the referenced prior constraints while adding only the new constraint or question from the latest user request.
109
+
110
+ Do not leave ambiguous references like "these", "those", "them", "this", or "it" in \`assignedTask\` when they can be resolved from context.
111
+
112
+ ---
113
+
100
114
  ## Assigned Task Guidelines (IMPORTANT)
101
115
 
102
116
  - The \`assignedTask\` must match the user\u2019s request exactly in meaning
@@ -106,6 +120,8 @@ Do not reinterpret the request into a different form.
106
120
 
107
121
  - Keep the task short, specific, and directly executable
108
122
  - Keep wording close to the user\u2019s request with minimal transformation
123
+ - When resolving follow-up references, only replace the ambiguous reference with the resolved prior context; keep the rest of the user\u2019s wording as close as possible.
124
+
109
125
  - Use only information explicitly present in the user request or provided context
110
126
 
111
127
  - The \`assignedTask\` may represent only part of the user\u2019s request when multiple steps are necessary
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{A as o,B as a,k as r,l as s,z as n}from"./DHHSKOUY.js";var i=class extends a{constructor(t){if(super(t),this.it=s,t.type!==n.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===s||t==null)return this._t=void 0,this.it=t;if(t===r)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};i.directiveName="unsafeHTML",i.resultType=1;var f=o(i);export{f as a};
2
+ import{A as n,B as o,C as a,k as r,l as s}from"./ZZ4DR3HN.js";var i=class extends a{constructor(t){if(super(t),this.it=s,t.type!==n.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===s||t==null)return this._t=void 0,this.it=t;if(t===r)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};i.directiveName="unsafeHTML",i.resultType=1;var f=o(i);export{f as a};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{b as w}from"./I234NUZ5.js";import{a as v}from"./6XWNBD36.js";import"./G2YAOSMT.js";import"./QUEBM77K.js";import{J as r,K as a,L as u,O as p,R as m,h as d,j as s}from"./ZZ4DR3HN.js";import"./YIMNOUTF.js";var b=d`:host{display:flex;justify-content:flex-end;margin-inline:1rem;position:relative}.wrapper{padding-inline-start:.25rem;display:flex;border-inline-start:1px solid var(--calcite-color-border-1);border-inline-end:1px solid var(--calcite-color-border-1)}.tooltip-container{width:9rem}.button{margin-inline-end:.25rem}.measure-container{position:absolute;width:100%;height:0;overflow:hidden}.measure-text{visibility:hidden;height:0;width:auto;overflow:hidden;font-size:var(--calcite-font-size--1)}`,c=class extends u{constructor(){super(...arguments),this.measureText=r(),this.overflowButton=r(),this.resizeObserver=null,this.actionWidths=[],this._messages=v({name:"portal-browser",blocking:!0}),this.buttonPadding=88,this.moreWidth=0,this.elementWidth=0,this.visibleActions=[],this.overflowActions=[],this.calculating=!1,this.actions=[]}static{this.properties={visibleActions:16,overflowActions:16,calculating:16,actions:0,selection:0}}static{this.styles=b}async restoreFocus(){this.lastExecutedAction?.setFocus()}willUpdate(t){t.has("actions")&&(this.measureAndCacheWidths(this.actions),this.calculateOverflow()),t.has("selection")&&(this.selection?.length?w(100).then(()=>{this.calculating=!1}):this.calculating=!0)}firstUpdated(){this.measureAndCacheWidths(this.actions),this.calculateOverflow(),!(typeof ResizeObserver>"u")&&(this.resizeObserver=new ResizeObserver(t=>{for(let e of t)e.contentRect.width>0&&(this.elementWidth=e.contentRect.width,this.calculateOverflow())}),this.resizeObserver.observe(this.el))}disconnectedCallback(){this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}measureAndCacheWidths(t){let e=this.measureText.value;if(!e)return;this.actionWidths=t.map(o=>(e.textContent=o.text,{action:o,width:e.offsetWidth+this.buttonPadding}));let i=this._messages.actions.more;e.textContent=i,this.moreWidth=e.scrollWidth+this.buttonPadding}calculateOverflow(){let t=this.moreWidth,e=this.actionWidths.reduce(({width:i,visible:o,overflow:l},{action:h,width:f})=>{let n=i+f;return n>=this.elementWidth?{width:n,visible:o,overflow:[...l,h]}:{width:n,visible:[...o,h],overflow:l}},{visible:[],overflow:[],width:t});this.visibleActions=e.visible,this.overflowActions=e.overflow}renderButton(t){let e=t.id||`${t.text}-${t.icon||"none"}`;return s`<div><calcite-button class="button" .iconStart=${t.icon} @click=${i=>{this.lastExecutedAction=i.currentTarget,t.onClick()}} appearance=transparent kind=neutral id=${e??p}>${t.text}</calcite-button>${t.tooltip&&s`<calcite-tooltip .referenceElement=${e}><span class="tooltip-container">${t.tooltip}</span></calcite-tooltip>`||""}</div>`}render(){let t=this.overflowActions.length>0,e=this._messages.actions.more;return s`<div><span class="measure-container"><span class="measure-text" aria-hidden ${a(this.measureText)}></span></span>${!!this.selection?.length&&(this.visibleActions.length>0||t)&&!this.calculating&&s`<nav class="wrapper">${this.visibleActions.map(i=>this.renderButton(i))}${t&&s`<calcite-dropdown width=m placement=bottom-end><calcite-button slot=trigger kind=neutral icon-end=chevron-down appearance=transparent ${a(this.overflowButton)}>${e}</calcite-button><calcite-dropdown-group selection-mode=none>${this.overflowActions.map(i=>s`<calcite-dropdown-item .iconStart=${i.icon||"blank"} @calciteDropdownItemSelect=${()=>{this.lastExecutedAction=this.overflowButton.value||void 0,i.onClick()}}>${i.text}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown>`||""}</nav>`||""}</div>`}};m("arcgis-portal-browser-actions",c);export{c as ArcgisPortalBrowserActions};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import b from"./WSNLUGEP.js";import{a as D}from"./2XILGLOG.js";import a from"./HMBSJR37.js";import"./6W2IHKCA.js";import{a as R}from"./ECNI2A4K.js";import{b as E}from"./G2YAOSMT.js";import"./QUEBM77K.js";import{J as M,K as g,L as S,M as v,R as k,h as A,j as d,v as u}from"./ZZ4DR3HN.js";import"./YIMNOUTF.js";export default $arcgis.t(([{a:P,d:L},{a:x,d:O}])=>{var y=["@","#","$"],F=400;function q(n,t){let a=null;for(let l of t){let r=l.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),s=new RegExp(`${r}"([^"\\n]*)"?$`,"u"),e=n.match(s);if(e){let c=e[0],o=n.length-c.length,h=e[1]??"";(!a||o>a.startIndex)&&(a={starter:l,mentionText:c,query:h,startIndex:o})}let i=new RegExp(`${r}[\\p{L}\\p{N}_-]+$`,"u"),m=n.match(i);if(m){let c=m[0],o=n.length-c.length,h=c.slice(l.length);(!a||o>a.startIndex)&&(a={starter:l,mentionText:c,query:h,startIndex:o})}}return a}var U=n=>y.includes(n)?n:"@",N=E(n=>{let t=[],a=async s=>await x({requester:async()=>await L(n.portal,s,{num:3}),key:"items",id:s}),l=async s=>await x({requester:async()=>await P(n.portal,{query:`title:${s}`,num:3}),key:"groups",id:s}),r=R(async(s,e)=>{n.isFetchingEntities=!0;let i=s.toLowerCase();switch(U(e)){case"@":let m=10;n.filteredItemsInfo={type:"user",items:t.filter(h=>h.username?.toLowerCase().includes(i)||h.fullName?.toLowerCase().includes(i)).slice(0,m)};break;case"#":let{result:c}=await a(i);n.filteredItemsInfo={type:"item",items:c?.results??[]};break;case"$":let{results:o}=await l(i);n.filteredItemsInfo={type:"group",items:o};break}(n.filteredItemsInfo?.items?.length??0)===0&&await n.closePopover(),n.isFetchingEntities=!1},F);return{fetchUsers:async()=>{try{let{users:s}=await O(n.portal);t=s??[]}catch(s){t=[],console.error("error fetching org users:",s)}},filterItems:r,getItemText:(s,e)=>{let i="";switch(U(e)){case"@":i=s.username;break;case"#":i=s.title??"";break;case"$":i=s.title??"";break}return i.trim()}}}),$=({id:n,label:t,selected:a,description:l,contentStart:r,onSelect:s})=>D(n,d`<calcite-list-item class=${v({selected:a})} .label=${t} .description=${l} .selected=${a} @pointerdown=${async e=>{e.preventDefault(),e.stopPropagation(),await s()}} ${g(e=>{a&&e&&e.scrollIntoView({block:"nearest",behavior:"smooth"})})}>${r}</calcite-list-item>`),K=A`.selected{--calcite-list-background-color: var(--calcite-color-foreground-2)}.mentionable-list{max-height:13rem;overflow-y:auto;padding:.25rem;width:min(100vw,24rem)}.mentionable-list--loading{min-height:10rem}`,w=class extends S{constructor(){super(...arguments),this.calciteTextAreaRef=M(),this.mentionableEntityController=N(this),this.handleInput=t=>{let{bubbleNewValueChange:a,checkForMention:l}=this,r=t.target.value;this._value=r,a(this._value);let s=this.nativeTextAreaRef?.selectionStart??0;l(r,s)},this.handleKeyDown=t=>{if(!this.popoverOpen){this.arcgisUserMentionableTextAreaKeyDown.emit(t),this.arcgisMentionableTextAreaKeyDown.emit(t);return}switch(t.key){case"ArrowDown":t.preventDefault(),this.selectedItemIndex=Math.min(this.selectedItemIndex+1,this.filteredItems.length-1);break;case"ArrowUp":t.preventDefault(),this.selectedItemIndex=Math.max(this.selectedItemIndex-1,0);break;case"Enter":t.preventDefault(),this.selectItem(this.filteredItems[this.selectedItemIndex]);break;case"Escape":t.preventDefault(),this.closePopover.bind(this)();break}},this.handleClosePopover=()=>{this.popoverOpen=!1,this.currentMentionQuery="",this.selectedItemIndex=0,this.currentStarter=null},this.bubbleNewValueChange=t=>{this.arcgisUserMentionableTextAreaChange.emit(t),this.arcgisMentionableTextAreaChange.emit(t)},this.checkForMention=(t,a)=>{let l=t.substring(0,a),r=q(l,this.starters??y);if(r){let{starter:s}=r;this.currentStarter=s,this.filterMentionItems(r),this.popoverOpen=!0;return}this.handleClosePopover()},this.filterMentionItems=t=>{let{mentionText:a,query:l,starter:r,startIndex:s}=t;this.currentMentionQuery=a,this.mentionStartPosition=s;let e=l.toLowerCase();this.mentionableEntityController.filterItems(e,r),this.selectedItemIndex=0},this.popoverOpen=!1,this.currentMentionQuery="",this.mentionStartPosition=0,this.selectedItemIndex=0,this.currentStarter=null,this._value="",this.filteredItemsInfo=null,this.isFetchingEntities=!1,this.popoverPlacement="bottom-start",this.disabled=!1,this.scale="m",this.rows=3,this.starters=y,this.readOnly=!1,this.arcgisMentionableSelectedIndexChange=u(),this.arcgisMentionableTextAreaChange=u(),this.arcgisMentionableTextAreaKeyDown=u(),this.arcgisUserMentionableTextAreaChange=u(),this.arcgisUserMentionableTextAreaKeyDown=u(),this.renderItemInfo=()=>{let{filteredItemsInfo:t,selectedItemIndex:a,portal:l}=this;if(!t)return null;let{items:r,type:s}=t;switch(s){case"user":return r.map((e,i)=>$({id:e.id,label:`@${e.username}`,description:e.fullName,selected:i===a,contentStart:d`<arcgis-portal-user-avatar slot=content-start .user=${e} .portal=${l} scale=m></arcgis-portal-user-avatar>`,onSelect:async()=>await this.selectItem(e)}));case"item":return r.map((e,i)=>$({id:e.id??`item-${i}`,label:`#${e.title}`,description:e.id??void 0,selected:i===a,onSelect:async()=>await this.selectItem(e),contentStart:d`<calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar>`}));case"group":return r.map((e,i)=>$({id:e.id??`group-${i}`,label:`${e.title}`,description:e.id??void 0,selected:i===a,onSelect:async()=>await this.selectItem(e),contentStart:d`<calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar>`}))}}}static{this.properties={popoverOpen:16,currentMentionQuery:16,mentionStartPosition:16,selectedItemIndex:16,currentStarter:16,_value:16,filteredItemsInfo:16,isFetchingEntities:16,popoverListLabel:1,popoverPlacement:1,disabled:5,portal:0,user:0,scale:1,value:1,maxLength:9,rows:9,starters:0,placeholder:1,readOnly:5}}static{this.styles=K}get filteredItems(){return this.filteredItemsInfo?.items??[]}async closePopover(){this.handleClosePopover()}async focusTextArea(){await this.calciteTextAreaRef.value?.setFocus()}async selectItem(t){let{currentStarter:a,_value:l,mentionStartPosition:r,currentMentionQuery:s,handleClosePopover:e,calciteTextAreaRef:i,nativeTextAreaRef:m,bubbleNewValueChange:c}=this;if(!t||!a)return;let o=this.mentionableEntityController.getItemText(t,a).replaceAll('"',"").trim(),h=/\s/u.test(o)?`${a}"${o}"`:`${a}${o}`,f=(l??"").substring(0,r),p=(l??"").substring(r+s.length),I=`${f}${h} ${p}`;this._value=I,c(this._value);let b=r+h.length+1;e(),await this.updateComplete,i.value?.setFocus(),m&&(m.selectionEnd=b)}willUpdate(t){t.has("value")&&(this._value=this.value??""),t.has("selectedItemIndex")&&this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex)}loaded(){this.updateComplete.then(()=>{let t=this.calciteTextAreaRef.value?.shadowRoot?.querySelector("textarea");t&&(this.nativeTextAreaRef=t)}),this.mentionableEntityController.fetchUsers()}render(){let{popoverPlacement:t,scale:a,_value:l,maxLength:r,rows:s,placeholder:e,readOnly:i,popoverOpen:m,closePopover:c,handleInput:o,handleKeyDown:h,disabled:f,isFetchingEntities:p,filteredItemsInfo:I,renderItemInfo:b,popoverListLabel:C}=this,T=this.calciteTextAreaRef.value,_=I?.items??[];return d`<calcite-text-area .placeholder=${e} .value=${l} .maxLength=${r} .rows=${s} .scale=${a} .readOnly=${i} .disabled=${f} @blur=${c} @calciteTextAreaInput=${o} @keydown=${h} ${g(this.calciteTextAreaRef)}></calcite-text-area>${T&&d`<calcite-popover .open=${m} .placement=${t} class="mention-popover" .label=${C} .referenceElement=${T} trigger-disabled pointer-disabled focus-trap-disabled><div class=${v({"mentionable-list":!0,"mentionable-list--loading":p})}>${p&&d`<calcite-scrim .loading=${p}></calcite-scrim>`||""}${_.length>0&&d`<calcite-list .label=${C}>${b()}</calcite-list>`||""}</div></calcite-popover>`||""}`}};k("arcgis-portal-mentionable-text-area",w);return w},a,b)