@esri/solutions-components 5.1.15 → 5.1.17
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/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a}from"./QPMXVWMP.js";import{v as e}from"./T3EPRHTT.js";import"./EXBEKVP5.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./6JPXLTNI.js"),"_translations:,builderVisible,hasActiveBuilderDesign,open,userFirstName"],"buffer-tools":[()=>import("./RD7MZ7SN.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./KOIHVAUY.js"),"_translations:,allowedPasteLayerIds:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapComponentId,mapView:,pasteEnabled,selectedFeaturesIds:,selectingFeatureFromMap,showCopyPasteActions,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./BDVFJJR4.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./MECI4R4R.js"),"_translations:,aiImageExtraction:,aiTextExtraction:,allowMultipleCreation,appName,customizeSubmit,enableMessageLocation,enablePhotoLocation,enableSearch,enableSnapping,floorLevel,formElements,isMobile,mapView:,popupEnabled,reportingArea,reportingAreaLayer,reportingAreaMessage,searchConfiguration:,selectedLayerId,showGuidingMsg,showLayerVisibilityMsg,showSketchWidgets,submitNewReportsMessage,updateMapPosition;refresh,showForm,submit"],"create-related-feature":[()=>import("./SYHEO472.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./HW4LYJUR.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("./VCKCRMSD.js"),"_translations:,aiImageExtraction:,aiTextExtraction:,center,commentButtonText,commentSubmittedMessage,defaultWebmap,description,enableAnonymousAccess,enableAnonymousComments,enableComments,enableHome,enableLogin,enableMessageLocation,enableNewReports,enablePhotoLocation,enableSearch,enableSnapping,enableZoom,filterByMapExtent,floorLevel,isMobile,layerExpressions:,layerId,level,loginTitle,mapInfos:,mapView:,objectId,reportButtonText,reportingArea,reportingAreaLayer,reportingAreaMessage,reportingOptions:,reportsHeader,reportSubmittedMessage,searchConfiguration:,showComments,showFeatureSymbol,showFullCommentTitle,showMyReportsOnly,showUserImageInCommentsList,sortFields:,sortOption,submitNewReportsMessage,theme,zoomToScale;updateLayerExpressionsT9n"],"deduct-calculator":[()=>import("./T6F3TWF6.js")],"delete-button":[()=>import("./OQMMSCLX.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./K3ALRIQF.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./LGJMYSGU.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./OZVQRDTO.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./5DMFGBJJ.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./IYZ2PDYK.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./YR6F4HW7.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,featuresReferenceId,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,pasteEnabled,position,showCloseBtn,showCopyPasteActions;back,getSelectedFeature,next,refresh,toggleListView"],"layer-list":[()=>import("./AIUJXRA5.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./5OMXJXRL.js"),"layerListRef:,mapView:,visibilityIcon"],"layer-table":[()=>import("./SV2XM7U2.js"),"_translations:,appLayout,defaultGlobalId:,defaultLayerId,defaultOid:,enableAutoRefresh,enableColumnReorder,enableCSV,enableInlineEdit,enableShare,enableTableAutosave,featureSelectionMode,honorMapFieldSettings,isMobile,layerIds:,mapHidden,mapInfo:,mapView:,pasteEnabled,selectedIds:,selectedRelatedIds:,shareIncludeEmbed,shareIncludeSocial,showCopyPasteActions,showNewestFirst,showOnlyUpdatableLayers,zoomAndScrollToSelected,zoomToScale;closeFilter,filterReset,filterUpdate,refresh,setColumnOrder,validateActiveEdits,validateTableUpdate;isFilterActive"],"map-basemap-gallery":[()=>import("./BOA6VQK6.js"),"basemapConfig:,basemapGalleryRef:,mapView:"],"map-card":[()=>import("./2CIYQPV2.js"),"_translations:,appLayout,appProxies,basemapConfig:,defaultLayerId,defaultWebmapId,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableShare,enableSingleExpand,featureSelectionMode,hide,isMapLayout,isMobile,mapComponentId,mapInfo:,mapInfos:,mapToolsOrder:,mapView:,mapWidgetsIndex,mapWidgetsPosition,mapWidgetsSize,mobileMapWidgetsPosition,mobileToolsOrder:,pasteEnabled,selectedFeaturesIds:,selectedLayer:,shareIncludeEmbed,shareIncludeSocial,showCopyPasteActions,showOnlyUpdatableLayers,stackTools,theme,visibilityIcon,zoomToolsSize,zoomToScale;resetFilter,updateFilterState,updateLayer"],"map-draw-tools":[()=>import("./JXERXJF5.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./L5DQOHD5.js"),"enabled,floorFilterRef:,mapView:"],"map-fullscreen":[()=>import("./AQ2USXUY.js"),"fullscreenRef:,mapView:"],"map-layer-picker":[()=>import("./KJTTBON2.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("./XRQNNWH3.js"),"legendRef:,mapView:"],"map-picker":[()=>import("./2WXIVPKA.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./O62JG2Y6.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchComponent:,searchConfiguration:,searchTerm"],"map-select-tools":[()=>import("./6MQWDLJ6.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("./KF64ALRP.js"),"_translations:,basemapConfig:,configLayerOrderDefined,defaultLayerId,enableBasemap,enabledLayerIds:,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableSingleExpand,isMobile,layout,mapInfo:,mapInfos:,mapView:,mapWidgetsSize,parentComponentHeight,parentComponentWidth,position,searchConfiguration:,selectedFeaturesIds:,selectedLayer:,selectedWebMapId,selectionTools:,showOnlyUpdatableLayers,stackTools,toolOrder:,visibilityIcon,zoomToolsSize"],"pci-calculator":[()=>import("./GWLE7PJQ.js")],"pdf-download":[()=>import("./ABPXUFXN.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./RGOUIRT7.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("./JRUIRTL7.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./COEHM4BJ.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-builder-assistant":[()=>import("./OJH4NUGT.js"),"_translations:,design,readOnlyNotice"],"solution-configure-titles":[()=>import("./2A7FDE6T.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./RI7U6FA5.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./ECJQJ4BY.js"),"_translations:,card:,debugFailDeployment,design:,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./X3YWKGD7.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./VNWIFVKC.js"),"_translations:,card:,cardRef,diagramKey,open,readOnlyNotice,templateInfos:"],"solution-deploying-dialog":[()=>import("./BPHZAC66.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./3JF7PWPA.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./NF77ALHM.js"),"_translations:,card:,readOnlyNotice"],"solution-item-accordion":[()=>import("./BA3J7L5N.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:,usageContext;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./CPWYI2FO.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./5O6E2RIA.js"),"designType,isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./7LP2DUHS.js"),"_translations:,description,heading,headingEn,icon,meridianIcon,sectionHeadingEn,url"],"solution-snapshot-gallery":[()=>import("./F5EJPIW4.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./7SZY3VBD.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("./W6GIBBBE.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./FLPXST7W.js"),"_translations:,sortType;searchSolutions,setSearchOptions;getDisplayedSolutionIds"],"solutions-all-shell":[()=>import("./4ESJPQUS.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./IBSFJBIL.js"),"_translations:,appConfig,initTab,initTitleOrId,loadExampleBuilderData,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./VM2LS6TR.js"),"_translations:,appConfig,assistantOpen,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-list":[()=>import("./VYOCZUVH.js"),"_translations:,hasLinks,listTitle,referenceCards:,results:"],"solutions-deployed-panel":[()=>import("./TRNQ5OTY.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./H3QX6XOJ.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./TTXN5R4E.js"),"_translations:,hideIndustryFilter,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./GEEQWXOZ.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./VWNMKVMJ.js"),"_translations:;scrollToSection"],"solutions-searchsort-toolbar":[()=>import("./DERWSE25.js"),"_translations:,defaultSortType,isOrgSolutions,scope;;changeOwnerFilter,changeSearchFilter,sortChanged"]});o({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-solutions-assistant,buffer-tools,card-manager,consent-manager,create-feature,create-related-feature,crowdsource-manager,crowdsource-reporter,deduct-calculator,delete-button,delete-dialog,edit-card,feature-details,feature-list,field-selection,info-card,layer-list,layer-list-widget,layer-table,map-basemap-gallery,map-card,map-draw-tools,map-floor-filter,map-fullscreen,map-layer-picker,map-legend,map-picker,map-search,map-select-tools,map-tools,pci-calculator,pdf-download,public-notification,refine-selection,selection-tool,solution-builder-assistant,solution-configure-titles,solution-delete-dialog,solution-deploy-dialog,solution-deployed-card,solution-deployed-card-panel,solution-deploying-dialog,solution-details-card,solution-details-panel,solution-item-accordion,solution-item-diagram,solution-item-icon,solution-resource-card,solution-snapshot-gallery,solution-social-share,solution-user-avatar,solutions-all-panel,solutions-all-shell,solutions-deploy-app,solutions-deploy-app-nav,solutions-deployed-list,solutions-deployed-panel,solutions-deployed-shell,solutions-filter-panel,solutions-resources-section,solutions-resources-shell,solutions-searchsort-toolbar){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,a)
|
|
2
|
+
import{a}from"./QPMXVWMP.js";import{v as e}from"./T3EPRHTT.js";import"./EXBEKVP5.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./6JPXLTNI.js"),"_translations:,builderVisible,hasActiveBuilderDesign,open,userFirstName"],"buffer-tools":[()=>import("./RD7MZ7SN.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./KOIHVAUY.js"),"_translations:,allowedPasteLayerIds:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapComponentId,mapView:,pasteEnabled,selectedFeaturesIds:,selectingFeatureFromMap,showCopyPasteActions,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./BDVFJJR4.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./7A6DYEEZ.js"),"_translations:,aiImageExtraction:,aiTextExtraction:,allowMultipleCreation,appName,customizeSubmit,enableMessageLocation,enablePhotoLocation,enableSearch,enableSnapping,floorLevel,formElements,isMobile,mapView:,popupEnabled,reportingArea,reportingAreaLayer,reportingAreaMessage,searchConfiguration:,selectedLayerId,showGuidingMsg,showLayerVisibilityMsg,showSketchWidgets,submitNewReportsMessage,updateMapPosition;refresh,showForm,submit"],"create-related-feature":[()=>import("./SYHEO472.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./HW4LYJUR.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("./VCKCRMSD.js"),"_translations:,aiImageExtraction:,aiTextExtraction:,center,commentButtonText,commentSubmittedMessage,defaultWebmap,description,enableAnonymousAccess,enableAnonymousComments,enableComments,enableHome,enableLogin,enableMessageLocation,enableNewReports,enablePhotoLocation,enableSearch,enableSnapping,enableZoom,filterByMapExtent,floorLevel,isMobile,layerExpressions:,layerId,level,loginTitle,mapInfos:,mapView:,objectId,reportButtonText,reportingArea,reportingAreaLayer,reportingAreaMessage,reportingOptions:,reportsHeader,reportSubmittedMessage,searchConfiguration:,showComments,showFeatureSymbol,showFullCommentTitle,showMyReportsOnly,showUserImageInCommentsList,sortFields:,sortOption,submitNewReportsMessage,theme,zoomToScale;updateLayerExpressionsT9n"],"deduct-calculator":[()=>import("./T6F3TWF6.js")],"delete-button":[()=>import("./OQMMSCLX.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./K3ALRIQF.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./LGJMYSGU.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./OZVQRDTO.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./5DMFGBJJ.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./IYZ2PDYK.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./YR6F4HW7.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,featuresReferenceId,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,pasteEnabled,position,showCloseBtn,showCopyPasteActions;back,getSelectedFeature,next,refresh,toggleListView"],"layer-list":[()=>import("./AIUJXRA5.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./5OMXJXRL.js"),"layerListRef:,mapView:,visibilityIcon"],"layer-table":[()=>import("./SV2XM7U2.js"),"_translations:,appLayout,defaultGlobalId:,defaultLayerId,defaultOid:,enableAutoRefresh,enableColumnReorder,enableCSV,enableInlineEdit,enableShare,enableTableAutosave,featureSelectionMode,honorMapFieldSettings,isMobile,layerIds:,mapHidden,mapInfo:,mapView:,pasteEnabled,selectedIds:,selectedRelatedIds:,shareIncludeEmbed,shareIncludeSocial,showCopyPasteActions,showNewestFirst,showOnlyUpdatableLayers,zoomAndScrollToSelected,zoomToScale;closeFilter,filterReset,filterUpdate,refresh,setColumnOrder,validateActiveEdits,validateTableUpdate;isFilterActive"],"map-basemap-gallery":[()=>import("./BOA6VQK6.js"),"basemapConfig:,basemapGalleryRef:,mapView:"],"map-card":[()=>import("./2CIYQPV2.js"),"_translations:,appLayout,appProxies,basemapConfig:,defaultLayerId,defaultWebmapId,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableShare,enableSingleExpand,featureSelectionMode,hide,isMapLayout,isMobile,mapComponentId,mapInfo:,mapInfos:,mapToolsOrder:,mapView:,mapWidgetsIndex,mapWidgetsPosition,mapWidgetsSize,mobileMapWidgetsPosition,mobileToolsOrder:,pasteEnabled,selectedFeaturesIds:,selectedLayer:,shareIncludeEmbed,shareIncludeSocial,showCopyPasteActions,showOnlyUpdatableLayers,stackTools,theme,visibilityIcon,zoomToolsSize,zoomToScale;resetFilter,updateFilterState,updateLayer"],"map-draw-tools":[()=>import("./JXERXJF5.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./L5DQOHD5.js"),"enabled,floorFilterRef:,mapView:"],"map-fullscreen":[()=>import("./AQ2USXUY.js"),"fullscreenRef:,mapView:"],"map-layer-picker":[()=>import("./KJTTBON2.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("./XRQNNWH3.js"),"legendRef:,mapView:"],"map-picker":[()=>import("./2WXIVPKA.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./O62JG2Y6.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchComponent:,searchConfiguration:,searchTerm"],"map-select-tools":[()=>import("./6MQWDLJ6.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("./KF64ALRP.js"),"_translations:,basemapConfig:,configLayerOrderDefined,defaultLayerId,enableBasemap,enabledLayerIds:,enableFloorFilter,enableFullscreen,enableHome,enableLayerList,enableLegend,enableMapLayerPicker,enableMapPicker,enableSearch,enableSelectionTool,enableSingleExpand,isMobile,layout,mapInfo:,mapInfos:,mapView:,mapWidgetsSize,parentComponentHeight,parentComponentWidth,position,searchConfiguration:,selectedFeaturesIds:,selectedLayer:,selectedWebMapId,selectionTools:,showOnlyUpdatableLayers,stackTools,toolOrder:,visibilityIcon,zoomToolsSize"],"pci-calculator":[()=>import("./GWLE7PJQ.js")],"pdf-download":[()=>import("./ABPXUFXN.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./RGOUIRT7.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("./JRUIRTL7.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./COEHM4BJ.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-builder-assistant":[()=>import("./OJH4NUGT.js"),"_translations:,design,readOnlyNotice"],"solution-configure-titles":[()=>import("./2A7FDE6T.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./RI7U6FA5.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./ECJQJ4BY.js"),"_translations:,card:,debugFailDeployment,design:,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./X3YWKGD7.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./VNWIFVKC.js"),"_translations:,card:,cardRef,diagramKey,open,readOnlyNotice,templateInfos:"],"solution-deploying-dialog":[()=>import("./BPHZAC66.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./3JF7PWPA.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./NF77ALHM.js"),"_translations:,card:,readOnlyNotice"],"solution-item-accordion":[()=>import("./BA3J7L5N.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:,usageContext;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./CPWYI2FO.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./5O6E2RIA.js"),"designType,isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./7LP2DUHS.js"),"_translations:,description,heading,headingEn,icon,meridianIcon,sectionHeadingEn,url"],"solution-snapshot-gallery":[()=>import("./F5EJPIW4.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./7SZY3VBD.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("./W6GIBBBE.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./FLPXST7W.js"),"_translations:,sortType;searchSolutions,setSearchOptions;getDisplayedSolutionIds"],"solutions-all-shell":[()=>import("./4ESJPQUS.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./IBSFJBIL.js"),"_translations:,appConfig,initTab,initTitleOrId,loadExampleBuilderData,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./VM2LS6TR.js"),"_translations:,appConfig,assistantOpen,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-list":[()=>import("./VYOCZUVH.js"),"_translations:,hasLinks,listTitle,referenceCards:,results:"],"solutions-deployed-panel":[()=>import("./TRNQ5OTY.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./H3QX6XOJ.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./TTXN5R4E.js"),"_translations:,hideIndustryFilter,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./GEEQWXOZ.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./VWNMKVMJ.js"),"_translations:;scrollToSection"],"solutions-searchsort-toolbar":[()=>import("./DERWSE25.js"),"_translations:,defaultSortType,isOrgSolutions,scope;;changeOwnerFilter,changeSearchFilter,sortChanged"]});o({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-solutions-assistant,buffer-tools,card-manager,consent-manager,create-feature,create-related-feature,crowdsource-manager,crowdsource-reporter,deduct-calculator,delete-button,delete-dialog,edit-card,feature-details,feature-list,field-selection,info-card,layer-list,layer-list-widget,layer-table,map-basemap-gallery,map-card,map-draw-tools,map-floor-filter,map-fullscreen,map-layer-picker,map-legend,map-picker,map-search,map-select-tools,map-tools,pci-calculator,pdf-download,public-notification,refine-selection,selection-tool,solution-builder-assistant,solution-configure-titles,solution-delete-dialog,solution-deploy-dialog,solution-deployed-card,solution-deployed-card-panel,solution-deploying-dialog,solution-details-card,solution-details-panel,solution-item-accordion,solution-item-diagram,solution-item-icon,solution-resource-card,solution-snapshot-gallery,solution-social-share,solution-user-avatar,solutions-all-panel,solutions-all-shell,solutions-deploy-app,solutions-deploy-app-nav,solutions-deployed-list,solutions-deployed-panel,solutions-deployed-shell,solutions-filter-panel,solutions-resources-section,solutions-resources-shell,solutions-searchsort-toolbar){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,a)
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as I } from "../../chunks/runtime.js";
|
|
3
|
-
import { a as x, g as
|
|
3
|
+
import { a as x, g as v } from "../../chunks/mapViewUtils.js";
|
|
4
4
|
import { u as A } from "../../chunks/useT9n.js";
|
|
5
|
-
import { css as M, html as
|
|
6
|
-
import { createRef as
|
|
7
|
-
import { LitElement as E, createEvent as c, noShadowRoot as k, safeClassMap as
|
|
5
|
+
import { css as M, html as l, nothing as y } from "lit";
|
|
6
|
+
import { createRef as u, ref as g } from "lit-html/directives/ref.js";
|
|
7
|
+
import { LitElement as E, createEvent as c, noShadowRoot as k, safeClassMap as b } from "@arcgis/lumina";
|
|
8
8
|
import { p as P } from "../../chunks/queryUtils.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import F from "@arcgis/core/form/ExpressionInfo.js";
|
|
10
|
+
import L from "@arcgis/core/layers/FeatureLayer.js";
|
|
11
11
|
import C from "@arcgis/core/form/elements/FieldElement.js";
|
|
12
12
|
import S from "@arcgis/core/form/FormTemplate.js";
|
|
13
13
|
import $ from "@arcgis/core/views/MapView.js";
|
|
14
14
|
import V from "@arcgis/core/Graphic.js";
|
|
15
|
-
import * as
|
|
15
|
+
import * as f from "@arcgis/core/core/reactiveUtils.js";
|
|
16
16
|
import * as R from "@arcgis/core/rest/locator.js";
|
|
17
|
-
import
|
|
17
|
+
import w from "@arcgis/core/request.js";
|
|
18
18
|
import * as T from "exifr";
|
|
19
19
|
import U from "@arcgis/core/geometry/Point.js";
|
|
20
20
|
import z from "@arcgis/core/geometry/SpatialReference.js";
|
|
21
21
|
const H = M`@layer{:host{display:block}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none!important}.esri-editor__panel-content{padding-block:0px!important}.esri-editor .esri-item-list__group__header,.esri-editor__panel-content__section .esri-widget__heading{display:none!important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px!important;padding-inline:10px!important}.search-widget{width:92%!important;margin:5px 14px 20px}.display-none{display:none!important}.hide-map{height:1%!important;visibility:hidden;position:static!important}.show-map{padding:10px!important;position:absolute!important;bottom:0;height:auto!important;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.edit-location-btn{margin:5px;display:flex}.esri-editor__panel-content{padding-block:10px!important}.image-preview-container{padding:10px}.esri-editor{height:auto!important}.height-fit-content{height:fit-content!important}.content-container{padding:1.5rem}.instruction-text{margin-bottom:1.5rem;font-size:1rem}.selected-card{border:2px solid var(--calcite-ui-brand)}.upload-img-footer-container{width:100%;gap:5px;display:grid}.info-container{display:flex;align-items:center;gap:6px;margin-bottom:10px}.info-container calcite-icon{--calcite-icon-color: var(--calcite-color-brand)}.info-container span{font-size:12px;color:var(--calcite-ui-text-3)}.padding-10{padding:10px}.report-selection-container{display:flex;flex-direction:column;padding:10px;--calcite-card-border-color: var(--calcite-color-border-1)}.pb-12{padding-bottom:12px!important}.pt-0{padding-top:0!important}.pt-15{padding-top:15px!important}.option-description-container{display:flex;align-items:center;gap:6px}.cursor-pointer{cursor:pointer;padding:6px 0}.card-body-content{display:flex;flex-direction:row;align-items:center;padding:10px 5px;gap:15px}.text-stack{display:flex;flex-direction:column;gap:2px}.option-title{font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size--1)}.option-description{color:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--1)}.action-footer{display:flex;justify-content:center;margin-top:16px}.analysis-wrapper{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;margin:auto}.analyzing-icon{--calcite-icon-color: var(--calcite-color-brand);animation:sparkle 2s infinite ease-in-out}.adjusted-height{height:30px!important;min-height:auto!important}@keyframes sparkle{0%,to{transform:scale(1)}50%{transform:scale(1.5)}}@media only screen and (max-width:600px){.esri-editor__panel-content{padding-block:0!important;min-height:0!important}}}`, _ = "geocodedLocation", D = `Extract the address from the user's message and return it in JSON format '{"address":"<address>"}'. If no address is found, return null.`;
|
|
22
22
|
class N extends E {
|
|
23
23
|
constructor() {
|
|
24
|
-
super(...arguments), this.customizeSubmit = !1, this.enableSearch = !1, this.enableSnapping = !1, this.floorLevel = "", this.isMobile = !1, this.selectedLayerId = "", this.showGuidingMsg = !0, this.submitNewReportsMessage = "", this.updateMapPosition = !1, this.reportingArea = !1, this.reportingAreaLayer = "", this.reportingAreaMessage = "", this.showSketchWidgets = !1, this.allowMultipleCreation = !1, this.popupEnabled = !1, this.showLayerVisibilityMsg = !1, this.enablePhotoLocation = !1, this.enableMessageLocation = !1, this._currentPage = "templatePicker", this._showSearchComponent = this.enableSearch, this._layerInfos = [], this._inValidGeometryDrawn = !1, this._selectedImageBase64 = "", this._enteredMessage = "", this._analysisFailed = !1, this._translations = A({ name: "create-feature", blocking: !0 }), this._addingAttachment = !1, this._uploadedImage = null, this._calciteNotice =
|
|
24
|
+
super(...arguments), this.customizeSubmit = !1, this.enableSearch = !1, this.enableSnapping = !1, this.floorLevel = "", this.isMobile = !1, this.selectedLayerId = "", this.showGuidingMsg = !0, this.submitNewReportsMessage = "", this.updateMapPosition = !1, this.reportingArea = !1, this.reportingAreaLayer = "", this.reportingAreaMessage = "", this.showSketchWidgets = !1, this.allowMultipleCreation = !1, this.popupEnabled = !1, this.showLayerVisibilityMsg = !1, this.enablePhotoLocation = !1, this.enableMessageLocation = !1, this._currentPage = "templatePicker", this._showSearchComponent = this.enableSearch, this._layerInfos = [], this._inValidGeometryDrawn = !1, this._selectedImageBase64 = "", this._enteredMessage = "", this._analysisFailed = !1, this._translations = A({ name: "create-feature", blocking: !0 }), this._addingAttachment = !1, this._uploadedImage = null, this._calciteNotice = u(), this._editor = u(), this._mapViewContainer = u(), this._searchRef = u(), this._inputImageForAI = u(), this._messageTextAreaRef = u(), this._guidingMessageRefNode = u(), this._abortController = new AbortController(), this._awaitingLayerEdits = !1, this._pendingAttachmentUpload = !1, this.success = c(), this.fail = c(), this.drawComplete = c(), this.editingLocation = c(), this.editingAttachment = c(), this.progressStatus = c(), this.modeChanged = c(), this.activeFeatureCountChange = c(), this.createFeatureEditorInitialized = c(), this.createFeatureEditorClosed = c(), this._onLayerEdits = async (e) => {
|
|
25
25
|
if (!this._awaitingLayerEdits)
|
|
26
26
|
return;
|
|
27
27
|
const t = [
|
|
@@ -128,10 +128,10 @@ class N extends E {
|
|
|
128
128
|
render() {
|
|
129
129
|
const e = this._currentPage === "loading" ? "" : "display-none", t = this.isMobile && this.updateMapPosition ? "show-map" : "display-none", i = this._inValidGeometryDrawn ? "danger" : "success", a = this._inValidGeometryDrawn ? "exclamation-mark-triangle" : "lightbulb", s = this.showLayerVisibilityMsg && this._currentPage === "templatePicker", r = (this.showGuidingMsg || s) && this._currentPage !== "loading" && this._currentPage !== "drawingMultipleFeatures";
|
|
130
130
|
let n = this._translations.chooseCategoryMsg;
|
|
131
|
-
const
|
|
132
|
-
return this._inValidGeometryDrawn ? n = this.reportingAreaMessage || this._translations.reportOutsideAreaMessage : this._currentPage === "drawing" || this._currentPage === "editing" ? n = this._translations.provideLocationMsg : this._currentPage === "featureForm" ? n = this._aiAnalysisInfo?.results?.filter((
|
|
131
|
+
const o = this._aiAnalysisInfo?.results?.filter((m) => !m.success && m.key !== _), d = o?.length ? !0 : this._analysisFailed, p = this._getAnalysisErrorMessage(o?.length), h = this._aiAnalysisInfo?.canUseAI && ["chooseReportType", "analyzingImage", "analyzingMessage", "imageUpload", "messageInput"].includes(this._currentPage);
|
|
132
|
+
return this._inValidGeometryDrawn ? n = this.reportingAreaMessage || this._translations.reportOutsideAreaMessage : this._currentPage === "drawing" || this._currentPage === "editing" ? n = this._translations.provideLocationMsg : this._currentPage === "featureForm" ? n = this._aiAnalysisInfo?.results?.filter((m) => m.success).length ? this._analysisMode === "text" ? this._translations.textReviewMsg : this._translations.formReviewMsg : this._translations.provideDetailsMsg : s && (n = this._translations.enableFeatureTemplatesMessage), l`${d && l`<calcite-alert auto-close icon=x-octagon kind=danger label @calciteAlertClose=${() => {
|
|
133
133
|
this._analysisFailed = !1;
|
|
134
|
-
}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${
|
|
134
|
+
}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${p}</div></calcite-alert>` || ""}${h && l`<calcite-panel>${this._currentPage === "chooseReportType" && this._getReportTypePage() || ""}${this._currentPage === "imageUpload" && this._aiImageExtractionPage() || ""}${this._currentPage === "messageInput" && this._aiTextExtractionPage() || ""}${this._currentPage === "analyzingImage" && this._getAnalyzingImagePage() || ""}${this._currentPage === "analyzingMessage" && this._getAnalyzingMessagePage() || ""}</calcite-panel>` || ""}${!h && l`${r && l`<calcite-notice class="notice-msg" .icon=${a} .kind=${i} open ${g(this._calciteNotice)}><div slot=message .innerHTML=${n ?? ""} ${g(this._guidingMessageRefNode)}></div></calcite-notice>` || ""}${this._selectedImageBase64 && this._currentPage === "featureForm" && l`<div class="image-preview-container"><calcite-label>${this._translations.photo}</calcite-label><img class="width-full" src=${this._selectedImageBase64 ?? y}></div>` || ""}<calcite-loader class=${b(e)} label scale=s></calcite-loader>${this._currentPage === "featureForm" && this.isMobile && l`<calcite-button appearance=transparent class="edit-location-btn" icon-start=pin @click=${this.editLocation}>${this._translations.editLocationLabel}</calcite-button>` || ""}${this._showSearchComponent && this._updatedMapView && this._selectedLayer && this._getSearchComponent() || ""}${this._getEditor()}` || ""}<div class=${b(t)} ${g(this._mapViewContainer)}></div>`;
|
|
135
135
|
}
|
|
136
136
|
async init() {
|
|
137
137
|
this.mapView && this.selectedLayerId && (this._updatedMapView = this.mapView, await (this.isMobile && this.updateMapPosition ? this.createMobileMapView() : this._loadLayerInfos()));
|
|
@@ -152,7 +152,7 @@ class N extends E {
|
|
|
152
152
|
}));
|
|
153
153
|
}
|
|
154
154
|
async _loadLayerInfos() {
|
|
155
|
-
const e = [], t = this._updatedMapView && await x(this._updatedMapView), i = this.mapView && await
|
|
155
|
+
const e = [], t = this._updatedMapView && await x(this._updatedMapView), i = this.mapView && await v(this.mapView, this.selectedLayerId);
|
|
156
156
|
i && (this._selectedLayer = i, this._attachEditsListener(this._selectedLayer), !this._selectedLayer.isTable && t && t.forEach((a) => {
|
|
157
157
|
e.push({
|
|
158
158
|
layer: a,
|
|
@@ -175,13 +175,13 @@ class N extends E {
|
|
|
175
175
|
}
|
|
176
176
|
_getReportTypePage() {
|
|
177
177
|
const e = this._hasImageExtraction(), t = this._hasTextExtraction();
|
|
178
|
-
return
|
|
178
|
+
return l`<div class="report-selection-container"><calcite-label class="pb-12">${this._translations.createReportHeading}</calcite-label><div class="option-description-container"><span class="option-description">${this._translations.aiAssistedReport}</span><calcite-icon icon=effects scale=s></calcite-icon></div>${t && l`<calcite-card class="cursor-pointer pt-0" @click=${() => {
|
|
179
179
|
this._analysisMode = "text", this.progressStatus.emit(35), this._currentPage = "messageInput";
|
|
180
180
|
}} @keydown=${(i) => {
|
|
181
181
|
this._activateCardFromKeyboard(i, () => {
|
|
182
182
|
this._analysisMode = "text", this.progressStatus.emit(35), this._currentPage = "messageInput";
|
|
183
183
|
});
|
|
184
|
-
}}><div slot=description class="card-body-content"><calcite-icon icon=speech-bubble scale=m></calcite-icon><div class="text-stack"><span class="option-title">${this._translations.useDescription}</span><span class="option-description">${this._translations.aiTextAssistantDescription}</span></div></div></calcite-card>` || ""}${e &&
|
|
184
|
+
}}><div slot=description class="card-body-content"><calcite-icon icon=speech-bubble scale=m></calcite-icon><div class="text-stack"><span class="option-title">${this._translations.useDescription}</span><span class="option-description">${this._translations.aiTextAssistantDescription}</span></div></div></calcite-card>` || ""}${e && l`<calcite-card class="cursor-pointer" @click=${() => {
|
|
185
185
|
this._analysisMode = "image", this.progressStatus.emit(35), this._currentPage = "imageUpload";
|
|
186
186
|
}} @keydown=${(i) => {
|
|
187
187
|
this._activateCardFromKeyboard(i, () => {
|
|
@@ -199,29 +199,29 @@ class N extends E {
|
|
|
199
199
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
|
|
200
200
|
}
|
|
201
201
|
_getEditor() {
|
|
202
|
-
return
|
|
202
|
+
return l`<arcgis-editor class=height-fit-content @arcgisReady=${this._onEditorComponentReady} @arcgisPropertyChange=${this._onEditorPropertyChange} @arcgisSketchUpdate=${this._onSketchUpdate} ${g(this._editor)}></arcgis-editor>`;
|
|
203
203
|
}
|
|
204
204
|
_getSearchComponent() {
|
|
205
205
|
const e = this._currentPage === "drawing" || this._currentPage === "editing" ? "" : "display-none", t = this.searchConfiguration && this._updatedMapView ? this._getSearchConfig(this.searchConfiguration, this._updatedMapView) : void 0;
|
|
206
|
-
return this._updateSearchActiveSourceIndex(),
|
|
206
|
+
return this._updateSearchActiveSourceIndex(), l`<arcgis-search class=${`search-widget ${e}`} .view=${this._updatedMapView} @arcgisSearchComplete=${this.searchComplete} popup-disabled result-graphic-disabled .includeDefaultSourcesDisabled=${!!t?.sources?.length} .sources=${t?.sources || []} .allPlaceholder=${t?.allPlaceholder} .searchAllDisabled=${!t?.searchAllEnabled} ${g(this._searchRef)}></arcgis-search>`;
|
|
207
207
|
}
|
|
208
208
|
_aiImageExtractionPage() {
|
|
209
209
|
const e = this._selectedImageBase64 !== "", t = e ? this._translations.replaceImage : this._translations.imageUploadLimitHint;
|
|
210
|
-
return
|
|
210
|
+
return l`<calcite-notice class="notice-msg" icon=effects kind=brand open><div slot=message>${this._translations.aiAssistantProcessingHint}</div></calcite-notice><div class="padding-10"><calcite-label><div>${this._translations.photo}<span style="color: var(--calcite-color-status-danger)">*</span></div><calcite-input type=file accept="image/*;capture=camera" @calciteInputInput=${this._onImageUpload} ${g(this._inputImageForAI)}></calcite-input></calcite-label><div class="info-container"><calcite-icon aria-hidden=true icon=information scale=s></calcite-icon><span>${t}</span></div>${e && l`<img alt=${this._translations.photo ?? y} class="width-full" src=${this._selectedImageBase64 ?? y}>` || ""}</div><div slot=footer class="upload-img-footer-container"><calcite-button width=full .disabled=${!e} id=next-btn @click=${this._analyzeImage}>${this._translations.next}</calcite-button><calcite-button width=full appearance=outline kind=brand @click=${() => this.modeChanged.emit()}>${this._translations.cancel}</calcite-button></div>`;
|
|
211
211
|
}
|
|
212
212
|
_aiTextExtractionPage() {
|
|
213
213
|
const e = this._enteredMessage.trim();
|
|
214
|
-
return
|
|
214
|
+
return l`<calcite-notice class="notice-msg" icon=effects kind=brand open><div slot=message>${this._translations.aiTextProcessingHint}</div></calcite-notice><div class="padding-10"><calcite-label><div>${this._translations.description}<span style="color: var(--calcite-color-status-danger)">*</span></div><calcite-text-area @input=${(t) => {
|
|
215
215
|
this._enteredMessage = t.target.value;
|
|
216
|
-
}} .placeholder=${this._translations.messageInputHint} resize=vertical rows=6 .value=${this._enteredMessage} ${
|
|
216
|
+
}} .placeholder=${this._translations.messageInputHint} resize=vertical rows=6 .value=${this._enteredMessage} ${g(this._messageTextAreaRef)}></calcite-text-area></calcite-label><div class="info-container"><calcite-icon icon=information scale=s></calcite-icon><span>${this._translations.descriptionRequiredHint}</span></div></div><div slot=footer class="upload-img-footer-container"><calcite-button width=full .disabled=${!e} id=next-btn @click=${this._analyzeMessage}>${this._translations.next}</calcite-button><calcite-button width=full appearance=outline kind=brand @click=${() => this.modeChanged.emit()}>${this._translations.cancel}</calcite-button></div>`;
|
|
217
217
|
}
|
|
218
218
|
_getAnalyzingImagePage() {
|
|
219
|
-
return
|
|
219
|
+
return l`<div class="analysis-wrapper"><calcite-label layout=inline><calcite-icon class="analyzing-icon" icon=effects scale=s></calcite-icon><span>${this._translations.analyzingImage}</span></calcite-label><calcite-button class="skip-btn" appearance=transparent @click=${() => {
|
|
220
220
|
this._abortController.abort(), this._currentPage = "templatePicker";
|
|
221
221
|
}}>${this._translations.skip}</calcite-button></div>`;
|
|
222
222
|
}
|
|
223
223
|
_getAnalyzingMessagePage() {
|
|
224
|
-
return
|
|
224
|
+
return l`<div class="analysis-wrapper"><calcite-label layout=inline><calcite-icon class="analyzing-icon" icon=effects scale=s></calcite-icon><span>${this._translations.analyzingText}</span></calcite-label><calcite-button class="skip-btn" appearance=transparent @click=${() => {
|
|
225
225
|
this._abortController.abort(), this._currentPage = "templatePicker";
|
|
226
226
|
}}>${this._translations.skip}</calcite-button></div>`;
|
|
227
227
|
}
|
|
@@ -244,8 +244,8 @@ class N extends E {
|
|
|
244
244
|
try {
|
|
245
245
|
this._analysisMode = "image", this._currentPage = "analyzingImage", this.progressStatus.emit(45);
|
|
246
246
|
const i = this._inputImageForAI.value.files[0], a = await new Promise((r, n) => {
|
|
247
|
-
const
|
|
248
|
-
|
|
247
|
+
const o = new FileReader();
|
|
248
|
+
o.onloadend = () => r(o.result), o.onerror = n, this._inputImageForAI.value && o.readAsDataURL(i);
|
|
249
249
|
});
|
|
250
250
|
if (this.enablePhotoLocation) {
|
|
251
251
|
const r = await T.gps(i);
|
|
@@ -254,8 +254,8 @@ class N extends E {
|
|
|
254
254
|
longitude: r.longitude,
|
|
255
255
|
latitude: r.latitude,
|
|
256
256
|
spatialReference: new z({ wkid: 4326 })
|
|
257
|
-
}),
|
|
258
|
-
this._aiAnalysisInfo && (this._aiAnalysisInfo.location =
|
|
257
|
+
}), o = await P(n, this.mapView.spatialReference);
|
|
258
|
+
this._aiAnalysisInfo && (this._aiAnalysisInfo.location = o);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
const s = this._getImageExtractionData();
|
|
@@ -263,7 +263,7 @@ class N extends E {
|
|
|
263
263
|
const r = {
|
|
264
264
|
input: a,
|
|
265
265
|
data: s
|
|
266
|
-
}, n = await
|
|
266
|
+
}, n = await w(t.imageUrl, {
|
|
267
267
|
method: "post",
|
|
268
268
|
headers: {
|
|
269
269
|
"Content-Type": "application/json",
|
|
@@ -291,7 +291,7 @@ class N extends E {
|
|
|
291
291
|
}
|
|
292
292
|
try {
|
|
293
293
|
this._analysisMode = "text", this._currentPage = "analyzingMessage", this.progressStatus.emit(45);
|
|
294
|
-
const r = await
|
|
294
|
+
const r = await w(t.textUrl, {
|
|
295
295
|
method: "post",
|
|
296
296
|
headers: {
|
|
297
297
|
"Content-Type": "application/json",
|
|
@@ -328,6 +328,29 @@ class N extends E {
|
|
|
328
328
|
};
|
|
329
329
|
this._selectedImageBase64 = "", this._enteredMessage = "", this._aiAnalysisInfo = e;
|
|
330
330
|
}
|
|
331
|
+
async _getPortalSettingsWithAiStatus(e) {
|
|
332
|
+
const t = await e.fetchSettings();
|
|
333
|
+
if (!(e?.isPortal === !0))
|
|
334
|
+
return t ?? {};
|
|
335
|
+
const a = e?.restUrl || `${e?.url}/sharing/rest`;
|
|
336
|
+
if (!a)
|
|
337
|
+
return t ?? {};
|
|
338
|
+
try {
|
|
339
|
+
const s = `${a}/portals/self/aiServer/status`, r = { f: "json" };
|
|
340
|
+
e?.credential?.token && (r.token = e.credential.token);
|
|
341
|
+
const o = (await w(s, {
|
|
342
|
+
responseType: "json",
|
|
343
|
+
query: r
|
|
344
|
+
}))?.data;
|
|
345
|
+
if (o && typeof o == "object")
|
|
346
|
+
return {
|
|
347
|
+
...t ?? {},
|
|
348
|
+
...o
|
|
349
|
+
};
|
|
350
|
+
} catch {
|
|
351
|
+
}
|
|
352
|
+
return t ?? {};
|
|
353
|
+
}
|
|
331
354
|
async _getAIAnalysisInfo() {
|
|
332
355
|
const e = {
|
|
333
356
|
imageUrl: "",
|
|
@@ -338,14 +361,20 @@ class N extends E {
|
|
|
338
361
|
if (this._hasImageExtraction() || this._hasTextExtraction()) {
|
|
339
362
|
const i = (this.mapView?.map).portalItem.portal;
|
|
340
363
|
if (i) {
|
|
341
|
-
const a = await
|
|
342
|
-
s?.url && (s.api?.image_analyze && (e.imageUrl = s.url + s.api.image_analyze), s.api?.text_analyze ? e.textUrl = s.url + s.api.text_analyze : e.textUrl = `${s.url}/api/text/analyze`), i.credential && (e.token = i.credential.token)
|
|
364
|
+
const a = await this._getPortalSettingsWithAiStatus(i), s = i?.helperServices.aiUtilityServices;
|
|
365
|
+
s?.url && (s.api?.image_analyze && (e.imageUrl = s.url + s.api.image_analyze), s.api?.text_analyze ? e.textUrl = s.url + s.api.text_analyze : e.textUrl = `${s.url}/api/text/analyze`), i.credential && (e.token = i.credential.token);
|
|
366
|
+
const r = i?.isPortal === !0, n = i?.user?.privileges?.includes("portal:user:useAIServices") === !0 || i?.user?.privileges?.includes("portal:user:useAI") === !0;
|
|
367
|
+
if (a?.aiConfig && a?.aiConfig.aiForOrg.enabled) {
|
|
368
|
+
const d = a?.aiConfig.aiForOrg.aiCapabilities?.aiServices?.enabled === !0, p = r ? !1 : a?.blockBetaApps === !0;
|
|
369
|
+
let h = !1;
|
|
370
|
+
r ? (h = a?.aiCapabilities?.aiServices?.configured === !0, e.canUseAI = d && !p && n && h) : e.canUseAI = d && !p && n;
|
|
371
|
+
}
|
|
343
372
|
}
|
|
344
373
|
}
|
|
345
374
|
return e;
|
|
346
375
|
}
|
|
347
376
|
async queryIntersectingFeatures() {
|
|
348
|
-
const e = this.mapView && await
|
|
377
|
+
const e = this.mapView && await v(this.mapView, this.reportingAreaLayer);
|
|
349
378
|
if (e) {
|
|
350
379
|
const t = e.createQuery();
|
|
351
380
|
t.geometry = this._drawnGeometry, t.spatialRelationship = "intersects";
|
|
@@ -368,17 +397,17 @@ class N extends E {
|
|
|
368
397
|
}
|
|
369
398
|
async _onEditorPropertyChange() {
|
|
370
399
|
const e = this._editor.value;
|
|
371
|
-
e?.state && (this._drawingHandler || (this._drawingHandler =
|
|
400
|
+
e?.state && (this._drawingHandler || (this._drawingHandler = f.watch(() => e.state, async (t) => {
|
|
372
401
|
const i = this._editor.value?.activeWorkflow, a = i?.formViewModel;
|
|
373
402
|
if (t === "creating-features" && (a?.status === "not-loaded" || a?.state === "disabled") && (this._mapViewContainer.value?.classList.replace("hide-map", "show-map"), this._selectedLayer && !this._selectedLayer.isTable && (this._currentPage = "drawing", this.progressStatus.emit(50), i?.sketchViewModel?.createGraphic && this._aiAnalysisInfo?.location && (await this._goToAndWaitForStationary({ center: this._aiAnalysisInfo.location }), this._selectedLayer.geometryType === "point" && await this._initializeSketchPoint(this._aiAnalysisInfo.location.clone()))), this.isMobile && this._adjustPanelContentHeight(), this._searchRef.value && await this._searchRef.value.setFocus()), t === "adding-attachment" || t === "editing-attachment" ? (this._addingAttachment = !0, this.editingAttachment.emit(!0)) : this._addingAttachment && (this.editingAttachment.emit(!1), this._addingAttachment = !1), !this._featureFormHandler) {
|
|
374
403
|
const r = this._editor.value?.activeWorkflow?.formViewModel;
|
|
375
|
-
r.state ? this._featureFormHandler =
|
|
404
|
+
r.state ? this._featureFormHandler = f.watch(() => r?.state, (n) => {
|
|
376
405
|
this._currentPage !== "editing" && n === "ready" ? this.initFeatureFormPage() : this.allowMultipleCreation && this._currentPage !== "editing" && n === "disabled" && (this._currentPage = "drawingMultipleFeatures");
|
|
377
|
-
}) : r.status && (this._featureFormHandler =
|
|
406
|
+
}) : r.status && (this._featureFormHandler = f.watch(() => r?.status, (n) => {
|
|
378
407
|
this._currentPage !== "editing" && n === "loaded" ? this.initFeatureFormPage() : this.allowMultipleCreation && this._currentPage !== "editing" && n === "not-loaded" && (this._currentPage = "drawingMultipleFeatures");
|
|
379
408
|
}));
|
|
380
409
|
}
|
|
381
|
-
this.allowMultipleCreation && e.activeWorkflow && (this._activeFeatureCountHandler || (this._activeFeatureCountHandler =
|
|
410
|
+
this.allowMultipleCreation && e.activeWorkflow && (this._activeFeatureCountHandler || (this._activeFeatureCountHandler = f.watch(() => e.activeWorkflow?.data?.viewModel?.activeFeatureCount, (s) => {
|
|
382
411
|
s === 0 && (this._currentPage = "drawing"), this.activeFeatureCountChange.emit(s);
|
|
383
412
|
})));
|
|
384
413
|
})), await this.hideEditorsElements());
|
|
@@ -422,7 +451,7 @@ class N extends E {
|
|
|
422
451
|
animate: !0,
|
|
423
452
|
duration: this.isMobile ? 1200 : 800,
|
|
424
453
|
easing: "ease-in-out"
|
|
425
|
-
}), await
|
|
454
|
+
}), await f.whenOnce(() => t.stationary));
|
|
426
455
|
}
|
|
427
456
|
async _initializeSketchPoint(e) {
|
|
428
457
|
this.isMobile && await new Promise((s) => setTimeout(s, 1e3));
|
|
@@ -445,8 +474,8 @@ class N extends E {
|
|
|
445
474
|
return { ...e };
|
|
446
475
|
const a = i.map((s) => {
|
|
447
476
|
if (s.hasOwnProperty("layer")) {
|
|
448
|
-
const r = { ...s }, n = r.layer?.id,
|
|
449
|
-
return
|
|
477
|
+
const r = { ...s }, n = r.layer?.id, o = n ? t.map?.findLayerById(n) : "", d = r?.layer?.url;
|
|
478
|
+
return o ? r.layer = o : d && (r.layer = new L(d)), r;
|
|
450
479
|
}
|
|
451
480
|
if (s.hasOwnProperty("locator")) {
|
|
452
481
|
const r = { ...s };
|
|
@@ -476,7 +505,7 @@ class N extends E {
|
|
|
476
505
|
const r = this._editor.value?.activeWorkflow?.formViewModel;
|
|
477
506
|
r.status === "loaded" ? await r.setValueForFieldName?.(a.name, e, r.features) : r.state === "ready" && r.setValue?.(a.name, e), a.editable = !1;
|
|
478
507
|
} else if (t.formTemplate && this.formElements) {
|
|
479
|
-
const s = new
|
|
508
|
+
const s = new F({
|
|
480
509
|
expression: `'${e}'`,
|
|
481
510
|
name: "floor-info-test",
|
|
482
511
|
title: "Floor Info",
|
|
@@ -493,15 +522,15 @@ class N extends E {
|
|
|
493
522
|
valueExpression: s.name
|
|
494
523
|
});
|
|
495
524
|
this._updatedMapView?.map.editableLayers.forEach((n) => {
|
|
496
|
-
const
|
|
497
|
-
if (
|
|
498
|
-
const
|
|
499
|
-
title:
|
|
500
|
-
description:
|
|
501
|
-
elements:
|
|
502
|
-
expressionInfos: [s].concat(
|
|
525
|
+
const o = this.formElements.orgElements, d = this.formElements.orgExpressionInfos, p = [...o];
|
|
526
|
+
if (p.push(r), n.type === "feature") {
|
|
527
|
+
const h = n, m = new S({
|
|
528
|
+
title: h?.formTemplate?.title,
|
|
529
|
+
description: h?.formTemplate?.description,
|
|
530
|
+
elements: p,
|
|
531
|
+
expressionInfos: [s].concat(d)
|
|
503
532
|
});
|
|
504
|
-
n.formTemplate =
|
|
533
|
+
n.formTemplate = m;
|
|
505
534
|
}
|
|
506
535
|
});
|
|
507
536
|
}
|