@esri/solutions-components 1.2.0-next.171 → 1.2.0-next.173
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{GMMSJ5Q4.js → 3LWAQ7AF.js} +1 -1
- package/dist/cdn/{7Y2SX5Z3.js → 5RGOEMSZ.js} +1 -1
- package/dist/cdn/{7LOKKH5S.js → 6E372BGJ.js} +1 -1
- package/dist/cdn/{KYROITG2.js → 6HGHAHIS.js} +2 -2
- package/dist/cdn/{OTQC3GBA.js → A5BPM6QU.js} +1 -1
- package/dist/cdn/{2OFTJJ6V.js → A6ARY54F.js} +1 -1
- package/dist/cdn/{Z5PB2GOW.js → BBLQOGSJ.js} +1 -1
- package/dist/cdn/{2LHLMWRB.js → BCDZGJVM.js} +1 -1
- package/dist/cdn/{YFLYHPA6.js → D32GUK4A.js} +2 -2
- package/dist/cdn/{HE7XA5HU.js → D3J5OW3S.js} +1 -1
- package/dist/cdn/{2NELDSSV.js → D5JJR6FB.js} +1 -1
- package/dist/cdn/{XLDH3RFW.js → FKFSLIPR.js} +1 -1
- package/dist/cdn/{RHCEUDFU.js → FNBUXUD2.js} +2 -2
- package/dist/cdn/{IMVJT6BJ.js → GYPFCKOU.js} +1 -1
- package/dist/cdn/IFTQ7B3Z.js +107 -0
- package/dist/cdn/ITNW7ZOV.js +136 -0
- package/dist/cdn/{HCRCP6KN.js → IYS7VNW2.js} +1 -1
- package/dist/cdn/{2SZKHTPC.js → J7NP5DYG.js} +1 -1
- package/dist/cdn/JSKF75Y2.js +71 -0
- package/dist/cdn/{3CQKFKEK.js → LPTAQATM.js} +1 -1
- package/dist/cdn/{YDFVDQAV.js → MU73R5NY.js} +1 -1
- package/dist/cdn/{QHAEHGX2.js → OTIQS35F.js} +1 -1
- package/dist/cdn/{VS55ZNDJ.js → PNN4TKP7.js} +1 -1
- package/dist/cdn/{WE43YFKO.js → Q2FDTNYN.js} +1 -1
- package/dist/cdn/{TNKBHEPU.js → QUEH5DH3.js} +1 -1
- package/dist/cdn/{X22C5ANH.js → QYFQRPK7.js} +1 -1
- package/dist/cdn/RFX3TZLW.js +84 -0
- package/dist/cdn/{U2FD6RFU.js → RPQK3WWX.js} +1 -1
- package/dist/cdn/{XCWRZEQ4.js → RQX7YG2W.js} +1 -1
- package/dist/cdn/{MI3DGRKT.js → SUJPMF5X.js} +1 -1
- package/dist/cdn/{QCDP3DKE.js → TEYMDLPT.js} +1 -1
- package/dist/cdn/{UN4QHPCM.js → VPH5M6ZG.js} +1 -1
- package/dist/cdn/{VIXMGIRH.js → VS5S2XRH.js} +1 -1
- package/dist/cdn/{MITVRON5.js → W67U7B6H.js} +1 -1
- package/dist/cdn/{F7AUJLBP.js → XK2BNMVQ.js} +1 -1
- package/dist/cdn/{NRKNJXAQ.js → YDMRYUCT.js} +1 -1
- package/dist/cdn/{54R4HFPD.js → YTXS76QG.js} +1 -1
- package/dist/cdn/{RRCINHTU.js → YXZ5XCZU.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/getRelatedInfos.js +1 -1
- package/dist/chunks/interfaces.js +30 -25
- package/dist/components/solution-deployed-card/customElement.js +2 -2
- package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -6
- package/dist/components/solutions-all-shell/customElement.js +2 -1
- package/dist/components/solutions-deploy-app/customElement.js +3 -11
- package/dist/components/solutions-deployed-panel/customElement.js +2 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-searchsort-toolbar/customElement.js +3 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +22 -21
- package/dist/solutions-components_commit.txt +4 -4
- package/dist/utils/interfaces.d.ts +6 -0
- package/package.json +1 -1
- package/dist/cdn/6PIEXXH4.js +0 -136
- package/dist/cdn/IVTTTYHQ.js +0 -71
- package/dist/cdn/JPRTR5CD.js +0 -107
- package/dist/cdn/RPUGJKAC.js +0 -84
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import e from"./
|
|
2
|
+
import e from"./RPQK3WWX.js";import d from"./D32GUK4A.js";import{b as w}from"./W4YXXJAS.js";import{b}from"./77CU4WA2.js";import"./TRGFYBOH.js";import{a as g}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as m}from"./ABSRNM72.js";import{F as a,G as n,H as v,K as l,L as c,h as f,i as s,j as p}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([$,R,{n:y},{o:x}])=>{var L=f`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the 'License');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import{a as S}from"./QSNYUY6K.js";import"./YMMGYOOO.js";import f from"./
|
|
2
|
+
import{a as S}from"./QSNYUY6K.js";import"./YMMGYOOO.js";import f from"./RPQK3WWX.js";import e from"./D32GUK4A.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./TRGFYBOH.js";import c from"./N6IQW2WT.js";import a from"./C2LXNVZ5.js";import{a as L}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as v}from"./ABSRNM72.js";import{F as p,G as r,H as I,J as b,h as _,i as l,l as m,r as d,u as g}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([k,F,x,,{c:w,j:M},{f:u},{n:$}])=>{function C(n){return n?.indexOf("http://")!==-1}function f(n){return C(n)?n.replace(/^http:\/\//,"https://"):n}function T(n,e,t){return t&&t.forEach(a=>{n.allLayers.forEach(i=>{i&&i.url===a.sourceUrl&&(i.url=f(a.proxyUrl),i.portalItem&&i.portalItem.when(()=>{i.portalItem.url=f(a.proxyUrl)}),e.request?.interceptors?.push({urls:a.sourceUrl,before:s=>{s.url&&s.url===a.sourceUrl&&(s.url=f(a.proxyUrl))}}))})}),n}var V=_`@layer{
|
|
3
3
|
/** @license
|
|
4
4
|
* Copyright 2025 Esri
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./IYS7VNW2.js";import{b as u}from"./W4YXXJAS.js";import{b as m}from"./77CU4WA2.js";import{a as g}from"./6S75SIVV.js";import{b as p}from"./ABSRNM72.js";import{F as l,G as d,H as h,L as o,h as c,i}from"./5CQPQ7AE.js";export default $arcgis.t(([,,,{b:a}])=>{var f=c`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./W67U7B6H.js";import b from"./FKFSLIPR.js";import a from"./D32GUK4A.js";import{b as _}from"./W4YXXJAS.js";import{b as x}from"./77CU4WA2.js";import{a as f}from"./6S75SIVV.js";import{b as m}from"./ABSRNM72.js";import{G as g,H as u,J as h,L as n,h as p,i,r as o}from"./5CQPQ7AE.js";export default $arcgis.t(([{a:y,c:v,n:l},{a:b},{d:s,h:w,i:S}])=>{var C=p`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -242,4 +242,4 @@ calcite-shell {
|
|
|
242
242
|
|
|
243
243
|
.solution-deployed-action {
|
|
244
244
|
--calcite-color-focus: initial;
|
|
245
|
-
}`,c=class extends u{constructor(){super(),this.diagramKey="",this.open=!1,this.templateInfos=[],this._accordionLoading=!1,this._configureTitlesOpen=!1,this._deleteDialogOpen=!1,this._hasNewVersion=!1,this._isDiagramOpen=!1,this._isNameConflict=!1,this._invalidNameMessage="",this._showSuccessAlert=!1,this._showFailedAlert=!1,this._showItemUpdateLoading=!1,this._templateInfoGraph=[],this._translations=f({name:"solution-deployed-card-panel",blocking:!0}),this._configContextConsumer=x({context:_,subscribe:!0,callback:async e=>{e&&(this._isOrgAdmin=e.authentication?.PortalUserSubset?.role==="org_admin"||y(e.authentication),this._user=e.authentication?.Portal?.user)}}),this._isOrgAdmin=!1,this.navTabSelected=o(),this.forceSelectTab=o(),this.sortTypeChanged=o(),this.solutionConfigureDialogClose=o(),this._nonSolutionDependencyItems=[],this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected),this.listenOn(window,"displayDeployedCard",()=>{this._showSuccessAlert=!0})}static{this.properties={card:[0,{},{attribute:!1}],cardRef:1,diagramKey:1,open:[5,{},{type:Boolean}],templateInfos:[0,{},{attribute:!1}],_accordionLoading:[16,{},{state:!0}],_configureTitlesOpen:[16,{},{state:!0}],_deleteDialogOpen:[16,{},{state:!0}],_hasNewVersion:[16,{},{state:!0}],_isDiagramOpen:[16,{},{state:!0}],_isNameConflict:[16,{},{state:!0}],_invalidNameMessage:[16,{},{state:!0}],_showSuccessAlert:[16,{},{state:!0}],_showFailedAlert:[16,{},{state:!0}],_showItemUpdateLoading:[16,{},{state:!0}],_templateInfoGraph:[16,{},{state:!0}],_translations:[16,{},{state:!0}],_nonSolutionDependencyItems:[16,{},{state:!0}]}}static{this.styles=C}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){return i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="padding-end-xxl panel-background-2 border-none" slot=panel-bottom><div class="display-flex flex-direction-column overflow-hidden"><div class="background-color-2 padding-top-xxl">${this._getSolutionPanel()}</div>${this._getSolutionContents()}</div></calcite-panel><calcite-shell-panel class="panel-background-1" slot=panel-end>${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</calcite-shell-panel>${this._renderDiagramDialog()}${this._getConfigureTitlesDialog()}${this._getDeleteDialog()}${this._getSuccessDeployAlert()}</calcite-shell>`}async _deployedCardSelected(e){let t=e.detail;this.card=t.card,this.cardRef=t.cardRef,this.templateInfos=[],this._accordionLoading=!0,this.templateInfos=await this._getTemplates(),this._accordionLoading=!1;let a=await b(this._configContextConsumer.value.userSession,this.card);this._nonSolutionDependencyItems=a._nonSolutionDependencyItems,setTimeout(async()=>{await this._accordionRef.expandFirstItem(),a.uniqueIitemIds.length>0&&(this._accordionRef.listSelectionMode="multiple",this._accordionRef.selectItems(a.uniqueIitemIds))},250);let r=w(this._configContextConsumer.value?.allCards||[],this.card.deployCommonId),d=!1;if(r){let D=s(r),$=s(this.card);d=D>$}this._hasNewVersion=d}_handleDeployAppTabSelected(e){e.detail==="deployed-card"&&this.sortTypeChanged.emit("")}_getButtons(){let e=this._configContextConsumer.value?.userSession?.username,t=this.card?.owner===e||this._isOrgAdmin,a=t?"display-none":"";return i`<div class="display-flex flex-direction-column padding-xxl"><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" .disabled=${!t} id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${h(a)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button></div>`}_openConfigureTitlesDialog(){this._configureTitlesOpen=!0}_getConfigureTitlesDialog(){return this._configureTitlesOpen?i`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async()=>{this.templateInfos=await this._getTemplates(),this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this.templateInfos=await this._getTemplates()}} .open=${this._configureTitlesOpen} source="Details Page" .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_viewDocumentation(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),window.open(this.card.learnMoreUrl,"_blank")}_openItemDetails(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Item Details",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),window.open(this.card.itemUrl,"_blank")}_getOwnerSection(){if(this._configContextConsumer?.value)return i`<div class="display-flex padding-bottom-xxl margin-start-end-xxl flex-direction-column"><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override" layout=inline scale=l>${this._translations.aboutYourSolutionOwner}</calcite-label></div><solution-user-avatar .fullname=${this._user?.username===this.card?.owner?this._user?.fullName:void 0} .lookupProfile=${this._user?.username!==this.card?.owner} .thumbnailUrl=${this._user?.username===this.card?.owner?this._user?.thumbnailUrl:void 0} .username=${this.card?.owner}></solution-user-avatar></div>`}async _openDiagram(e){e.stopPropagation();let t=await this._getTemplates();t&&(this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"View Diagram",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),this._templateInfoGraph=t,this._isDiagramOpen=!0)}async _getTemplates(){return this.cardRef?await this.cardRef.getTemplates():this.card?await v(this.card.id,this._configContextConsumer.value.userSession):void 0}_getSolutionVersionCard(){let e=this._hasNewVersion?this._translations.newVersionAvailable:this._translations.youHaveTheLatestVersion;return i`<div class="padding-xxl display-flex flex-direction-column"><calcite-label class="font-weight-med label-override" layout=inline scale=l slot=heading>${this._translations.solutionVersion.replace("{{version}}",this.card?.deployVersion||"")}</calcite-label><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center"><calcite-icon class="icon-color" icon=clock-forward scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span>${e}</span></div></div></div>${this._hasNewVersion?i`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openNewVersionSolution} width=full>${this._translations.learnMoreNewVersion}</calcite-button>`:""}</div>`}async _openNewVersionSolution(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"View Latest Version",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),await new Promise(a=>setTimeout(a,100));let t=S(this._configContextConsumer.value.allCards,this.card.deployCommonId);t&&this.forceSelectTab.emit({tabType:"details",tabTitleOrId:t})}_getSolutionPanel(){let e=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400"),t=this._configContextConsumer.value?.userSession;return i`<calcite-panel class="font-size-override panel-background-1"><div class="display-flex flex-direction-row"><div class="image-width margin-xl"><img alt=${this.card?.title??n} src=${e?`${e}&token=${t?.token}`:""}></div><div class="display-flex flex-direction-column"><h1 class="title-font margin-block-start-end-0 padding-end-xxl padding-start-sm padding-top-xxl padding-bottom-xxl line-height-1">${this.card?.title}</h1><div class="display-flex flex-direction-column padding-bottom-xxl padding-start-sm"><div class="display-flex align-items-start padding-bottom-xxl"><div class="font-1 padding-end-1 line-height-xxl">${this.card?.snippet}</div></div><div class="display-flex"><div class="display-flex"><calcite-label class="label-override icon-color" layout=inline><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this._translations.aboutYourSolutionDeployedDate.replace("{{deployedDate}}",this.card?.created||"")}</calcite-label></div></div></div></div></div></calcite-panel>`}_getSolutionContents(){let e=[...new Set(this._nonSolutionDependencyItems.map(t=>t.controlItemId))];return i`<calcite-panel class="panel-background-1 padding-top-xxl"><calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded><div class="margin-block-start-end-0 heading-font " slot=content-start>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}",this.templateInfos.length.toString())}</div><div class="overflow-auto">${this._accordionLoading?i`<calcite-loader .label=${this._translations.loadingText} scale=m></calcite-loader>`:i`<solution-item-accordion .itemRelationshipDependencies=${e} .listSelectionMode=${e.length>0?"multiple":"single"} .reuseWarning=${this._translations.itemUsedInOtherSolutions} .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords} ${g(async t=>{t&&(this._accordionRef=t)})}></solution-item-accordion>`}</div></calcite-accordion-item></calcite-accordion></calcite-panel>`}_getDeleteDialog(){return this._deleteDialogOpen?i`<solution-delete-dialog .card=${this.card} @solutionDeleted=${()=>setTimeout(()=>this.navTabSelected.emit({tabType:"deployments"}),100)} @solutionDeleteDialogBeforeClose=${()=>{this._deleteDialogOpen=!1}} .open=${this._deleteDialogOpen} source="Details Page"></solution-delete-dialog>`:""}_getSuccessDeployAlert(){return i`<calcite-alert auto-close auto-close-duration=medium icon=check-circle kind=success .label=${this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title??"")} .open=${this._showSuccessAlert} @calciteAlertClose=${()=>{this._showSuccessAlert=!1}}><div slot=title>${this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title??"")}</div></calcite-alert>`}_renderDiagramDialog(){return this._isDiagramOpen?i`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")??n} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled scale=m width=l><solution-item-diagram .diagramKey=${this.diagramKey!==""?this.diagramKey:this._configContextConsumer.value?.diagramKey??""} .templateInfoGraph=${this._templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}async _deleteSolution(){this._deleteDialogOpen=!0}};m("solution-deployed-card-panel",c);return c},a,b,c)
|
|
245
|
+
}`,c=class extends u{constructor(){super(),this.diagramKey="",this.open=!1,this.templateInfos=[],this._accordionLoading=!1,this._configureTitlesOpen=!1,this._deleteDialogOpen=!1,this._hasNewVersion=!1,this._isDiagramOpen=!1,this._isNameConflict=!1,this._invalidNameMessage="",this._showSuccessAlert=!1,this._showFailedAlert=!1,this._showItemUpdateLoading=!1,this._templateInfoGraph=[],this._translations=f({name:"solution-deployed-card-panel",blocking:!0}),this._configContextConsumer=x({context:_,subscribe:!0,callback:async e=>{e&&(this._isOrgAdmin=e.authentication?.PortalUserSubset?.role==="org_admin"||v(e.authentication),this._user=e.authentication?.Portal?.user)}}),this._isOrgAdmin=!1,this.navTabSelected=o(),this.forceSelectTab=o(),this.sortTypeChanged=o(),this.solutionConfigureDialogClose=o(),this._nonSolutionDependencyItems=[],this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected),this.listenOn(window,"displayDeployedCard",()=>{this._showSuccessAlert=!0})}static{this.properties={card:[0,{},{attribute:!1}],cardRef:1,diagramKey:1,open:[5,{},{type:Boolean}],templateInfos:[0,{},{attribute:!1}],_accordionLoading:[16,{},{state:!0}],_configureTitlesOpen:[16,{},{state:!0}],_deleteDialogOpen:[16,{},{state:!0}],_hasNewVersion:[16,{},{state:!0}],_isDiagramOpen:[16,{},{state:!0}],_isNameConflict:[16,{},{state:!0}],_invalidNameMessage:[16,{},{state:!0}],_showSuccessAlert:[16,{},{state:!0}],_showFailedAlert:[16,{},{state:!0}],_showItemUpdateLoading:[16,{},{state:!0}],_templateInfoGraph:[16,{},{state:!0}],_translations:[16,{},{state:!0}],_nonSolutionDependencyItems:[16,{},{state:!0}]}}static{this.styles=C}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){return i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="padding-end-xxl panel-background-2 border-none" slot=panel-bottom><div class="display-flex flex-direction-column overflow-hidden"><div class="background-color-2 padding-top-xxl">${this._getSolutionPanel()}</div>${this._getSolutionContents()}</div></calcite-panel><calcite-shell-panel class="panel-background-1" slot=panel-end>${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</calcite-shell-panel>${this._renderDiagramDialog()}${this._getConfigureTitlesDialog()}${this._getDeleteDialog()}${this._getSuccessDeployAlert()}</calcite-shell>`}async _deployedCardSelected(e){let t=e.detail;this.card=t.card,this.cardRef=t.cardRef,this.templateInfos=[],this._accordionLoading=!0,this.templateInfos=await this._getTemplates(),this._accordionLoading=!1;let a=await b(this._configContextConsumer.value.userSession,this.card);this._nonSolutionDependencyItems=a._nonSolutionDependencyItems,setTimeout(async()=>{await this._accordionRef.expandFirstItem(),a.uniqueIitemIds.length>0&&(this._accordionRef.listSelectionMode="multiple",this._accordionRef.selectItems(a.uniqueIitemIds))},250);let r=w(this._configContextConsumer.value?.allCards||[],this.card.deployCommonId),d=!1;if(r){let D=s(r),$=s(this.card);d=D>$}this._hasNewVersion=d}_handleDeployAppTabSelected(e){e.detail==="deployed-card"&&this.sortTypeChanged.emit("")}_getButtons(){let e=this._configContextConsumer.value?.userSession?.username,t=this.card?.owner===e||this._isOrgAdmin,a=t?"display-none":"";return i`<div class="display-flex flex-direction-column padding-xxl"><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" .disabled=${!t} id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${h(a)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button></div>`}_openConfigureTitlesDialog(){this._configureTitlesOpen=!0}_getConfigureTitlesDialog(){return this._configureTitlesOpen?i`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async()=>{this.templateInfos=await this._getTemplates(),this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this.templateInfos=await this._getTemplates()}} .open=${this._configureTitlesOpen} source="Details Page" .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_viewDocumentation(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),window.open(this.card.learnMoreUrl,"_blank")}_openItemDetails(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Item Details",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),window.open(this.card.itemUrl,"_blank")}_getOwnerSection(){if(this._configContextConsumer?.value)return i`<div class="display-flex padding-bottom-xxl margin-start-end-xxl flex-direction-column"><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override" layout=inline scale=l>${this._translations.aboutYourSolutionOwner}</calcite-label></div><solution-user-avatar .fullname=${this._user?.username===this.card?.owner?this._user?.fullName:void 0} .lookupProfile=${this._user?.username!==this.card?.owner} .thumbnailUrl=${this._user?.username===this.card?.owner?this._user?.thumbnailUrl:void 0} .username=${this.card?.owner}></solution-user-avatar></div>`}async _openDiagram(e){e.stopPropagation();let t=await this._getTemplates();t&&(this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"View Diagram",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),this._templateInfoGraph=t,this._isDiagramOpen=!0)}async _getTemplates(){return this.cardRef?await this.cardRef.getTemplates():this.card?await y(this.card.id,this._configContextConsumer.value.userSession):void 0}_getSolutionVersionCard(){let e=this._hasNewVersion?this._translations.newVersionAvailable:this._translations.youHaveTheLatestVersion;return i`<div class="padding-xxl display-flex flex-direction-column"><calcite-label class="font-weight-med label-override" layout=inline scale=l slot=heading>${this._translations.solutionVersion.replace("{{version}}",this.card?.deployVersion||"")}</calcite-label><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center"><calcite-icon class="icon-color" icon=clock-forward scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span>${e}</span></div></div></div>${this._hasNewVersion?i`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openNewVersionSolution} width=full>${this._translations.learnMoreNewVersion}</calcite-button>`:""}</div>`}async _openNewVersionSolution(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"View Latest Version",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),await new Promise(a=>setTimeout(a,100));let t=S(this._configContextConsumer.value.allCards,this.card.deployCommonId);t&&this.forceSelectTab.emit({tabType:"details",tabTitleOrId:t})}_getSolutionPanel(){let e=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400"),t=this._configContextConsumer.value?.userSession;return i`<calcite-panel class="font-size-override panel-background-1"><div class="display-flex flex-direction-row"><div class="image-width margin-xl"><img alt=${this.card?.title??n} src=${e?`${e}&token=${t?.token}`:""}></div><div class="display-flex flex-direction-column"><h1 class="title-font margin-block-start-end-0 padding-end-xxl padding-start-sm padding-top-xxl padding-bottom-xxl line-height-1">${this.card?.title}</h1><div class="display-flex flex-direction-column padding-bottom-xxl padding-start-sm"><div class="display-flex align-items-start padding-bottom-xxl"><div class="font-1 padding-end-1 line-height-xxl">${this.card?.snippet}</div></div><div class="display-flex"><div class="display-flex"><calcite-label class="label-override icon-color" layout=inline><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this._translations.aboutYourSolutionDeployedDate.replace("{{deployedDate}}",this.card?.created||"")}</calcite-label></div></div></div></div></div></calcite-panel>`}_getSolutionContents(){let e=[...new Set(this._nonSolutionDependencyItems.map(t=>t.controlItemId))];return i`<calcite-panel class="panel-background-1 padding-top-xxl"><calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded><div class="margin-block-start-end-0 heading-font " slot=content-start>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}",this.templateInfos.length.toString())}</div><div class="overflow-auto">${this._accordionLoading?i`<calcite-loader .label=${this._translations.loadingText} scale=m></calcite-loader>`:i`<solution-item-accordion .itemRelationshipDependencies=${e} .listSelectionMode=${e.length>0?"multiple":"single"} .reuseWarning=${this._translations.itemUsedInOtherSolutions} .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords} ${g(async t=>{t&&(this._accordionRef=t)})}></solution-item-accordion>`}</div></calcite-accordion-item></calcite-accordion></calcite-panel>`}_getDeleteDialog(){return this._deleteDialogOpen?i`<solution-delete-dialog .card=${this.card} @solutionDeleted=${()=>setTimeout(()=>this.navTabSelected.emit({tabType:"deployments"}),100)} @solutionDeleteDialogBeforeClose=${()=>{this._deleteDialogOpen=!1}} .open=${this._deleteDialogOpen} source="Details Page"></solution-delete-dialog>`:""}_getSuccessDeployAlert(){return i`<calcite-alert auto-close auto-close-duration=medium icon=check-circle kind=success .label=${this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title??"")} .open=${this._showSuccessAlert} @calciteAlertClose=${()=>{this._showSuccessAlert=!1}}><div slot=title>${this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title??"")}</div></calcite-alert>`}_renderDiagramDialog(){return this._isDiagramOpen?i`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")??n} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled scale=m width=l><solution-item-diagram .diagramKey=${this.diagramKey!==""?this.diagramKey:this._configContextConsumer.value?.diagramKey??""} .templateInfoGraph=${this._templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}async _deleteSolution(){this._deleteDialogOpen=!0}};m("solution-deployed-card-panel",c);return c},a,b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./D32GUK4A.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./TRGFYBOH.js";import"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{e:o}])=>{return o},a)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./W67U7B6H.js";import b from"./RPQK3WWX.js";import a from"./D32GUK4A.js";import{b as g}from"./W4YXXJAS.js";import{b as f}from"./77CU4WA2.js";import"./TRGFYBOH.js";import{a as u}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as m}from"./ABSRNM72.js";import{H as h,J as p,L as o,h as n,i as t,r as d}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{n:x},,{f:b}])=>{var S=n`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./GYPFCKOU.js";import b from"./RPQK3WWX.js";import a from"./D32GUK4A.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./TRGFYBOH.js";import"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,,{c:o}])=>{return o},a,b,c)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import j from"./
|
|
2
|
+
import j from"./IYS7VNW2.js";import i from"./FKFSLIPR.js";import"./OHX43OKT.js";import e from"./RPQK3WWX.js";import c from"./D32GUK4A.js";import{b as y}from"./W4YXXJAS.js";import{b as D}from"./77CU4WA2.js";import{Zb as b}from"./TRGFYBOH.js";import{a as I}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as _}from"./ABSRNM72.js";import{F as f,G as h,H as g,J as r,h as m,i as a,l as p,r as d}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{n:w},,{a:C,b:$},{a:S}])=>{var v=m`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import{b as D}from"./W4YXXJAS.js";import{b as I}from"./77CU4WA2.js";import{oa as R,qa as v,sa as
|
|
2
|
+
import{b as D}from"./W4YXXJAS.js";import{b as I}from"./77CU4WA2.js";import{oa as R,qa as v,sa as N}from"./TRGFYBOH.js";import{a as S}from"./6S75SIVV.js";import{b as A}from"./ABSRNM72.js";import{F as m,G as f,H as O,J as _,L as h,h as b,i as r,j as y,r as w}from"./5CQPQ7AE.js";export default $arcgis.t(([])=>{var x=b`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -185,4 +185,4 @@ img {
|
|
|
185
185
|
|
|
186
186
|
.cursor-default {
|
|
187
187
|
cursor: default;
|
|
188
|
-
}`;async function $(i,e){let t=await L(i,e);if(!t)throw new Error(`Solution ${i} was not found`);let a=e?.portal.replace("/sharing/rest","")??"https://www.arcgis.com",s=[];if(t.templates[0].item)s=t.templates.map(n=>({id:n.itemId,title:n.item.title,type:n.item.type,typeKeywords:n.item.typeKeywords,dependencies:n.dependencies,snippet:n.item.snippet}));else{let n=t.templates.map(o=>o.type==="Group"?R(o.itemId,e):v(o.itemId,e));s=(await Promise.allSettled(n)).filter(o=>o.status==="fulfilled").map(o=>o.value).map((o,u)=>{let d=typeof o.type>"u"?"group":"item";return{id:o.id,title:o.title,type:o.type??"Group",typeKeywords:o.typeKeywords,dependencies:t.templates[u].dependencies,snippet:o.snippet,url:`${a}/home/${d}.html?id=${o.id}`}})}return s}function he(i,e,t){let a=i.templates.map(u=>u.type),s=[];s.push(V),a.indexOf("Group")>=0&&(s.push(N),s.push(C)),a.indexOf("Feature Service")>=0&&s.push(k);let n=a.indexOf("Feed")>-1;n&&s.push(Y);let c=a.indexOf("Big Data Analytic")>-1;c&&s.push(W);let p=a.indexOf("Real Time Analytic")>-1;p&&s.push(q),(n||c||p)&&s.push(ee),a.indexOf("Workflow")>-1&&(s.push(N),s.push(k),s.push(C),s.push(te)),a.indexOf("Geoprocessing Service")>-1&&(s.push(z),t.IsEnterprisePortal&&s.push(J));let o=i.templates.reduce((u,d)=>u.concat(d.item.typeKeywords||[]),[]);return U(s,o,t),B(s,e),G(s,i),s}function G(i,e){e.templates.some(t=>t.type==="Group"&&t.item?.membershipAccess==="collaboration")&&i.push(F)}function U(i,e,t){let a=M(t),s=K(t);["Location Tracking View"].some(c=>e.indexOf(c)>-1)&&(!a&&!s?i.push(X):a&&!s?i.push(Q):!a&&s&&i.push(Z))}function B(i,e){["HubPremium"].some(a=>e.indexOf(a)>-1)&&i.push(j)}function M(i){let e=i.PortalUserSubset;return e?.role==="org_admin"&&!e?.hasOwnProperty("roleId")}function K(i){return i.PortalSubset?.locationTrackingEnabled||!1}function ge(i,e){let t={leadingMessages:[],bulletedMessages:[],trailingMessages:[]},a=[l.NOTEBOOK,l.VELOCITY,l.HUBPREMIUM,l.WORKFLOW,l.TRACKINGBASE],s=g(i,e,l.VELOCITY);s&&t.leadingMessages.push(s);let n=g(i,e,l.NOTEBOOK);n&&t.leadingMessages.push(n);let c=g(i,e,l.HUBPREMIUM);c&&t.leadingMessages.push(c);let p=g(i,e,l.WORKFLOW);p&&t.leadingMessages.push(p),e=e.filter(d=>a.indexOf(d)<0),e.forEach(d=>{t.bulletedMessages.push(P(i,d))});let o=g(i,e,l.TRACKINGBASE);return o&&t.trailingMessages.push(o),(t.leadingMessages.length>0||t.trailingMessages.length>0||t.bulletedMessages.length>0)&&t.trailingMessages.push(i.missingPrivilegesPopup.suggestedProblemRemedyMessage),t}function g(i,e,t){return e.filter(s=>s.includes(t)).length>0?P(i,t):""}function P(i,e){let t=i.missingPrivilegesPopup.requiredPrivilegesList,a="";switch(e){case"portal:user:createItem":a=t.createItem;break;case"portal:publisher:publishFeatures":a=t.publishFeatures;break;case"portal:user:createGroup":a=t.createGroup;break;case"portal:user:shareToGroup":a=t.shareToGroup;break;case"portal:user:addExternalMembersToGroup":a=t.addMembers;break;case"portal:publisher:publishFeeds":a=t.publishFeeds;break;case"portal:publisher:publishBigDataAnalytics":a=t.publishBigDataAnalytics;break;case"portal:publisher:publishRealTimeAnalytics":a=t.publishRealTimeAnalytics;break;case"solutions:locationtracking:admin:tracking":a=t.requiresLocationTrackingAndAdmin;break;case"solutions:locationtracking:tracking":a=t.requiresLocationTracking;break;case"solutions:locationtracking:admin":a=t.requiresAdmin;break;case"solutions:hubPremium":a=t.hubPremium;break;case"solutions:workflowManager":a=t.workflowManager;break;case"solutions:velocity":a=t.velocity;break;case"solutions:notebook":a=t.requiresNotebookServer;break;case"portal:publisher:publishServerGPServices":a=t.publishGPServices;break;case"writable:Enterprise":a=t.writableEnterprise;break;case"writable:Online":a=t.writableOnline.replace("{{url}}","https://status.arcgis.com");break}return a}var b=class extends _{constructor(){super(...arguments),this.allowDelete=!1,this.deployedDate="",this.description="",this.diagramKey="",this.heading="",this.itemId="",this.owner="",this.thumbnail="",this.updateAvailable=!1,this.templateInfos=[],this._isDeleteOpen=!1,this._isDiagramOpen=!1,this.templateInfoGraph=[],this._configureTitlesOpen=!1,this._translations=S({name:"solution-deployed-card",blocking:!0}),this._configContextConsumer=I({context:D,subscribe:!0,callback:async e=>{e&&(this._isOrgAdmin=e.authentication?.PortalUserSubset?.role==="org_admin"||M(e.authentication))}}),this._deleteDialogRef=m(),this._diagramDialogRef=m(),this._isOrgAdmin=!1,this.deployedCardSelected=w()}static{this.properties={allowDelete:[5,{},{type:Boolean}],card:[0,{},{attribute:!1}],deployedDate:1,description:1,diagramKey:1,heading:1,itemId:1,owner:1,thumbnail:1,updateAvailable:[5,{},{type:Boolean}],templateInfos:[0,{},{attribute:!1}],_isDeleteOpen:[16,{},{state:!0}],_isDiagramOpen:[16,{},{state:!0}],templateInfoGraph:[16,{},{state:!0}],_configureTitlesOpen:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=x}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async renderDeleteDialog(){return this._isDeleteOpen=!0,this._renderDeleteDialog(),this._deleteDialogRef.value}async renderDiagramDialog(e){return await this._viewDiagram(e),await this._renderDiagramDialog(),this._diagramDialogRef.value}async getTemplates(){return this._processTemplates(this.card)}render(){return r`<calcite-card .label=${this.description} @click=${this._cardSelected}>${this._getImage()}${this._getHeader()}<p class="font-color-text-2 font-line-height font-size-size--1" slot=description>${this.description}</p><div class="width-full display-flex flex-direction-column" slot=footer-start><div class="padding-bottom-1-2">${this.owner!==""&&this._getOwnerLabel()||""}${this._getDeployedDate()}</div>${this._getConfigureButton()}</div></calcite-card>${this._renderDeleteDialog()}${this._renderDiagramDialog()}${this._renderConfigureTitlesDialog()}`}_getImage(){let e=this._configContextConsumer.value?.userSession;return r`<div class="card-image-wrap" slot=thumbnail><img alt=${this.heading??h} class="thumbnail card-image" src=${`${this.thumbnail}&token=${e?.token}`}><div class="hover-text">${this._translations.openSolution}</div></div>`}_getHeader(){return r`<div class="display-flex justify-content-space-between header-line-height" slot=heading><calcite-label layout=inline-space-between scale=l>${this.heading}</calcite-label></div>`}_getOwnerLabel(){return r`<calcite-label class="font-weight-400 padding-end-1-2" layout=inline scale=s>${`${this._translations.owner}:`}<calcite-link class="font-weight-normal" @click=${this._openUserProfile}>${this.owner}</calcite-link></calcite-label>`}_getDeployedDate(){return r`<div class="display-flex align-items-center"><div class="padding-end-1-2"><svg height=16px viewBox="0 0 32 32" width=16px xmlns=http://www.w3.org/2000/svg>${y`<path class="svg-color" d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" /><path class="svg-color" d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" />`}</svg></div><calcite-label class="deployed-label-override" scale=s>${this._translations.deployedDate.replace("{{date}}",this.deployedDate)}</calcite-label></div>`}_getConfigureButton(){let e=this._configContextConsumer.value?.userSession?.username,t=this.card?.owner===e||this._isOrgAdmin,a=t?"display-none":"";return r`<calcite-split-button appearance=outline aria-label=${this._translations.openSolution??h} dropdown-label=${this._translations.moreActions??h} kind=neutral @calciteSplitButtonPrimaryClick=${this._cardSelected} @click=${s=>s.stopPropagation()} overlay-positioning=fixed primary-text=${this._translations.openSolution??h} width=full><calcite-dropdown-group selection-mode=none><calcite-dropdown-item icon-start=model @click=${this._viewDiagram}>${this._translations.viewDiagram}</calcite-dropdown-item><calcite-dropdown-item icon-start=file-text @click=${this._viewDocumentation}>${this._translations.documentation}</calcite-dropdown-item><calcite-dropdown-item icon-start=information @click=${this._viewItemDetails}>${this._translations.viewItemDetails}</calcite-dropdown-item><calcite-dropdown-item .disabled=${!t} icon-start=edit-attributes id=solution-configure-titles-dropdown @click=${async()=>{this.templateInfos=await this._processTemplates(this.card),this._configureTitlesOpen=!0}}>${this._translations.renameItems}</calcite-dropdown-item>${this.allowDelete&&r`<calcite-dropdown-item icon-start=trash @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-dropdown-item>`||""}</calcite-dropdown-group><calcite-tooltip class=${A(a)} overlay-positioning=fixed reference-element=solution-configure-titles-dropdown><span>${this._translations.mustOwnSolution}</span></calcite-tooltip></calcite-split-button>`}_renderDeleteDialog(){return this._isDeleteOpen?r`<solution-delete-dialog .card=${this.card} @solutionDeleteDialogOpen=${e=>{this._isDeleteOpen=e.detail}} .open=${this._isDeleteOpen} source="Card Dropdown" ${f(this._deleteDialogRef)}></solution-delete-dialog>`:""}_renderDiagramDialog(){return this._isDiagramOpen?r`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")??h} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled scale=m width=l ${f(this._diagramDialogRef)}><solution-item-diagram .diagramKey=${this.diagramKey} .templateInfoGraph=${this.templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}_renderConfigureTitlesDialog(){return this._configureTitlesOpen?r`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async()=>{this._processTemplates(this.card).then(e=>{this.templateInfos=e}),this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this._processTemplates(this.card).then(e=>{this.templateInfos=e})}} .open=${this._configureTitlesOpen} source="Card Dropdown" .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_cardSelected(){this.deployedCardSelected.emit({card:this.card,cardRef:this.el})}async _viewDiagram(e){e.stopPropagation(),this.card&&(this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"View Diagram",dimensions:[this.card.title||"",this.card.deployCommonId||"",this.card.deployVersion||"","Card Dropdown"]}),this.templateInfoGraph=await this._processTemplates(this.card),this._isDiagramOpen=!0)}_viewDocumentation(e){e.stopPropagation(),this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Card Dropdown"]}),window.open(this.card.learnMoreUrl,"_blank")}_viewItemDetails(e){e.stopPropagation(),this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"Open Item Details",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Card Dropdown"]}),window.open(this.card.itemUrl,"_blank")}_deleteSolution(e){e.stopPropagation(),this._isDeleteOpen=!0}_openUserProfile(e){e.stopPropagation();let t=this._configContextConsumer.value?.authentication?.PortalSubset?.orgUrl;t&&window.open(`${t}/home/user.html?user=${this.owner}`,"_blank")}async _processTemplates(e){return await $(e.id,this._configContextConsumer.value.userSession)}};O("solution-deployed-card",b);var me=500,fe={AEC:"Architecture, Engineering, and Construction (AEC)",AIRPORTPORTRAIL:"Airports, Ports, and Rails",BUSINESS:"Business",CONSERVATION:"Conservation",DEFENSE:"Defense",FACILITIES:"Facilities",HEALTHANDHUMANSERVICES:"Health and Human Services",PIPELINE:"Pipeline",PUBLICSAFETY:"Public Safety",RENEWABLES:"Renewables",STATEANDLOCALGOVERNMENT:"State and Local Government",TELECOMMUNICATIONS:"Telecommunications",UTILITIES:"Utilities"},Te={AIRPORT:"Airports",AGRICULTURE:"Agriculture",ASSESSMENTANDTAXATION:"Assessment and Taxation",DISTRICTENERGY:"District Energy",ELECTIONS:"Elections",ELECTRIC:"Electric",EMERGENCYMANAGEMENT:"Emergency Management",ENVIRONMENTANDNATURALRESOURCES:"Environment and Natural Resources",FIRESERVICE:"Fire Service",FISHANDWILDLIFE:"Fish and Wildlife",GAS:"Gas",HEALTHANDHUMANSERVICES:"Health and Human Services",LAWENFORCEMENT:"Law Enforcement",NATURALRESOURCES:"Natural Resources",PARKS:"Parks",PLANNINGANDDEVELOPMENT:"Planning and Development",PROTECTEDAREAS:"Protected Areas",PUBLICWORKS:"Public Works",SEWER:"Sewer",STORMWATER:"Stormwater",TELECOMMUNICATIONS:"Telecommunications",TRANSPORTATION:"Transportation",WATER:"Water Distribution"},l=(i=>(i.HUBPREMIUM="solutions:hubPremium",i.NOTEBOOK="solutions:notebook",i.TRACKINGBASE="solutions:locationtracking",i.TRACKING="solutions:locationtracking:tracking",i.TRACKINGADMIN="solutions:locationtracking:admin",i.TRACKINGADMINANDTRACKING="solutions:locationtracking:admin:tracking",i.VELOCITY="solutions:velocity",i.WORKFLOW="solutions:workflowManager",i))(l||{}),H=(i=>(i.VELOCITYBIGDATA="portal:publisher:publishBigDataAnalytics",i.VELOCITYFEEDS="portal:publisher:publishFeeds",i.VELOCITYREALTIME="portal:publisher:publishRealTimeAnalytics",i))(H||{}),be='((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))',Ee="(typekeywords:Solution,Template)",F="portal:user:addExternalMembersToGroup",V="portal:user:createItem",N="portal:user:createGroup",W="portal:publisher:publishBigDataAnalytics",k="portal:publisher:publishFeatures",Y="portal:publisher:publishFeeds",z="portal:publisher:publishServerGPServices",q="portal:publisher:publishRealTimeAnalytics",C="portal:user:shareToGroup",j="solutions:hubPremium",J="solutions:notebook",X="solutions:locationtracking:admin:tracking",Q="solutions:locationtracking:tracking",Z="solutions:locationtracking:admin",ee="solutions:velocity",te="solutions:workflowManager",ye=250,T={SOLUTION_DETAILS:"Solution Details",GLOBAL_NAVIGATION:"Global Nav",ALL_SOLUTIONS:"Solutions",DEPLOYMENTS:"Deployments",ASSISTANT:"Assistant",RESOURCES:"Resources"};return{a:$,b:he,c:M,d:ge,e:b,f:me,g:fe,h:Te,i:l,j:H,k:be,l:Ee,m:ye,n:T}},"identity/IdentityManager","identity/OAuthInfo","portal/Portal")
|
|
188
|
+
}`;async function $(i,e){let t=await N(i,e);if(!t)throw new Error(`Solution ${i} was not found`);let a=e?.portal.replace("/sharing/rest","")??"https://www.arcgis.com",s=[];if(t.templates[0].item)s=t.templates.map(n=>({id:n.itemId,title:n.item.title,type:n.item.type,typeKeywords:n.item.typeKeywords,dependencies:n.dependencies,snippet:n.item.snippet}));else{let n=t.templates.map(o=>o.type==="Group"?R(o.itemId,e):v(o.itemId,e));s=(await Promise.allSettled(n)).filter(o=>o.status==="fulfilled").map(o=>o.value).map((o,u)=>{let d=typeof o.type>"u"?"group":"item";return{id:o.id,title:o.title,type:o.type??"Group",typeKeywords:o.typeKeywords,dependencies:t.templates[u].dependencies,snippet:o.snippet,url:`${a}/home/${d}.html?id=${o.id}`}})}return s}function he(i,e,t){let a=i.templates.map(u=>u.type),s=[];s.push(V),a.indexOf("Group")>=0&&(s.push(L),s.push(C)),a.indexOf("Feature Service")>=0&&s.push(k);let n=a.indexOf("Feed")>-1;n&&s.push(z);let c=a.indexOf("Big Data Analytic")>-1;c&&s.push(W);let p=a.indexOf("Real Time Analytic")>-1;p&&s.push(q),(n||c||p)&&s.push(ee),a.indexOf("Workflow")>-1&&(s.push(L),s.push(k),s.push(C),s.push(te)),a.indexOf("Geoprocessing Service")>-1&&(s.push(Y),t.IsEnterprisePortal&&s.push(J));let o=i.templates.reduce((u,d)=>u.concat(d.item.typeKeywords||[]),[]);return U(s,o,t),B(s,e),G(s,i),s}function G(i,e){e.templates.some(t=>t.type==="Group"&&t.item?.membershipAccess==="collaboration")&&i.push(F)}function U(i,e,t){let a=M(t),s=K(t);["Location Tracking View"].some(c=>e.indexOf(c)>-1)&&(!a&&!s?i.push(X):a&&!s?i.push(Q):!a&&s&&i.push(Z))}function B(i,e){["HubPremium"].some(a=>e.indexOf(a)>-1)&&i.push(j)}function M(i){let e=i.PortalUserSubset;return e?.role==="org_admin"&&!e?.hasOwnProperty("roleId")}function K(i){return i.PortalSubset?.locationTrackingEnabled||!1}function ge(i,e){let t={leadingMessages:[],bulletedMessages:[],trailingMessages:[]},a=[l.NOTEBOOK,l.VELOCITY,l.HUBPREMIUM,l.WORKFLOW,l.TRACKINGBASE],s=g(i,e,l.VELOCITY);s&&t.leadingMessages.push(s);let n=g(i,e,l.NOTEBOOK);n&&t.leadingMessages.push(n);let c=g(i,e,l.HUBPREMIUM);c&&t.leadingMessages.push(c);let p=g(i,e,l.WORKFLOW);p&&t.leadingMessages.push(p),e=e.filter(d=>a.indexOf(d)<0),e.forEach(d=>{t.bulletedMessages.push(P(i,d))});let o=g(i,e,l.TRACKINGBASE);return o&&t.trailingMessages.push(o),(t.leadingMessages.length>0||t.trailingMessages.length>0||t.bulletedMessages.length>0)&&t.trailingMessages.push(i.missingPrivilegesPopup.suggestedProblemRemedyMessage),t}function g(i,e,t){return e.filter(s=>s.includes(t)).length>0?P(i,t):""}function P(i,e){let t=i.missingPrivilegesPopup.requiredPrivilegesList,a="";switch(e){case"portal:user:createItem":a=t.createItem;break;case"portal:publisher:publishFeatures":a=t.publishFeatures;break;case"portal:user:createGroup":a=t.createGroup;break;case"portal:user:shareToGroup":a=t.shareToGroup;break;case"portal:user:addExternalMembersToGroup":a=t.addMembers;break;case"portal:publisher:publishFeeds":a=t.publishFeeds;break;case"portal:publisher:publishBigDataAnalytics":a=t.publishBigDataAnalytics;break;case"portal:publisher:publishRealTimeAnalytics":a=t.publishRealTimeAnalytics;break;case"solutions:locationtracking:admin:tracking":a=t.requiresLocationTrackingAndAdmin;break;case"solutions:locationtracking:tracking":a=t.requiresLocationTracking;break;case"solutions:locationtracking:admin":a=t.requiresAdmin;break;case"solutions:hubPremium":a=t.hubPremium;break;case"solutions:workflowManager":a=t.workflowManager;break;case"solutions:velocity":a=t.velocity;break;case"solutions:notebook":a=t.requiresNotebookServer;break;case"portal:publisher:publishServerGPServices":a=t.publishGPServices;break;case"writable:Enterprise":a=t.writableEnterprise;break;case"writable:Online":a=t.writableOnline.replace("{{url}}","https://status.arcgis.com");break}return a}var E=class extends O{constructor(){super(...arguments),this.allowDelete=!1,this.deployedDate="",this.description="",this.diagramKey="",this.heading="",this.itemId="",this.owner="",this.thumbnail="",this.updateAvailable=!1,this.templateInfos=[],this._isDeleteOpen=!1,this._isDiagramOpen=!1,this.templateInfoGraph=[],this._configureTitlesOpen=!1,this._translations=S({name:"solution-deployed-card",blocking:!0}),this._configContextConsumer=I({context:D,subscribe:!0,callback:async e=>{e&&(this._isOrgAdmin=e.authentication?.PortalUserSubset?.role==="org_admin"||M(e.authentication))}}),this._deleteDialogRef=m(),this._diagramDialogRef=m(),this._isOrgAdmin=!1,this.deployedCardSelected=w()}static{this.properties={allowDelete:[5,{},{type:Boolean}],card:[0,{},{attribute:!1}],deployedDate:1,description:1,diagramKey:1,heading:1,itemId:1,owner:1,thumbnail:1,updateAvailable:[5,{},{type:Boolean}],templateInfos:[0,{},{attribute:!1}],_isDeleteOpen:[16,{},{state:!0}],_isDiagramOpen:[16,{},{state:!0}],templateInfoGraph:[16,{},{state:!0}],_configureTitlesOpen:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=x}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async renderDeleteDialog(){return this._isDeleteOpen=!0,this._renderDeleteDialog(),this._deleteDialogRef.value}async renderDiagramDialog(e){return await this._viewDiagram(e),await this._renderDiagramDialog(),this._diagramDialogRef.value}async getTemplates(){return this._processTemplates(this.card)}render(){return r`<calcite-card .label=${this.description} @click=${this._cardSelected}>${this._getImage()}${this._getHeader()}<p class="font-color-text-2 font-line-height font-size-size--1" slot=description>${this.description}</p><div class="width-full display-flex flex-direction-column" slot=footer-start><div class="padding-bottom-1-2">${this.owner!==""&&this._getOwnerLabel()||""}${this._getDeployedDate()}</div>${this._getConfigureButton()}</div></calcite-card>${this._renderDeleteDialog()}${this._renderDiagramDialog()}${this._renderConfigureTitlesDialog()}`}_getImage(){let e=this._configContextConsumer.value?.userSession;return r`<div class="card-image-wrap" slot=thumbnail><img alt=${this.heading??h} class="thumbnail card-image" src=${`${this.thumbnail}&token=${e?.token}`}><div class="hover-text">${this._translations.openSolution}</div></div>`}_getHeader(){return r`<div class="display-flex justify-content-space-between header-line-height" slot=heading><calcite-label layout=inline-space-between scale=l>${this.heading}</calcite-label></div>`}_getOwnerLabel(){return r`<calcite-label class="font-weight-400 padding-end-1-2" layout=inline scale=s>${`${this._translations.owner}:`}<calcite-link class="font-weight-normal" @click=${this._openUserProfile}>${this.owner}</calcite-link></calcite-label>`}_getDeployedDate(){return r`<div class="display-flex align-items-center"><div class="padding-end-1-2"><svg height=16px viewBox="0 0 32 32" width=16px xmlns=http://www.w3.org/2000/svg>${y`<path class="svg-color" d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" /><path class="svg-color" d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" />`}</svg></div><calcite-label class="deployed-label-override" scale=s>${this._translations.deployedDate.replace("{{date}}",this.deployedDate)}</calcite-label></div>`}_getConfigureButton(){let e=this._configContextConsumer.value?.userSession?.username,t=this.card?.owner===e||this._isOrgAdmin,a=t?"display-none":"";return r`<calcite-split-button appearance=outline aria-label=${this._translations.openSolution??h} dropdown-label=${this._translations.moreActions??h} kind=neutral @calciteSplitButtonPrimaryClick=${this._cardSelected} @click=${s=>s.stopPropagation()} overlay-positioning=fixed primary-text=${this._translations.openSolution??h} width=full><calcite-dropdown-group selection-mode=none><calcite-dropdown-item icon-start=model @click=${this._viewDiagram}>${this._translations.viewDiagram}</calcite-dropdown-item><calcite-dropdown-item icon-start=file-text @click=${this._viewDocumentation}>${this._translations.documentation}</calcite-dropdown-item><calcite-dropdown-item icon-start=information @click=${this._viewItemDetails}>${this._translations.viewItemDetails}</calcite-dropdown-item><calcite-dropdown-item .disabled=${!t} icon-start=edit-attributes id=solution-configure-titles-dropdown @click=${async()=>{this.templateInfos=await this._processTemplates(this.card),this._configureTitlesOpen=!0}}>${this._translations.renameItems}</calcite-dropdown-item>${this.allowDelete&&r`<calcite-dropdown-item icon-start=trash @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-dropdown-item>`||""}</calcite-dropdown-group><calcite-tooltip class=${_(a)} overlay-positioning=fixed reference-element=solution-configure-titles-dropdown><span>${this._translations.mustOwnSolution}</span></calcite-tooltip></calcite-split-button>`}_renderDeleteDialog(){return this._isDeleteOpen?r`<solution-delete-dialog .card=${this.card} @solutionDeleteDialogOpen=${e=>{this._isDeleteOpen=e.detail}} .open=${this._isDeleteOpen} source="Card Dropdown" ${f(this._deleteDialogRef)}></solution-delete-dialog>`:""}_renderDiagramDialog(){return this._isDiagramOpen?r`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")??h} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled scale=m width=l ${f(this._diagramDialogRef)}><solution-item-diagram .diagramKey=${this.diagramKey} .templateInfoGraph=${this.templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}_renderConfigureTitlesDialog(){return this._configureTitlesOpen?r`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async()=>{this._processTemplates(this.card).then(e=>{this.templateInfos=e}),this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this._processTemplates(this.card).then(e=>{this.templateInfos=e})}} .open=${this._configureTitlesOpen} source="Card Dropdown" .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_cardSelected(){this.deployedCardSelected.emit({card:this.card,cardRef:this.el})}async _viewDiagram(e){e.stopPropagation(),this.card&&(this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"View Diagram",dimensions:[this.card.title||"",this.card.deployCommonId||"",this.card.deployVersion||"","Card Dropdown"]}),this.templateInfoGraph=await this._processTemplates(this.card),this._isDiagramOpen=!0)}_viewDocumentation(e){e.stopPropagation(),this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Card Dropdown"]}),window.open(this.card.learnMoreUrl,"_blank")}_viewItemDetails(e){e.stopPropagation(),this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"Open Item Details",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Card Dropdown"]}),window.open(this.card.itemUrl,"_blank")}_deleteSolution(e){e.stopPropagation(),this._isDeleteOpen=!0}_openUserProfile(e){e.stopPropagation();let t=this._configContextConsumer.value?.authentication?.PortalSubset?.orgUrl;t&&window.open(`${t}/home/user.html?user=${this.owner}`,"_blank")}async _processTemplates(e){return await $(e.id,this._configContextConsumer.value.userSession)}};A("solution-deployed-card",E);var me=500,fe={AEC:"Architecture, Engineering, and Construction (AEC)",AIRPORTPORTRAIL:"Airports, Ports, and Rails",BUSINESS:"Business",CONSERVATION:"Conservation",DEFENSE:"Defense",FACILITIES:"Facilities",HEALTHANDHUMANSERVICES:"Health and Human Services",PIPELINE:"Pipeline",PUBLICSAFETY:"Public Safety",RENEWABLES:"Renewables",STATEANDLOCALGOVERNMENT:"State and Local Government",TELECOMMUNICATIONS:"Telecommunications",UTILITIES:"Utilities"},Te={AIRPORT:"Airports",AGRICULTURE:"Agriculture",ASSESSMENTANDTAXATION:"Assessment and Taxation",DISTRICTENERGY:"District Energy",ELECTIONS:"Elections",ELECTRIC:"Electric",EMERGENCYMANAGEMENT:"Emergency Management",ENVIRONMENTANDNATURALRESOURCES:"Environment and Natural Resources",FIRESERVICE:"Fire Service",FISHANDWILDLIFE:"Fish and Wildlife",GAS:"Gas",HEALTHANDHUMANSERVICES:"Health and Human Services",LAWENFORCEMENT:"Law Enforcement",NATURALRESOURCES:"Natural Resources",PARKS:"Parks",PLANNINGANDDEVELOPMENT:"Planning and Development",PROTECTEDAREAS:"Protected Areas",PUBLICWORKS:"Public Works",SEWER:"Sewer",STORMWATER:"Stormwater",TELECOMMUNICATIONS:"Telecommunications",TRANSPORTATION:"Transportation",WATER:"Water Distribution"},l=(i=>(i.HUBPREMIUM="solutions:hubPremium",i.NOTEBOOK="solutions:notebook",i.TRACKINGBASE="solutions:locationtracking",i.TRACKING="solutions:locationtracking:tracking",i.TRACKINGADMIN="solutions:locationtracking:admin",i.TRACKINGADMINANDTRACKING="solutions:locationtracking:admin:tracking",i.VELOCITY="solutions:velocity",i.WORKFLOW="solutions:workflowManager",i))(l||{}),H=(i=>(i.VELOCITYBIGDATA="portal:publisher:publishBigDataAnalytics",i.VELOCITYFEEDS="portal:publisher:publishFeeds",i.VELOCITYREALTIME="portal:publisher:publishRealTimeAnalytics",i))(H||{}),Ee='((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))',be="(typekeywords:Solution,Template)",F="portal:user:addExternalMembersToGroup",V="portal:user:createItem",L="portal:user:createGroup",W="portal:publisher:publishBigDataAnalytics",k="portal:publisher:publishFeatures",z="portal:publisher:publishFeeds",Y="portal:publisher:publishServerGPServices",q="portal:publisher:publishRealTimeAnalytics",C="portal:user:shareToGroup",j="solutions:hubPremium",J="solutions:notebook",X="solutions:locationtracking:admin:tracking",Q="solutions:locationtracking:tracking",Z="solutions:locationtracking:admin",ee="solutions:velocity",te="solutions:workflowManager",ye=250,T={SOLUTION_DETAILS:"Solution Details",GLOBAL_NAVIGATION:"Global Nav",ALL_SOLUTIONS:"Solutions",DEPLOYMENTS:"Deployments",ASSISTANT:"Assistant",RESOURCES:"Resources"},we={MINE:"My deployments",ORG:"Organization"};return{a:$,b:he,c:M,d:ge,e:E,f:me,g:fe,h:Te,i:l,j:H,k:Ee,l:be,m:ye,n:T,o:we}},"identity/IdentityManager","identity/OAuthInfo","portal/Portal")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./ITNW7ZOV.js";import b from"./QYFQRPK7.js";import"./I5GF7UR6.js";import"./YUDZU2OW.js";import a from"./D32GUK4A.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./TRGFYBOH.js";import"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import f from"./
|
|
2
|
+
import f from"./YDMRYUCT.js";import"./7SGXC6B2.js";import e from"./6E372BGJ.js";import d from"./GYPFCKOU.js";import c from"./IYS7VNW2.js";import"./I5GF7UR6.js";import b from"./RPQK3WWX.js";import a from"./D32GUK4A.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./TRGFYBOH.js";import"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,,,,,a])=>{return a},a,b,c,d,e,f)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./D32GUK4A.js";import{ta as c}from"./TRGFYBOH.js";export default $arcgis.t(([{a:p}])=>{async function R(o,r){let s=await h(r,o),l=[],a=[],d=[],u=s.map(async e=>{let m=await S(e.id,"reverse","Solution2Item",o);return{template:e,relatedItems:m}}),f=await Promise.all(u);for(let{template:e,relatedItems:m}of f)for(let w of m){let I=[];for(let t of w.relatedItemIds)I.push({controlItemId:e.id,dependencyItemId:t});let D=I.reduce((t,n)=>(t[n.controlItemId]||(t[n.controlItemId]=new Set),t[n.controlItemId].add(n.dependencyItemId),t),{}),i=Object.entries(D).filter(([t,n])=>n.size>1).flatMap(([t,n])=>Array.from(n).map(g=>({controlItemId:t,dependencyItemId:g})));i.length>0&&(d=d.concat(i))}a=Array.from(new Map([...d].map(e=>[`${e.controlItemId}:${e.dependencyItemId}`,e])).values());let y=a.map(e=>e.controlItemId);return l=[...new Set(y)],{uniqueIitemIds:l,_nonSolutionDependencyItems:a,templateInfos:s}}async function S(o,r,s,l){let a=await c(o,s,r,l);return[{relationshipType:s,relatedItemIds:a.relatedItems.map(d=>d.id)}]}async function h(o,r){return await p(o.id,r)}return{a:R,b:h}},a)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import g from"./
|
|
2
|
+
import g from"./QUEH5DH3.js";import e from"./W67U7B6H.js";import d from"./RPQK3WWX.js";import b from"./D32GUK4A.js";import{b as v}from"./W4YXXJAS.js";import{b as w}from"./77CU4WA2.js";import"./TRGFYBOH.js";import{a as C}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as S}from"./ABSRNM72.js";import{H as y,h as _,i as a,j as f,r as c}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{g:T,h:x,k:E,l:h,n:u},{p:I},{c:L},{a:g,b:A}])=>{var b=_`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -104,4 +104,4 @@ solution-details-card {
|
|
|
104
104
|
justify-content: center;
|
|
105
105
|
align-items: center;
|
|
106
106
|
width: 100%;
|
|
107
|
-
}`,D=5,m=class extends y{constructor(){super(),this.sortType="relevance",this._cards=[],this._isLoading=!0,this._modifiedCheckTry=0,this._translations=C({name:"solutions-all-panel",blocking:!0}),this._agoTerms=`${h}`,this._allCards=[],this._baseAgoTerms=h,this._categories=[],this._configContextConsumer=w({context:v,subscribe:!0,callback:async e=>{e&&(this._isDisconnectedEnvironment?this._isLoading=!1:await this._loadUpdateProcedures())}}),this._delay=!1,this._getSuggested=!1,this._relatedSolutions=new Set,this._sortField="relevance",this._sortOrder="desc",this.cardsFetched=c(),this.allCardsFetched=c(),this.searchTermSet=c(),this.sortTypeSet=c(),this.detailsCardSelected=c(),this._handleOpenAssistant=()=>{this._telemetry?.logEvent({category:u.ASSISTANT,action:"Open"}),window.dispatchEvent(new CustomEvent("openAssistant"))},this.listenOn(window,"deployProgressEnd",()=>{this._modifiedCheckTry=D,this._loadUpdateProcedures()}),this.listenOn(window,"solutionDeleted",()=>{this._modifiedCheckTry=D,this._loadUpdateProcedures()}),this.listenOn(window,"sortTypeChanged",e=>{e.detail&&e.detail.scope==="all-solutions"&&(this.sortType=e.detail.sortType,this._telemetry?.logEvent({category:u.ALL_SOLUTIONS,action:"Sort",dimensions:[I(e.detail.sortType)]}),this.sortType==="suggested"&&this._deployedSolutions?.cards.length===0?this._getDeployedSolutions().then(()=>{this.searchSolutions(e.detail)}):this.searchSolutions(e.detail))}),this.listenOn(window,"solutionIDFromAssistant",e=>{this._lookupSolutionById(e.detail)})}static{this.properties={sortType:1,_cards:[16,{},{state:!0}],_isLoading:[16,{},{state:!0}],_modifiedCheckTry:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=b}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextConsumer.value?.isEnterprise===!0&&this._configContextConsumer.value?.authentication?.CanSearchArcGISOnline===!1}async searchSolutions(e){this._isDisconnectedEnvironment||(e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):Array.isArray(e)&&this._filterCards(e):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),this._cards=await this._getSolutions())}async setSearchOptions(e){e&&("searchTerm"in e&&(this._textSearch(e.searchTerm),this.searchTermSet.emit({searchTerm:e.searchTerm,scope:"all-solutions"})),"sortType"in e&&(this._sortCards(e),this.sortTypeSet.emit({sortType:e.sortType,scope:"all-solutions"})))}render(){let e=this._configContextConsumer.value?.authentication?.IsSignedIn&&this._configContextConsumer.value?.authentication?.CanUseAI;return this._isDisconnectedEnvironment?a`<div class="no-solutions">${this._getMeridianSearch()}<div class="no-solutions-prompt"><div class="text-center leader-1 warning-text trailer-1"><div>${this._translations.disconnectedEnvironment}</div></div></div></div>`:this._isLoading||this._cards.length?a`<calcite-panel>${this._isLoading?a`<calcite-loader id=solutions-all-panel-loader .label=${this._translations.fetchingSolutions}></calcite-loader>`:a`<calcite-card-group class="card-group" .label=${this._translations.allSolutionCards}>${this._renderCards()}</calcite-card-group>`}</calcite-panel>`:a`<div class="no-solutions">${this._getMeridianSearch()}<div class="no-solutions-prompt"><div class="text-center leader-1 warning-text trailer-1"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${e?this._translations.assistantHelp:this._translations.changeSearchTerm}</div></div>${e&&a`<calcite-button appearance=outline icon-start=speech-bubbles @click=${this._handleOpenAssistant} scale=l>${this._translations.askAssistant}</calcite-button>`||""}</div></div>`}_renderCards(){return this._cards.map(e=>a`<solution-details-card .card=${e}></solution-details-card>`)}async _getSolutions(){if(
|
|
107
|
+
}`,D=5,m=class extends y{constructor(){super(),this.sortType="relevance",this._cards=[],this._isLoading=!0,this._modifiedCheckTry=0,this._translations=C({name:"solutions-all-panel",blocking:!0}),this._agoTerms=`${h}`,this._allCards=[],this._baseAgoTerms=h,this._categories=[],this._configContextConsumer=w({context:v,subscribe:!0,callback:async e=>{e&&(this._isDisconnectedEnvironment?this._isLoading=!1:await this._loadUpdateProcedures())}}),this._delay=!1,this._getSuggested=!1,this._relatedSolutions=new Set,this._sortField="relevance",this._sortOrder="desc",this.cardsFetched=c(),this.allCardsFetched=c(),this.searchTermSet=c(),this.sortTypeSet=c(),this.detailsCardSelected=c(),this._handleOpenAssistant=()=>{this._telemetry?.logEvent({category:u.ASSISTANT,action:"Open"}),window.dispatchEvent(new CustomEvent("openAssistant"))},this.listenOn(window,"deployProgressEnd",()=>{this._modifiedCheckTry=D,this._loadUpdateProcedures()}),this.listenOn(window,"solutionDeleted",()=>{this._modifiedCheckTry=D,this._loadUpdateProcedures()}),this.listenOn(window,"sortTypeChanged",e=>{e.detail&&e.detail.scope==="all-solutions"&&(this.sortType=e.detail.sortType,this._telemetry?.logEvent({category:u.ALL_SOLUTIONS,action:"Sort",dimensions:[I(e.detail.sortType)]}),this.sortType==="suggested"&&this._deployedSolutions?.cards.length===0?this._getDeployedSolutions().then(()=>{this.searchSolutions(e.detail)}):this.searchSolutions(e.detail))}),this.listenOn(window,"solutionIDFromAssistant",e=>{this._lookupSolutionById(e.detail)})}static{this.properties={sortType:1,_cards:[16,{},{state:!0}],_isLoading:[16,{},{state:!0}],_modifiedCheckTry:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=b}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextConsumer.value?.isEnterprise===!0&&this._configContextConsumer.value?.authentication?.CanSearchArcGISOnline===!1}async searchSolutions(e){this._isDisconnectedEnvironment||(e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):Array.isArray(e)&&this._filterCards(e):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),this._cards=await this._getSolutions())}async setSearchOptions(e){e&&("searchTerm"in e&&(this._textSearch(e.searchTerm),this.searchTermSet.emit({searchTerm:e.searchTerm,scope:"all-solutions"})),"sortType"in e&&(this._sortCards(e),this.sortTypeSet.emit({sortType:e.sortType,scope:"all-solutions"})))}render(){let e=this._configContextConsumer.value?.authentication?.IsSignedIn&&this._configContextConsumer.value?.authentication?.CanUseAI;return this._isDisconnectedEnvironment?a`<div class="no-solutions">${this._getMeridianSearch()}<div class="no-solutions-prompt"><div class="text-center leader-1 warning-text trailer-1"><div>${this._translations.disconnectedEnvironment}</div></div></div></div>`:this._isLoading||this._cards.length?a`<calcite-panel>${this._isLoading?a`<calcite-loader id=solutions-all-panel-loader .label=${this._translations.fetchingSolutions}></calcite-loader>`:a`<calcite-card-group class="card-group" .label=${this._translations.allSolutionCards}>${this._renderCards()}</calcite-card-group>`}</calcite-panel>`:a`<div class="no-solutions">${this._getMeridianSearch()}<div class="no-solutions-prompt"><div class="text-center leader-1 warning-text trailer-1"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${e?this._translations.assistantHelp:this._translations.changeSearchTerm}</div></div>${e&&a`<calcite-button appearance=outline icon-start=speech-bubbles @click=${this._handleOpenAssistant} scale=l>${this._translations.askAssistant}</calcite-button>`||""}</div></div>`}_renderCards(){return this._cards.map(e=>a`<solution-details-card .card=${e}></solution-details-card>`)}async _getSolutions(){if(this._isDisconnectedEnvironment)return this._isLoading=!1,[];if(this._configContextConsumer.value){this._isLoading=!0;let e=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},this._configContextConsumer.value?.primarySolutionsGroupId,this._configContextConsumer.value?.agoBasedEnterpriseSolutionsGroupId,this._configContextConsumer.value?.userSession,this._configContextConsumer.value?.isEnterprise,{num:1e3}),t=e?.cards.length?e.cards:[];if(this.sortType==="new"||this.sortType==="updated"){let s="/Categories/New Release";this.sortType==="updated"&&(s="/Categories/Updated"),t.sort((l,d)=>l.categories.includes(s)&&!d.categories.includes(s)?-1:!l.categories.includes(s)&&d.categories.includes(s)?1:l.categories.includes(s)&&d.categories.includes(s)?l.categories.length-d.categories.length:0)}else if(this.sortType==="suggested"&&this._relatedSolutions.size>0&&this._deployedSolutions?.cards?.length){let s=new Map;for(let o of t){let r=s.get(o.deployCommonId),n=Number(o.deployVersion);(!r||n>r)&&s.set(o.deployCommonId,n)}let l=this._deployedSolutions.cards.filter(o=>{let r=s.get(o.deployCommonId);return r!==void 0&&Number(o.deployVersion)>=r}),d=new Set(l.map(o=>o.deployCommonId));this._relatedSolutions=new Set([...this._relatedSolutions].filter(o=>!d.has(o))),t.sort((o,r)=>{let n=this._relatedSolutions.has(o.deployCommonId),p=this._relatedSolutions.has(r.deployCommonId);return n&&!p?-1:!n&&p?1:0})}let i=t.map(s=>{let l=s.categories.indexOf("/Categories/New Release")>-1,d=s.categories.indexOf("/Categories/Updated")>-1,o=!1,r=!0;this._deployedSolutions&&(o=this._isSolutionDeployed(s.deployCommonId),r=this._isLatestVersion(s));let n=[];return l?n.push("new"):d&&n.push("updated"),o&&r&&n.push("deployed"),s.chips=n.length>0?n:void 0,s.supportReuse=o?!!(o&&!r):!0,s});return this._allCards.length===0&&e?.cards&&(this._allCards=e?.cards,this._deployedSolutions&&(this._relatedSolutions=L(this._deployedSolutions.cards,this._allCards))),this.cardsFetched.emit(i.length),this._isLoading=!1,i}else return this._isLoading=!1,[]}async _loadUpdateProcedures(){if(this._isDisconnectedEnvironment){this._isLoading=!1;return}this._isLoading=!0;let e=this._configContextConsumer.value;this._cardsFetcher=new g(e.locale,e.orgUrl,e.portalURL),this._cardsFetcherDeployed=new g(e.locale,e.orgUrl,e.portalURL),await this._getDeployedSolutions(),this._cards=await this._getSolutions(),this.allCardsFetched.emit(this._cards),this._isLoading=!1}async _getDeployedSolutions(){let e=this._configContextConsumer.value.authentication,t=this._configContextConsumer.value.userSession;if(e&&t&&e.IsSignedIn){let i=await A(e,t,this._cardsFetcher,this._cardsFetcherDeployed,E,"created");if(i){if(this._modifiedCheckTry>0){if(this._deployedSolutions?.cards.length===i?.cards.length)return this._modifiedCheckTry--,await this._getDeployedSolutions();this._modifiedCheckTry=0}this._deployedSolutions=i}}}_getMeridianSearch(){return a`<div><svg viewBox="0 0 64 64" width=140 height=140 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${f`<path d="M60.217 54.937l-15.77-15.77-1.414 1.415-3.801-3.8a19.94 19.94 0 1 0-2.451 2.45l3.802 3.802-1.413 1.415 15.767 15.767a1.739 1.739 0 0 0 2.459 0l2.82-2.821a1.742 1.742 0 0 0 0-2.458zM4.9 24A19.1 19.1 0 1 1 24 43.1 19.121 19.121 0 0 1 4.9 24zm32.474 14.693q.69-.63 1.32-1.32l3.774 3.775-1.32 1.32zM59.65 56.83l-2.82 2.82a.97.97 0 0 1-1.327 0L40.3 44.45l4.145-4.15L59.65 55.501a.939.939 0 0 1 0 1.328zM22.343 9.62l.097.795q-.31.038-.619.086a13.635 13.635 0 0 0-11.353 11.775l-.026.217-.795-.084.026-.228a14.44 14.44 0 0 1 12.022-12.47c.215-.034.431-.064.648-.09z" />`}</svg></div>`}_textSearch(e){this._agoTerms=this._baseAgoTerms+` ${e}`}_sortCards(e){let t=e.sortType;this._getSuggested=!1,this._sortOrder="desc",t==="suggested"?this._getSuggested=!0:t==="new"?this._sortField="relevance":t==="relevance"||t==="title"?(t==="title"&&(this._sortOrder="asc"),this._sortField=t):t==="updated"&&(this._sortField="relevance"),this.sortType=t}_filterCards(e){this._categories=[],e.forEach(t=>{if(t.industry){let i=this._getIndustryValue(t.industry);if(t.domain){let s=this._getDomainValue(t.domain);this._categories.push(`/Categories/${i}/${s}`)}else this._categories.push(`/Categories/${i}`)}})}_getDomainValue(e){return x[e]}_getIndustryValue(e){return e==="AEC"?"AEC":T[e]}_clearFilterCategories(){this._categories=[]}_isSolutionDeployed(e){return!!this._deployedSolutions?.cards?.some(t=>t?.typeKeywords?.some(i=>i.includes("solutionid")&&i.includes(e)))}_isLatestVersion(e){let t=this._deployedSolutions?.cards?.filter(i=>i?.typeKeywords?.some(s=>s.includes("solutionid")&&s.includes(e.deployCommonId)));return!(t&&t.length>0&&t[0].deployVersion!==e.deployVersion)}_lookupSolutionById(e){let t=this._allCards.filter(i=>i.deployCommonId===e);t.length>0&&this.detailsCardSelected.emit(t[0])}};S("solutions-all-panel",m);return m},b,d,e,g)
|