@arcgis/portal-components 5.2.0-next.7 → 5.2.0-next.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cdn/24L3PS2J.js +2 -0
- package/dist/cdn/2BUE3JLM.js +2 -0
- package/dist/cdn/2C6GSZLF.js +2 -0
- package/dist/cdn/2GBRZSEC.js +2 -0
- package/dist/cdn/2IIE3YY2.js +660 -0
- package/dist/cdn/2RMN34M3.js +2 -0
- package/dist/cdn/2WI5FBDF.js +2 -0
- package/dist/cdn/3CGDAKQD.js +2 -0
- package/dist/cdn/3IA7YX3J.js +2 -0
- package/dist/cdn/{GQFWFZXP.js → 3OBIA66A.js} +1 -1
- package/dist/cdn/3VHKKQKD.js +2 -0
- package/dist/cdn/4JYY326A.js +2 -0
- package/dist/cdn/4Q6KHGPX.js +2 -0
- package/dist/cdn/4QA4AYHJ.js +3 -0
- package/dist/cdn/556LTKMV.js +2 -0
- package/dist/cdn/55FL7WQV.js +2 -0
- package/dist/cdn/56LBNVWI.js +2 -0
- package/dist/cdn/5GK4VL6E.js +2 -0
- package/dist/cdn/5YULDF4I.js +2 -0
- package/dist/cdn/{7WZHZP6U.js → 63THOLAY.js} +9 -3
- package/dist/cdn/66QLSGRO.js +2 -0
- package/dist/cdn/{DHHSKOUY.js → 6BUBZ7WC.js} +1 -1
- package/dist/cdn/6KVA4AKM.js +2 -0
- package/dist/cdn/6TO2BYXU.js +2 -0
- package/dist/cdn/7FER4S6E.js +2 -0
- package/dist/cdn/7X4JEFCG.js +2 -0
- package/dist/cdn/7XINE67Y.js +2 -0
- package/dist/cdn/A4AA5T6M.js +2 -0
- package/dist/cdn/{WOZDQW3S.js → AAHGOYVY.js} +1 -1
- package/dist/cdn/ABNBGV65.js +2 -0
- package/dist/cdn/ADHQAGMF.js +2 -0
- package/dist/cdn/{QNUYUNEY.js → AQLILDJK.js} +1 -1
- package/dist/cdn/AVMIEBYN.js +2 -0
- package/dist/cdn/B5OENWBU.js +2 -0
- package/dist/cdn/{ZTHTFEYA.js → BGQ633WP.js} +1 -1
- package/dist/cdn/{DKBTJJMW.js → C7ZFXRPS.js} +1 -1
- package/dist/cdn/CFBSBZSS.js +2 -0
- package/dist/cdn/CZQEMMJG.js +2 -0
- package/dist/cdn/{GT26WGJS.js → D4VYYWA6.js} +1 -1
- package/dist/cdn/EBYEZR4N.js +2 -0
- package/dist/cdn/EDPNHNQ2.js +2 -0
- package/dist/cdn/F3ODJVJC.js +2 -0
- package/dist/cdn/FH2SJYYU.js +2 -0
- package/dist/cdn/FL3NSFMY.js +2 -0
- package/dist/cdn/FLXTOBVV.js +2 -0
- package/dist/cdn/G4HKVJ53.js +2 -0
- package/dist/cdn/GIV4XNVY.js +2 -0
- package/dist/cdn/GRQL4XCF.js +2 -0
- package/dist/cdn/H2WZ3ZHI.js +2 -0
- package/dist/cdn/IJ3CLFAU.js +22 -0
- package/dist/cdn/IX2DKW34.js +2 -0
- package/dist/cdn/JTIPENXE.js +2 -0
- package/dist/cdn/JVGCIDQW.js +2 -0
- package/dist/cdn/{3PAHY5KA.js → KNRJ3WXR.js} +1 -1
- package/dist/cdn/L2BME3WC.js +2 -0
- package/dist/cdn/{F6V7MLPY.js → L6KBBJEC.js} +1 -1
- package/dist/cdn/LI7PX6XN.js +2 -0
- package/dist/cdn/LRADZ46B.js +2 -0
- package/dist/cdn/M7DQVQO6.js +2 -0
- package/dist/cdn/N4PON7TR.js +2 -0
- package/dist/cdn/NDMJK6MD.js +66 -0
- package/dist/cdn/OBBYT2AV.js +2 -0
- package/dist/cdn/{53MSUMA3.js → OT4PZJNB.js} +17 -1
- package/dist/cdn/P5PUXFZT.js +2 -0
- package/dist/cdn/PGCNY5GO.js +451 -0
- package/dist/cdn/QE4CNVDQ.js +34 -0
- package/dist/cdn/{AQWTJKUH.js → QKCV7CY2.js} +10 -8
- package/dist/cdn/QS3GXAIH.js +2 -0
- package/dist/cdn/QZD2UBOW.js +2 -0
- package/dist/cdn/RMXAPW7B.js +2 -0
- package/dist/cdn/RPFWESQ4.js +2 -0
- package/dist/cdn/RVCPNNVS.js +2 -0
- package/dist/cdn/SLSCUAED.js +2 -0
- package/dist/cdn/SLTFLCVR.js +99 -0
- package/dist/cdn/TGTT2CVD.js +2 -0
- package/dist/cdn/{DXCPWJU4.js → TKCE4WYE.js} +1 -1
- package/dist/cdn/TQLHU3PC.js +2 -0
- package/dist/cdn/UUGX7XW6.js +2 -0
- package/dist/cdn/UZCHLKLO.js +2 -0
- package/dist/cdn/UZLQALHY.js +2 -0
- package/dist/cdn/V4EVETH3.js +2 -0
- package/dist/cdn/{RR4BIAPA.js → V4EYW3O6.js} +1 -1
- package/dist/cdn/V6VNED6L.js +2 -0
- package/dist/cdn/V6ZHHCLD.js +2 -0
- package/dist/cdn/VMQIDO4Z.js +2 -0
- package/dist/cdn/{74XFARCV.js → VW7DSKPH.js} +1 -1
- package/dist/cdn/W2SYL7IJ.js +71 -0
- package/dist/cdn/{LQ3DMZ3K.js → W3UBNVKL.js} +1 -1
- package/dist/cdn/{W6PSG4GX.js → W4FGRGLV.js} +10 -5
- package/dist/cdn/{SYJSVUUR.js → W4SAWMXS.js} +1 -1
- package/dist/cdn/WBZLQZYR.js +134 -0
- package/dist/cdn/WFBLVCZP.js +2 -0
- package/dist/cdn/WQGRTBPJ.js +2 -0
- package/dist/cdn/XBK3SKPG.js +2 -0
- package/dist/cdn/XDVSCHDD.js +2 -0
- package/dist/cdn/XEK22IDA.js +2 -0
- package/dist/cdn/{LAFNDBTQ.js → XLLMHJCE.js} +1 -1
- package/dist/cdn/Y2XRSYBB.js +2 -0
- package/dist/cdn/Y6LXW5X5.js +2 -0
- package/dist/cdn/YLXNYRQX.js +2 -0
- package/dist/cdn/YPRKDQA4.js +2 -0
- package/dist/cdn/YVKSTDL6.js +2 -0
- package/dist/cdn/ZIHVOT5D.js +2 -0
- package/dist/cdn/assets/portal-account-switcher/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-browser/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-group-badges/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-group-browser/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-group-card/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-badges/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-card/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-favorite/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-type/icons/applicationtheme16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/applicationtheme32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layout16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/layout32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymapframe16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymapframe32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-navigation/apps/api-for-python.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/appstudio.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/arcade.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/arcgis-360-vr.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/arcgis-earth.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/arcgis-enterprise.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/arcgis-experience-builder.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/arcgis-geoanalytics.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/arcgis-hub.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/arcgis-online.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/arcgis-pro.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/arcgis-reality-studio.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/arcgis-urban.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/blank.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/business-analyst.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/city-engine.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/collector.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/community-analyst.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/configurable-apps.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/dashboards-beta.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/dashboards-classic.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/data-pipelines.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/deeplearningstudio.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/demographics.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/drone2map.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/esri-events.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/essential-apps.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/excalibur.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/explorer.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/field-apps.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/fieldmaps-beta.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/fieldmaps-ea.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/fieldmaps.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/generic-app.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/geobim.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/geoplanner.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/grid-view-9.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/indoor.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/indoors.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/insights.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/instant-apps.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/ips.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/knowledge-studio.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/living-atlas.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/location-platform.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/map-maker.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/map-viewer-beta.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/map-viewer-classic.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/map-viewer.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/maps-adobe-cloud.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/maps-for-office.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/maps-for-power-bi.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/maps-for-sharepoint.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/marketplace.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/mission.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/monitor.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/navigator.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/notebook.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/office-apps.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/open-data.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/operations-dashboard.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/ortho-maker.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/pro-extension.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/quick-capture.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/redistricting.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/runtime.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/scene-viewer.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/sites.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/solutions.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/story-maps.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/streetmap-premium.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/survey123.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/svg-app-circle.svg +1 -0
- package/dist/cdn/assets/portal-navigation/apps/svg-app-icon.svg +1 -0
- package/dist/cdn/assets/portal-navigation/apps/track-viewer.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/user-type-extension-online.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/user-type-extension.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/vector-tile-style-editor.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/velocity.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/web-app-builder.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/web-editor.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/web-mapping.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/workflow-manager-beta.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/workflow-manager.avif +0 -0
- package/dist/cdn/assets/portal-navigation/apps/workforce.avif +0 -0
- package/dist/cdn/assets/portal-navigation/product-logos/advanced-editing-user-type-extension-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arc-hydro-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-360-vr-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-api-for-python-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-appstudio-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-arcade-expression-language-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-business-analyst-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-cityengine-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-collector-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-community-analyst-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-connectors-for-power-automate-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-dashboards-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-data-interoperability-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-data-pipelines-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-data-reviewer-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-deep-learning-studio-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-drone2map-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-earth-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-enterprise-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-excalibur-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-excalibur-gray-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-experience-builder-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-explorer-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-field-maps-designer-ea-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-field-maps-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-flight-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-autocad-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-autodesk-forma-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-developers-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-excel-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-microsoft-365-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-power-apps-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-teams-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-geoanalytics-engine-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-geobim-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-geoplanner-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-hub-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-image-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-indoors-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-insights-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-instant-apps-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-knowledge-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-living-atlas-of-the-world-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-location-platform-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-logo-glyph-32.svg +76 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maps-for-adobe-creative-cloud-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maps-for-power-bi-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maps-for-sharepoint-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maps-sdk-for-javascript-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maps-sdks-for-game-engines-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maps-sdks-for-native-apps-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maritime-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-marketplace-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-mission-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-monitor-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-monitor-white-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-navigator-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-notebooks-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-online-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-open-data-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-open-source-apps-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-ortho-maker-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-parcel-fabric-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-pipeline-referencing-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-pro-for-intelligence-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-pro-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-quickcapture-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-reality-studio-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-roads-and-highways-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-sites-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-solutions-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-storymaps-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-streetmap-premium-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-survey123-connect-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-survey123-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-tracker-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-urban-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-utility-network-management-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-velocity-glyph-32.svg +6 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-web-appbuilder-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-web-editor-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-workflow-manager-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-workforce-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/arcgis-world-geocoder-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/calcite-design-system-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/esri-community-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/esri-demographics-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/esri-events-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/esri-offline-documentation-center--glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/esri-redistricting-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/esri-reports-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/esri-support-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/map-viewer-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/sceneviewer-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/site-scan-for-arcgis-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/site-scan-for-arcgis-le-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/vector-tile-style-editor-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/product-logos/xr-viewer-glyph-32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/dom.js +41 -0
- package/dist/chunks/fieldAddDelete.js +1 -1
- package/dist/chunks/functionalities.js +6 -4
- package/dist/chunks/groups.js +13 -35
- package/dist/chunks/groups2.js +11 -0
- package/dist/chunks/icons.js +11 -0
- package/dist/chunks/info.js +179 -0
- package/dist/chunks/item.js +15 -15
- package/dist/chunks/item2.js +34 -0
- package/dist/chunks/items.js +16 -0
- package/dist/chunks/loadClassificationData.js +19 -19
- package/dist/chunks/portal-account-switcher.js +6 -0
- package/dist/chunks/portal-browser.js +220 -0
- package/dist/chunks/portal-item-badge.js +346 -0
- package/dist/chunks/portal.js +91 -8
- package/dist/chunks/portal2.js +59 -0
- package/dist/chunks/query.js +159 -0
- package/dist/chunks/request.js +87 -0
- package/dist/chunks/requests.js +92 -44
- package/dist/chunks/store.js +14 -0
- package/dist/chunks/string.js +36 -0
- package/dist/chunks/thumbnail.js +189 -0
- package/dist/chunks/ui.js +9 -0
- package/dist/chunks/url.js +17 -0
- package/dist/chunks/user.js +99 -4
- package/dist/chunks/user2.js +13 -107
- package/dist/chunks/users.js +7 -0
- package/dist/chunks/utils.js +88 -0
- package/dist/chunks/utils2.js +653 -0
- package/dist/chunks/verified.js +40 -0
- package/dist/components/arcgis-portal-account-switcher/customElement.d.ts +99 -0
- package/dist/components/arcgis-portal-account-switcher/customElement.js +365 -0
- package/dist/components/arcgis-portal-account-switcher/index.d.ts +1 -0
- package/dist/components/arcgis-portal-account-switcher/index.js +11 -0
- package/dist/components/arcgis-portal-account-switcher-accounts/customElement.d.ts +100 -0
- package/dist/components/arcgis-portal-account-switcher-accounts/customElement.js +31 -0
- package/dist/components/arcgis-portal-account-switcher-accounts/index.d.ts +1 -0
- package/dist/components/arcgis-portal-account-switcher-accounts/index.js +5 -0
- package/dist/components/arcgis-portal-account-switcher-list/customElement.d.ts +104 -0
- package/dist/components/arcgis-portal-account-switcher-list/customElement.js +51 -0
- package/dist/components/arcgis-portal-account-switcher-list/index.d.ts +1 -0
- package/dist/components/arcgis-portal-account-switcher-list/index.js +7 -0
- package/dist/components/arcgis-portal-ai-assistant/agents/types.d.ts +62 -3
- package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +59 -3
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +1768 -592
- package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +34 -0
- package/dist/components/arcgis-portal-browser/customElement.d.ts +243 -0
- package/dist/components/arcgis-portal-browser/customElement.js +16 -0
- package/dist/components/arcgis-portal-browser/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser/index.js +6 -0
- package/dist/components/arcgis-portal-browser/utils/store.d.ts +35 -0
- package/dist/components/arcgis-portal-browser/utils/types.d.ts +24 -0
- package/dist/components/arcgis-portal-browser-actions/customElement.d.ts +185 -0
- package/dist/components/arcgis-portal-browser-actions/customElement.js +73 -0
- package/dist/components/arcgis-portal-browser-actions/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-actions/index.js +6 -0
- package/dist/components/arcgis-portal-browser-actions/types.d.ts +9 -0
- package/dist/components/arcgis-portal-browser-filter-status/customElement.d.ts +193 -0
- package/dist/components/arcgis-portal-browser-filter-status/customElement.js +56 -0
- package/dist/components/arcgis-portal-browser-filter-status/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-filter-status/index.js +5 -0
- package/dist/components/arcgis-portal-browser-pagination/customElement.d.ts +194 -0
- package/dist/components/arcgis-portal-browser-pagination/customElement.js +49 -0
- package/dist/components/arcgis-portal-browser-pagination/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-pagination/index.js +2 -0
- package/dist/components/arcgis-portal-browser-search/customElement.d.ts +195 -0
- package/dist/components/arcgis-portal-browser-search/customElement.js +62 -0
- package/dist/components/arcgis-portal-browser-search/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-search/index.js +3 -0
- package/dist/components/arcgis-portal-browser-sort/customElement.d.ts +196 -0
- package/dist/components/arcgis-portal-browser-sort/customElement.js +93 -0
- package/dist/components/arcgis-portal-browser-sort/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-sort/index.js +9 -0
- package/dist/components/arcgis-portal-browser-sort/utils.d.ts +3 -0
- package/dist/components/arcgis-portal-browser-top-bar/customElement.d.ts +190 -0
- package/dist/components/arcgis-portal-browser-top-bar/customElement.js +50 -0
- package/dist/components/arcgis-portal-browser-top-bar/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-top-bar/index.js +3 -0
- package/dist/components/arcgis-portal-browser-view/customElement.d.ts +21 -0
- package/dist/components/arcgis-portal-browser-view/customElement.js +30 -0
- package/dist/components/arcgis-portal-browser-view/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-view/index.js +5 -0
- package/dist/components/arcgis-portal-classification-config/customElement.js +7 -7
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
- package/dist/components/arcgis-portal-field-delete/customElement.js +2 -1
- package/dist/components/arcgis-portal-group-badges/customElement.d.ts +101 -0
- package/dist/components/arcgis-portal-group-badges/customElement.js +51 -0
- package/dist/components/arcgis-portal-group-badges/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-badges/index.js +3 -0
- package/dist/components/arcgis-portal-group-badges/types.d.ts +3 -0
- package/dist/components/arcgis-portal-group-browser/customElement.d.ts +475 -0
- package/dist/components/arcgis-portal-group-browser/customElement.js +492 -0
- package/dist/components/arcgis-portal-group-browser/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-browser/index.js +6 -0
- package/dist/components/arcgis-portal-group-browser/types.d.ts +197 -0
- package/dist/components/arcgis-portal-group-browser-preview/customElement.d.ts +225 -0
- package/dist/components/arcgis-portal-group-browser-preview/customElement.js +150 -0
- package/dist/components/arcgis-portal-group-browser-preview/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-browser-preview/index.js +12 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.d.ts +82 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +93 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/index.js +6 -0
- package/dist/components/arcgis-portal-group-card/customElement.d.ts +169 -0
- package/dist/components/arcgis-portal-group-card/customElement.js +163 -0
- package/dist/components/arcgis-portal-group-card/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-card/index.js +8 -0
- package/dist/components/arcgis-portal-group-thumbnail/customElement.d.ts +32 -0
- package/dist/components/arcgis-portal-group-thumbnail/customElement.js +153 -0
- package/dist/components/arcgis-portal-group-thumbnail/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-thumbnail/index.js +3 -0
- package/dist/components/arcgis-portal-info-banner/customElement.d.ts +14 -0
- package/dist/components/arcgis-portal-info-banner/customElement.js +31 -0
- package/dist/components/arcgis-portal-info-banner/index.d.ts +1 -0
- package/dist/components/arcgis-portal-info-banner/index.js +1 -0
- package/dist/components/arcgis-portal-item-actions/customElement.d.ts +74 -0
- package/dist/components/arcgis-portal-item-actions/customElement.js +89 -0
- package/dist/components/arcgis-portal-item-actions/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-actions/index.js +5 -0
- package/dist/components/arcgis-portal-item-badge/customElement.d.ts +260 -0
- package/dist/components/arcgis-portal-item-badge/customElement.js +9 -0
- package/dist/components/arcgis-portal-item-badge/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-badge/index.js +5 -0
- package/dist/components/arcgis-portal-item-badges/customElement.d.ts +48 -0
- package/dist/components/arcgis-portal-item-badges/customElement.js +35 -0
- package/dist/components/arcgis-portal-item-badges/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-badges/index.js +2 -0
- package/dist/components/arcgis-portal-item-badges/types.d.ts +1 -0
- package/dist/components/arcgis-portal-item-card/customElement.d.ts +215 -0
- package/dist/components/arcgis-portal-item-card/customElement.js +190 -0
- package/dist/components/arcgis-portal-item-card/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-card/index.js +10 -0
- package/dist/components/arcgis-portal-item-favorite/customElement.d.ts +36 -0
- package/dist/components/arcgis-portal-item-favorite/customElement.js +66 -0
- package/dist/components/arcgis-portal-item-favorite/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-favorite/index.js +3 -0
- package/dist/components/arcgis-portal-item-favorite/utils.d.ts +4 -0
- package/dist/components/arcgis-portal-item-type/customElement.d.ts +3 -1
- package/dist/components/arcgis-portal-item-type/customElement.js +22 -651
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +40 -38
- package/dist/components/arcgis-portal-navigation/customElement.d.ts +528 -0
- package/dist/components/arcgis-portal-navigation/customElement.js +1849 -0
- package/dist/components/arcgis-portal-navigation/index.d.ts +1 -0
- package/dist/components/arcgis-portal-navigation/index.js +30 -0
- package/dist/components/arcgis-portal-navigation/types.d.ts +44 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +53 -410
- package/dist/components/arcgis-portal-user-avatar/customElement.js +2 -2
- package/dist/components/arcgis-portal-user-popup/customElement.d.ts +5 -2
- package/dist/components/arcgis-portal-user-popup/customElement.js +82 -141
- package/dist/components/arcgis-portal-voice-input/customElement.d.ts +1 -1
- package/dist/components/portal-browser/components/portal-browser-filter/customElement.js +14 -0
- package/dist/components/portal-browser/components/portal-browser-filter/index.js +3 -0
- package/dist/components/portal-browser/components/portal-browser-filter-date/customElement.js +59 -0
- package/dist/components/portal-browser/components/portal-browser-filter-date/index.js +4 -0
- package/dist/components/portal-browser/components/portal-browser-filters/customElement.js +11 -0
- package/dist/components/portal-browser/components/portal-browser-filters/index.js +2 -0
- package/dist/components/portal-group-browser-filters/customElement.js +129 -0
- package/dist/components/portal-group-browser-filters/index.js +5 -0
- package/dist/components/portal-group-browser-pagination/customElement.js +13 -0
- package/dist/components/portal-group-browser-pagination/index.js +2 -0
- package/dist/components/portal-group-browser-sort/customElement.js +16 -0
- package/dist/components/portal-group-browser-sort/index.js +2 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +206 -2
- package/dist/loader.js +28 -4
- package/dist/types/app-switcher.d.ts +71 -0
- package/dist/types/group.d.ts +14 -16
- package/dist/types/item.d.ts +80 -1
- package/dist/types/lumina.d.ts +170 -1
- package/dist/types/portal.d.ts +6 -0
- package/dist/types/preact.d.ts +194 -1
- package/dist/types/react.d.ts +218 -1
- package/dist/types/search.d.ts +30 -0
- package/dist/types/stencil.d.ts +170 -1
- package/dist/types/user.d.ts +16 -3
- package/package.json +9 -10
- package/dist/cdn/35SKVD6F.js +0 -2
- package/dist/cdn/5VSDGPHH.js +0 -2
- package/dist/cdn/72N3KAXN.js +0 -2
- package/dist/cdn/ANPXRYLV.js +0 -5
- package/dist/cdn/B7633S2A.js +0 -422
- package/dist/cdn/BEHLBKKM.js +0 -2
- package/dist/cdn/EVDOPN3G.js +0 -54
- package/dist/cdn/G47ZZQYL.js +0 -2
- package/dist/cdn/G6QT6MYP.js +0 -65
- package/dist/cdn/GAHILDQF.js +0 -45
- package/dist/cdn/GHQ3ZW4U.js +0 -2
- package/dist/cdn/JNRN6DTV.js +0 -2
- package/dist/cdn/K3HS2LQ7.js +0 -2
- package/dist/cdn/KEKBRUUC.js +0 -2
- package/dist/cdn/L3BQK62N.js +0 -2
- package/dist/cdn/MX3F5ZCL.js +0 -2
- package/dist/cdn/O3KBWLGU.js +0 -2
- package/dist/cdn/OQDPULPD.js +0 -2
- package/dist/cdn/RNLVNDGG.js +0 -2
- package/dist/cdn/T25WZ6OL.js +0 -516
- package/dist/cdn/TMYTUOSS.js +0 -2
- package/dist/cdn/UPEVTVNZ.js +0 -2
- package/dist/cdn/V2EOXGK2.js +0 -2
- package/dist/cdn/X5NBQPTM.js +0 -2
- package/dist/cdn/YG5YYL6X.js +0 -2
- package/dist/cdn/YIMNOUTF.js +0 -2
- package/dist/cdn/YL7PGYWC.js +0 -5
- package/dist/cdn/YMPTDKT6.js +0 -2
- package/dist/cdn/YVJRXWM3.js +0 -3
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import"./UZLQALHY.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,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import"./
|
|
2
|
+
import"./UZLQALHY.js";var e=`## Task: Summarize Geographic Features
|
|
3
3
|
|
|
4
4
|
You are given features from ArcGIS Feature layer for multiple layers:
|
|
5
5
|
{queryResponse}
|
|
@@ -22,13 +22,15 @@ Use chat history only when necessary to understand conversational references, an
|
|
|
22
22
|
|
|
23
23
|
### Your goal:
|
|
24
24
|
|
|
25
|
-
1. If the assigned task is about a **specific calculation** (e.g., average, total, count, min, max), return
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
1. If the assigned task is about a **specific calculation** (e.g., average, total, count, min, max), return a **single concise sentence** that includes the numeric result.
|
|
26
|
+
|
|
27
|
+
- Example: \u201CThe average price is $4.00.\u201D
|
|
28
|
+
- Never return a bare number by itself (for example: \`4\`).
|
|
29
|
+
- When a value is already present in \`queryResponse\` (for example in \`details.value\` or \`summary\`), copy that value **verbatim**.
|
|
30
|
+
- Do NOT reformat values (including numbers, dates, and times):
|
|
31
|
+
- Do not add/remove grouping commas.
|
|
32
|
+
- Do not change decimals, round values, or change numeric type/text.
|
|
33
|
+
- Do not change date/time format, timezone notation, separators, or precision.
|
|
32
34
|
|
|
33
35
|
2. If the question is more general or there are **multiple features with varying attributes**, write a **brief summary** (2\u20133 sentences max) that highlights key patterns or insights.
|
|
34
36
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
var u=t=>t&&!t.endsWith("/")?`${t}/`:t;function l({portal:t,usePortalHostname:a}){let{customBaseUrl:r,portalHostname:n,urlKey:o}=t,{protocol:e}=window.location,s=!a&&o?`${o}.${r}`:n;return`${e}//${s}`}function c({portal:t}){return`${l({portal:t,usePortalHostname:!t.user})}/home`}export{u as a,l as b,c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as N}from"./JVGCIDQW.js";import{a as C,b as y,c as A,p as f,v as x,x as L}from"./6BUBZ7WC.js";var H=(s,n)=>{let e=s;for(;e;){if(e===n)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},d=(s,n,e)=>{let t=M(n).subscribe;return t(o=>{o.some(r=>H(s,r.target))&&e()})},m={},M=s=>{let n=s.join(","),e=m[n];if(e!==void 0)return e;let t=new Set,o=new MutationObserver(r=>t.forEach(i=>i(r)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:s,subtree:!0});let a={subscribe:r=>(t.add(r),()=>{t.delete(r),t.size===0&&(o.disconnect(),m[n]=void 0)})};return m[n]=a,a},w=(s,n)=>{let e=s;for(;e;){let t=e.closest?.(n);if(t)return t;let o=e.getRootNode?.();if(o===globalThis.document)return;e=o?.host}};var u=(s,n,e)=>w(s,`[${n}]`)?.getAttribute(n)??e;var E=s=>{let n=u(s,"lang",globalThis.navigator?.language||g);return{lang:n,t9nLocale:P(n)}},O=(s,n,e,t)=>{let o,a=()=>D(s,n(),t).then(r=>{(o?.lang!==r.lang||o.t9nLocale!==r.t9nLocale||o.t9nStrings!==r.t9nStrings)&&e(r),o=r}).catch(r=>{f("error","intl","Error updating component locale state",{detail:{error:r}})});return queueMicrotask(a),d(s,["lang"],a)},D=async(s,n,e=s.localName.split("-").slice(1).join("-"))=>{let{lang:t,t9nLocale:o}=E(s),a=`${n}/${e}/t9n`,i=e===null?{}:await z(o,a,"messages.");return{lang:t,t9nLocale:o,t9nStrings:i}};var _="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),F=new Set(_),g="en",R={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},z=async(s,n,e="")=>{let t=`${n}/${e}`,o=`${t}${s}.json`;return $[o]??=k(s,t),await $[o]},$={},k=async(s,n)=>{let e=`${n}${s}.json`;try{let t=await fetch(e);if(t.ok)return await t.json()}catch(t){return f("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:t}}),{}}return s===g?{}:await k(g,n)},P=s=>{let[n,e]=s.split("-"),t=n.toLowerCase(),o=t;return e&&(o=`${t}-${e.toUpperCase()}`),o=R[o]??o,F.has(o)?o:e?P(t):g};var S=s=>G(void 0,s),ye=s=>n=>G(n,s),b=class extends L{constructor(n,e){super(n);let t=this.exports;try{y(this.component);let o=e(this.component,this),a=this.exports!==t;if(C(o)){a||this.setProvisionalExports(o);let r=o.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await r)}else(!a||o!==void 0)&&(this.exports=o),queueMicrotask(()=>super.catchUpLifecycle())}catch(o){this.P.reject(o)}}catchUpLifecycle(){}},G=N(b);var T="ltr",Ae=()=>S((s,n)=>{n.exports=T,n.onLifecycle(()=>{let e=()=>{let t=u(s.el,"dir",T);n.exports=t==="rtl"?"rtl":"ltr"};return e(),d(s.el,["dir"],e)})}),xe=s=>(n={})=>S((e,t)=>{let o=E(e.el),a={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},r=e;t.onLifecycle(()=>O(e.el,()=>s("./assets"),({t9nLocale:c,t9nStrings:l,lang:h})=>{let p={...l,_lang:h,_t9nLocale:c,_loading:!1};t.exports=p;let v=l.componentLabel;typeof v=="string"&&"label"in e&&e.label==null&&(e.label??=v),i(r.messageOverrides)},n.name));let i=c=>{let l=t.exports,h=l._original??l,p=j(h,c);c&&(p._original=h),t.exports=p};return"messageOverrides"in r&&t.onUpdate(c=>{c.has("messageOverrides")&&i(r.messageOverrides)}),n.blocking?(t.setProvisionalExports(a,!1),t.ready):a}),j=(s,n)=>{if(!n)return s;let e={...s};return Object.entries(n).forEach(([t,o])=>{s[t]!==void 0&&(typeof o=="object"?e[t]=j(s[t],o):e[t]=o??s[t])}),e},Le=s=>q,V="arcgisPropertyChange",q=(...s)=>{let n=A(),e=x(V,void 0,n),t=!0;return n.manager.onUpdated(o=>{if(t||!n.el.isConnected){t=!1;return}for(let a of s)o.has(a)&&e.emit({name:a})}),e};export{w as a,ye as b,Ae as c,xe as d,Le as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as b,d as k}from"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import{K as c,L as h,M as g,O as f,P as $,S as d,h as m,j as l}from"./6BUBZ7WC.js";import"./UZLQALHY.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{a as J,b as ue}from"./4QA4AYHJ.js";import o from"./CZQEMMJG.js";import m from"./AVMIEBYN.js";import l from"./EBYEZR4N.js";import k from"./5GK4VL6E.js";import"./2RMN34M3.js";import{a as ye}from"./6KVA4AKM.js";import"./CFBSBZSS.js";import"./2BUE3JLM.js";import i from"./SLSCUAED.js";import h from"./YLXNYRQX.js";import f from"./M7DQVQO6.js";import"./V4EVETH3.js";import e from"./FL3NSFMY.js";import{a as R}from"./4Q6KHGPX.js";import{a as pe}from"./TQLHU3PC.js";import"./OBBYT2AV.js";import d from"./JTIPENXE.js";import c from"./24L3PS2J.js";import"./UZCHLKLO.js";import"./DFTUMKSN.js";import b from"./TGTT2CVD.js";import a from"./F3ODJVJC.js";import{a as ne}from"./VMQIDO4Z.js";import"./QS3GXAIH.js";import{a as le}from"./2GBRZSEC.js";import"./XLLMHJCE.js";import{a as j}from"./W3UBNVKL.js";import"./QZD2UBOW.js";import"./JVGCIDQW.js";import{M as oe,N as C,P as g,S as ae,h as ie,j as n,w as y}from"./6BUBZ7WC.js";import"./UZLQALHY.js";export default $arcgis.t(([Ke,{watch:Xe},{substitute:k},{substitute:Ne},,{b:ce},,{c:de},,,,{a:he,b:me},,,{a:ge,b:we,c:fe,d:be,e:ve,f:$e}])=>{var Ve=["title","relevance","modified"];function Fe(i){let{slot:e="sort",sort:t,formFactor:s,sortField:a,sortOrder:l,onSortFieldChange:o,onSortOrderChange:d}=i;return t.enabled?n`<arcgis-portal-browser-sort slot=${e??g} .options=${t.props?.options??Ve} .field=${a} .order=${l} .appearance=${t.props?.appearance??"dropdown"} .showText=${t.props?.showText??s!=="small"} .useDeleted=${t.props?.useDeleted??!1} @arcgisBrowserSortFieldChange=${h=>{o(h.detail)}} @arcgisBrowserSortOrderChange=${h=>{d(h.detail)}}></arcgis-portal-browser-sort>`:n`<slot name=${e??g} slot=${e??g}></slot>`}function Ge(i){let{slot:e="pagination",store:t,total:s,start:a,num:l,onPage:o}=i;return n`<slot name=${e??g} slot=${e??g}><arcgis-portal-browser-pagination .store=${t} .total=${s} .start=${a} .num=${l} @arcgisBrowserPage=${d=>{o(d.detail)}}></arcgis-portal-browser-pagination></slot>`}function F(i){let{action:e,active:t=!1,clearDisabled:s=!1,clearLabel:a="Clear",children:l,expanded:o=!1,heading:d,noPadding:h=!1,onRemove:u,primary:G=!1,setExpanded:P}=i;return G?n`<div class="filter--primary"><div class="filter__header filter__header--primary"><h3 class="filter__title">${d}</h3>${e}</div>${l}</div>`:n`<calcite-accordion-item class="filter__accordion-item" .heading=${d} .expanded=${o} @calciteAccordionItemExpand=${()=>{P?.(!0)}} @calciteAccordionItemCollapse=${()=>{P?.(!1)}}><div slot=actions-end class="filter__actions-slot arcgis-item-browser-filter__actions-slot">${e}${t&&!s&&n`<calcite-button class="clear-button" scale=s kind=neutral appearance=transparent @click=${()=>u?.()}>${a}</calcite-button>`||""}</div><div class=${C({filter__content:!0,"filter__content--padded":!h})}>${l}</div></calcite-accordion-item>`}var W=1440*60*1e3;function q(i){let e=typeof i=="string"?Number.parseInt(i,10):typeof i=="number"?i:(i??new Date).valueOf(),t=new Date(e);return t.setHours(0,0,0,0),t.valueOf()}function Se(i){return q(i)+W-1}var je=7*W,Oe=["today","yesterday","last7","last30","never","custom"],Je=(i,e,t)=>{let s=q(),a=Se();switch(i){case"yesterday":return[s-W,s-1];case"today":return[s,a];case"last7":return[s-je,a];case"last30":return[s-W*30,a];case"never":return[-1,-1];case"custom":return e&&t?[q(e),Se(t)]:null;default:return null}};function xe(i){let{clearLabel:e,end:t,expanded:s,filterDateMessages:a,includeNever:l,onFilter:o,onRemove:d,property:h,range:u,serverProperty:G,setExpanded:P,start:_}=i,D=a.title[h],z=l?Oe:Oe.filter(m=>m!=="never"),E=new Date().toISOString().slice(0,10),w=!!(u&&(u!=="custom"||_&&t)),v=(m,$,f)=>{let S=G??(h==="modified"?"modified":"uploaded"),b=Je(m,$,f),U=m?a[m]:"";o?.({id:h,label:m?Ne(a[h],{date:U}):"",value:b?`(${S}:[${b[0]} TO ${b[1]}])`:"",range:m,start:b?new Date(b[0]):void 0,end:b?new Date(b[1]):void 0})};return F({heading:D,expanded:s,setExpanded:P,active:w,clearLabel:e,onRemove:d,children:n`<div><calcite-tree selection-mode=children scale=m @calciteTreeSelect=${m=>{let $=m.target.selectedItems?.[0]?.dataset.range,f=u===$?null:$;if(!f){d?.();return}v(f,_,t)}}>${z.map(m=>n`<calcite-tree-item data-range=${m??g} .selected=${m===u}>${a[m]}</calcite-tree-item>`)}</calcite-tree>${u==="custom"&&n`<calcite-input-date-picker class="custom-date-picker" @calciteInputDatePickerChange=${m=>{let $=m.target.valueAsDate,[f,S]=Array.isArray($)?$:[];f&&S&&v("custom",f,S)}} scale=s .max=${E} calendars=1 layout=vertical month-style=abbreviated proximity-selection-disabled range .valueAsDate=${_&&t?[new Date(q(_)),new Date(q(t))]:[]}></calcite-input-date-picker>`||""}</div>`})}function Be(i){let{bottom:e,children:t,primary:s,slot:a,store:l,title:o,top:d}=i,h=!!l?.panel||(l?.width??0)<R.sm;return n`<div slot=${a??g} class="filters-shell" .inert=${!!l?.preview}><div class=${C({"filters-shell__top":!0,"filters-shell__top--padded":h})}>${d}</div>${s}${o}<calcite-accordion appearance=transparent icon-type=chevron icon-position=start scale=m>${t}</calcite-accordion>${e}</div>`}function Pe(i){let{browserMessages:e,slot:t,filters:s,hasIndoorsSpaces:a,isFilterActive:l,messages:o,portal:d,selectedAccess:h,selectedGroupsByUser:u,selectedMemberOrg:G,selectedMembership:P,selectedOwner:_,selectedSpecialGroup:D,specialGroupOptions:z,store:E,handleRemove:w,handleSelect:v,handleUpsert:m,handleUserFilterChange:$}=i,f=d.isPortal,S=d.user,b=ye(S),U=S?.username??"",ke=r=>r===U?k(o.groupsByUser.me,{username:r}):r,X=(r,c)=>r==="owner"?c:r==="outsideOrg"&&b?o.owner.someoneElse:r==="inOrg"?o.owner.inOrg:r==="outsideOrg"?o.owner.outsideOrg:c,M=s.owner,Y=_??M?.props?.owner??null,I=M?.props?.username??U,Ae=d.id??"",qe=b?["owner","outsideOrg"]:["owner","inOrg","outsideOrg"],Q=s.membership,Z=P??Q?.props?.membership??null,Te=["org","collaboration","anyOrg"],L=s.memberOrg,ee=G??L?.props?.memberOrg??null,Ee=L?.props?.orgId??d.id??"",Me=["myOrg","anotherOrg"],H=s.specialGroups,te=D??H?.props?.specialGroup??null,V=s.access,re=h??V?.props?.access??null,Ie=["public","org","private"],A=s.groupsByUser,se=A?.props?.usernames??[],Le=A?.props?.selectedUsername??u??se[0]??U,O=e.filter.clear,x=(r,c)=>{let p=s[r];p&&(p.props={...p.props,expanded:c})};return Be({slot:t,store:E,title:n`<div class="filters-title"><h2 class="filters-title__heading">${o.filters.title}</h2><slot name=before-filters></slot></div>`,children:n`${!!A?.enabled&&F({heading:o.groupsByUser.title,expanded:!!A?.props?.expanded,setExpanded:r=>x("groupsByUser",r),clearLabel:O,onRemove:()=>{v({kind:"groupsByUser",value:A?.props?.selectedUsername??U})},children:n`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${r=>{let c=r.target.selectedItems?.[0]?.dataset.username??"";v({kind:"groupsByUser",value:c}),$(c)}}>${se.map(r=>n`<calcite-tree-item data-username=${r??g} .selected=${r===Le}><a class="groups-by-user__label">${ke(r)}</a></calcite-tree-item>`)}</calcite-tree>`})||""}${!!M?.enabled&&F({heading:o.owner.title,expanded:!!M?.props?.expanded,setExpanded:r=>x("owner",r),active:l("owner"),clearLabel:O,onRemove:()=>w("owner"),children:n`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${r=>{let c="owner",p=T(Y,r,c);if(!p){w(c);return}m({id:c,label:k(o.owner.label,{label:X(p,I)}),param:"q",value:we(p,I,{isPublicUser:b,orgId:Ae}),owner:p,username:I}),v({kind:c,value:p})}}>${qe.filter(r=>!(f||a)||r!=="outsideOrg").map(r=>n`<calcite-tree-item data-owner=${r??g} .selected=${Y===r}>${X(r,I)}</calcite-tree-item>`)}</calcite-tree>`})||""}${!!(Q?.enabled&&!f&&!a)&&F({heading:o.membership.title,expanded:!!Q?.props?.expanded,setExpanded:r=>x("membership",r),active:l("membership"),clearLabel:O,onRemove:()=>w("membership"),children:n`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${r=>{let c="membership",p=T(Z,r,c);if(!p){w(c);return}m({id:c,label:k(o.membership.label,{label:o.membership[p]}),param:"q",value:fe(p,a),membership:p}),v({kind:c,value:p})}}>${Te.map(r=>n`<calcite-tree-item data-membership=${r??g} .selected=${Z===r}>${o.membership[r]}</calcite-tree-item>`)}</calcite-tree>`})||""}${!!(L?.enabled&&!f)&&F({heading:o.memberOrg.title,expanded:!!L?.props?.expanded,setExpanded:r=>x("memberOrg",r),active:l("memberOrg"),clearLabel:O,onRemove:()=>w("memberOrg"),children:n`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${r=>{let c="memberOrg",p=T(ee,r,c);if(!p){w(c);return}m({id:c,label:k(o.memberOrg.label,{label:o.memberOrg[p]}),param:"q",value:be(p,Ee),memberOrg:p}),v({kind:c,value:p})}}>${Me.map(r=>n`<calcite-tree-item data-member-org=${r??g} .selected=${ee===r}>${o.memberOrg[r]}</calcite-tree-item>`)}</calcite-tree>`})||""}${H?.enabled&&F({heading:o.specialGroups.title,expanded:!!H.props?.expanded,setExpanded:r=>x("specialGroups",r),active:l("specialGroups"),clearLabel:O,onRemove:()=>w("specialGroups"),children:n`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${async r=>{let c="specialGroups",p=T(te,r,c);if(!p){w(c);return}let N=await ve(p,d);m({id:"specialGroups",label:k(o.specialGroups.label,{label:o.specialGroups[p]}),param:"q",value:N,specialGroup:p}),v({kind:"specialGroups",value:p})}}>${z.map(r=>n`<calcite-tree-item data-special-groups=${r??g} .selected=${te===r}><span class="special-groups-settings-option">${o.specialGroups[r]}${r==="settings"&&n`<span class="special-groups-settings-icon"><calcite-icon id=portal-group-browser-special-groups-settings-info icon=information scale=s text-label=Information></calcite-icon><calcite-tooltip placement=bottom-end reference-element=portal-group-browser-special-groups-settings-info>Groups used in organization settings.</calcite-tooltip></span>`||""}</span></calcite-tree-item>`)}</calcite-tree>`})||""}${["modified","created"].filter(r=>s[r]?.enabled).map(r=>{let c=s[r]?.props,p=E.filters[r],N=!!c?.includeNever,We=p?.range??c?.range??null,De=p?.start??c?.start,ze=p?.end??c?.end,Qe=c?.serverProperty,He=c?.expanded;return xe({property:r,filterDateMessages:e.filterDate,clearLabel:O,expanded:He,setExpanded:B=>x(r,B),includeNever:N,range:We,start:De,end:ze,serverProperty:Qe,onRemove:()=>{m({id:r,label:"",param:"q",value:"",range:null,start:null,end:null})},onFilter:B=>{m({id:r,label:B.label,param:"q",value:B.value,range:B.range,start:B.start,end:B.end})}})})}${!!V?.enabled&&F({heading:o.access.title,expanded:!!V?.props?.expanded,setExpanded:r=>x("access",r),active:l("access"),clearLabel:O,onRemove:()=>w("access"),children:n`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${r=>{let c="access",p=T(re,r,c);if(!p){w(c);return}m({id:c,label:k(o.access.label,{label:o.access[p]}),param:"q",value:$e(p),access:p}),v({kind:c,value:p})}}>${Ie.map(r=>n`<calcite-tree-item data-access=${r??g} .selected=${re===r}>${o.access[r]}</calcite-tree-item>`)}</calcite-tree>`})||""}`})}var T=(i,e,t)=>{let s=e.target.selectedItems?.[0]?.dataset[t];return i===s?null:s??null};var Ye=ie`:host{position:relative;background-color:var(--calcite-color-background);display:flex;flex-direction:column;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;--portal-group-browser-max-width: var(--group-browser-max-width, 100%);--portal-group-browser-pane-width: 18.75rem;--portal-group-browser-pane-z-index: 11;container-type:inline-size;container-name:portal-group-browser}arcgis-portal-browser{--arcgis-browser-max-width: var(--portal-group-browser-max-width);--arcgis-browser-pane-width: var(--portal-group-browser-pane-width);--arcgis-browser-pane-z-index: var(--portal-group-browser-pane-z-index)}.filters-title__heading{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1.2;margin:0;padding:1rem .5rem}.filters-shell{display:block}.filters-shell__top{padding:0}.filters-shell__top--padded{padding:0 1rem 1rem}.filter__accordion-item{--calcite-accordion-item-content-space: .75rem .25rem;--calcite-accordion-icon-margin: .5rem;border-top:1px solid var(--calcite-color-border-1)}.filter__actions-slot{display:flex;align-self:center;align-items:center;line-height:0}.filter__content{margin:0}.filter__content--padded{margin:-.75rem .5rem 0}.filter__content>calcite-tree>calcite-tree-item>a{padding-block:.25rem}.clear-button{line-height:1;margin-inline:.25rem}.custom-date-picker{margin-block:.5rem;margin-inline-start:1.75rem;width:12.75rem}.groups-by-user__label{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.special-groups-settings-option{display:inline-flex;align-items:center;gap:.25rem}.special-groups-settings-icon{display:inline-flex;align-items:center}.group-browser__results{display:grid;gap:.5rem}.group-browser__results--compact{gap:0}.group-browser__result-card{margin:0}@container portal-group-browser (max-width: 640px){:host{--portal-group-browser-pane-width: 100%}}.empty-text-slot{width:100%;height:100%;display:flex;justify-content:center}.empty-text-slot__default{@apply max-w-lg mx-auto px-6 pb-16;max-width:32rem;margin-inline:auto;padding-inline:1.5rem;padding-bottom:4rem;margin-top:min(8rem,30vh)}`;async function Ze(i,e){let t=`${ne(i)}community/groups`,s=rt(e),a=st(e),l=!!e.searchUser?.trim();if(!s.trim()&&!l)return{nextStart:-1,num:0,q:s,queryParams:{...a,q:s},results:[],start:0,total:0};let o={...a,q:s},d=await ce({url:t,portal:i,params:o}),h=d.results.map(u=>{let G=Ke.fromJSON(u);return G.portal=i,G});return{...d,q:s,queryParams:o,results:h}}var et=["created","modified","owner","title"];function tt(i){return!!i&&et.includes(i)}function rt(i){let e=[],t=i.baseQuery?.trim();t&&e.push(`(${t})`);let s=i.searchTerm?.trim();s&&e.push(`(${ue(s)})`);for(let a of Object.values(i.filters??{}))typeof a.value=="string"&&a.value.trim()&&e.push(`(${a.value.trim()})`),typeof a.additionalParams=="string"&&a.additionalParams.trim()&&e.push(`(${a.additionalParams.trim()})`);return e.join(" AND ")}function st(i){return{num:i.num,start:i.start,...i.searchUser?{searchUserAccess:"groupMember",searchUserName:i.searchUser}:{},...i.sortField==="relevance"||!tt(i.sortField)?{}:{sortField:i.sortField,sortOrder:i.sortOrder}}}function _e(i,e="desc"){switch(i){case"owner":case"title":return"asc";case"created":case"modified":case"relevance":return"desc";default:return e}}function it(i){let e,t,s,a=()=>{e?.();let o=Xe(()=>i.getStore().width,()=>{l()});e=()=>{o.remove()}},l=()=>{let o=i.getStore(),d=o.width||i.getHostWidth()||i.getViewportWidth(),h=Math.min(d,i.getViewportWidth());o.width!==h&&(o.width=h);let u=h>R.md?"large":"small";i.getResponsiveFormFactor()==="large"&&u==="small"&&(o.panel=!1,o.filtersExpanded=!1),i.getResponsiveFormFactor()==="small"&&u==="large"&&(o.panel=!1,o.filtersExpanded=!0),i.setResponsiveFormFactor(u)};return{connect:()=>{typeof ResizeObserver<"u"&&(t=new ResizeObserver(o=>{let d=o[0]?.contentRect?.width??0;if(d>0){let h=Math.round(d);i.setHostWidth(h),i.getStore().width=h,l()}}),t.observe(i.el)),a(),l()},disconnect:()=>{s!==void 0&&(cancelAnimationFrame(s),s=void 0),e?.(),t?.disconnect(),t=void 0},refreshStoreWatcher:a,handleWindowResize:()=>{if(i.setViewportWidth(window.innerWidth),!t){if(s!==void 0)return;s=requestAnimationFrame(()=>{s=void 0;let o=Math.round(i.el.getBoundingClientRect().width||i.getHostWidth()||i.getViewportWidth()),d=Math.min(o,i.getViewportWidth()),h=i.getStore();h.width!==d&&(h.width=d),l()});return}l()},updateResponsiveLayout:l}}var Ue=["title","relevance","modified"],Ce={queryParams:void 0,nextStart:-1,results:[],start:-1,num:0,total:0},Re=["openData","sharedUpdate","distributed","admin","settings"],K=class extends oe{constructor(){super(...arguments),this._messages=j({name:"portal-group-browser",blocking:!0}),this._browserMessages=j({name:"portal-browser",blocking:!0}),this.responsiveLayoutController=it({el:this.el,getStore:()=>this.store,getViewportWidth:()=>this.viewportWidth,setViewportWidth:e=>{this.viewportWidth=e},getHostWidth:()=>this.hostWidth,setHostWidth:e=>{this.hostWidth=e},getResponsiveFormFactor:()=>this.responsiveFormFactor,setResponsiveFormFactor:e=>{this.responsiveFormFactor=e}}),this.restoreFocusTarget=null,this.handleBrowserFilterClear=()=>{this.clearFilters()},this.handleBrowserFilterRemove=e=>{let t=e.detail;t&&this.removeFilter(t)},this.selectedOwner=null,this.selectedMembership=null,this.selectedMemberOrg=null,this.selectedSpecialGroup=null,this.selectedAccess=null,this.selectedGroups=[],this.previewGroup=null,this.queryResponse=Ce,this.specialGroupOptions=Re,this.responsiveFormFactor="large",this.viewportWidth=typeof window>"u"?R.lg:window.innerWidth,this.hostWidth=0,this.store=de({type:"group-browser",width:window?.innerWidth??R.lg,hiddenFilters:[],filtersEmpty:!1,topbarEmpty:!1,sortEmpty:!1,filtersExpanded:!1,panel:!1,filters:{}}),this.filters={},this.loading=!1,this.formFactor="large",this.height="full",this.searchTerm="",this.cards={},this.preview="top",this.q="",this.num=60,this.sort={enabled:!0,props:{options:Ue}},this.selection="none",this.alwaysShowSelection=!1,this.hidePreviewFooter=!1,this.hidePreviewBadges=!1,this.hasIndoorsSpaces=!1,this.arcgisGroupBrowserLoading=y(),this.arcgisGroupBrowserPreview=y(),this.arcgisGroupBrowserSelect=y(),this.arcgisGroupBrowserSublayerPreview=y(),this.arcgisGroupBrowserUpdate=y(),this.arcgisGroupBrowserInternalUIAction=y(),this.arcgisGroupBrowserUserFilterChange=y(),this.arcgisAriaUpdate=y()}static{this.properties={selectedGroupsByUser:16,selectedOwner:16,selectedMembership:16,selectedMemberOrg:16,selectedSpecialGroup:16,selectedAccess:16,selectedGroups:16,previewGroup:16,queryResponse:16,specialGroupOptions:16,sortField:16,sortOrder:16,responsiveFormFactor:16,viewportWidth:16,hostWidth:16,store:0,filters:0,loading:5,formFactor:1,height:3,searchTerm:1,selected:0,cards:0,preview:1,q:1,portal:0,num:9,sort:0,fetch:0,preflight:0,searchUser:1,selection:1,alwaysShowSelection:5,hidePreviewFooter:5,hidePreviewBadges:5,hasIndoorsSpaces:5}}static{this.styles=Ye}get currentUsername(){return this.portal.user?.username??""}async refresh(){await this.fetchGroups()}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.responsiveLayoutController.handleWindowResize),this.responsiveLayoutController.connect(),this.syncSortFromConfig(),this.selectedGroups=this.selected||[],this.syncSelectionsFromConfig(),this.updateSpecialGroupOptions(),this.fetchGroups()}updated(e){e.has("store")&&(this.responsiveLayoutController.refreshStoreWatcher(),this.responsiveLayoutController.updateResponsiveLayout()),e.has("selected")&&(this.selectedGroups=this.selected||[]);let t=e.get("num");t!==void 0&&t!==this.num&&this.fetchGroups(),(e.has("portal")||e.has("hasIndoorsSpaces"))&&this.updateSpecialGroupOptions(),e.has("sort")&&this.syncSortFromConfig()}disconnectedCallback(){this.responsiveLayoutController.disconnect(),window.removeEventListener("resize",this.responsiveLayoutController.handleWindowResize),super.disconnectedCallback()}syncSelectionsFromConfig(){this.selectedGroupsByUser=this.filters.groupsByUser?.props?.selectedUsername??this.currentUsername,this.selectedOwner=this.filters.owner?.props?.owner||null,this.selectedMembership=this.filters.membership?.props?.membership||null,this.selectedMemberOrg=this.filters.memberOrg?.props?.memberOrg||null,this.selectedSpecialGroup=this.filters.specialGroups?.props?.specialGroup||null,this.selectedAccess=this.filters.access?.props?.access||null}resetSelectionByFilterId(e){switch(e){case"groupsByUser":this.selectedGroupsByUser=this.filters.groupsByUser?.props?.selectedUsername??this.currentUsername;break;case"owner":this.selectedOwner=null;break;case"membership":this.selectedMembership=null;break;case"memberOrg":this.selectedMemberOrg=null;break;case"specialGroups":this.selectedSpecialGroup=null;break;case"access":this.selectedAccess=null;break}}resetAllFilterSelections(){this.selectedGroupsByUser=this.filters.groupsByUser?.props?.selectedUsername??this.currentUsername,this.selectedOwner=null,this.selectedMembership=null,this.selectedMemberOrg=null,this.selectedSpecialGroup=null,this.selectedAccess=null}publishFilterStateChange(){this.requestUpdate()}syncSortFromConfig(){let e=this.sort,t=e.props?.options??Ue;if(!e.enabled){this.sortField=void 0,this.sortOrder=void 0;return}if(!t.length){this.sortField=void 0,this.sortOrder=void 0;return}let s=e.props?.field,a=s&&t.includes(s)?s:t[0];this.sortField=a,this.sortOrder=e.props?.order??_e(a,this.sortOrder)}async updateSpecialGroupOptions(){if(!this.portal){this.specialGroupOptions=[];return}let e="";try{e=await ge(this.portal)}catch{e=""}this.specialGroupOptions=Re.filter(t=>!(t==="openData"&&this.portal.isPortal||t==="distributed"&&this.hasIndoorsSpaces||t==="settings"&&!e)),this.selectedSpecialGroup&&!this.specialGroupOptions.includes(this.selectedSpecialGroup)&&this.removeFilter("specialGroups")}async fetchGroups(){this.loading=!0,this.arcgisGroupBrowserLoading.emit();let e=this.createQuery();await this.fetchAndEmit(e,this.searchTerm)}removeFilter(e){let t=this.store.filters[e];t&&(this.store.filters={...this.store.filters,[e]:he(t)},this.resetSelectionByFilterId(e),this.publishFilterStateChange(),this.fetchGroups())}clearFilters(){this.store.filters=me(this.store.filters,{hiddenFilterIds:this.store.hiddenFilters}),this.resetAllFilterSelections(),this.publishFilterStateChange(),this.fetchGroups()}isFilterActive(e){let t=this.store.filters[e];return t?!!(t.value||"additionalParams"in t&&t.additionalParams):!1}setFilterSelection(e){switch(e.kind){case"owner":this.selectedOwner=e.value;break;case"membership":this.selectedMembership=e.value;break;case"memberOrg":this.selectedMemberOrg=e.value;break;case"access":this.selectedAccess=e.value;break;case"groupsByUser":this.selectedGroupsByUser=e.value;break;case"specialGroups":this.selectedSpecialGroup=e.value;break;default:le(e)}}selectGroup(e){this.isSelected(e)||(this.selectedGroups=[...this.selectedGroups,e])}deselectGroup(e){this.selectedGroups=this.selectedGroups.filter(({id:t})=>t!==e.id)}isSelected(e){return this.selectedGroups.some(({id:t})=>e.id===t)}handleGroupCardSelect(e){let{selected:t,group:s}=e.detail;switch(this.selection){case"single":this.selectedGroups=[s];break;case"multiple":t?this.selectGroup(s):this.deselectGroup(s);break;default:return}this.arcgisGroupBrowserSelect.emit(this.selectedGroups)}closePreview(e={}){this.store.preview="",this.previewGroup=null,this.arcgisGroupBrowserPreview.emit(null),this.arcgisGroupBrowserSublayerPreview.emit(null),e.restoreFocus&&this.restorePreviewFocus()}async restorePreviewFocus(){let e=this.restoreFocusTarget;if(e){if(e.restoreFocus){await e.restoreFocus();return}if(e.setFocus){await e.setFocus();return}e.focus?.()}}async handleSortFieldChange(e){this.sortField=e,this.sortOrder=_e(e,this.sortOrder),this.loading=!0,this.arcgisGroupBrowserLoading.emit();let t=this.createQuery({start:1,total:0});await this.fetchAndEmit(t,this.searchTerm)}async handleSortOrderChange(e){this.sortOrder=e,this.loading=!0,this.arcgisGroupBrowserLoading.emit();let t=this.createQuery({start:1,total:0});await this.fetchAndEmit(t,this.searchTerm)}emitUpdate(e,t){let s=e.queryParams;this.arcgisGroupBrowserUpdate.emit({queryResponse:e,sortField:s?.sortField,sortOrder:s?.sortOrder,selectedGroups:this.selectedGroups,filters:{...this.store.filters},searchTerm:t})}async queryGroups(e){return await(this.fetch?.(e)??Ze(this.portal,e))}async fetchAndEmit(e,t){this.preflight&&(e=await this.preflight(e));let s=await this.queryGroups(e);this.queryResponse=s,this.loading=!1,this.emitUpdate(s,t)}createQuery(e={}){return{filters:this.store.filters,searchUser:this.searchUser,searchTerm:e.searchTerm??this.searchTerm,baseQuery:this.q,sortField:this.sortField,sortOrder:this.sortOrder,start:e.start??1,num:e.num??this.num,total:e.total??this.queryResponse.total}}async handleSearch(e){this.searchTerm=e,this.loading=!0,this.arcgisGroupBrowserLoading.emit();let t=this.createQuery({searchTerm:e});await this.fetchAndEmit(t,e)}async handlePage({num:e,start:t,total:s}){this.loading=!0,this.arcgisGroupBrowserLoading.emit();let a=this.createQuery({start:t,num:e,total:s});await this.fetchAndEmit(a,this.searchTerm)}getBrowserResponseFromQueryResponse(e){let{nextStart:t,num:s,queryParams:a,results:l,start:o,total:d}=e??Ce;return{nextStart:t??-1,num:s??a?.num??0,results:l,start:o??a?.start??1,total:d}}async formatRange({start:e,end:t,total:s}){if(this._messages._lang==="en")return[`${e}-${t} of ${s}`,`${e}-${t} of ${s} group${s==="1"?"":"s"}`];let a=this._messages.browser,l={start:e,end:t,total:s},o=J(a.pageRange,l),d=J(a.pageRangeAria,l);return[o,d]}getPreviewFooterActionsEmpty(){return!this.el?.querySelector('[slot="preview-footer-action"]')}renderTopBar(){return n`<arcgis-portal-browser-top-bar slot=top-bar .store=${this.store}><arcgis-portal-browser-search slot=search .store=${this.store} .term=${this.searchTerm} @arcgisBrowserSearch=${e=>{this.handleSearch(e.detail)}}></arcgis-portal-browser-search></arcgis-portal-browser-top-bar>`}renderEmptyTextSlot(e,t){return n`<div slot=${e??g} class="empty-text-slot"><slot name=${e??g}><p class="empty-text-slot__default">${t}</p></slot></div>`}renderContent(){let e=new Set(this.selectedGroups.map(a=>a.id)),t=this.queryResponse.results.map(a=>{let l=this.cards.group?.(a)??{},o=l.view||this.store.view||"list";return{group:a,cardProps:l,view:o}}),s=t.length>0&&t.every(({view:a})=>a==="compact");return n`<div class=${C({"group-browser__results":!0,"group-browser__results--compact":s})} .part=${"results"}>${t.map(({group:a,cardProps:l,view:o})=>{let d=a.id;return pe(d,n`<arcgis-portal-group-card class="group-browser__result-card" .portal=${this.portal} .group=${a} .user=${l.user} .indeterminate=${l.indeterminate} .view=${o} .selection=${this.selection} .selected=${e.has(d)} .preview=${l.preview??this.preview} .previewed=${l.previewed??this.store.preview===d} .name=${l.name} .showSummary=${l.showSummary??!0} .hideBadges=${l.hideBadges??!1} .hideDateUpdated=${l.hideDateUpdated??!1} .showDateCreated=${l.showDateCreated??!1} .hideViewableBy=${l.hideViewableBy??!1} .hideOwner=${l.hideOwner??!1} .link=${l.link} .linkHandler=${l.linkHandler} .newTab=${l.newTab??!1} .disabled=${l.disabled??!1} @arcgisGroupCardSelect=${h=>{this.handleGroupCardSelect(h)}} @arcgisGroupBrowserCardPreview=${h=>{let u=h.detail;if(this.store.filtersExpanded=!1,!u||this.store.preview===u.id){this.closePreview();return}this.restoreFocusTarget=h.currentTarget,this.store.preview=u.id,this.previewGroup=u,this.arcgisGroupBrowserPreview.emit(u)}}></arcgis-portal-group-card>`)})}</div>`}render(){let e=this.responsiveFormFactor==="small"?"small":this.formFactor;return n`<arcgis-portal-browser .store=${this.store} .response=${this.getBrowserResponseFromQueryResponse(this.queryResponse)} .loading=${this.loading} .formFactor=${e} .height=${this.height} .searchTerm=${this.searchTerm} .rangeFormatter=${this.formatRange} .selected=${this.selectedGroups} .alwaysShowSelection=${this.alwaysShowSelection} @arcgisBrowserFilterClear=${this.handleBrowserFilterClear} @arcgisBrowserFilterRemove=${this.handleBrowserFilterRemove} @arcgisAriaUpdate=${t=>{this.arcgisAriaUpdate.emit(t.detail)}}><slot name=top-bar slot=top-bar>${this.renderTopBar()}</slot><slot name=content-start slot=content-start></slot><slot name=selection slot=selection></slot><slot name=actions slot=actions></slot><slot name=view slot=view></slot>${Fe({slot:"sort",sort:this.sort,formFactor:e,sortField:this.sortField,sortOrder:this.sortOrder,onSortFieldChange:t=>{this.handleSortFieldChange(t)},onSortOrderChange:t=>{this.handleSortOrderChange(t)}})}<slot name=content slot=content>${this.renderContent()}</slot>${Ge({slot:"pagination",store:this.store,total:this.queryResponse.total,start:this.queryResponse?.queryParams?.start??1,num:this.queryResponse?.queryParams?.num??this.num,onPage:t=>{this.handlePage(t)}})}<slot name=content-end slot=content-end></slot><slot name=preview slot=preview>${this.previewGroup&&n`<arcgis-portal-group-browser-preview .group=${this.previewGroup} .portal=${this.portal} .user=${this.portal.user??void 0} .hideBadges=${this.hidePreviewBadges} .hidePreviewFooter=${this.hidePreviewFooter} .currentResponse=${this.queryResponse} .previewFooterActionsSpaced=${!this.getPreviewFooterActionsEmpty()} @arcgisGroupBrowserInternalUIAction=${t=>{this.arcgisGroupBrowserInternalUIAction.emit(t.detail)}} @arcgisGroupBrowserPreviewClose=${()=>{this.closePreview({restoreFocus:!0})}} @arcgisPreviewClose=${()=>{this.closePreview({restoreFocus:!0})}}><slot name=preview-footer-action slot=footer-action></slot></arcgis-portal-group-browser-preview>`||""}</slot>${this.renderEmptyTextSlot("no-results",this._messages.content.noResults)}${this.renderEmptyTextSlot("no-content",this._messages.content.noContent)}<slot name=scroll-end slot=scroll-end></slot>${Pe({slot:"filters",filters:this.filters,messages:this._messages,browserMessages:this._browserMessages,store:this.store,portal:this.portal,hasIndoorsSpaces:this.hasIndoorsSpaces,selectedGroupsByUser:this.selectedGroupsByUser,selectedOwner:this.selectedOwner,selectedMembership:this.selectedMembership,selectedMemberOrg:this.selectedMemberOrg,selectedSpecialGroup:this.selectedSpecialGroup,specialGroupOptions:this.specialGroupOptions,selectedAccess:this.selectedAccess,isFilterActive:t=>this.isFilterActive(t),handleSelect:t=>{this.setFilterSelection(t)},handleUserFilterChange:t=>{this.arcgisGroupBrowserUserFilterChange.emit(t)},handleRemove:t=>{this.removeFilter(t)},handleUpsert:t=>{this.store.filters={...this.store.filters,[t.id]:t},this.publishFilterStateChange(),this.fetchGroups()}})}</arcgis-portal-browser>`}};ae("arcgis-portal-group-browser",K);return K},"portal/PortalGroup","core/reactiveUtils","intl","intl",a,b,c,d,e,f,h,i,k,l,m,o)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import f from"./V6ZHHCLD.js";import e from"./Q75EBGI2.js";import{a as S,b as P}from"./AQLILDJK.js";import c from"./24L3PS2J.js";import a from"./F3ODJVJC.js";import{a as w}from"./W3UBNVKL.js";import{a as E,e as I}from"./QZD2UBOW.js";import"./JVGCIDQW.js";import{K as d,L as m,M as b,P as C,S as y,h as g,j as n}from"./6BUBZ7WC.js";import"./UZLQALHY.js";export default $arcgis.t(([{createArcadeExecutor:F},{watch:q},{c:v},,{a:f,b:c,c:p,d:R,e:_,f:O},{a:x,b:$}])=>{async function k({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await T(e,r,t);return{[e]:{enabled:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function T(r,t,i){let a=t?.attributes?.[r];if(!a)return!1;let{isAttributeEnabled:e}=a;return e?await h(e,JSON.stringify(t),i):!0}async function j({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await M(e,r,t);return{[e]:{valueExpressionResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function M(r,t,i){let a=t.attributes[r];if(!a)throw Error(`Attribute ${r} not found in schema`);let e=a.valueExpression,s=a.validValues,o=a.validValuesMap;return s?.length?s:o&&Object.keys(o)?.length?o:e?await h(e,t,i,r):null}async function N({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await H(e,r,t);return{[e]:{attributeValidationResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function H(r,t,i){let a=t?.attributes?.[r];if(!a)return null;let e=a?.attributeValidation;return e?await h(e,JSON.stringify(t),i,r):null}var D=async(r,t)=>{let i=r?.bannerExpression;return i?.length?await h(i,r,t):W(r,t)},W=(r,t)=>{let i=Object.entries(r.attributes).sort(([,s],[,o])=>(s?.bannerOrder??0)-(o?.bannerOrder??0)),a=[],e=[];return i.forEach(([s,o])=>{let l=t?.[s];l&&o.bannerOrder&&(a.push(U({elementType:o.uiElement??"",selectionDisplayLabel:o.bannerLabel??"",labelDelimiter:o.labelDelimiter??"",classificationProp:l,valueDelimiter:o.valueDelimiter??""})),e.push(o.attributeDelimiter??""))}),a.length>0?a.reduce((s,o,l)=>l===0?o:`${s}${e[l-1]}${o}`,""):""},U=({elementType:r,selectionDisplayLabel:t,labelDelimiter:i,classificationProp:a,valueDelimiter:e})=>{let s=r.includes("multi")&&a?a.split("").join(e):a;return`${t}${i}${s}`};async function h(r,t,i,a=""){let e={schemaJsonString:typeof t=="string"?t:JSON.stringify(t),valueJsonString:JSON.stringify(i),attributeId:a};return(await J(r)).execute(e)}async function J(r){return await F(r,{variables:[{name:"schemaJsonString",type:"text"},{name:"valueJsonString",type:"text"},{name:"attributeId",type:"text"}]})}var L=g`:host{height:100%;box-sizing:border-box;display:flex;flex-direction:column}.header-section{padding:var(--calcite-spacing-sm)}.header-section__title-container{display:flex;align-items:center;justify-content:space-between}.header-section__title-text{margin:unset;font-weight:unset;font-size:var(--calcite-font-size)}.header-section__title-popover{padding:var(--calcite-spacing-md)}.form-section{display:flex;border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding:var(--calcite-spacing-sm);height:100%;overflow:hidden}.form-section__sidebar{flex:1;padding:var(--calcite-spacing-sm)}.form-section__main-content{flex:3;padding:var(--calcite-spacing-sm);overflow:auto}.danger{color:var(--calcite-color-status-danger)}.spacing-y{margin:var(--calcite-spacing-md) 0}`,u=class extends b{constructor(){super(),this.classificationModel=x(this),this.messages=w(),this.formMainContentRef=d(),this.bannerRef=d(),this._classificationDataTask=$(this),this._formCreationTask=new P(this,{task:async()=>{if(await this._classificationDataTask.taskComplete,!this.portalClassificationSchema||!this.portalItem)throw new Error("Portal item and classification schema are required to render the form");let t=this.portalItem.clone();if(await t.load(),!this.primaryAttribute)throw new Error("primaryAttribute is required but was undefined.");this.existingClassification=!!t.classification,t.classification=f(t.classification,this.primaryAttribute,this.portalClassificationSchema),t.classification&&(t.classification.banner=await D(this.portalClassificationSchema,t.classification)),this.pendingPortalItem=t,this.cleanupItemClassificationWatchHandle(),this._itemClassificationWatchHandle=q(()=>this.portalItem.classification,i=>{if(this.pendingPortalItem){let a=this.pendingPortalItem.clone();a.load().then(()=>{a.classification=i,this.pendingPortalItem=a}).catch(e=>{console.error(e)})}}),this._itemClassificationWatchPortalItem=this.portalItem,this._itemClassificationWatchPortalItem.addHandles(this._itemClassificationWatchHandle,"arcgis-classification-config"),await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.pendingPortalItem=this.pendingPortalItem.clone(),this.existingClassification&&this.validateForm()},args:()=>[this.portalItem,this.portalClassificationSchema]}),this.getFormDisplayOrder=t=>this.portalClassificationSchema?.layouts.default.layoutElements[t].formDisplayOrder??0,this.addEditInfoAttributes=()=>{if(!this.pendingPortalItem?.classification)return{};let t=structuredClone(this.pendingPortalItem.classification),i=O(this.pendingPortalItem,t);return{...t,...i}},this.updateFavoriteClassification=t=>{this.favoriteClassifications=t},this.updateClassificationData=async t=>{let i=t.classification;if(this.selectedFavoriteClassificationName=t.name,this.pendingPortalItem){let a=this.pendingPortalItem.clone();if(await a.load(),a.classification=p(this.portalClassificationSchema,i),!this.portalClassificationSchema)return;await this.evaluateAttributeExpressions(this.portalClassificationSchema,a),a.classification=c(a.classification,this.attributeExpressionResults),this.pendingPortalItem=a}},this.existingClassification=!1,this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.primaryAttribute=this.classificationModel.primaryAttribute,this.attributeExpressionResults=new Map,this.formValidationErrors=[],this.remoteValidationErrors="",this.canUserConfigureClassification=!0,this.favoriteClassifications=[],this.isRequiredErrors=new Set,this.status=this.classificationModel.status,this.values={},this.valid=!1,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=I()("status","values","valid")}static{this.properties={existingClassification:16,portalClassificationSchema:16,primaryAttribute:16,attributeExpressionResults:16,formValidationErrors:16,itemClassification:16,pendingPortalItem:16,selectedCategory:16,remoteValidationErrors:16,canUserConfigureClassification:16,favoriteClassifications:16,selectedFavoriteClassificationName:16,isRequiredErrors:16,portalItem:0,status:35,values:[1,{type:Object}],valid:7,autoDestroyDisabled:5}}static{this.styles=L}async destroy(){this.cleanupItemClassificationWatchHandle(),await this.destroyManagedChildren(),await this.manager.destroy()}async resetForm(){if(this.existingClassification)this.pendingPortalItem=this.portalItem?.clone(),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.validateForm());else if(this.portalItem&&this.primaryAttribute&&this.portalClassificationSchema){let t=this.portalItem.clone();await t.load(),this.pendingPortalItem=this.portalItem?.clone(),this.pendingPortalItem.classification=f(t.classification,this.primaryAttribute,this.portalClassificationSchema),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults))}}async validateForm(){this.updateFormValidationErrors(),await this.updateRemoteValidationErrors()}async load(){try{await _(this.portalItem)||(this.canUserConfigureClassification=!1);let t=await v(this.portalItem);if(t){let{result:i,error:a}=t;if(a&&a.details.raw.messageCode!=="COM_1177"){console.error(a);return}i&&(this.favoriteClassifications=i.favorites)}}catch(t){console.error("Error occured while loading arcgis-classification-config:",t)}}willUpdate(t){if(t.has("pendingPortalItem")){let i=this.addEditInfoAttributes();this.values=i}(t.has("formValidationErrors")||t.has("remoteValidationErrors"))&&(this.valid=!this.formValidationErrors.length&&!this.remoteValidationErrors)}loaded(){let t=E(this.el,"form");t&&(this.listenOn(t,"formdata",this.updateFormData),this.listenOn(t,"submit",this.handleFormSubmit)),this.listen("submit",this.handleFormSubmit)}async updateClassificationProperty(t){if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let i=this.pendingPortalItem.clone();await i.load(),Object.entries(t??{}).forEach(([a,e])=>{if(a===this.primaryAttribute){let s=R(e,i.classification,this.primaryAttribute);s=p(this.portalClassificationSchema,s),i.classification=s}else{let s=new Map(Object.entries(i.classification??{}));if(e===void 0||e===""||Array.isArray(e)&&e.length===0)s.delete(a);else if(s.set(a,e),a==="fgi"&&!s.has("fgiOptions")){let o=this.portalClassificationSchema?.attributes?.fgiOptions?.defaultValue??[];s.set("fgiOptions",Array.isArray(o)?o:[o])}i.classification=Object.fromEntries(s)}}),i.classification&&!i.classification.fgi&&delete i.classification.fgiOptions,await this.evaluateAttributeExpressions(this.portalClassificationSchema,i),i.classification=c(i.classification,this.attributeExpressionResults),i.classification&&(i.classification.banner=await D(this.portalClassificationSchema,i.classification)),this.pendingPortalItem=i,this.existingClassification&&this.validateForm(),t&&"classification"in t&&this.updateIsRequiredErrors()}handleCategorySelectChange(t){this.selectedCategory=t.target.selectedItems[0].value}async evaluateAttributeExpressions(t,i){let a=await k({portalClassificationSchema:t,itemClassification:i.classification}),e=await j({portalClassificationSchema:t,itemClassification:i.classification}),s=await N({portalClassificationSchema:t,itemClassification:i.classification});Object.keys(t.attributes).forEach(o=>{let l=a[o]?.enabled??!0,V=e[o]?.valueExpressionResult,A=s[o]?.attributeValidationResult;this.attributeExpressionResults.set(o,{enabled:l,valueExpressionResult:V,attributeValidationResult:A})})}updateIsRequiredErrors(){let t=new Set;Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([i,a])=>{a.isRequired&&!this.pendingPortalItem?.classification?.[i]&&this.pendingPortalItem?.classification?.[i]!==0&&t.add(i)}),this.isRequiredErrors=t}updateFormValidationErrors(t=!1){let i=[];Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([a,e])=>{e.isRequired&&!this.pendingPortalItem?.classification?.[a]&&this.pendingPortalItem?.classification?.[a]!==0&&(!t||this.isRequiredErrors.has(a))&&i.push({attribute:e.label,reason:this.messages.isrequired??"is required",category:e.attributeCategory}),this.attributeExpressionResults.get(a)?.attributeValidationResult&&i.push({attribute:e.label,reason:this.attributeExpressionResults.get(a)?.attributeValidationResult??"",category:e.attributeCategory})}),this.formValidationErrors=i}async updateRemoteValidationErrors(){if(!this.pendingPortalItem?.classification)return;let t=await this.classificationModel.validateClassification(void 0,this.pendingPortalItem?.classification,this.pendingPortalItem.portal.restUrl);this.remoteValidationErrors=t}cleanupItemClassificationWatchHandle(){this._itemClassificationWatchHandle?.remove(),this._itemClassificationWatchHandle=void 0,this._itemClassificationWatchPortalItem?.removeHandles("arcgis-classification-config"),this._itemClassificationWatchPortalItem=void 0}async destroyManagedChildren(){let t=this.bannerRef.value;!t?.autoDestroyDisabled||t.manager?.destroyed||await t.destroy()}async handleFormSubmit(t){this.validateForm(),this.updateIsRequiredErrors(),this.formMainContentRef.value?.scrollIntoView()}updateFormData(t){let i=t.formData,a=this.addEditInfoAttributes();a=c(a,this.attributeExpressionResults),Object.entries(a??{}).forEach(([e,s])=>{i.set(e,s)})}renderCategoryTabs(){return this._classificationDataTask.render({complete:()=>{if(this.portalClassificationSchema?.attributeCategories?.length)return this.selectedCategory||(this.selectedCategory=this.portalClassificationSchema?.attributeCategories[0]),n`<calcite-list .label=${this.messages.selectcategory??"select category"} selection-appearance=border selection-mode=single-persist @calciteListChange=${this.handleCategorySelectChange}>${this.portalClassificationSchema.attributeCategories.map(t=>{let i=this.formValidationErrors.filter(a=>a.category===t).length;return n`<calcite-list-item .label=${t} .value=${t} .selected=${this.selectedCategory===t} .description=${i?`${i} ${i>1?this.messages.errors:this.messages.error}`:void 0}>${i&&n`<div slot=content-end class="danger"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon></div>`||""}</calcite-list-item>`})}</calcite-list>`}})}renderValidationErrors(){return this.formValidationErrors.length&&(!this.selectedCategory||this.formValidationErrors.some(t=>this.selectedCategory===t.category))?n`<calcite-notice open icon=exclamation-mark-triangle class="spacing-y" kind=danger><div slot=message>${this.messages.bannererror??"Some fields are incomplete or contain errors. Check the highlighted fields for details."}</div></calcite-notice>`:null}renderFavoriteClassification(){let t=this.portalClassificationSchema?.attributeCategories?.[0]??"Default";return this.selectedCategory=this.portalClassificationSchema?.attributeCategories?.length?this.selectedCategory:"Default",this.selectedCategory===t?n`<arcgis-portal-classification-favorite .portalItem=${this.pendingPortalItem??this.portalItem} .classificationValue=${this.pendingPortalItem?.classification} .favoriteClassifications=${this.favoriteClassifications} .selectedFavoriteClassificationName=${this.selectedFavoriteClassificationName} .attributeExpressionResults=${this.attributeExpressionResults} .resetFavoriteClassification=${i=>this.updateFavoriteClassification(i)} .updateClassificationData=${async i=>{await this.updateClassificationData(i),this.updateFormValidationErrors(),this.updateIsRequiredErrors()}}></arcgis-portal-classification-favorite>`:null}renderForm(){return this._formCreationTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,complete:()=>{if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let t=Object.entries(this.portalClassificationSchema.attributes).sort(([i],[a])=>this.getFormDisplayOrder(i)-this.getFormDisplayOrder(a));return n`${this.renderValidationErrors()}${this.renderFavoriteClassification()}${t.filter(([,{attributeCategory:i}])=>this.selectedCategory===i||!i).map(([i,a])=>{if(this.attributeExpressionResults.get(i)?.enabled===!1)return null;let e=this.pendingPortalItem?.classification?.[i];return n`<arcgis-portal-classification-form-element .attributeKey=${i} .attribute=${a} .value=${e} @arcgisAttributeValueChange=${async s=>{await this.updateClassificationProperty(s.detail),a.isRequired&&!s.detail[i]?this.isRequiredErrors.add(i):this.isRequiredErrors=new Set(Array.from(this.isRequiredErrors).filter(o=>o!==i)),this.updateFormValidationErrors(!0)}} .renderingInfo=${this.attributeExpressionResults.get(i)} .isRequiredErrors=${this.isRequiredErrors}></arcgis-portal-classification-form-element>`})}`}})}renderNotice(t,i="warning"){return n`<calcite-notice icon=exclamation-mark-triangle open class="spacing-y" .kind=${i}><div slot=message>${t}</div></calcite-notice>`}renderHelpTooltip(){return this.portalClassificationSchema?.helpTooltip?n`<calcite-action id=portal-classification-config-tooltip-button .text=${this.portalClassificationSchema?.helpTooltip} icon=information></calcite-action><calcite-popover .label=${this.portalClassificationSchema?.helpTooltip} reference-element=portal-classification-config-tooltip-button placement=bottom-end overlay-positioning=fixed auto-close><div class="header-section__title-popover"><calcite-link .href=${this.portalClassificationSchema?.helpUrl} target=_blank id=portal-classification-config-tooltip-button>${this.portalClassificationSchema?.helpTooltip}</calcite-link></div></calcite-popover>`:null}render(){return this.portalItem?this._classificationDataTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,error:()=>this.renderNotice(this.messages.anerroroccurred??"An error has occurred.","danger"),complete:()=>this.portalItem?this.canUserConfigureClassification?this.portalItem.portal.hasClassificationSchema?n`<div class="header-section" role=region aria-label=${this.messages.documentbannerpreview??"documentbannerpreview"??C}><div class="header-section__title-container"><h2 class="header-section__title-text">${this.messages.documentbannerpreview??"documentbannerpreview"}</h2>${this.renderHelpTooltip()}</div>${this._formCreationTask.status===S.COMPLETE&&n`<arcgis-portal-classification-banner .portalItem=${this.pendingPortalItem??this.portalItem} variant=preview .missingExistingClassification=${!this.existingClassification} .autoDestroyDisabled=${this.autoDestroyDisabled} ${m(this.bannerRef)}></arcgis-portal-classification-banner>`||""}</div><div class="form-section">${this.portalClassificationSchema?.attributeCategories?.length&&n`<div class="form-section__sidebar">${this.renderCategoryTabs()}</div>`||""}<div class="form-section__main-content" ${m(this.formMainContentRef)}>${this.renderForm()}</div></div>`:this.renderNotice(this.messages.missingclassificationschema??"Portal is missing classification schema."):this.renderNotice(this.messages.userconfigurepermissionrequired??"User configuration permission is required."):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}};y("arcgis-portal-classification-config",u);return u},"arcade","core/reactiveUtils",a,c,e,f)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{d as g}from"./OBBYT2AV.js";import a from"./JTIPENXE.js";import{c as $}from"./2GBRZSEC.js";import{a as F}from"./W3UBNVKL.js";import{K as x,L as b,M as _,N as s,O as v,S as y,h as u,j as o,w as p}from"./6BUBZ7WC.js";export default $arcgis.t(([{watch:l},h,{substitute:B},{a:k,b:S,c:R,d:P}])=>{var U=u`:host{position:relative;display:flex;height:100%;flex-direction:column;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-color-background);--arcgis-browser-max-width: 100%;--arcgis-browser-pane-width: 18.75rem;--arcgis-browser-pane-z-index: 11;container-type:inline-size;container-name:portal-browser}:host([height="auto"]){height:auto;min-height:100%;flex:1 1 100%}.wrapper{display:flex;height:100%;flex-direction:column;overflow:hidden}.wrapper--fixed{overflow:hidden}.wrapper--auto{flex:1 1 100%}.wrapper--full{transform:translate(0)}.panel{display:flex;height:100%;flex-direction:column;overflow:hidden}.panel--fixed{transform:translateZ(0)}.top-bar{position:sticky;top:0;right:0;left:0;z-index:20;flex-shrink:0;flex-grow:0;border-bottom:1px solid var(--calcite-color-border-3)}.scrolling{position:relative;display:flex;min-height:0px;width:100%;flex:1 1 0%;flex-direction:column}.scrolling--panel{overflow-y:scroll}@supports (scrollbar-gutter: stable){.scrolling--panel{scrollbar-gutter:stable;overflow-y:auto}}.scrolling--full{overflow:hidden}.preview-position{position:absolute;inset:0;margin-inline:auto;width:100%;max-width:var(--arcgis-browser-max-width)}.preview-position--with-top-bar{top:3rem}.preview-desktop{width:100%}.two-up{margin-left:auto;margin-right:auto;display:flex;width:100%;flex:1 1 auto;flex-direction:row;max-width:var(--arcgis-browser-max-width)}.two-up.small{margin-top:-1px}.two-up--fullscreen{height:100%;overflow:hidden}.content__start{margin-inline-end:.25rem;padding-inline:1rem}.content{position:relative;display:flex;min-width:0px;flex:1 1 0%;flex-direction:column;overflow:hidden}.content--full{overflow-y:scroll}@supports (scrollbar-gutter: stable){.content--full{scrollbar-gutter:stable;overflow-y:auto}}.content__top{position:relative;display:flex;height:1.5rem;flex-grow:0;align-items:center;justify-content:space-between;padding-top:1.25rem;padding-bottom:.75rem;font-size:1.125rem;color:var(--calcite-color-text-1);z-index:2}.content__top__end{margin-inline-start:auto;display:grid;gap:.5rem;grid-auto-flow:column}.actions,.filter-status{flex:1 1 0%}.content__view{margin-inline-end:.25rem;min-width:0px;flex:1 1 0%;padding-inline:var(--arcgis-browser-content-padding, 1rem)}.content__view--padded-bottom{padding-bottom:1rem}.content__view--no-filters{margin-inline-start:.25rem;padding-inline-start:var(--arcgis-browser-content-padding, 1rem)}.pane{pointer-events:none;visibility:hidden;display:flex;height:100%;background-color:var(--calcite-color-background);opacity:0;transition-duration:var(--calcite-internal-animation-timing-medium);transition-property:transform,visibility,opacity;border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.pane--open{pointer-events:auto;visibility:visible;opacity:1;transform:translate(0);box-shadow:4px 0 16px #0000000f}.preview{width:0px;flex-shrink:0;flex-grow:0;position:absolute;top:0;bottom:0;inset-inline-start:0;transition-duration:var(--calcite-internal-animation-timing-medium);transition-property:width;z-index:var(--arcgis-browser-pane-z-index)}.preview--fixed{position:fixed}.preview--active{overflow:auto;width:var(--arcgis-browser-pane-width);box-shadow:#0000000f 4px 0 16px}.filter-panel,.preview-panel{position:relative;height:100%;background-color:var(--calcite-color-background)}.filter-panel__content{padding:.75rem 1rem 0}.filter-status--mobile{width:100%}.filter-status--active{display:block}.popover-contents{width:var(--arcgis-browser-popover-width);height:var(--arcgis-browser-popover-height)}.sheet{pointer-events:none;position:fixed;inset:0;z-index:110}.sheet--top-bar{top:3rem;overflow:hidden}.sheet__background{position:absolute;inset:0;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;background-color:#0003}.sheet__background--hidden{display:none}.sheet--active .sheet__background{opacity:1}.sheet--active{pointer-events:auto;opacity:1}.sheet__contents{position:absolute;inset:0;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;top:3rem;transform:translate3d(0,24px,0)}.sheet__contents--full{top:0;--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);inset-inline-end:0;width:100%;border:1px solid var(--calcite-color-border-3);border-inline-start:1px solid var(--calcite-color-border-3);transform:translate3d(0,24px,0)}.sheet--active .sheet__contents{opacity:1;transform:translateZ(0)}.hide{display:none}.aria-hidden{height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;position:absolute;top:0;bottom:0;width:0px;inset-inline-end:0}.content__view--flex{display:flex;flex-direction:column}.cover{display:flex;flex:1 1 0%;align-items:flex-start;justify-content:center;overflow:auto;padding-bottom:1rem;padding-top:.25rem}.no-results{height:100%;width:100%;flex:1 1 0%;text-align:center;font-size:.875rem;color:var(--calcite-color-text-2)}::slotted([slot="no-results"]){width:100%}::slotted([slot="no-content"]){width:100%}.results-wrapper{flex:1 1 0%}.results-wrapper--spaced{padding-top:1.5rem}.loader{margin-top:min(8rem,30vh);--calcite-loader-padding: 0}.filters{box-sizing:border-box;flex-grow:0;padding-inline:1.5rem 0;width:var(--arcgis-browser-pane-width)}.filters--sticky{position:sticky;top:0;height:100%}.filters__content{overflow-y:auto;height:100%;padding-top:1.5rem;box-sizing:border-box;scrollbar-gutter:stable}.filters--empty{display:none}.filters--active{opacity:1;transform:translateZ(0)}.filters__title{margin:0 0 1rem;padding:0 0 1rem;font-size:1.125rem;font-weight:500;color:var(--calcite-color-text-1);padding-inline-start:.75rem;border-bottom:1px solid var(--calcite-color-border-3)}.range{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;color:var(--calcite-color-text-1)}.container{display:flex;height:100%;width:100%;flex-direction:column;background-color:var(--calcite-color-background)}.container__header{display:flex;flex:0 1 auto;flex-direction:row;background-color:var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-border-3)}.container__header__text{margin:0;flex:1 1 0%;padding:.875rem .75rem;font-size:1rem;font-weight:500;color:var(--calcite-color-text-2)}.container__content{flex:1 1 0%;overflow:auto}.container__footer{box-sizing:border-box;width:100%;flex:0 1 auto;background-color:var(--calcite-color-foreground-1);padding:.5rem}.small .filters{padding:0}.small .filters__content{padding-left:1rem;padding-right:1rem}.small .content__view{padding-inline:.5rem;margin-inline:0}.small .content__view--panel{padding-inline:0}.small .content__start{margin-inline:0;padding-inline:.5rem}@container portal-browser (max-width: 640px){:host{--arcgis-browser-pane-width: 100%}}.scrim__find{margin-top:3.5rem;opacity:.6;transition-property:opacity;transition-duration:.15s;--calcite-scrim-background: rgba(0, 0, 0, .6)}`;function C(d){return{...d,value:void 0,..."additionalParams"in d?{additionalParams:void 0}:{}}}function I(d,t={}){let{hiddenFilterIds:e,preservedFilterIds:i}=t,r=new Set([...e||[],...i||[]]);return Object.entries(d).reduce((a,[n,c])=>r.has(n)?(a[n]=c,a):(a[n]=C(c),a),{})}function q(d){let t=Math.max(d?.total??0,0),e=d?.results?.length??0;if(!t||!e)return{start:0,end:0,total:t};let i=Math.max(d?.start??1,1),r=Math.min(i+e-1,t);return{start:i,end:r,total:t}}var A=49,f=class extends _{constructor(){super(...arguments),this._messages=F({blocking:!0}),this._previewContainer=x(),this.toggleScrim=t=>{this.scrimActive=t.detail},this.checkFlowItem=()=>{this.flowItem=g(this.el,"calcite-flow-item")},this.handleResize=()=>{requestAnimationFrame(this.updatePreviewPosition)},this.updatePreviewPosition=()=>{if(this.formFactor==="small"||this.height!=="auto"||!this._previewContainer)return;this.checkFlowItem();let t=this._previewContainer.value?.getBoundingClientRect();if(!t)return;let{x:e,y:i,height:r,right:a,width:n}=t,c=r+i,m=window.innerWidth-document.body.offsetWidth,w=window.innerWidth<n||window.innerWidth<window.outerWidth&&window.innerWidth<=n+m;this.previewBoundingBox={top:Math.max(i,0),left:e,right:w?0:window.outerWidth-a-m,bottom:c>window.innerHeight?0:window.innerHeight-c}},this.pageRangeText="",this.noResults=!1,this.initialHide=!0,this.scrimActive=!1,this.panel=!1,this.preview=!1,this.loading=!1,this.hideContentTop=!1,this.alwaysShowSelection=!1,this.alwaysShowContent=!1,this.response={nextStart:-1,num:0,results:[],start:1,total:0},this.store=R(),this.formFactor="large",this.searchTerm="",this.height="full",this.api=4,this.arcgisAriaUpdate=p(),this.arcgisBrowserFilterClear=p(),this.arcgisBrowserFilterRemove=p(),this.ariaUpdate=p()}static{this.properties={pageRangeText:16,noResults:16,previewBoundingBox:16,initialHide:16,scrimActive:16,flowItem:16,panel:5,preview:5,loading:5,hideContentTop:5,hideTopBar:5,selected:0,alwaysShowSelection:5,alwaysShowContent:5,response:0,store:0,formFactor:1,searchTerm:1,height:3,hideFilters:5,showPreSearch:5,rangeFormatter:0,alwaysShowPagination:5,api:9}}static{this.styles=U}async scrollToTop(){this.renderRoot.querySelector(".top-bar")?.scrollIntoView({behavior:"smooth",block:"nearest"})}connectedCallback(){super.connectedCallback(),window.addEventListener("scroll",this.handleResize),window.addEventListener("resize",this.handleResize),this.el.addEventListener("arcgisItemBrowserScrimToggle",this.toggleScrim),this.checkFlowItem(),this.attachStoreWatchers()}willUpdate(t){t.has("store")&&this.attachStoreWatchers(),t.has("response")&&this.updatePage(this.response)}firstUpdated(){requestAnimationFrame(this.updatePreviewPosition)}disconnectedCallback(){this.removePreviewWatcher?.(),this.removeStoreWatcher?.(),window.removeEventListener("resize",this.handleResize),window.removeEventListener("scroll",this.handleResize),this.el.removeEventListener("arcgisItemBrowserScrimToggle",this.toggleScrim),super.disconnectedCallback()}attachStoreWatchers(){if(this.removePreviewWatcher?.(),this.removeStoreWatcher?.(),!this.store)return;this.removePreviewWatcher=P(this.store,this.updatePreviewPosition);let t=[l(()=>this.store.type,()=>this.requestUpdate()),l(()=>this.store.width,()=>this.requestUpdate()),l(()=>this.store.height,()=>this.requestUpdate()),l(()=>this.store.filtersEmpty,()=>this.requestUpdate()),l(()=>this.store.topbarEmpty,()=>this.requestUpdate()),l(()=>this.store.sortEmpty,()=>this.requestUpdate()),l(()=>this.store.filtersExpanded,()=>this.requestUpdate()),l(()=>this.store.panel,()=>this.requestUpdate()),l(()=>this.store.preview,()=>this.requestUpdate()),l(()=>this.store.searchTerm,()=>this.requestUpdate()),l(()=>this.store.hiddenFilters,()=>this.requestUpdate()),l(()=>this.store.filters,()=>this.requestUpdate()),l(()=>this.store.recycleBin,()=>this.requestUpdate())];this.removeStoreWatcher=()=>{t.forEach(e=>e.remove())}}async updatePage(t){let[e,i]=await this.updatePageRange(t);this.pageRangeText=e,this.arcgisAriaUpdate.emit(i),this.el.dispatchEvent(new CustomEvent("ariaUpdate",{detail:i})),this.noResults=S(this.store)&&this.store.recycleBin?t.results.length===0:(t?.total??0)===0,this.initialHide=!1}async updatePageRange(t){let{start:e,end:i,total:r}=q(t),a=h.formatNumber(e,{maximumFractionDigits:0}),n=h.formatNumber(i,{maximumFractionDigits:0}),c=`${h.formatNumber(r,{maximumFractionDigits:0})}${r>=1e4?"+":""}`,m=h.formatNumber(t.results?.length??0,{maximumFractionDigits:0}),w=h.formatNumber(Math.max(Math.ceil(e/Math.max(t.num||1,1)),1),{maximumFractionDigits:0});if(this.rangeFormatter)return await this.rangeFormatter({start:a,end:n,total:c,results:{items:m,page:w}});let E=this._messages.browser.pageRange,T=this._messages.browser.pageRangeAria,W=B(E,{start:a,end:n,total:c}),z=B(T,{start:a,end:n,total:c});return[W,z]}hasActiveFilter(t){return Object.values(t.filters).filter(({id:e})=>!$(k,e)).some(e=>!!e.value||e.id==="collaborations")}removeFilter(t){let e=this.store.filters[t];if(!e)return;let i=C(e),r={...this.store.filters,[t]:i};this.store.filters=r,this.arcgisBrowserFilterRemove.emit(t)}clearFilters(){let t=I(this.store.filters,{hiddenFilterIds:this.store.hiddenFilters,preservedFilterIds:["folder","group","contentType"]});this.store.filters=t,this.arcgisBrowserFilterClear.emit(null)}renderNoResults(){let t=this.noResults&&!this.loading&&!this.showPreSearch,e=this.hasActiveFilter(this.store)||!!this.searchTerm;return t?o`<div class="cover"><div class="no-results">${e?o`<slot name=no-results></slot>`:o`<slot name=no-content></slot>`}</div></div>`:null}renderPopoverContents(t,e,i){let r=this.flowItem?this.flowItem.offsetHeight:this.store.height,a=this.formFactor==="small"&&this.hasActiveFilter(this.store)&&!this.hideFilters;return this.el.style.setProperty("--arcgis-browser-popover-width",i?"100%":`${this.store.width||0}px`),this.el.style.setProperty("--arcgis-browser-popover-height",i?"100%":`${r||0}px`),o`<div class="popover-contents"><div class=${s({hide:!e,"preview-panel":!0})}><slot name=preview></slot></div><div class=${s({hide:!t,"filter-panel":!0})}><article class="container"><header class="container__header"><h2 class="container__header__text">${this._messages.browser?.refineContent}</h2><calcite-action .text=${this._messages.browser?.close} scale=m icon=x @click=${()=>{this.store.filtersExpanded=!1}}></calcite-action></header><div class="container__content"><div class="container__content__scroll"><slot name=filters-top></slot>${(this.store.panel||i)&&o`<div class="filter-container__content"><slot name=sort></slot></div>`||""}<slot name=filters></slot></div></div><div class=${s({"filter-status--mobile":!0,container__footer:!0,hide:!a})}><arcgis-portal-browser-filter-status class="filter-status" .filters=${this.store.filters} .hiddenFilterIds=${this.store.hiddenFilters||[]} .componentWidth=${this.store.width||this.flowItem?.offsetWidth||window.innerWidth} .browserWidth=${window.innerWidth} @arcgisBrowserFilterClear=${()=>this.clearFilters()} @arcgisBrowserFilterRemove=${n=>this.removeFilter(n.detail)}></arcgis-portal-browser-filter-status></div></article></div></div>`}renderFlow(){let t=!!this.store.panel,e=!!this.store.filtersExpanded&&(!this.store.filtersEmpty||!this.store.sortEmpty&&t),i=!!this.store.preview,r=!this.store.panel&&document.documentElement.clientWidth>(this.store.width||0);return o`<div class=${s({panel:!0,"panel--fixed":r})}>${!this.hideTopBar&&o`<div class=${s({"top-bar":!0,"top-bar--small":this.formFactor==="small"})}><slot name=top-bar></slot></div>`||""}<div class="scrolling scrolling--panel"><div class=${s({"two-up":!0,[this.formFactor]:!0})}><div class="content"><div><slot name=primary-filter></slot></div><div class="content__start"><slot name=content-start></slot></div>${this.loading&&!this.alwaysShowContent&&o`<div class="content__view content__view--flex"><div class="cover"><calcite-loader class="loader" label></calcite-loader></div></div>`||""}${this.noResults&&!this.loading&&o`<div class="content__view content__view--flex"><div class="cover">${this.renderNoResults()}</div></div>`||""}<div class=${s({hide:this.loading||this.noResults,content__view:!0,"content__view--panel":!!this.store.panel,"content__view--flex":!this.loading&&!this.noResults})}>${!this.store.panel&&!this.hideContentTop&&o`<div class="content__top"><span class=${s({selection:!0,hide:!this.alwaysShowSelection})}><slot name=selection></slot></span>${!this.loading&&o`<span class="range">${this.pageRangeText}</span>`||""}<span class="actions"><slot name=actions></slot></span><div class="content__top__end"><slot name=view></slot>${!t&&o`<slot name=sort></slot>`||""}</div></div>`||""}<div class="flow-content"><slot name=content></slot></div><slot name=pagination></slot><slot name=content-end></slot></div></div></div><slot name=scroll-end></slot></div>${!this.store.panel||window.innerWidth<(this.store.width||0)*2?o`<div class=${s({sheet:!0,"sheet--active":e||i,"sheet--top-bar":r})}><div class=${s({sheet__background:!0,"sheet__background--hidden":r})}></div><div class=${s({sheet__contents:!0,"sheet__contents--full":r})}>${this.renderPopoverContents(e,i,!0)}</div></div>`:o`<calcite-popover overlay-positioning=fixed .open=${i||e} label=filters .referenceElement=${this.flowItem||this.el} offset-skidding=0 offset-distance=0 trigger-disabled pointer-disabled .placement=${this.store.panel?"trailing":"auto"} @calcitePopoverOpen=${a=>{(!this.store.panel||window.innerWidth<(this.store.width||0)*2)&&(a.currentTarget.style.transform="none")}} .focusTrapOptions=${{setReturnFocus:a=>{if(!(a instanceof HTMLElement))return a;let n=g(a,"arcgis-portal-item-card, arcgis-portal-group-card");return n?.restoreFocus?(n.restoreFocus(),!1):a}}}>${this.renderPopoverContents(e,i)}</calcite-popover>`}</div>`}render(){let t=this.height==="auto",e=this.height==="full",i=`${(this.store.height||window.innerHeight)-A}px`,r=t?{}:{maxHeight:i};return this.formFactor==="small"?this.renderFlow():o`<div class=${s({wrapper:!0,"wrapper--fixed":!!this.store.filtersExpanded,"wrapper--auto":t,"wrapper--full":e})}>${!this.hideTopBar&&o`<div class="top-bar"><slot name=top-bar></slot></div>`||""}<slot name=top-bar-end></slot><div class=${s({"preview-position":!0,"preview-position--with-top-bar":!this.store.topbarEmpty})} ${b(this._previewContainer)}><div class=${s({preview:!0,"preview--active":!!this.store.preview,"preview--fixed":t})} style=${v(t&&this.previewBoundingBox?{top:`${this.previewBoundingBox.top||0}px`,...document.dir==="rtl"?{right:`${this.previewBoundingBox.right||0}px`}:{left:`${this.previewBoundingBox.left||0}px`},bottom:`${this.previewBoundingBox.bottom||0}px`}:{})}><div class=${s({pane:!0,"pane--open":!!this.store.preview})}><div class="preview-desktop"><slot name=preview></slot></div></div></div></div><div class=${s({scrolling:!0,"scrolling--full":!t||this.panel})}>${this.scrimActive&&o`<calcite-scrim class="scrim__find"></calcite-scrim>`||""}<div class=${s({"two-up":!0,"two-up--fullscreen":e,[this.formFactor]:!0})}><div class=${s({filters:!0,"filters--sticky":!t,"filters--empty":this.store.filtersEmpty&&!this.store.preview,"filters--active":!!this.store.filtersExpanded})} style=${v(e?{}:r)}><div class="filters__content" style=${v(e?{}:r)}><slot name=filters></slot></div></div><div class=${s({content:!0,"content--full":e})}><div class="content__start"><slot name=content-start></slot></div><div class=${s({content__view:!0,"content__view--no-filters":this.store.filtersEmpty&&!this.store.preview,"content__view--flex":!0})}>${!this.hideContentTop&&o`<div class="content__top">${this.showPreSearch?null:o`<div class="content__top__summary"><span class=${s({selection:!0,hide:!this.alwaysShowSelection})}><slot name=selection></slot></span>${!this.loading&&o`<span class="range">${this.pageRangeText}<slot name=range-end></slot></span>`||""}</div>`}<span class="actions"><slot name=actions></slot></span><div class="content__top__end"><slot name=view></slot><slot name=sort></slot></div></div>`||""}${this.loading&&(!this.alwaysShowContent||this.initialHide)&&o`<div class="cover"><calcite-loader class="loader" .label=${this._messages.browser?.loading??""}></calcite-loader></div>`||""}${this.renderNoResults()}${!this.loading&&this.showPreSearch&&o`<div class="cover"><div class="no-results"><slot name=pre-search></slot></div></div>`||""}<div class=${s({hide:!!this.showPreSearch||this.loading&&!this.alwaysShowContent||!this.loading&&this.noResults||this.initialHide,"results-wrapper--spaced":this.hideContentTop,"results-wrapper":!0})}><slot name=content></slot></div><div class=${s({hide:this.loading||this.noResults&&!this.alwaysShowPagination})}><slot name=pagination></slot><slot name=content-end></slot></div></div></div></div><slot name=scroll-end></slot></div></div>`}};y("arcgis-portal-browser",f);return{a:C,b:I,c:f}},"core/reactiveUtils","intl","intl",a)
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import"./UZLQALHY.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,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import a from"./F3ODJVJC.js";import{a as i,d as w,e as P}from"./VMQIDO4Z.js";export default $arcgis.t(([v,q,{e:$,f:A,g:h}])=>{var l={},p={},d={};async function k({requester:r,key:t,id:e,cacheOption:n}){let s=d[t]?.[e]?.expireAt,o=!!s&&new Date().getTime()>s;if(l[t]?.[e]&&!o)return l[t][e];p[t]||(p[t]={}),(!p[t][e]||o)&&(p[t][e]=r());let a=await p[t][e];if(l[t]||(l[t]={}),d[t]||(d[t]={}),l[t][e]=a,n){let{expireAfter:f,getExpireAfterFromResult:c}=n,g=c||f?new Date().getTime()+(c?.(a)??f??0):null;d[t][e]={...d[t][e],expireAt:g}}return a}async function x({url:r,portal:t,params:e={},options:n={},method:s,abortControllerId:o,excludeJson:a}){let f=E(o)?.signal,{customToken:c,addTokenManually:g,addSSL:S,useProxy:b}=n,y={...e};if(!r.includes("f=")&&!a&&(y.f="json"),c)y.token=c;else if(g!==!1){let U=await I(t);U&&(y.token=U)}let C=S?R(r,t):r,L={query:y,method:s||"auto",...n,timeout:n.timeout||0,useProxy:b,...n?.disableIdentityLookup?{authMode:"anonymous"}:{}},T=await q(C,{signal:f,...L});return o&&(m[o]=void 0),T.data}var m={};function E(r){if(r)return m[r]&&m[r].abort(),m[r]=new AbortController,m[r]}async function I(r){let t=P(r);if(!r?.isPortal||!t)return w(r);let e=r?.user;if(!e&&t)return;let{token:n}=await k({requester:async()=>await M(r),key:"platformSelf",id:e?.id??r.id??"<unknown>",cacheOption:{getExpireAfterFromResult:s=>s.expires_in}});return n}var M=async r=>{let t={"X-Esri-Auth-Client-Id":await O(r),"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/u,"")};return(await q(`${i(r)}/oauth2/platformSelf`,{authMode:"no-prompt",headers:t,withCredentials:!0,method:"post"})).data},O=async r=>(await k({requester:async()=>await v.getCredential(i(r),{oAuthPopupConfirmation:!1}),key:"credential",id:r.user?.id??"<unknown>"})).oAuthState?.appId??"arcgisonline";function R(r,t){return window.location.protocol==="https:"||t.allSSL?r.replace("http:","https:"):r}async function _(r,t,e){let n=`${e?"https://www.arcgis.com/sharing/rest/":i(t)}community/users/${r}`,s=n?.includes("www.arcgis.com")&&t.isPortal,o=n?.includes(".arcgis.com")&&!t.isPortal&&!t.user,a=s||o?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await k({requester:async()=>{try{return await x({url:n,portal:t,options:a})}catch{return{username:r}}},key:"user",id:n})}var z=async r=>{let t=`${i(r)}/portals/${r.id}/users`;return await x({url:t,portal:r,params:{num:100,sortField:"lastlogin",sortOrder:"desc"}})};function u(r,t){return`${r.restUrl}/community/users/${t?.id||r?.user?.id}`}async function B(r,t){let e=`${u(r,t)}/properties`;return await $(e)}async function G(r,t,e){let n=`${u(t,e)}/setProperties`,s=w(t),o=new FormData;return o.append("properties",JSON.stringify(r)),o.append("token",s),o.append("f","json"),await $(n,{method:"post",body:o})}async function K(r,t){let e=`${u(r,t)}/provisionedListings`;return await h(e,{returnAppClientIds:!0,returnAllProvisions:!0},"provisionedListings")}async function Q(r,t){let e=`${u(r,t)}/linkedUsers`;try{return await h(e,{num:10},"linkedUsers")}catch(n){return console.error("Error fetching linked accounts:",n),[]}}async function V(r,t,e){try{return await h(`https://${r.portalHostname}/sharing/rest/community/users/${t}/linkedUsers`,{num:10,token:e},"linkedUsers")}catch(n){return console.error(n),[]}}async function W({portal:r,user:t,targetUser:e,targetToken:n}){let s=`${u(r,t)}/linkUser`,o=await A(s,{method:"post",query:{user:e,userToken:n}});return o.error&&console.error(o.error),o}async function Y({portal:r,user:t,linkedUsername:e}){let n=`${u(r,t)}/unlinkUser`,s=await A(n,{method:"post",query:{user:e}});return s.error&&console.error(s.error),s}return{a:k,b:x,c:I,d:_,e:z,f:B,g:G,h:K,i:Q,j:V,k:W,l:Y}},"identity/IdentityManager","request",a)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import"./
|
|
2
|
+
import"./UZLQALHY.js";var o=`(function(){"use strict";const h=(a,r)=>{if(a.length!==r.length)throw new Error("Vectors must be the same length");let c=0,t=0,e=0;for(let n=0;n<a.length;++n){const s=a[n],l=r[n];c+=s*l,t+=s*s,e+=l*l}const i=Math.sqrt(t*e);if(i===0)return 0;const m=c/i;return Math.max(-1,Math.min(1,m))},f=(a,r,c=.6)=>{const t=[],e=[...a];for(;t.length<r&&e.length>0;){let i=-1,m=-1/0;for(let n=0;n<e.length;n++){const s=e[n].score,l=t.length===0?0:Math.max(...t.map(o=>h(e[n].vector,o.vector))),d=c*s-(1-c)*l;d>m&&(m=d,i=n)}t.push(e[i]),e.splice(i,1)}return t.map(({name:i,score:m})=>({name:i,score:m}))};let p=[];const u=new Map,v=12,y=10,M=a=>{p=a.layers.map(r=>({id:r.id,vector:r.vector}))},E=a=>{u.clear();for(const r of a.layers){const c=r.fields.map(t=>({name:t.name,vector:t.vector}));u.set(r.id,c)}};globalThis.addEventListener("message",a=>{(async()=>{const{type:r,webmapEmbeddings:c,layerIdForFieldsSearch:t=[],requestId:e,precomputedEmbedding:i,minScore:m=0,topResults:n=v}=a.data;switch(r){case"generateEmbeddings":{c&&(M(c),E(c)),globalThis.postMessage("completed");break}case"layerSearch":{if(p.length>0)try{const s=p.map(o=>({id:o.id,vector:o.vector,score:h(i,o.vector)})),d=f(s.map(o=>({name:o.id,vector:o.vector,score:o.score})),y).map(({name:o,score:b})=>({id:o,score:b}));globalThis.postMessage({requestId:e,results:d})}catch(s){globalThis.postMessage({requestId:e,results:[],error:s instanceof Error?s.message:"Calculation error"})}else globalThis.postMessage({requestId:e,results:[],error:"Layer embeddings not initialized"});break}case"fieldSearch":{if(t.length>0)try{const s=t.map(l=>{const d=u.get(l);if(!d)return{layerId:l,results:[]};const o=d.map(g=>({name:g.name,vector:g.vector,score:h(i,g.vector)})).filter(({score:g})=>g>=m),b=f(o,n);return{layerId:l,results:b}});globalThis.postMessage({requestId:e,results:s})}catch(s){globalThis.postMessage({requestId:e,results:[],error:s instanceof Error?s.message:"Field search calculation error"})}break}default:console.warn("Unknown message type:",r)}})()})})();
|
|
3
3
|
`,r=typeof self<"u"&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",o],{type:"text/javascript;charset=utf-8"});function a(t){let e;try{if(e=r&&(self.URL||self.webkitURL).createObjectURL(r),!e)throw"";let s=new Worker(e,{name:t?.name});return s.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(e)}),s}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(o),{name:t?.name})}}export{a as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{C as s,D as i,G as o,m as r}from"./6BUBZ7WC.js";var u=s(class extends i{constructor(){super(...arguments),this.key=r}render(t,e){return this.key=t,e}update(t,[e,m]){return e!==this.key&&(o(t),this.key=e),m}});export{u as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import e from"./G4HKVJ53.js";import d from"./V6VNED6L.js";import"./6TO2BYXU.js";import"./6KVA4AKM.js";import"./CFBSBZSS.js";import"./2BUE3JLM.js";import"./OBBYT2AV.js";import"./DFTUMKSN.js";import c from"./TGTT2CVD.js";import b from"./F3ODJVJC.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import"./W3UBNVKL.js";import"./QZD2UBOW.js";import"./JVGCIDQW.js";import{M as r,S as o,h as i,j as a}from"./6BUBZ7WC.js";import"./UZLQALHY.js";export default $arcgis.t(([,,,{a:p}])=>{var n=i`:host{display:flex;flex-wrap:wrap;align-items:center}.portal-item-badges__badge{display:inline-block;margin-inline-end:.25rem}.portal-item-badges__badge:last-of-type{margin-inline-end:0}`,e=class extends r{constructor(){super(...arguments),this.badges=[],this.width="full",this.scale="m",this.showTooltips=!1,this.empty=!1}static{this.properties={badges:16,item:0,portal:0,user:0,width:1,appearance:1,scale:1,showTooltips:5,useProduction:5,empty:7}}static{this.styles=n}willUpdate(t){if(t.has("item")||t.has("portal")||t.has("user")){if(!this.item||!this.portal){this.badges=[],this.empty=!0;return}let s=p(this.item,this.portal,this.user);this.badges=s,this.empty=s.length===0}}render(){let{appearance:t,badges:s,scale:l,showTooltips:h,width:m}=this;return s.map(d=>a`<arcgis-portal-item-badge .appearance=${t} .badgeType=${d} class="portal-item-badges__badge" .item=${this.item} .portal=${this.portal} .user=${this.user} .scale=${l} .showTooltip=${h} .useProduction=${this.useProduction} .width=${m}></arcgis-portal-item-badge>`)}};o("arcgis-portal-item-badges",e);return e},b,c,d,e)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
var i=s=>s.sourceJSON,a=s=>"sourceJSON"in s,e=s=>a(s)?i(s):s,c=s=>e(s).capabilities??[],r=s=>e(s).orgId,t=s=>e(s).membershipAccess,o=s=>e(s).isOpenData===!0,d=s=>c(s).includes("distributed");export{i as a,e as b,c,r as d,t as e,o as f,d as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>{try{return a||b((a={exports:{}}).exports,a),a.exports}catch(c){throw a=0,c}},n=(b,a)=>{for(var c in a)e(b,c,{get:a[c],enumerable:!0})},l=(b,a,c,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&e(b,d,{get:()=>a[d],enumerable:!(f=h(a,d))||f.enumerable});return b};var o=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?e(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b,o as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as g}from"./W3UBNVKL.js";import{M as m,P as l,S as u,h as p,j as s,w as d}from"./6BUBZ7WC.js";var w=p`.sort-accordion-wrap{border-bottom:1px solid var(--calcite-color-border-2)}.sort-title{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);padding:1rem .5rem;margin:0 0 -1px;line-height:1;border-bottom:1px solid var(--calcite-color-border-2)}.dropdown-sort-order-items--in-dialog{max-height:var(--arcgis-browser-sort-max-height, none)}.sort-accordion-item{--calcite-accordion-item-content-space: .75rem .25rem;--calcite-accordion-icon-margin: .5rem;border-top:1px solid var(--calcite-color-border-1)}.sort-accordion-content{margin:-.75rem .5rem 0}`,b={title:["asc","alphabetical"],owner:["asc","alphabetical"],numviews:["desc","num"],relevance:["desc"],modified:["desc","recent"],created:["desc","recent"],size:["desc","size"],fullname:["asc","alphabetical"],username:["asc","alphabetical"],name:["asc","alphabetical"],membertype:["asc","alphabetical"],joined:["desc","recent"],lastlogin:["desc","recent"],added:["desc","recent"],dataset:["asc","alphabetical"],mfaenabled:["desc","default"],description:["asc","alphabetical"],lastSyncFailureCount:["desc","num"],invitationsPendingCount:["desc","num"],participantGroupLinksCount:["desc","num"]};function n(a,e,r){let[t,o]=b[a],i=a==="modified"&&r?e.deleted||"Date deleted":e[a]||a,c={asc:(o?e[`${o}Asc`]:void 0)||e.defaultAsc,desc:(o?e[`${o}Desc`]:void 0)||e.defaultDesc};return{label:i,showSortOrder:!!o,defaultSortOrder:t,sortOrderLabels:c}}var h=class extends m{constructor(){super(...arguments),this._messages=g({name:"portal-browser",blocking:!0}),this.sortOrders=["asc","desc"],this.options=[],this.appearance="dropdown",this.showText=!0,this.useDeleted=!1,this.arcgisBrowserSortFieldChange=d(),this.arcgisBrowserSortOrderChange=d()}static{this.properties={options:0,field:1,order:1,appearance:1,showText:5,useDeleted:5}}static{this.styles=w}getI18n(){return this._messages.sort}renderFieldOption(e,r){let t=this.getI18n(),o=n(e,t,this.useDeleted);return s`<calcite-dropdown-item .selected=${r===e} @calciteDropdownItemSelect=${()=>this.arcgisBrowserSortFieldChange.emit(e)}>${o.label}</calcite-dropdown-item>`}renderButton(e){let r=this.getI18n(),t=n(e,r,this.useDeleted),o=`${r.sortBy} ${t.label}`;return s`<calcite-button class="button" slot=trigger scale=m appearance=outline-fill kind=neutral icon-start=sort-descending icon-flip-rtl=start .label=${o}>${this.showText?t.label:null}</calcite-button>`}renderDropdown(){if(!this.options.length)return null;let e=this.getI18n(),r=this.field&&this.options.includes(this.field)?this.field:this.options[0],t=n(r,e,this.useDeleted),o=this.order||t.defaultSortOrder;return s`<calcite-dropdown placement=bottom-end scale=m overlay-positioning=fixed width=m>${this.renderButton(r)}<calcite-dropdown-group selection-mode=single .groupTitle=${e.sortBy}>${this.options.map(i=>this.renderFieldOption(i,r))}</calcite-dropdown-group>${t.showSortOrder&&s`<calcite-dropdown-group selection-mode=single .groupTitle=${e.sortDirection}>${this.sortOrders.map(i=>s`<calcite-dropdown-item .selected=${o===i} @calciteDropdownItemSelect=${()=>this.arcgisBrowserSortOrderChange.emit(i)}>${t.sortOrderLabels[i]}</calcite-dropdown-item>`)}</calcite-dropdown-group>`||""}</calcite-dropdown>`}renderTreeItem(e,r){let t=this.getI18n(),o=n(e,t,this.useDeleted);return s`<calcite-tree-item data-value=${e??l} .selected=${r===e}><a>${o.label}</a></calcite-tree-item>`}renderAccordion(e,r,t){return t?null:s`<calcite-accordion-item .heading=${e} class="sort-accordion-item"><div class="sort-accordion-content">${r}</div></calcite-accordion-item>`}renderAccordions(){if(!this.options.length)return null;let e=this.getI18n(),r=this.field&&this.options.includes(this.field)?this.field:this.options[0],t=n(r,e,this.useDeleted),o=this.order||t.defaultSortOrder;return s`<div class="sort-accordion-wrap"><h3 class="sort-title">${e.sort}</h3><calcite-accordion appearance=transparent icon-type=chevron scale=m icon-position=start>${this.renderAccordion(e.sortBy,s`<calcite-tree @calciteTreeSelect=${i=>{let c=i.target.selectedItems?.[0]?.dataset.value;c&&typeof c=="string"&&this.arcgisBrowserSortFieldChange.emit(c)}}>${this.options.map(i=>this.renderTreeItem(i,r))}</calcite-tree>`)}${this.renderAccordion(e.sortDirection,s`<calcite-tree @calciteTreeSelect=${i=>{let c=i.target.selectedItems?.[0]?.dataset.value;(c==="asc"||c==="desc")&&this.arcgisBrowserSortOrderChange.emit(c)}}>${this.sortOrders.map(i=>s`<calcite-tree-item data-value=${i??l} .selected=${o===i}><a>${t.sortOrderLabels[i]}</a></calcite-tree-item>`)}</calcite-tree>`,!t.showSortOrder)}</calcite-accordion></div>`}render(){return this.appearance==="accordion"?this.renderAccordions():this.renderDropdown()}};u("arcgis-portal-browser-sort",h);export{h as a};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import"./
|
|
2
|
+
import"./UZLQALHY.js";var e=`This Feature Layer is part of a Feature Service. The Feature Layer contains various fields, each with its own name, type, and description.
|
|
3
3
|
The Feature Layer is a collection of geographic features that represent real-world entities. Each feature in the layer has attributes that provide additional information about the feature. The layer may include point, line, or polygon geometries, depending on the type of data it represents.
|
|
4
4
|
The geometry type for this layer is {layerGeometryType}.
|
|
5
5
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{b as y}from"./OBBYT2AV.js";import a from"./TGTT2CVD.js";export default $arcgis.t(([{a:$,b:i}])=>{async function k(a,s,o,t,r){let l=a.portal?.portalHostname||t?.portalHostname||t?.restUrl?.replace("/sharing/rest",""),p=r?`https://www.arcgis.com/sharing/rest/portals/${s}`:`https://${l}/sharing/rest/portals/${s}`;if(!l&&!r)return null;let c=r?{disableIdentityLookup:!0,addTokenManually:!1}:{},e=await i({url:p,portal:t,options:c}),{urlKey:g,thumbnail:u,customBaseUrl:w}=e,m=`https://${g}.${w}/`,b=u?`${m}sharing/rest/portals/self/resources/${u}`:null,d="",f="";try{let n=await i({url:`${p}/resources/localizedOrgProperties`,portal:t,params:{start:1,num:100},options:c});if(n){let h=n[o]||n.default;d=h.name,f=h.description}}catch{}return{name:d||e.name,description:y(f||e.description),url:`${m}home/`,thumbnail:b}}async function H(a,s,o,t){let r=a.sourceJSON?.orgId??a.portal?.id??o?.id;return await $({requester:async()=>await k(a,r,s,o,t),key:"verified",id:r})}return H},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{b as h}from"./AQLILDJK.js";import b from"./24L3PS2J.js";import a from"./F3ODJVJC.js";import{o as f}from"./6BUBZ7WC.js";export default $arcgis.t(([g,{property:c,subclass:C},{a:p,b:d},{a:m}])=>{var w=Object.defineProperty,y=Object.getOwnPropertyDescriptor,e=(t,a,s,i)=>{for(var r=i>1?void 0:i?y(a,s):a,l=t.length-1,n;l>=0;l--)(n=t[l])&&(r=(i?n(a,s,r):n(r))||r);return i&&r&&w(a,s,r),r},o=class extends g{constructor(){super(...arguments),this.fetching=!1,this.status="idle",this.error=void 0,this.portalUrl=void 0,this._itemClassificationValidationErrors=new Map,this.fetchingPromise=new f}get primaryAttribute(){return this.portalClassificationSchema?.classificationMetadata.primaryAttribute}setPortalClassificationData({portalUrl:t,schema:a}){this.portalUrl=t,this.portalClassificationSchema=a,this.status="loaded",this.fetchingPromise.resolve(!0)}setFetching(t){this.fetching=t}async loadPortalClassificationData(t,{signal:a}){this.status="loading";let{result:s,error:i}=await p(t,a);if(i){i.name==="AbortError"?console.log("Request aborted."):(this.error=i,this.status="error",this.fetchingPromise.reject(i));return}else this.setPortalClassificationData({schema:s,portalUrl:t})}async validateClassification(t,a,s,i){if(!a)return"";let r=t?this._itemClassificationValidationErrors.get(t):void 0;if(r)return await r;let l=(async()=>{let{error:n}=await d(s,a,i??{});return n?n?.details.raw.messages.join(", "):""})();return t&&this._itemClassificationValidationErrors.set(t,l),t?await this._itemClassificationValidationErrors.get(t):await l}};e([c()],o.prototype,"portalClassificationSchema",2);e([c()],o.prototype,"fetching",2);e([c()],o.prototype,"status",2);e([c()],o.prototype,"error",2);e([c()],o.prototype,"portalUrl",2);e([c()],o.prototype,"_itemClassificationValidationErrors",2);o=e([C("custom.ClassificationModel")],o);var u;function P(t){return u??=new o(t),u}var A=m(P),S=t=>new h(t,{task:async([a],{signal:s})=>{if(!a)throw new Error("Portal item is required to load classification data");if(a.loaded||await a.load({signal:s}),t.itemClassification=a.classification,t.classificationModel.status==="loading"&&await t.classificationModel.fetchingPromise.promise,!t.portalItem?.portal.hasClassificationSchema){t.classificationModel.setPortalClassificationData({portalUrl:a.portal.restUrl,schema:void 0});return}(t.classificationModel.status==="idle"||t.classificationModel.status==="loaded"&&t.classificationModel.portalUrl!==a.portal.restUrl)&&await t.classificationModel.loadPortalClassificationData(a.portal.restUrl,{signal:s})},args:()=>[t.portalItem]});return{a:A,b:S}},"core/Accessor","core/accessorSupport/decorators",a,b)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as i,b as p}from"./QS3GXAIH.js";import{c as s}from"./2GBRZSEC.js";function y(t){return i(t.restUrl)}function c(t,e){let o=p({portal:e}),r=new URL(t,o);return r.protocol="https:",e?.httpsPort&&e.httpsPort!==80&&e.httpsPort!==443&&(r.port=`${e.httpsPort}`),r.href}function u(t){let e=n(t),o=e?.helpBase;if(o?.startsWith("https://enterprise.arcgis.com/"))return`${o}portal/`;let r=o;return e?.portalDeploymentType!=="ArcGISEnterpriseOnKubernetes"&&(r+="portal/"),t.allSSL||window.location.protocol==="https:"||l(t)||window.location.port==="7443"?c(`${window.location.protocol}//${window.location.host}${r}`,t):r}function P(t){return t.isPortal?u(t):n(t).helpBase||"support.html"}function l(t){return!!(t?.isPortal&&t?.portalHostname&&!t.portalHostname.match(/:7080\//u)&&t.httpPort!==80&&t.httpsPort!==443&&window.location.protocol==="https:")}function g(t){return t.credential?.token||t.token||t.user?.credential?.token||t.portalUser?.token||""}function w(t){return t.sourceJSON?.isWebTierAuth}function d(t,e,o){if(!e?.type)return!1;let r=e.typeKeywords??[];switch(t){case"arcgisinstantapps":return e.type==="Web Mapping Application"&&r.includes("configurableApp");case"arcgis360vr":return!o&&e.type==="360 VR Experience";case"survey123":return e.type==="Form";case"datapipelines":return e.type==="Data Pipeline";case"dashboards":return e.type==="Dashboard";case"experienceBuilder":return e.type==="Web Experience"||e.type==="Web Experience Template";case"webappbuilder":return e.type==="Web Mapping Application"&&(r.includes("Web AppBuilder")||r.includes("WebAppBuilder"));case"fieldmaps":return e.type==="Web Map";case"arcgisnotebooks":return e.type==="Notebook";case"HubforArcGIS":return["Discussion","Hub Page","Hub Initiative Template","Hub Initiative","Hub Event","Hub Project"].includes(e.type);default:return!1}}function H(t,e,o){return(e??[]).some(r=>d(r,t,o))}var n=t=>t.sourceJSON,a=t=>t.portalProperties??{};function T(t){let e=a(t).homePage==="modern";return t.isPortal?e||b(t):e||f(t)}function f(t){let e=new Date("June 30, 2020").getTime();return!t.isPortal&&t.created?t.created.getTime()>=e:!1}function b(t){return t.isPortal&&a(t).homePage==="modernOnly"}function W(t){return t.type==="gallery"&&!!t.groupId}function k(t){let e=n(t);return t?.isPortal?e.supportsHostedNotebooks:!(s(["Trial Developer","Trial","Trial Press"],e.subscriptionInfo?.type)||e.subscriptionInfo?.options?.includes("Developer"))}export{y as a,c as b,P as c,g as d,w as e,H as f,n as g,T as h,W as i,k as j};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import"./UZLQALHY.js";var e=`## Who you are
|
|
3
|
+
|
|
4
|
+
You are a map assistant embedded inside a GIS application. You have no knowledge of history, science, people, events, cooking, or anything outside of this map and its data. You only know what is described in the Map Context below.
|
|
5
|
+
|
|
6
|
+
If asked anything outside of that context, you simply don't have that information \u2014 respond naturally and redirect to something you _can_ help with, using specific layer and field names from the map context.
|
|
7
|
+
|
|
8
|
+
Example of how to handle unknown topics:
|
|
9
|
+
"I don't have information on that \u2014 I only know about this map. You could ask me to list all layers in the map, or capabilities of this assistant."
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Your capabilities
|
|
14
|
+
|
|
15
|
+
You can help users with:
|
|
16
|
+
|
|
17
|
+
- Listing the layers in this map
|
|
18
|
+
- Listing the fields in a specific layer (use the tool)
|
|
19
|
+
- Suggesting specific queries using actual layer and field names
|
|
20
|
+
- Summarizing what this map contains and what users can do with it
|
|
21
|
+
- Letting users know when a map-related action isn't supported (e.g. charts, tables), and that it may be added in the future
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Input
|
|
26
|
+
|
|
27
|
+
Assigned task:
|
|
28
|
+
{assignedTask}
|
|
29
|
+
|
|
30
|
+
Latest user request:
|
|
31
|
+
{userRequest}
|
|
32
|
+
|
|
33
|
+
Prior steps:
|
|
34
|
+
{priorSteps}
|
|
35
|
+
|
|
36
|
+
Use the assigned task as the primary instruction. The question will **not** be restated again here.
|
|
37
|
+
Use the latest user request as supporting context.
|
|
38
|
+
Use prior steps only to explain a previous result, failure, or likely next action.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Map Context
|
|
43
|
+
|
|
44
|
+
{layerSummary}
|
|
45
|
+
|
|
46
|
+
## Available agents (capabilities)
|
|
47
|
+
|
|
48
|
+
{agents}
|
|
49
|
+
|
|
50
|
+
### Response Guidelines
|
|
51
|
+
|
|
52
|
+
When suggesting what users can ask, be SPECIFIC using actual layer names:
|
|
53
|
+
|
|
54
|
+
- "Show me water sources with elevation above 500"
|
|
55
|
+
- "Filter Protected Areas in Panama by protection level"
|
|
56
|
+
- "Zoom to Watershed Boundaries"
|
|
57
|
+
|
|
58
|
+
For "what can I ask" responses, provide 3-5 specific example queries using fields from the context.
|
|
59
|
+
|
|
60
|
+
For off-topic questions:
|
|
61
|
+
"I can only help with this map. Try asking me to filter [LayerName] by [FieldName], or zoom to a location."
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Format
|
|
66
|
+
|
|
67
|
+
- Keep responses concise
|
|
68
|
+
- Use bullet points for lists
|
|
69
|
+
- Use new lines (\\n) and appropriate formatting in your response
|
|
70
|
+
- Use actual layer and field names from the map context in any suggestions
|
|
71
|
+
`;export{e as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{d as r}from"./QZD2UBOW.js";import{T as o}from"./6BUBZ7WC.js";var s=r(o);export{s as a};
|