@esri/solutions-components 5.1.0-next.56 → 5.1.0-next.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{WJIM3ZFB.js → RGE55QV4.js} +5 -5
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +55 -43
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/solutions-components_commit.txt +6 -6
- package/package.json +1 -1
|
@@ -347,13 +347,13 @@ Alias: {alias}
|
|
|
347
347
|
Description: {description}`;os({schemaVersion:Io(Qq),modified:qo().int().nonnegative(),embeddings:os({modelProvider:Io(e7),model:Io(t7),dimensions:Io(yo),templates:os({layer:cn().default(n7),field:cn().default(r7)})}),layers:ui(os({id:cn().min(1),name:cn().min(1),title:cn().catch(""),description:cn().catch(""),vector:ui(qo()).length(yo,{message:`Layer vector must be exactly ${yo} dimensions`}),fields:ui(os({name:cn().min(1),alias:cn().catch(""),description:cn().catch(""),vector:ui(qo()).length(yo,{message:`Field vector must be exactly ${yo} dimensions`})}))})).default([])});var s7=pn.object({name:pn.string(),description:pn.string(),valueType:pn.string(),alias:pn.string()});pn.object({fields:pn.array(s7)});pn.object({title:pn.string(),description:pn.string(),name:pn.string().nullable()});async function cu(e,t){let n=Object.entries(e).find(([r])=>r.endsWith(`/${t}.md`));if(!n)throw new Error(`Prompt not found: ${t}
|
|
348
348
|
Available prompts:
|
|
349
349
|
${Object.keys(e).join(`
|
|
350
|
-
`)}`);return await n[1]()}function a7(e){return e?.configurable?.context?.translations}var PE=(e,t=3)=>{let n=e.map((s,a)=>s
|
|
350
|
+
`)}`);return await n[1]()}function a7(e){return e?.configurable?.context?.translations}var i7=e=>{if(e instanceof vn)return!0;if(e&&typeof e=="object"&&"_getType"in e&&typeof e._getType=="function")try{return e._getType()==="human"}catch{return!1}return!1},PE=(e,t=3)=>{let n=e.map((s,a)=>i7(s)?a:-1).filter(s=>s!==-1);if(n.length===0)return[];let r=n.length>t?n[n.length-t]:n[0];return e.slice(r)},jE=Object.assign({"./prompts/solutions_assistant_description.md":()=>import("./DJTOZZZA.js").then(e=>e.default),"./prompts/solutions_assistant_prompts.md":()=>import("./JMO7ZFWL.js").then(e=>e.default)}),RE=mt.Root({messages:mt({reducer:Ra,default:()=>[]}),outputMessage:mt({reducer:(e="",t)=>typeof t=="string"&&t.trim()?e?`${e}
|
|
351
351
|
|
|
352
|
-
${t}`:t:e,default:()=>""})}),
|
|
352
|
+
${t}`:t:e,default:()=>""})}),o7=async(e,t)=>{let n=a7(t);await Qi({text:n?.executingSolutionsAssistantAgent||"Preparing a response..."},t);let r=await cu(jE,"solutions_assistant_prompts"),s=e.messages.slice(-10),a=await Kq({promptText:r,modelTier:"default",temperature:.7,messages:PE(s)}),i=t?.configurable?.context?.clearSuggestedPrompts;return i&&i(),{outputMessage:a}},c7=()=>new N_(RE).addNode("assistantLLM",o7).addEdge(wt,"assistantLLM").addEdge("assistantLLM",St),u7=await cu(jE,"solutions_assistant_description"),l7={id:"solutionsAssistant",name:"Solutions Assistant Agent",description:u7,createGraph:c7,workspace:RE},ME=Object.assign({"./prompts/solutions_builder_description.md":()=>import("./7QUV7YG7.js").then(e=>e.default),"./prompts/solutions_builder_prompts.md":()=>import("./TE6O5EAX.js").then(e=>e.default)}),LE=mt.Root({messages:mt({reducer:Ra,default:()=>[]}),outputMessage:mt({reducer:(e="",t)=>typeof t=="string"&&t.trim()?e?`${e}
|
|
353
353
|
|
|
354
|
-
${t}`:t:e,default:()=>""}),ticket:mt({reducer:(e,t)=>t??null,default:()=>null})}),Y1=await cu(ME,"solutions_builder_prompts"),
|
|
354
|
+
${t}`:t:e,default:()=>""}),ticket:mt({reducer:(e,t)=>t??null,default:()=>null})}),Y1=await cu(ME,"solutions_builder_prompts"),d7=async(e,t)=>{await Qi({text:"Template: extracting template type and use case..."},t);let n=pn.object({template:pn.string()||"",useCase:pn.string()||""});e.outputMessage&&(Y1=e.outputMessage);let r=await Xq({promptText:Y1,messages:PE(e.messages),schema:n}),s=r?.template?.trim(),a=r?.useCase?.trim()||"";return{ticket:{template:s,useCase:a}}},p7=(e,t)=>{let n=e.ticket;if(!n)return e;let{hitlResponse:r}=t.configurable;if(r?.agentId!=="solutionBuilder"||r.id!=="approveTemplateTicket"){console.log(`template: ${n.template}`),console.log(`useCase: ${n.useCase}`),console.log(n);let a;if(n.template&&n.useCase){let i=[`It looks like you would like to build a ${n.template} solution.`,`The use case for this solution is: ${n.useCase}`,"Are you sure you want to proceed?"].join(`
|
|
355
355
|
`);a={agentId:Lo.id,id:"approveTemplateTicket",kind:"singleSelection",message:i,metadata:["Yes","No"]}}else if(n.template&&!n.useCase){let i=[`It looks like you would like to build a ${n.template} solution.`,`Next we need to uderstandf the use case for the ${n.template} solution.`,"Please provide more details about the use case."].join(`
|
|
356
356
|
`);a={agentId:Lo.id,id:"approveTemplateTicket",kind:"textInput",message:i,metadata:[]}}else if(!n.template&&!n.useCase){let i=["Templates provide a starting structure for your solution, including layers, maps, and apps. Choose a template to get started."].join(`
|
|
357
357
|
`);a={agentId:Lo.id,id:"approveTemplateTicket",kind:"singleSelection",message:i,metadata:["Field inspections","Spatial Data Management","Points of interest"]}}else if(!n.template&&n.useCase){let i=[`We understand that your use case is ${n.useCase}.`,"We alse need to know what template to use.","Templates provide a starting structure for your solution, including layers, maps, and apps. Choose a template to get started."].join(`
|
|
358
|
-
`);a={agentId:Lo.id,id:"approveTemplateTicket",kind:"singleSelection",message:i,metadata:["Field inspections","Spatial Data Management","Points of interest"]}}throw new ly(a)}console.log(`hitlResponse.payload: ${r.payload}`);let s=r.payload;if(!n.template||!n.useCase){if(s==="No")return{outputMessage:"Okay, I've cancelled solution builder.",ticket:null};if(s==="Field inspections"||s==="Spatial Data Management"||s==="Points of interest")return{outputMessage:`Use ${s} template to create a new solution.`,ticket:{template:s,useCase:n.useCase}}}return e},
|
|
359
|
-
`)}},
|
|
358
|
+
`);a={agentId:Lo.id,id:"approveTemplateTicket",kind:"singleSelection",message:i,metadata:["Field inspections","Spatial Data Management","Points of interest"]}}throw new ly(a)}console.log(`hitlResponse.payload: ${r.payload}`);let s=r.payload;if(!n.template||!n.useCase){if(s==="No")return{outputMessage:"Okay, I've cancelled solution builder.",ticket:null};if(s==="Field inspections"||s==="Spatial Data Management"||s==="Points of interest")return{outputMessage:`Use ${s} template to create a new solution.`,ticket:{template:s,useCase:n.useCase}}}return e},h7=async(e,t)=>{await Qi({text:"persisting template and use case"},t);let n=e.ticket;if(!n)return{outputMessage:"I couldn't start the solution builder.Please let me know what you would like to do."};try{console.log("sending trace"),await Qi({text:"Template and use case set."},t)}catch(r){throw new Error(`Failed to save Builder request: ${r.message}`)}return{outputMessage:["Thanks, I\u2019ve logged your Builder request:","",`- template: ${n.template}`,`- useCase: ${n.useCase}`].join(`
|
|
359
|
+
`)}},f7=()=>new N_(LE).addNode("extractTemplateLLM",d7).addNode("approvalTemplate",p7).addNode("persistTemplate",h7).addEdge(wt,"extractTemplateLLM").addEdge("extractTemplateLLM","approvalTemplate").addConditionalEdges("approvalTemplate",e=>e.ticket?.template===""||e.ticket?.useCase===""?"continue":"done",{done:"persistTemplate",continue:"extractTemplateLLM"}).addEdge("persistTemplate",St),m7=await cu(ME,"solutions_builder_description"),Lo={id:"solutionBuilder",name:"Solution Builder Agent",description:m7,createGraph:f7,workspace:LE},g7=Object.assign({"./prompts/explorer-prompts.md":()=>import("./GV3BOKA2.js").then(e=>e.default),"./prompts/solutions_explorer_description.md":()=>import("./NNOZ6KRO.js").then(e=>e.default)});function y7(e,t){if(t.startsWith(e))return t.slice(e.length);let n=0,r=Math.min(e.length,t.length);for(;n<r&&e[n]===t[n];)n++;return t.slice(n)}function _7(e){return e&&e.helperServices.aiAssistantServices?`${e.helperServices.aiAssistantServices.url}/skills/doc_ai_assistant/chat`:null}var v7=e=>new Promise(t=>setTimeout(t,e)),zE=mt.Root({messages:mt({reducer:Ra,default:()=>[]}),outputMessage:mt({default:()=>"",reducer:(e,t)=>typeof t!="string"||t.length===0?e:e+t}),_lastFullOutput:mt({default:()=>"",reducer:(e,t)=>typeof t!="string"?e:t}),solutionResponse:mt({reducer:(e,t)=>t??null,default:()=>null}),documentSkillUrl:mt({reducer:(e,t)=>t??null,default:()=>null})}),w7=()=>new N_(zE).addNode("initializeAgent",k7).addNode("askSolutionsQuestions",b7).addEdge(wt,"initializeAgent").addEdge("initializeAgent","askSolutionsQuestions").addConditionalEdges("askSolutionsQuestions",e=>e.solutionResponse?.hasMore===!1?"done":"continue",{done:St,continue:"askSolutionsQuestions"}),b7=async(e,t)=>{t&&(t.recursionLimit=100),e.solutionResponse?.conversationId||await Qi({text:"Calling the documentation assistant"},t);let n={message:e.messages[e.messages.length-1].content,conversationId:t?.configurable?.context?.convoId,context:{kind:"DocAIAssistantRequest",filters:{persona:{persona:"solutions"}}}};e.solutionResponse?.conversationId&&e.solutionResponse.hasMore&&(n={conversationId:e.solutionResponse.conversationId,ackSequenceNumber:e.solutionResponse.ackSequenceNumber,inquiryId:e.solutionResponse.inquiryId}),e.solutionResponse?.conversationId&&e.solutionResponse.hasMore&&await v7(1500);let r=e.documentSkillUrl,s=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",token:t?.configurable?.context?.token},body:JSON.stringify(n)});if(!s.ok)throw new Error(`HTTP ${s.status} calling ${r}`);let a=await s.json();t&&t.configurable&&(t.configurable.context.convoId=a.conversationId);let i={message:a.message,conversationId:a.conversationId,hasMore:a.hasMore,ackSequenceNumber:a.sequenceNumber,inquiryId:a.inquiryId},o=a.context&&a.context.results?a.context.results[0].reply??"":"";o!==""&&a.context&&a.context.results&&a.context.results[0].followupQuestions&&t?.configurable?.context?.updateSuggestedPrompts&&t.configurable.context.updateSuggestedPrompts(a.context.results[0].followupQuestions);let c=e._lastFullOutput??"",u=o,l=y7(c,u);return a.context&&a.context.results&&a.context.results[0].status.currentStatusMessage&&await Qi({text:a.context.results[0].status.currentStatusMessage},t),{outputMessage:l,_lastFullOutput:u,solutionResponse:i}},k7=async(e,t)=>{let n=null;return e.documentSkillUrl===null&&t?.configurable?.context?.portal&&(n=_7(t.configurable.context.portal)),{documentSkillUrl:n}},x7=await cu(g7,"solutions_explorer_description"),O7={id:"solutionsExplorerAgent",name:"Solutions Explorer Agent",description:x7,createGraph:w7,workspace:zE},S7="https://links.esri.com/solutions/agol-organizational-account",T7="https://links.esri.com/solutions/configure-assistants",iy=class extends d0{constructor(){super(),this.open=!1,this.userFirstName="",this._conversationId=void 0,this._orgSettings={aiAssistantsEnabled:!1,blockBetaApps:!0,colocateCompute:!1},this._suggestedPrompts=[],this._hasInteracted=!1,this._translations=f0({name:"arcgis-solutions-assistant",blocking:!0}),this._assistantRef=u0(),this._configContextConsumer=m0({context:g0,subscribe:!0,callback:t=>{t?.userSession&&!this.userFirstName&&this._loadUserFirstName(),t?.authentication?.PortalSubset?.orgSettings&&(this._orgSettings=t?.authentication?.PortalSubset?.orgSettings)}}),this.closeAssistant=a0(),this._handleSignIn=()=>{this._configContextConsumer.value?.authentication?.signIn("aiOpen")},this._checkURLOpenParameter=()=>{this.open=this._configContextConsumer.value?.authentication?.SignInParam==="aiOpen"||this.open}}static{this.properties={open:5,userFirstName:1,_conversationId:16,_orgSettings:16,_suggestedPrompts:16,_hasInteracted:16,_translations:16}}static{this.styles=BE}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}loaded(){this._checkURLOpenParameter()}load(){this._configContextConsumer.value?.portalURL&&(DE.portalUrl=this._configContextConsumer.value.portalURL)}firstUpdated(t){this._loadUserFirstName()}willUpdate(t){this._configContextConsumer.value?.userSession?.token&&this._configContextConsumer.value?.authentication?.CanUseAI}_renderNoSign(){return co`<calcite-notice open scale=m icon=effects kind=info><div slot=message>${this._translations.signInMessage}</div><calcite-link @click=${this._handleSignIn} slot=link title=${this._translations.signInMessage??p0} class="padding-top-10">${this._translations.signIn}</calcite-link></calcite-notice>`}_renderNoPermission(){return co`<calcite-notice open scale=m icon=effects kind=info><div slot=title>${this._translations.noPermissionTitle}</div><div slot=message class="padding-top-10">${v0(this._translations.noPermissionMessage.replace("{{orgUrl}}",S7).replace("{{configAI}}",T7))}</div></calcite-notice>`}render(){let t=[];return this._suggestedPrompts.length>0?t=this._suggestedPrompts:this._hasInteracted||(t=[...Object.values(this._translations.defaultFollowUpQuestions)],t.push("I want to build my own solution.")),co`<calcite-dialog class="chat-panel" .open=${this.open} .heading=${this._translations.solutionAssistantTitle} placement=bottom-start @calciteDialogClose=${()=>{this.closeAssistant.emit(!0),this.open=!1}}>${this._configContextConsumer.value?.userSession?.token?this._configContextConsumer.value?.authentication?.CanUseAI?co`<calcite-button appearance=transparent class="icon-color-background" id=newChatButton icon-end=speech-bubble-plus kind=neutral label="New conversation" @click=${()=>{this._conversationId=void 0,this._suggestedPrompts=[],this._hasInteracted=!1,this._assistantRef.value?.clearChatHistory()}} scale=l slot=header-actions-end></calcite-button><calcite-tooltip placement=bottom reference-element=newChatButton><span>${this._translations.tooltips.newConversation}</span></calcite-tooltip><arcgis-assistant reference-element copy-enabled feedback-enabled heading description .suggestedPrompts=${t} @arcgisSubmit=${n=>{console.log("arcgis submit: ",n.detail),this._hasInteracted=!0;let r=Date.now(),s=_0(r),a=n.detail||"Unknown";this._telemetry?.logEvent({category:y0.ASSISTANT,action:"Chat",dimensions:[a],metrics:[s]})}} @arcgisFeedback=${n=>{n.detail}} ${l0(this._assistantRef)}><arcgis-assistant-agent .agent=${O7} .context=${{token:this._configContextConsumer.value?.userSession?.token,convoId:this._conversationId,portal:this._configContextConsumer.value?.authentication.Portal,assistantRef:this._assistantRef,updateSuggestedPrompts:n=>{this._suggestedPrompts=n}}}></arcgis-assistant-agent><arcgis-assistant-agent .agent=${l7} .context=${{translations:this._translations,clearSuggestedPrompts:()=>{this._suggestedPrompts=[]}}}></arcgis-assistant-agent><arcgis-assistant-agent .agent=${Lo}></arcgis-assistant-agent></arcgis-assistant><div slot=footer class="width-100"><div class="disclaimer-div padding-top-10" slot=footer><calcite-icon icon=information scale=s></calcite-icon>${this._translations.disclaimerMessage}<a href=https://links.esri.com/solutions/security-concern target=_blank>${this._translations.reportConcern}</a></div></div>`:this._renderNoPermission():this._renderNoSign()}</calcite-dialog>`}async _loadUserFirstName(){try{let t=await this._configContextConsumer.value?.userSession?.getUser();if(t?.fullName){let n=t.fullName.split(" ")[0];this.userFirstName=n}}catch{}}};h0("arcgis-solutions-assistant",iy);return iy},"config","identity/IdentityManager","portal/Portal","core/reactiveUtils","layers/FeatureLayer","request",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"./FLLZBDVI.js";import{u as e}from"./F2JKSZOE.js";import"./QPIMTXPL.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./WJIM3ZFB.js"),"_translations:,open,userFirstName"],"buffer-tools":[()=>import("./OUHPCCIT.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./RP36BC5U.js"),"_translations:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapView:,selectedFeaturesIds:,selectingFeatureFromMap,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./EPQ6J23O.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./GSF5ZZMH.js"),"_translations:,aiImageExtraction:,allowMultipleCreation,appName,customizeSubmit,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("./Z2IT4SME.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./XFKZOLUD.js"),"_translations:,appLayout,appProxies,basemapConfig:,coverPageEnabled,customInfoText,defaultAppLayout,defaultCenter,defaultGlobalId,defaultLayer,defaultLevel,defaultOid,defaultWebmap,enableAutoRefresh,enableBasemap,enableColumnReorder,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("./E5GNE67Z.js"),"_translations:,aiImageExtraction:,center,commentButtonText,commentSubmittedMessage,defaultWebmap,description,enableAnonymousAccess,enableAnonymousComments,enableComments,enableHome,enableLogin,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,sortOption,submitNewReportsMessage,theme,zoomToScale;updateLayerExpressionsT9n"],"deduct-calculator":[()=>import("./L6QPBIO3.js")],"delete-button":[()=>import("./Q2IHGYKB.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./FEMACR5Y.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./FRE445LD.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./CUY7MQY5.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./QSUXQICI.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./AXMEIZY7.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./GBTCFOFN.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,position,showCloseBtn;back,getSelectedFeature,next,refresh,toggleListView,updateCurrentGraphic"],"layer-list":[()=>import("./TOU5OHUQ.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./RQ2LHC5I.js"),"layerListWidget:,mapView:,visibilityIcon"],"layer-table":[()=>import("./GXQYQYVG.js"),"_translations:,appLayout,defaultGlobalId:,defaultLayerId,defaultOid:,enableAutoRefresh,enableColumnReorder,enableCSV,enableInlineEdit,enableShare,enableTableAutosave,featureSelectionMode,honorMapFieldSettings,isMobile,mapHidden,mapInfo:,mapView:,selectedIds:,selectedRelatedIds:,shareIncludeEmbed,shareIncludeSocial,showNewestFirst,showOnlyUpdatableLayers,zoomAndScrollToSelected,zoomToScale;closeFilter,filterReset,filterUpdate,refresh,setColumnOrder,validateActiveEdits,validateTableUpdate"],"map-basemap-gallery":[()=>import("./WQTF5JT3.js"),"basemapConfig:,basemapWidget:,mapView:"],"map-card":[()=>import("./6RY4B7V2.js"),"_translations:,appLayout,appProxies,basemapConfig:,defaultLayerId,defaultWebmapId,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableShare,enableSingleExpand,featureSelectionMode,hide,isMapLayout,isMobile,mapInfo:,mapInfos:,mapToolsOrder:,mapView:,mapWidgetsIndex,mapWidgetsPosition,mapWidgetsSize,mobileMapWidgetsPosition,mobileToolsOrder:,selectedFeaturesIds:,selectedLayer:,shareIncludeEmbed,shareIncludeSocial,showOnlyUpdatableLayers,stackTools,theme,visibilityIcon,zoomToolsSize,zoomToScale;resetFilter,updateFilterState,updateLayer"],"map-draw-tools":[()=>import("./ZBRNLRN2.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./IUFEMLQM.js"),"enabled,floorFilterWidget:,mapView:"],"map-fullscreen":[()=>import("./PWAT4NDG.js"),"fullscreenWidget:,mapView:"],"map-layer-picker":[()=>import("./G5YR3YZQ.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("./MMQLDIE7.js"),"legendWidget:,mapView:"],"map-picker":[()=>import("./FLQFNPOP.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./UNA43DT6.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchConfiguration:,searchTerm,searchWidget:"],"map-select-tools":[()=>import("./CS4IGHMC.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("./K2OB67JG.js"),"_translations:,basemapConfig:,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("./THSRTNBE.js")],"pdf-download":[()=>import("./O4JG6O2G.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./4652XKVL.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("./F2YGRNTN.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./ODZNJZG5.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-configure-titles":[()=>import("./ZJZBSHOM.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./R33D5PLS.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./SLDSMXJ5.js"),"_translations:,card:,debugFailDeployment,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./4YJEQSFO.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./M7GCQN63.js"),"_translations:,card:,cardRef,diagramKey,open,templateInfos:"],"solution-deploying-dialog":[()=>import("./XSNGR44R.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./E5VUML6C.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./QOW7H7WZ.js"),"_translations:,card:"],"solution-item-accordion":[()=>import("./NFRTFOHF.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./JSI6JODX.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./RVKS24LF.js"),"isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./G4FOQX6X.js"),"_translations:,description,heading,headingEn,icon,meridianIcon,sectionHeadingEn,url"],"solution-snapshot-gallery":[()=>import("./2TDD4AWX.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./BUN734I7.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("./4ANWYTKX.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./JMDRBVRT.js"),"_translations:,sortType;searchSolutions,setSearchOptions"],"solutions-all-shell":[()=>import("./GJ6WYTEI.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./4KZHKPT6.js"),"_translations:,appConfig,initTab,initTitleOrId,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./RBVTHO3G.js"),"_translations:,appConfig,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-panel":[()=>import("./GLRPUU2V.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./CY4C4VZP.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./IR6AJOBB.js"),"_translations:,hideIndustryFilter,isAIDialogOpen,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./MDFVVTRI.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./AQX4LQLD.js"),"_translations:"],"solutions-searchsort-toolbar":[()=>import("./DBNF3MJK.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-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-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"./FLLZBDVI.js";import{u as e}from"./F2JKSZOE.js";import"./QPIMTXPL.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./RGE55QV4.js"),"_translations:,open,userFirstName"],"buffer-tools":[()=>import("./OUHPCCIT.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./RP36BC5U.js"),"_translations:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapView:,selectedFeaturesIds:,selectingFeatureFromMap,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./EPQ6J23O.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./GSF5ZZMH.js"),"_translations:,aiImageExtraction:,allowMultipleCreation,appName,customizeSubmit,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("./Z2IT4SME.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./XFKZOLUD.js"),"_translations:,appLayout,appProxies,basemapConfig:,coverPageEnabled,customInfoText,defaultAppLayout,defaultCenter,defaultGlobalId,defaultLayer,defaultLevel,defaultOid,defaultWebmap,enableAutoRefresh,enableBasemap,enableColumnReorder,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("./E5GNE67Z.js"),"_translations:,aiImageExtraction:,center,commentButtonText,commentSubmittedMessage,defaultWebmap,description,enableAnonymousAccess,enableAnonymousComments,enableComments,enableHome,enableLogin,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,sortOption,submitNewReportsMessage,theme,zoomToScale;updateLayerExpressionsT9n"],"deduct-calculator":[()=>import("./L6QPBIO3.js")],"delete-button":[()=>import("./Q2IHGYKB.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./FEMACR5Y.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./FRE445LD.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./CUY7MQY5.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./QSUXQICI.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./AXMEIZY7.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./GBTCFOFN.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,position,showCloseBtn;back,getSelectedFeature,next,refresh,toggleListView,updateCurrentGraphic"],"layer-list":[()=>import("./TOU5OHUQ.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./RQ2LHC5I.js"),"layerListWidget:,mapView:,visibilityIcon"],"layer-table":[()=>import("./GXQYQYVG.js"),"_translations:,appLayout,defaultGlobalId:,defaultLayerId,defaultOid:,enableAutoRefresh,enableColumnReorder,enableCSV,enableInlineEdit,enableShare,enableTableAutosave,featureSelectionMode,honorMapFieldSettings,isMobile,mapHidden,mapInfo:,mapView:,selectedIds:,selectedRelatedIds:,shareIncludeEmbed,shareIncludeSocial,showNewestFirst,showOnlyUpdatableLayers,zoomAndScrollToSelected,zoomToScale;closeFilter,filterReset,filterUpdate,refresh,setColumnOrder,validateActiveEdits,validateTableUpdate"],"map-basemap-gallery":[()=>import("./WQTF5JT3.js"),"basemapConfig:,basemapWidget:,mapView:"],"map-card":[()=>import("./6RY4B7V2.js"),"_translations:,appLayout,appProxies,basemapConfig:,defaultLayerId,defaultWebmapId,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableShare,enableSingleExpand,featureSelectionMode,hide,isMapLayout,isMobile,mapInfo:,mapInfos:,mapToolsOrder:,mapView:,mapWidgetsIndex,mapWidgetsPosition,mapWidgetsSize,mobileMapWidgetsPosition,mobileToolsOrder:,selectedFeaturesIds:,selectedLayer:,shareIncludeEmbed,shareIncludeSocial,showOnlyUpdatableLayers,stackTools,theme,visibilityIcon,zoomToolsSize,zoomToScale;resetFilter,updateFilterState,updateLayer"],"map-draw-tools":[()=>import("./ZBRNLRN2.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./IUFEMLQM.js"),"enabled,floorFilterWidget:,mapView:"],"map-fullscreen":[()=>import("./PWAT4NDG.js"),"fullscreenWidget:,mapView:"],"map-layer-picker":[()=>import("./G5YR3YZQ.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("./MMQLDIE7.js"),"legendWidget:,mapView:"],"map-picker":[()=>import("./FLQFNPOP.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./UNA43DT6.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchConfiguration:,searchTerm,searchWidget:"],"map-select-tools":[()=>import("./CS4IGHMC.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("./K2OB67JG.js"),"_translations:,basemapConfig:,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("./THSRTNBE.js")],"pdf-download":[()=>import("./O4JG6O2G.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./4652XKVL.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("./F2YGRNTN.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./ODZNJZG5.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-configure-titles":[()=>import("./ZJZBSHOM.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./R33D5PLS.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./SLDSMXJ5.js"),"_translations:,card:,debugFailDeployment,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./4YJEQSFO.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./M7GCQN63.js"),"_translations:,card:,cardRef,diagramKey,open,templateInfos:"],"solution-deploying-dialog":[()=>import("./XSNGR44R.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./E5VUML6C.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./QOW7H7WZ.js"),"_translations:,card:"],"solution-item-accordion":[()=>import("./NFRTFOHF.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./JSI6JODX.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./RVKS24LF.js"),"isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./G4FOQX6X.js"),"_translations:,description,heading,headingEn,icon,meridianIcon,sectionHeadingEn,url"],"solution-snapshot-gallery":[()=>import("./2TDD4AWX.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./BUN734I7.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("./4ANWYTKX.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./JMDRBVRT.js"),"_translations:,sortType;searchSolutions,setSearchOptions"],"solutions-all-shell":[()=>import("./GJ6WYTEI.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./4KZHKPT6.js"),"_translations:,appConfig,initTab,initTitleOrId,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./RBVTHO3G.js"),"_translations:,appConfig,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-panel":[()=>import("./GLRPUU2V.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./CY4C4VZP.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./IR6AJOBB.js"),"_translations:,hideIndustryFilter,isAIDialogOpen,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./MDFVVTRI.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./AQX4LQLD.js"),"_translations:"],"solutions-searchsort-toolbar":[()=>import("./DBNF3MJK.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-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-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)
|
|
@@ -49045,8 +49045,17 @@ ${Object.keys(e).join(`
|
|
|
49045
49045
|
function Yq(e) {
|
|
49046
49046
|
return e?.configurable?.context?.translations;
|
|
49047
49047
|
}
|
|
49048
|
-
const
|
|
49049
|
-
|
|
49048
|
+
const Qq = (e) => {
|
|
49049
|
+
if (e instanceof wn) return !0;
|
|
49050
|
+
if (e && typeof e == "object" && "_getType" in e && typeof e._getType == "function")
|
|
49051
|
+
try {
|
|
49052
|
+
return e._getType() === "human";
|
|
49053
|
+
} catch {
|
|
49054
|
+
return !1;
|
|
49055
|
+
}
|
|
49056
|
+
return !1;
|
|
49057
|
+
}, XI = (e, t = 3) => {
|
|
49058
|
+
const n = e.map((s, a) => Qq(s) ? a : -1).filter((s) => s !== -1);
|
|
49050
49059
|
if (n.length === 0)
|
|
49051
49060
|
return [];
|
|
49052
49061
|
const r = n.length > t ? n[n.length - t] : n[0];
|
|
@@ -49069,24 +49078,24 @@ const XI = (e, t = 3) => {
|
|
|
49069
49078
|
${t}` : t : e,
|
|
49070
49079
|
default: () => ""
|
|
49071
49080
|
})
|
|
49072
|
-
}),
|
|
49081
|
+
}), eH = async (e, t) => {
|
|
49073
49082
|
const n = Yq(t);
|
|
49074
49083
|
await $i(
|
|
49075
49084
|
{ text: n?.executingSolutionsAssistantAgent || "Preparing a response..." },
|
|
49076
49085
|
t
|
|
49077
49086
|
);
|
|
49078
|
-
const r = await Lc(YI, "solutions_assistant_prompts"), s = e.messages.slice(-10)
|
|
49079
|
-
return { outputMessage: await Zq({
|
|
49087
|
+
const r = await Lc(YI, "solutions_assistant_prompts"), s = e.messages.slice(-10), a = await Zq({
|
|
49080
49088
|
promptText: r,
|
|
49081
49089
|
modelTier: "default",
|
|
49082
49090
|
temperature: 0.7,
|
|
49083
49091
|
messages: XI(s)
|
|
49084
|
-
})
|
|
49085
|
-
|
|
49092
|
+
}), i = t?.configurable?.context?.clearSuggestedPrompts;
|
|
49093
|
+
return i && i(), { outputMessage: a };
|
|
49094
|
+
}, tH = () => new p_(QI).addNode("assistantLLM", eH).addEdge(bt, "assistantLLM").addEdge("assistantLLM", Et), nH = await Lc(YI, "solutions_assistant_description"), rH = {
|
|
49086
49095
|
id: "solutionsAssistant",
|
|
49087
49096
|
name: "Solutions Assistant Agent",
|
|
49088
|
-
description:
|
|
49089
|
-
createGraph:
|
|
49097
|
+
description: nH,
|
|
49098
|
+
createGraph: tH,
|
|
49090
49099
|
workspace: QI
|
|
49091
49100
|
}, e1 = /* @__PURE__ */ Object.assign({
|
|
49092
49101
|
"./prompts/solutions_builder_description.md": () => import("../../chunks/solutions_builder_description.js").then((e) => e.default),
|
|
@@ -49112,7 +49121,7 @@ ${t}` : t : e,
|
|
|
49112
49121
|
})
|
|
49113
49122
|
});
|
|
49114
49123
|
let $0 = await Lc(e1, "solutions_builder_prompts");
|
|
49115
|
-
const
|
|
49124
|
+
const sH = async (e, t) => {
|
|
49116
49125
|
await $i(
|
|
49117
49126
|
{ text: "Template: extracting template type and use case..." },
|
|
49118
49127
|
t
|
|
@@ -49133,7 +49142,7 @@ const rH = async (e, t) => {
|
|
|
49133
49142
|
useCase: a
|
|
49134
49143
|
}
|
|
49135
49144
|
};
|
|
49136
|
-
},
|
|
49145
|
+
}, aH = (e, t) => {
|
|
49137
49146
|
const n = e.ticket;
|
|
49138
49147
|
if (!n)
|
|
49139
49148
|
return e;
|
|
@@ -49217,7 +49226,7 @@ const rH = async (e, t) => {
|
|
|
49217
49226
|
};
|
|
49218
49227
|
}
|
|
49219
49228
|
return e;
|
|
49220
|
-
},
|
|
49229
|
+
}, iH = async (e, t) => {
|
|
49221
49230
|
await $i({ text: "persisting template and use case" }, t);
|
|
49222
49231
|
const n = e.ticket;
|
|
49223
49232
|
if (!n)
|
|
@@ -49240,34 +49249,34 @@ const rH = async (e, t) => {
|
|
|
49240
49249
|
].join(`
|
|
49241
49250
|
`)
|
|
49242
49251
|
};
|
|
49243
|
-
},
|
|
49252
|
+
}, oH = () => new p_(t1).addNode("extractTemplateLLM", sH).addNode("approvalTemplate", aH).addNode("persistTemplate", iH).addEdge(bt, "extractTemplateLLM").addEdge("extractTemplateLLM", "approvalTemplate").addConditionalEdges(
|
|
49244
49253
|
"approvalTemplate",
|
|
49245
49254
|
(t) => t.ticket?.template === "" || t.ticket?.useCase === "" ? "continue" : "done",
|
|
49246
49255
|
{
|
|
49247
49256
|
done: "persistTemplate",
|
|
49248
49257
|
continue: "extractTemplateLLM"
|
|
49249
49258
|
}
|
|
49250
|
-
).addEdge("persistTemplate", Et),
|
|
49259
|
+
).addEdge("persistTemplate", Et), cH = await Lc(e1, "solutions_builder_description"), mo = {
|
|
49251
49260
|
id: "solutionBuilder",
|
|
49252
49261
|
name: "Solution Builder Agent",
|
|
49253
|
-
description:
|
|
49254
|
-
createGraph:
|
|
49262
|
+
description: cH,
|
|
49263
|
+
createGraph: oH,
|
|
49255
49264
|
workspace: t1
|
|
49256
|
-
},
|
|
49265
|
+
}, uH = /* @__PURE__ */ Object.assign({
|
|
49257
49266
|
"./prompts/explorer-prompts.md": () => import("../../chunks/explorer-prompts.js").then((e) => e.default),
|
|
49258
49267
|
"./prompts/solutions_explorer_description.md": () => import("../../chunks/solutions_explorer_description.js").then((e) => e.default)
|
|
49259
49268
|
});
|
|
49260
|
-
function
|
|
49269
|
+
function lH(e, t) {
|
|
49261
49270
|
if (t.startsWith(e)) return t.slice(e.length);
|
|
49262
49271
|
let n = 0;
|
|
49263
49272
|
const r = Math.min(e.length, t.length);
|
|
49264
49273
|
for (; n < r && e[n] === t[n]; ) n++;
|
|
49265
49274
|
return t.slice(n);
|
|
49266
49275
|
}
|
|
49267
|
-
function
|
|
49276
|
+
function dH(e) {
|
|
49268
49277
|
return e && e.helperServices.aiAssistantServices ? `${e.helperServices.aiAssistantServices.url}/skills/doc_ai_assistant/chat` : null;
|
|
49269
49278
|
}
|
|
49270
|
-
const
|
|
49279
|
+
const fH = (e) => new Promise((t) => setTimeout(t, e)), n1 = gt.Root({
|
|
49271
49280
|
messages: gt({
|
|
49272
49281
|
reducer: xa,
|
|
49273
49282
|
default: () => []
|
|
@@ -49293,14 +49302,14 @@ const dH = (e) => new Promise((t) => setTimeout(t, e)), n1 = gt.Root({
|
|
|
49293
49302
|
reducer: (e, t) => t ?? null,
|
|
49294
49303
|
default: () => null
|
|
49295
49304
|
})
|
|
49296
|
-
}),
|
|
49305
|
+
}), hH = () => new p_(n1).addNode("initializeAgent", mH).addNode("askSolutionsQuestions", pH).addEdge(bt, "initializeAgent").addEdge("initializeAgent", "askSolutionsQuestions").addConditionalEdges(
|
|
49297
49306
|
"askSolutionsQuestions",
|
|
49298
49307
|
(t) => t.solutionResponse?.hasMore === !1 ? "done" : "continue",
|
|
49299
49308
|
{
|
|
49300
49309
|
done: Et,
|
|
49301
49310
|
continue: "askSolutionsQuestions"
|
|
49302
49311
|
}
|
|
49303
|
-
),
|
|
49312
|
+
), pH = async (e, t) => {
|
|
49304
49313
|
t && (t.recursionLimit = 100), e.solutionResponse?.conversationId || await $i(
|
|
49305
49314
|
{ text: "Calling the documentation assistant" },
|
|
49306
49315
|
t
|
|
@@ -49317,7 +49326,7 @@ const dH = (e) => new Promise((t) => setTimeout(t, e)), n1 = gt.Root({
|
|
|
49317
49326
|
conversationId: e.solutionResponse.conversationId,
|
|
49318
49327
|
ackSequenceNumber: e.solutionResponse.ackSequenceNumber,
|
|
49319
49328
|
inquiryId: e.solutionResponse.inquiryId
|
|
49320
|
-
}), e.solutionResponse?.conversationId && e.solutionResponse.hasMore && await
|
|
49329
|
+
}), e.solutionResponse?.conversationId && e.solutionResponse.hasMore && await fH(1500);
|
|
49321
49330
|
const r = e.documentSkillUrl, s = await fetch(r, {
|
|
49322
49331
|
method: "POST",
|
|
49323
49332
|
headers: {
|
|
@@ -49338,7 +49347,7 @@ const dH = (e) => new Promise((t) => setTimeout(t, e)), n1 = gt.Root({
|
|
|
49338
49347
|
inquiryId: a.inquiryId
|
|
49339
49348
|
}, o = a.context && a.context.results ? a.context.results[0].reply ?? "" : "";
|
|
49340
49349
|
o !== "" && a.context && a.context.results && a.context.results[0].followupQuestions && t?.configurable?.context?.updateSuggestedPrompts && t.configurable.context.updateSuggestedPrompts(a.context.results[0].followupQuestions);
|
|
49341
|
-
const c = e._lastFullOutput ?? "", u = o, l =
|
|
49350
|
+
const c = e._lastFullOutput ?? "", u = o, l = lH(c, u);
|
|
49342
49351
|
return a.context && a.context.results && a.context.results[0].status.currentStatusMessage && await $i(
|
|
49343
49352
|
{ text: a.context.results[0].status.currentStatusMessage },
|
|
49344
49353
|
t
|
|
@@ -49347,25 +49356,25 @@ const dH = (e) => new Promise((t) => setTimeout(t, e)), n1 = gt.Root({
|
|
|
49347
49356
|
_lastFullOutput: u,
|
|
49348
49357
|
solutionResponse: i
|
|
49349
49358
|
};
|
|
49350
|
-
},
|
|
49359
|
+
}, mH = async (e, t) => {
|
|
49351
49360
|
let n = null;
|
|
49352
|
-
return e.documentSkillUrl === null && t?.configurable?.context?.portal && (n =
|
|
49361
|
+
return e.documentSkillUrl === null && t?.configurable?.context?.portal && (n = dH(t.configurable.context.portal)), {
|
|
49353
49362
|
documentSkillUrl: n
|
|
49354
49363
|
};
|
|
49355
|
-
},
|
|
49364
|
+
}, gH = await Lc(uH, "solutions_explorer_description"), _H = {
|
|
49356
49365
|
id: "solutionsExplorerAgent",
|
|
49357
49366
|
name: "Solutions Explorer Agent",
|
|
49358
|
-
description:
|
|
49359
|
-
createGraph:
|
|
49367
|
+
description: gH,
|
|
49368
|
+
createGraph: hH,
|
|
49360
49369
|
workspace: n1
|
|
49361
|
-
},
|
|
49362
|
-
class
|
|
49370
|
+
}, yH = "https://links.esri.com/solutions/agol-organizational-account", wH = "https://links.esri.com/solutions/configure-assistants";
|
|
49371
|
+
class vH extends a1 {
|
|
49363
49372
|
constructor() {
|
|
49364
49373
|
super(), this.open = !1, this.userFirstName = "", this._conversationId = void 0, this._orgSettings = {
|
|
49365
49374
|
aiAssistantsEnabled: !1,
|
|
49366
49375
|
blockBetaApps: !0,
|
|
49367
49376
|
colocateCompute: !1
|
|
49368
|
-
}, this._suggestedPrompts = [], this._translations = s1({ name: "arcgis-solutions-assistant", blocking: !0 }), this._assistantRef = m1(), this._configContextConsumer = l1({
|
|
49377
|
+
}, this._suggestedPrompts = [], this._hasInteracted = !1, this._translations = s1({ name: "arcgis-solutions-assistant", blocking: !0 }), this._assistantRef = m1(), this._configContextConsumer = l1({
|
|
49369
49378
|
context: d1,
|
|
49370
49379
|
subscribe: !0,
|
|
49371
49380
|
callback: (t) => {
|
|
@@ -49378,7 +49387,7 @@ class wH extends a1 {
|
|
|
49378
49387
|
};
|
|
49379
49388
|
}
|
|
49380
49389
|
static {
|
|
49381
|
-
this.properties = { open: 5, userFirstName: 1, _conversationId: 16, _orgSettings: 16, _suggestedPrompts: 16, _translations: 16 };
|
|
49390
|
+
this.properties = { open: 5, userFirstName: 1, _conversationId: 16, _orgSettings: 16, _suggestedPrompts: 16, _hasInteracted: 16, _translations: 16 };
|
|
49382
49391
|
}
|
|
49383
49392
|
static {
|
|
49384
49393
|
this.styles = y1;
|
|
@@ -49402,16 +49411,16 @@ class wH extends a1 {
|
|
|
49402
49411
|
return Dc`<calcite-notice open scale=m icon=effects kind=info><div slot=message>${this._translations.signInMessage}</div><calcite-link @click=${this._handleSignIn} slot=link title=${this._translations.signInMessage ?? o1} class="padding-top-10">${this._translations.signIn}</calcite-link></calcite-notice>`;
|
|
49403
49412
|
}
|
|
49404
49413
|
_renderNoPermission() {
|
|
49405
|
-
return Dc`<calcite-notice open scale=m icon=effects kind=info><div slot=title>${this._translations.noPermissionTitle}</div><div slot=message class="padding-top-10">${u1(this._translations.noPermissionMessage.replace("{{orgUrl}}",
|
|
49414
|
+
return Dc`<calcite-notice open scale=m icon=effects kind=info><div slot=title>${this._translations.noPermissionTitle}</div><div slot=message class="padding-top-10">${u1(this._translations.noPermissionMessage.replace("{{orgUrl}}", yH).replace("{{configAI}}", wH))}</div></calcite-notice>`;
|
|
49406
49415
|
}
|
|
49407
49416
|
render() {
|
|
49408
|
-
let t =
|
|
49409
|
-
return this._suggestedPrompts.length
|
|
49417
|
+
let t = [];
|
|
49418
|
+
return this._suggestedPrompts.length > 0 ? t = this._suggestedPrompts : this._hasInteracted || (t = [...Object.values(this._translations.defaultFollowUpQuestions)], t.push("I want to build my own solution.")), Dc`<calcite-dialog class="chat-panel" .open=${this.open} .heading=${this._translations.solutionAssistantTitle} placement=bottom-start @calciteDialogClose=${() => {
|
|
49410
49419
|
this.closeAssistant.emit(!0), this.open = !1;
|
|
49411
49420
|
}}>${this._configContextConsumer.value?.userSession?.token ? this._configContextConsumer.value?.authentication?.CanUseAI ? Dc`<calcite-button appearance=transparent class="icon-color-background" id=newChatButton icon-end=speech-bubble-plus kind=neutral label="New conversation" @click=${() => {
|
|
49412
|
-
this._conversationId = void 0, this._suggestedPrompts = [], this._assistantRef.value?.clearChatHistory();
|
|
49421
|
+
this._conversationId = void 0, this._suggestedPrompts = [], this._hasInteracted = !1, this._assistantRef.value?.clearChatHistory();
|
|
49413
49422
|
}} scale=l slot=header-actions-end></calcite-button><calcite-tooltip placement=bottom reference-element=newChatButton><span>${this._translations.tooltips.newConversation}</span></calcite-tooltip><arcgis-assistant reference-element copy-enabled feedback-enabled heading description .suggestedPrompts=${t} @arcgisSubmit=${(n) => {
|
|
49414
|
-
console.log("arcgis submit: ", n.detail);
|
|
49423
|
+
console.log("arcgis submit: ", n.detail), this._hasInteracted = !0;
|
|
49415
49424
|
const r = Date.now(), s = f1(r), a = n.detail || "Unknown";
|
|
49416
49425
|
this._telemetry?.logEvent({
|
|
49417
49426
|
category: h1.ASSISTANT,
|
|
@@ -49421,7 +49430,7 @@ class wH extends a1 {
|
|
|
49421
49430
|
});
|
|
49422
49431
|
}} @arcgisFeedback=${(n) => {
|
|
49423
49432
|
n.detail;
|
|
49424
|
-
}} ${g1(this._assistantRef)}><arcgis-assistant-agent .agent=${
|
|
49433
|
+
}} ${g1(this._assistantRef)}><arcgis-assistant-agent .agent=${_H} .context=${{
|
|
49425
49434
|
token: this._configContextConsumer.value?.userSession?.token,
|
|
49426
49435
|
convoId: this._conversationId,
|
|
49427
49436
|
portal: this._configContextConsumer.value?.authentication.Portal,
|
|
@@ -49429,8 +49438,11 @@ class wH extends a1 {
|
|
|
49429
49438
|
updateSuggestedPrompts: (n) => {
|
|
49430
49439
|
this._suggestedPrompts = n;
|
|
49431
49440
|
}
|
|
49432
|
-
}}></arcgis-assistant-agent><arcgis-assistant-agent .agent=${
|
|
49433
|
-
translations: this._translations
|
|
49441
|
+
}}></arcgis-assistant-agent><arcgis-assistant-agent .agent=${rH} .context=${{
|
|
49442
|
+
translations: this._translations,
|
|
49443
|
+
clearSuggestedPrompts: () => {
|
|
49444
|
+
this._suggestedPrompts = [];
|
|
49445
|
+
}
|
|
49434
49446
|
}}></arcgis-assistant-agent><arcgis-assistant-agent .agent=${mo}></arcgis-assistant-agent></arcgis-assistant><div slot=footer class="width-100"><div class="disclaimer-div padding-top-10" slot=footer><calcite-icon icon=information scale=s></calcite-icon>${this._translations.disclaimerMessage}<a href=https://links.esri.com/solutions/security-concern target=_blank>${this._translations.reportConcern}</a></div></div>` : this._renderNoPermission() : this._renderNoSign()}</calcite-dialog>`;
|
|
49435
49447
|
}
|
|
49436
49448
|
async _loadUserFirstName() {
|
|
@@ -49444,7 +49456,7 @@ class wH extends a1 {
|
|
|
49444
49456
|
}
|
|
49445
49457
|
}
|
|
49446
49458
|
}
|
|
49447
|
-
r1("arcgis-solutions-assistant",
|
|
49459
|
+
r1("arcgis-solutions-assistant", vH);
|
|
49448
49460
|
export {
|
|
49449
|
-
|
|
49461
|
+
vH as ArcgisSolutionsAssistant
|
|
49450
49462
|
};
|