@esri/solutions-components 1.2.0-next.161 → 1.2.0-next.162

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.
@@ -0,0 +1,136 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import{a as v}from"./YUDZU2OW.js";import c from"./YFLYHPA6.js";import{a as b,b as y}from"./W4YXXJAS.js";import{b as o}from"./77CU4WA2.js";import{a as _}from"./6S75SIVV.js";import{b as m}from"./ABSRNM72.js";import{F as n,G as a,H as g,K as r,h as p,i as s,r as f}from"./5CQPQ7AE.js";export default $arcgis.t(([{g:c,h:d,n:h}])=>{var x=p`/** @license
3
+ * Copyright 2025 Esri
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ .display-flex {
19
+ display: flex;
20
+ }
21
+
22
+ .border-override {
23
+ border-top-width: var(--calcite-border-width-none);
24
+ border-bottom-width: var(--calcite-border-width-none);
25
+ }
26
+
27
+ .header-override {
28
+ --calcite-panel-header-content-space: 0px;
29
+ --calcite-panel-header-background-color: var(--calcite-color-foreground-2);
30
+ }
31
+
32
+ .panel-override {
33
+ --calcite-panel-background-color: var(--calcite-color-foreground-2);
34
+ --calcite-panel-border-color: none;
35
+ }
36
+
37
+ .label-override {
38
+ --calcite-label-margin-bottom: 0px;
39
+ padding-inline-start: var(--calcite-spacing-md);
40
+ font-weight: var(--calcite-font-weight-medium);
41
+ }
42
+
43
+ .header-button-padding {
44
+ padding-top: var(--calcite-spacing-sm);
45
+ padding-bottom: var(--calcite-spacing-sm);
46
+ padding-inline-start: var(--calcite-spacing-lg);
47
+ padding-inline-end: var(--calcite-spacing-lg);
48
+ }
49
+
50
+ .padding-start {
51
+ padding-inline-start: var(--calcite-spacing-lg);
52
+ }
53
+
54
+ .align-items-center {
55
+ align-items: center;
56
+ }
57
+
58
+ .justify-content-end {
59
+ justify-content: end;
60
+ }
61
+
62
+ .filter-width-350 {
63
+ --calcite-shell-panel-width: 350px;
64
+ }
65
+
66
+ .z-index-1 {
67
+ z-index: 1;
68
+ }
69
+
70
+ .z-index-2 {
71
+ z-index: 2;
72
+ }
73
+
74
+ h1 {
75
+ font-weight: unset;
76
+ margin: 0;
77
+ padding: 0;
78
+ }
79
+
80
+ /* This is tied to a supporting media query in the components code.
81
+ If you update this you will need to update or at least consider that code.
82
+ */
83
+ @media (max-width: 800px) {
84
+ .filter {
85
+ display: none;
86
+ }
87
+ }
88
+
89
+ .mock-fab {
90
+ --calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);
91
+ box-shadow: var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));
92
+ --calcite-button-background-color: var(--calcite-fab-background-color);
93
+ --calcite-button-border-color: var(--calcite-fab-border-color);
94
+ --calcite-button-text-color: var(--calcite-fab-text-color);
95
+ --calcite-button-loader-color: var(--calcite-fab-loader-color);
96
+ }
97
+
98
+ .background-override {
99
+ --calcite-shell-panel-background-color: var(--calcite-color-foreground-3);
100
+ --calcite-panel-background-color: var(--calcite-color-foreground-3);
101
+ }
102
+
103
+ .chips-container {
104
+ display: flex;
105
+ flex-wrap: wrap;
106
+ align-items: center;
107
+ gap: var(--calcite-spacing-xs);
108
+ flex: 1;
109
+ padding-block: var(--calcite-spacing-xs);
110
+ }
111
+
112
+ .header-content-wrapper {
113
+ min-height: 50px;
114
+ flex-wrap: wrap;
115
+ gap: var(--calcite-spacing-xs);
116
+ }
117
+
118
+ .position-relative {
119
+ position: relative;
120
+ }
121
+
122
+ .height-100 {
123
+ height: 100%;
124
+ }
125
+
126
+ .border-none {
127
+ border: none;
128
+ }
129
+
130
+ .height-50 {
131
+ height: 50px;
132
+ }
133
+
134
+ .padding-top-3 {
135
+ padding-top: 3px;
136
+ }`,u=class extends g{constructor(){super(),this.solutionsCount=0,this._isLoading=!0,this._filterOpen=!0,this._filters={categories:[],searchTerm:""},this._isMobile=!1,this._translations=_({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=n(),this._solutionsFilterPanelRef=n(),this._configContextConsumer=o({context:y,subscribe:!0}),this._isMobileContextConsumer=o({context:b,subscribe:!0,callback:e=>this._isMobile=e}),this.filterRemoved=f(),this.listenOn(window,"searchChanged",e=>{console.log("searchChanged event received in all solutions shell"),e.detail&&e.detail.scope==="all-solutions"&&this._filterApplied(e.detail.option,e.detail.logSearchTelemetry)}),this.listenOn(window,"toggleFilter",this._toggleFilter),this.listenOn(window,"cardsFetched",()=>{this._isLoading=!1})}static{this.properties={solutionsCount:[9,{},{type:Number}],_isLoading:[16,{},{state:!0}],_filterOpen:[16,{},{state:!0}],_filters:[16,{},{state:!0}],_isMobile:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=x}willUpdate(e){e.has("_isMobile")&&(this._filterOpen=!this._isMobile)}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async searchSolutions(e){if(console.log("searchSolutions"),this._allSolutionsPanelRef.value.setSearchOptions(e),"industry"in e||"domain"in e){e.displayValue=e.domain||e.industry;let t=e.industry?Object.entries(c).find(([,l])=>l===e.industry)?.[0]:void 0,i=e.domain?Object.entries(d).find(([,l])=>l===e.domain)?.[0]:void 0;e.industry=t||"",e.domain=i||"",e.value=i||t||"",this._solutionsFilterPanelRef.value.changeIndustryFilter(e.industry,e.domain,e.displayValue,!0)}else("searchTerm"in e||"sortType"in e)&&("searchTerm"in e&&(this._filters.searchTerm=e.searchTerm),this._allSolutionsPanelRef.value?.searchSolutions(e))}async load(){this._isMobileContextConsumer.value&&(this._isMobile=this._isMobileContextConsumer.value)}render(){let e=this._isMobile?"justify-content-end":"",t=this._isLoading?"display-none":"";return s`<calcite-shell class=${`position-relative ${t}`}>${this._isMobile?"":this._getFilterPanel()}<h1 class="height-100"><calcite-panel class="border-override header-override panel-override z-index-1"><div class=${`display-flex align-items-center header-content-wrapper ${e}`} slot=header-content><calcite-label class="label-override padding-top-3">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label><div class="chips-container">${this._renderChips()}${this._filters.categories&&this._filters.categories?.length>0&&s`<calcite-button appearance=transparent icon-start=reset kind=neutral @click=${()=>{this._filters={...this._filters,categories:[]},this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this.filterRemoved.emit([])}} .label=${this._translations.clearIndustryFilter}>${this._translations.clearIndustryFilter}</calcite-button>`||""}</div></div>${this._isMobile&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></h1></calcite-shell>`}_getFilterPanel(){let e=this._filterOpen?{display:"flex"}:"";return this._isMobile?s`<calcite-panel class=${`border-none ${this._filterOpen?"background-override":"filter background-override"}`} id=solutions-all-shell-panel-start style=${r(e)}><solutions-filter-panel class="height-100" @applyFilter=${t=>{this._filterApplied(t.detail)}} ${a(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel>`:s`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start slot=panel-start style=${r(e)}><calcite-panel class="border-none"><solutions-filter-panel class="height-100" @applyFilter=${t=>{this._filterApplied(t.detail)}} ${a(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this._isMobile&&this._filterOpen?{display:"none"}:"";return s`<solutions-all-panel @cardsFetched=${this._updateSolutionCount} style=${r(e)} ${a(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){if(!this._filters.categories)return;let e=this._filters.categories.filter(t=>t.type==="industry"||t.type==="domain");return e.length>0?v(e,t=>`${t.type}:${t.value}`,t=>s`<calcite-chip appearance=outline-fill class="padding-start" closable kind=neutral .label=${t.displayValue} @calciteChipClose=${()=>this._chipClosed(t.displayValue,t.type)} .value=${t.displayValue}>${t.displayValue}</calcite-chip>`):void 0}_updateSolutionCount(e){this.solutionsCount=e.detail}_chipClosed(e,t){if(this._filters.categories){if(t==="industry")this._filters.categories=[];else{let i=this._filters.categories.filter(l=>l.displayValue!==e&&l.type!==t);this._filters.categories=i}this._filters.categories.length>0?this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories):this._filters.searchTerm!==""?(this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this._allSolutionsPanelRef.value?.searchSolutions({searchTerm:this._filters.searchTerm})):this._allSolutionsPanelRef.value?.searchSolutions(),this.filterRemoved.emit(this._filters.categories)}}_toggleFilter(){this._filterOpen=!this._filterOpen}_logFilterTelemetry(e){if((e.type==="industry"||e.type==="domain")&&e.industry){let i=[c[e.industry]];if(e.domain){let l=d[e.domain];i.push(l)}this._telemetry?.logEvent({category:h.ALL_SOLUTIONS,action:"Filter",dimensions:i})}}_filterApplied(e,t){if(this._filters.categories)if(console.log("_filterApplied called with options:",e),e){let i=e;if("displayValue"in e)this._filters.categories.push(e),this._logFilterTelemetry(e);else if(Array.isArray(e)&&e.length>0){e.length>=2&&(i=[e[e.length-1]]),this._filters={categories:e,searchTerm:this._filters.searchTerm};let l=e[e.length-1];l&&this._logFilterTelemetry(l)}if("searchTerm"in i&&(this._filters.searchTerm=i.searchTerm,t&&i.searchTerm)){this._telemetry?.logEvent({category:h.ALL_SOLUTIONS,action:"Search",dimensions:[i.searchTerm]});return}this._allSolutionsPanelRef.value?.searchSolutions(i)}else this._filters.categories=[],this._allSolutionsPanelRef.value?.searchSolutions()}};m("solutions-all-shell",u);return u},c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import c from"./ENQDLBGD.js";import b from"./X22C5ANH.js";import"./I5GF7UR6.js";import"./YUDZU2OW.js";import a from"./YFLYHPA6.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)
2
+ import c from"./3JUHBSWF.js";import b from"./X22C5ANH.js";import"./I5GF7UR6.js";import"./YUDZU2OW.js";import a from"./YFLYHPA6.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)
@@ -0,0 +1,84 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import t from"./IURQTVFW.js";import s from"./TNKBHEPU.js";import r from"./3JUHBSWF.js";import q from"./X22C5ANH.js";import"./ZZGU5JQR.js";import l from"./KYROITG2.js";import k from"./MITVRON5.js";import j from"./NRKNJXAQ.js";import"./7SGXC6B2.js";import i from"./7LOKKH5S.js";import h from"./IMVJT6BJ.js";import e from"./HCRCP6KN.js";import d from"./XLDH3RFW.js";import"./I5GF7UR6.js";import"./YUDZU2OW.js";import c from"./U2FD6RFU.js";import b from"./YFLYHPA6.js";import{a as S,b as C}from"./W4YXXJAS.js";import{a as _}from"./77CU4WA2.js";import"./TRGFYBOH.js";import{a as v}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 f}from"./ABSRNM72.js";import{F as o,G as a,H as m,J as p,h as g,i as u,r as n}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,,,{c:w,k:I,l:F,n:c},,,,{b:D},,,{g:O,h:x},,,,{a:b,b:E},{a:y}])=>{var L=g`/** @license
3
+ * Copyright 2025 Esri
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ .back-color-override {
19
+ background-color: var(--calcite-color-foreground-2);
20
+ --calcite-tab-border-color: var(--calcite-color-foreground-3);
21
+ }
22
+
23
+ .display-none {
24
+ display: none !important;
25
+ }
26
+
27
+ .height-100 {
28
+ height: 100%;
29
+ }
30
+
31
+ /* Calcite overrides */
32
+
33
+ calcite-tab-nav {
34
+ padding-bottom: 6px;
35
+ padding-top: 6px;
36
+ }
37
+
38
+ calcite-tabs {
39
+ --calcite-tab-border-color: var(--calcite-color-border-3);
40
+ --calcite-color-focus: transparent;
41
+ height: 100%;
42
+ }
43
+
44
+ .tab-space-0 {
45
+ --calcite-tab-content-space-y: var(--calcite-spacing-none);
46
+ }
47
+
48
+ .tab-space-md {
49
+ --calcite-tab-content-space-y: var(--calcite-spacing-md);
50
+ }
51
+
52
+ solutions-searchsort-toolbar,
53
+ solutions-deploy-app-nav,
54
+ solution-details-panel,
55
+ solutions-resources-shell,
56
+ solutions-deployed-shell,
57
+ solutions-all-shell,
58
+ calcite-tab-nav,
59
+ solution-deployed-card-panel {
60
+ width: 1440px;
61
+ display: block;
62
+ max-width: 96vw;
63
+ padding-right: var(--calcite-spacing-none);
64
+ padding-left: var(--calcite-spacing-none);
65
+ margin-left: auto;
66
+ margin-right: auto;
67
+ box-sizing: border-box;
68
+ }
69
+
70
+ .border {
71
+ height: var(--calcite-spacing-px);
72
+ border-bottom-color: var(--calcite-color-border-3);
73
+ border-bottom-style: solid;
74
+ border-bottom-width: var(--calcite-border-width-sm);
75
+ box-sizing: border-box;
76
+ }
77
+
78
+ .overflow-auto {
79
+ overflow: auto;
80
+ }
81
+
82
+ solution-details-panel {
83
+ scroll-margin-top: 3rem;
84
+ }`,T=class extends m{constructor(){super(),this.initTitleOrId="",this.sortType="relevance",this.useLocalAppConfig=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._activeTab="all-solutions",this._showDeployedCardFetchFailed=!1,this._translations=v({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${F}`,this._allCards=[],this._allShell=o(),this._allTab=o(),this._allTabTitle=o(),this._resourcesTab=o(),this._resourcesTabTitle=o(),this._categories=[],this._configContextProvider=_({context:C}),this._delay=!1,this._deployAppNav=o(),this._deployedCardPanel=o(),this._deployCardFetchFailedMessage="",this._deployedCardTab=o(),this._deployedCardTabTitle=o(),this._detailsShell=o(),this._detailsTab=o(),this._detailsTabTitle=o(),this._forceInit=!1,this._getSuggested=!1,this._isMobileContextProvider=_({context:S}),this._mySolutionsShell=o(),this._mySolutionsTab=o(),this._mySolutionsTabTitle=o(),this._sortField="relevance",this._sortOrder="desc",this._telemetryManager=new y,this.deployAppTabSelected=n(),this.deployedCardFetchFailed=n(),this.detailsCardSelected=n(),this.deployedCardSelected=n(),this.metaTagStringsReady=n(),this.tabChanged=n(),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._mediaQueryChange=this._mediaQueryChange.bind(this)}static{this.properties={appConfig:1,initTab:1,initTitleOrId:1,sortType:1,useLocalAppConfig:[5,{},{type:Boolean}],authentication:[16,{},{state:!0}],_isLoaded:[16,{},{state:!0}],isMobile:[16,{},{state:!0}],_activeTab:[16,{},{state:!0}],_showDeployedCardFetchFailed:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}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}async selectTab(t,e){if(console.log("selectTab"),this._isLoaded||this._forceInit){let i=this._getDefaultSearchOptions(e);switch(t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,i&&(this._searchSortToolbar.changeSearchFilter(i.searchTerm),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(l=>l.id===t.tabTitleOrId?(s=l,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=O(this._allCards,t.tabTitleOrId);s=s||x(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,i&&(console.log(this._searchSortToolbar),this._searchSortToolbar.changeSearchFilter(i.searchTerm),await this._mySolutionsShell.value?.searchSolutions(i));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}async connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this._mediaQuery.addEventListener("change",this._mediaQueryChange),this._mediaQueryChange(this._mediaQuery)}async load(){this.useLocalAppConfig&&(this.appConfig=D)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return u`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${a(this._deployAppNav)}></solutions-deploy-app-nav>${this._isSearchToolbarShowing()&&u`<div class="border" slot=header></div>`||""}<solutions-searchsort-toolbar slot=header ${a(async i=>{i&&(await this._deployAppNav.value?.componentOnReady(),console.log("this is not working right on page refresh need to fiugure out another way"),i.scope===void 0&&(this._searchSortToolbar=i,console.log(this._initFilters)))})}></solutions-searchsort-toolbar><calcite-loader class=${p(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader><calcite-tabs class=${p(e)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleTabChanged} 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-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 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-tabs></calcite-shell>`}loaded(){this._setScrollbarGutters()}disconnectedCallback(){super.disconnectedCallback(),this._mediaQuery?.removeEventListener("change",this._mediaQueryChange)}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 b(e.locale,e.orgUrl,e.portalURL),this._cardsFetcher=new b(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)))}_mediaQueryChange(t){this.isMobile=t.matches,this._isMobileContextProvider.setValue(this.isMobile)}_setActiveTab(t){let i=t.detail.tabType,s=this._activeTab!==i;switch(this._activeTab=i,s&&this._logTabViewTelemetry(i),i){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}i!=="details"&&i!=="deployed-card"&&(this._deployAppNav.value.activateMenuItem(i),this.deployAppTabSelected.emit(i),this._emitMetaTagStrings(i))}_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 l=t==="deployed-card"?"Open":"View";this._telemetry?.logEvent({category:i,action:l,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})}_handleTabChanged(t){console.log("=======================tabCg=haned here too======================================"),console.log(t),this._activeTab,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")}_handleDeployedCardDisplay(t){let{card:e,cardRef:i}=t.detail;this.deployedCardSelected.emit({card:e,cardRef:i})}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[];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,{num:1e3});return 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){let s=w(e);try{let l=await E(e,i,this._cardsFetcher,this._cardFetcherDeployed,I,"created","desc",!1,[],[],s?"My organization's solutions":"My solutions",t);l.cards.length===0||l.cards[0].typeKeywords.indexOf("Deployed")<0?(this._deployCardFetchFailedMessage=this._translations.failedToFetchNotSolution.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):this._deployedSolutions=l}catch(l){let r=l.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(l)}}}_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,l=t.offerType,r=t.searchTerm,k="",d=t.sortField,h=t.owner;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:k}),d&&(e=e?{...e,sortType:d}:{sortType:d}),l&&(d=l.toLowerCase(),e=e?{...e,sortType:d}:{sortType:d}),h&&(e=e?{...e,owner:h}:{owner:h})}return e}_setScrollbarGutters(){let t=this._detailsTab.value?.shadowRoot?.firstElementChild;t?.style&&(t.style.scrollbarGutter="stable both-edges");let e=this._deployedCardTab.value?.shadowRoot?.firstElementChild;e?.style&&(e.style.scrollbarGutter="stable both-edges")}_setRefreshInterval(){let{userSession:t,authentication:e}=this._configContextProvider.value;if(t&&t.tokenDuration&&e?.IsSignedIn){let i=Date.now(),l=(e.Credential?.expires-i)*.95;setInterval(async()=>{await t.refreshCredentials()},l)}}};f("solutions-deploy-app",T);return T},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",b,c,d,e,h,i,j,k,l,q,r,s,t)
@@ -68,4 +68,4 @@ calcite-dropdown {
68
68
 
69
69
  .padding-end-1-2 {
70
70
  padding-inline-end: 0.5rem;
71
- }`,h=class extends d{constructor(){super(),this.defaultSortType="relevance",this.isOrgSolutions=!1,this._activeSearchSortSettings=[{scope:"all-solutions",settings:{enabled:!0,isOrgSolutions:!1,searchTerm:"",sortType:"relevance"}},{scope:"deployments",settings:{enabled:!0,isOrgSolutions:!1,searchTerm:"",sortType:"created"}}],this._isMobile=!1,this._isOrgAdmin=!1,this._translations=g({name:"solutions-searchsort-toolbar",blocking:!0}),this._configContextConsumer=c({context:S,subscribe:!0,callback:async t=>{t&&(this._isOrgAdmin=t.authentication?.PortalUserSubset?.role==="org_admin"||y(t.authentication))}}),this._isMobileContextConsumer=c({context:m,subscribe:!0,callback:t=>this._isMobile=t}),this.searchChanged=a(),this.sortTypeChanged=a(),this.toggleFilter=a(),this.updateUrlParams=a(),this.listenOn(window,"detailsCardSelected",()=>{this.scope=void 0}),this.listenOn(window,"deployedCardSelected",()=>{this.scope=void 0}),this.listenOn(window,"searchTermSet",t=>{let e=t.detail;this.scope=e.scope,this.changeSearchFilter(e.searchTerm,!1)}),this.listenOn(window,"sortTypeSet",t=>{let e=t.detail;this.scope=e.scope,this.sortChanged(e.sortType,!1)}),this.listenOn(window,"tabChanged",t=>{console.log("============================================================="),console.log("tab changed event received search sort toolbar"),console.log(t),console.log(this._activeSearchSortSettings),console.log(this.scope),console.log("============================================================="),(t.detail==="deployments"||t.detail==="all-solutions")&&(this.scope=t.detail);let e=this._getCurrentScopeSetting();this.changeSearchFilter(e?.searchTerm||"",!1),this.sortChanged(e?.sortType||this.defaultSortType,!1),this._updateUrlParams(t)})}static{this.properties={defaultSortType:[0,{type:String,attribute:"default-sort-type"},{}],isOrgSolutions:[5,{},{type:Boolean}],scope:1,_activeSearchSortSettings:[16,{},{state:!0}],_isMobile:[16,{},{state:!0}],_isOrgAdmin:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=_}changeOwnerFilter(t){this.isOrgSolutions=!t,this._activeSearchSortSettings=this._activeSearchSortSettings.map(s=>s.scope===this.scope?{...s,settings:{...s.settings,isOrgSolutions:this.isOrgSolutions}}:s);let e={displayValue:this.isOrgSolutions?this._translations.myOrgSolutions:this._translations.mySolutions,type:"owner",value:this.isOrgSolutions?"My organization's solutions":"My solutions"};this.searchChanged.emit({option:e,scope:this.scope})}changeSearchFilter(t,e,s){let o=this._activeSearchSortSettings.map(i=>i.scope===this.scope?{...i,settings:{...i.settings,searchTerm:t}}:i),n=JSON.stringify(this._activeSearchSortSettings)!==JSON.stringify(o);this._activeSearchSortSettings=o,e&&n&&this.searchChanged.emit({option:{searchTerm:t},scope:this.scope}),s&&(this._searchTelemetryTimer&&window.clearTimeout(this._searchTelemetryTimer),this._searchTelemetryTimer=window.setTimeout(()=>{this.searchChanged.emit({option:{searchTerm:t},scope:this.scope,logSearchTelemetry:!0})},1e3))}sortChanged(t,e){this._activeSearchSortSettings=this._activeSearchSortSettings.map(s=>s.scope===this.scope?{...s,settings:{...s.settings,sortType:t}}:s),e&&this.sortTypeChanged.emit({sortType:t,scope:this.scope})}async load(){this._isMobileContextConsumer.value&&(this._isMobile=this._isMobileContextConsumer.value)}render(){let t=this.scope==="all-solutions"||this.scope==="deployments"&&this._configContextConsumer.value?.authentication?.IsSignedIn,e=t?this._getCurrentScopeSetting():void 0,s=this.scope==="deployments"?this._translations.search.deployments:this._translations.search.solutions,o=this._isMobile?"padding-end-1-2":"";return t?r`<div class="flex-row toolbar-sizing"><calcite-input-text class="flex-grow-1" clearable icon=search @calciteInputTextChange=${n=>{let i=n.target;this.changeSearchFilter(i.value,!0,!1)}} @keyup=${n=>{let i=n.target;n.key==="Enter"?this.changeSearchFilter(i.value,!0,!1):(i.value.length>=3||i.value.length===0)&&this.changeSearchFilter(i.value,i.value.length>=3||i.value.length===0,!0)}} .placeholder=${s} scale=l slot=content-top .value=${e?.searchTerm}></calcite-input-text>${this._isMobile&&this.scope==="all-solutions"?r`<calcite-button appearance=transparent class=${`focus-color ${o}`} icon-start=filter kind=neutral .label=${this._translations.showFilters} @click=${this._toggleFilter}></calcite-button>`:""}${this.scope==="deployments"&&this._isOrgAdmin&&this._renderOwnerBlock()||""}${this._renderDropdown()}</div>`:""}_renderOwnerBlock(){return r`<calcite-dropdown width=m overlay-positioning=fixed><calcite-button appearance=transparent class="header-button-padding" .iconStart=${this.isOrgSolutions?"organization":"user"} kind=neutral slot=trigger>${this._isMobile?"":this.isOrgSolutions?this._translations.myOrgSolutions:this._translations.mySolutions}</calcite-button><calcite-dropdown-group group-title=${this._translations.filterBy??l}><calcite-dropdown-item icon-start=user @click=${()=>{this.changeOwnerFilter(!0)}} .selected=${!this.isOrgSolutions}>${this._translations.mySolutions}</calcite-dropdown-item><calcite-dropdown-item icon-start=organization @click=${()=>{this.changeOwnerFilter(!1)}} .selected=${this.isOrgSolutions}>${this._translations.myOrgSolutions}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}_renderDropdown(){let t=[];t=[{displayValue:this._translations.sortByRelevance,sortType:"relevance"},{displayValue:this._translations.sortByTitle,sortType:"title"}],this.scope==="deployments"?t.push({displayValue:this._translations.sortByDateDeployed,sortType:"created"}):(t.push({displayValue:this._translations.sortByNew,sortType:"new"}),t.push({displayValue:this._translations.sortByUpdated,sortType:"updated"}),this._configContextConsumer.value?.authentication?.IsSignedIn&&t.push({displayValue:this._translations.sortBySuggestedForYou,sortType:"suggested"}));let e=this._getCurrentScopeSetting();return r`<calcite-dropdown width=m><calcite-button appearance=transparent class="header-button-padding" icon-start=sort-descending kind=neutral slot=trigger>${this._isMobile?"":e?.sortType?this._getString(e.sortType):""}</calcite-button><calcite-dropdown-group group-title=${this._translations.chooseSortType??l}>${t.map(s=>this._getDropdownItem(s.displayValue,s.sortType))}</calcite-dropdown-group></calcite-dropdown>`}_getDropdownItem(t,e){let s=this._getCurrentScopeSetting();return s?.sortType&&s.sortType!==e?r`<calcite-dropdown-item @click=${()=>this.sortChanged(e,!0)}>${t}</calcite-dropdown-item>`:r`<calcite-dropdown-item @click=${()=>this.sortChanged(e,!0)} selected>${t}</calcite-dropdown-item>`}_getString(t){let e="";switch(t){case"new":e=this._translations.sortByNew;break;case"relevance":e=this._translations.sortByRelevance;break;case"suggested":e=this._translations.sortBySuggestedForYou;break;case"title":e=this._translations.sortByTitle;break;case"updated":e=this._translations.sortByUpdated;break;case"created":e=this._translations.sortByDateDeployed;break}return e}_getCurrentScopeSetting(){return this._activeSearchSortSettings?.filter(e=>e.scope===this.scope)?.[0]?.settings}_toggleFilter(){this.toggleFilter.emit()}_updateUrlParams(t){let e=t.detail,s;this._activeSearchSortSettings.some(o=>o.scope===e?(s=o,!0):!1),s&&this.updateUrlParams.emit(s)}};u("solutions-searchsort-toolbar",h);return h},b)
71
+ }`,h=class extends d{constructor(){super(),this.defaultSortType="relevance",this.isOrgSolutions=!1,this._activeSearchSortSettings=[{scope:"all-solutions",settings:{enabled:!0,isOrgSolutions:!1,searchTerm:"",sortType:"relevance"}},{scope:"deployments",settings:{enabled:!0,isOrgSolutions:!1,searchTerm:"",sortType:"created"}}],this._isMobile=!1,this._isOrgAdmin=!1,this._translations=g({name:"solutions-searchsort-toolbar",blocking:!0}),this._configContextConsumer=c({context:S,subscribe:!0,callback:async t=>{t&&(this._isOrgAdmin=t.authentication?.PortalUserSubset?.role==="org_admin"||y(t.authentication))}}),this._isMobileContextConsumer=c({context:m,subscribe:!0,callback:t=>this._isMobile=t}),this.searchChanged=a(),this.sortTypeChanged=a(),this.toggleFilter=a(),this.updateUrlParams=a(),this.listenOn(window,"detailsCardSelected",()=>{this.scope=void 0}),this.listenOn(window,"deployedCardSelected",()=>{this.scope=void 0}),this.listenOn(window,"searchTermSet",t=>{let e=t.detail;this.scope=e.scope,this.changeSearchFilter(e.searchTerm,!1)}),this.listenOn(window,"sortTypeSet",t=>{let e=t.detail;this.scope=e.scope,this.sortChanged(e.sortType,!1)}),this.listenOn(window,"tabChanged",t=>{console.log("============================================================="),console.log("tab changed event received search sort toolbar"),console.log(t),console.log(this._activeSearchSortSettings),console.log(this.scope),console.log("============================================================="),(t.detail==="deployments"||t.detail==="all-solutions")&&(this.scope=t.detail);let e=this._getCurrentScopeSetting();this.changeSearchFilter(e?.searchTerm||"",!1),this.sortChanged(e?.sortType||this.defaultSortType,!1),this._updateUrlParams(t)})}static{this.properties={defaultSortType:[0,{type:String,attribute:"default-sort-type"},{}],isOrgSolutions:[5,{},{type:Boolean}],scope:1,_activeSearchSortSettings:[16,{},{state:!0}],_isMobile:[16,{},{state:!0}],_isOrgAdmin:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=_}changeOwnerFilter(t){this.isOrgSolutions=!t,this._activeSearchSortSettings=this._activeSearchSortSettings.map(s=>s.scope===this.scope?{...s,settings:{...s.settings,isOrgSolutions:this.isOrgSolutions}}:s);let e={displayValue:this.isOrgSolutions?this._translations.myOrgSolutions:this._translations.mySolutions,type:"owner",value:this.isOrgSolutions?"My organization's solutions":"My solutions"};this.searchChanged.emit({option:e,scope:this.scope})}changeSearchFilter(t,e,s){console.log("changeSearchFilter");let o=this._activeSearchSortSettings.map(i=>i.scope===this.scope?{...i,settings:{...i.settings,searchTerm:t}}:i),n=JSON.stringify(this._activeSearchSortSettings)!==JSON.stringify(o);this._activeSearchSortSettings=o,e&&n&&this.searchChanged.emit({option:{searchTerm:t},scope:this.scope}),s&&(this._searchTelemetryTimer&&window.clearTimeout(this._searchTelemetryTimer),this._searchTelemetryTimer=window.setTimeout(()=>{this.searchChanged.emit({option:{searchTerm:t},scope:this.scope,logSearchTelemetry:!0})},1e3))}sortChanged(t,e){this._activeSearchSortSettings=this._activeSearchSortSettings.map(s=>s.scope===this.scope?{...s,settings:{...s.settings,sortType:t}}:s),e&&this.sortTypeChanged.emit({sortType:t,scope:this.scope})}async load(){this._isMobileContextConsumer.value&&(this._isMobile=this._isMobileContextConsumer.value)}render(){let t=this.scope==="all-solutions"||this.scope==="deployments"&&this._configContextConsumer.value?.authentication?.IsSignedIn,e=t?this._getCurrentScopeSetting():void 0,s=this.scope==="deployments"?this._translations.search.deployments:this._translations.search.solutions,o=this._isMobile?"padding-end-1-2":"";return t?r`<div class="flex-row toolbar-sizing"><calcite-input-text class="flex-grow-1" clearable icon=search @calciteInputTextChange=${n=>{let i=n.target;this.changeSearchFilter(i.value,!0,!1)}} @keyup=${n=>{let i=n.target;n.key==="Enter"?this.changeSearchFilter(i.value,!0,!1):(i.value.length>=3||i.value.length===0)&&this.changeSearchFilter(i.value,i.value.length>=3||i.value.length===0,!0)}} .placeholder=${s} scale=l slot=content-top .value=${e?.searchTerm}></calcite-input-text>${this._isMobile&&this.scope==="all-solutions"?r`<calcite-button appearance=transparent class=${`focus-color ${o}`} icon-start=filter kind=neutral .label=${this._translations.showFilters} @click=${this._toggleFilter}></calcite-button>`:""}${this.scope==="deployments"&&this._isOrgAdmin&&this._renderOwnerBlock()||""}${this._renderDropdown()}</div>`:""}_renderOwnerBlock(){return r`<calcite-dropdown width=m overlay-positioning=fixed><calcite-button appearance=transparent class="header-button-padding" .iconStart=${this.isOrgSolutions?"organization":"user"} kind=neutral slot=trigger>${this._isMobile?"":this.isOrgSolutions?this._translations.myOrgSolutions:this._translations.mySolutions}</calcite-button><calcite-dropdown-group group-title=${this._translations.filterBy??l}><calcite-dropdown-item icon-start=user @click=${()=>{this.changeOwnerFilter(!0)}} .selected=${!this.isOrgSolutions}>${this._translations.mySolutions}</calcite-dropdown-item><calcite-dropdown-item icon-start=organization @click=${()=>{this.changeOwnerFilter(!1)}} .selected=${this.isOrgSolutions}>${this._translations.myOrgSolutions}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}_renderDropdown(){let t=[];t=[{displayValue:this._translations.sortByRelevance,sortType:"relevance"},{displayValue:this._translations.sortByTitle,sortType:"title"}],this.scope==="deployments"?t.push({displayValue:this._translations.sortByDateDeployed,sortType:"created"}):(t.push({displayValue:this._translations.sortByNew,sortType:"new"}),t.push({displayValue:this._translations.sortByUpdated,sortType:"updated"}),this._configContextConsumer.value?.authentication?.IsSignedIn&&t.push({displayValue:this._translations.sortBySuggestedForYou,sortType:"suggested"}));let e=this._getCurrentScopeSetting();return r`<calcite-dropdown width=m><calcite-button appearance=transparent class="header-button-padding" icon-start=sort-descending kind=neutral slot=trigger>${this._isMobile?"":e?.sortType?this._getString(e.sortType):""}</calcite-button><calcite-dropdown-group group-title=${this._translations.chooseSortType??l}>${t.map(s=>this._getDropdownItem(s.displayValue,s.sortType))}</calcite-dropdown-group></calcite-dropdown>`}_getDropdownItem(t,e){let s=this._getCurrentScopeSetting();return s?.sortType&&s.sortType!==e?r`<calcite-dropdown-item @click=${()=>this.sortChanged(e,!0)}>${t}</calcite-dropdown-item>`:r`<calcite-dropdown-item @click=${()=>this.sortChanged(e,!0)} selected>${t}</calcite-dropdown-item>`}_getString(t){let e="";switch(t){case"new":e=this._translations.sortByNew;break;case"relevance":e=this._translations.sortByRelevance;break;case"suggested":e=this._translations.sortBySuggestedForYou;break;case"title":e=this._translations.sortByTitle;break;case"updated":e=this._translations.sortByUpdated;break;case"created":e=this._translations.sortByDateDeployed;break}return e}_getCurrentScopeSetting(){return this._activeSearchSortSettings?.filter(e=>e.scope===this.scope)?.[0]?.settings}_toggleFilter(){this.toggleFilter.emit()}_updateUrlParams(t){let e=t.detail,s;this._activeSearchSortSettings.some(o=>o.scope===e?(s=o,!0):!1),s&&this.updateUrlParams.emit(s)}};u("solutions-searchsort-toolbar",h);return h},b)
package/dist/cdn/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import{a}from"./ABSRNM72.js";import{v as e}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./7IRDIGFC.js"),"_translations:,open,serverRoot,userFirstName;handleSendMessage,loopRequest,requestAIServer;resetChat"],"buffer-tools":[()=>import("./SXKFLQ6J.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./CNCHPFKY.js"),"_translations:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapView:,selectedFeaturesIds:,selectingFeatureFromMap,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./2JWJRETB.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./YQBW4W5Y.js"),"_translations:,aiImageExtraction:,allowMultipleCreation,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("./V7SJ57VS.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./NVZ6TZGY.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("./TMPKCAUQ.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("./WSUCAHSV.js")],"delete-button":[()=>import("./2UY5AG4I.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./NDEILGBJ.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./IVESIH47.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./DEVMQRIV.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./YA54VGWG.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./RG6HG7MX.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./WSGGMK4M.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,position,showCloseBtn;back,getSelectedFeature,next,refresh,toggleListView,updateCurrentGraphic"],"layer-list":[()=>import("./R6TK53NR.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./J6BRXQUD.js"),"layerListWidget:,mapView:,visibilityIcon"],"layer-table":[()=>import("./257E2D26.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("./YP3NCJZY.js"),"basemapConfig:,basemapWidget:,mapView:"],"map-card":[()=>import("./W6DL4QQJ.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("./WOIJDANZ.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./FCS5ID7D.js"),"enabled,floorFilterWidget:,mapView:"],"map-fullscreen":[()=>import("./JLQGZPWA.js"),"fullscreenWidget:,mapView:"],"map-layer-picker":[()=>import("./JDFTGGSH.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("./TVHVKDXC.js"),"legendWidget:,mapView:"],"map-picker":[()=>import("./VXSAHUEP.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./XMMILGG2.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchConfiguration:,searchTerm,searchWidget:"],"map-select-tools":[()=>import("./DI25OTTX.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("./65LO5FJ5.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("./VSJ75MUT.js")],"pdf-download":[()=>import("./JBCXSWUE.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./EWYHZVLG.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("./UBZXPTKV.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./VL2MYWM4.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-configure-titles":[()=>import("./GRHJOEPK.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./BHVGCO32.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./RRCINHTU.js"),"_translations:,card:,debugFailDeployment,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./OTQC3GBA.js"),"_translations:,allowDelete,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./YDFVDQAV.js"),"_translations:,card:,cardRef,diagramKey,open,templateInfos:"],"solution-deploying-dialog":[()=>import("./NRCA2TEL.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./2OFTJJ6V.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./2NELDSSV.js"),"_translations:,card:"],"solution-item-accordion":[()=>import("./MU7RTD3Q.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./5XXBFCJE.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./PXSQUQNJ.js"),"isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./MI3DGRKT.js"),"_translations:,description,heading,icon,meridianIcon,sectionHeading,url"],"solution-snapshot-gallery":[()=>import("./UN4QHPCM.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./GMMSJ5Q4.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("./W6PUON32.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./JM2Q4NAW.js"),"_translations:,sortType;searchSolutions,setSearchOptions"],"solutions-all-shell":[()=>import("./46GUX7LY.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./POOQKE7G.js"),"_translations:,appConfig,initTab,initTitleOrId,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./T7BB5HOB.js"),"_translations:,appConfig,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-filter-panel":[()=>import("./TO6V3TFI.js"),"_translations:,isAllSolutions,isMobile,isOrgAdmin;;changeOwnerFilter,changeSearchFilter,clearFilters"],"solutions-deployed-panel":[()=>import("./ARRXFQPY.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./MTOT253Z.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./XCWRZEQ4.js"),"_translations:,hideIndustryFilter,isAIDialogOpen,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./RL6WXD7H.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./YN7QHN2M.js"),"_translations:"],"solutions-searchsort-toolbar":[()=>import("./6F5PD3AM.js"),"_translations:,defaultSortType,isOrgSolutions,scope;;changeOwnerFilter,changeSearchFilter,sortChanged"]});o({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync(`@layer{:not([hydrated]):is(arcgis-solutions-assistant,buffer-tools,card-manager,consent-manager,create-feature,create-related-feature,crowdsource-manager,crowdsource-reporter,deduct-calculator,delete-button,delete-dialog,edit-card,feature-details,feature-list,field-selection,info-card,layer-list,layer-list-widget,layer-table,map-basemap-gallery,map-card,map-draw-tools,map-floor-filter,map-fullscreen,map-layer-picker,map-legend,map-picker,map-search,map-select-tools,map-tools,pci-calculator,pdf-download,public-notification,refine-selection,selection-tool,solution-configure-titles,solution-delete-dialog,solution-deploy-dialog,solution-deployed-card,solution-deployed-card-panel,solution-deploying-dialog,solution-details-card,solution-details-panel,solution-item-accordion,solution-item-diagram,solution-item-icon,solution-resource-card,solution-snapshot-gallery,solution-social-share,solution-user-avatar,solutions-all-panel,solutions-all-shell,solutions-deploy-app,solutions-deploy-app-nav,solutions-deployed-filter-panel,solutions-deployed-panel,solutions-deployed-shell,solutions-filter-panel,solutions-resources-section,solutions-resources-shell,solutions-searchsort-toolbar){visibility:hidden}
2
+ import{a}from"./ABSRNM72.js";import{v as e}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";var o=e(a,{"arcgis-solutions-assistant":[()=>import("./7IRDIGFC.js"),"_translations:,open,serverRoot,userFirstName;handleSendMessage,loopRequest,requestAIServer;resetChat"],"buffer-tools":[()=>import("./SXKFLQ6J.js"),"_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./CNCHPFKY.js"),"_translations:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapView:,selectedFeaturesIds:,selectingFeatureFromMap,showSketchWidgets,zoomAndScrollToSelected"],"consent-manager":[()=>import("./2JWJRETB.js"),"_translations:,amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./YQBW4W5Y.js"),"_translations:,aiImageExtraction:,allowMultipleCreation,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("./V7SJ57VS.js"),"_translations:,customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./NVZ6TZGY.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("./TMPKCAUQ.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("./WSUCAHSV.js")],"delete-button":[()=>import("./2UY5AG4I.js"),"_translations:,buttonType,deleteDialog,disabled,icon,ids:,layer:,showDeleteCount"],"delete-dialog":[()=>import("./NDEILGBJ.js"),"_translations:,ids:,layer:,open"],"edit-card":[()=>import("./IVESIH47.js"),"_translations:,allowMultipleEditing,enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./DEVMQRIV.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./YA54VGWG.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./RG6HG7MX.js"),"_translations:,configExtraFields,layer:,mapView:,table:,tableRef:"],"info-card":[()=>import("./WSGGMK4M.js"),"_translations:,allowEditing,enableEditGeometry,enableSnapping,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,position,showCloseBtn;back,getSelectedFeature,next,refresh,toggleListView,updateCurrentGraphic"],"layer-list":[()=>import("./R6TK53NR.js"),"_translations:,applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-list-widget":[()=>import("./J6BRXQUD.js"),"layerListWidget:,mapView:,visibilityIcon"],"layer-table":[()=>import("./257E2D26.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("./YP3NCJZY.js"),"basemapConfig:,basemapWidget:,mapView:"],"map-card":[()=>import("./W6DL4QQJ.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("./WOIJDANZ.js"),"_translations:,active,drawMode,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-floor-filter":[()=>import("./FCS5ID7D.js"),"enabled,floorFilterWidget:,mapView:"],"map-fullscreen":[()=>import("./JLQGZPWA.js"),"fullscreenWidget:,mapView:"],"map-layer-picker":[()=>import("./JDFTGGSH.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("./TVHVKDXC.js"),"legendWidget:,mapView:"],"map-picker":[()=>import("./VXSAHUEP.js"),"_translations:,height,isMapLayout,mapInfos:,referenceElement,selectedWebMapId,showMapListInPopover;close,setMapByID,toggle"],"map-search":[()=>import("./XMMILGG2.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchConfiguration:,searchTerm,searchWidget:"],"map-select-tools":[()=>import("./DI25OTTX.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("./65LO5FJ5.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("./VSJ75MUT.js")],"pdf-download":[()=>import("./JBCXSWUE.js"),"_translations:,defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./EWYHZVLG.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("./UBZXPTKV.js"),"_translations:,addresseeLayer:,bufferColor,bufferOutlineColor,defaultBufferDistance,defaultBufferUnit,drawnGraphicsArr:,enabledLayerIds:,enableSearchDistance,enableSearchDistanceOnLoad,geometries:,mapView:,searchDistanceEnabled,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"selection-tool":[()=>import("./VL2MYWM4.js"),"mapView:,selectedLayerId,tool;toggleSelectionTool"],"solution-configure-titles":[()=>import("./GRHJOEPK.js"),"_translations:,card:,open,solutionData,source,templateInfos:"],"solution-delete-dialog":[()=>import("./BHVGCO32.js"),"_translations:,card:,open,source;;close,delete"],"solution-deploy-dialog":[()=>import("./RRCINHTU.js"),"_translations:,card:,debugFailDeployment,open,userOptions:;;close,deploy"],"solution-deployed-card":[()=>import("./OTQC3GBA.js"),"_translations:,allowDelete,card:,deployedDate,description,diagramKey,heading,itemId,owner,templateInfos:,thumbnail,updateAvailable;getTemplates,renderDeleteDialog,renderDiagramDialog"],"solution-deployed-card-panel":[()=>import("./YDFVDQAV.js"),"_translations:,card:,cardRef,diagramKey,open,templateInfos:"],"solution-deploying-dialog":[()=>import("./NRCA2TEL.js"),"_translations:,abortController:,card:,deploymentProgress,isWaitingForCard,open;;cancelDeployment,close,confirmCancel"],"solution-details-card":[()=>import("./2OFTJJ6V.js"),"_translations:,card:,referrerSolutionId,referrerSolutionTitle,referrerSolutionVersion,source"],"solution-details-panel":[()=>import("./2NELDSSV.js"),"_translations:,card:"],"solution-item-accordion":[()=>import("./MU7RTD3Q.js"),"_translations:,itemRelationshipDependencies:,linkType,listSelectionMode,reuseWarning,templateInfos:,typeKeywords:;collapseAll,deselectAll,expandFirstItem,expandItemById,expandItems,selectFirstItem,selectItem,selectItems"],"solution-item-diagram":[()=>import("./5XXBFCJE.js"),"_translations:,diagramKey,templateInfoGraph:,typeKeywords:"],"solution-item-icon":[()=>import("./PXSQUQNJ.js"),"isPortal,type,typeKeywords:"],"solution-resource-card":[()=>import("./MI3DGRKT.js"),"_translations:,description,heading,icon,meridianIcon,sectionHeading,url"],"solution-snapshot-gallery":[()=>import("./UN4QHPCM.js"),"_translations:,card:,itemProperties:,open,screenshot:"],"solution-social-share":[()=>import("./GMMSJ5Q4.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("./W6PUON32.js"),"fullname,lookupProfile,thumbnailUrl,username"],"solutions-all-panel":[()=>import("./JM2Q4NAW.js"),"_translations:,sortType;searchSolutions,setSearchOptions"],"solutions-all-shell":[()=>import("./3TVY2RFO.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-deploy-app":[()=>import("./CYXG4Z57.js"),"_translations:,appConfig,initTab,initTitleOrId,sortType,useLocalAppConfig;selectTab"],"solutions-deploy-app-nav":[()=>import("./T7BB5HOB.js"),"_translations:,appConfig,initTab;;activateMenuItem,clearMenuItems"],"solutions-deployed-filter-panel":[()=>import("./TO6V3TFI.js"),"_translations:,isAllSolutions,isMobile,isOrgAdmin;;changeOwnerFilter,changeSearchFilter,clearFilters"],"solutions-deployed-panel":[()=>import("./ARRXFQPY.js"),"_translations:,sortType;reload,searchSolutions,setSearchOptions"],"solutions-deployed-shell":[()=>import("./MTOT253Z.js"),"_translations:,solutionsCount;searchSolutions"],"solutions-filter-panel":[()=>import("./XCWRZEQ4.js"),"_translations:,hideIndustryFilter,isAIDialogOpen,showReset;;changeIndustryFilter,clearFilters"],"solutions-resources-section":[()=>import("./RL6WXD7H.js"),"cards,heading,subheading"],"solutions-resources-shell":[()=>import("./YN7QHN2M.js"),"_translations:"],"solutions-searchsort-toolbar":[()=>import("./R5MCBBOS.js"),"_translations:,defaultSortType,isOrgSolutions,scope;;changeOwnerFilter,changeSearchFilter,sortChanged"]});o({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync(`@layer{:not([hydrated]):is(arcgis-solutions-assistant,buffer-tools,card-manager,consent-manager,create-feature,create-related-feature,crowdsource-manager,crowdsource-reporter,deduct-calculator,delete-button,delete-dialog,edit-card,feature-details,feature-list,field-selection,info-card,layer-list,layer-list-widget,layer-table,map-basemap-gallery,map-card,map-draw-tools,map-floor-filter,map-fullscreen,map-layer-picker,map-legend,map-picker,map-search,map-select-tools,map-tools,pci-calculator,pdf-download,public-notification,refine-selection,selection-tool,solution-configure-titles,solution-delete-dialog,solution-deploy-dialog,solution-deployed-card,solution-deployed-card-panel,solution-deploying-dialog,solution-details-card,solution-details-panel,solution-item-accordion,solution-item-diagram,solution-item-icon,solution-resource-card,solution-snapshot-gallery,solution-social-share,solution-user-avatar,solutions-all-panel,solutions-all-shell,solutions-deploy-app,solutions-deploy-app-nav,solutions-deployed-filter-panel,solutions-deployed-panel,solutions-deployed-shell,solutions-filter-panel,solutions-resources-section,solutions-resources-shell,solutions-searchsort-toolbar){visibility:hidden}
3
3
 
4
4
  }`);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)
@@ -194,6 +194,7 @@ class SolutionsAllShell extends LitElement {
194
194
  return this._configContextConsumer.value?.telemetrySession;
195
195
  }
196
196
  async searchSolutions(searchOptions) {
197
+ console.log("searchSolutions");
197
198
  this._allSolutionsPanelRef.value.setSearchOptions(searchOptions);
198
199
  if ("industry" in searchOptions || "domain" in searchOptions) {
199
200
  searchOptions.displayValue = searchOptions.domain || searchOptions.industry;
@@ -175,16 +175,8 @@ class SolutionsDeployApp extends LitElement {
175
175
  this._allTab.value.selected = true;
176
176
  this._allTabTitle.value.selected = true;
177
177
  if (searchOptions) {
178
- try {
179
- this._searchSortToolbar.changeSearchFilter(searchOptions.searchTerm);
180
- } catch (error) {
181
- console.log(error);
182
- }
183
- try {
184
- this._searchSortToolbar.value.changeSearchFilter(searchOptions.searchTerm);
185
- } catch (error) {
186
- console.log(error);
187
- }
178
+ this._searchSortToolbar.changeSearchFilter(searchOptions.searchTerm);
179
+ await this._allShell.value?.searchSolutions(searchOptions);
188
180
  }
189
181
  break;
190
182
  case "resources":
@@ -240,16 +232,8 @@ class SolutionsDeployApp extends LitElement {
240
232
  this._mySolutionsTabTitle.value.selected = true;
241
233
  if (searchOptions) {
242
234
  console.log(this._searchSortToolbar);
243
- try {
244
- this._searchSortToolbar.changeSearchFilter(searchOptions.searchTerm);
245
- } catch (error) {
246
- console.log(error);
247
- }
248
- try {
249
- this._searchSortToolbar.value.changeSearchFilter(searchOptions.searchTerm);
250
- } catch (error) {
251
- console.log(error);
252
- }
235
+ this._searchSortToolbar.changeSearchFilter(searchOptions.searchTerm);
236
+ await this._mySolutionsShell.value?.searchSolutions(searchOptions);
253
237
  }
254
238
  break;
255
239
  }
@@ -177,6 +177,7 @@ class SolutionsSearchSortToolbar extends LitElement {
177
177
  this.searchChanged.emit({ option: emitObject, scope: this.scope });
178
178
  }
179
179
  changeSearchFilter(searchTerm, emit, startTelemetryTimer) {
180
+ console.log("changeSearchFilter");
180
181
  const _tempActiveSettings = this._activeSearchSortSettings.map((setting) => setting.scope === this.scope ? {
181
182
  ...setting,
182
183
  settings: {