@esri/solutions-components 1.2.0-next.176 → 1.2.0-next.178

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.
Files changed (78) hide show
  1. package/dist/cdn/{E3RDQBWZ.js → 2BRQFLJM.js} +1 -1
  2. package/dist/cdn/3ZXKTRB3.js +71 -0
  3. package/dist/cdn/4JCIZQUV.js +2 -0
  4. package/dist/cdn/{RFTLE3FH.js → 4ZRD2V6P.js} +1 -1
  5. package/dist/cdn/{HQTCXWS5.js → 5VVGEJPA.js} +1 -1
  6. package/dist/cdn/{C7UDORSN.js → 7AK5QUWI.js} +1 -1
  7. package/dist/cdn/{WO24XOJC.js → 7GAEPJ62.js} +1 -1
  8. package/dist/cdn/{HZ35KRFT.js → B36YXO2J.js} +1 -1
  9. package/dist/cdn/{I4EKAQNZ.js → CTVPNT4G.js} +1 -1
  10. package/dist/cdn/{TPUPFMVO.js → CVEAILLN.js} +1 -1
  11. package/dist/cdn/{RYSMGC7G.js → E5J7DYCN.js} +1 -1
  12. package/dist/cdn/{3MWL4VKU.js → EKACGU3O.js} +1 -1
  13. package/dist/cdn/{HC7Y7YXB.js → GF6RNBP5.js} +1 -1
  14. package/dist/cdn/{UCUN6MQX.js → GTQBWHKB.js} +1 -1
  15. package/dist/cdn/{24LLKGOA.js → JUAEZHMR.js} +1 -1
  16. package/dist/cdn/JZ3IBJXO.js +2 -0
  17. package/dist/cdn/{Z2DNIBG3.js → K6CKFQQ6.js} +1 -1
  18. package/dist/cdn/KI6KLBMZ.js +2 -0
  19. package/dist/cdn/{A4ABVAGK.js → M53QO34H.js} +1 -1
  20. package/dist/cdn/{W7M67PCM.js → MEPALPFR.js} +2 -2
  21. package/dist/cdn/{PUULR4GF.js → NQVXRWJL.js} +1 -1
  22. package/dist/cdn/{BGI5LCTI.js → NSFRJKJI.js} +1 -1
  23. package/dist/cdn/{FEILAE45.js → OPEYCNAQ.js} +1 -1
  24. package/dist/cdn/ORIKGVKN.js +43 -0
  25. package/dist/cdn/{AUZITS7B.js → PO2JCLOX.js} +1 -1
  26. package/dist/cdn/PSJO2ZTN.js +107 -0
  27. package/dist/cdn/{QFO7CLLL.js → R24ASQQY.js} +2 -2
  28. package/dist/cdn/TZFQU3SK.js +136 -0
  29. package/dist/cdn/{Y5KP4RVL.js → U6EU772K.js} +1 -1
  30. package/dist/cdn/{AWWVDYW7.js → UHUM5DBL.js} +1 -1
  31. package/dist/cdn/{ARZ7BSMD.js → UROTPS3S.js} +1 -1
  32. package/dist/cdn/{ZELDJPGW.js → WT3AZBEY.js} +1 -1
  33. package/dist/cdn/{36VCTUT7.js → WUHFGWCC.js} +1 -1
  34. package/dist/cdn/{7CMFEMV5.js → XVKBSBQE.js} +1 -1
  35. package/dist/cdn/{S6OVOZ5S.js → YQJLSKR4.js} +1 -1
  36. package/dist/cdn/{Z7GVQOFC.js → YUDNKOVG.js} +1 -1
  37. package/dist/cdn/Z3RB2L7M.js +84 -0
  38. package/dist/cdn/{CWXECEWK.js → ZCWWLT2A.js} +1 -1
  39. package/dist/cdn/ZFAJKYMR.js +161 -0
  40. package/dist/cdn/index.js +1 -1
  41. package/dist/chunks/cardFetchingUtils.js +5 -2
  42. package/dist/chunks/common.js +7 -1
  43. package/dist/chunks/getRelatedInfos.js +1 -1
  44. package/dist/chunks/interfaces.js +25 -30
  45. package/dist/chunks/solutions-deploy-app-nav.js +13 -2
  46. package/dist/components/solution-deployed-card/customElement.js +2 -2
  47. package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
  48. package/dist/components/solution-details-panel/customElement.js +1 -1
  49. package/dist/components/solution-user-avatar/customElement.js +10 -1
  50. package/dist/components/solutions-all-panel/customElement.js +9 -2
  51. package/dist/components/solutions-all-shell/customElement.js +1 -2
  52. package/dist/components/solutions-deploy-app/customElement.d.ts +2 -0
  53. package/dist/components/solutions-deploy-app/customElement.js +3 -10
  54. package/dist/components/solutions-deploy-app-nav/customElement.js +1 -0
  55. package/dist/components/solutions-deployed-panel/customElement.js +0 -1
  56. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  57. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -3
  58. package/dist/docs/api.json +1 -1
  59. package/dist/docs/docs.json +1 -1
  60. package/dist/docs/vscode.html-custom-data.json +1 -1
  61. package/dist/docs/web-types.json +1 -1
  62. package/dist/index.js +21 -22
  63. package/dist/solutions-components_commit.txt +5 -5
  64. package/dist/types/lumina.d.ts +1 -0
  65. package/dist/types/preact.d.ts +1 -0
  66. package/dist/types/react.d.ts +1 -0
  67. package/dist/types/stencil.d.ts +1 -0
  68. package/dist/utils/interfaces.d.ts +0 -6
  69. package/package.json +1 -1
  70. package/dist/cdn/JGULYSPT.js +0 -2
  71. package/dist/cdn/LHMG5K7R.js +0 -161
  72. package/dist/cdn/O4MVHJET.js +0 -2
  73. package/dist/cdn/QJHFB3JZ.js +0 -84
  74. package/dist/cdn/SECQL6XD.js +0 -107
  75. package/dist/cdn/VR35ZI4P.js +0 -136
  76. package/dist/cdn/WVHUE64C.js +0 -2
  77. package/dist/cdn/YL5D7Y2I.js +0 -71
  78. package/dist/cdn/ZIINWCFY.js +0 -43
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import{a}from"./6GJIDRJ7.js";import c from"./PUULR4GF.js";import b from"./QFO7CLLL.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.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(([])=>{return a},b,c)
2
+ import{a}from"./6GJIDRJ7.js";import c from"./NQVXRWJL.js";import b from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.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(([])=>{return a},b,c)
@@ -0,0 +1,71 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import{a as m,b as S}from"./W4YXXJAS.js";import{b as c}from"./77CU4WA2.js";import{a as g}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import{b as u}from"./ABSRNM72.js";import{H as d,L as l,h as p,i as r,r as a}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";var y=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
+ .toolbar-sizing {
19
+ display: flex;
20
+ align-items: center;
21
+ padding-right: 0px;
22
+ padding-left: 0px;
23
+ margin-left: auto;
24
+ margin-right: auto;
25
+ box-sizing: border-box;
26
+ height: 65px;
27
+ }
28
+
29
+ .flex-row {
30
+ display: flex;
31
+ flex-direction: row;
32
+ }
33
+
34
+ .flex-grow-1 {
35
+ flex-grow: 1;
36
+ }
37
+
38
+ calcite-input-text {
39
+ --calcite-color-focus: transparent;
40
+ --calcite-input-text-border-color: transparent;
41
+ --calcite-color-border-input: transparent;
42
+ --calcite-color-brand: transparent;
43
+ display: grid;
44
+ block-size: 65px;
45
+ box-sizing: border-box;
46
+ border-bottom: 2px solid transparent;
47
+ }
48
+
49
+ calcite-dropdown {
50
+ --calcite-color-focus: transparent;
51
+ }
52
+
53
+ @media (prefers-color-scheme: dark) {
54
+ calcite-input-text:focus {
55
+ border-bottom: 2px solid #009AF2;
56
+ }
57
+ }
58
+
59
+ @media (prefers-color-scheme: light) {
60
+ calcite-input-text:focus {
61
+ border-bottom: 2px solid #007AC2;
62
+ }
63
+ }
64
+
65
+ .focus-color {
66
+ --calcite-color-focus: transparent;
67
+ }
68
+
69
+ .padding-end-1-2 {
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._canViewOrg=!1,this._translations=g({name:"solutions-searchsort-toolbar",blocking:!0}),this._configContextConsumer=c({context:S,subscribe:!0,callback:async t=>{t&&t.authentication&&(this._canViewOrg=t.authentication.CanViewOrg)}}),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=>{this.scope=t.detail;let e=this._getCurrentScopeSetting();(this.scope==="all-solutions"||this.scope==="deployments")&&(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}],_canViewOrg:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=y}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._canViewOrg&&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);export{h as SolutionsSearchSortToolbar};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import d from"./ZFAJKYMR.js";import c from"./KI6KLBMZ.js";import b from"./4ZRD2V6P.js";import a from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.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(([,,,{b:o}])=>{return o},a,b,c,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import a from"./QFO7CLLL.js";import{ka as u,nb as l,nc as f}from"./T4PIUXJ7.js";import{u as c}from"./3GWWHA4S.js";export default $arcgis.t(([,{m:m}])=>{function D(e){let t="",r="?";return e.forEach(n=>{n.k&&n.v&&(t+=r+n.k+"="+n.v,r="&")}),t}function I(e){return e?f(e,{}).then(t=>Promise.resolve(!!t)):Promise.resolve(!1)}async function x(e,t){let r=t,n=await r.getUsername(),d={q:new c().match(e).in("title").and().match(n).in("owner"),filter:"type:Solution",authentication:r},h=(await l(d)).results.map(i=>i.title),{folders:p}=await u(r),w=p.map(i=>i.title),a=[...h,...w].map(i=>i.trim().toLowerCase()),o=e.toLowerCase(),y=a.filter(i=>i===o),v=a.filter(i=>i.startsWith(o));return{conflictingNames:y,similiarNames:v}}async function C(e,t){return E(e)?{status:!1,type:"empty"}:S(e)?{status:!1,type:"exceed length"}:T(e,"folder")?{status:!1,type:"special character"}:(await x(e.trim(),t)).conflictingNames.length>0?{status:!1,type:"not unique"}:{status:!0,type:""}}function E(e){return e.length<=0}function S(e){return e.length>m}function T(e,t){return(t==="item"?/[><~`$^+=|]/u:/[/<>]/u).test(e)}function U(e){if(e){let t=e.trim();return t?"<div>"+t+"</div>":""}else return""}function q(e){let t="",r="?";return e.forEach(n=>{n.k&&n.v&&(t+=r+n.k+"="+n.v,r="&")}),t}function b(e,t,r,n){let s="";return t?s=n+"/sharing/rest/content/items/"+e+"/info/"+t+q([{k:"w",v:"400"}]):s=r,s}function A(e){let t=e?e.replace("https://","").replace("www.",""):"";return t.endsWith("devext.arcgis.com")||t.endsWith("mapsqa.arcgis.com")||t.endsWith("qaext.arcgis.com")?e??"https://www.arcgis.com":"https://www.arcgis.com"}function M(e,t,r){return t.some(n=>n.wkid===e?(r=n.defaultExtent,!0):!1),r}function B(e,t){return g(t||e)}function F(e,t="en"){return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(e)}function O(e,t){let r="";return e.some(n=>n.startsWith(t)?(r=n.substring(t.length),!0):!1),r}function g(e){let t=e.replace("www.","");return t.endsWith("devext.arcgis.com")?"dev":t.endsWith("mapsqa.arcgis.com")||t.endsWith("qaext.arcgis.com")?"qa":t==="arcgis.com"||t.endsWith(".arcgis.com")?"prod":"dev"}function _(e,t){let r=e?.reduce((n,s)=>(n.indexOf(s.id)<0&&n.push(s.id),n),[])||[];return t?r.sort((n,s)=>t.indexOf(n)-t.indexOf(s)):r}function G(e){return e.charAt(0).toUpperCase()+e.slice(1)}function V(e){return{relevance:"Relevance",title:"Title",new:"New",created:"Date deployed",updated:"Updated",suggested:"Suggested for you"}[e]||e}function j(e){if(!e)return"Unknown error";if(e.message)return e.message;try{let t=JSON.stringify(e);return t&&t!=="{}"?t:e.toString()}catch{return e.toString()}}function z(e){return e?parseFloat(((Date.now()-e)/1e3).toFixed(2)):0}return{a:D,b:I,c:x,d:C,e:T,f:U,g:q,h:b,i:A,j:M,k:B,l:F,m:O,n:_,o:G,p:V,q:j,r:z}},"intl",a)
2
+ import a from"./R24ASQQY.js";import{ka as u,nb as l,nc as f}from"./T4PIUXJ7.js";import{u as c}from"./3GWWHA4S.js";export default $arcgis.t(([,{m:m}])=>{function D(e){let t="",r="?";return e.forEach(n=>{n.k&&n.v&&(t+=r+n.k+"="+n.v,r="&")}),t}function I(e){return e?f(e,{}).then(t=>Promise.resolve(!!t)):Promise.resolve(!1)}async function x(e,t){let r=t,n=await r.getUsername(),d={q:new c().match(e).in("title").and().match(n).in("owner"),filter:"type:Solution",authentication:r},h=(await l(d)).results.map(i=>i.title),{folders:p}=await u(r),w=p.map(i=>i.title),a=[...h,...w].map(i=>i.trim().toLowerCase()),o=e.toLowerCase(),y=a.filter(i=>i===o),v=a.filter(i=>i.startsWith(o));return{conflictingNames:y,similiarNames:v}}async function C(e,t){return E(e)?{status:!1,type:"empty"}:S(e)?{status:!1,type:"exceed length"}:T(e,"folder")?{status:!1,type:"special character"}:(await x(e.trim(),t)).conflictingNames.length>0?{status:!1,type:"not unique"}:{status:!0,type:""}}function E(e){return e.length<=0}function S(e){return e.length>m}function T(e,t){return(t==="item"?/[><~`$^+=|]/u:/[/<>]/u).test(e)}function U(e){if(e){let t=e.trim();return t?"<div>"+t+"</div>":""}else return""}function q(e){let t="",r="?";return e.forEach(n=>{n.k&&n.v&&(t+=r+n.k+"="+n.v,r="&")}),t}function b(e,t,r,n){let s="";return t?s=n+"/sharing/rest/content/items/"+e+"/info/"+t+q([{k:"w",v:"400"}]):s=r,s}function A(e){let t=e?e.replace("https://","").replace("www.",""):"";return t.endsWith("devext.arcgis.com")||t.endsWith("mapsqa.arcgis.com")||t.endsWith("qaext.arcgis.com")?e??"https://www.arcgis.com":"https://www.arcgis.com"}function M(e,t,r){return t.some(n=>n.wkid===e?(r=n.defaultExtent,!0):!1),r}function B(e,t){return g(t||e)}function F(e,t="en"){return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(e)}function O(e,t){let r="";return e.some(n=>n.startsWith(t)?(r=n.substring(t.length),!0):!1),r}function g(e){let t=e.replace("www.","");return t.endsWith("devext.arcgis.com")?"dev":t.endsWith("mapsqa.arcgis.com")||t.endsWith("qaext.arcgis.com")?"qa":t==="arcgis.com"||t.endsWith(".arcgis.com")?"prod":"dev"}function _(e,t){let r=e?.reduce((n,s)=>(n.indexOf(s.id)<0&&n.push(s.id),n),[])||[];return t?r.sort((n,s)=>t.indexOf(n)-t.indexOf(s)):r}function G(e){return e.charAt(0).toUpperCase()+e.slice(1)}function V(e){return{relevance:"Relevance",title:"Title",new:"New",created:"Date deployed",updated:"Updated",suggested:"Suggested for you"}[e]||e}function j(e){if(!e)return"Unknown error";if(e.message)return e.message;try{let t=JSON.stringify(e);return t&&t!=="{}"?t:e.toString()}catch{return e.toString()}}function z(e){return e?parseFloat(((Date.now()-e)/1e3).toFixed(2)):0}return{a:D,b:I,c:x,d:C,e:T,f:U,g:q,h:b,i:A,j:M,k:B,l:F,m:O,n:_,o:G,p:V,q:j,r:z}},"intl",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import c from"./ARZ7BSMD.js";import b from"./RFTLE3FH.js";import a from"./QFO7CLLL.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.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)
2
+ import c from"./UROTPS3S.js";import b from"./4ZRD2V6P.js";import a from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.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,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import b from"./PUULR4GF.js";import a from"./QFO7CLLL.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.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)
2
+ import b from"./NQVXRWJL.js";import a from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.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)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import f from"./AWWVDYW7.js";import"./7SGXC6B2.js";import e from"./Y5KP4RVL.js";import d from"./ARZ7BSMD.js";import c from"./JGULYSPT.js";import"./I5GF7UR6.js";import b from"./RFTLE3FH.js";import a from"./QFO7CLLL.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.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)
2
+ import f from"./UHUM5DBL.js";import"./7SGXC6B2.js";import e from"./U6EU772K.js";import d from"./UROTPS3S.js";import c from"./KI6KLBMZ.js";import"./I5GF7UR6.js";import b from"./4ZRD2V6P.js";import a from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.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,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import h from"./VYQEF3JJ.js";import{a as H}from"./UHIFNZFJ.js";import e from"./RFTLE3FH.js";import d from"./QFO7CLLL.js";import c from"./N6IQW2WT.js";import a from"./C2LXNVZ5.js";import{a as S}from"./6S75SIVV.js";import{b as x}from"./ABSRNM72.js";import{F as b,G as p,H as E,J as g,h as T,i as o,l as f,r as _,u as v}from"./5CQPQ7AE.js";export default $arcgis.t(([$,c,D,w,{c:F},{c:C,d:A,j:m},{f:y},{n:O},{b:L}])=>{var M=T`@layer{
2
+ import h from"./VYQEF3JJ.js";import{a as H}from"./UHIFNZFJ.js";import e from"./4ZRD2V6P.js";import d from"./R24ASQQY.js";import c from"./N6IQW2WT.js";import a from"./C2LXNVZ5.js";import{a as S}from"./6S75SIVV.js";import{b as x}from"./ABSRNM72.js";import{F as b,G as p,H as E,J as g,h as T,i as o,l as f,r as _,u as v}from"./5CQPQ7AE.js";export default $arcgis.t(([$,c,D,w,{c:F},{c:C,d:A,j:m},{f:y},{n:O},{b:L}])=>{var M=T`@layer{
3
3
  /** @license
4
4
  * Copyright 2025 Esri
5
5
  *
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import e from"./BGI5LCTI.js";import d from"./UCUN6MQX.js";import c from"./CWXECEWK.js";import b from"./RFTLE3FH.js";import a from"./QFO7CLLL.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.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)
2
+ import e from"./NSFRJKJI.js";import d from"./GTQBWHKB.js";import c from"./ZCWWLT2A.js";import b from"./4ZRD2V6P.js";import a from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.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)
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import g from"./HZ35KRFT.js";import f from"./VYQEF3JJ.js";import"./5XHAT3I6.js";import"./UHIFNZFJ.js";import"./DC5KIXAN.js";import"./YMMGYOOO.js";import e from"./RFTLE3FH.js";import d from"./QFO7CLLL.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.js";import c from"./N6IQW2WT.js";import a from"./C2LXNVZ5.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 T}from"./ABSRNM72.js";import{G as y,H as _,h as u,i as b}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([])=>{var C=u`/** @license
2
+ import g from"./B36YXO2J.js";import f from"./VYQEF3JJ.js";import"./5XHAT3I6.js";import"./UHIFNZFJ.js";import"./DC5KIXAN.js";import"./YMMGYOOO.js";import e from"./4ZRD2V6P.js";import d from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.js";import c from"./N6IQW2WT.js";import a from"./C2LXNVZ5.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 T}from"./ABSRNM72.js";import{G as y,H as _,h as u,i as b}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([])=>{var C=u`/** @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"./UCUN6MQX.js";import b from"./RFTLE3FH.js";import a from"./QFO7CLLL.js";import{b as g}from"./W4YXXJAS.js";import{b as f}from"./77CU4WA2.js";import"./T4PIUXJ7.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
2
+ import c from"./GTQBWHKB.js";import b from"./4ZRD2V6P.js";import a from"./R24ASQQY.js";import{b as g}from"./W4YXXJAS.js";import{b as f}from"./77CU4WA2.js";import"./T4PIUXJ7.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,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import d from"./CWXECEWK.js";import c from"./RFTLE3FH.js";import a from"./QFO7CLLL.js";import{b as T}from"./W4YXXJAS.js";import{b as S}from"./77CU4WA2.js";import{rb as v,sa as D,sb as $,tb as b}from"./T4PIUXJ7.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 y}from"./ABSRNM72.js";import{F as m,G as h,H as I,J as u,h as g,i as f,r as p}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{m:P,n:w},{e:_},{a:E}])=>{var N=g`/** @license
2
+ import d from"./ZCWWLT2A.js";import c from"./4ZRD2V6P.js";import a from"./R24ASQQY.js";import{b as T}from"./W4YXXJAS.js";import{b as S}from"./77CU4WA2.js";import{rb as v,sa as D,sb as $,tb as b}from"./T4PIUXJ7.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 y}from"./ABSRNM72.js";import{F as m,G as h,H as I,J as u,h as g,i as f,r as p}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{m:P,n:w},{e:_},{a:E}])=>{var N=g`/** @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 d}from"./I5GF7UR6.js";import a from"./QFO7CLLL.js";import{a as f,b as A}from"./W4YXXJAS.js";import{b as g}from"./77CU4WA2.js";import{a as S}from"./6S75SIVV.js";import{b as I}from"./ABSRNM72.js";import{H as b,J as F,h as N,i as r,r as m}from"./5CQPQ7AE.js";export default $arcgis.t(([{g:E,n:y}])=>{var O=N`/** @license
2
+ import{a as d}from"./I5GF7UR6.js";import a from"./R24ASQQY.js";import{a as f,b as A}from"./W4YXXJAS.js";import{b as g}from"./77CU4WA2.js";import{a as S}from"./6S75SIVV.js";import{b as I}from"./ABSRNM72.js";import{H as b,J as F,h as N,i as r,r as m}from"./5CQPQ7AE.js";export default $arcgis.t(([{g:E,n:y}])=>{var O=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 a from"./RFTLE3FH.js";export default $arcgis.t(([{m:l}])=>{function g(o,t){let n=[];return o.forEach(e=>{t.has(e.id)&&n.push(e)}),n}function p(o,t,n){if(t<1||o.length<t)return{cards:[],paging:{start:t,num:0,nextStart:-1,total:o.length}};let e=Math.min(t+n,o.length+1),r=e<o.length?e:-1;return{cards:o.slice(t-1,e-1),paging:{start:t,num:e-t,nextStart:r,total:o.length}}}function y(o,t){let n=c(o);return d(n,t)}function d(o,t){let n=[];return t.forEach(e=>{let r=u(e);r&&o.indexOf(r)>=0&&e.relatedSolutions&&(n=n.concat(e.relatedSolutions))}),new Set(n)}function u(o){let t="solutionid-",n=o.typeKeywords.filter(r=>r.startsWith(t)),e=null;return Array.isArray(n)&&n.length>0&&(e=n[0].substring(t.length)),e}function c(o){let t=[];return o.forEach(n=>{let e=u(n);e&&t.push(e)}),t=Array.from(new Set(t)),t}function m(o){let t="solutionversion-",n=(o.typeKeywords||[]).reduce((e,r)=>(r.startsWith(t)&&(e=Number(r.replace(t,""))),e),-1);return isNaN(n)?-1:n}function w(o,t,n){let e,r=n==="asc"?1:-1;switch(t){case"created":e=(i,s)=>r*(i.createdMs<s.createdMs?-1:i.createdMs>s.createdMs?1:0);break;case"numviews":e=(i,s)=>r*(i.numViews<s.numViews?-1:i.numViews>s.numViews?1:0);break;case"title":e=(i,s)=>r*(i.title.toLowerCase()<s.title.toLowerCase()?-1:i.title.toLowerCase()>s.title.toLowerCase()?1:0);break;default:e=()=>0;break}return o.sort(e),o}function a(o){return o.toLowerCase().replace(/\s+/g,"-")}function h(o,t){return o.find(n=>a(n.title)===t||t===n.id)}function I(o,t){let n="solutionid-";return o.find(e=>l(e.typeKeywords,n)===t)}function b(o,t){let n=o.find(e=>t===e.deployCommonId);return a(n.title)}return{a:g,b:p,c:y,d:m,e:w,f:a,g:h,h:I,i:b}},a)
2
+ import a from"./4ZRD2V6P.js";export default $arcgis.t(([{m:l}])=>{function g(o,t){let n=[];return o.forEach(e=>{t.has(e.id)&&n.push(e)}),n}function p(o,t,n){if(t<1||o.length<t)return{cards:[],paging:{start:t,num:0,nextStart:-1,total:o.length}};let e=Math.min(t+n,o.length+1),r=e<o.length?e:-1;return{cards:o.slice(t-1,e-1),paging:{start:t,num:e-t,nextStart:r,total:o.length}}}function y(o,t){let n=c(o);return d(n,t)}function d(o,t){let n=[];return t.forEach(e=>{let r=u(e);r&&o.indexOf(r)>=0&&e.relatedSolutions&&(n=n.concat(e.relatedSolutions))}),new Set(n)}function u(o){let t="solutionid-",n=o.typeKeywords.filter(r=>r.startsWith(t)),e=null;return Array.isArray(n)&&n.length>0&&(e=n[0].substring(t.length)),e}function c(o){let t=[];return o.forEach(n=>{let e=u(n);e&&t.push(e)}),t=Array.from(new Set(t)),t}function m(o){let t="solutionversion-",n=(o.typeKeywords||[]).reduce((e,r)=>(r.startsWith(t)&&(e=Number(r.replace(t,""))),e),-1);return isNaN(n)?-1:n}function w(o,t,n){let e,r=n==="asc"?1:-1;switch(t){case"created":e=(i,s)=>r*(i.createdMs<s.createdMs?-1:i.createdMs>s.createdMs?1:0);break;case"numviews":e=(i,s)=>r*(i.numViews<s.numViews?-1:i.numViews>s.numViews?1:0);break;case"title":e=(i,s)=>r*(i.title.toLowerCase()<s.title.toLowerCase()?-1:i.title.toLowerCase()>s.title.toLowerCase()?1:0);break;default:e=()=>0;break}return o.sort(e),o}function a(o){return o.toLowerCase().replace(/\s+/g,"-")}function h(o,t){return o.find(n=>a(n.title)===t||t===n.id)}function I(o,t){let n="solutionid-";return o.find(e=>l(e.typeKeywords,n)===t)}function b(o,t){let n=o.find(e=>t===e.deployCommonId);return a(n.title)}return{a:g,b:p,c:y,d:m,e:w,f:a,g:h,h:I,i:b}},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import f from"./HZ35KRFT.js";import e from"./VYQEF3JJ.js";import"./5XHAT3I6.js";import"./UHIFNZFJ.js";import"./DC5KIXAN.js";import"./YMMGYOOO.js";import d from"./RFTLE3FH.js";import c from"./QFO7CLLL.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.js";import b from"./N6IQW2WT.js";import a from"./C2LXNVZ5.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)
2
+ import f from"./B36YXO2J.js";import e from"./VYQEF3JJ.js";import"./5XHAT3I6.js";import"./UHIFNZFJ.js";import"./DC5KIXAN.js";import"./YMMGYOOO.js";import d from"./4ZRD2V6P.js";import c from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.js";import b from"./N6IQW2WT.js";import a from"./C2LXNVZ5.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)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import d from"./GTQBWHKB.js";import c from"./4ZRD2V6P.js";import a from"./R24ASQQY.js";import{K as T,nb as N,ob as O,qa as M,r as b}from"./T4PIUXJ7.js";import{g as U}from"./3YYHZQJB.js";export default $arcgis.t(([{k:y},{f:J,g:j,h:k,i:K,l:F,m:w},{a:A,b:l,c:_,e:p}])=>{var x=class{constructor(r,t,s){this.cMissingImageDataURI="https://static.arcgis.com/images/solution.png",this.cardCache=[],this.cardCacheParams={q:"",categoriesAsStr:"[]",sortField:"title",sortOrder:"asc"},this.locale=r,this.orgUrl=t,this.portalUrl=s,this.anonAgolSession=new U({}),this.agolPortalUrl=K(s)}addToCache(r){this.cardCache.push(r)}getCache(){return this.cardCache}removeFromCache(r){this.cardCache=this.cardCache.filter(t=>t.id!==r)}requestAvailableSolutionCards(r,t,s,e,i,a,o,h){let g=o?.start?o.start:1,C=o?.num?o.num:24,P=this.portalUrl+"/sharing/rest",f=this.agolPortalUrl+"/sharing/rest",z=this.anonAgolSession,v=JSON.stringify(r.categories);if(this.cardCacheParams.q!==r.q||this.cardCacheParams.categoriesAsStr!==v||r.sortField==="relevance"?(this.cardCache=[],this.cardCacheParams={q:r.q,categoriesAsStr:v,sortField:r.sortField,sortOrder:r.sortOrder}):(this.cardCacheParams.sortField!==r.sortField||this.cardCacheParams.sortOrder!==r.sortOrder)&&(this.cardCacheParams.sortField=r.sortField,this.cardCacheParams.sortOrder=r.sortOrder,this.cardCache=p(this.cardCache,this.cardCacheParams.sortField,this.cardCacheParams.sortOrder)),this.cardCache.length>0){let c;if(h&&h.size>0){let d=A(this.cardCache,h);c=l(d,g,C)}else c=l(this.cardCache,g,C);return Promise.resolve(c)}let R={filter:r.filter,sortField:r.sortField,sortOrder:r.sortOrder,categories:r?.categories?this.convertSearchCategories(r.categories):"",signal:a},S=[];if(t&&!i){let c=e||new U({});S.push(O(t,r.q,c,R,P))}return s&&i&&S.push(O(s,r.q,z,R,f)),Promise.allSettled(S).then(c=>{let d=[];c.forEach(m=>{if(m.status==="fulfilled"){let D=m.value,B="",E=!1;B=this.agolPortalUrl,E=!0,D.results.forEach(I=>{I.sourcePortalUrl=B,I.knownToBePublicSource=E}),d.push(D)}else if(m.status==="rejected")throw new Error(m.reason.message?m.reason.message:"cannotAccessAGO")}),d.length===0?this.cardCache=[]:d.length===1?this.cardCache=this.getCardsFromResponse(d[0]):this.cardCache=p(this.getCardsFromResponse(this.mergeResponses(d)),this.cardCacheParams.sortField,this.cardCacheParams.sortOrder);let u;if(h&&h.size>0){let m=A(this.cardCache,h);u=l(m,g,C)}else u=l(this.cardCache,g,C);return Promise.resolve(u)}).catch(c=>Promise.reject(new Error(c.message)))}requestDeployedSolutionCards(r,t,s=""){let e=this.portalUrl+"/sharing/rest";if(this.cardCacheParams.q!==r.q||this.cardCacheParams.categoriesAsStr!==JSON.stringify(r.q)||r.sortField==="relevance"?(this.cardCache=[],this.cardCacheParams={q:r.q,categoriesAsStr:"[]",sortField:r.sortField,sortOrder:r.sortOrder}):(this.cardCacheParams.sortField!==r.sortField||this.cardCacheParams.sortOrder!==r.sortOrder)&&(this.cardCacheParams.sortField=r.sortField,this.cardCacheParams.sortOrder=r.sortOrder,this.cardCache=p(this.cardCache,this.cardCacheParams.sortField,this.cardCacheParams.sortOrder)),this.cardCache.length>0){let a=l(this.cardCache,1,this.cardCache.length);return Promise.resolve(a)}let i={q:r.q,filter:r.filter,sortField:r.sortField,sortOrder:r.sortOrder,authentication:t,portal:e,categories:r?.categories?JSON.stringify(r.categories):"",num:r.num};return s?M(s,t).then(a=>{this.cardCache=this.getCardsFromResponse({results:[a]});let o=l(this.cardCache,1,this.cardCache.length);return Promise.resolve(o)}).catch(a=>Promise.reject(new Error(a))):N(i).then(a=>{this.cardCache=this.getCardsFromResponse(a);let o=l(this.cardCache,1,this.cardCache.length);return Promise.resolve(o)}).catch(a=>Promise.reject(new Error(a)))}convertSearchCategories(r){return r&&(Array.isArray(r)?r=r.map(t=>JSON.stringify(Array.isArray(t)?t:[t])):r=JSON.stringify([r])),r}getCardsFromResponse(r){return r.results.length>0?b(r.results).map(e=>{let i=e.sourcePortalUrl?e.sourcePortalUrl:this.portalUrl,a=e.sourcePortalUrl?e.sourcePortalUrl:this.orgUrl,o={id:e.id,title:e.title,snippet:e.snippet||"",description:e.description||"",url:e.url||"",itemUrl:`${a}/home/item.html`+j([{k:"id",v:e.id}])||"",thumbnailFilename:e.thumbnail,thumbnailUrl:k(e.id,e.thumbnail,this.cMissingImageDataURI,i),tryitUrl:e.url||"",typeKeywords:e.typeKeywords,learnMoreUrl:e.properties?.learnMoreUrl||"",createdMs:e.created,created:F(e.created,this.locale),modified:F(e.modified,this.locale),numViews:e.numViews,tags:e.tags,categories:e.groupCategories&&e.groupCategories.length>0?e.groupCategories:e.categories||[],licenseInfo:J(e.licenseInfo),deployCommonId:w(e.typeKeywords||[],"solutionid-"),deployVersion:w(e.typeKeywords||[],"solutionversion-"),canDelete:e.created>16183314e5,preview:this.preparePreviewImageUrls(e.id,e.properties?.preview,i),sourcePortalUrl:e.sourcePortalUrl||"",knownToBePublicSource:e.knownToBePublicSource||!1,waitId:"",relatedSolutions:T(e,"properties.relatedSolutions")||[],owner:e.owner};return o.deployCommonId!==""&&o.deployVersion!==""?o:null}).filter(e=>e!=null):[]}mergeResponses(r){let t=0;r.forEach(e=>t+=e.total);let s=[];return r.forEach(e=>s=s.concat(e.results)),{query:r[0].query,start:1,num:t,nextStart:-1,total:t,results:s}}preparePreviewImageUrls(r,t,s){return t?t.map(e=>(e.format==="image"&&(e.name=s+"/sharing/rest/content/items/"+r+"/resources/"+e.name),e)):[]}};async function W(n,r,t,s,e=y,i="created",a="desc",o=!1,h=[],g=[],C,P){if(!n?.IsSignedIn)return;let f={q:e,filter:"type:Solution",sortField:i,sortOrder:a,delay:o,categories:h,num:100};return f.q+=V(n,C),await L(r,f,s,g,P)}function V(n,r){let t="",s=n.PortalUserOrg,e=n.PortalUserName;return s&&(t+=" orgid:"+s),r!=="My organization's solutions"&&e&&(t+=" owner:"+e),t}async function L(n,r,t,s,e=""){let i=await t.requestDeployedSolutionCards(r,n,e),a=_(i.cards,s);return{cards:i.cards,relatedSolutions:a}}return{a:x,b:W}},a,c,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import c from"./VR35ZI4P.js";import b from"./HC7Y7YXB.js";import"./I5GF7UR6.js";import"./YUDZU2OW.js";import a from"./QFO7CLLL.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.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"./TZFQU3SK.js";import b from"./GF6RNBP5.js";import"./I5GF7UR6.js";import"./YUDZU2OW.js";import a from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.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,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import a from"./4ZRD2V6P.js";export default $arcgis.t(([,,,{a:s}])=>{function g(r,o){let t=a(o),e=s([{k:"id",v:r}])||"";return t?`${t}/home/item.html${e}`:""}function U(r,o,t,e){let n=e||a(t);return n?`${n}/sharing/rest/content/items/${r}/resources/${o}`:""}function a(r){return r?.PortalSubset?.orgUrl||r?.PortalUrl||""}function p(r,o){let t=new URL(r);return t.searchParams.set("token",o),t.toString()}return{a:g,b:U,c:p}},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",a)
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import j from"./JGULYSPT.js";import i from"./CWXECEWK.js";import"./RJRWRCQS.js";import e from"./RFTLE3FH.js";import c from"./QFO7CLLL.js";import{b as y}from"./W4YXXJAS.js";import{b as D}from"./77CU4WA2.js";import{Zb as b}from"./T4PIUXJ7.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 T=m`/** @license
2
+ import j from"./KI6KLBMZ.js";import i from"./ZCWWLT2A.js";import"./RJRWRCQS.js";import e from"./4ZRD2V6P.js";import c from"./R24ASQQY.js";import{b as y}from"./W4YXXJAS.js";import{b as D}from"./77CU4WA2.js";import{Zb as b}from"./T4PIUXJ7.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 T=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 g from"./WVHUE64C.js";import e from"./UCUN6MQX.js";import d from"./RFTLE3FH.js";import b from"./QFO7CLLL.js";import{b as v}from"./W4YXXJAS.js";import{b as w}from"./77CU4WA2.js";import"./T4PIUXJ7.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
2
+ import g from"./JZ3IBJXO.js";import e from"./GTQBWHKB.js";import d from"./4ZRD2V6P.js";import b from"./R24ASQQY.js";import{b as v}from"./W4YXXJAS.js";import{b as w}from"./77CU4WA2.js";import"./T4PIUXJ7.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:A},{a:g,b:L}])=>{var D=_`/** @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){console.log("SAP searchSolutions"),!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(console.log("SAP _getSolutions"),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});console.log("SAP _getSolutions has cards");let 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),console.log("SAP _getSolutions emit cardsFetched"),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)
107
+ }`,b=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=b,this._loadUpdateProcedures()}),this.listenOn(window,"solutionDeleted",()=>{this._modifiedCheckTry=b,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=D}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextConsumer.value?.isEnterprise===!0&&this._configContextConsumer.value?.authentication?.CanSearchArcGISOnline===!1}async searchSolutions(e){console.log("SAP searchSolutions"),!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(console.log("SAP _getSolutions"),this._isDisconnectedEnvironment)return this._isLoading=!1,[];if(this._configContextConsumer.value){this._isLoading=!0,this._abortController?this._abortController.abort():this._abortController=new AbortController;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,this._abortController.signal,{num:1e3});console.log("SAP _getSolutions has cards"),console.log(e.cards.length),this._abortController=void 0;let 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=A(this._deployedSolutions.cards,this._allCards))),this.cardsFetched.emit(i.length),console.log("SAP _getSolutions emit cardsFetched"),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 L(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)
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import b from"./QFO7CLLL.js";import{b as o}from"./W4YXXJAS.js";import{b as n}from"./77CU4WA2.js";import{a as r}from"./6S75SIVV.js";import{b as s}from"./ABSRNM72.js";import{H as l,L as t,h as i,i as a,j as c}from"./5CQPQ7AE.js";export default $arcgis.t(([{n:h}])=>{var v=i`/** @license
2
+ import b from"./R24ASQQY.js";import{b as o}from"./W4YXXJAS.js";import{b as n}from"./77CU4WA2.js";import{a as r}from"./6S75SIVV.js";import{b as s}from"./ABSRNM72.js";import{H as l,L as t,h as i,i as a,j as c}from"./5CQPQ7AE.js";export default $arcgis.t(([{n:h}])=>{var v=i`/** @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 e from"./UCUN6MQX.js";import c from"./CWXECEWK.js";import a from"./QFO7CLLL.js";import{a as v,b as _}from"./W4YXXJAS.js";import{b as p}from"./77CU4WA2.js";import{a as b}from"./6S75SIVV.js";import{b as x}from"./ABSRNM72.js";import{H as m,J as f,L as d,h,i as t,r as n}from"./5CQPQ7AE.js";export default $arcgis.t(([{a:y,c:w,n:l},{a:C},{d:g,h:$,i:S}])=>{var D=h`/** @license
2
+ import e from"./GTQBWHKB.js";import c from"./ZCWWLT2A.js";import a from"./R24ASQQY.js";import{a as v,b as _}from"./W4YXXJAS.js";import{b as p}from"./77CU4WA2.js";import{a as b}from"./6S75SIVV.js";import{b as x}from"./ABSRNM72.js";import{H as m,J as f,L as d,h,i as t,r as n}from"./5CQPQ7AE.js";export default $arcgis.t(([{a:y,c:w,n:l},{a:C},{d:g,h:$,i:S}])=>{var D=h`/** @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 from"./RFTLE3FH.js";import a from"./QFO7CLLL.js";import{b as we}from"./W4YXXJAS.js";import{b as be}from"./77CU4WA2.js";import"./T4PIUXJ7.js";import{a as xe}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 me}from"./ABSRNM72.js";import{G as j,H as ke,J as G,L as W,h as he,i as m,k as pe,l as H,m as T,r as ue,w as de,x as ge,y as fe}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{n:_e},{r:ve}])=>{var L=class extends fe{constructor(e){if(super(e),this.it=H,e.type!==de.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||e==null)return this._t=void 0,this.it=e;if(e===pe)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};L.directiveName="unsafeHTML",L.resultType=1;var X=ge(L);var Ue=he`:host {
2
+ import b from"./4ZRD2V6P.js";import a from"./R24ASQQY.js";import{b as we}from"./W4YXXJAS.js";import{b as be}from"./77CU4WA2.js";import"./T4PIUXJ7.js";import{a as xe}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 me}from"./ABSRNM72.js";import{G as j,H as ke,J as G,L as W,h as he,i as m,k as pe,l as H,m as T,r as ue,w as de,x as ge,y as fe}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{n:_e},{r:ve}])=>{var L=class extends fe{constructor(e){if(super(e),this.it=H,e.type!==de.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||e==null)return this._t=void 0,this.it=e;if(e===pe)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};L.directiveName="unsafeHTML",L.resultType=1;var X=ge(L);var Ue=he`:host {
3
3
  display: block;
4
4
  height: 100%;
5
5
  }
@@ -0,0 +1,43 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import e from"./KI6KLBMZ.js";import d from"./4ZRD2V6P.js";import b from"./R24ASQQY.js";import{b as c}from"./W4YXXJAS.js";import{b as l}from"./77CU4WA2.js";import{d as u}from"./T4PIUXJ7.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{b as r}from"./ABSRNM72.js";import{H as o,h as s,i as a}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,,{c:m}])=>{var h=s`/** @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
+ .avatar-container {
19
+ align-items: center;
20
+ display: flex;
21
+ flex-direction: row;
22
+ padding-top: var(--calcite-spacing-lg);
23
+ }
24
+
25
+ .full-name {
26
+ margin-inline-start: 0px;
27
+ font-size: var(--calcite-font-size--1);
28
+ font-weight: var(--calcite-font-weight-medium);
29
+ color: var(--calcite-navigation-user-full-name-text-color, var(--calcite-color-text-1));
30
+ }
31
+
32
+ .text-container {
33
+ margin-block-start: .125rem;
34
+ display: flex;
35
+ flex-direction: column;
36
+ padding-inline: 1rem;
37
+ text-align: start;
38
+ }
39
+
40
+ .username {
41
+ font-size: var(--calcite-font-size--1);
42
+ color: var(--calcite-navigation-user-name-text-color, var(--calcite-color-text-2));
43
+ }`,n=class extends o{constructor(){super(),this.lookupProfile=!1,this.username="",this._configContextConsumer=l({context:c,subscribe:!0}),this.listenOn(window,"sessionRefreshed",e=>{this._updateThumbnailToken(e.detail)})}static{this.properties={fullname:1,lookupProfile:[5,{},{type:Boolean}],thumbnailUrl:1,username:1}}static{this.styles=h}loaded(){this.lookupProfile&&this._lookupOwnerProfile(this.username)}willUpdate(e){e.has("username")&&this.lookupProfile&&this._lookupOwnerProfile(this.username)}render(){return a`<div class="avatar-container"><calcite-avatar scale=m .username=${this.username} .thumbnail=${this.thumbnailUrl??void 0} .fullName=${this.fullname??void 0}></calcite-avatar><div class="text-container"><span class="full-name">${this.fullname??""}</span><span class="username">${this.username}</span></div></div>`}async _lookupOwnerProfile(e){if(this.fullname=void 0,this.thumbnailUrl=void 0,this.lookupProfile&&this._configContextConsumer.value){let{userSession:i}=this._configContextConsumer.value;if(i)try{let t=await u({authentication:i,username:e});t&&(t.fullName&&(this.fullname=t.fullName),t.thumbnail&&(this.thumbnailUrl=i.portal+"/community/users/"+t.id+"/info/"+t.thumbnail+"?token="+i.token))}catch{console.log("user not found")}}}_updateThumbnailToken(e){this.thumbnailUrl&&this.thumbnailUrl!==""&&(this.thumbnailUrl=m(this.thumbnailUrl,e))}};r("solution-user-avatar",n);return n},b,d,e)
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import"./6GJIDRJ7.js";import c from"./PUULR4GF.js";import b from"./QFO7CLLL.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.js";import{a}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 r}from"./ABSRNM72.js";import{H as o,h as t,i as n,r as s}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([])=>{var c=t`/** @license
2
+ import"./6GJIDRJ7.js";import c from"./NQVXRWJL.js";import b from"./R24ASQQY.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./T4PIUXJ7.js";import{a}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 r}from"./ABSRNM72.js";import{H as o,h as t,i as n,r as s}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([])=>{var c=t`/** @license
3
3
  * Copyright 2025 Esri
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -0,0 +1,107 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import e from"./JZ3IBJXO.js";import d from"./GTQBWHKB.js";import c from"./4ZRD2V6P.js";import b from"./R24ASQQY.js";import{b as C}from"./W4YXXJAS.js";import{b as w}from"./77CU4WA2.js";import"./T4PIUXJ7.js";import{a as y}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 g}from"./ABSRNM72.js";import{G as u,H as _,L as f,h as m,i as a,j as p,r as o}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{k:d,n:r},{p:T},,{a:c,b:x}])=>{var D=m`/** @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
+ calcite-panel {
19
+ width: 100%;
20
+ height: 100%;
21
+ --calcite-panel-background-color: var(--calcite-color-foreground-2);
22
+ }
23
+
24
+ .card-group {
25
+ overflow: hidden;
26
+ padding-inline-start: var(--calcite-spacing-base);
27
+ padding-top: var(--calcite-spacing-base);
28
+ padding-bottom: var(--calcite-spacing-md);
29
+ }
30
+
31
+ .text-center {
32
+ text-align: center;
33
+ }
34
+
35
+ .leader-1 {
36
+ margin-top: var(--calcite-spacing-xxl);
37
+ }
38
+
39
+ .trailer-1 {
40
+ margin-bottom: var(--calcite-spacing-xxl);
41
+ }
42
+
43
+ .warning-text {
44
+ max-width: 35em;
45
+ margin-left: auto;
46
+ margin-right: auto;
47
+ font-size: var(--calcite-font-size-md);
48
+ }
49
+
50
+ .no-solutions {
51
+ display: flex;
52
+ flex-direction: column;
53
+ justify-content: center;
54
+ align-items: center;
55
+ width: 100%;
56
+ min-height: calc(100vh - 190px);
57
+ }
58
+
59
+ .display-flex {
60
+ display: flex;
61
+ }
62
+
63
+ .display-none {
64
+ display: none;
65
+ }
66
+
67
+ .flex-direction-column {
68
+ flex-direction: column;
69
+ }
70
+
71
+ h1 {
72
+ font-weight: unset;
73
+ margin: 0;
74
+ padding: 0;
75
+ }
76
+
77
+ solution-deployed-card {
78
+ width: calc(20% - 0.75rem);
79
+ }
80
+
81
+ @media (max-width: 1280px) {
82
+ solution-deployed-card {
83
+ width: calc(25% - 0.75rem);
84
+ }
85
+ }
86
+
87
+ @media (max-width: 1010px) {
88
+ solution-deployed-card {
89
+ width: calc(33.333% - 0.75rem);
90
+ }
91
+ }
92
+
93
+ @media (max-width: 740px) {
94
+ solution-deployed-card {
95
+ width: calc(50% - 0.75rem);
96
+ }
97
+ }
98
+
99
+ @media (max-width: 440px) {
100
+ solution-deployed-card {
101
+ width: calc(100% - 0.75rem);
102
+ }
103
+ }
104
+
105
+ .margin-top-half {
106
+ margin-top: 0.5rem;
107
+ }`,v=5,h=class extends _{constructor(){super(),this.sortType="created",this._cards=[],this._cardsFetching=!1,this._modifiedCheckTry=0,this._newId="",this._refs={},this._showDeleteCompleteAlert=!1,this._deletedSolutionName="",this._translations=y({name:"solutions-deployed-panel",blocking:!0}),this._agoTerms=d,this._allCards=[],this._baseAgoTerms=d,this._categories=[],this._configContextConsumer=w({context:C,subscribe:!0,callback:async e=>{e&&(this._initCardsFetchers(),await this._getDeployedSolutions())}}),this._delay=!1,this._owner="My solutions",this._sortField="created",this._sortOrder="desc",this.deployedCardsFetched=o(),this.searchTermSet=o(),this.sortTypeSet=o(),this.listenOn(window,"solutionDeleted",e=>{this._modifiedCheckTry=v,this.reload(e.detail.showAlert,e.detail.refreshSolutionsTimeout,e.detail.solutionTitle)}),this.listenOn(window,"solutionConfigureDialogClose",e=>{e.detail&&this.reload(!1,!1)}),this.listenOn(window,"deployProgressEnd",e=>{this._modifiedCheckTry=v,this._refreshAfterDeploy(e.detail)}),this.listenOn(window,"sortTypeChanged",e=>{e.detail&&e.detail.scope==="deployments"&&(this.sortType=e.detail.sortType,this._telemetry?.logEvent({category:r.DEPLOYMENTS,action:"Sort",dimensions:[T(e.detail.sortType)]}),this.searchSolutions(e.detail))}),this.listenOn(window,"searchChanged",e=>{e.detail&&e.detail.scope==="deployments"&&(e.detail.logSearchTelemetry&&e.detail.option?.searchTerm?this._telemetry?.logEvent({category:r.DEPLOYMENTS,action:"Search",dimensions:[e.detail.option.searchTerm]}):this.searchSolutions(e.detail.option))})}static{this.properties={sortType:1,_cards:[16,{},{state:!0}],_cardsFetching:[16,{},{state:!0}],_modifiedCheckTry:[16,{},{state:!0}],_newId:[16,{},{state:!0}],_refs:[16,{},{state:!0}],_showDeleteCompleteAlert:[16,{},{state:!0}],_deletedSolutionName:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=D}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async reload(e=!0,t=!0,l){this._initCardsFetchers(),e&&(this._showDeleteCompleteAlert=!0,this._deletedSolutionName=l||this._translations.solution),t?setTimeout(()=>{(async()=>{try{await this._getDeployedSolutions()}catch(n){console.error("Error getting deployed solutions:",n)}})()},500):await this._getDeployedSolutions()}async searchSolutions(e){e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):e.type==="owner"&&(this._owner=e.value,this._telemetry?.logEvent({category:r.DEPLOYMENTS,action:"Filter",dimensions:[e.value==="My solutions"?"My content":"Organization"]})):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),await this._getDeployedSolutions()}async setSearchOptions(e){e&&("searchTerm"in e&&(this._textSearch(e.searchTerm),this.searchTermSet.emit({searchTerm:e.searchTerm,scope:"deployments"})),"sortType"in e&&(this._sortCards(e),this.sortTypeSet.emit({sortType:e.sortType,scope:"deployments"})))}render(){return this._cardsFetching?a`<calcite-loader .label=${this._translations.fetchingDeployedSolutions}></calcite-loader>`:this._cards.length?a`<calcite-panel><calcite-card-group class="card-group" .label=${this._translations.allDeployed}>${this._renderCards()}</calcite-card-group><calcite-alert auto-close auto-close-duration=fast icon=check-circle kind=success .label=${this._translations.deleteComplete.replace("{{solutionName}}",this._deletedSolutionName)} .open=${this._showDeleteCompleteAlert} @calciteAlertClose=${()=>{this._showDeleteCompleteAlert=!1}}><div slot=title>${this._translations.deleteComplete.replace("{{solutionName}}",this._deletedSolutionName)}</div></calcite-alert></calcite-panel>`:a`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1 display-flex flex-direction-column"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${this._translations.noSolutionsInstruction}</div></div></div>`}_initCardsFetchers(){if(this._configContextConsumer.value){let e=this._configContextConsumer.value;this._cardsFetcher=new c(e.locale,e.orgUrl,e.portalURL),this._cardsFetcherDeployed=new c(e.locale,e.orgUrl,e.portalURL)}}_renderCards(){return this._refs={},this._cards.map(e=>a`<solution-deployed-card .card=${e} .deployedDate=${e.created} .description=${e.snippet} .diagramKey=${this._configContextConsumer.value?.diagramKey} .heading=${e.title} id=${e.id??f} .itemId=${e.id} .owner=${this._owner==="My solutions"?"":e.owner} .thumbnail=${e.thumbnailUrl} ${u(this._handleRefs)}></solution-deployed-card>`)}_handleRefs(e){e&&(this._refs[e.id]=e)}async _getDeployedSolutions(){let e=this._configContextConsumer.value.authentication;if(e.IsSignedIn){this._cardsFetching=!0;let t=await x(e,this._configContextConsumer.value.userSession,this._cardsFetcher,this._cardsFetcherDeployed,this._agoTerms,this._sortField,this._sortOrder,this._delay,this._categories,this._allCards,this._owner);this._modifiedCheckTry>0&&(this._cards.length===t?.cards.length?(this._modifiedCheckTry--,this._getDeployedSolutions()):this._modifiedCheckTry=0),this._cards=t?.cards??[],this.deployedCardsFetched.emit(this._cards.length),this._cardsFetching=!1}}_getSolutionsBriefcase(){return a`<div><svg viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${p`<path d="M10.723 54.9h6.409a7.896 7.896 0 0 0 13.736 0h23.896a4.137 4.137 0 0 0 4.136-4.136l-.004-32.446a3.222 3.222 0 0 0-3.217-3.219l-10.779.064V9.836A3.741 3.741 0 0 0 41.163 6.1H23.837A3.741 3.741 0 0 0 20.1 9.836l.067 5.264-10.8.004A3.275 3.275 0 0 0 6.1 18.37L6.096 26a.893.893 0 0 0 .263.636.907.907 0 0 0 .638.263l5.902-.014.013-5.985 38.781.01a.407.407 0 0 1 .407.407l.008 22.925a2.858 2.858 0 0 1-2.857 2.858H30.868a7.896 7.896 0 0 0-13.736 0H12.9v-5.2a.801.801 0 0 0-.8-.8H6.9a.801.801 0 0 0-.8.8l-.001 8.375a4.59 4.59 0 0 0 1.353 3.27 4.658 4.658 0 0 0 3.27 1.355zM6.9 41.9h5.2v6h5.51l.112-.213a7.098 7.098 0 0 1 12.556 0l.113.213h18.86a3.683 3.683 0 0 0 2.587-1.071 3.635 3.635 0 0 0 1.071-2.587L52.9 21.317a1.208 1.208 0 0 0-1.207-1.207l-38.867-.01a.714.714 0 0 0-.714.712l-.011 5.275-5.106.012.001.4-.1-.499.003-7.628a2.471 2.471 0 0 1 2.468-2.469l10.8-.003a.734.734 0 0 0 .733-.733v-5.33A2.94 2.94 0 0 1 23.837 6.9h17.326A2.94 2.94 0 0 1 44.1 9.836v5.327a.734.734 0 0 0 .733.733l10.846.003a2.421 2.421 0 0 1 2.417 2.419l.004 32.446a3.337 3.337 0 0 1-3.336 3.336H30.39l-.113.213a7.098 7.098 0 0 1-12.556 0l-.113-.213h-6.886a3.85 3.85 0 0 1-2.704-1.12 3.796 3.796 0 0 1-1.12-2.705zm17.1 13a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm10-6a7.918 7.918 0 0 0 7.349-5h4.818a.734.734 0 0 0 .733-.733v-4.334a.734.734 0 0 0-.733-.733h-4.818a7.9 7.9 0 0 0-14.698 0H5.833a.734.734 0 0 0-.733.733v4.334a.734.734 0 0 0 .733.733h20.818a7.918 7.918 0 0 0 7.349 5zm-28.167-10h21.378l.095-.266a7.1 7.1 0 0 1 13.388 0l.095.266 5.31-.066.068 4.266h-5.378l-.095.266a7.1 7.1 0 0 1-13.388 0l-.095-.266-21.31.066zM34 37.9a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm5.658-20.8H25.342a1.244 1.244 0 0 0-1.242 1.242V15.9h16.8v-4.558a1.244 1.244 0 0 0-1.242-1.242zm.442 5H24.9v-3.758a.443.443 0 0 1 .442-.442h14.316a.443.443 0 0 1 .442.442z" />`}</svg></div>`}_textSearch(e){this._agoTerms=this._baseAgoTerms+` ${e}`}_sortCards(e){let t=e.sortType;t==="relevance"||t==="title"?(t==="title"&&(this._sortOrder="asc"),this._sortField=t):(t==="updated"||t==="created")&&(this._sortOrder="desc",this._sortField=t),this.sortType=t}_clearFilterCategories(){this._categories=[]}async _refreshAfterDeploy(e){if(e){this._newId=e;let t=10,l=500;for(let s=0;s<t&&(await this._getDeployedSolutions(),!this._cards.some(i=>i.id===e));s++)s<t-1&&await new Promise(i=>setTimeout(i,l));await this.updateComplete;let n=10,S=100;for(let s=0;s<n;s++){if(this._refs[e]){let i=this._cards.find(E=>E.id===e);window.dispatchEvent(new CustomEvent("deployedCardReady",{detail:{card:i,cardRef:this._refs[e]}})),this._newId="";return}await new Promise(i=>setTimeout(i,S)),await this.updateComplete}console.warn(`Failed to find ref for newly deployed solution after all retries: ${e}`),window.dispatchEvent(new CustomEvent("deploymentCompletedWithoutNav",{detail:{solutionId:e}})),this._newId=""}}};g("solutions-deployed-panel",h);return h},b,c,d,e)