@esri/solutions-components 5.1.0-next.145 → 5.1.0-next.147

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 (140) hide show
  1. package/dist/cdn/{LL647FJR.js → 2IGILR4T.js} +1 -1
  2. package/dist/cdn/{BQE6IVEF.js → 3A2YSBVB.js} +1 -1
  3. package/dist/cdn/{ZHXREM2D.js → 3KYQE6O5.js} +1 -1
  4. package/dist/cdn/{MEZL3ZHS.js → 3MRR3HKE.js} +25 -25
  5. package/dist/cdn/{QKJJHBMB.js → 42GXADY4.js} +1 -1
  6. package/dist/cdn/{L3UI7EZZ.js → 4DAGSZIC.js} +1 -1
  7. package/dist/cdn/{7ADKNWWI.js → 4FRYNYQ6.js} +1 -1
  8. package/dist/cdn/{5OFQVDNK.js → 4MAZNAHZ.js} +1 -1
  9. package/dist/cdn/{7CLM77HQ.js → 4SBOBTOR.js} +1 -1
  10. package/dist/cdn/{3V2UWENT.js → 4YCLQ3RW.js} +1 -1
  11. package/dist/cdn/{CVRBLJ5O.js → 5MPDXVRM.js} +1 -1
  12. package/dist/cdn/{ULUJKWT5.js → 6AUKNSKW.js} +1 -1
  13. package/dist/cdn/{RIHOGDUV.js → 6IUKH3E3.js} +1 -1
  14. package/dist/cdn/6K3C5JX2.js +2 -0
  15. package/dist/cdn/6VCG2ITQ.js +2 -0
  16. package/dist/cdn/{NOXANMDF.js → 757HAEJS.js} +1 -1
  17. package/dist/cdn/{P4XNRWG7.js → 7Q5BT35O.js} +1 -1
  18. package/dist/cdn/{RSCBZIAN.js → 7WIFBTQF.js} +12 -1
  19. package/dist/cdn/{I7XBRB6B.js → 7WYPODAB.js} +1 -1
  20. package/dist/cdn/AH3PJQ6A.js +2 -0
  21. package/dist/cdn/{C5ZH23YO.js → B5MBF4JC.js} +13 -13
  22. package/dist/cdn/BG4LNU44.js +2 -0
  23. package/dist/cdn/{IEN3TA4W.js → BH42V5CR.js} +1 -1
  24. package/dist/cdn/DD2Y5NOB.js +2 -0
  25. package/dist/cdn/{J5K2SIY6.js → DMM5WA5Q.js} +3 -3
  26. package/dist/cdn/{UKQPYE7U.js → DQQTSOMQ.js} +1 -1
  27. package/dist/cdn/{Y4KGXRSD.js → FWLPMS4Q.js} +1 -1
  28. package/dist/cdn/{M4II4TSX.js → G3C6IL5Y.js} +1 -1
  29. package/dist/cdn/{3DCFUYKP.js → GG4IIHQE.js} +1 -1
  30. package/dist/cdn/{MHVLVLRA.js → HYQVSB6C.js} +1 -1
  31. package/dist/cdn/I46CXTVR.js +2 -0
  32. package/dist/cdn/{A27DLHRU.js → IFONVCBL.js} +1 -1
  33. package/dist/cdn/IZSM7ZJK.js +2 -0
  34. package/dist/cdn/{MIH5YMTN.js → JMBANG5V.js} +1 -1
  35. package/dist/cdn/{G3F52QRW.js → JOAEH3CI.js} +1 -1
  36. package/dist/cdn/KETYOYXQ.js +2 -0
  37. package/dist/cdn/{GJD7AOUI.js → KH5WPLZK.js} +1 -1
  38. package/dist/cdn/{IDEOFV22.js → LTLR4VF3.js} +1 -1
  39. package/dist/cdn/{NIHPHDXG.js → LWT3JEQ6.js} +21 -52
  40. package/dist/cdn/LZDMYPQ2.js +75 -0
  41. package/dist/cdn/{Y6QJCLML.js → M3NML7ZV.js} +1 -1
  42. package/dist/cdn/NQH7ZZWD.js +2 -0
  43. package/dist/cdn/{6MOTC6CE.js → NV2DLQDN.js} +1 -1
  44. package/dist/cdn/OANAQ6HY.js +2 -0
  45. package/dist/cdn/PQL3UL3P.js +2 -0
  46. package/dist/cdn/{L6P26BYB.js → Q2DJUFVO.js} +1 -1
  47. package/dist/cdn/{LCV5GKUD.js → Q35DDH7J.js} +123 -123
  48. package/dist/cdn/QDKHYQJB.js +2 -0
  49. package/dist/cdn/{HPWNNMVU.js → QU25YPPX.js} +1 -1
  50. package/dist/cdn/{5NQNJZTE.js → RMO244NW.js} +1 -1
  51. package/dist/cdn/{HLKEBN2O.js → RRD4QUQS.js} +1 -1
  52. package/dist/cdn/RY6KZ77P.js +2 -0
  53. package/dist/cdn/{PBGG3TGN.js → RYBSWXQQ.js} +1 -1
  54. package/dist/cdn/{2UMMLVCR.js → SYQ5E5TV.js} +1 -1
  55. package/dist/cdn/U56TK45K.js +113 -0
  56. package/dist/cdn/{UM3P3Q52.js → U6JZYJ4D.js} +1 -1
  57. package/dist/cdn/UBEU6ULP.js +2 -0
  58. package/dist/cdn/{MPCJZCL5.js → UTZUXO5F.js} +2 -2
  59. package/dist/cdn/UXKH44PB.js +2 -0
  60. package/dist/cdn/{34CZ4EWR.js → V3MSUKLX.js} +6 -4
  61. package/dist/cdn/{2PUK3PST.js → W7I22AW3.js} +1 -1
  62. package/dist/cdn/{72X4E4QW.js → WC37HMOI.js} +1 -1
  63. package/dist/cdn/{RUQ4RO4T.js → WUEJANIZ.js} +1 -1
  64. package/dist/cdn/{LJY6BB64.js → X6JL6SAH.js} +1 -1
  65. package/dist/cdn/{XGYNSCTA.js → Y37QLEAM.js} +1 -1
  66. package/dist/cdn/{XGWDWPRK.js → YFJZN5K5.js} +1 -1
  67. package/dist/cdn/{6T35OGRG.js → YTU2BYBP.js} +1 -1
  68. package/dist/cdn/{5LF6C3S5.js → YWALGZAG.js} +1 -1
  69. package/dist/cdn/{QFZK4TD4.js → Z23BVIGQ.js} +1 -1
  70. package/dist/cdn/{QQXQAU33.js → ZCPVOS4Q.js} +1 -1
  71. package/dist/cdn/{F26SXWZ5.js → ZNH7LRND.js} +1 -1
  72. package/dist/cdn/{BMMIXOTR.js → ZWQWBXHR.js} +1 -1
  73. package/dist/cdn/index.js +1 -1
  74. package/dist/chunks/Auth.js +1 -1
  75. package/dist/chunks/assessBuildRequest.js +116 -0
  76. package/dist/chunks/assessUpdateRequest.js +78 -0
  77. package/dist/chunks/assistantResponse.js +12 -1
  78. package/dist/chunks/classifyIntent.js +21 -52
  79. package/dist/chunks/deployFlowController.js +1 -1
  80. package/dist/chunks/designSolution.js +6 -4
  81. package/dist/chunks/helpers.js +47 -43
  82. package/dist/chunks/interfaces.js +105 -102
  83. package/dist/chunks/solution-builder-assistant.js +185 -121
  84. package/dist/chunks/solution-deploy-dialog.js +4 -4
  85. package/dist/chunks/solutions-deploy-app-nav.js +2 -2
  86. package/dist/chunks/templates.js +2 -2
  87. package/dist/chunks/updateDesign.js +1 -1
  88. package/dist/components/arcgis-solutions-assistant/customElement.js +340 -278
  89. package/dist/components/arcgis-solutions-assistant/index.js +1 -0
  90. package/dist/components/card-manager/customElement.js +8 -8
  91. package/dist/components/create-feature/customElement.js +107 -113
  92. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  93. package/dist/components/layer-table/customElement.d.ts +3 -0
  94. package/dist/components/layer-table/customElement.js +110 -100
  95. package/dist/components/solution-configure-titles/customElement.js +11 -10
  96. package/dist/components/solution-delete-dialog/customElement.js +9 -8
  97. package/dist/components/solution-deploy-dialog/customElement.d.ts +6 -2
  98. package/dist/components/solution-deployed-card-panel/customElement.js +40 -37
  99. package/dist/components/solution-details-card/customElement.js +1 -1
  100. package/dist/components/solution-details-panel/customElement.js +78 -64
  101. package/dist/components/solution-item-diagram/customElement.js +321 -285
  102. package/dist/components/solution-resource-card/customElement.js +1 -1
  103. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  104. package/dist/components/solutions-all-panel/customElement.js +5 -5
  105. package/dist/components/solutions-deploy-app/customElement.js +13 -15
  106. package/dist/components/solutions-deployed-panel/customElement.js +7 -7
  107. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  108. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  109. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  110. package/dist/docs/api.json +1 -1
  111. package/dist/docs/docs.json +1 -1
  112. package/dist/docs/vscode.html-custom-data.json +1 -1
  113. package/dist/docs/web-types.json +1 -1
  114. package/dist/solutions-components_commit.txt +5 -8
  115. package/dist/types/lumina.d.ts +1 -0
  116. package/dist/types/preact.d.ts +1 -0
  117. package/dist/types/react.d.ts +1 -0
  118. package/dist/types/stencil.d.ts +1 -0
  119. package/package.json +1 -1
  120. package/dist/cdn/25NZZKXC.js +0 -2
  121. package/dist/cdn/3JQ2RXVJ.js +0 -2
  122. package/dist/cdn/4JVDUPVW.js +0 -2
  123. package/dist/cdn/54AE7WD2.js +0 -2
  124. package/dist/cdn/56A5UMZG.js +0 -9
  125. package/dist/cdn/AZN2E5DL.js +0 -2
  126. package/dist/cdn/DFZZNKPK.js +0 -76
  127. package/dist/cdn/G3FTF6WH.js +0 -2
  128. package/dist/cdn/KDNGZ47C.js +0 -2
  129. package/dist/cdn/NIYB3TEW.js +0 -2
  130. package/dist/cdn/PBMTIFFX.js +0 -2
  131. package/dist/cdn/PECGJO2P.js +0 -2
  132. package/dist/cdn/Q5TICZRX.js +0 -15
  133. package/dist/cdn/QGCF64WY.js +0 -2
  134. package/dist/cdn/VO53567V.js +0 -2
  135. package/dist/cdn/WKS3TKDC.js +0 -2
  136. package/dist/cdn/YVIEKHQQ.js +0 -2
  137. package/dist/cdn/Z3B5KW2S.js +0 -2
  138. package/dist/chunks/initialAssessment.js +0 -79
  139. package/dist/chunks/responseOptionsBuilderExclusion.js +0 -12
  140. package/dist/chunks/responseOptionsDefault.js +0 -18
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import h from"./CVRBLJ5O.js";import e from"./P4XNRWG7.js";import d from"./PBMTIFFX.js";import a from"./KDNGZ47C.js";import{a as w,b as $}from"./2B4SGB3I.js";import{b as g}from"./I2NTSKBD.js";import{la as C,ra as S}from"./AE5HNAOV.js";import{a as y}from"./MGEDATQ7.js";import{b as v}from"./2I5LGZNX.js";import{G as b,I as _,J as x,K as c,h as f,i as t,q as r}from"./FFF5HUPM.js";export default $arcgis.t(([{h:p,s:k,t:D},{a:I,c:T,g:O,r:l},{a:N},{d:h,h:M,i:m}])=>{var L=f`.negative-tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.font-weight-med{font-weight:var(--calcite-font-weight-medium)}.font-weight-bold{font-weight:var(--calcite-font-weight-bold)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.font-1{font-size:var(--calcite-spacing-lg)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}@container (min-width: 801px){.font-size-override .display-flex.flex-direction-row>.image-width+.display-flex{flex:1;min-width:0}}.icon-color{color:var(--calcite-color-text-3)}.padding-bottom-lg{padding-bottom:var(--calcite-spacing-lg)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.align-items-center{align-items:center}.align-items-start{align-items:start}.font-size-override{--calcite-font-size--2: var(--calcite-font-size--1)}.background-color-1{background-color:var(--calcite-color-surface-2)}.background-color-2{background-color:var(--calcite-color-surface-3)}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.position-relative{position:relative}.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-surface-3);background-color:var(--calcite-color-surface-3)}.panel-background-1{--calcite-panel-background-color: var(--calcite-color-surface-2);--calcite-shell-panel-background-color: var(--calcite-color-surface-2)}.border-none{border:none}.font-color-1{color:var(--calcite-color-text-1)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.bottom-border{border-bottom:solid var(--calcite-spacing-px);color:var(--calcite-color-border-1)}.margin-start-end-xxl{margin-inline-start:var(--calcite-spacing-xxl);margin-inline-end:var(--calcite-spacing-xxl)}.margin-start-end-lg{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg)}.margin-top-xxl{margin-top:var(--calcite-spacing-xxl)}.justify-between{justify-content:space-between}.items-baseline{align-items:baseline}.padding-xxl{padding:var(--calcite-spacing-xxl)}.padding-lg{padding:var(--calcite-spacing-lg)}.padding-top-xxl{padding-top:var(--calcite-spacing-xxl)}.padding-top-lg{padding-top:var(--calcite-spacing-lg)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-xxl{padding-inline-end:var(--calcite-spacing-xxl)}.padding-start-sm{padding-inline-start:var(--calcite-spacing-sm)}.padding-start-xxl{padding-inline-start:var(--calcite-spacing-xxl)}.image-width{width:300px;flex-grow:0;flex-shrink:0}@container (max-width: 1280px){.image-width{flex-grow:0;flex-shrink:1}}img{max-width:100%;height:auto;overflow-clip-margin:content-box;overflow:clip;display:block}.margin-xl{margin:var(--calcite-spacing-xl)}.line-height-1{line-height:1.1}.line-height-xxl{line-height:var(--calcite-line-height-xxl)}@container (max-width: 800px){.font-size-override .display-flex.flex-direction-row{flex-direction:column!important}.image-width{width:100%!important;max-width:100%!important;margin:0!important;padding:var(--calcite-spacing-lg)!important;padding-bottom:0!important;box-sizing:border-box}.image-width img{width:100%;max-width:100%}.margin-xl{margin:0!important}.image-width+.display-flex{padding-inline-start:var(--calcite-spacing-lg)!important;padding-inline-end:var(--calcite-spacing-lg)!important}.padding-start-sm{padding-inline-start:0!important}.title-font{padding-inline-start:0!important;padding-top:var(--calcite-spacing-lg)!important;padding-bottom:var(--calcite-spacing-lg)!important}.align-items-start.padding-bottom-xxl,.padding-bottom-xxl.padding-start-sm{padding-bottom:var(--calcite-spacing-lg)!important}}calcite-shell-panel{--calcite-shell-panel-max-width: 20rem;--calcite-shell-panel-width: 24vw}calcite-shell{block-size:unset}.solution-deployed-action{--calcite-color-focus: initial}.chipClass{padding-left:var(--calcite-spacing-sm)!important;padding-right:var(--calcite-spacing-sm)!important}.skeleton-loader{background:linear-gradient(90deg,var(--calcite-color-foreground-1) 0%,var(--calcite-color-foreground-2) 50%,var(--calcite-color-foreground-1) 100%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:var(--calcite-border-radius)}.skeleton-folder{height:1.5rem;width:12rem;border-radius:var(--calcite-border-radius)}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}`,u=class extends b{constructor(){super(),this.diagramKey="",this.open=!1,this.readOnlyNotice="",this.templateInfos=[],this._accordionLoading=!1,this._configureTitlesOpen=!1,this._deleteDialogOpen=!1,this._hasNewVersion=!1,this._hasSourceSolution=!1,this._isDiagramOpen=!1,this._isNameConflict=!1,this._invalidNameMessage="",this._showFailedAlert=!1,this._showItemUpdateLoading=!1,this.isMobile=!1,this._templateInfoGraph=[],this._thumbnailUrl="",this._folderName="",this._folderId=null,this._folderLoading=!1,this._translations=y({name:"solution-deployed-card-panel",blocking:!0}),this._configContextConsumer=g({context:$,subscribe:!0,callback:async e=>{e&&(this._isOrgAdmin=T(e.authentication),this._user=e.authentication?.Portal?.user)}}),this._isOrgAdmin=!1,this._isMobileContextConsumer=g({context:w,subscribe:!0,callback:e=>this.isMobile=e}),this.navTabSelected=r(),this.forceSelectTab=r(),this.sortTypeChanged=r(),this.solutionConfigureDialogClose=r(),this._nonSolutionDependencyItems=[],this._openFolder=e=>{e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Folder",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]});let i=this._configContextConsumer.value?.orgUrl;if(!i)return;let a=this._configContextConsumer.value?.userSession?.username,n=this.card?.owner===a,o;if(n){let s=this._folderId||this.card?.owner;o=`${i}/home/content.html?folder=${s}`}else this._folderId?o=`${i}/home/content.html?user=${this.card?.owner}&folder=${this._folderId}`:o=`${i}/home/content.html?user=${this.card?.owner}&folder=${this.card?.owner}`;window.open(o,"_blank")},this._openSourceSolutionDetails=async e=>{e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Details",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),await new Promise(a=>setTimeout(a,100));let i=m(this._configContextConsumer.value.allCards,this.card.deployCommonId);i&&this.forceSelectTab.emit({tabType:"details",tabTitleOrId:i})},this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected),this.listenOn(window,"displayDeployedCard",()=>{k({kind:"success",icon:"check-circle",title:this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title??""),message:"",autoClose:!0,autoCloseDuration:"medium"})}),this.listenOn(window,"sessionRefreshed",e=>{this._updateThumbnailToken(e.detail)})}static{this.properties={card:0,cardRef:1,diagramKey:1,open:5,readOnlyNotice:1,templateInfos:0,_accordionLoading:16,_configureTitlesOpen:16,_deleteDialogOpen:16,_hasNewVersion:16,_hasSourceSolution:16,_isDiagramOpen:16,_isNameConflict:16,_invalidNameMessage:16,_showFailedAlert:16,_showItemUpdateLoading:16,isMobile:16,_templateInfoGraph:16,_thumbnailUrl:16,_folderName:16,_folderId:16,_folderLoading:16,_translations:16,_nonSolutionDependencyItems:16}}static{this.styles=L}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async load(){if(this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value),this.card?.thumbnailUrl){let e=this._configContextConsumer.value?.userSession,i=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400");this._thumbnailUrl=`${i}&token=${e?.token}`}}willUpdate(e){if(e.has("card")){let i=this._configContextConsumer.value?.userSession,a=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400");this._thumbnailUrl=`${a}&token=${i?.token}`,this._folderLoading=!0,this._folderName="",this._folderId=null}}render(){let e=this.card&&this.card.typeKeywords?.includes("AIAssistant");return this.isMobile?t`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="background-color-2 padding-top-lg">${this._getSolutionPanel()}</div><div class="background-color-1 margin-top-xxl">${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}${!e&&t`<div class="bottom-border margin-start-end-xxl"></div>`||""}${!e&&this._getSolutionVersionCard()||""}</div>${this._getSolutionContents()}</calcite-panel></calcite-shell>`:t`<calcite-shell class="position-relative background-color-2"><calcite-panel class="padding-end-xxl panel-background-2 border-none" slot=panel-bottom><div class="display-flex flex-direction-column overflow-hidden"><div class="background-color-2 padding-top-xxl">${this._getSolutionPanel()}</div>${this._getSolutionContents()}</div></calcite-panel><calcite-shell-panel class="panel-background-1" slot=panel-end>${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}${!e&&t`<div class="bottom-border margin-start-end-xxl"></div>`||""}${!e&&this._getSolutionVersionCard()||""}</calcite-shell-panel>${this._renderDiagramDialog()}${this._getConfigureTitlesDialog()}${this._getDeleteDialog()}</calcite-shell>`}async _deployedCardSelected(e){let i=e.detail;this.card=i.card,this.cardRef=i.cardRef,this.templateInfos=[],this._accordionLoading=!0,this.templateInfos=await this._getTemplates(),this._accordionLoading=!1;let a=await N(this._configContextConsumer.value.userSession,this.card);this._nonSolutionDependencyItems=a._nonSolutionDependencyItems;let n=M(this._configContextConsumer.value?.allCards||[],this.card.deployCommonId);this._hasSourceSolution=!!n;let o=!1;if(n){let s=h(n),d=h(this.card);o=s>d}this._hasNewVersion=o,this._folderLoading=!0,this._folderName="",this._folderId=null,await this._fetchFolderInfo(),this._folderLoading=!1}_handleDeployAppTabSelected(e){e.detail==="deployed-card"&&this.sortTypeChanged.emit("")}_getButtons(){let e=this._configContextConsumer.value?.userSession?.username,i=this._configContextConsumer.value?.authentication?.CanUpdateSolution,a=this._configContextConsumer.value?.authentication?.CanDeleteSolution&&this._configContextConsumer.value?.authentication?.CanUpdateSolution,n=p(this._configContextConsumer.value),o=this.card?.owner===e||this._isOrgAdmin||i,s=this.card?.owner===e||this._isOrgAdmin||a,d=o?"display-none":"",P=this.isMobile?"padding-lg":"padding-xxl";return t`<div class=${`display-flex flex-direction-column ${P}`}>${!this.isMobile&&t`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button>`||""}<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button>${o&&!this.isMobile&&t`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" .disabled=${n} id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${_(d)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>`||""}${s&&!this.isMobile&&t`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" .disabled=${n} kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button>`||""}</div>`}_getReadOnlyNotice(){return t`<calcite-notice class="padding-bottom-lg" icon=exclamation-mark-triangle kind=warning open scale=s><div slot=message .innerHTML=${this.readOnlyNotice??""}></div></calcite-notice>`}_openConfigureTitlesDialog(){this._configureTitlesOpen=!0}_getConfigureTitlesDialog(){return this._configureTitlesOpen?t`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async()=>{this.templateInfos=await this._getTemplates(),this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this.templateInfos=await this._getTemplates()}} .open=${this._configureTitlesOpen} source="Details Page" .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_viewDocumentation(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),window.open(this.card.learnMoreUrl,"_blank")}_openItemDetails(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Item Details",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),window.open(this.card.itemUrl,"_blank")}_getOwnerSection(){if(!this._configContextConsumer?.value)return;let e=this.isMobile?"margin-start-end-lg":"margin-start-end-xxl";return t`<div class=${`display-flex padding-bottom-xxl ${e} flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l tabindex=0>${this._translations.aboutYourSolutionOwner}</calcite-label></div><solution-user-avatar .fullname=${this._user?.username===this.card?.owner?this._user?.fullName:void 0} .lookupProfile=${this._user?.username!==this.card?.owner} .thumbnailUrl=${this._user?.username===this.card?.owner?this._user?.thumbnailUrl:void 0} .username=${this.card?.owner}></solution-user-avatar></div>`}async _openDiagram(e){e.stopPropagation();let i=await this._getTemplates();i&&(this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"View Diagram",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),this._templateInfoGraph=i,this._isDiagramOpen=!0)}async _getTemplates(){return this.cardRef?await this.cardRef.getTemplates():this.card?await I(this.card.id,this._configContextConsumer.value.userSession):void 0}async _fetchFolderInfo(){if(this.card?.id)try{let e=this._configContextConsumer.value?.userSession;if(!e)return;let i=await S(this.card.id,e);if(this._folderId=i.ownerFolder??null,this._folderId){let a=await C(this.card.owner,this._folderId,e);this._folderName=a?.currentFolder?.title||this._folderId}else this._folderName=this.card.owner||"Root"}catch(e){console.error("Error fetching folder info:",e),this._folderId=null,this._folderName=""}}_getFolderSection(){let e=this.isMobile?"padding-lg":"padding-xxl",i=this._folderId?"folder":"home";return t`<div class=${`${e} display-flex flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.folder}</calcite-label><calcite-button appearance=transparent aria-label=${this._translations.openFolder??c} .disabled=${this._folderLoading} kind=neutral icon-start=launch2 @click=${this._openFolder}>${this._translations.openFolder}</calcite-button></div><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center">${this._folderLoading?t`<div class="skeleton-loader skeleton-folder"></div>`:t`<calcite-icon aria-hidden=true class="icon-color" .icon=${i} scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${this._folderName||"Root"}</span></div>`}</div></div></div>`}_getSolutionVersionCard(){let e=this._hasNewVersion?this._translations.newVersionAvailable:this._translations.youHaveTheLatestVersion,i=this.isMobile?"padding-lg":"padding-xxl";return t`<div class=${`${i} display-flex flex-direction-column`}><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.solutionVersion.replace("{{version}}",this.card?.deployVersion||"")}</calcite-label><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center"><calcite-icon aria-hidden=true class="icon-color" icon=clock-forward scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${e}</span></div></div></div>${this._hasNewVersion?t`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openNewVersionSolution} width=full>${this._translations.learnMoreNewVersion}</calcite-button>`:this._hasSourceSolution?t`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openSourceSolutionDetails} width=full>${this._translations.openDetails}</calcite-button>`:null}</div>`}async _openNewVersionSolution(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"View Latest Version",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),await new Promise(a=>setTimeout(a,100));let i=m(this._configContextConsumer.value.allCards,this.card.deployCommonId);i&&this.forceSelectTab.emit({tabType:"details",tabTitleOrId:i})}_getSolutionPanel(){let e=this.card&&this.card.typeKeywords?.includes("AIAssistant");return t`<calcite-panel class="font-size-override panel-background-1"><div class="display-flex flex-direction-row"><div class="image-width margin-xl"><img alt=${this.card?.title??c} src=${this._thumbnailUrl??c}></div><div class="display-flex flex-direction-column"><h1 class="title-font margin-block-start-end-0 padding-end-xxl padding-start-sm padding-top-xxl padding-bottom-xxl line-height-1 negative-tabbing-offset" tabindex=0>${this.card?.title}${e&&this._getChips()||""}</h1><div class="display-flex flex-direction-column padding-bottom-xxl padding-start-sm"><div class="display-flex align-items-start padding-bottom-xxl"><div class="font-1 padding-end-1 line-height-xxl negative-tabbing-offset" tabindex=0>${this.card?.snippet}</div></div><div class="display-flex"><div class="display-flex"><calcite-label class="label-override icon-color tabbing-offset" layout=inline tabindex=0><calcite-icon aria-hidden=true class="icon-color" icon=projects scale=s></calcite-icon>${this._translations.aboutYourSolutionDeployedDate.replace("{{deployedDate}}",this.card?.created||"")}</calcite-label></div></div>${p(this._configContextConsumer.value)&&t`<div class="display-flex flex-direction-row padding-end-xxl" style=${x({paddingTop:"1rem"})}>${this._getReadOnlyNotice()}</div>`||""}</div></div></div></calcite-panel>`}_getSolutionContents(){let e=this.card?D(this._nonSolutionDependencyItems,this.card.id):[];return t`<calcite-panel class="panel-background-1 padding-top-xxl"><calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded><div class="margin-block-start-end-0 heading-font " slot=content-start>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}",this.templateInfos.length.toString())}</div><div class="overflow-auto">${this._accordionLoading?t`<calcite-loader .label=${this._translations.loadingText} scale=m></calcite-loader>`:t`<solution-item-accordion .itemRelationshipDependencies=${e} .listSelectionMode=${e.length>0?"multiple":"single"} .reuseWarning=${this._translations.itemUsedInOtherSolutions} .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords}></solution-item-accordion>`}</div></calcite-accordion-item></calcite-accordion></calcite-panel>`}_getDeleteDialog(){return this._deleteDialogOpen?t`<solution-delete-dialog .card=${this.card} @solutionDeleted=${()=>setTimeout(()=>this.navTabSelected.emit({tabType:"deployments"}),100)} @solutionDeleteDialogBeforeClose=${()=>{this._deleteDialogOpen=!1}} .open=${this._deleteDialogOpen} source="Details Page"></solution-delete-dialog>`:""}_renderDiagramDialog(){return this._isDiagramOpen?t`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")??c} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled scale=m width=l><solution-item-diagram .diagramKey=${this.diagramKey!==""?this.diagramKey:this._configContextConsumer.value?.diagramKey??""} .templateInfoGraph=${this._templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}_getChips(){return t`<calcite-chip class="chipClass" icon=effects .label=${this._translations.builtWithAI} scale=s>${this._translations.builtWithAI}</calcite-chip>`}async _deleteSolution(){this._deleteDialogOpen=!0}_updateThumbnailToken(e){this._thumbnailUrl!==""&&(this._thumbnailUrl=O(this._thumbnailUrl,e))}};v("solution-deployed-card-panel",u);return u},a,d,e,h)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import d from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as b}from"./MGEDATQ7.js";import"./RMEDO4JC.js";import"./ISFTCFSJ.js";import{b as g}from"./2I5LGZNX.js";import{E as h,F as c,G as w,I as _,h as u,i as s,q as i,t as C}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([{b:p},{d:y}])=>{var S=u`@layer{:host{display:block!important}.display-none{display:none}.padding-1{padding:1rem}.position-relative{position:relative}.overflow-auto{overflow:auto}.height-full{height:100%}.paste-component{--arcgis-paste-height: 100%;--arcgis-paste-width: 100%;height:100%;width:100%}.position-static{position:static!important}.z-index-500{z-index:500!important}.margin-top-10{margin-top:10px}card-manager{display:block}}`,d=class extends w{constructor(){super(),this.customInfoText="",this.enableEditGeometry=!1,this.enableSnapping=!1,this.isMobile=!1,this.zoomAndScrollToSelected=!1,this.selectedFeaturesIds=[],this.enableCreateFeatures=!0,this.createBtnLabel="",this.selectingFeatureFromMap=!1,this.showSketchWidgets=!1,this.mapComponentId="",this.pasteEnabled=!1,this.showCopyPasteActions=!1,this.allowedPasteLayerIds=[],this._cardLoading=!1,this._graphics=[],this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._activeFeatureCreationCount=1,this._isPasting=!1,this._translations=b({name:"card-manager",blocking:!0}),this._isFeatureCreated=!1,this._createFeature=h(),this._pasteComponent=h(),this.createWorkFlowStarted=i(),this.backFromCreateWorkFlow=i(),this.featureOrRecordSubmitted=i(),this.featuresCopied=i(),this.featuresPasted=i(),this._featuresAdded=()=>{this._isPasting&&this._pasteComponent.value&&this._resetPasteWorkflow()},this._pasteComponentReady=async()=>{if(this._pasteComponent.value&&this.mapComponentId&&this._pasteComponent.value.referenceElement===void 0){let e=document.getElementById(this.mapComponentId);await e.viewOnReady(),this._pasteComponent.value.referenceElement=e}},this._applyPasteCommand=async e=>{if(!this._pasteComponent.value){console.error("Paste failed: paste component is not available.");return}try{e.detail.applySet&&(this._isPasting=!0,await this._pasteComponent.value.writeChanges(e.detail.applySet),await this._resetPasteWorkflow())}catch(t){await this._resetPasteWorkflow(),console.error("Paste failed:",t)}},this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"relatedRecordToggled",this.relatedRecordToggled),this.listenOn(window,"copyFeatures",this._copyFeatures),this.listenOn(window,"pasteFeatures",this._pasteFeatures),this.listenOn(window,"featuresAdded",this._featuresAdded)}static{this.properties={customInfoText:1,enableEditGeometry:5,enableSnapping:5,isMobile:5,layerOrTable:0,mapView:0,zoomAndScrollToSelected:5,selectedFeaturesIds:0,enableCreateFeatures:5,createBtnLabel:1,selectingFeatureFromMap:5,showSketchWidgets:5,mapComponentId:1,pasteEnabled:5,showCopyPasteActions:5,allowedPasteLayerIds:0,_cardLoading:16,_graphics:16,_showCreateFeatureComponent:16,_showSubmitBtn:16,_activeFeatureCreationCount:16,_isPasting:16,_translations:16}}static{this.styles=S}static{this.shadowRootOptions=C}async featureSelectionChange(e){this._showCreateFeatureComponent&&!this._isFeatureCreated&&this._backFromCreateFeature();let t=e.detail;this._graphics=await this._getFeaturesByIds(t)}async layerSelectionChange(e){this._showCreateFeatureComponent&&this._backFromCreateFeature();let t=e.detail[0];this.layerOrTable=this.mapView?await y(this.mapView,t):void 0,await this._resetPasteWorkflow()}async mapChanged(e){await this._resetPasteWorkflow()}async relatedRecordToggled(e){let t=e.detail;this.layerOrTable=t}async _copyFeatures(e){if(!this._pasteComponent.value)return;let t=e.detail.featuresIds,a=this.layerOrTable,n=await p(t,a,[],!0,this.mapView?.spatialReference),o=[];n.forEach(r=>{let l={layer:r.layer,graphic:r,type:"feature"};o.push(l)}),this._pasteComponent.value.clipboard.setData(o),this.featuresCopied.emit(),this.requestUpdate()}async _pasteFeatures(e){if(!this._pasteComponent.value){console.error("Paste failed: paste component is not available.");return}try{this._pasteComponent.value.closed=!1,await this._pasteComponent.value.showClipboardItems(!0),this.enableEditGeometry&&!this.layerOrTable?.isTable&&await this._pasteComponent.value.startMoveClipboard(!0),this.featuresPasted.emit()}catch(t){console.error("Paste failed:",t)}}_getLayerPermissionsCheck(){let e=this.allowedPasteLayerIds?.length>0?this.allowedPasteLayerIds.map(String):this.layerOrTable?.id!==void 0?[String(this.layerOrTable.id)]:[],t=new Set(e);return{canCreate:a=>t.has(String(a.id))&&!!a.capabilities?.operations?.supportsAdd,canUpdate:a=>t.has(String(a.id))&&!!a.capabilities?.operations?.supportsUpdate}}async _resetPasteWorkflow(){if(!this._pasteComponent.value){this._isPasting=!1;return}try{await this._pasteComponent.value.showClipboardItems(!1),await this._pasteComponent.value.cancelMoveClipboard()}catch(e){console.error("Reset paste workflow failed:",e)}finally{this._isPasting=!1,this._pasteComponent.value.closed=!0}}async load(){this.selectedFeaturesIds?.length>0&&(this._graphics=await this._getFeaturesByIds(this.selectedFeaturesIds))}render(){let e=(this._pasteComponent.value?.closed||!this.showCopyPasteActions)&&this._graphics?.length>0,t=this._pasteComponent.value?.closed?"display-none":"",a=this._graphics?.length===0&&this._showCreateFeatureComponent?"":"display-none",n=this._graphics?.length>0||this._showCreateFeatureComponent||!this._pasteComponent.value?.closed&&this.showCopyPasteActions?"display-none":"",o=this.layerOrTable?.isTable,r=this.customInfoText?this.customInfoText:this.selectingFeatureFromMap?this._translations.selectFeaturesFromMapToStart:this._translations.selectFeaturesToStart,l=this.enableCreateFeatures&&this.layerOrTable?.capabilities?.operations?.supportsAdd,m=this.createBtnLabel?this.createBtnLabel:o?this._translations.createRecord:this._translations.createFeature,f=!this.layerOrTable,F=this.enableSnapping&&!this.layerOrTable?.isTable,v=this.layerOrTable?.isTable?["paste"]:["paste","paste-as"],$=this.enableEditGeometry&&!this.layerOrTable?.isTable;return s`<calcite-panel><div class="overflow-auto height-full">${e&&s`<calcite-shell class=${"position-relative"}><div class="position-static z-index-500 height-full"><info-card .allowEditing=${this.layerOrTable?.editingEnabled} .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${F} .graphics=${this._graphics.reverse()} .isLoading=${this._cardLoading} .isMobile=${this.isMobile} .mapView=${this.mapView} .featuresReferenceId=${this.mapComponentId} position=relative .pasteEnabled=${this.pasteEnabled} show-close-btn .showCopyPasteActions=${this.showCopyPasteActions}></info-card></div></calcite-shell>`||""}<calcite-shell class=${`position-relative ${n}`}><calcite-panel><div class=padding-1><calcite-notice .icon=${this.selectingFeatureFromMap?"map":"table"} icon-flip-rtl open><div slot=message>${r}</div></calcite-notice></div>${!this.isMobile&&l&&s`<calcite-button .disabled=${f} @click=${()=>this._createFeatureBtnClicked()} slot=footer width=full>${m}</calcite-button>`||""}</calcite-panel></calcite-shell><calcite-shell class=${`position-relative ${a}`}><calcite-flow-item selected><calcite-panel .heading=${m}><calcite-action class="back-button hydrated" icon=chevron-left @click=${this._backFromCreateFeature} scale=s slot=header-actions-start .text=${this._translations.back}></calcite-action>${this.getEditorComponent()}${this._showSubmitBtn&&s`<calcite-button appearance=solid class="footer-top-button footer-button" @click=${()=>this._createFeature.value&&void this._createFeature.value.submit()} slot=footer width=full>${this._activeFeatureCreationCount>1?this._translations.createMultiple.replace("{{n}}",String(this._activeFeatureCreationCount)):this._translations.create}</calcite-button>`||""}</calcite-panel></calcite-flow-item></calcite-shell>${this.showCopyPasteActions&&s`<calcite-panel class=${_(t)} .loading=${this._isPasting}><arcgis-paste always-show-feature-form class=${`paste-component ${t}`} closed @arcgisReady=${this._pasteComponentReady} @arcgisApplyPasteCommand=${this._applyPasteCommand} @arcgisClose=${()=>{this._resetPasteWorkflow()}} paste-with-multiple-layers-enabled paste-with-multiple-features-enabled .layerPermissionsCheck=${this._getLayerPermissionsCheck()} .supportedCommands=${v} .view=${this.mapView} ${c(this._pasteComponent)}>${$&&s`<calcite-notice slot=commands-page-message class="margin-top-10" open icon=move><div slot=message>${this._translations.moveClipboardFeatures}</div></calcite-notice>`||""}</arcgis-paste></calcite-panel>`||""}</div></calcite-panel>`}getEditorComponent(){let e=this.enableSnapping&&!this.layerOrTable?.isTable&&this.enableCreateFeatures;return s`<div>${this._showCreateFeatureComponent&&s`<create-feature allow-multiple-creation customize-submit .enableSnapping=${e} .mapView=${this.mapView} .isMobile=${this.isMobile} @activeFeatureCountChange=${t=>{this._activeFeatureCreationCount=t.detail,this._showSubmitBtn=this._activeFeatureCreationCount>0}} @drawComplete=${()=>{this._showSubmitBtn=!0}} @editingAttachment=${t=>{this._showSubmitBtn=!t.detail}} @progressStatus=${()=>{setTimeout(()=>{this._isFeatureCreated=!1},2e3)}} @success=${this._featureCreated} .showSketchWidgets=${this.showSketchWidgets} .selectedLayerId=${this.layerOrTable?.id} show-guiding-msg .showLayerVisibilityMsg=${this.layerOrTable?.visible===!1} ${c(this._createFeature)}></create-feature>`||""}</div>`}async _getFeaturesByIds(e){return(e.length>0&&this.layerOrTable&&this.mapView?await p(e,this.layerOrTable,[],!0,this.mapView?.spatialReference):[]).sort((t,a)=>e.indexOf(Number(t.getObjectId()))-e.indexOf(Number(a.getObjectId())))}_createFeatureBtnClicked(){this._showCreateFeatureComponent=!0,this.createWorkFlowStarted.emit()}async _backFromCreateFeature(){this._createFeature.value&&(this._showCreateFeatureComponent=!1,this.backFromCreateWorkFlow.emit()),this._showSubmitBtn=!1}_featureCreated(){this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._isFeatureCreated=!0,this.featureOrRecordSubmitted.emit(),setTimeout(()=>{this._showCreateFeatureComponent=!0},50)}};g("card-manager",d);return d},a,d)
@@ -1,79 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- const e = `You are the intake classifier for the Solution Builder agent.\r
3
- \r
4
- # Your role:\r
5
- Understand what the user is trying to accomplish,\r
6
- Determine whether their request describes a real, supported use case,\r
7
- Identify which (if any) supported template best fits.\r
8
- \r
9
- # Supported templates:\r
10
- {availableTemplates}\r
11
- \r
12
- # What the Solution Builder can do:\r
13
- Design a solution using one of the supported templates.\r
14
- Use the selected template to produce a solution design.\r
15
- Suggest schema fields for feature layers in that template.\r
16
- Update titles and descriptions of existing template information products.\r
17
- Support iterative refinement after design starts.\r
18
- \r
19
- # What it cannot do:\r
20
- Add or remove information products outside the selected template.\r
21
- Build workflows that do not fit the supported templates.\r
22
- Invent capabilities beyond these constraints.\r
23
- \r
24
- # Decision policy:\r
25
- Determine whether the user has described a concrete, real-world use case or workflow.\r
26
- Confirm the request is appropriate and safe.\r
27
- Check whether at least one supported template applies.\r
28
- \r
29
- # Validity rule:\r
30
- Set isValidUseCase = true ONLY when:\r
31
- \r
32
- The request describes a concrete operational goal or workflow,\r
33
- The request is appropriate for solution design,\r
34
- At least one supported template matches.\r
35
- \r
36
- Otherwise, set isValidUseCase = false.\r
37
- When isValidUseCase = false:\r
38
- \r
39
- Use the assistantResponse to explain what’s missing or answer informational questions.\r
40
- Encourage the user to describe their use case in more detail.\r
41
- Set matchedTemplates to an empty array [].\r
42
- \r
43
- # Template matching:\r
44
- Return matchedTemplates ordered by best fit.\r
45
- Each match must include templateId, confidence (0–1), and templateDescription.\r
46
- templateId must exactly match one of the supported template IDs.\r
47
- templateDescription return a short, action‑oriented summary starting with a verb.\r
48
- \r
49
- # Response guidance:\r
50
- Be concise, friendly, and use plain language.\r
51
- Do not use markdown, bullet points, numbering, or line breaks.\r
52
- The response must be a single paragraph with no newline characters.\r
53
- The response must be no more than two short sentences.\r
54
- When the user has not provided a concrete use case, acknowledge the request and ask them to briefly describe their goal or workflow.\r
55
- Do not list or describe supported templates unless a concrete use case is provided.\r
56
- For informational questions, give a very brief answer and then ask for their use case to continue.\r
57
- Do not use the word “template” or “templates” in the response. \r
58
- When referring to supported capabilities, use neutral user-facing language such as “supported workflows”.\r
59
- \r
60
- # Example responses:\r
61
- User: I want to build a solution\r
62
- Assistant: Let’s design it together. Tell me a bit about what you’re trying to accomplish or the workflow you want to support, and I’ll help design the right solution for you.\r
63
- \r
64
- User: Can you help me build my own solution?\r
65
- Assistant: Yes I can. Tell me a bit about what you’re trying to accomplish or the workflow you want to support, and I’ll help design the right solution for you.\r
66
- \r
67
- User: How do I get started building a solution?\r
68
- Assistant: The best place to start is your goal. Tell me what you want to accomplish or the workflow you need to support, and I’ll help design the right solution for you.\r
69
- \r
70
- # Hard constraints:\r
71
- Never provide harmful instructions.\r
72
- Do not claim unsupported capabilities.\r
73
- Keep responses short and practical.\r
74
- \r
75
- # User message:\r
76
- {query}`;
77
- export {
78
- e as default
79
- };
@@ -1,12 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- const n = `- Use the Routing Rationale reason at the beginning of the response\r
3
- - Always respond using the following pattern:\r
4
- - First paragraph:\r
5
- I can't build a solution..., but I can help design a solution using proven patterns that can be tailored to your workflow.\r
6
- - Second paragraph:\r
7
- Describe your workflow or use case to get started.\r
8
- \r
9
- `;
10
- export {
11
- n as default
12
- };
@@ -1,18 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- const e = `- If the message is conversational and does not introduce a new task\r
3
- - Respond politely and naturally.\r
4
- - Do NOT reference routing, limitations, or rationale.\r
5
- - Offer a simple, friendly invitation to continue if needed.\r
6
- - If the user asked about the assistant itself:\r
7
- - Respond briefly and at a high level\r
8
- - Do NOT reference routing, limitations, or rationale.\r
9
- - Describe capabilities using the Supported Capabilities section\r
10
- - For all other requests:\r
11
- - 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
12
- - State what you CAN help with using ONLY the predefined capability statements below. Do NOT customize, contextualize, or adapt them to the user’s request.\r
13
- - Treat general knowledge, definitional, or explanatory questions as unsupported, even if the answer is commonly known.\r
14
- \r
15
- `;
16
- export {
17
- e as default
18
- };