@esri/solutions-components 5.1.0-next.165 → 5.1.0-next.167

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/cdn/{S37TPZAO.js → 2LCG2XWX.js} +1 -1
  2. package/dist/cdn/2MCOUOTQ.js +2 -0
  3. package/dist/cdn/{MOSQBUUZ.js → 4D46WTPB.js} +1 -1
  4. package/dist/cdn/4L7TJNAM.js +43 -0
  5. package/dist/cdn/{OBCXHY24.js → 6LN2ZRAZ.js} +1 -1
  6. package/dist/cdn/{EUI6UDCN.js → 6WPQPRJ5.js} +8 -2
  7. package/dist/cdn/{GVMTSUDH.js → 7P57UVVG.js} +1 -1
  8. package/dist/cdn/{5W7G3TSG.js → 7X2SPNNK.js} +21 -19
  9. package/dist/cdn/BYOO7TWU.js +2 -0
  10. package/dist/cdn/{MFFM74RG.js → CVHZAZLS.js} +1 -1
  11. package/dist/cdn/DFHULDJT.js +3 -0
  12. package/dist/cdn/{JFPR5QIQ.js → DGGIENYR.js} +1 -1
  13. package/dist/cdn/{HDMAFAEM.js → DSJRQHKW.js} +1 -1
  14. package/dist/cdn/{4HRGPGDM.js → EBAOA6CS.js} +1 -1
  15. package/dist/cdn/{P666D4WT.js → F5463ORT.js} +1 -1
  16. package/dist/cdn/{FMPY32BG.js → FK6Q2LYR.js} +1 -1
  17. package/dist/cdn/{C4F2OOUL.js → G2H3X6NS.js} +1 -1
  18. package/dist/cdn/{3UCDO65S.js → GDUCH242.js} +1 -1
  19. package/dist/cdn/{ENXQ33P7.js → HGOH5KSX.js} +1 -1
  20. package/dist/cdn/{VL2NVCIB.js → HLCHUP24.js} +3 -3
  21. package/dist/cdn/{OZ4IYASP.js → HOCCKT72.js} +1 -1
  22. package/dist/cdn/{WXDMML76.js → HUYLWWWJ.js} +1 -1
  23. package/dist/cdn/{CU2JLCTZ.js → I6EH3H6Z.js} +1 -1
  24. package/dist/cdn/{YW2WMW6B.js → IP7IUAM5.js} +1 -1
  25. package/dist/cdn/{OUMIC7G7.js → JCGZXASG.js} +1 -1
  26. package/dist/cdn/JJLYSRRX.js +2 -0
  27. package/dist/cdn/{7VY3RI7C.js → JS2MTHHP.js} +1 -1
  28. package/dist/cdn/{6PZSOVYB.js → K6O33P5T.js} +1 -1
  29. package/dist/cdn/{ITCC5G26.js → KWAQEZ3T.js} +2 -2
  30. package/dist/cdn/{AAUM57XI.js → LQ6PZESP.js} +1 -1
  31. package/dist/cdn/{2D6HFQD5.js → LUIN5XSX.js} +1 -1
  32. package/dist/cdn/LWQ4SBU2.js +2 -0
  33. package/dist/cdn/{I4PBOBUM.js → LXGPZJIZ.js} +1 -1
  34. package/dist/cdn/{QYCERRRZ.js → LXNQ32NZ.js} +1 -1
  35. package/dist/cdn/{SNZRQPXI.js → MFVXFKKM.js} +1 -1
  36. package/dist/cdn/{25HVM373.js → MVDJOENC.js} +1 -1
  37. package/dist/cdn/{354D2K6F.js → MXF4BYLT.js} +1 -1
  38. package/dist/cdn/{A2A3RFJ6.js → OTQLLNFG.js} +1 -1
  39. package/dist/cdn/{W5TNQMAJ.js → PM7QF66M.js} +1 -1
  40. package/dist/cdn/{3SMHMC4L.js → QKSC4XFL.js} +1 -1
  41. package/dist/cdn/{UDPMO6YN.js → ROGRXRFI.js} +1 -1
  42. package/dist/cdn/{3J5ZSELO.js → RWHR4UZT.js} +1 -1
  43. package/dist/cdn/{Y3GFBLXF.js → S5RB3GMN.js} +1 -1
  44. package/dist/cdn/SHQFXQEI.js +2 -0
  45. package/dist/cdn/{SHEDDVHQ.js → T5R4UF7Y.js} +1 -1
  46. package/dist/cdn/{JFMNVOWH.js → TFO2AK45.js} +1 -1
  47. package/dist/cdn/{22BT2PBE.js → TSDKMOES.js} +12 -10
  48. package/dist/cdn/U76GHEKJ.js +71 -0
  49. package/dist/cdn/UIZL3C3H.js +2 -0
  50. package/dist/cdn/{QH6PUU3Q.js → UOQSRV3X.js} +3 -8
  51. package/dist/cdn/{ATEW4U4A.js → V6N4G75E.js} +1 -1
  52. package/dist/cdn/{26LDC3OX.js → VJBL5ZUX.js} +1 -1
  53. package/dist/cdn/{6WVYNWVR.js → VLBNRURV.js} +1 -1
  54. package/dist/cdn/{VBJJQPZT.js → VLF76E2L.js} +1 -1
  55. package/dist/cdn/{CV4B2O7J.js → VY364MR6.js} +1 -1
  56. package/dist/cdn/{ON4EBR25.js → WKRSOM6J.js} +1 -1
  57. package/dist/cdn/{VN3AKGAY.js → X6TQNCB3.js} +1 -1
  58. package/dist/cdn/Y2MAVMNV.js +2 -0
  59. package/dist/cdn/{67CEWYTY.js → YPBSKBT2.js} +1 -1
  60. package/dist/cdn/YVWFYZTI.js +4 -0
  61. package/dist/cdn/{YLIWN2J2.js → YWX2U5OD.js} +1 -1
  62. package/dist/cdn/ZSTC2DJY.js +2 -0
  63. package/dist/cdn/{HRQVJBRJ.js → ZWL4JFKS.js} +1 -1
  64. package/dist/cdn/{DVPYGOBV.js → ZZOMKTFL.js} +1 -1
  65. package/dist/cdn/index.js +1 -1
  66. package/dist/chunks/assessBuildRequest.js +3 -8
  67. package/dist/chunks/assessUpdateRequest.js +21 -19
  68. package/dist/chunks/assistantResponse.js +23 -29
  69. package/dist/chunks/converter.js +75 -44
  70. package/dist/chunks/interfaces.js +32 -29
  71. package/dist/chunks/solution-builder-assistant.js +12 -14
  72. package/dist/chunks/transformQuery.js +1 -1
  73. package/dist/chunks/updateDesign.js +1 -1
  74. package/dist/components/arcgis-solutions-assistant/customElement.js +251 -231
  75. package/dist/components/card-manager/customElement.d.ts +0 -3
  76. package/dist/components/card-manager/customElement.js +6 -6
  77. package/dist/components/create-feature/customElement.js +17 -6
  78. package/dist/components/crowdsource-manager/customElement.js +3 -3
  79. package/dist/components/layer-table/customElement.js +13 -13
  80. package/dist/components/solution-configure-titles/customElement.js +2 -1
  81. package/dist/components/solution-delete-dialog/customElement.js +2 -1
  82. package/dist/components/solution-deployed-card-panel/customElement.js +8 -4
  83. package/dist/components/solutions-deploy-app/customElement.js +15 -15
  84. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  85. package/dist/docs/api.json +1 -1
  86. package/dist/docs/docs.json +1 -1
  87. package/dist/docs/vscode.html-custom-data.json +1 -1
  88. package/dist/docs/web-types.json +1 -1
  89. package/dist/solutions-components_commit.txt +8 -5
  90. package/dist/types/lumina.d.ts +0 -1
  91. package/dist/types/preact.d.ts +0 -1
  92. package/dist/types/react.d.ts +0 -1
  93. package/dist/types/stencil.d.ts +0 -1
  94. package/package.json +1 -1
  95. package/dist/cdn/62GTPPV5.js +0 -2
  96. package/dist/cdn/632J5NXN.js +0 -49
  97. package/dist/cdn/AYHTQTVS.js +0 -2
  98. package/dist/cdn/HAMYUUYZ.js +0 -2
  99. package/dist/cdn/HQCHD3FH.js +0 -2
  100. package/dist/cdn/OAUHQK3Y.js +0 -54
  101. package/dist/cdn/PGTLLFW6.js +0 -3
  102. package/dist/cdn/SIODWUWX.js +0 -2
  103. package/dist/cdn/SYISCXZY.js +0 -4
  104. package/dist/cdn/U27263JW.js +0 -2
  105. package/dist/cdn/U2FC3BET.js +0 -2
  106. package/dist/cdn/YEDC2OLI.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import e from"./DVPYGOBV.js";import d from"./25HVM373.js";import"./VVZAS55G.js";import"./US5FON7D.js";import b from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import"./RDRCAA3H.js";import{a as F}from"./DIBK4RSG.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as L}from"./HIPZRG2Q.js";import{F as u,G as c,H as w,J as x,K as I,h as m,i as l,l as _,q as p,u as y}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([E,S,$,,{c:d,d:g,g:b},,v])=>{var T=m`@layer{:host{display:block}.width-full{width:100%}.pagination{display:flex;justify-content:center}.notice-msg{padding:10px;width:calc(100% - 20px)}.feature-list-popup-title{font-weight:500}.feature-list-popup-title-small{font-size:small}.feature-list-popup-title-small-ellipsis{font-size:small;white-space:nowrap!important;text-overflow:ellipsis;overflow:hidden}.popup-title{padding:0 5px;word-break:break-word}.profile-img{margin:0 5px;min-width:32px}.like-container{display:flex;align-items:center;gap:5px;color:gray!important;font-style:italic}.feature-symbol{padding:0 3px;min-width:30px;display:flex;justify-content:center}.search{padding:10px;background-color:var(--calcite-color-surface-2)!important;border-block-end:1px solid var(--calcite-color-border-3)}}`,f=class extends w{constructor(){super(),this.selectedLayerId="",this.noFeaturesFoundMsg="",this.pageSize=100,this.highlightOnMap=!1,this.highlightOnHover=!1,this.textSize="large",this.showInitialLoading=!0,this.showErrorWhenNoFeatures=!1,this.showUserImageInList=!1,this.showFeatureSymbol=!1,this.applyLayerViewFilter=!1,this.showFullTitle=!0,this.filterByMapExtent=!1,this._featureItems=[],this._featuresCount=0,this._isLoading=!1,this._searchPlaceHolder="",this._fullTextSearchInfo=[],this._translations=F({name:"feature-list",blocking:!0}),this._pagination=u(),this._calciteList=u(),this._validFieldTypes=["small-integer","integer","big-integer","single","long"],this._abbreviatedLikeCount="",this._likeFieldAvailable=!1,this._searchExpression="",this.featureClick=p(),this.featureSelect=p(),this.listenOn(window,"selectedLanguageUpdated",this.selectedLanguageUpdated)}static{this.properties={selectedLayerId:1,mapView:0,noFeaturesFoundMsg:1,pageSize:9,highlightOnMap:5,highlightOnHover:5,sortingInfo:0,whereClause:1,textSize:1,showInitialLoading:5,showErrorWhenNoFeatures:5,showUserImageInList:5,showFeatureSymbol:5,applyLayerViewFilter:5,reportingOptions:0,showFullTitle:5,filterByMapExtent:5,_featureItems:16,_featuresCount:16,_isLoading:16,_searchPlaceHolder:16,_fullTextSearchInfo:16,_translations:16}}static{this.styles=T}static{this.shadowRootOptions=y}willUpdate(e){e.has("selectedLayerId")&&this.selectedLayerWatchHandler(),e.has("sortingInfo")&&this.sortingInfoWatchHandler(),e.has("whereClause")&&this.whereClauseHandler(),e.has("filterByMapExtent")&&this.hasUpdated&&this.filterByMapExtentWatchHandler(this.filterByMapExtent)}async selectedLayerWatchHandler(){this._selectedLayer=this.mapView&&await g(this.mapView,this.selectedLayerId),await this.initializeFeatureItems()}async sortingInfoWatchHandler(){await this.initializeFeatureItems()}async whereClauseHandler(){await this.initializeFeatureItems()}async filterByMapExtentWatchHandler(e){e?this.initializeMapExtentFilter():this._filterByMapExtentHandle&&this._filterByMapExtentHandle.remove()}async refresh(e){if(e&&this._pagination.value){let t={target:{startItem:this._pagination.value.startItem}};await this.pageChanged(t)}else this._searchExpression?await this._searchFullText():await this.initializeFeatureItems()}async selectedLanguageUpdated(e){if(this._pagination.value){let t={target:{startItem:this._pagination.value.startItem}};await this.pageChanged(t)}else await this.initializeFeatureItems()}async load(){this._isLoading=!!this.showInitialLoading,this._popupUtils=new v,this.mapView&&this.selectedLayerId&&(this._selectedLayer=await g(this.mapView,this.selectedLayerId),this._getFullTextSearchInfo()),this.filterByMapExtent&&this.initializeMapExtentFilter()}async loaded(){await this.initializeFeatureItems()}render(){let e=this._canShowFullTextSearch();return l`<calcite-panel>${e&&l`<calcite-input class=search clearable icon=search @calciteInputChange=${this._searchTextChanged} .placeholder=${this._searchPlaceHolder} title type=search></calcite-input>`||""}${this._isLoading&&l`<calcite-loader label scale=m></calcite-loader>`||""}${this.showErrorWhenNoFeatures&&this._featureItems.length===0&&!this._isLoading&&l`<calcite-notice class="notice-msg" icon=feature-details kind=info open><div slot=message>${this.filterByMapExtent?this._translations.featureErrorMsgInCurrentMapView:this.noFeaturesFoundMsg?this.noFeaturesFoundMsg:this._translations.featureErrorMsg}</div></calcite-notice>`||""}<calcite-list class=${x(this.textSize==="small"&&!this.showFullTitle?"overflow-hidden":"")} label selection-appearance=border selection-mode=none ${c(this._calciteList)}>${!this._isLoading&&this._featureItems.length>0&&l`<div>${this.filterByMapExtent&&this.getExtentNotice()||""}${this._featureItems}</div>`||""}</calcite-list>${this.pageSize&&this._featuresCount>this.pageSize&&l`<div class="width-full" slot=footer><calcite-pagination class="pagination" @calcitePaginationChange=${this.pageChanged} .pageSize=${this.pageSize} start-item=1 .totalItems=${this._featuresCount} ${c(this._pagination)}></calcite-pagination></div>`||""}</calcite-panel>`}async getWhereCondition(){let e="1=1";if(this.whereClause&&(e=this.whereClause),this._selectedLayer?.definitionExpression&&(e=e+" AND "+this._selectedLayer.definitionExpression),this.applyLayerViewFilter){let t=this.mapView&&await d(this.mapView,this.selectedLayerId);t?.filter?.where&&(e=e+" AND "+t.filter.where)}return e}async initializeFeatureItems(){if(this._selectedLayer){this._pagination.value?.goTo("start"),this._isLoading=!!this.showInitialLoading,this._featureItems=await this.queryPage(0);let e={where:await this.getWhereCondition(),geometry:this.filterByMapExtent?this.mapView?.extent:null};this._featuresCount=await this._selectedLayer?.queryFeatureCount(e),this._isLoading=!1}}initializeMapExtentFilter(){this._filterByMapExtentHandle=$.when(()=>this.mapView?.stationary,()=>{this.initializeFeatureItems()},{initial:!0})}async pageChanged(e){this._isLoading=!0,this._highlightHandle&&(this._highlightHandle.remove(),this._highlightHandle=void 0);let t=e.target.startItem-1;this._featureItems=await this.queryPage(t),this._isLoading=!1}_canShowFullTextSearch(){return this._selectedLayer?.capabilities?.query?.supportsFullTextSearch&&this._selectedLayer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._selectedLayer?.capabilities?.query?.supportsFullTextSearch){let e=this._selectedLayer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(i=>{t.push(...i.fields.split(","))});let s=[];t.forEach(i=>{let a=this._selectedLayer?.getField(i.trim());s.push(a?.alias||"")}),this._searchPlaceHolder=this._translations.searchPlaceholder?this._translations.searchPlaceholder.replace("{{field_names}}",s.join(", ")):"",this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),await this._searchFullText()}async _searchFullText(){this._searchExpression&&this._clearSearchDefinitionExpression();let e=[];if(this._fullTextSearchInfo&&this._fullTextSearchInfo[0].searchTerm){let t=this._selectedLayer?.createQuery();t&&(t.fullText=this._fullTextSearchInfo,e=await this._selectedLayer?.queryObjectIds(t),await this._updateSearchDefinitionExpression(e?.length?e:[-1]))}await this.initializeFeatureItems()}async _updateSearchDefinitionExpression(e){if(this._selectedLayer){let t=this._selectedLayer.definitionExpression;if(e?.length){let s=`objectId in(${e})`;this._selectedLayer.definitionExpression=this._searchExpression&&t&&t?.indexOf(this._searchExpression)>-1?t.replace(this._searchExpression,s):t?`${t} AND (${s})`:s,this._searchExpression=s}else this._clearSearchDefinitionExpression()}}_clearSearchDefinitionExpression(){if(this._selectedLayer){let e=this._selectedLayer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._selectedLayer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._selectedLayer.definitionExpression=e.replace(this._searchExpression,""))}this._searchExpression=""}async featureClicked(e,t){if(this.featureClick.emit(),this.clearHighlights(),this.highlightOnMap){let s=Number(e.target.value),i=this.mapView&&await d(this.mapView,this.selectedLayerId);this._highlightHandle=i&&this.mapView?await b([s],i,this.mapView,!0):void 0}await this.emitSelectedFeature(t)}async emitSelectedFeature(e){let t=e.layer,s=t.createQuery();s.returnGeometry=!0;let i=Number(e.getObjectId());if(!Number.isNaN(i)&&s){s.objectIds=[i];let a=await t.queryFeatures(s);this.featureSelect.emit(a.features[0])}}async onFeatureHover(e){if(this.clearHighlights(),this.highlightOnHover){let t=Number(e.getObjectId()),s=this.mapView&&await d(this.mapView,this.selectedLayerId);s&&(this._highlightHandle=s.highlight([t],{name:"temporary"}))}}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}async queryPage(e){let t=this._selectedLayer;if(t){let s=this.sortingInfo?.field?this.sortingInfo.field:t.objectIdField,i=this.sortingInfo?.order?this.sortingInfo.order:"desc",a=await this.getWhereCondition(),r={start:e,num:this.pageSize,outFields:["*"],returnGeometry:!0,where:a,outSpatialReference:this.mapView?.spatialReference.toJSON(),geometry:this.filterByMapExtent?this.mapView?.extent:null};s&&i&&(r.orderByFields=[s.toString()+" "+i]);let n=await t.queryFeatures(r);return await this.createFeatureItem(n)}else return}async createFeatureItem(e){let t=e?.features,s=this.reportingOptions&&this.reportingOptions[this.selectedLayerId]?.like,i=t.map(async a=>{let r=this.mapView?.map&&await this._popupUtils?.getPopupTitle(a,this.mapView.map)||"",n,h;return this.showUserImageInList&&this._selectedLayer?.editFieldsInfo?.creatorField&&(n=await this.getUserInformation(a)),this.showFeatureSymbol&&(h=await this.getFeatureSymbol(a)),s&&this.getAbbreviatedLikeCount(a),this.getFeatureItem(a,r,h,n)});return Promise.all(i)}getExtentNotice(){return l`<calcite-notice class="notice-msg" icon=extent-filter kind=brand open scale=s><div slot=message>${this._translations.extentFilterMsg}</div></calcite-notice>`}getAbbreviatedLikeCount(e){let t=this._selectedLayer;if(t){let s=this.reportingOptions&&this.reportingOptions[t.id].likeField;t.fields.forEach(i=>{if(this._validFieldTypes.indexOf(i.type)>-1&&i.name===s&&this.reportingOptions&&this.reportingOptions[t.id].like){this._likeFieldAvailable=!0;let a=e.attributes[s]||0;a>999&&this._translations.millions_value&&this._translations.thousands_value&&(a=a>999999?this._translations.millions_value.replace("{{millions_value}}",Math.floor(a/1e6).toString()):this._translations.thousands_value.replace("{{thousands_value}}",Math.floor(a/1e3).toString())),this._abbreviatedLikeCount=a}})}}getFeatureItem(e,t,s,i){if(this._selectedLayer?.id&&this._calciteList.value){let a=e.attributes[this._selectedLayer.objectIdField].toString();t=t??a;let r=Number(e.attributes[this.reportingOptions?.[this._selectedLayer.id].likeField||""]).toLocaleString(),n=this.textSize==="small"&&!this.showFullTitle?"feature-list-popup-title-small-ellipsis":this.textSize==="small"?"feature-list-popup-title-small":"feature-list-popup-title",h=this.showUserImageInList?115:65,C=this._calciteList.value.offsetWidth-h;return l`<calcite-list-item @mouseleave=${()=>{this.clearHighlights()}} @mouseover=${()=>{this.onFeatureHover(e)}} @calciteListItemSelect=${o=>{this.featureClicked(o,e)}} .value=${a}>${this.showUserImageInList&&l`<calcite-avatar class=profile-img .fullName=${i?.fullName} scale=m slot=content-start .thumbnail=${i?.userProfileUrl} .userId=${i?.id} .username=${i?.fullName?i.username:void 0}></calcite-avatar>`||""}${this.showFeatureSymbol&&s&&l`<div class=feature-symbol slot=content-start ${c(o=>o&&o.replaceChildren(s))}></div>`||""}<div class=${`popup-title ${n}`} slot=content-start style=${I({maxWidth:this.textSize==="large"?"none":`${C}px`})}>${t}</div>${this._likeFieldAvailable&&l`<div class=like-container id=${a.concat("like")??_} slot=content-end><span>${this._abbreviatedLikeCount}</span><calcite-icon aria-hidden=true icon=thumbs-up scale=s></calcite-icon><calcite-tooltip overlay-positioning=fixed placement=top .referenceElement=${a.concat("like")}>${r}</calcite-tooltip></div>`||""}<calcite-icon aria-hidden=true flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`}else return}async getUserInformation(e){let t=this._selectedLayer?.editFieldsInfo?.creatorField;if(t){e.attributes.hasOwnProperty(t.toLowerCase())?t=t.toLowerCase():e.attributes.hasOwnProperty(t.toUpperCase())&&(t=t.toUpperCase());let s=`${E.portalUrl}/sharing/rest/community/users/${e.attributes[t]}?f=json&returnUserLicensedItems=true`,i=this.mapView?.map?.portalItem.portal?.credential?.token;i&&(s+=`&token=${i}`);let a=await(await fetch(s)).json(),r=a?.username??e.attributes[t],n=`${E.portalUrl}/sharing/rest/community/users/${r}/info/blob.png`;return a?.access&&i&&(n+=`?token=${i}`),a.userProfileUrl=n,a}else return}async getFeatureSymbol(e){let t=document.createElement("div");return await S?.getDisplayedSymbol(e).then(async s=>{if(s&&await S?.renderPreviewHTML(s,{node:t}),t.children?.length){let i=t.children[0];if(i){let a=Number(i.getAttribute("height")),r=Number(i.getAttribute("width"));r>30&&(t.setAttribute("width","30"),i.setAttribute("width","30")),a>30&&(t.setAttribute("height","30"),i.setAttribute("height","30")),i.setAttribute("viewBox",`0 0 ${r} ${a}`),t.setAttribute("viewBox",`0 0 ${r} ${a}`)}}}),t}};L("feature-list",f);return f},"config","symbols/support/symbolUtils","core/reactiveUtils",a,b,d,e)
2
+ import e from"./ZZOMKTFL.js";import d from"./MVDJOENC.js";import"./VVZAS55G.js";import"./US5FON7D.js";import b from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import"./RDRCAA3H.js";import{a as F}from"./DIBK4RSG.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as L}from"./HIPZRG2Q.js";import{F as u,G as c,H as w,J as x,K as I,h as m,i as l,l as _,q as p,u as y}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([E,S,$,,{c:d,d:g,g:b},,v])=>{var T=m`@layer{:host{display:block}.width-full{width:100%}.pagination{display:flex;justify-content:center}.notice-msg{padding:10px;width:calc(100% - 20px)}.feature-list-popup-title{font-weight:500}.feature-list-popup-title-small{font-size:small}.feature-list-popup-title-small-ellipsis{font-size:small;white-space:nowrap!important;text-overflow:ellipsis;overflow:hidden}.popup-title{padding:0 5px;word-break:break-word}.profile-img{margin:0 5px;min-width:32px}.like-container{display:flex;align-items:center;gap:5px;color:gray!important;font-style:italic}.feature-symbol{padding:0 3px;min-width:30px;display:flex;justify-content:center}.search{padding:10px;background-color:var(--calcite-color-surface-2)!important;border-block-end:1px solid var(--calcite-color-border-3)}}`,f=class extends w{constructor(){super(),this.selectedLayerId="",this.noFeaturesFoundMsg="",this.pageSize=100,this.highlightOnMap=!1,this.highlightOnHover=!1,this.textSize="large",this.showInitialLoading=!0,this.showErrorWhenNoFeatures=!1,this.showUserImageInList=!1,this.showFeatureSymbol=!1,this.applyLayerViewFilter=!1,this.showFullTitle=!0,this.filterByMapExtent=!1,this._featureItems=[],this._featuresCount=0,this._isLoading=!1,this._searchPlaceHolder="",this._fullTextSearchInfo=[],this._translations=F({name:"feature-list",blocking:!0}),this._pagination=u(),this._calciteList=u(),this._validFieldTypes=["small-integer","integer","big-integer","single","long"],this._abbreviatedLikeCount="",this._likeFieldAvailable=!1,this._searchExpression="",this.featureClick=p(),this.featureSelect=p(),this.listenOn(window,"selectedLanguageUpdated",this.selectedLanguageUpdated)}static{this.properties={selectedLayerId:1,mapView:0,noFeaturesFoundMsg:1,pageSize:9,highlightOnMap:5,highlightOnHover:5,sortingInfo:0,whereClause:1,textSize:1,showInitialLoading:5,showErrorWhenNoFeatures:5,showUserImageInList:5,showFeatureSymbol:5,applyLayerViewFilter:5,reportingOptions:0,showFullTitle:5,filterByMapExtent:5,_featureItems:16,_featuresCount:16,_isLoading:16,_searchPlaceHolder:16,_fullTextSearchInfo:16,_translations:16}}static{this.styles=T}static{this.shadowRootOptions=y}willUpdate(e){e.has("selectedLayerId")&&this.selectedLayerWatchHandler(),e.has("sortingInfo")&&this.sortingInfoWatchHandler(),e.has("whereClause")&&this.whereClauseHandler(),e.has("filterByMapExtent")&&this.hasUpdated&&this.filterByMapExtentWatchHandler(this.filterByMapExtent)}async selectedLayerWatchHandler(){this._selectedLayer=this.mapView&&await g(this.mapView,this.selectedLayerId),await this.initializeFeatureItems()}async sortingInfoWatchHandler(){await this.initializeFeatureItems()}async whereClauseHandler(){await this.initializeFeatureItems()}async filterByMapExtentWatchHandler(e){e?this.initializeMapExtentFilter():this._filterByMapExtentHandle&&this._filterByMapExtentHandle.remove()}async refresh(e){if(e&&this._pagination.value){let t={target:{startItem:this._pagination.value.startItem}};await this.pageChanged(t)}else this._searchExpression?await this._searchFullText():await this.initializeFeatureItems()}async selectedLanguageUpdated(e){if(this._pagination.value){let t={target:{startItem:this._pagination.value.startItem}};await this.pageChanged(t)}else await this.initializeFeatureItems()}async load(){this._isLoading=!!this.showInitialLoading,this._popupUtils=new v,this.mapView&&this.selectedLayerId&&(this._selectedLayer=await g(this.mapView,this.selectedLayerId),this._getFullTextSearchInfo()),this.filterByMapExtent&&this.initializeMapExtentFilter()}async loaded(){await this.initializeFeatureItems()}render(){let e=this._canShowFullTextSearch();return l`<calcite-panel>${e&&l`<calcite-input class=search clearable icon=search @calciteInputChange=${this._searchTextChanged} .placeholder=${this._searchPlaceHolder} title type=search></calcite-input>`||""}${this._isLoading&&l`<calcite-loader label scale=m></calcite-loader>`||""}${this.showErrorWhenNoFeatures&&this._featureItems.length===0&&!this._isLoading&&l`<calcite-notice class="notice-msg" icon=feature-details kind=info open><div slot=message>${this.filterByMapExtent?this._translations.featureErrorMsgInCurrentMapView:this.noFeaturesFoundMsg?this.noFeaturesFoundMsg:this._translations.featureErrorMsg}</div></calcite-notice>`||""}<calcite-list class=${x(this.textSize==="small"&&!this.showFullTitle?"overflow-hidden":"")} label selection-appearance=border selection-mode=none ${c(this._calciteList)}>${!this._isLoading&&this._featureItems.length>0&&l`<div>${this.filterByMapExtent&&this.getExtentNotice()||""}${this._featureItems}</div>`||""}</calcite-list>${this.pageSize&&this._featuresCount>this.pageSize&&l`<div class="width-full" slot=footer><calcite-pagination class="pagination" @calcitePaginationChange=${this.pageChanged} .pageSize=${this.pageSize} start-item=1 .totalItems=${this._featuresCount} ${c(this._pagination)}></calcite-pagination></div>`||""}</calcite-panel>`}async getWhereCondition(){let e="1=1";if(this.whereClause&&(e=this.whereClause),this._selectedLayer?.definitionExpression&&(e=e+" AND "+this._selectedLayer.definitionExpression),this.applyLayerViewFilter){let t=this.mapView&&await d(this.mapView,this.selectedLayerId);t?.filter?.where&&(e=e+" AND "+t.filter.where)}return e}async initializeFeatureItems(){if(this._selectedLayer){this._pagination.value?.goTo("start"),this._isLoading=!!this.showInitialLoading,this._featureItems=await this.queryPage(0);let e={where:await this.getWhereCondition(),geometry:this.filterByMapExtent?this.mapView?.extent:null};this._featuresCount=await this._selectedLayer?.queryFeatureCount(e),this._isLoading=!1}}initializeMapExtentFilter(){this._filterByMapExtentHandle=$.when(()=>this.mapView?.stationary,()=>{this.initializeFeatureItems()},{initial:!0})}async pageChanged(e){this._isLoading=!0,this._highlightHandle&&(this._highlightHandle.remove(),this._highlightHandle=void 0);let t=e.target.startItem-1;this._featureItems=await this.queryPage(t),this._isLoading=!1}_canShowFullTextSearch(){return this._selectedLayer?.capabilities?.query?.supportsFullTextSearch&&this._selectedLayer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._selectedLayer?.capabilities?.query?.supportsFullTextSearch){let e=this._selectedLayer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(i=>{t.push(...i.fields.split(","))});let s=[];t.forEach(i=>{let a=this._selectedLayer?.getField(i.trim());s.push(a?.alias||"")}),this._searchPlaceHolder=this._translations.searchPlaceholder?this._translations.searchPlaceholder.replace("{{field_names}}",s.join(", ")):"",this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),await this._searchFullText()}async _searchFullText(){this._searchExpression&&this._clearSearchDefinitionExpression();let e=[];if(this._fullTextSearchInfo&&this._fullTextSearchInfo[0].searchTerm){let t=this._selectedLayer?.createQuery();t&&(t.fullText=this._fullTextSearchInfo,e=await this._selectedLayer?.queryObjectIds(t),await this._updateSearchDefinitionExpression(e?.length?e:[-1]))}await this.initializeFeatureItems()}async _updateSearchDefinitionExpression(e){if(this._selectedLayer){let t=this._selectedLayer.definitionExpression;if(e?.length){let s=`objectId in(${e})`;this._selectedLayer.definitionExpression=this._searchExpression&&t&&t?.indexOf(this._searchExpression)>-1?t.replace(this._searchExpression,s):t?`${t} AND (${s})`:s,this._searchExpression=s}else this._clearSearchDefinitionExpression()}}_clearSearchDefinitionExpression(){if(this._selectedLayer){let e=this._selectedLayer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._selectedLayer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._selectedLayer.definitionExpression=e.replace(this._searchExpression,""))}this._searchExpression=""}async featureClicked(e,t){if(this.featureClick.emit(),this.clearHighlights(),this.highlightOnMap){let s=Number(e.target.value),i=this.mapView&&await d(this.mapView,this.selectedLayerId);this._highlightHandle=i&&this.mapView?await b([s],i,this.mapView,!0):void 0}await this.emitSelectedFeature(t)}async emitSelectedFeature(e){let t=e.layer,s=t.createQuery();s.returnGeometry=!0;let i=Number(e.getObjectId());if(!Number.isNaN(i)&&s){s.objectIds=[i];let a=await t.queryFeatures(s);this.featureSelect.emit(a.features[0])}}async onFeatureHover(e){if(this.clearHighlights(),this.highlightOnHover){let t=Number(e.getObjectId()),s=this.mapView&&await d(this.mapView,this.selectedLayerId);s&&(this._highlightHandle=s.highlight([t],{name:"temporary"}))}}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}async queryPage(e){let t=this._selectedLayer;if(t){let s=this.sortingInfo?.field?this.sortingInfo.field:t.objectIdField,i=this.sortingInfo?.order?this.sortingInfo.order:"desc",a=await this.getWhereCondition(),r={start:e,num:this.pageSize,outFields:["*"],returnGeometry:!0,where:a,outSpatialReference:this.mapView?.spatialReference.toJSON(),geometry:this.filterByMapExtent?this.mapView?.extent:null};s&&i&&(r.orderByFields=[s.toString()+" "+i]);let n=await t.queryFeatures(r);return await this.createFeatureItem(n)}else return}async createFeatureItem(e){let t=e?.features,s=this.reportingOptions&&this.reportingOptions[this.selectedLayerId]?.like,i=t.map(async a=>{let r=this.mapView?.map&&await this._popupUtils?.getPopupTitle(a,this.mapView.map)||"",n,h;return this.showUserImageInList&&this._selectedLayer?.editFieldsInfo?.creatorField&&(n=await this.getUserInformation(a)),this.showFeatureSymbol&&(h=await this.getFeatureSymbol(a)),s&&this.getAbbreviatedLikeCount(a),this.getFeatureItem(a,r,h,n)});return Promise.all(i)}getExtentNotice(){return l`<calcite-notice class="notice-msg" icon=extent-filter kind=brand open scale=s><div slot=message>${this._translations.extentFilterMsg}</div></calcite-notice>`}getAbbreviatedLikeCount(e){let t=this._selectedLayer;if(t){let s=this.reportingOptions&&this.reportingOptions[t.id].likeField;t.fields.forEach(i=>{if(this._validFieldTypes.indexOf(i.type)>-1&&i.name===s&&this.reportingOptions&&this.reportingOptions[t.id].like){this._likeFieldAvailable=!0;let a=e.attributes[s]||0;a>999&&this._translations.millions_value&&this._translations.thousands_value&&(a=a>999999?this._translations.millions_value.replace("{{millions_value}}",Math.floor(a/1e6).toString()):this._translations.thousands_value.replace("{{thousands_value}}",Math.floor(a/1e3).toString())),this._abbreviatedLikeCount=a}})}}getFeatureItem(e,t,s,i){if(this._selectedLayer?.id&&this._calciteList.value){let a=e.attributes[this._selectedLayer.objectIdField].toString();t=t??a;let r=Number(e.attributes[this.reportingOptions?.[this._selectedLayer.id].likeField||""]).toLocaleString(),n=this.textSize==="small"&&!this.showFullTitle?"feature-list-popup-title-small-ellipsis":this.textSize==="small"?"feature-list-popup-title-small":"feature-list-popup-title",h=this.showUserImageInList?115:65,C=this._calciteList.value.offsetWidth-h;return l`<calcite-list-item @mouseleave=${()=>{this.clearHighlights()}} @mouseover=${()=>{this.onFeatureHover(e)}} @calciteListItemSelect=${o=>{this.featureClicked(o,e)}} .value=${a}>${this.showUserImageInList&&l`<calcite-avatar class=profile-img .fullName=${i?.fullName} scale=m slot=content-start .thumbnail=${i?.userProfileUrl} .userId=${i?.id} .username=${i?.fullName?i.username:void 0}></calcite-avatar>`||""}${this.showFeatureSymbol&&s&&l`<div class=feature-symbol slot=content-start ${c(o=>o&&o.replaceChildren(s))}></div>`||""}<div class=${`popup-title ${n}`} slot=content-start style=${I({maxWidth:this.textSize==="large"?"none":`${C}px`})}>${t}</div>${this._likeFieldAvailable&&l`<div class=like-container id=${a.concat("like")??_} slot=content-end><span>${this._abbreviatedLikeCount}</span><calcite-icon aria-hidden=true icon=thumbs-up scale=s></calcite-icon><calcite-tooltip overlay-positioning=fixed placement=top .referenceElement=${a.concat("like")}>${r}</calcite-tooltip></div>`||""}<calcite-icon aria-hidden=true flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`}else return}async getUserInformation(e){let t=this._selectedLayer?.editFieldsInfo?.creatorField;if(t){e.attributes.hasOwnProperty(t.toLowerCase())?t=t.toLowerCase():e.attributes.hasOwnProperty(t.toUpperCase())&&(t=t.toUpperCase());let s=`${E.portalUrl}/sharing/rest/community/users/${e.attributes[t]}?f=json&returnUserLicensedItems=true`,i=this.mapView?.map?.portalItem.portal?.credential?.token;i&&(s+=`&token=${i}`);let a=await(await fetch(s)).json(),r=a?.username??e.attributes[t],n=`${E.portalUrl}/sharing/rest/community/users/${r}/info/blob.png`;return a?.access&&i&&(n+=`?token=${i}`),a.userProfileUrl=n,a}else return}async getFeatureSymbol(e){let t=document.createElement("div");return await S?.getDisplayedSymbol(e).then(async s=>{if(s&&await S?.renderPreviewHTML(s,{node:t}),t.children?.length){let i=t.children[0];if(i){let a=Number(i.getAttribute("height")),r=Number(i.getAttribute("width"));r>30&&(t.setAttribute("width","30"),i.setAttribute("width","30")),a>30&&(t.setAttribute("height","30"),i.setAttribute("height","30")),i.setAttribute("viewBox",`0 0 ${r} ${a}`),t.setAttribute("viewBox",`0 0 ${r} ${a}`)}}}),t}};L("feature-list",f);return f},"config","symbols/support/symbolUtils","core/reactiveUtils",a,b,d,e)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./EXBEKVP5.js";var e='# Your Role\r\nYou are a solution designer for the ArcGIS Solutions assistant. Your job is to update an existing solution design based on the User Query by producing a minimal set of RFC 6902\u2013compliant JSON Patch operations.\r\n\r\nYou must follow all rules below at all times. If a request conflicts with these rules, prioritize the rules and adapt the design accordingly.\r\n\r\n# Your Task\r\n- Analyze the User Query, Current Solution Design, and chat history\r\n- Produce the fewest possible JSON Patch operations required to satisfy the request\r\n- Never modify, remove, or replace sections unrelated to the request\r\n- Use chat history to reconstruct prior changes when needed and as context for the current requested change\r\n- When the request lacks specific details, make reasonable assumptions and complete the design. Do not ask for clarification if the request can be fulfilled with sensible defaults.\r\n- When a request appears valid and there is no clear evidence that it violates a rule, you should proceed with the change instead of rejecting it.\r\n\r\n# Response Guidelines\r\n- Populate `response` with a concise explanation of exactly what you changed\r\n- Refer to yourself as \u201CI\u201D or \u201Cwe\u201D.\r\n- If a request conflicts with these rules:\r\n - Do not suggest enabling features, changing configuration, or alternative designs to bypass restrictions\r\n - Politely decline in `response` and return an empty `patches` array\r\n- Do not partially fulfill a request if any part of it violates the rules\r\n- The `response` must describe changes using UI-visible concepts only.\r\n- NEVER refer to internal JSON property names, schema terms, or implementation details in `response`.\r\n - This includes (but is not limited to): `choiceList`, `type`, `length`, `id`, `_idx`, `featureLayer`, `layers`, `customFields`.\r\n- When explaining changes:\r\n - Use UI terms such as \u201Cfield\u201D, \u201Coptions\u201D, \u201Callowed values\u201D, "domain", \u201Cchoice list\u201D, \u201Cname\u201D, or \u201Cdescription\u201D.\r\n- Avoid technical or system-oriented terms such as \u201Cconfigured\u201D, \u201Csetting\u201D, or \u201Cproperty\u201D in the response\r\n- Always refer to custom fields as just fields. Do NOT include the word custom\r\n\r\n# Language and Localization Rules\r\n- Detect the primary language of the User Query\r\n- Use that language consistently for all user-facing strings unless explicitly prohibited\r\n\r\n# JSON Patch Rules\r\n\r\n## Array Indexing with `_idx`\r\n- Every array element includes a read-only `_idx`\r\n- Always use `_idx` values in patch paths\r\n- Never calculate array positions manually\r\n- Never include `_idx` itself in any patch path or value\r\n- When removing multiple elements from the same array, order those `remove` operations from highest `_idx` to lowest. This prevents index-shifting from making later removals target the wrong element.\r\n\r\n## Patch Minimization\r\n- Prefer updating the most specific path possible\r\n- Do not replace an entire object when a child property can be updated\r\n- Do not combine unrelated changes into a single operation\r\n\r\n## Encoding the `value` Field\r\n- The `value` field must always be a JSON-encoded string (as if passed to `JSON.stringify`).\r\n- `remove` operations must not include a `value`\r\n\r\nExamples:\r\n- Replace the alias of a custom field whose `_idx` is `2` in layer `_idx: 0` of the feature layer:\r\n `{{ "op": "replace", "path": "/featureLayer/layers/0/customFields/2/alias", "value": "\\"New Alias\\"" }}`\r\n- Append a new custom field to layer `_idx: 1` of the feature layer:\r\n `{{ "op": "add", "path": "/featureLayer/layers/1/customFields/-", "value": "{{\\"name\\":\\"my_field\\",\\"type\\":\\"string\\",\\"alias\\":\\"My Field\\",\\"description\\":\\"...\\",\\"choiceList\\":null,\\"length\\":255}}" }}`\r\n- Remove a custom field whose `_idx` is `3`:\r\n `{{ "op": "remove", "path": "/featureLayer/layers/0/customFields/3" }}`\r\n- Update the solution title:\r\n `{{ "op": "replace", "path": "/solution/title", "value": "\\"Updated Title\\"" }}`\r\n- Update tags:\r\n `{{ "op": "replace", "path": "/solution/tags", "value": "[\\"tag1\\",\\"tag2\\",\\"tag3\\"]" }}`\r\n- Update an item description (item `_idx: 1`):\r\n `{{ "op": "replace", "path": "/items/1/description", "value": "\\"New description.\\"" }}`\r\n\r\nDo NOT include `_idx` itself in any patch operation path or value\r\n\r\n# Design Rules\r\n\r\n## Solution\r\n- Only `title`, `description`, and `tags` may be updated\r\n- When modifying the `title`, update the `description` to replace references to the previous title with the new title.\r\n- Only modify values. Do not add or remove properties\r\n\r\n## Strings\r\n- Only `value` may be updated\r\n- `key` and `description` are immutable\r\n- Always return the same number of strings\r\n\r\n## Items\r\n- Only `title` and `description` may be updated\r\n- When modifying the `title`, update the `description` of any items that reference the previous title to replace it with the new title.\r\n- `id` and `type` are immutable\r\n- Items cannot be added or removed\r\n\r\n## Feature Layers\r\n- Supported layer types: `Point`, `Polyline`, `Polygon`, `Table`\r\n\r\n### Layer Naming Rules\r\n- Layer `name` values should be written in Title Case unless specifically requested otherwise\r\n- Layer names should be localized to the detected User Query language unless specifically requested otherwise\r\n\r\n### Add Layers Rule\r\n- Never edit the `addLayers` property\r\n- If `addLayers: false`:\r\n - Layers can NOT be added or removed\r\n - Layer `id` values are immutable\r\n- If `addLayers: true`:\r\n - Layers may be added or removed\r\n - Each new layer must receive a unique `id` starting at 0\r\n- Regardless of `addLayers`:\r\n - Fields within a layer or table may be modified according to the Required Fields and Custom Fields rules.\r\n - Custom fields may be added or removed when explicitly requested.\r\n\r\n### Layer Type Mutability Rule\r\n- Never edit the `typeMutable` property\r\n\r\n### Required Fields\r\n- Required fields are protected:\r\n - Cannot be removed\r\n - Cannot be moved\r\n - `name`, `type`, `length`, and `choiceList` are immutable\r\n - `alias` and `description` can be modified\r\n\r\n### Custom Fields\r\n- Custom fields may be added, modified, or removed\r\n - All properties of the field can be modified\r\n- Field names:\r\n - must be 31 characters or fewer\r\n - lowercase in the detected User Query language when that language has letter case\r\n - contain letters from any writing system (Unicode letters are allowed, e.g., `\xE4`, `\xF1`, `\u540D`, `\u3042`)\r\n - do not contain special characters other than underscores (`_`)\r\n - do not start with a number or underscore\r\n- Localize the field `name` to the detected User Query language\r\n- Valid types: `string`, `integer`, `double`, `date`\r\n- String fields:\r\n - Set `choiceList` to an array of allowed values if applicable, else `null`\r\n - All`choiceList` values should be written in the detected User Query language unless specifically requested otherwise\r\n - Set an appropriate `length`. When setting a default length use 256 instead of 255.\r\n- Non-string fields:\r\n - `choiceList` and `length` should be set to `null`\r\n - Existing string fields can be changed to a non-string field when requested \r\n- Boolean values must be implemented as:\r\n - `string` with a two-value `choiceList`\r\n - The two values should be localized to the detected User Query language unless specifically requested otherwise\r\n - Preserve meaning equivalent to \u201CYes\u201D and \u201CNo\u201D (affirmative/negative)\r\n- No duplicate field names within the same layer\r\n\r\n# Current Solution Design\r\n{currentDesign}\r\n\r\n# User Query\r\n{query}';export{e as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import e from"./I4PBOBUM.js";import d from"./26LDC3OX.js";import"./HYQVSB6C.js";import c from"./MFFM74RG.js";import"./2TEBTKD4.js";import"./YUWXPLTE.js";import"./S37TPZAO.js";import"./LVYAW6XF.js";import b from"./U27263JW.js";import a from"./WDASGI72.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./RDRCAA3H.js";import"./DIBK4RSG.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./HIPZRG2Q.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,,,a])=>{return a},a,b,c,d,e)
2
+ import e from"./LXGPZJIZ.js";import d from"./VJBL5ZUX.js";import"./HYQVSB6C.js";import c from"./CVHZAZLS.js";import"./2TEBTKD4.js";import"./YUWXPLTE.js";import"./2LCG2XWX.js";import"./LVYAW6XF.js";import b from"./JJLYSRRX.js";import a from"./WDASGI72.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./RDRCAA3H.js";import"./DIBK4RSG.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./HIPZRG2Q.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,,,a])=>{return a},a,b,c,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./25HVM373.js";export default $arcgis.t(([a,u,{g:i}])=>{var c=class{async getPopupTitle(o,f){let s={};for(let[e,r]of Object.entries(o.attributes))s={...s,[`{${e.toUpperCase()}}`]:r};let p=o.layer,l=this._removeTags(p?.popupTemplate?.title);if(l.includes("{expression/expr")&&p?.popupTemplate?.expressionInfos!=null)for(let e=0;e<p.popupTemplate?.expressionInfos.length;e++){let r=p.popupTemplate.expressionInfos[e],n=a.createArcadeProfile("popup");try{let t=await(await a.createArcadeExecutor(r.expression,n)).executeAsync({$feature:o,$layer:p,$map:f});(t!==null||t!=="")&&(s[`{expression/${r.name}}`.toUpperCase()]=t)}catch(t){console.error(t);continue}}return p.popupTemplate?.fieldInfos&&p.fields.forEach(e=>{let r=o.attributes[e.name],n=(p?.popupTemplate?.fieldInfos||[]).find(m=>m.fieldName.toLowerCase()===e.name.toLowerCase()),t=i(r,e.type,e?.domain,n?.format,u);s[`{${e.name.toUpperCase()}}`]=t??r}),l?.replace(/{.*?}/g,e=>s[e.toUpperCase()]!=null?s[e.toUpperCase()]:"")}_removeTags(o){return o==null||o===""?"":o.toString().replace(/(<([^>]+)>)/gi,"")}};return c},"arcade","intl",a)
2
+ import a from"./MVDJOENC.js";export default $arcgis.t(([a,u,{g:i}])=>{var c=class{async getPopupTitle(o,f){let s={};for(let[e,r]of Object.entries(o.attributes))s={...s,[`{${e.toUpperCase()}}`]:r};let p=o.layer,l=this._removeTags(p?.popupTemplate?.title);if(l.includes("{expression/expr")&&p?.popupTemplate?.expressionInfos!=null)for(let e=0;e<p.popupTemplate?.expressionInfos.length;e++){let r=p.popupTemplate.expressionInfos[e],n=a.createArcadeProfile("popup");try{let t=await(await a.createArcadeExecutor(r.expression,n)).executeAsync({$feature:o,$layer:p,$map:f});(t!==null||t!=="")&&(s[`{expression/${r.name}}`.toUpperCase()]=t)}catch(t){console.error(t);continue}}return p.popupTemplate?.fieldInfos&&p.fields.forEach(e=>{let r=o.attributes[e.name],n=(p?.popupTemplate?.fieldInfos||[]).find(m=>m.fieldName.toLowerCase()===e.name.toLowerCase()),t=i(r,e.type,e?.domain,n?.format,u);s[`{${e.name.toUpperCase()}}`]=t??r}),l?.replace(/{.*?}/g,e=>s[e.toUpperCase()]!=null?s[e.toUpperCase()]:"")}_removeTags(o){return o==null||o===""?"":o.toString().replace(/(<([^>]+)>)/gi,"")}};return c},"arcade","intl",a)
package/dist/cdn/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a}from"./HIPZRG2Q.js";import{v as e}from"./T3EPRHTT.js";import"./EXBEKVP5.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./22BT2PBE.js"),"_translations:,builderVisible,hasActiveBuilderDesign,open,userFirstName"],"buffer-tools":[()=>import("./VUXNHQGR.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./HQCHD3FH.js"),"_translations:,allowedPasteLayerIds:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapComponentId,mapView:,pasteEnabled,selectedFeaturesIds:,selectingFeatureFromMap,showCopyPasteActions,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./SGFSVWTY.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./VL2NVCIB.js"),"_translations:,aiImageExtraction:,aiTextExtraction:,allowMultipleCreation,appName,customizeSubmit,enableMessageLocation,enablePhotoLocation,enableSearch,enableSnapping,floorLevel,formElements,isMobile,mapView:,popupEnabled,reportingArea,reportingAreaLayer,reportingAreaMessage,searchConfiguration:,selectedLayerId,showGuidingMsg,showLayerVisibilityMsg,showSketchWidgets,submitNewReportsMessage,updateMapPosition;refresh,showForm,submit"],"create-related-feature":[()=>import("./2NSMAAXL.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./ENXQ33P7.js"),"_translations:,appLayout,appProxies,basemapConfig:,coverPageEnabled,customInfoText,defaultAppLayout,defaultCenter,defaultGlobalId,defaultLayer,defaultLevel,defaultOid,defaultWebmap,enableAutoRefresh,enableBasemap,enableColumnReorder,enableCopyPaste,enableCSV,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapList,enableSearch,enableSelectionTool,enableShare,enableSnapping,enableZoom,featureSelectionMode,honorMapFieldSettings,introductionWindowEnabled,mapInfos:,onlyShowUpdatableLayers,popupHeaderColor,popupHeaderHoverColor,popupHeaderHoverTextColor,popupHeaderTextColor,searchConfiguration:,shareIncludeEmbed,shareIncludeSocial,showNewestFirst,theme,visibilityIcon,zoomAndScrollToSelected,zoomToScale"],"crowdsource-reporter":[()=>import("./Y3GFBLXF.js"),"_translations:,aiImageExtraction:,aiTextExtraction:,center,commentButtonText,commentSubmittedMessage,defaultWebmap,description,enableAnonymousAccess,enableAnonymousComments,enableComments,enableHome,enableLogin,enableMessageLocation,enableNewReports,enablePhotoLocation,enableSearch,enableSnapping,enableZoom,filterByMapExtent,floorLevel,isMobile,layerExpressions:,layerId,level,loginTitle,mapInfos:,mapView:,objectId,reportButtonText,reportingArea,reportingAreaLayer,reportingAreaMessage,reportingOptions:,reportsHeader,reportSubmittedMessage,searchConfiguration:,showComments,showFeatureSymbol,showFullCommentTitle,showMyReportsOnly,showUserImageInCommentsList,sortFields:,sortOption,submitNewReportsMessage,theme,zoomToScale;updateLayerExpressionsT9n"],"deduct-calculator":[()=>import("./6WNKGSHD.js")],"delete-button":[()=>import("./FSF3T3OT.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./5LSNDSHW.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./LV5KMTCD.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./54A4C4RG.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./YLIWN2J2.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./AAUM57XI.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./JFMNVOWH.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,featuresReferenceId,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,pasteEnabled,position,showCloseBtn,showCopyPasteActions;back,getSelectedFeature,next,refresh,toggleListView"],"layer-list":[()=>import("./BOFA5RH7.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./FYJMHXWV.js"),"layerListRef:,mapView:,visibilityIcon"],"layer-table":[()=>import("./A2A3RFJ6.js"),"_translations:,appLayout,defaultGlobalId:,defaultLayerId,defaultOid:,enableAutoRefresh,enableColumnReorder,enableCSV,enableInlineEdit,enableShare,enableTableAutosave,featureSelectionMode,honorMapFieldSettings,isMobile,layerIds:,mapHidden,mapInfo:,mapView:,pasteEnabled,selectedIds:,selectedRelatedIds:,shareIncludeEmbed,shareIncludeSocial,showCopyPasteActions,showNewestFirst,showOnlyUpdatableLayers,zoomAndScrollToSelected,zoomToScale;closeFilter,filterReset,filterUpdate,refresh,setColumnOrder,validateActiveEdits,validateTableUpdate"],"map-basemap-gallery":[()=>import("./EWS72RFR.js"),"basemapConfig:,basemapGalleryRef:,mapView:"],"map-card":[()=>import("./CV4B2O7J.js"),"_translations:,appLayout,appProxies,basemapConfig:,defaultLayerId,defaultWebmapId,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableShare,enableSingleExpand,featureSelectionMode,hide,isMapLayout,isMobile,mapComponentId,mapInfo:,mapInfos:,mapToolsOrder:,mapView:,mapWidgetsIndex,mapWidgetsPosition,mapWidgetsSize,mobileMapWidgetsPosition,mobileToolsOrder:,pasteEnabled,selectedFeaturesIds:,selectedLayer:,shareIncludeEmbed,shareIncludeSocial,showCopyPasteActions,showOnlyUpdatableLayers,stackTools,theme,visibilityIcon,zoomToolsSize,zoomToScale;resetFilter,updateFilterState,updateLayer"],"map-draw-tools":[()=>import("./743J2ZUC.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./5FWKODDH.js"),"enabled,floorFilterRef:,mapView:"],"map-fullscreen":[()=>import("./D22STVK5.js"),"fullscreenRef:,mapView:"],"map-layer-picker":[()=>import("./YUI2MSOK.js"),"_translations:,appearance,configLayerOrderDefined,defaultLayerId,disabled,display,enabledLayerIds:,height,isMobile,mapView:,placeholderIcon,referenceElement,scale,selectedIds:,showLayersListInPopover,showOnlyUpdatableLayers,showSingleLayerAsLabel,showTables,showTablesDisabled,type;setLayerById,setLayerByIds,updateLayer"],"map-legend":[()=>import("./5N4KGIIY.js"),"legendRef:,mapView:"],"map-picker":[()=>import("./PM4EFNB2.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./37P3IMFV.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchComponent:,searchConfiguration:,searchTerm"],"map-select-tools":[()=>import("./2R7Y2ZVX.js"),"_translations:,bufferColor,bufferOutlineColor,customLabelEnabled,defaultBufferDistance,defaultBufferUnit,enabledLayerIds:,enableLayerFeatures,enableLayerFeaturesOnLoad,enableSearchDistance,enableSearchDistanceOnLoad,enableSketchTools,geometries:,headerLabelClass,isUpdate,layerViews:,mapView:,noResultText,searchConfiguration:,searchDistanceEnabled,selectionLayerIds:,selectionSet:,selectLayerView:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:,useLayerFeaturesEnabled;clearSelection,getSelection"],"map-tools":[()=>import("./KR2PPIBX.js"),"_translations:,basemapConfig:,configLayerOrderDefined,defaultLayerId,enableBasemap,enabledLayerIds:,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableSingleExpand,isMobile,layout,mapInfo:,mapInfos:,mapView:,mapWidgetsSize,parentComponentHeight,parentComponentWidth,position,searchConfiguration:,selectedFeaturesIds:,selectedLayer:,selectedWebMapId,selectionTools:,showOnlyUpdatableLayers,stackTools,toolOrder:,visibilityIcon,zoomToolsSize"],"pci-calculator":[()=>import("./3A3CPQX4.js")],"pdf-download":[()=>import("./QYCERRRZ.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./7VY3RI7C.js"),"_translations:,addresseeLayerIds:,bufferColor,bufferOutlineColor,customExport,customExportURL,customLabelEnabled,defaultBufferDistance,defaultBufferUnit,defaultExportTitle,defaultNumLabelsPerPage,enableLayerFeatures,enableLayerFeaturesOnLoad,enableSearchDistance,enableSearchDistanceOnLoad,enableSketchTools,featureEffect:,featureHighlightEnabled,initialNotice,mapView:,noResultText,searchConfiguration:,selectionLayerIds:,showRefineSelection,showSearchSettings,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"refine-selection":[()=>import("./IXPNZCW6.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./6HZBPFHA.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-builder-assistant":[()=>import("./354D2K6F.js"),"_translations:,design,readOnlyNotice"],"solution-configure-titles":[()=>import("./JFPR5QIQ.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./HAMYUUYZ.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./67CEWYTY.js"),"_translations:,card:,debugFailDeployment,design:,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./P666D4WT.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./FMPY32BG.js"),"_translations:,card:,cardRef,diagramKey,open,readOnlyNotice,templateInfos:"],"solution-deploying-dialog":[()=>import("./E3F63VW4.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./OUMIC7G7.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./HRQVJBRJ.js"),"_translations:,card:,readOnlyNotice"],"solution-item-accordion":[()=>import("./ZWASNOIQ.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:,usageContext;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./ADURBGIK.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./R27S3IDW.js"),"designType,isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./VBJJQPZT.js"),"_translations:,description,heading,headingEn,icon,meridianIcon,sectionHeadingEn,url"],"solution-snapshot-gallery":[()=>import("./YW2WMW6B.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./UDPMO6YN.js"),"_translations:,actionApperance,autoUpdateShareUrl,buttonAppearance,inlineSuccessPopoverPlacement,mode,popoverButtonIconScale,popoverPositioning,removePopoverOffset,scale,shareButtonKind,shareButtonScale,shareButtonText,shareButtonType,shareIconsLayout,shareText,shareUrl,shortenShareUrl,socialMedia,solutionId,solutionTitle,solutionVersion,successMessage"],"solution-user-avatar":[()=>import("./ON4EBR25.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./3SMHMC4L.js"),"_translations:,sortType;searchSolutions,setSearchOptions;getDisplayedSolutionIds"],"solutions-all-shell":[()=>import("./WXDMML76.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./YEDC2OLI.js"),"_translations:,appConfig,initTab,initTitleOrId,loadExampleBuilderData,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./6WVYNWVR.js"),"_translations:,appConfig,assistantOpen,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-list":[()=>import("./APNDTPBA.js"),"_translations:,hasLinks,listTitle,referenceCards:,results:"],"solutions-deployed-panel":[()=>import("./HDMAFAEM.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./CMCEF65U.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./6PZSOVYB.js"),"_translations:,hideIndustryFilter,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./VN3AKGAY.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./ATEW4U4A.js"),"_translations:;scrollToSection"],"solutions-searchsort-toolbar":[()=>import("./4HRGPGDM.js"),"_translations:,defaultSortType,isOrgSolutions,scope;;changeOwnerFilter,changeSearchFilter,sortChanged"]});o({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-solutions-assistant,buffer-tools,card-manager,consent-manager,create-feature,create-related-feature,crowdsource-manager,crowdsource-reporter,deduct-calculator,delete-button,delete-dialog,edit-card,feature-details,feature-list,field-selection,info-card,layer-list,layer-list-widget,layer-table,map-basemap-gallery,map-card,map-draw-tools,map-floor-filter,map-fullscreen,map-layer-picker,map-legend,map-picker,map-search,map-select-tools,map-tools,pci-calculator,pdf-download,public-notification,refine-selection,selection-tool,solution-builder-assistant,solution-configure-titles,solution-delete-dialog,solution-deploy-dialog,solution-deployed-card,solution-deployed-card-panel,solution-deploying-dialog,solution-details-card,solution-details-panel,solution-item-accordion,solution-item-diagram,solution-item-icon,solution-resource-card,solution-snapshot-gallery,solution-social-share,solution-user-avatar,solutions-all-panel,solutions-all-shell,solutions-deploy-app,solutions-deploy-app-nav,solutions-deployed-list,solutions-deployed-panel,solutions-deployed-shell,solutions-filter-panel,solutions-resources-section,solutions-resources-shell,solutions-searchsort-toolbar){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,a)
2
+ import{a}from"./HIPZRG2Q.js";import{v as e}from"./T3EPRHTT.js";import"./EXBEKVP5.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./TSDKMOES.js"),"_translations:,builderVisible,hasActiveBuilderDesign,open,userFirstName"],"buffer-tools":[()=>import("./VUXNHQGR.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./Y2MAVMNV.js"),"_translations:,allowedPasteLayerIds:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapComponentId,mapView:,pasteEnabled,selectedFeaturesIds:,selectingFeatureFromMap,showCopyPasteActions,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./SGFSVWTY.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./HLCHUP24.js"),"_translations:,aiImageExtraction:,aiTextExtraction:,allowMultipleCreation,appName,customizeSubmit,enableMessageLocation,enablePhotoLocation,enableSearch,enableSnapping,floorLevel,formElements,isMobile,mapView:,popupEnabled,reportingArea,reportingAreaLayer,reportingAreaMessage,searchConfiguration:,selectedLayerId,showGuidingMsg,showLayerVisibilityMsg,showSketchWidgets,submitNewReportsMessage,updateMapPosition;refresh,showForm,submit"],"create-related-feature":[()=>import("./2NSMAAXL.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./HGOH5KSX.js"),"_translations:,appLayout,appProxies,basemapConfig:,coverPageEnabled,customInfoText,defaultAppLayout,defaultCenter,defaultGlobalId,defaultLayer,defaultLevel,defaultOid,defaultWebmap,enableAutoRefresh,enableBasemap,enableColumnReorder,enableCopyPaste,enableCSV,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapList,enableSearch,enableSelectionTool,enableShare,enableSnapping,enableZoom,featureSelectionMode,honorMapFieldSettings,introductionWindowEnabled,mapInfos:,onlyShowUpdatableLayers,popupHeaderColor,popupHeaderHoverColor,popupHeaderHoverTextColor,popupHeaderTextColor,searchConfiguration:,shareIncludeEmbed,shareIncludeSocial,showNewestFirst,theme,visibilityIcon,zoomAndScrollToSelected,zoomToScale"],"crowdsource-reporter":[()=>import("./S5RB3GMN.js"),"_translations:,aiImageExtraction:,aiTextExtraction:,center,commentButtonText,commentSubmittedMessage,defaultWebmap,description,enableAnonymousAccess,enableAnonymousComments,enableComments,enableHome,enableLogin,enableMessageLocation,enableNewReports,enablePhotoLocation,enableSearch,enableSnapping,enableZoom,filterByMapExtent,floorLevel,isMobile,layerExpressions:,layerId,level,loginTitle,mapInfos:,mapView:,objectId,reportButtonText,reportingArea,reportingAreaLayer,reportingAreaMessage,reportingOptions:,reportsHeader,reportSubmittedMessage,searchConfiguration:,showComments,showFeatureSymbol,showFullCommentTitle,showMyReportsOnly,showUserImageInCommentsList,sortFields:,sortOption,submitNewReportsMessage,theme,zoomToScale;updateLayerExpressionsT9n"],"deduct-calculator":[()=>import("./6WNKGSHD.js")],"delete-button":[()=>import("./FSF3T3OT.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./5LSNDSHW.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./LV5KMTCD.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./54A4C4RG.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./YWX2U5OD.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./LQ6PZESP.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./TFO2AK45.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,featuresReferenceId,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,pasteEnabled,position,showCloseBtn,showCopyPasteActions;back,getSelectedFeature,next,refresh,toggleListView"],"layer-list":[()=>import("./BOFA5RH7.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./FYJMHXWV.js"),"layerListRef:,mapView:,visibilityIcon"],"layer-table":[()=>import("./OTQLLNFG.js"),"_translations:,appLayout,defaultGlobalId:,defaultLayerId,defaultOid:,enableAutoRefresh,enableColumnReorder,enableCSV,enableInlineEdit,enableShare,enableTableAutosave,featureSelectionMode,honorMapFieldSettings,isMobile,layerIds:,mapHidden,mapInfo:,mapView:,pasteEnabled,selectedIds:,selectedRelatedIds:,shareIncludeEmbed,shareIncludeSocial,showCopyPasteActions,showNewestFirst,showOnlyUpdatableLayers,zoomAndScrollToSelected,zoomToScale;closeFilter,filterReset,filterUpdate,refresh,setColumnOrder,validateActiveEdits,validateTableUpdate"],"map-basemap-gallery":[()=>import("./EWS72RFR.js"),"basemapConfig:,basemapGalleryRef:,mapView:"],"map-card":[()=>import("./VY364MR6.js"),"_translations:,appLayout,appProxies,basemapConfig:,defaultLayerId,defaultWebmapId,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableShare,enableSingleExpand,featureSelectionMode,hide,isMapLayout,isMobile,mapComponentId,mapInfo:,mapInfos:,mapToolsOrder:,mapView:,mapWidgetsIndex,mapWidgetsPosition,mapWidgetsSize,mobileMapWidgetsPosition,mobileToolsOrder:,pasteEnabled,selectedFeaturesIds:,selectedLayer:,shareIncludeEmbed,shareIncludeSocial,showCopyPasteActions,showOnlyUpdatableLayers,stackTools,theme,visibilityIcon,zoomToolsSize,zoomToScale;resetFilter,updateFilterState,updateLayer"],"map-draw-tools":[()=>import("./743J2ZUC.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./5FWKODDH.js"),"enabled,floorFilterRef:,mapView:"],"map-fullscreen":[()=>import("./D22STVK5.js"),"fullscreenRef:,mapView:"],"map-layer-picker":[()=>import("./YUI2MSOK.js"),"_translations:,appearance,configLayerOrderDefined,defaultLayerId,disabled,display,enabledLayerIds:,height,isMobile,mapView:,placeholderIcon,referenceElement,scale,selectedIds:,showLayersListInPopover,showOnlyUpdatableLayers,showSingleLayerAsLabel,showTables,showTablesDisabled,type;setLayerById,setLayerByIds,updateLayer"],"map-legend":[()=>import("./5N4KGIIY.js"),"legendRef:,mapView:"],"map-picker":[()=>import("./PM4EFNB2.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./37P3IMFV.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchComponent:,searchConfiguration:,searchTerm"],"map-select-tools":[()=>import("./2R7Y2ZVX.js"),"_translations:,bufferColor,bufferOutlineColor,customLabelEnabled,defaultBufferDistance,defaultBufferUnit,enabledLayerIds:,enableLayerFeatures,enableLayerFeaturesOnLoad,enableSearchDistance,enableSearchDistanceOnLoad,enableSketchTools,geometries:,headerLabelClass,isUpdate,layerViews:,mapView:,noResultText,searchConfiguration:,searchDistanceEnabled,selectionLayerIds:,selectionSet:,selectLayerView:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:,useLayerFeaturesEnabled;clearSelection,getSelection"],"map-tools":[()=>import("./KR2PPIBX.js"),"_translations:,basemapConfig:,configLayerOrderDefined,defaultLayerId,enableBasemap,enabledLayerIds:,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableSingleExpand,isMobile,layout,mapInfo:,mapInfos:,mapView:,mapWidgetsSize,parentComponentHeight,parentComponentWidth,position,searchConfiguration:,selectedFeaturesIds:,selectedLayer:,selectedWebMapId,selectionTools:,showOnlyUpdatableLayers,stackTools,toolOrder:,visibilityIcon,zoomToolsSize"],"pci-calculator":[()=>import("./3A3CPQX4.js")],"pdf-download":[()=>import("./LXNQ32NZ.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./JS2MTHHP.js"),"_translations:,addresseeLayerIds:,bufferColor,bufferOutlineColor,customExport,customExportURL,customLabelEnabled,defaultBufferDistance,defaultBufferUnit,defaultExportTitle,defaultNumLabelsPerPage,enableLayerFeatures,enableLayerFeaturesOnLoad,enableSearchDistance,enableSearchDistanceOnLoad,enableSketchTools,featureEffect:,featureHighlightEnabled,initialNotice,mapView:,noResultText,searchConfiguration:,selectionLayerIds:,showRefineSelection,showSearchSettings,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"refine-selection":[()=>import("./IXPNZCW6.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./6HZBPFHA.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-builder-assistant":[()=>import("./MXF4BYLT.js"),"_translations:,design,readOnlyNotice"],"solution-configure-titles":[()=>import("./DGGIENYR.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./2MCOUOTQ.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./YPBSKBT2.js"),"_translations:,card:,debugFailDeployment,design:,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./F5463ORT.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./FK6Q2LYR.js"),"_translations:,card:,cardRef,diagramKey,open,readOnlyNotice,templateInfos:"],"solution-deploying-dialog":[()=>import("./E3F63VW4.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./JCGZXASG.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./ZWL4JFKS.js"),"_translations:,card:,readOnlyNotice"],"solution-item-accordion":[()=>import("./ZWASNOIQ.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:,usageContext;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./ADURBGIK.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./R27S3IDW.js"),"designType,isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./VLF76E2L.js"),"_translations:,description,heading,headingEn,icon,meridianIcon,sectionHeadingEn,url"],"solution-snapshot-gallery":[()=>import("./IP7IUAM5.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./ROGRXRFI.js"),"_translations:,actionApperance,autoUpdateShareUrl,buttonAppearance,inlineSuccessPopoverPlacement,mode,popoverButtonIconScale,popoverPositioning,removePopoverOffset,scale,shareButtonKind,shareButtonScale,shareButtonText,shareButtonType,shareIconsLayout,shareText,shareUrl,shortenShareUrl,socialMedia,solutionId,solutionTitle,solutionVersion,successMessage"],"solution-user-avatar":[()=>import("./WKRSOM6J.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./QKSC4XFL.js"),"_translations:,sortType;searchSolutions,setSearchOptions;getDisplayedSolutionIds"],"solutions-all-shell":[()=>import("./HUYLWWWJ.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./BYOO7TWU.js"),"_translations:,appConfig,initTab,initTitleOrId,loadExampleBuilderData,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./VLBNRURV.js"),"_translations:,appConfig,assistantOpen,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-list":[()=>import("./APNDTPBA.js"),"_translations:,hasLinks,listTitle,referenceCards:,results:"],"solutions-deployed-panel":[()=>import("./DSJRQHKW.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./CMCEF65U.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./K6O33P5T.js"),"_translations:,hideIndustryFilter,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./X6TQNCB3.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./V6N4G75E.js"),"_translations:;scrollToSection"],"solutions-searchsort-toolbar":[()=>import("./EBAOA6CS.js"),"_translations:,defaultSortType,isOrgSolutions,scope;;changeOwnerFilter,changeSearchFilter,sortChanged"]});o({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-solutions-assistant,buffer-tools,card-manager,consent-manager,create-feature,create-related-feature,crowdsource-manager,crowdsource-reporter,deduct-calculator,delete-button,delete-dialog,edit-card,feature-details,feature-list,field-selection,info-card,layer-list,layer-list-widget,layer-table,map-basemap-gallery,map-card,map-draw-tools,map-floor-filter,map-fullscreen,map-layer-picker,map-legend,map-picker,map-search,map-select-tools,map-tools,pci-calculator,pdf-download,public-notification,refine-selection,selection-tool,solution-builder-assistant,solution-configure-titles,solution-delete-dialog,solution-deploy-dialog,solution-deployed-card,solution-deployed-card-panel,solution-deploying-dialog,solution-details-card,solution-details-panel,solution-item-accordion,solution-item-diagram,solution-item-icon,solution-resource-card,solution-snapshot-gallery,solution-social-share,solution-user-avatar,solutions-all-panel,solutions-all-shell,solutions-deploy-app,solutions-deploy-app-nav,solutions-deployed-list,solutions-deployed-panel,solutions-deployed-shell,solutions-filter-panel,solutions-resources-section,solutions-resources-shell,solutions-searchsort-toolbar){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,a)
@@ -35,9 +35,9 @@ Immediately fail the request if ANY of the following are present:\r
35
35
  - Fetching or ingesting external data (files, URLs, APIs)\r
36
36
  \r
37
37
  # Step 2: Use Case Validation\r
38
- A valid use case MUST clearly describe a concrete use case used to design the solution.\r
38
+ A valid use case is required to design the solution.\r
39
39
  \r
40
- A concrete use case must include:\r
40
+ A use case must include:\r
41
41
  - an action or workflow (for example: inspect, map, track, manage, assess, share)\r
42
42
  - AND the subject of that workflow (what is being inspected, mapped, tracked, managed, assessed, or shared)\r
43
43
  \r
@@ -96,12 +96,7 @@ Otherwise:\r
96
96
  - You design and build solutions based on existing solution patterns.\r
97
97
  - You DO NOT design or create solution patterns\r
98
98
  \r
99
- ## If VALID\r
100
- - Return an empty response\r
101
- \r
102
- ## If INVALID\r
103
- Classify the failure into one of these categories and use the guidelines to generate a response:\r
104
- \r
99
+ When the isValidUseCase = false, classify into one of these categories:\r
105
100
  - Missing use case\r
106
101
  - Invite the user to provide their use case or workflow to get started\r
107
102
  - Contains unsupported implementation details \r
@@ -20,15 +20,17 @@ Always prioritize the latest User Query over chat history when there is a confli
20
20
  - ALL parts of the response MUST be in response_language\r
21
21
  \r
22
22
  # Supported Updates\r
23
- Requests are considered valid ONLY when they clearly ask to:\r
23
+ Requests are considered valid ONLY when they clearly ask to make a supported design change.\r
24
+ \r
25
+ ## Standard Updates (Always supported)\r
24
26
  - Update solution title, description, or tags\r
25
27
  - Update item titles or descriptions\r
26
28
  - Add, remove/delete, or update fields\r
27
29
  - Add, remove/delete, or update choice-list/domain values\r
28
30
  - Update layer or table names and descriptions\r
29
31
  \r
30
- These requests are also supported but are conditional to the solution:\r
31
- - Add or remove/delete layers\r
32
+ ## Conditional Updates (May be supported if the layer allows it)\r
33
+ - Add or remove a layer or table from the existing feature layer item\r
32
34
  - Update layer geometry types\r
33
35
  \r
34
36
  # Unsupported Request\r
@@ -38,13 +40,17 @@ Treat the request as invalid when it asks for:\r
38
40
  - Implementation details (symbology, pop-ups, labels, spatial reference)\r
39
41
  - Using existing solutions, feature services, or geodatabases\r
40
42
  - Fetching or ingesting external data (files, URLs, APIs)\r
41
- - Adding or removing items from the solution\r
43
+ - Adding or removing items from the solution (e.g., apps, maps, dashboards)\r
44
+ - Note: This does not include layers or tables within the feature layer item, which are supported.\r
42
45
  - Explicit implementation steps beyond supported schema, domain, or naming updates\r
43
46
  - Build or create a different solution\r
44
47
  - Content that is harmful, hateful, unsafe, or biased.\r
45
48
  - Do not reject requests based solely on domain; evaluate what is being requested.\r
46
49
  \r
47
- # Decision rules\r
50
+ # Interpretation Rule\r
51
+ - If the user asks to add or remove a "layer" without specifying where, assume it refers to the existing feature layer in the solution.\r
52
+ \r
53
+ # Decision Rules\r
48
54
  Set isValidUpdate = true ONLY when:\r
49
55
  - The request clearly expresses intent to make a supported design change, even if specific details are not provided\r
50
56
  \r
@@ -53,25 +59,21 @@ Set isValidUpdate = false when:\r
53
59
  - Any hard exclusion is present\r
54
60
  - The request is outside the supported update scope\r
55
61
  \r
56
- # Response guidance\r
57
- - Keep responses short, clear, and friendly\r
58
- - Use natural, non-technical language\r
62
+ # Response Guidance\r
63
+ - Provide a brief, clear response\r
64
+ - Plain, friendly language\r
59
65
  - Avoid implementation details, schema terms, or JSON field names\r
60
- - For informational questions, provide only a brief, high-level response\r
61
- - Do not explain product behavior, capabilities, or configuration details\r
62
- \r
63
- ## If VALID\r
64
- - Return an empty response\r
65
66
  \r
66
- ## If INVALID\r
67
- - If the user is asking to create/build a different solution:\r
68
- - Tell the user they would need to start a new chat or discard the design to create/build a new solution\r
67
+ When the isValidUpdate = false, classify into one of these categories:\r
68
+ - Request is asking to create/build/design a new solution:\r
69
+ - You MUST tell the user they need to start a new chat or discard the design to create/build/design a new solution\r
69
70
  - Do NOT suggest that you are able to discard the design or start a new chat\r
70
- - If unclear or conversational:\r
71
- - If the user is asking a general or informational question, provide a brief response without explaining product behavior or capabilities\r
71
+ - Request is unclear or conversational:\r
72
+ - For informational questions, provide a very brief, high-level response that does not include product details or implementation specifics\r
72
73
  - If the question requires product knowledge, do not answer it and instead redirect to supported updates\r
74
+ - When mentioning adding/removing layers or changing geometry types, describe them as conditional\r
73
75
  - Acknowledge the request and ask the user to clarify the change they want\r
74
- - For all other requests:\r
76
+ - For all other invalid requests:\r
75
77
  - Clearly say you can’t make that change\r
76
78
  - Briefly explain in simple terms\r
77
79
  - Offer examples of changes you can help with\r
@@ -1,8 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  const e = `# Your Role\r
3
- You are the ArcGIS Solutions assistant responding to a user request that is outside the supported capabilities for solution exploration or solution building, or is a meta question about the assistant itself.\r
4
- \r
5
- You must follow all rules below at all times. If a request conflicts with these rules, prioritize the rules.\r
3
+ You are the ArcGIS Solutions assistant. You respond to requests that are outside the supported capabilities for solution exploration or solution building, or to questions about the assistant itself.\r
6
4
  \r
7
5
  # Your Task\r
8
6
  - Analyze the User Query and chat history\r
@@ -11,39 +9,35 @@ You must follow all rules below at all times. If a request conflicts with these
11
9
  \r
12
10
  Always prioritize the latest User Query over chat history when there is a conflict.\r
13
11
  \r
14
- # Routing Rationale\r
15
- {rationale}\r
16
- \r
17
12
  # Language\r
18
13
  - Detect the primary language of the User Query\r
19
14
  - Set response_language = detected language\r
20
15
  - ALL parts of the response MUST be in response_language\r
21
16
  \r
22
17
  # Supported Capabilities\r
23
- When describing what you can help with, use these options.\r
24
- \r
25
- - Explore existing solutions and understand what they do.\r
26
- - Answer questions using ArcGIS Solutions documentation.\r
27
- - Help build a solution for a specific workflow or use case.\r
28
- \r
29
- # Response Rules\r
30
- - If the message is conversational and does not introduce a new task\r
31
- - Respond politely and naturally.\r
32
- - Do NOT reference routing, limitations, or rationale.\r
33
- - Offer a simple, friendly invitation to continue if needed.\r
34
- - If the user asked about the assistant itself:\r
35
- - Respond briefly and at a high level\r
36
- - Do NOT reference routing, limitations, or rationale.\r
37
- - Describe capabilities using the Supported Capabilities section\r
18
+ You can help with:\r
19
+ - Exploring existing solutions and understanding what they do\r
20
+ - Answering questions using ArcGIS Solutions documentation\r
21
+ - Building a solution for a specific workflow or use case\r
22
+ \r
23
+ # Response Guidance\r
24
+ - If the message is conversational and does not introduce a new task:\r
25
+ - Respond naturally and politely\r
26
+ - If the user asks about the assistant:\r
27
+ - Respond briefly at a high level and describe your capabilities\r
38
28
  - For all other requests:\r
39
- - Use the provided Routing Rationale to briefly acknowledge the user’s request and explain why you cannot help with it, without referencing scope, internals, or implementation details.\r
40
- - State what you CAN help with using the Supported Capabilities statements below. Do NOT customize, contextualize, or adapt them to the user’s request.\r
41
- - Treat general knowledge, definitional, or explanatory questions as unsupported, even if the answer is commonly known.\r
42
- - If you are describing something a user explores, builds, designs, updates, or deploys, you MUST use the generic terms “solution” or “solutions” — NOT “ArcGIS Solutions" or "ArcGIS solution".\r
43
- - When asked who you are, refer to yourself as the ArcGIS Solutions assistant.\r
44
- - Do NOT include the words "Routing Rationale" in the response\r
45
- - Keep the response concise (2–3 sentences is ideal)\r
46
- - Use plain, professional, user-focused language\r
29
+ - Briefly acknowledge the request and explain that you can’t help with it\r
30
+ - Describe what you can help with\r
31
+ - Optionally end responses with an open-ended invitation asking how you can help with ArcGIS Solutions\r
32
+ \r
33
+ # Additional Rules\r
34
+ - When stating what you can help with, do not explain, reinterpret, or relate the capabilities to the user’s request\r
35
+ - Do not offer alternative, similar, or partial help beyond the stated capabilities\r
36
+ - Treat general knowledge, definitional, or explanatory questions as unsupported, even if the answer is commonly known\r
37
+ - If you are describing something a user explores, builds, designs, updates, or deploys, use the generic equivalent of "solution" or "solutions" in the response_language\r
38
+ - Refer to yourself as the ArcGIS Solutions assistant if asked\r
39
+ - Do not mention internal reasoning, routing, or system details\r
40
+ - Keep responses concise, friendly, and professional\r
47
41
  \r
48
42
  # User Query\r
49
43
  {query}`;