@esri/solutions-components 5.1.0-next.70 → 5.1.0-next.72

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.
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a}from"./N4UM4VM2.js";import"./GSODQ7Y6.js";import"./2B4SGB3I.js";import"./PAJG7ACM.js";import"./SHFWVVGY.js";import"./7NDNEWIB.js";import"./46MUUBPE.js";import"./2MOSXHFG.js";import"./7MSBIQLE.js";import"./QPIMTXPL.js";export{a as SolutionBuilderAssistant};
2
+ import{a}from"./JNLWJUWX.js";import"./GSODQ7Y6.js";import"./2B4SGB3I.js";import"./PAJG7ACM.js";import"./SHFWVVGY.js";import"./7NDNEWIB.js";import"./46MUUBPE.js";import"./2MOSXHFG.js";import"./7MSBIQLE.js";import"./QPIMTXPL.js";export{a as SolutionBuilderAssistant};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as v}from"./GSODQ7Y6.js";import{c as y}from"./2B4SGB3I.js";import{b}from"./PAJG7ACM.js";import{a as m}from"./SHFWVVGY.js";import{b as _}from"./2MOSXHFG.js";import{G as u,K as d,h as g,i as n}from"./7MSBIQLE.js";var F=g`.builder-content{display:flex;flex-direction:column;flex:1;overflow:auto}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--calcite-spacing-xxl);text-align:center;color:var(--calcite-color-text-3)}.empty-state calcite-icon{margin-bottom:var(--calcite-spacing-md);color:var(--calcite-color-text-3)}.empty-state p{margin:0;font-size:var(--calcite-font-size--1)}.header-container{display:flex;align-items:stretch;gap:var(--calcite-spacing-lg);padding-bottom:var(--calcite-spacing-lg)}.header-container calcite-notice{flex:1;margin:0}calcite-action-bar{flex-shrink:0;background:var(--calcite-color-brand);border-left:1px solid var(--calcite-color-brand-dark)}.content-container{display:flex;gap:var(--calcite-spacing-xl);margin-bottom:var(--calcite-spacing-lg)}.solution-item-section{flex:1;min-width:0;background:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-lg)}.solution-item-inputs{display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.thumbnail-inputs-row{display:flex;gap:var(--calcite-spacing-md);align-items:flex-start}.thumbnail-container{flex-shrink:0;width:253px;aspect-ratio:200 / 133;border:1px solid var(--calcite-color-border-2);border-radius:var(--calcite-border-radius);overflow:hidden;background:var(--calcite-color-foreground-2)}.thumbnail-container img{width:100%;height:100%;object-fit:cover}.stacked-inputs{flex:1;display:flex;flex-direction:column;gap:var(--calcite-spacing-md);min-width:0}.stacked-inputs calcite-label{min-width:0}.stacked-inputs calcite-input-text,.stacked-inputs calcite-text-area{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.stacked-inputs calcite-text-area{max-height:150px}.tags-row{width:100%;min-width:0}.tags-row calcite-combobox{width:100%}.actions-section{flex-shrink:0;width:200px;background:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-lg)}.action-buttons{display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.tabs-section{flex:1;display:flex;flex-direction:column;min-height:0}.tabs-section calcite-tabs{height:100%}.tabs-section calcite-tab{--calcite-tab-content-block-padding: 0}.feature-layer-tab{padding:var(--calcite-spacing-lg)}calcite-flow{--calcite-flow-background-color: var(--calcite-color-foreground-1);display:block;margin:0;padding:0}calcite-flow-item{--calcite-flow-item-content-padding: 0}.layer-selector-container{display:flex;gap:var(--calcite-spacing-md);align-items:end}.layer-selector-container calcite-label{flex:1;min-width:0;margin-bottom:0}.layer-selector-container calcite-combobox{width:100%}.layer-selector-container>calcite-button{flex-shrink:0;margin-bottom:var(--calcite-spacing-md)}.layer-properties-container{display:flex;gap:var(--calcite-spacing-md);margin-top:var(--calcite-spacing-lg)}.layer-properties-container calcite-label{flex:1;min-width:0}.layer-properties-container calcite-input-text,.layer-properties-container calcite-combobox{width:100%}.layer-description-container{margin-top:var(--calcite-spacing-lg)}.layer-description-container calcite-text-area{width:100%;max-height:150px}.fields-section{margin-top:var(--calcite-spacing-xl)}.fields-section calcite-table-cell:last-child{text-align:center;display:flex;justify-content:center;align-items:center}.field-type-cell{display:flex;align-items:center;gap:var(--calcite-spacing-xs)}.domain-cell-content{display:flex;align-items:center;justify-content:space-between;width:100%;gap:var(--calcite-spacing-sm)}.domain-cell-content calcite-icon{cursor:pointer;color:var(--calcite-color-text-3);flex-shrink:0}.domain-cell-content calcite-icon:hover{color:var(--calcite-color-brand)}.choice-list-tooltip{margin:0;padding-left:var(--calcite-spacing-lg);list-style-type:disc}.choice-list-tooltip li{padding:var(--calcite-spacing-xxs) 0}.fields-section calcite-table calcite-icon{cursor:pointer;color:var(--calcite-color-text-3)}.fields-section calcite-table calcite-icon:hover{color:var(--calcite-color-brand)}.add-field-button{margin-top:var(--calcite-spacing-md)}.add-layer-button{margin-top:var(--calcite-spacing-md);margin-bottom:var(--calcite-spacing-sm)}.system-fields-note{display:flex;align-items:center;gap:var(--calcite-spacing-xs);margin-top:var(--calcite-spacing-md);font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3)}.system-fields-note span{margin-top:2px}.info-icon-blue{--calcite-icon-color: var(--calcite-color-brand);flex-shrink:0;cursor:default}.domain-section{margin-top:var(--calcite-spacing-lg)}.domain-list{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.domain-item{display:flex;align-items:center;gap:var(--calcite-spacing-sm);padding:var(--calcite-spacing-xs);background:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-border-2);border-radius:var(--calcite-border-radius);cursor:move}.domain-item:hover{background:var(--calcite-color-foreground-2)}.domain-item .drag-handle{color:var(--calcite-color-text-3);cursor:grab;flex-shrink:0}.domain-item .drag-handle:active{cursor:grabbing}.domain-item calcite-input-text{flex:1;min-width:0}.domain-item calcite-button{flex-shrink:0}.popover-content{padding:var(--calcite-spacing-lg);min-width:300px}.popover-field{margin-top:var(--calcite-spacing-md)}.popover-actions{display:flex;justify-content:flex-end;gap:var(--calcite-spacing-sm);margin-top:var(--calcite-spacing-lg)}`,p=class extends u{constructor(){super(),this.design=null,this._design=null,this._translations=m({name:"solution-builder-assistant",blocking:!0}),this._isDirty=!1,this._openPopoverId=null,this._editingItemTitle="",this._editingItemDescription="",this._selectedLayerIndex=0,this._isAddingLayer=!1,this._newLayerName="",this._newLayerType="Point",this._newLayerDescription="",this._isEditingField=!1,this._editingFieldIndex=-1,this._editingFieldType=null,this._editingFieldDisplayName="",this._editingFieldName="",this._editingFieldDescription="",this._editingFieldTypeValue="string",this._editingFieldLength=255,this._editingFieldChoiceList=null,this._isAddingNewField=!1,this._newFieldDisplayName="",this._newFieldName="",this._newFieldDescription="",this._newFieldType="string",this._newFieldLength=255,this._newFieldChoiceList=null,this._designContextConsumer=b({context:y,subscribe:!0,callback:e=>{e?.design&&(this._design=e.design)}}),this._handleUndo=()=>{console.log("Undo clicked - to be implemented")},this._handleRedo=()=>{console.log("Redo clicked - to be implemented")},this._handleTitleChange=e=>{if(!this._design)return;let i={...this._design,solution:{...this._design.solution,title:e}};this._design=i,this._isDirty=!0},this._handleDescriptionChange=e=>{if(!this._design)return;let i={...this._design,solution:{...this._design.solution,description:e}};this._design=i,this._isDirty=!0},this._handleTagsChange=e=>{if(!this._design)return;let i=Array.from(e.target.selectedItems).map(t=>t.value);this._design={...this._design,solution:{...this._design.solution,tags:i}},this._isDirty=!0},this._handleItemPopoverOpen=e=>{this._openPopoverId=e.id,this._editingItemTitle=e.title||"",this._editingItemDescription=e.description||"",this.requestUpdate()},this._handleCloseItemPopover=()=>{this._openPopoverId=null,this._editingItemTitle="",this._editingItemDescription=""},this._handleClosePopover=async e=>{let i=this.renderRoot.querySelector(`#${e}`);i&&(i.open=!1,await i.updateComplete),this._handleCloseItemPopover()},this._handleApplyItemChanges=e=>{if(!this._design)return;let i=this._design.items.map(a=>a.id===e?{...a,title:this._editingItemTitle,description:this._editingItemDescription}:a),t={...this._design,items:i};this._design=t,this._isDirty=!0},this._handleLayerSelect=e=>{let i=e.target.selectedItems[0];i&&(this._selectedLayerIndex=parseInt(i.value,10))},this._handleAddLayer=()=>{this._isAddingLayer=!0},this._handleAddLayerBack=()=>{this._isAddingLayer=!1,this._newLayerName="",this._newLayerType="Point",this._newLayerDescription=""},this._handleAddLayerDone=()=>{if(!this._design||!this._newLayerName.trim())return;let e=this._design.featureLayer?.layers||[],i={id:Date.now(),type:this._newLayerType,name:this._newLayerName,description:this._newLayerDescription,customFields:[],requiredFields:[],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record.",choiceList:null,length:255},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record.",choiceList:null,length:255}]};this._design={...this._design,featureLayer:{...this._design.featureLayer,layers:[...e,i]}},this._selectedLayerIndex=e.length,this._isDirty=!0,this._isAddingLayer=!1,this._newLayerName="",this._newLayerType="Point",this._newLayerDescription=""},this._handleNewLayerNameChange=e=>{this._newLayerName=e},this._handleNewLayerTypeChange=e=>{let i=e.target.selectedItems[0];i&&(this._newLayerType=i.value)},this._handleNewLayerDescriptionChange=e=>{this._newLayerDescription=e},this._handleAddField=()=>{this._newFieldDisplayName="",this._newFieldName="",this._newFieldDescription="",this._newFieldType="string",this._newFieldLength=255,this._isAddingNewField=!0,this._scrollFeatureLayerTabToTop()},this._handleAddFieldBack=()=>{this._isAddingNewField=!1,this._newFieldDisplayName="",this._newFieldName="",this._newFieldDescription="",this._newFieldType="string",this._newFieldLength=255,this._newFieldChoiceList=null},this._handleAddFieldDone=()=>{if(!this._design)return;let e=this._design.featureLayer?.layers||[],i=e[this._selectedLayerIndex];if(!i||!this._newFieldName.trim())return;let t={name:this._newFieldName,type:this._newFieldType,alias:this._newFieldDisplayName||this._newFieldName,description:this._newFieldDescription,choiceList:this._newFieldChoiceList&&this._newFieldChoiceList.length>0?this._newFieldChoiceList:null};this._newFieldType==="string"&&(t.length=this._newFieldLength);let a=[...i.customFields||[],t],c=e.map((s,r)=>r===this._selectedLayerIndex?{...s,customFields:a}:s);this._design={...this._design,featureLayer:{...this._design.featureLayer,layers:c}},this._isDirty=!0,this._handleAddFieldBack()},this._handleNewFieldTypeChange=e=>{let i=e.target.selectedItems[0];i&&(this._newFieldType=i.value)},this._handleEditField=(e,i)=>{let t=(this._design?.featureLayer?.layers||[])[this._selectedLayerIndex];if(!t)return;let a=t.customFields||[],c=t.requiredFields||[];if(e<a.length)this._editingFieldType="custom",this._editingFieldIndex=e;else{let s=e-a.length;if(s>=c.length)return;this._editingFieldType="required",this._editingFieldIndex=s}this._editingFieldDisplayName=i.alias||"",this._editingFieldName=i.name||"",this._editingFieldDescription=i.description||"",this._editingFieldTypeValue=i.type||"string",this._editingFieldLength=i.length||255,this._editingFieldChoiceList=i.choiceList?[...i.choiceList]:null,this._isEditingField=!0,this._scrollFeatureLayerTabToTop()},this._handleEditFieldBack=()=>{this._isEditingField=!1,this._editingFieldIndex=-1,this._editingFieldType=null,this._editingFieldDisplayName="",this._editingFieldName="",this._editingFieldDescription="",this._editingFieldTypeValue="string",this._editingFieldLength=255,this._editingFieldChoiceList=null},this._handleEditFieldTypeChange=e=>{let i=e.target.selectedItems[0];i&&(this._editingFieldTypeValue=i.value)},this._handleAddEditFieldChoice=()=>{this._editingFieldChoiceList?this._editingFieldChoiceList=[...this._editingFieldChoiceList,""]:this._editingFieldChoiceList=[""]},this._handleRemoveEditFieldChoice=e=>{this._editingFieldChoiceList&&(this._editingFieldChoiceList=this._editingFieldChoiceList.filter((i,t)=>t!==e),this._editingFieldChoiceList.length===0&&(this._editingFieldChoiceList=null))},this._handleUpdateEditFieldChoice=(e,i)=>{if(!this._editingFieldChoiceList)return;let t=[...this._editingFieldChoiceList];t[e]=i,this._editingFieldChoiceList=t},this._handleEditFieldChoiceDragStart=(e,i)=>{i.dataTransfer.effectAllowed="move",i.dataTransfer.setData("text/plain",e.toString())},this._handleEditFieldChoiceDrop=(e,i)=>{if(i.preventDefault(),!this._editingFieldChoiceList)return;let t=parseInt(i.dataTransfer.getData("text/plain"));if(t===e)return;let a=[...this._editingFieldChoiceList],c=a[t];a.splice(t,1),a.splice(e,0,c),this._editingFieldChoiceList=a},this._handleAddNewFieldChoice=()=>{this._newFieldChoiceList?this._newFieldChoiceList=[...this._newFieldChoiceList,""]:this._newFieldChoiceList=[""]},this._handleRemoveNewFieldChoice=e=>{this._newFieldChoiceList&&(this._newFieldChoiceList=this._newFieldChoiceList.filter((i,t)=>t!==e),this._newFieldChoiceList.length===0&&(this._newFieldChoiceList=null))},this._handleUpdateNewFieldChoice=(e,i)=>{if(!this._newFieldChoiceList)return;let t=[...this._newFieldChoiceList];t[e]=i,this._newFieldChoiceList=t},this._handleNewFieldChoiceDragStart=(e,i)=>{i.dataTransfer.effectAllowed="move",i.dataTransfer.setData("text/plain",e.toString())},this._handleNewFieldChoiceDrop=(e,i)=>{if(i.preventDefault(),!this._newFieldChoiceList)return;let t=parseInt(i.dataTransfer.getData("text/plain"));if(t===e)return;let a=[...this._newFieldChoiceList],c=a[t];a.splice(t,1),a.splice(e,0,c),this._newFieldChoiceList=a},this._handleDeleteField=()=>{if(!this._design||this._editingFieldType!=="custom")return;let e=this._design.featureLayer?.layers||[];if(this._selectedLayerIndex>=e.length)return;let i=[...e[this._selectedLayerIndex].customFields||[]];i.splice(this._editingFieldIndex,1);let t=e.map((a,c)=>c===this._selectedLayerIndex?{...a,customFields:i}:a);this._design={...this._design,featureLayer:{...this._design.featureLayer,layers:t}},this._isDirty=!0,this._handleEditFieldBack()},this._handleApplyFieldChanges=()=>{if(!this._design||!this._editingFieldType)return;let e=this._design.featureLayer?.layers||[];if(this._selectedLayerIndex>=e.length)return;let i=e[this._selectedLayerIndex];if(this._editingFieldType==="custom"){let t=[...i.customFields||[]];t[this._editingFieldIndex]={...t[this._editingFieldIndex],alias:this._editingFieldDisplayName,name:this._editingFieldName,description:this._editingFieldDescription,type:this._editingFieldTypeValue,choiceList:this._editingFieldChoiceList&&this._editingFieldChoiceList.length>0?this._editingFieldChoiceList:null,length:this._editingFieldTypeValue==="string"?this._editingFieldLength:void 0};let a=e.map((c,s)=>s===this._selectedLayerIndex?{...c,customFields:t}:c);this._design={...this._design,featureLayer:{...this._design.featureLayer,layers:a}}}else if(this._editingFieldType==="required"){let t=[...i.requiredFields||[]];t[this._editingFieldIndex]={...t[this._editingFieldIndex],alias:this._editingFieldDisplayName,description:this._editingFieldDescription};let a=e.map((c,s)=>s===this._selectedLayerIndex?{...c,requiredFields:t}:c);this._design={...this._design,featureLayer:{...this._design.featureLayer,layers:a}}}this._isDirty=!0,this._handleEditFieldBack()},this._handleLayerNameChange=e=>{if(!this._design)return;let i=this._design.featureLayer?.layers||[];if(this._selectedLayerIndex>=i.length)return;let t=i.map((a,c)=>c===this._selectedLayerIndex?{...a,name:e}:a);this._design={...this._design,featureLayer:{...this._design.featureLayer,layers:t}},this._isDirty=!0},this._handleLayerTypeChange=e=>{if(!this._design)return;let i=e.target.selectedItems[0];if(!i)return;let t=this._design.featureLayer?.layers||[];if(this._selectedLayerIndex>=t.length)return;let a=i.value,c=t.map((s,r)=>r===this._selectedLayerIndex?{...s,type:a}:s);this._design={...this._design,featureLayer:{...this._design.featureLayer,layers:c}},this._isDirty=!0},this._handleLayerDescriptionChange=e=>{if(!this._design)return;let i=this._design.featureLayer?.layers||[];if(this._selectedLayerIndex>=i.length)return;let t=i.map((a,c)=>c===this._selectedLayerIndex?{...a,description:e}:a);this._design={...this._design,featureLayer:{...this._design.featureLayer,layers:t}},this._isDirty=!0},this._handleRemoveLayer=()=>{if(!this._design)return;let e=this._design.featureLayer?.layers||[];if(this._selectedLayerIndex>=e.length)return;let i=e.filter((t,a)=>a!==this._selectedLayerIndex);this._design={...this._design,featureLayer:{...this._design.featureLayer,layers:i}},this._selectedLayerIndex>=i.length&&(this._selectedLayerIndex=Math.max(0,i.length-1)),this._isDirty=!0,this._scrollFeatureLayerTabToTop()},this._handleDeploy=async()=>{this._design&&console.log("Deploy design:",this._design)},this._designContextConsumer}static{this.properties={design:[1,{type:Object}],_design:16,_translations:16,_isDirty:16,_openPopoverId:16,_editingItemTitle:16,_editingItemDescription:16,_selectedLayerIndex:16,_isAddingLayer:16,_newLayerName:16,_newLayerType:16,_newLayerDescription:16,_isEditingField:16,_editingFieldIndex:16,_editingFieldType:16,_editingFieldDisplayName:16,_editingFieldName:16,_editingFieldDescription:16,_editingFieldTypeValue:16,_editingFieldLength:16,_editingFieldChoiceList:16,_isAddingNewField:16,_newFieldDisplayName:16,_newFieldName:16,_newFieldDescription:16,_newFieldType:16,_newFieldLength:16,_newFieldChoiceList:16}}static{this.styles=F}willUpdate(e){e.has("design")&&(this._design=this.design)}render(){return this._translations?this._design?n`<calcite-panel><div class="header-container">${this._renderNoticeBar()}${this._renderActionBar()}</div><div class="builder-content">${this._renderMainContent()}${this._renderTabsSection()}</div></calcite-panel>`:this._renderEmptyState():n`<div>Loading...</div>`}_getLayerTypeIcon(e){switch(e){case"Point":return"point";case"Polyline":return"line";case"Polygon":return"polygon";case"Table":return"table";default:return"layer"}}_getFieldTypeIcon(e){switch(e){case"string":return"string";case"integer":return"integer";case"double":return"number";case"date":return"date-time";case"oid":case"globalid":case"guid":return"key";default:return"key"}}_formatFieldType(e){let i={string:"String",integer:"Integer",double:"Double",date:"Date",guid:"GUID",globalid:"GlobalID",oid:"ObjectID"}[e.type]||e.type;return e.type==="string"&&e.length?`${i} (${e.length})`:i}_getSystemFieldsList(e){return(e.systemFields||[]).map(i=>i.name).join(", ")}_shouldShowRemoveLayerButton(e){return!e||!this._design?.featureLayer?!1:e.id&&e.id>1e3}_scrollFeatureLayerTabToTop(){requestAnimationFrame(()=>{let e=this.el.shadowRoot?.querySelector("calcite-tab[selected]");e?.shadowRoot&&e.shadowRoot.querySelector(".container")?.scrollTo({top:0,behavior:"smooth"})})}_renderFieldRows(e){let i=[...e.customFields||[],...e.requiredFields||[]],t=[];return i.forEach((a,c)=>{let s=this._getFieldTypeIcon(a.type),r=this._formatFieldType(a),l=`field-domain-info-${c}`,h,o=!1;a.choiceList&&Array.isArray(a.choiceList)?(o=!0,h=n`<div class="domain-cell-content"><span>List (${a.choiceList.length})</span><calcite-icon id=${l??d} icon=information scale=s></calcite-icon></div>`):h=null,t.push(n`<calcite-table-row><calcite-table-cell>${a.alias}</calcite-table-cell><calcite-table-cell>${a.name}</calcite-table-cell><calcite-table-cell><div class="field-type-cell"><calcite-icon .icon=${s} scale=s></calcite-icon><span>${r}</span></div></calcite-table-cell><calcite-table-cell>${h}</calcite-table-cell><calcite-table-cell><calcite-icon icon=pencil scale=s @click=${()=>this._handleEditField(c,a)}></calcite-icon></calcite-table-cell></calcite-table-row>`),o&&t.push(n`<calcite-tooltip .referenceElement=${l} placement=left><ul class="choice-list-tooltip">${a.choiceList.map($=>n`<li>${$}</li>`)}</ul></calcite-tooltip>`)}),t}_renderEmptyState(){return n`<calcite-panel><div class="empty-state"><calcite-icon icon=layer scale=l></calcite-icon><p>No solution design loaded</p></div></calcite-panel>`}_renderNoticeBar(){let e=this._translations;return n`<calcite-notice open kind=brand icon=pencil-square><div slot=title>${e.noticeTitle}</div><div slot=message>${e.noticeMessage}</div></calcite-notice>`}_renderActionBar(){let e=this._translations;return n`<calcite-action-bar layout=horizontal expand-disabled><calcite-action .text=${e.undo} text-enabled icon=undo disabled @click=${this._handleUndo}></calcite-action><calcite-action .text=${e.redo} text-enabled icon=redo disabled @click=${this._handleRedo}></calcite-action></calcite-action-bar>`}_renderMainContent(){return n`<div class="content-container"><div class="solution-item-section">${this._renderSolutionItemInputs()}</div><div class="actions-section">${this._renderActionButtons()}</div></div>`}_renderSolutionItemInputs(){let e=this._translations,i=this._design?.solution?.thumbnailUrl||"",t=this._design?.solution?.title||"",a=this._design?.solution?.description||"",c=this._design?.solution?.tags||[];return n`<div class="solution-item-inputs"><div class="thumbnail-inputs-row"><div class="thumbnail-container"><img src=${(i||'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="200" height="133"%3E%3Crect fill="%23ddd" width="200" height="133"/%3E%3C/svg%3E')??d} alt=${e.solutionThumbnail??d}></div><div class="stacked-inputs"><calcite-label>${e.name}<calcite-input-text .placeholder=${e.namePlaceholder} .value=${t} @input=${s=>this._handleTitleChange(s.target.value)}></calcite-input-text></calcite-label><calcite-label>${e.description}<calcite-text-area .placeholder=${e.descriptionPlaceholder} .value=${a} resize=none @input=${s=>this._handleDescriptionChange(s.target.value)}></calcite-text-area></calcite-label></div></div><div class="tags-row"><calcite-label>${e.tags}${v(c.join(","),n`<calcite-combobox .label=${e.tags} .placeholder=${e.tagsPlaceholder} selection-mode=multiple allow-custom-values @calciteComboboxChange=${s=>this._handleTagsChange(s)}>${c.map(s=>n`<calcite-combobox-item .value=${s} .heading=${s} selected></calcite-combobox-item>`)}</calcite-combobox>`)}</calcite-label></div></div>`}_renderActionButtons(){let e=this._translations;return n`<div class="action-buttons"><calcite-button appearance=solid width=full icon-start=launch>${e.deploy}</calcite-button><calcite-button appearance=outline kind=neutral width=full icon-start=workflow-diagram>${e.viewDiagram}</calcite-button><calcite-button appearance=outline kind=neutral width=full icon-start=information>${e.openHelp}</calcite-button><calcite-button appearance=outline kind=danger width=full icon-start=trash>${e.discard}</calcite-button></div>`}_renderTabsSection(){let e=this._translations;return n`<div class="tabs-section"><calcite-tabs bordered layout=center><calcite-tab-nav slot=title-group><calcite-tab-title>${e.contents}</calcite-tab-title><calcite-tab-title icon-start=layers>${e.featureLayer}</calcite-tab-title></calcite-tab-nav><calcite-tab>${this._renderContentsTab()}</calcite-tab><calcite-tab>${this._renderFeatureLayerTab()}</calcite-tab></calcite-tabs></div>`}_renderContentsTab(){let e=this._translations,i=this._design?.items||[];return n`<div><calcite-list .label=${e.solutionContentItems}>${i.map(t=>{let a=`edit-action-${t.id}`;return n`<calcite-list-item .label=${t.title} .description=${t.description||""}><solution-item-icon slot=content-start .designType=${t.type}></solution-item-icon><calcite-action slot=actions-end id=${a??d} icon=edit-attributes .text=${e.edit} scale=s></calcite-action></calcite-list-item>`})}</calcite-list>${i.map(t=>{let a=`edit-action-${t.id}`,c=`edit-popover-${t.id}`,s=this._openPopoverId===t.id;return n`<calcite-popover id=${c??d} .label=${e.editItemContent} .referenceElement=${a} placement=auto @calcitePopoverBeforeOpen=${()=>this._handleItemPopoverOpen(t)} @calcitePopoverClose=${()=>this._handleCloseItemPopover()}><div class="popover-content"><calcite-label>${e.title}<calcite-input-text .value=${s?this._editingItemTitle:t.title} @input=${r=>{this._editingItemTitle=r.target.value}}></calcite-input-text></calcite-label><calcite-label class="popover-field">${e.description}<calcite-text-area .value=${s?this._editingItemDescription:t.description} resize=none rows=4 @input=${r=>{this._editingItemDescription=r.target.value}}></calcite-text-area></calcite-label><div class="popover-actions"><calcite-button appearance=solid @click=${r=>{r.stopPropagation(),this._handleApplyItemChanges(t.id)}}>${e.apply}</calcite-button><calcite-button appearance=outline @click=${async r=>{r.stopPropagation(),await this._handleClosePopover(c)}}>${e.close}</calcite-button></div></div></calcite-popover>`})}</div>`}_renderFeatureLayerTab(){let e=this._translations,i=this._design?.featureLayer?.layers||[],t=this._design?.featureLayer?.addLayers||!1,a=i[this._selectedLayerIndex],c=a?.name||"",s=a?.description||"",r=a?.type||"Point";return n`<calcite-flow><calcite-flow-item .selected=${!this._isAddingLayer&&!this._isEditingField&&!this._isAddingNewField}><div class="feature-layer-tab"><div class="layer-selector-container"><calcite-label>${e.layer}<calcite-combobox .label=${e.layer} selection-mode=single clear-disabled @calciteComboboxChange=${l=>this._handleLayerSelect(l)}>${i.map((l,h)=>{let o=this._getLayerTypeIcon(l.type);return n`<calcite-combobox-item .value=${h.toString()} text-label=${l.name??d} .heading=${l.name} .icon=${o} .selected=${h===this._selectedLayerIndex}></calcite-combobox-item>`})}</calcite-combobox></calcite-label>${t&&n`<calcite-button icon-start=plus appearance=outline @click=${this._handleAddLayer}>${e.addLayer}</calcite-button>`||""}</div>${a&&n`<div class="layer-properties-container"><calcite-label>${e.name}<calcite-input-text .placeholder=${e.layerNamePlaceholder} .value=${c} @input=${l=>this._handleLayerNameChange(l.target.value)}></calcite-input-text></calcite-label><calcite-label>${e.type}<calcite-combobox .label=${e.type} selection-mode=single clear-disabled @calciteComboboxChange=${l=>this._handleLayerTypeChange(l)}><calcite-combobox-item value=Point text-label=${e.pointLayer??d} .heading=${e.pointLayer} icon=point .selected=${r==="Point"}></calcite-combobox-item><calcite-combobox-item value=Polyline text-label=${e.lineLayer??d} .heading=${e.lineLayer} icon=line .selected=${r==="Polyline"}></calcite-combobox-item><calcite-combobox-item value=Polygon text-label=${e.polygonLayer??d} .heading=${e.polygonLayer} icon=polygon .selected=${r==="Polygon"}></calcite-combobox-item><calcite-combobox-item value=Table text-label=${e.tableLayer??d} .heading=${e.tableLayer} icon=table .selected=${r==="Table"}></calcite-combobox-item></calcite-combobox></calcite-label></div>`||""}${a&&n`<div class="layer-description-container"><calcite-label>${e.description}<calcite-text-area .placeholder=${e.layerDescriptionPlaceholder} .value=${s} resize=none @input=${l=>this._handleLayerDescriptionChange(l.target.value)}></calcite-text-area></calcite-label></div>`||""}${a&&n`<div class="fields-section"><calcite-label>${e.fields}<calcite-table bordered .caption=${e.fields}><calcite-table-row slot=table-header><calcite-table-header .heading=${e.displayName}></calcite-table-header><calcite-table-header .heading=${e.fieldName}></calcite-table-header><calcite-table-header .heading=${e.type}></calcite-table-header><calcite-table-header .heading=${e.domain}></calcite-table-header><calcite-table-header heading></calcite-table-header></calcite-table-row>${this._renderFieldRows(a)}</calcite-table></calcite-label><calcite-button icon-start=plus appearance=transparent width=auto class="add-field-button" @click=${this._handleAddField}>${e.addField}</calcite-button><div class="system-fields-note"><calcite-icon icon=information scale=s class="info-icon-blue"></calcite-icon><span>${e.systemFieldsNote} ${this._getSystemFieldsList(a)}</span></div></div>`||""}</div>${this._shouldShowRemoveLayerButton(a)&&n`<calcite-button slot=footer appearance=transparent kind=danger width=full @click=${this._handleRemoveLayer}>${e.removeLayer}</calcite-button>`||""}</calcite-flow-item>${this._isEditingField&&n`<calcite-flow-item heading="Edit field" selected @calciteFlowItemBack=${this._handleEditFieldBack}><calcite-button slot=header-actions-end appearance=outline kind=danger scale=m .disabled=${this._editingFieldType==="required"} @click=${this._handleDeleteField}>${e.delete}</calcite-button><calcite-button slot=header-actions-end appearance=outline scale=m @click=${this._handleApplyFieldChanges}>${e.apply}</calcite-button><div class="feature-layer-tab"><div class="layer-properties-container"><calcite-label>${e.displayName}<calcite-input-text .value=${this._editingFieldDisplayName} @input=${l=>this._editingFieldDisplayName=l.target.value}></calcite-input-text></calcite-label><calcite-label>${e.fieldName}<calcite-input-text .value=${this._editingFieldName} .disabled=${this._editingFieldType==="required"} @input=${l=>this._editingFieldName=l.target.value}></calcite-input-text></calcite-label></div><div class="layer-description-container"><calcite-label>${e.description}<calcite-text-area .value=${this._editingFieldDescription} resize=none @input=${l=>this._editingFieldDescription=l.target.value}></calcite-text-area></calcite-label></div><div class="layer-properties-container"><calcite-label>${e.type}<calcite-combobox .label=${e.type} selection-mode=single clear-disabled .disabled=${this._editingFieldType==="required"} @calciteComboboxChange=${l=>this._handleEditFieldTypeChange(l)}><calcite-combobox-item value=string text-label=${e.stringType??d} .heading=${e.stringType} .selected=${this._editingFieldTypeValue==="string"}></calcite-combobox-item><calcite-combobox-item value=integer text-label=${e.integerType??d} .heading=${e.integerType} .selected=${this._editingFieldTypeValue==="integer"}></calcite-combobox-item><calcite-combobox-item value=double text-label=${e.doubleType??d} .heading=${e.doubleType} .selected=${this._editingFieldTypeValue==="double"}></calcite-combobox-item><calcite-combobox-item value=date text-label=${e.dateType??d} .heading=${e.dateType} .selected=${this._editingFieldTypeValue==="date"}></calcite-combobox-item><calcite-combobox-item value=guid text-label=${e.guidType??d} .heading=${e.guidType} .selected=${this._editingFieldTypeValue==="guid"}></calcite-combobox-item></calcite-combobox></calcite-label>${this._editingFieldTypeValue==="string"&&n`<calcite-label>${e.length}<calcite-input-number .value=${this._editingFieldLength.toString()} .disabled=${this._editingFieldType==="required"} @input=${l=>this._editingFieldLength=parseInt(l.target.value)||255}></calcite-input-number></calcite-label>`||""}</div>${this._editingFieldTypeValue==="string"&&n`<div class="domain-section"><calcite-label>Domain</calcite-label>${this._editingFieldChoiceList&&this._editingFieldChoiceList.length>0?n`<div><div class="domain-list">${this._editingFieldChoiceList.map((l,h)=>n`<div class="domain-item" draggable @dragstart=${o=>this._handleEditFieldChoiceDragStart(h,o)} @dragover=${o=>o.preventDefault()} @drop=${o=>this._handleEditFieldChoiceDrop(h,o)}><calcite-icon icon=drag scale=s class="drag-handle"></calcite-icon><calcite-input-text .value=${l} @input=${o=>this._handleUpdateEditFieldChoice(h,o.target.value)}></calcite-input-text><calcite-button icon-start=x appearance=transparent scale=s kind=neutral @click=${()=>this._handleRemoveEditFieldChoice(h)}></calcite-button></div>`)}</div><calcite-button icon-start=plus appearance=transparent width=auto class="add-field-button" @click=${this._handleAddEditFieldChoice}>\r\n Add value</calcite-button></div>`:n`<calcite-button icon-start=plus appearance=transparent width=auto class="add-field-button" @click=${this._handleAddEditFieldChoice}>\r\n Add domain list</calcite-button>`}</div>`||""}</div></calcite-flow-item>`||""}${this._isAddingLayer&&n`<calcite-flow-item heading="Add Layer" selected @calciteFlowItemBack=${this._handleAddLayerBack}><calcite-button slot=header-actions-end appearance=outline scale=m @click=${this._handleAddLayerDone}>${e.done}</calcite-button><div class="feature-layer-tab"><div class="layer-properties-container"><calcite-label>${e.name}<calcite-input-text .placeholder=${e.layerNamePlaceholder} .value=${this._newLayerName} @input=${l=>this._handleNewLayerNameChange(l.target.value)}></calcite-input-text></calcite-label><calcite-label>${e.type}<calcite-combobox .label=${e.type} selection-mode=single clear-disabled @calciteComboboxChange=${l=>this._handleNewLayerTypeChange(l)}><calcite-combobox-item value=Point text-label=${e.pointLayer??d} .heading=${e.pointLayer} icon=point .selected=${this._newLayerType==="Point"}></calcite-combobox-item><calcite-combobox-item value=Polyline text-label=${e.lineLayer??d} .heading=${e.lineLayer} icon=line .selected=${this._newLayerType==="Polyline"}></calcite-combobox-item><calcite-combobox-item value=Polygon text-label=${e.polygonLayer??d} .heading=${e.polygonLayer} icon=polygon .selected=${this._newLayerType==="Polygon"}></calcite-combobox-item><calcite-combobox-item value=Table text-label=${e.tableLayer??d} .heading=${e.tableLayer} icon=table .selected=${this._newLayerType==="Table"}></calcite-combobox-item></calcite-combobox></calcite-label></div><div class="layer-description-container"><calcite-label>${e.description}<calcite-text-area .placeholder=${e.layerDescriptionPlaceholder} .value=${this._newLayerDescription} resize=none @input=${l=>this._handleNewLayerDescriptionChange(l.target.value)}></calcite-text-area></calcite-label></div></div></calcite-flow-item>`||""}${this._isAddingNewField&&n`<calcite-flow-item heading="Add Field" selected @calciteFlowItemBack=${this._handleAddFieldBack}><calcite-button slot=header-actions-end appearance=outline scale=m @click=${this._handleAddFieldDone}>${e.done}</calcite-button><div class="feature-layer-tab"><div class="layer-properties-container"><calcite-label>${e.displayName}<calcite-input-text .value=${this._newFieldDisplayName} @input=${l=>this._newFieldDisplayName=l.target.value}></calcite-input-text></calcite-label><calcite-label>${e.fieldName}<calcite-input-text .value=${this._newFieldName} @input=${l=>this._newFieldName=l.target.value}></calcite-input-text></calcite-label></div><div class="layer-description-container"><calcite-label>${e.description}<calcite-text-area .value=${this._newFieldDescription} resize=none @input=${l=>this._newFieldDescription=l.target.value}></calcite-text-area></calcite-label></div><div class="layer-properties-container"><calcite-label>${e.type}<calcite-combobox .label=${e.type} selection-mode=single clear-disabled @calciteComboboxChange=${l=>this._handleNewFieldTypeChange(l)}><calcite-combobox-item value=string text-label=${e.stringType??d} .heading=${e.stringType} .selected=${this._newFieldType==="string"}></calcite-combobox-item><calcite-combobox-item value=integer text-label=${e.integerType??d} .heading=${e.integerType} .selected=${this._newFieldType==="integer"}></calcite-combobox-item><calcite-combobox-item value=double text-label=${e.doubleType??d} .heading=${e.doubleType} .selected=${this._newFieldType==="double"}></calcite-combobox-item><calcite-combobox-item value=date text-label=${e.dateType??d} .heading=${e.dateType} .selected=${this._newFieldType==="date"}></calcite-combobox-item><calcite-combobox-item value=guid text-label=${e.guidType??d} .heading=${e.guidType} .selected=${this._newFieldType==="guid"}></calcite-combobox-item></calcite-combobox></calcite-label>${this._newFieldType==="string"&&n`<calcite-label>${e.length}<calcite-input-number .value=${this._newFieldLength.toString()} @input=${l=>this._newFieldLength=parseInt(l.target.value)||255}></calcite-input-number></calcite-label>`||""}</div>${this._newFieldType==="string"&&n`<div class="domain-section"><calcite-label>Domain</calcite-label>${this._newFieldChoiceList&&this._newFieldChoiceList.length>0?n`<div><div class="domain-list">${this._newFieldChoiceList.map((l,h)=>n`<div class="domain-item" draggable @dragstart=${o=>this._handleNewFieldChoiceDragStart(h,o)} @dragover=${o=>o.preventDefault()} @drop=${o=>this._handleNewFieldChoiceDrop(h,o)}><calcite-icon icon=drag scale=s class="drag-handle"></calcite-icon><calcite-input-text .value=${l} @input=${o=>this._handleUpdateNewFieldChoice(h,o.target.value)}></calcite-input-text><calcite-button icon-start=x appearance=transparent scale=s kind=neutral @click=${()=>this._handleRemoveNewFieldChoice(h)}></calcite-button></div>`)}</div><calcite-button icon-start=plus appearance=transparent width=auto class="add-field-button" @click=${this._handleAddNewFieldChoice}>\r\n Add value</calcite-button></div>`:n`<calcite-button icon-start=plus appearance=transparent width=auto class="add-field-button" @click=${this._handleAddNewFieldChoice}>\r\n Add domain list</calcite-button>`}</div>`||""}</div></calcite-flow-item>`||""}</calcite-flow>`}};_("solution-builder-assistant",p);export{p as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import u from"./LOSZZK4D.js";import t from"./D5FEDX3A.js";import s from"./HIWKSSJD.js";import r from"./ARWREGJS.js";import q from"./BOROZS32.js";import o from"./FUJV2OPO.js";import n from"./CHHIDAIO.js";import k from"./KWFCHK6U.js";import"./BZT6R6HU.js";import j from"./SICXVIQQ.js";import i from"./MYIJ4DQY.js";import"./N4UM4VM2.js";import e from"./3FL3PNLU.js";import{a as I}from"./4DFLLD6V.js";import"./GSODQ7Y6.js";import c from"./IXPYSOIL.js";import{a as w,b as x,c as A}from"./2B4SGB3I.js";import{a as p}from"./PAJG7ACM.js";import"./HBQN25RR.js";import{a as S}from"./SHFWVVGY.js";import"./7NDNEWIB.js";import"./46MUUBPE.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as f}from"./2MOSXHFG.js";import{E as l,F as a,G as m,I as b,K as C,h as g,i as h,q as d}from"./7MSBIQLE.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,{c:O,j:F,n:D,o:$,q:c},,{b:k},,,{g:P,h:M},,{a:y},,,,{a:T,b:R}])=>{var L=g`.back-color-override{background-color:var(--calcite-color-surface-3);--calcite-tab-border-color: var(--calcite-color-surface-4)}:host{--assistant-panel-width: 420px}.display-none{display:none!important}.height-100{height:100%}calcite-tab-nav{padding-bottom:6px;padding-top:6px}calcite-tab{--calcite-color-focus: transparent}calcite-tab>*{--calcite-color-focus: initial}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-border-2);flex:1;min-height:0}.tab-space-0{--calcite-tab-content-space-y: var(--calcite-spacing-none)}.tab-space-md{--calcite-tab-content-space-y: var(--calcite-spacing-md)}solutions-searchsort-toolbar,solutions-deploy-app-nav,solution-details-panel,solutions-deployed-shell,solutions-all-shell,calcite-tab-nav,solution-deployed-card-panel{width:1440px;display:block;max-width:96vw;padding-right:var(--calcite-spacing-none);padding-left:var(--calcite-spacing-none);margin-left:auto;margin-right:auto;box-sizing:border-box}.border{height:var(--calcite-spacing-px);border-bottom-color:var(--calcite-color-border-2);border-bottom-style:solid;border-bottom-width:var(--calcite-border-width-sm);box-sizing:border-box}.overflow-auto{overflow:auto}solution-details-panel{scroll-margin-top:3rem}.main-content{container-type:inline-size;display:flex;flex-direction:column;height:100%;overflow:hidden}.main-content.assistant-open{margin-right:var(--assistant-panel-width)}.assistant-open solutions-searchsort-toolbar,.assistant-open solution-details-panel,.assistant-open solutions-deployed-shell,.assistant-open solutions-all-shell,.assistant-open calcite-tab-nav,.assistant-open solution-deployed-card-panel{margin-left:max(2vw,calc((100vw - 1440px)/2));margin-right:0;width:auto;max-width:1440px}.assistant-panel{position:fixed;top:65px;right:0;bottom:0;width:var(--assistant-panel-width);z-index:400;display:flex;flex-direction:column;box-shadow:-6px 0 8px -4px #00000026}@media(max-width:800px){.assistant-panel{width:100%;box-shadow:none}.main-content.assistant-open{margin-right:0}}.assistant-fab{position:fixed;bottom:var(--calcite-spacing-xxl);right:var(--calcite-spacing-xxl);z-index:500}calcite-tooltip{--calcite-tooltip-max-size-x: 16rem}`,v=class extends m{constructor(){super(),this.initTitleOrId="",this.sortType="relevance",this.useLocalAppConfig=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._isAssistantOpen=!1,this._showFabTooltip=!0,this._activeTab="all-solutions",this._showDeployedCardFetchFailed=!1,this._globalAlerts=[],this._translations=S({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${$}`,this._allCards=[],this._allShell=l(),this._allTab=l(),this._allTabTitle=l(),this._resourcesTab=l(),this._resourcesTabTitle=l(),this._categories=[],this._configContextProvider=p({context:x}),this._delay=!1,this._deployAppNav=l(),this._deployedCardPanel=l(),this._deployCardFetchFailedMessage="",this._deployedCardTab=l(),this._deployedCardTabTitle=l(),this._detailsShell=l(),this._detailsTab=l(),this._detailsTabTitle=l(),this._forceInit=!1,this._getSuggested=!1,this._tabpanelsFixed=!1,this._solutionBuilderTabTitle=l(),this._solutionBuilderPanel=l(),this._solutionBuilderTab=l(),this._builderDesignContextProvider=p({context:A}),this._isMobileContextProvider=p({context:w}),this._mainContentRef=l(),this._mySolutionsShell=l(),this._mySolutionsTab=l(),this._mySolutionsTabTitle=l(),this._sortField="relevance",this._sortOrder="desc",this._telemetryManager=new y,this.deployAppTabSelected=d(),this.deployedCardFetchFailed=d(),this.detailsCardSelected=d(),this.deployedCardSelected=d(),this.metaTagStringsReady=d(),this.sessionRefreshed=d(),this.tabChanged=d(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"displayDeployedCard",this._handleDeployedCardDisplay),this.listenOn(window,"navTabSelected",this._setActiveTab),this.listenOn(window,"forceSelectTab",t=>this.selectTab(t.detail,{})),this.listenOn(window,"showGlobalAlert",this._handleShowGlobalAlert),this.listenOn(window,"openAssistant",()=>{this._openAssistant()}),this.listenOn(window,"closeAssistant",()=>{this._isAssistantOpen=!1}),this.listenOn(window,"arcgis-solution-design-update",this._solutionBuilderSelected)}static{this.properties={appConfig:1,initTab:1,initTitleOrId:1,sortType:1,useLocalAppConfig:5,authentication:16,_isLoaded:16,isMobile:16,_isAssistantOpen:16,_showFabTooltip:16,_activeTab:16,_showDeployedCardFetchFailed:16,_globalAlerts:16,_translations:16}}static{this.styles=L}get _telemetry(){return this._configContextProvider.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextProvider.value?.isEnterprise===!0&&this._configContextProvider.value?.authentication?.CanSearchArcGISOnline===!1}_openAssistant(){this._telemetry?.logEvent({category:c.ASSISTANT,action:"Open"}),this._isAssistantOpen=!0}async selectTab(t,e){if(this._isLoaded||this._forceInit){let i=this._getDefaultSearchOptions(e);switch(this._searchSortToolbar&&(this._searchSortToolbar.scope=t.tabType),t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,i&&await this._allShell.value?.searchSolutions(i);break;case"resources":this._resourcesTab.value.selected=!0,this._resourcesTabTitle.value.selected=!0;break;case"deployed-card":if(this.authentication?.IsSignedIn){if(this._forceInit=!0,this._isLoaded=!1,this._cardFetcherDeployed&&await this._getDeployedSolution(t.tabTitleOrId),this._deployedSolutions?.cards?.length>0){let s;this._deployedSolutions.cards.some(o=>o.id===t.tabTitleOrId?(s=o,this.deployedCardSelected.emit({card:s}),!0):!1),this._isLoaded=!0,this._forceInit=!1}else return this._isLoaded=!0,this._forceInit=!1,this.selectTab({tabTitleOrId:"",tabType:"deployments"},e);break}else await this.authentication?.signIn();case"details":if(this._allCards){let s=P(this._allCards,t.tabTitleOrId);s=s||M(this._allCards,t.tabTitleOrId),s?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(s)):(t.tabType="all-solutions",this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0)}break;case"deployments":this._mySolutionsTab.value.selected=!0,this._mySolutionsTabTitle.value.selected=!0,this._searchSortToolbar&&i?.filter&&this._searchSortToolbar.changeOwnerFilter(i.filter!=="Organization"),i&&await this._mySolutionsShell.value?.searchSolutions(i);break;case"solution-builder":this._solutionBuilderTab.value.selected=!0,this._solutionBuilderTabTitle.value.selected=!0;break}return this._setActiveTab(new CustomEvent("setActiveTab",{detail:t})),this._blurTabs(),this._showDeployedCardFetchFailed&&(this.deployedCardFetchFailed.emit({message:this._deployCardFetchFailedMessage,title:this._translations.failedToOpen}),this._showDeployedCardFetchFailed=!1),!0}else return this._initTab=t,this._initFilters=e,!1}updated(t){this._fixTabpanelFocus(),t.has("_isAssistantOpen")&&this._setScrollbarGutters(this._isAssistantOpen?"stable":"stable both-edges"),!this._resizeObserver&&this._mainContentRef.value&&(this._resizeObserver=new ResizeObserver(e=>{for(let i of e){let s=i.contentRect.width<=800;this.isMobile!==s&&(this.isMobile=s,this._isMobileContextProvider.setValue(s))}}),this._resizeObserver.observe(this._mainContentRef.value))}_fixTabpanelFocus(){if(!this._tabpanelsFixed&&this._allTab.value){let t=[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab,this._solutionBuilderTab];Promise.all(t.map(async e=>{let i=e.value;if(i&&(await i.componentOnReady?.(),i.shadowRoot)){let s=i.shadowRoot.querySelector('[role="tabpanel"]');s&&(s.tabIndex=-1)}})).then(()=>{this._tabpanelsFixed=!0,this._setupTabpanelObserver()}).catch(()=>{this._tabpanelsFixed=!0})}}_setupTabpanelObserver(){this._tabpanelObserver||(this._tabpanelObserver=new MutationObserver(t=>{t.forEach(e=>{if(e.type==="attributes"&&e.attributeName==="tabindex"){let i=e.target;i.getAttribute("role")==="tabpanel"&&i.tabIndex===0&&(i.tabIndex=-1)}})}),[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab,this._solutionBuilderTab].forEach(t=>{let e=t.value;if(e?.shadowRoot){let i=e.shadowRoot.querySelector('[role="tabpanel"]');i&&this._tabpanelObserver.observe(i,{attributes:!0,attributeFilter:["tabindex"]})}}))}async load(){this.useLocalAppConfig&&(this.appConfig=k)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return h`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .assistantOpen=${this._isAssistantOpen} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${a(this._deployAppNav)}></solutions-deploy-app-nav><div class=${`main-content${this._isAssistantOpen?" assistant-open":""}`} ${a(this._mainContentRef)}>${this._isSearchToolbarShowing()&&h`<div class="border"></div>`||""}<solutions-searchsort-toolbar ${a(async i=>{i&&(await this._deployAppNav.value?.componentOnReady(),this._searchSortToolbar=i)})}></solutions-searchsort-toolbar><calcite-loader class=${b(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader>${this._renderGlobalAlerts()}<calcite-tabs class=${b(e)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${a(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${a(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${a(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${a(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${a(this._deployedCardTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${a(this._solutionBuilderTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${a(this._allTab)}><solutions-all-shell class="height-100" ${a(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${a(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._resourcesTab)}><solutions-resources-shell .assistantOpen=${this._isAssistantOpen} class="height-100"></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${a(this._detailsTab)}><solution-details-panel class="height-100" ${a(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" ${a(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._solutionBuilderTab)}><solution-builder-assistant class="shell-container height-100" ${a(this._solutionBuilderPanel)}></solution-builder-assistant></calcite-tab></calcite-tabs></div>${!this._configContextProvider.value?.isEnterprise&&h`<div class=${`assistant-panel${this._isAssistantOpen?"":" display-none"}`}><arcgis-solutions-assistant class="height-100"></arcgis-solutions-assistant></div><calcite-fab aria-label=${this._translations.assistantFabTooltip??C} class=${`assistant-fab${this._isAssistantOpen?" display-none":""}`} icon=effects id=assistant-fab-button @click=${()=>{this._openAssistant(),this._showFabTooltip=!1}} scale=l></calcite-fab><calcite-tooltip class=${b(this._isAssistantOpen?"display-none":"")} .open=${this._showFabTooltip&&!this._isAssistantOpen} placement=leading reference-element=assistant-fab-button><span>${this._translations.assistantFabTooltip}</span></calcite-tooltip>`||""}</calcite-shell>`}loaded(){this._setScrollbarGutters()}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect(),this._tabpanelObserver?.disconnect()}_renderGlobalAlerts(){return I(this._globalAlerts,t=>t.id,t=>h`<calcite-alert .autoClose=${t.autoClose} .autoCloseDuration=${t.autoCloseDuration} .icon=${t.icon} .kind=${t.kind} .label=${t.title||""} @calciteAlertClose=${()=>this._removeGlobalAlert(t.id)} open>${t.title&&h`<div slot=title>${t.title}</div>`||""}<div slot=message>${t.message}</div></calcite-alert>`)}async _handleAuthInit(t){let e=t.detail;e.telemetrySession||(e.telemetrySession=y.getDisabledSession()),this._configContextProvider.setValue(e),e.authentication&&(this.authentication=e.authentication),this._cardFetcherDeployed=new T(e.locale,e.orgUrl,e.portalURL),this._cardsFetcher=new T(e.locale,e.orgUrl,e.portalURL),this._isDisconnectedEnvironment||await this._getSolutions(e.primarySolutionsGroupId,e.agoBasedEnterpriseSolutionsGroupId),this._configContextProvider.value.allCards=this._allCards,this._configContextProvider.value.anonAgolSession=this._cardsFetcher.anonAgolSession,this._configContextProvider.value.agolPortalUrl=this._cardsFetcher.agolPortalUrl,await this._initializeTelemetry(),this._isLoaded=!0,this._setRefreshInterval(),this._initTab?(this.selectTab(this._initTab,this._initFilters),this._logTabViewTelemetry(this._initTab.tabType),this._initTab=void 0,this._initFilters=void 0):this.authentication?.IsSignedIn&&(this.initTab==="details"||this.initTab==="deployed-card"||(this._logTabViewTelemetry(this._activeTab),this._emitMetaTagStrings(this._activeTab)))}_setActiveTab(t){let e=t.detail.tabType,i=this._activeTab!==e;switch(this._activeTab=e,i&&this._logTabViewTelemetry(e),e){case"all-solutions":this._allTabTitle.value?.click();break;case"deployments":this._mySolutionsTabTitle.value?.click();break;case"resources":this._resourcesTabTitle.value?.click();break;case"deployed-card":this._deployedCardTabTitle.value?.click();break;case"details":this._detailsTabTitle.value?.click();break;case"solution-builder":this._solutionBuilderTabTitle.value?.click();break}e!=="details"&&e!=="deployed-card"&&e!=="solution-builder"&&(this._deployAppNav.value.activateMenuItem(e),this.deployAppTabSelected.emit(e),this._emitMetaTagStrings(e))}_logTabViewTelemetry(t,e){let i;switch(t){case"all-solutions":i=c.ALL_SOLUTIONS;break;case"deployments":i=c.DEPLOYMENTS;break;case"resources":i=c.RESOURCES;break;case"details":i=c.SOLUTION_DETAILS;break;case"deployed-card":i=c.DEPLOYMENTS;break}if(!((t==="details"||t==="deployed-card")&&!e)&&i){let s=[];if((t==="details"||t==="deployed-card")&&e){let r=e;s.push(r.title||""),s.push(r.deployCommonId||""),s.push(r.deployVersion||"")}let o=t==="deployed-card"?"Open":"View";this._telemetry?.logEvent({category:i,action:o,dimensions:s.length>0?s:void 0})}}_emitMetaTagStrings(t,e){let i="",s="";switch(t){case"all-solutions":i=this._translations.metaAllSolutionsTitle,s=this._translations.metaAllSolutionsDescription;break;case"deployments":case"deployed-card":i=this._translations.metaDeploymentsTitle,s=this._translations.metaDeploymentsDescription;break;case"resources":i=this._translations.metaResourcesTitle,s=this._translations.metaResourcesDescription;break;case"details":e&&(i=this._translations.metaDetailsTitle.replace("{title}",e.title),s=e.snippet);break}this.metaTagStringsReady.emit({pageType:t,title:i,description:s,detailTemplate:e})}_handleCalciteTabChanged(){this.tabChanged.emit(this._activeTab)}_detailsCardSelected(t){this._activeTab="details",this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail&&(this._selectedDetailsCard=t.detail),this._logTabViewTelemetry("details",this._selectedDetailsCard),this._emitMetaTagStrings("details",this._selectedDetailsCard)}_deployedCardSelected(t){this._activeTab="deployed-card",this._deployedCardTabTitle.value.selected=!0,this._deployedCardTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail?.card&&(this._selectedDeployedCard=t.detail.card),this._logTabViewTelemetry("deployed-card",this._selectedDeployedCard),this._emitMetaTagStrings("deployed-card")}_solutionBuilderSelected(t){t?.detail&&(this._activeTab="solution-builder",this._solutionBuilderTabTitle.value.selected=!0,this._solutionBuilderTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),this._builderDesignContextProvider.value={design:t.detail,updateDesign:e=>{this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,design:e}},isBuilderVisible:!0,setBuilderVisible:e=>{this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,isBuilderVisible:e}}})}_handleDeployedCardDisplay(t){let{card:e,cardRef:i}=t.detail;this.deployedCardSelected.emit({card:e,cardRef:i})}_handleShowGlobalAlert(t){let e=t.detail,i=e.id||`alert-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;this._globalAlerts=[...this._globalAlerts,{...e,id:i}]}_removeGlobalAlert(t){this._globalAlerts=this._globalAlerts.filter(e=>e.id!==t)}async _initializeTelemetry(){let t=this._configContextProvider.value;if(!this.authentication||!t)return;let e=await this._telemetryManager.initializeTelemetry(this.authentication,t);this._configContextProvider.value.telemetrySession=e}async _getSolutions(t,e){if(this._isDisconnectedEnvironment)return[];this._abortController?(this._abortController.abort(),this._abortController=new AbortController):this._abortController=new AbortController;let i=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested,num:100},t,e,this._configContextProvider.value.userSession,this._configContextProvider.value.isEnterprise,this._abortController.signal,{num:1e3});return this._abortController=void 0,this._allCards.length===0&&i?.cards&&(this._allCards=i?.cards),this._allCards}async _getDeployedSolution(t){let e=this._configContextProvider.value.authentication,i=this._configContextProvider.value.userSession;if(e&&i&&e.IsSignedIn){this._abortControllerDeployed?(this._abortControllerDeployed.abort(),this._abortControllerDeployed=new AbortController):this._abortControllerDeployed=new AbortController;let s=O(e);try{let o=await R(e,i,this._cardsFetcher,this._cardFetcherDeployed,D,"created","desc",!1,[],[],this._abortControllerDeployed.signal,s?"My organization's solutions":"My solutions",t);o.cards.length===0||o.cards[0].typeKeywords.indexOf("Deployed")<0?(this._deployCardFetchFailedMessage=this._translations.failedToFetchNotSolution.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):this._deployedSolutions=o}catch(o){let r=o.message;r.indexOf("CONT_0001")>-1||r.indexOf("Item does not exist or is inaccessible.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongId.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):r.indexOf("GWM_0003")>-1||r.indexOf("You do not have permissions to access this resource or perform this operation.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongPermissions.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):(this._showDeployedCardFetchFailed=!0,this._deployCardFetchFailedMessage=""),console.warn(o)}}}_blurTabs(){this._allTabTitle.value?.blur(),this._resourcesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_isSearchToolbarShowing(){return this._activeTab==="all-solutions"||this._activeTab==="deployments"&&this.authentication?.IsSignedIn===!0}_getDefaultSearchOptions(t){let e;if(t){let i=t.domain,s=t.industry==="AEC"?F.AEC:t.industry,o=t.offerType,r=t.searchTerm,E="",n=t.sortField,_=t.owner,u=t.filter;n==="suggested"&&!this.authentication?.IsSignedIn&&(n=this.sortType),e=i||s?{type:i?"domain":s?"industry":""}:void 0,i&&(e=e?{...e,domain:i}:{domain:i}),s&&(e=e?{...e,industry:s}:{industry:s}),r&&(e=e?{...e,searchTerm:r}:{searchTerm:r}),e&&(e={...e,displayValue:E}),n&&(e=e?{...e,sortType:n}:{sortType:n}),o&&(n=o.toLowerCase(),e=e?{...e,sortType:n}:{sortType:n}),_&&(e=e?{...e,owner:_}:{owner:_}),u&&(e=e?{...e,filter:u}:{filter:u})}return e}_setScrollbarGutters(t="stable both-edges"){[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab].forEach(e=>{let i=e.value?.shadowRoot?.firstElementChild;i?.style&&(i.style.scrollbarGutter=t)})}_setRefreshInterval(){let{userSession:t,authentication:e}=this._configContextProvider.value;if(t&&t.tokenDuration&&e?.IsSignedIn){let i=Date.now(),s=(e.Credential?.expires-i)*.95;setInterval(async()=>{if(e.Credential&&e.Credential.expires){await e.Credential?.refreshToken();let o=new Date(e.Credential.expires);t.updateToken(e.Credential.token,o),this.sessionRefreshed.emit(t.token)}},s)}}};f("solutions-deploy-app",v);return v},"identity/IdentityManager","identity/OAuthInfo","portal/Portal","intl",c,e,i,j,k,n,o,q,r,s,t,u)
2
+ import u from"./LOSZZK4D.js";import t from"./D5FEDX3A.js";import s from"./HIWKSSJD.js";import r from"./ARWREGJS.js";import q from"./BOROZS32.js";import o from"./FUJV2OPO.js";import n from"./CHHIDAIO.js";import k from"./KWFCHK6U.js";import"./BZT6R6HU.js";import j from"./SICXVIQQ.js";import i from"./MYIJ4DQY.js";import"./JNLWJUWX.js";import e from"./3FL3PNLU.js";import{a as I}from"./4DFLLD6V.js";import"./GSODQ7Y6.js";import c from"./IXPYSOIL.js";import{a as w,b as x,c as A}from"./2B4SGB3I.js";import{a as p}from"./PAJG7ACM.js";import"./HBQN25RR.js";import{a as S}from"./SHFWVVGY.js";import"./7NDNEWIB.js";import"./46MUUBPE.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as f}from"./2MOSXHFG.js";import{E as l,F as a,G as m,I as b,K as C,h as g,i as h,q as d}from"./7MSBIQLE.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,{c:O,j:F,n:D,o:$,q:c},,{b:k},,,{g:P,h:M},,{a:y},,,,{a:T,b:R}])=>{var L=g`.back-color-override{background-color:var(--calcite-color-surface-3);--calcite-tab-border-color: var(--calcite-color-surface-4)}:host{--assistant-panel-width: 420px}.display-none{display:none!important}.height-100{height:100%}calcite-tab-nav{padding-bottom:6px;padding-top:6px}calcite-tab{--calcite-color-focus: transparent}calcite-tab>*{--calcite-color-focus: initial}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-border-2);flex:1;min-height:0}.tab-space-0{--calcite-tab-content-space-y: var(--calcite-spacing-none)}.tab-space-md{--calcite-tab-content-space-y: var(--calcite-spacing-md)}solutions-searchsort-toolbar,solutions-deploy-app-nav,solution-details-panel,solutions-deployed-shell,solutions-all-shell,calcite-tab-nav,solution-deployed-card-panel{width:1440px;display:block;max-width:96vw;padding-right:var(--calcite-spacing-none);padding-left:var(--calcite-spacing-none);margin-left:auto;margin-right:auto;box-sizing:border-box}.border{height:var(--calcite-spacing-px);border-bottom-color:var(--calcite-color-border-2);border-bottom-style:solid;border-bottom-width:var(--calcite-border-width-sm);box-sizing:border-box}.overflow-auto{overflow:auto}solution-details-panel{scroll-margin-top:3rem}.main-content{container-type:inline-size;display:flex;flex-direction:column;height:100%;overflow:hidden}.main-content.assistant-open{margin-right:var(--assistant-panel-width)}.assistant-open solutions-searchsort-toolbar,.assistant-open solution-details-panel,.assistant-open solutions-deployed-shell,.assistant-open solutions-all-shell,.assistant-open calcite-tab-nav,.assistant-open solution-deployed-card-panel{margin-left:max(2vw,calc((100vw - 1440px)/2));margin-right:0;width:auto;max-width:1440px}.assistant-panel{position:fixed;top:65px;right:0;bottom:0;width:var(--assistant-panel-width);z-index:400;display:flex;flex-direction:column;box-shadow:-6px 0 8px -4px #00000026}@media(max-width:800px){.assistant-panel{width:100%;box-shadow:none}.main-content.assistant-open{margin-right:0}}.assistant-fab{position:fixed;bottom:var(--calcite-spacing-xxl);right:var(--calcite-spacing-xxl);z-index:500}calcite-tooltip{--calcite-tooltip-max-size-x: 16rem}`,v=class extends m{constructor(){super(),this.initTitleOrId="",this.sortType="relevance",this.useLocalAppConfig=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._isAssistantOpen=!1,this._showFabTooltip=!0,this._activeTab="all-solutions",this._showDeployedCardFetchFailed=!1,this._globalAlerts=[],this._translations=S({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${$}`,this._allCards=[],this._allShell=l(),this._allTab=l(),this._allTabTitle=l(),this._resourcesTab=l(),this._resourcesTabTitle=l(),this._categories=[],this._configContextProvider=p({context:x}),this._delay=!1,this._deployAppNav=l(),this._deployedCardPanel=l(),this._deployCardFetchFailedMessage="",this._deployedCardTab=l(),this._deployedCardTabTitle=l(),this._detailsShell=l(),this._detailsTab=l(),this._detailsTabTitle=l(),this._forceInit=!1,this._getSuggested=!1,this._tabpanelsFixed=!1,this._solutionBuilderTabTitle=l(),this._solutionBuilderPanel=l(),this._solutionBuilderTab=l(),this._builderDesignContextProvider=p({context:A}),this._isMobileContextProvider=p({context:w}),this._mainContentRef=l(),this._mySolutionsShell=l(),this._mySolutionsTab=l(),this._mySolutionsTabTitle=l(),this._sortField="relevance",this._sortOrder="desc",this._telemetryManager=new y,this.deployAppTabSelected=d(),this.deployedCardFetchFailed=d(),this.detailsCardSelected=d(),this.deployedCardSelected=d(),this.metaTagStringsReady=d(),this.sessionRefreshed=d(),this.tabChanged=d(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"displayDeployedCard",this._handleDeployedCardDisplay),this.listenOn(window,"navTabSelected",this._setActiveTab),this.listenOn(window,"forceSelectTab",t=>this.selectTab(t.detail,{})),this.listenOn(window,"showGlobalAlert",this._handleShowGlobalAlert),this.listenOn(window,"openAssistant",()=>{this._openAssistant()}),this.listenOn(window,"closeAssistant",()=>{this._isAssistantOpen=!1}),this.listenOn(window,"arcgis-solution-design-update",this._solutionBuilderSelected)}static{this.properties={appConfig:1,initTab:1,initTitleOrId:1,sortType:1,useLocalAppConfig:5,authentication:16,_isLoaded:16,isMobile:16,_isAssistantOpen:16,_showFabTooltip:16,_activeTab:16,_showDeployedCardFetchFailed:16,_globalAlerts:16,_translations:16}}static{this.styles=L}get _telemetry(){return this._configContextProvider.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextProvider.value?.isEnterprise===!0&&this._configContextProvider.value?.authentication?.CanSearchArcGISOnline===!1}_openAssistant(){this._telemetry?.logEvent({category:c.ASSISTANT,action:"Open"}),this._isAssistantOpen=!0}async selectTab(t,e){if(this._isLoaded||this._forceInit){let i=this._getDefaultSearchOptions(e);switch(this._searchSortToolbar&&(this._searchSortToolbar.scope=t.tabType),t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,i&&await this._allShell.value?.searchSolutions(i);break;case"resources":this._resourcesTab.value.selected=!0,this._resourcesTabTitle.value.selected=!0;break;case"deployed-card":if(this.authentication?.IsSignedIn){if(this._forceInit=!0,this._isLoaded=!1,this._cardFetcherDeployed&&await this._getDeployedSolution(t.tabTitleOrId),this._deployedSolutions?.cards?.length>0){let s;this._deployedSolutions.cards.some(o=>o.id===t.tabTitleOrId?(s=o,this.deployedCardSelected.emit({card:s}),!0):!1),this._isLoaded=!0,this._forceInit=!1}else return this._isLoaded=!0,this._forceInit=!1,this.selectTab({tabTitleOrId:"",tabType:"deployments"},e);break}else await this.authentication?.signIn();case"details":if(this._allCards){let s=P(this._allCards,t.tabTitleOrId);s=s||M(this._allCards,t.tabTitleOrId),s?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(s)):(t.tabType="all-solutions",this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0)}break;case"deployments":this._mySolutionsTab.value.selected=!0,this._mySolutionsTabTitle.value.selected=!0,this._searchSortToolbar&&i?.filter&&this._searchSortToolbar.changeOwnerFilter(i.filter!=="Organization"),i&&await this._mySolutionsShell.value?.searchSolutions(i);break;case"solution-builder":this._solutionBuilderTab.value.selected=!0,this._solutionBuilderTabTitle.value.selected=!0;break}return this._setActiveTab(new CustomEvent("setActiveTab",{detail:t})),this._blurTabs(),this._showDeployedCardFetchFailed&&(this.deployedCardFetchFailed.emit({message:this._deployCardFetchFailedMessage,title:this._translations.failedToOpen}),this._showDeployedCardFetchFailed=!1),!0}else return this._initTab=t,this._initFilters=e,!1}updated(t){this._fixTabpanelFocus(),t.has("_isAssistantOpen")&&this._setScrollbarGutters(this._isAssistantOpen?"stable":"stable both-edges"),!this._resizeObserver&&this._mainContentRef.value&&(this._resizeObserver=new ResizeObserver(e=>{for(let i of e){let s=i.contentRect.width<=800;this.isMobile!==s&&(this.isMobile=s,this._isMobileContextProvider.setValue(s))}}),this._resizeObserver.observe(this._mainContentRef.value))}_fixTabpanelFocus(){if(!this._tabpanelsFixed&&this._allTab.value){let t=[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab,this._solutionBuilderTab];Promise.all(t.map(async e=>{let i=e.value;if(i&&(await i.componentOnReady?.(),i.shadowRoot)){let s=i.shadowRoot.querySelector('[role="tabpanel"]');s&&(s.tabIndex=-1)}})).then(()=>{this._tabpanelsFixed=!0,this._setupTabpanelObserver()}).catch(()=>{this._tabpanelsFixed=!0})}}_setupTabpanelObserver(){this._tabpanelObserver||(this._tabpanelObserver=new MutationObserver(t=>{t.forEach(e=>{if(e.type==="attributes"&&e.attributeName==="tabindex"){let i=e.target;i.getAttribute("role")==="tabpanel"&&i.tabIndex===0&&(i.tabIndex=-1)}})}),[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab,this._solutionBuilderTab].forEach(t=>{let e=t.value;if(e?.shadowRoot){let i=e.shadowRoot.querySelector('[role="tabpanel"]');i&&this._tabpanelObserver.observe(i,{attributes:!0,attributeFilter:["tabindex"]})}}))}async load(){this.useLocalAppConfig&&(this.appConfig=k)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return h`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .assistantOpen=${this._isAssistantOpen} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${a(this._deployAppNav)}></solutions-deploy-app-nav><div class=${`main-content${this._isAssistantOpen?" assistant-open":""}`} ${a(this._mainContentRef)}>${this._isSearchToolbarShowing()&&h`<div class="border"></div>`||""}<solutions-searchsort-toolbar ${a(async i=>{i&&(await this._deployAppNav.value?.componentOnReady(),this._searchSortToolbar=i)})}></solutions-searchsort-toolbar><calcite-loader class=${b(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader>${this._renderGlobalAlerts()}<calcite-tabs class=${b(e)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${a(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${a(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${a(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${a(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${a(this._deployedCardTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${a(this._solutionBuilderTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${a(this._allTab)}><solutions-all-shell class="height-100" ${a(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${a(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._resourcesTab)}><solutions-resources-shell .assistantOpen=${this._isAssistantOpen} class="height-100"></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${a(this._detailsTab)}><solution-details-panel class="height-100" ${a(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" ${a(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._solutionBuilderTab)}><solution-builder-assistant class="shell-container height-100" ${a(this._solutionBuilderPanel)}></solution-builder-assistant></calcite-tab></calcite-tabs></div>${!this._configContextProvider.value?.isEnterprise&&h`<div class=${`assistant-panel${this._isAssistantOpen?"":" display-none"}`}><arcgis-solutions-assistant class="height-100"></arcgis-solutions-assistant></div><calcite-fab aria-label=${this._translations.assistantFabTooltip??C} class=${`assistant-fab${this._isAssistantOpen?" display-none":""}`} icon=effects id=assistant-fab-button @click=${()=>{this._openAssistant(),this._showFabTooltip=!1}} scale=l></calcite-fab><calcite-tooltip class=${b(this._isAssistantOpen?"display-none":"")} .open=${this._showFabTooltip&&!this._isAssistantOpen} placement=leading reference-element=assistant-fab-button><span>${this._translations.assistantFabTooltip}</span></calcite-tooltip>`||""}</calcite-shell>`}loaded(){this._setScrollbarGutters()}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect(),this._tabpanelObserver?.disconnect()}_renderGlobalAlerts(){return I(this._globalAlerts,t=>t.id,t=>h`<calcite-alert .autoClose=${t.autoClose} .autoCloseDuration=${t.autoCloseDuration} .icon=${t.icon} .kind=${t.kind} .label=${t.title||""} @calciteAlertClose=${()=>this._removeGlobalAlert(t.id)} open>${t.title&&h`<div slot=title>${t.title}</div>`||""}<div slot=message>${t.message}</div></calcite-alert>`)}async _handleAuthInit(t){let e=t.detail;e.telemetrySession||(e.telemetrySession=y.getDisabledSession()),this._configContextProvider.setValue(e),e.authentication&&(this.authentication=e.authentication),this._cardFetcherDeployed=new T(e.locale,e.orgUrl,e.portalURL),this._cardsFetcher=new T(e.locale,e.orgUrl,e.portalURL),this._isDisconnectedEnvironment||await this._getSolutions(e.primarySolutionsGroupId,e.agoBasedEnterpriseSolutionsGroupId),this._configContextProvider.value.allCards=this._allCards,this._configContextProvider.value.anonAgolSession=this._cardsFetcher.anonAgolSession,this._configContextProvider.value.agolPortalUrl=this._cardsFetcher.agolPortalUrl,await this._initializeTelemetry(),this._isLoaded=!0,this._setRefreshInterval(),this._initTab?(this.selectTab(this._initTab,this._initFilters),this._logTabViewTelemetry(this._initTab.tabType),this._initTab=void 0,this._initFilters=void 0):this.authentication?.IsSignedIn&&(this.initTab==="details"||this.initTab==="deployed-card"||(this._logTabViewTelemetry(this._activeTab),this._emitMetaTagStrings(this._activeTab)))}_setActiveTab(t){let e=t.detail.tabType,i=this._activeTab!==e;switch(this._activeTab=e,i&&this._logTabViewTelemetry(e),e){case"all-solutions":this._allTabTitle.value?.click();break;case"deployments":this._mySolutionsTabTitle.value?.click();break;case"resources":this._resourcesTabTitle.value?.click();break;case"deployed-card":this._deployedCardTabTitle.value?.click();break;case"details":this._detailsTabTitle.value?.click();break;case"solution-builder":this._solutionBuilderTabTitle.value?.click();break}e!=="details"&&e!=="deployed-card"&&e!=="solution-builder"&&(this._deployAppNav.value.activateMenuItem(e),this.deployAppTabSelected.emit(e),this._emitMetaTagStrings(e))}_logTabViewTelemetry(t,e){let i;switch(t){case"all-solutions":i=c.ALL_SOLUTIONS;break;case"deployments":i=c.DEPLOYMENTS;break;case"resources":i=c.RESOURCES;break;case"details":i=c.SOLUTION_DETAILS;break;case"deployed-card":i=c.DEPLOYMENTS;break}if(!((t==="details"||t==="deployed-card")&&!e)&&i){let s=[];if((t==="details"||t==="deployed-card")&&e){let r=e;s.push(r.title||""),s.push(r.deployCommonId||""),s.push(r.deployVersion||"")}let o=t==="deployed-card"?"Open":"View";this._telemetry?.logEvent({category:i,action:o,dimensions:s.length>0?s:void 0})}}_emitMetaTagStrings(t,e){let i="",s="";switch(t){case"all-solutions":i=this._translations.metaAllSolutionsTitle,s=this._translations.metaAllSolutionsDescription;break;case"deployments":case"deployed-card":i=this._translations.metaDeploymentsTitle,s=this._translations.metaDeploymentsDescription;break;case"resources":i=this._translations.metaResourcesTitle,s=this._translations.metaResourcesDescription;break;case"details":e&&(i=this._translations.metaDetailsTitle.replace("{title}",e.title),s=e.snippet);break}this.metaTagStringsReady.emit({pageType:t,title:i,description:s,detailTemplate:e})}_handleCalciteTabChanged(){this.tabChanged.emit(this._activeTab)}_detailsCardSelected(t){this._activeTab="details",this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail&&(this._selectedDetailsCard=t.detail),this._logTabViewTelemetry("details",this._selectedDetailsCard),this._emitMetaTagStrings("details",this._selectedDetailsCard)}_deployedCardSelected(t){this._activeTab="deployed-card",this._deployedCardTabTitle.value.selected=!0,this._deployedCardTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail?.card&&(this._selectedDeployedCard=t.detail.card),this._logTabViewTelemetry("deployed-card",this._selectedDeployedCard),this._emitMetaTagStrings("deployed-card")}_solutionBuilderSelected(t){t?.detail&&(this._activeTab="solution-builder",this._solutionBuilderTabTitle.value.selected=!0,this._solutionBuilderTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),this._builderDesignContextProvider.value={design:t.detail,updateDesign:e=>{this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,design:e}},isBuilderVisible:!0,setBuilderVisible:e=>{this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,isBuilderVisible:e}}})}_handleDeployedCardDisplay(t){let{card:e,cardRef:i}=t.detail;this.deployedCardSelected.emit({card:e,cardRef:i})}_handleShowGlobalAlert(t){let e=t.detail,i=e.id||`alert-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;this._globalAlerts=[...this._globalAlerts,{...e,id:i}]}_removeGlobalAlert(t){this._globalAlerts=this._globalAlerts.filter(e=>e.id!==t)}async _initializeTelemetry(){let t=this._configContextProvider.value;if(!this.authentication||!t)return;let e=await this._telemetryManager.initializeTelemetry(this.authentication,t);this._configContextProvider.value.telemetrySession=e}async _getSolutions(t,e){if(this._isDisconnectedEnvironment)return[];this._abortController?(this._abortController.abort(),this._abortController=new AbortController):this._abortController=new AbortController;let i=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested,num:100},t,e,this._configContextProvider.value.userSession,this._configContextProvider.value.isEnterprise,this._abortController.signal,{num:1e3});return this._abortController=void 0,this._allCards.length===0&&i?.cards&&(this._allCards=i?.cards),this._allCards}async _getDeployedSolution(t){let e=this._configContextProvider.value.authentication,i=this._configContextProvider.value.userSession;if(e&&i&&e.IsSignedIn){this._abortControllerDeployed?(this._abortControllerDeployed.abort(),this._abortControllerDeployed=new AbortController):this._abortControllerDeployed=new AbortController;let s=O(e);try{let o=await R(e,i,this._cardsFetcher,this._cardFetcherDeployed,D,"created","desc",!1,[],[],this._abortControllerDeployed.signal,s?"My organization's solutions":"My solutions",t);o.cards.length===0||o.cards[0].typeKeywords.indexOf("Deployed")<0?(this._deployCardFetchFailedMessage=this._translations.failedToFetchNotSolution.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):this._deployedSolutions=o}catch(o){let r=o.message;r.indexOf("CONT_0001")>-1||r.indexOf("Item does not exist or is inaccessible.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongId.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):r.indexOf("GWM_0003")>-1||r.indexOf("You do not have permissions to access this resource or perform this operation.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongPermissions.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):(this._showDeployedCardFetchFailed=!0,this._deployCardFetchFailedMessage=""),console.warn(o)}}}_blurTabs(){this._allTabTitle.value?.blur(),this._resourcesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_isSearchToolbarShowing(){return this._activeTab==="all-solutions"||this._activeTab==="deployments"&&this.authentication?.IsSignedIn===!0}_getDefaultSearchOptions(t){let e;if(t){let i=t.domain,s=t.industry==="AEC"?F.AEC:t.industry,o=t.offerType,r=t.searchTerm,E="",n=t.sortField,_=t.owner,u=t.filter;n==="suggested"&&!this.authentication?.IsSignedIn&&(n=this.sortType),e=i||s?{type:i?"domain":s?"industry":""}:void 0,i&&(e=e?{...e,domain:i}:{domain:i}),s&&(e=e?{...e,industry:s}:{industry:s}),r&&(e=e?{...e,searchTerm:r}:{searchTerm:r}),e&&(e={...e,displayValue:E}),n&&(e=e?{...e,sortType:n}:{sortType:n}),o&&(n=o.toLowerCase(),e=e?{...e,sortType:n}:{sortType:n}),_&&(e=e?{...e,owner:_}:{owner:_}),u&&(e=e?{...e,filter:u}:{filter:u})}return e}_setScrollbarGutters(t="stable both-edges"){[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab].forEach(e=>{let i=e.value?.shadowRoot?.firstElementChild;i?.style&&(i.style.scrollbarGutter=t)})}_setRefreshInterval(){let{userSession:t,authentication:e}=this._configContextProvider.value;if(t&&t.tokenDuration&&e?.IsSignedIn){let i=Date.now(),s=(e.Credential?.expires-i)*.95;setInterval(async()=>{if(e.Credential&&e.Credential.expires){await e.Credential?.refreshToken();let o=new Date(e.Credential.expires);t.updateToken(e.Credential.token,o),this.sessionRefreshed.emit(t.token)}},s)}}};f("solutions-deploy-app",v);return v},"identity/IdentityManager","identity/OAuthInfo","portal/Portal","intl",c,e,i,j,k,n,o,q,r,s,t,u)
@@ -1 +1 @@
1
- {"noticeTitle":"Build your own solution - Draft","noticeMessage":"Generated with AI by the ArcGIS Solutions assistant (beta)","undo":"Undo","redo":"Redo","name":"Name","namePlaceholder":"Solution name","description":"Description","descriptionPlaceholder":"Solution description","tags":"Tags","tagsPlaceholder":"Add a tag","deploy":"Deploy","viewDiagram":"View Diagram","openHelp":"Open Help","discard":"Discard","contents":"Contents","featureLayer":"Feature Layer","solutionContentItems":"Solution content items","edit":"Edit","editItemContent":"Edit item content","title":"Title","apply":"Apply","close":"Close","solutionThumbnail":"Solution thumbnail"}
1
+ {"noticeTitle":"Build your own solution - Draft","noticeMessage":"Generated with AI by the ArcGIS Solutions assistant (beta)","undo":"Undo","redo":"Redo","name":"Name","namePlaceholder":"Solution name","description":"Description","descriptionPlaceholder":"Solution description","tags":"Tags","tagsPlaceholder":"Add a tag","deploy":"Deploy","viewDiagram":"View Diagram","openHelp":"Open Help","discard":"Discard","contents":"Contents","featureLayer":"Feature Layer","solutionContentItems":"Solution content items","edit":"Edit","editItemContent":"Edit item content","title":"Title","apply":"Apply","close":"Close","solutionThumbnail":"Solution thumbnail","layer":"Layer","addLayer":"Add layer","layerNamePlaceholder":"Enter layer name","type":"Type","pointLayer":"Point layer","lineLayer":"Line layer","polygonLayer":"Polygon layer","tableLayer":"Table","layerDescriptionPlaceholder":"Enter layer description","fields":"Fields","displayName":"Display name","fieldName":"Field name","domain":"Domain","addField":"Add field","systemFieldsNote":"System fields will also be included and cannot be customized:","done":"Done","removeLayer":"Remove layer","delete":"Delete","stringType":"String","integerType":"Integer","doubleType":"Double","dateType":"Date","guidType":"GUID","length":"Length"}
@@ -1 +1 @@
1
- {"noticeTitle":"Build your own solution - Draft","noticeMessage":"Generated with AI by the ArcGIS Solutions assistant (beta)","undo":"Undo","redo":"Redo","name":"Name","namePlaceholder":"Solution name","description":"Description","descriptionPlaceholder":"Solution description","tags":"Tags","tagsPlaceholder":"Add a tag","deploy":"Deploy","viewDiagram":"View Diagram","openHelp":"Open Help","discard":"Discard","contents":"Contents","featureLayer":"Feature Layer","solutionContentItems":"Solution content items","edit":"Edit","editItemContent":"Edit item content","title":"Title","apply":"Apply","close":"Close","solutionThumbnail":"Solution thumbnail"}
1
+ {"noticeTitle":"Build your own solution - Draft","noticeMessage":"Generated with AI by the ArcGIS Solutions assistant (beta)","undo":"Undo","redo":"Redo","name":"Name","namePlaceholder":"Solution name","description":"Description","descriptionPlaceholder":"Solution description","tags":"Tags","tagsPlaceholder":"Add a tag","deploy":"Deploy","viewDiagram":"View Diagram","openHelp":"Open Help","discard":"Discard","contents":"Contents","featureLayer":"Feature Layer","solutionContentItems":"Solution content items","edit":"Edit","editItemContent":"Edit item content","title":"Title","apply":"Apply","close":"Close","solutionThumbnail":"Solution thumbnail","layer":"Layer","addLayer":"Add layer","layerNamePlaceholder":"Enter layer name","type":"Type","pointLayer":"Point layer","lineLayer":"Line layer","polygonLayer":"Polygon layer","tableLayer":"Table","layerDescriptionPlaceholder":"Enter layer description","fields":"Fields","displayName":"Display name","fieldName":"Field name","domain":"Domain","addField":"Add field","systemFieldsNote":"System fields will also be included and cannot be customized:","done":"Done","removeLayer":"Remove layer","delete":"Delete","stringType":"String","integerType":"Integer","doubleType":"Double","dateType":"Date","guidType":"GUID","length":"Length"}
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"./2MOSXHFG.js";import{u as e}from"./7MSBIQLE.js";import"./QPIMTXPL.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./VMZP5GWV.js"),"_translations:,open,userFirstName"],"buffer-tools":[()=>import("./3FZDFAPN.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./2SCW7VSF.js"),"_translations:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapView:,selectedFeaturesIds:,selectingFeatureFromMap,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./CFBQUUDC.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./5HZOUKRN.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("./XVVH74AJ.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./DXXYVHWW.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("./PP7IZNAR.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("./T4B64LSQ.js")],"delete-button":[()=>import("./EACG35UF.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./XD5JASLO.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./EEHNMGTM.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./TRADVQJJ.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./KJNYVH65.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./OZZ2CCGL.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./D3XBFWCF.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,position,showCloseBtn;back,getSelectedFeature,next,refresh,toggleListView,updateCurrentGraphic"],"layer-list":[()=>import("./BFRX6PST.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./XFQNCJ4I.js"),"layerListWidget:,mapView:,visibilityIcon"],"layer-table":[()=>import("./DQ5KCIUN.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("./NTBODSSX.js"),"basemapConfig:,basemapWidget:,mapView:"],"map-card":[()=>import("./J2NEDI2T.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("./WFAI6ZZB.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./XDADY4F7.js"),"enabled,floorFilterWidget:,mapView:"],"map-fullscreen":[()=>import("./ROO45KNC.js"),"fullscreenWidget:,mapView:"],"map-layer-picker":[()=>import("./YEUQVA7X.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("./S37HZZ6Y.js"),"legendWidget:,mapView:"],"map-picker":[()=>import("./MXFEGFHP.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./T3KDTF34.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchConfiguration:,searchTerm,searchWidget:"],"map-select-tools":[()=>import("./FKVDFVJD.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("./K7RFTZ56.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("./NO7Q6ULD.js")],"pdf-download":[()=>import("./RBYBNP2B.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./RNA5LDZ5.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("./UPXLJJKV.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./WJSVRU72.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-builder-assistant":[()=>import("./CQWUX3VC.js"),"_translations:,design"],"solution-configure-titles":[()=>import("./7FF5YSNR.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./HBALPM34.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./EBWKBVOW.js"),"_translations:,card:,debugFailDeployment,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./ZIGRP4UM.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./5CARFDI3.js"),"_translations:,card:,cardRef,diagramKey,open,templateInfos:"],"solution-deploying-dialog":[()=>import("./VDADP5AY.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./F7G3JSDV.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./DHM4CMZF.js"),"_translations:,card:"],"solution-item-accordion":[()=>import("./FPV4WS5B.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./XU2HEOFI.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./HNNENA73.js"),"designType,isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./5OKASTA4.js"),"_translations:,description,heading,headingEn,icon,meridianIcon,sectionHeadingEn,url"],"solution-snapshot-gallery":[()=>import("./7VFHFVJM.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./WXGTKA7P.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("./W3QL6FH2.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./NLILOBN5.js"),"_translations:,sortType;searchSolutions,setSearchOptions"],"solutions-all-shell":[()=>import("./AYCGL3SF.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./3IZ3M36C.js"),"_translations:,appConfig,initTab,initTitleOrId,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./HHR7TKXF.js"),"_translations:,appConfig,assistantOpen,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-panel":[()=>import("./NJJYHW6D.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./VWU4KCEV.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./OAFE6H7U.js"),"_translations:,hideIndustryFilter,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./XAC6OXJQ.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./47IJA2SQ.js"),"_translations:,assistantOpen"],"solutions-searchsort-toolbar":[()=>import("./JOI3ZKK5.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-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"./2MOSXHFG.js";import{u as e}from"./7MSBIQLE.js";import"./QPIMTXPL.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./VMZP5GWV.js"),"_translations:,open,userFirstName"],"buffer-tools":[()=>import("./3FZDFAPN.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./2SCW7VSF.js"),"_translations:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapView:,selectedFeaturesIds:,selectingFeatureFromMap,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./CFBQUUDC.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./5HZOUKRN.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("./XVVH74AJ.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./DXXYVHWW.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("./PP7IZNAR.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("./T4B64LSQ.js")],"delete-button":[()=>import("./EACG35UF.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./XD5JASLO.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./EEHNMGTM.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./TRADVQJJ.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./KJNYVH65.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./OZZ2CCGL.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./D3XBFWCF.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,position,showCloseBtn;back,getSelectedFeature,next,refresh,toggleListView,updateCurrentGraphic"],"layer-list":[()=>import("./BFRX6PST.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./XFQNCJ4I.js"),"layerListWidget:,mapView:,visibilityIcon"],"layer-table":[()=>import("./DQ5KCIUN.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("./NTBODSSX.js"),"basemapConfig:,basemapWidget:,mapView:"],"map-card":[()=>import("./J2NEDI2T.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("./WFAI6ZZB.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./XDADY4F7.js"),"enabled,floorFilterWidget:,mapView:"],"map-fullscreen":[()=>import("./ROO45KNC.js"),"fullscreenWidget:,mapView:"],"map-layer-picker":[()=>import("./YEUQVA7X.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("./S37HZZ6Y.js"),"legendWidget:,mapView:"],"map-picker":[()=>import("./MXFEGFHP.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./T3KDTF34.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchConfiguration:,searchTerm,searchWidget:"],"map-select-tools":[()=>import("./FKVDFVJD.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("./K7RFTZ56.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("./NO7Q6ULD.js")],"pdf-download":[()=>import("./RBYBNP2B.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./RNA5LDZ5.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("./UPXLJJKV.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./WJSVRU72.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-builder-assistant":[()=>import("./5IQSXZTR.js"),"_translations:,design"],"solution-configure-titles":[()=>import("./7FF5YSNR.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./HBALPM34.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./EBWKBVOW.js"),"_translations:,card:,debugFailDeployment,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./ZIGRP4UM.js"),"_translations:,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./5CARFDI3.js"),"_translations:,card:,cardRef,diagramKey,open,templateInfos:"],"solution-deploying-dialog":[()=>import("./VDADP5AY.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./F7G3JSDV.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./DHM4CMZF.js"),"_translations:,card:"],"solution-item-accordion":[()=>import("./FPV4WS5B.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./XU2HEOFI.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./HNNENA73.js"),"designType,isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./5OKASTA4.js"),"_translations:,description,heading,headingEn,icon,meridianIcon,sectionHeadingEn,url"],"solution-snapshot-gallery":[()=>import("./7VFHFVJM.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./WXGTKA7P.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("./W3QL6FH2.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./NLILOBN5.js"),"_translations:,sortType;searchSolutions,setSearchOptions"],"solutions-all-shell":[()=>import("./AYCGL3SF.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./TZ64DKVD.js"),"_translations:,appConfig,initTab,initTitleOrId,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./HHR7TKXF.js"),"_translations:,appConfig,assistantOpen,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-panel":[()=>import("./NJJYHW6D.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./VWU4KCEV.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./OAFE6H7U.js"),"_translations:,hideIndustryFilter,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./XAC6OXJQ.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./47IJA2SQ.js"),"_translations:,assistantOpen"],"solutions-searchsort-toolbar":[()=>import("./JOI3ZKK5.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-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)
@@ -33,6 +33,30 @@ export abstract class SolutionBuilderAssistant extends LitElement {
33
33
  apply: string;
34
34
  close: string;
35
35
  solutionThumbnail: string;
36
+ layer: string;
37
+ addLayer: string;
38
+ layerNamePlaceholder: string;
39
+ type: string;
40
+ pointLayer: string;
41
+ lineLayer: string;
42
+ polygonLayer: string;
43
+ tableLayer: string;
44
+ layerDescriptionPlaceholder: string;
45
+ fields: string;
46
+ displayName: string;
47
+ fieldName: string;
48
+ domain: string;
49
+ addField: string;
50
+ systemFieldsNote: string;
51
+ done: string;
52
+ removeLayer: string;
53
+ delete: string;
54
+ stringType: string;
55
+ integerType: string;
56
+ doubleType: string;
57
+ dateType: string;
58
+ guidType: string;
59
+ length: string;
36
60
  } & T9nMeta<{
37
61
  noticeTitle: string;
38
62
  noticeMessage: string;
@@ -57,6 +81,30 @@ export abstract class SolutionBuilderAssistant extends LitElement {
57
81
  apply: string;
58
82
  close: string;
59
83
  solutionThumbnail: string;
84
+ layer: string;
85
+ addLayer: string;
86
+ layerNamePlaceholder: string;
87
+ type: string;
88
+ pointLayer: string;
89
+ lineLayer: string;
90
+ polygonLayer: string;
91
+ tableLayer: string;
92
+ layerDescriptionPlaceholder: string;
93
+ fields: string;
94
+ displayName: string;
95
+ fieldName: string;
96
+ domain: string;
97
+ addField: string;
98
+ systemFieldsNote: string;
99
+ done: string;
100
+ removeLayer: string;
101
+ delete: string;
102
+ stringType: string;
103
+ integerType: string;
104
+ doubleType: string;
105
+ dateType: string;
106
+ guidType: string;
107
+ length: string;
60
108
  }>;
61
109
  /** Solution design - can be set externally for demo/testing */
62
110
  accessor design: ISolutionDesign | null;