@esri/solutions-components 1.2.0-next.183 → 1.2.0-next.185

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 (95) hide show
  1. package/dist/cdn/{CWXECEWK.js → 2GS6BQB3.js} +1 -1
  2. package/dist/cdn/{UCUN6MQX.js → 2NKBQR2S.js} +1 -1
  3. package/dist/cdn/{A4ABVAGK.js → 5BVRREHL.js} +2 -2
  4. package/dist/cdn/5X4M5KVC.js +2 -0
  5. package/dist/cdn/6ANZSQIC.js +161 -0
  6. package/dist/cdn/{7CMFEMV5.js → EMDXYQD2.js} +1 -1
  7. package/dist/cdn/EMU7RU4E.js +2 -0
  8. package/dist/cdn/{AUZITS7B.js → H2FDKJHX.js} +1 -1
  9. package/dist/cdn/{36VCTUT7.js → HQIGBD6B.js} +1 -1
  10. package/dist/cdn/HUJXES5O.js +2 -0
  11. package/dist/cdn/{RYSMGC7G.js → HZZDUGC7.js} +2 -2
  12. package/dist/cdn/IKG4EH3F.js +71 -0
  13. package/dist/cdn/{PUULR4GF.js → IWXIVFNT.js} +2 -2
  14. package/dist/cdn/{TPUPFMVO.js → IXOQGQ3G.js} +2 -2
  15. package/dist/cdn/J6ELCUNM.js +508 -0
  16. package/dist/cdn/JOILOP5T.js +107 -0
  17. package/dist/cdn/{S6OVOZ5S.js → JUM3OJQD.js} +2 -2
  18. package/dist/cdn/K7RXCITJ.js +42 -0
  19. package/dist/cdn/ME46DTCW.js +107 -0
  20. package/dist/cdn/{Z7GVQOFC.js → NRO2HV5R.js} +2 -2
  21. package/dist/cdn/O7F5EUMA.js +188 -0
  22. package/dist/cdn/OBTBMVJY.js +136 -0
  23. package/dist/cdn/{C7UDORSN.js → OXZUPDUR.js} +1 -1
  24. package/dist/cdn/P5LFHCSW.js +43 -0
  25. package/dist/cdn/{HZ35KRFT.js → PMKGWCXK.js} +2 -2
  26. package/dist/cdn/{Y5KP4RVL.js → Q7I73NYQ.js} +2 -2
  27. package/dist/cdn/{FEILAE45.js → QYRLQLM5.js} +3 -3
  28. package/dist/cdn/U7ECRTWC.js +310 -0
  29. package/dist/cdn/{E3RDQBWZ.js → UMA3V2BH.js} +1 -1
  30. package/dist/cdn/V6OI2YYO.js +84 -0
  31. package/dist/cdn/{ZELDJPGW.js → V7WLDWD6.js} +1 -1
  32. package/dist/cdn/VYH3PV4R.js +2 -0
  33. package/dist/cdn/{ARZ7BSMD.js → W6JGGPX7.js} +1 -1
  34. package/dist/cdn/{3MWL4VKU.js → XQAYHHCB.js} +2 -2
  35. package/dist/cdn/YIYEKZTS.js +2 -0
  36. package/dist/cdn/YOC7BCPQ.js +2 -0
  37. package/dist/cdn/{XPPWSXNO.js → YWHFGZYE.js} +1 -1
  38. package/dist/cdn/index.js +1 -1
  39. package/dist/chunks/cardFetchingUtils.js +1 -2
  40. package/dist/chunks/cardsHelpers.js +1 -1
  41. package/dist/chunks/interfaces.js +270 -11
  42. package/dist/chunks/solution-deploy-dialog.js +1 -1
  43. package/dist/chunks/solutions-deploy-app-nav.js +19 -10
  44. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -2
  45. package/dist/components/layer-table/customElement.js +1 -2
  46. package/dist/components/map-card/customElement.js +1 -2
  47. package/dist/components/solution-configure-titles/customElement.js +1 -2
  48. package/dist/components/solution-delete-dialog/customElement.js +1 -2
  49. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  50. package/dist/components/solution-deployed-card/customElement.js +2 -2
  51. package/dist/components/solution-deployed-card-panel/customElement.js +25 -6
  52. package/dist/components/solution-details-card/customElement.js +2 -2
  53. package/dist/components/solution-details-panel/customElement.js +2 -4
  54. package/dist/components/solution-resource-card/customElement.js +2 -2
  55. package/dist/components/solution-snapshot-gallery/customElement.js +2 -2
  56. package/dist/components/solution-social-share/customElement.js +2 -3
  57. package/dist/components/solution-user-avatar/customElement.js +11 -2
  58. package/dist/components/solutions-all-panel/customElement.js +1 -7
  59. package/dist/components/solutions-all-shell/customElement.js +0 -2
  60. package/dist/components/solutions-deploy-app/customElement.d.ts +2 -0
  61. package/dist/components/solutions-deploy-app/customElement.js +5 -9
  62. package/dist/components/solutions-deployed-panel/customElement.js +1 -3
  63. package/dist/components/solutions-filter-panel/customElement.js +17 -5
  64. package/dist/components/solutions-searchsort-toolbar/customElement.js +23 -12
  65. package/dist/docs/api.json +1 -1
  66. package/dist/docs/docs.json +1 -1
  67. package/dist/docs/vscode.html-custom-data.json +1 -1
  68. package/dist/docs/web-types.json +1 -1
  69. package/dist/solutions-components_commit.txt +7 -7
  70. package/dist/types/lumina.d.ts +1 -0
  71. package/dist/types/preact.d.ts +1 -0
  72. package/dist/types/react.d.ts +1 -0
  73. package/dist/types/stencil.d.ts +1 -0
  74. package/package.json +1 -1
  75. package/dist/cdn/24LLKGOA.js +0 -2
  76. package/dist/cdn/6KIWQISA.js +0 -107
  77. package/dist/cdn/AWWVDYW7.js +0 -508
  78. package/dist/cdn/BGI5LCTI.js +0 -310
  79. package/dist/cdn/CXO6ITPS.js +0 -107
  80. package/dist/cdn/HC7Y7YXB.js +0 -42
  81. package/dist/cdn/HQTCXWS5.js +0 -2
  82. package/dist/cdn/I4EKAQNZ.js +0 -2
  83. package/dist/cdn/IDGWY7NE.js +0 -84
  84. package/dist/cdn/JGULYSPT.js +0 -2
  85. package/dist/cdn/LHMG5K7R.js +0 -161
  86. package/dist/cdn/N3P7ULE5.js +0 -2
  87. package/dist/cdn/O4MVHJET.js +0 -2
  88. package/dist/cdn/PHAIB63K.js +0 -136
  89. package/dist/cdn/QFO7CLLL.js +0 -188
  90. package/dist/cdn/RFTLE3FH.js +0 -2
  91. package/dist/cdn/WO24XOJC.js +0 -2
  92. package/dist/cdn/YL5D7Y2I.js +0 -71
  93. package/dist/cdn/ZIINWCFY.js +0 -43
  94. package/dist/chunks/common.js +0 -22
  95. package/dist/chunks/helpers.js +0 -225
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import a from"./QFO7CLLL.js";import{ta as c}from"./T4PIUXJ7.js";export default $arcgis.t(([{a:p}])=>{async function R(o,r){let s=await h(r,o),l=[],a=[],d=[],u=s.map(async e=>{let m=await S(e.id,"reverse","Solution2Item",o);return{template:e,relatedItems:m}}),f=await Promise.all(u);for(let{template:e,relatedItems:m}of f)for(let w of m){let I=[];for(let t of w.relatedItemIds)I.push({controlItemId:e.id,dependencyItemId:t});let D=I.reduce((t,n)=>(t[n.controlItemId]||(t[n.controlItemId]=new Set),t[n.controlItemId].add(n.dependencyItemId),t),{}),i=Object.entries(D).filter(([t,n])=>n.size>1).flatMap(([t,n])=>Array.from(n).map(g=>({controlItemId:t,dependencyItemId:g})));i.length>0&&(d=d.concat(i))}a=Array.from(new Map([...d].map(e=>[`${e.controlItemId}:${e.dependencyItemId}`,e])).values());let y=a.map(e=>e.controlItemId);return l=[...new Set(y)],{uniqueIitemIds:l,_nonSolutionDependencyItems:a,templateInfos:s}}async function S(o,r,s,l){let a=await c(o,s,r,l);return[{relationshipType:s,relatedItemIds:a.relatedItems.map(d=>d.id)}]}async function h(o,r){return await p(o.id,r)}return{a:R,b:h}},a)
2
+ import a from"./O7F5EUMA.js";import{ta as c}from"./T4PIUXJ7.js";export default $arcgis.t(([{s:p}])=>{async function R(o,r){let s=await h(r,o),l=[],a=[],d=[],u=s.map(async e=>{let m=await S(e.id,"reverse","Solution2Item",o);return{template:e,relatedItems:m}}),f=await Promise.all(u);for(let{template:e,relatedItems:m}of f)for(let w of m){let I=[];for(let t of w.relatedItemIds)I.push({controlItemId:e.id,dependencyItemId:t});let D=I.reduce((t,n)=>(t[n.controlItemId]||(t[n.controlItemId]=new Set),t[n.controlItemId].add(n.dependencyItemId),t),{}),i=Object.entries(D).filter(([t,n])=>n.size>1).flatMap(([t,n])=>Array.from(n).map(g=>({controlItemId:t,dependencyItemId:g})));i.length>0&&(d=d.concat(i))}a=Array.from(new Map([...d].map(e=>[`${e.controlItemId}:${e.dependencyItemId}`,e])).values());let y=a.map(e=>e.controlItemId);return l=[...new Set(y)],{uniqueIitemIds:l,_nonSolutionDependencyItems:a,templateInfos:s}}async function S(o,r,s,l){let a=await c(o,s,r,l);return[{relationshipType:s,relatedItemIds:a.relatedItems.map(d=>d.id)}]}async function h(o,r){return await p(o.id,r)}return{a:R,b:h}},a)
@@ -1,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"./O7F5EUMA.js";export default $arcgis.t(([{l:l}])=>{function S(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 g(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:S,b:p,c:g,d:m,e:w,f:a,g:h,h:I,i:b}},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 e from"./2GS6BQB3.js";import"./RJRWRCQS.js";import c from"./O7F5EUMA.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(([{I:C,w:w},{a:$,b:S}])=>{var T=m`/** @license
3
3
  * Copyright 2025 Esri
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -39,4 +39,4 @@ calcite-loader {
39
39
  .padding-around {
40
40
  padding: 12px 2rem 2rem;
41
41
  }
42
- `,u=class extends g{constructor(){super(),this.open=!1,this.source="Card Dropdown",this._deletePercentage=0,this._fetchingTemplates=!1,this._isDeleteInProgress=!1,this._nonSolutionDependencyItems=[],this._showDeleteError=!1,this._showUndeletableItems=!1,this._templateInfos=[],this._translations=I({name:"solution-delete-dialog",blocking:!0}),this._accordion=f(),this._configContextConsumer=D({context:y,subscribe:!0}),this.solutionDeleteDialogOpen=d(),this.solutionDeleted=d(),this.solutionDeleteDialogBeforeClose=d(),this.listenOn(window,"beforeunload",e=>{this._isDeleteInProgress&&(e.preventDefault(),e.returnValue=!0)})}static{this.properties={card:[0,{},{attribute:!1}],open:[5,{},{type:Boolean}],source:1,_deletePercentage:[16,{},{state:!0}],_fetchingTemplates:[16,{},{state:!0}],_isDeleteInProgress:[16,{},{state:!0}],_nonSolutionDependencyItems:[16,{},{state:!0}],_showDeleteError:[16,{},{state:!0}],_showUndeletableItems:[16,{},{state:!0}],_templateInfos:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=T}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}close(){this._showUndeletableItems&&this.solutionDeleted.emit({showAlert:!1,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._showDeleteError=!1,this._showUndeletableItems=!1,this._isDeleteInProgress=!1,this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}delete(){if(this._telemetry?.logEvent({category:w.DEPLOYMENTS,action:"Delete Solution",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",this.source]}),this._isDeleteInProgress=!0,this.card){let e=[{itemName:this.card.title,itemType:"Solution",owner:this.card.owner,modified:this.card.modified}],s={progressCallback:t=>{this._deletePercentage=Math.round(t)},solutionOwner:this.card.owner};b(this.card.id,this._configContextConsumer.value.userSession,s).then(t=>{let c=t[1],i;if(c?i=c.items.map(o=>({itemName:o.title,itemType:o.type,owner:o.owner,modified:o.modified})):i=e,i.length===0)this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._isDeleteInProgress=!1,this.open=!1;else if(i.some(l=>l.itemType==="Solution"))this.card?$(this.card,this._configContextConsumer.value.userSession).then(l=>{this._templateInfos=l,this._showDeleteError=!0,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}):(this._showDeleteError=!0,this._isDeleteInProgress=!1);else if(this.card){let l=[];l=c.items.map(n=>({id:n.id,title:n.title,type:n.type,owner:n.owner,modified:n.modified,typeKeywords:[],snippet:"",dependencies:[],url:S(n.id,this._configContextConsumer.value.authentication)})),this._templateInfos=l,this._showDeleteError=!1,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}else this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1})}}willUpdate(e){if(e.has("open")){let s=e.get("open");this.open&&!s&&(this._fetchingTemplates=!0,C(this._configContextConsumer.value.userSession,this.card).then(t=>{this._templateInfos=t.templateInfos,this._nonSolutionDependencyItems=t._nonSolutionDependencyItems,this._fetchingTemplates=!1}))}}render(){let e=this._fetchingTemplates?"":"display-none",s=this._fetchingTemplates?"display-none":"",t=[...new Set(this._nonSolutionDependencyItems.map(o=>o.controlItemId))],c=this._templateInfos.length-this._getDependencyCount(),i=this._translations.deletionCount.replace("{{deleteableCount}}",c.toString()).replace("{{totalCount}}",this._templateInfos.length.toString());return a`<calcite-dialog class="panel-bg-color" .closeDisabled=${this._isDeleteInProgress} .escapeDisabled=${this._isDeleteInProgress} .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??p} modal kind=danger .open=${this.open} width=l outside-close-disabled @calciteDialogBeforeClose=${()=>{this.solutionDeleteDialogBeforeClose.emit()}} @calciteDialogClose=${()=>{this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}}>${this._isDeleteInProgress?a`<calcite-loader .label=${this._translations.deleteInProgress} scale=l type=determinate-value .value=${this._deletePercentage}></calcite-loader><div class="loader-text">${this._translations.deleteInProgress}</div>`:this._showUndeletableItems?a`<calcite-label class=${r(s)} layout=inline>${this._translations.failedToDeleteItems}</calcite-label><solution-item-accordion class=${r(s)} .itemRelationshipDependencies=${[]} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${h(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>`:a`<div class="padding-around"><calcite-label class=${r(s)} layout=inline scale=l>${this._translations.deletionNote}<calcite-chip .label=${i} scale=m icon=information>${i}</calcite-chip></calcite-label><calcite-loader class=${r(e)} label></calcite-loader><solution-item-accordion class=${r(s)} .itemRelationshipDependencies=${t} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${h(this._accordion)}></solution-item-accordion></div><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${()=>{this.delete()}} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>${this._showDeleteError&&a`<calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDelete} @calciteAlertClose=${()=>{this._showDeleteError=!1}} open><div slot=message>${this._translations.failedToDelete}</div></calcite-alert>`||""}`}</calcite-dialog>`}_getDependencyCount(){let e=this._nonSolutionDependencyItems.map(t=>t.controlItemId);return[...new Set(e)].length}};_("solution-delete-dialog",u);return u},c,e,i,j)
42
+ `,u=class extends g{constructor(){super(),this.open=!1,this.source="Card Dropdown",this._deletePercentage=0,this._fetchingTemplates=!1,this._isDeleteInProgress=!1,this._nonSolutionDependencyItems=[],this._showDeleteError=!1,this._showUndeletableItems=!1,this._templateInfos=[],this._translations=I({name:"solution-delete-dialog",blocking:!0}),this._accordion=f(),this._configContextConsumer=D({context:y,subscribe:!0}),this.solutionDeleteDialogOpen=d(),this.solutionDeleted=d(),this.solutionDeleteDialogBeforeClose=d(),this.listenOn(window,"beforeunload",e=>{this._isDeleteInProgress&&(e.preventDefault(),e.returnValue=!0)})}static{this.properties={card:[0,{},{attribute:!1}],open:[5,{},{type:Boolean}],source:1,_deletePercentage:[16,{},{state:!0}],_fetchingTemplates:[16,{},{state:!0}],_isDeleteInProgress:[16,{},{state:!0}],_nonSolutionDependencyItems:[16,{},{state:!0}],_showDeleteError:[16,{},{state:!0}],_showUndeletableItems:[16,{},{state:!0}],_templateInfos:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=T}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}close(){this._showUndeletableItems&&this.solutionDeleted.emit({showAlert:!1,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._showDeleteError=!1,this._showUndeletableItems=!1,this._isDeleteInProgress=!1,this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}delete(){if(this._telemetry?.logEvent({category:C.DEPLOYMENTS,action:"Delete Solution",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",this.source]}),this._isDeleteInProgress=!0,this.card){let e=[{itemName:this.card.title,itemType:"Solution",owner:this.card.owner,modified:this.card.modified}],s={progressCallback:t=>{this._deletePercentage=Math.round(t)},solutionOwner:this.card.owner};b(this.card.id,this._configContextConsumer.value.userSession,s).then(t=>{let c=t[1],i;if(c?i=c.items.map(o=>({itemName:o.title,itemType:o.type,owner:o.owner,modified:o.modified})):i=e,i.length===0)this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._isDeleteInProgress=!1,this.open=!1;else if(i.some(l=>l.itemType==="Solution"))this.card?S(this.card,this._configContextConsumer.value.userSession).then(l=>{this._templateInfos=l,this._showDeleteError=!0,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}):(this._showDeleteError=!0,this._isDeleteInProgress=!1);else if(this.card){let l=[];l=c.items.map(n=>({id:n.id,title:n.title,type:n.type,owner:n.owner,modified:n.modified,typeKeywords:[],snippet:"",dependencies:[],url:w(n.id,this._configContextConsumer.value.authentication)})),this._templateInfos=l,this._showDeleteError=!1,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}else this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1})}}willUpdate(e){if(e.has("open")){let s=e.get("open");this.open&&!s&&(this._fetchingTemplates=!0,$(this._configContextConsumer.value.userSession,this.card).then(t=>{this._templateInfos=t.templateInfos,this._nonSolutionDependencyItems=t._nonSolutionDependencyItems,this._fetchingTemplates=!1}))}}render(){let e=this._fetchingTemplates?"":"display-none",s=this._fetchingTemplates?"display-none":"",t=[...new Set(this._nonSolutionDependencyItems.map(o=>o.controlItemId))],c=this._templateInfos.length-this._getDependencyCount(),i=this._translations.deletionCount.replace("{{deleteableCount}}",c.toString()).replace("{{totalCount}}",this._templateInfos.length.toString());return a`<calcite-dialog class="panel-bg-color" .closeDisabled=${this._isDeleteInProgress} .escapeDisabled=${this._isDeleteInProgress} .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??p} modal kind=danger .open=${this.open} width=l outside-close-disabled @calciteDialogBeforeClose=${()=>{this.solutionDeleteDialogBeforeClose.emit()}} @calciteDialogClose=${()=>{this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}}>${this._isDeleteInProgress?a`<calcite-loader .label=${this._translations.deleteInProgress} scale=l type=determinate-value .value=${this._deletePercentage}></calcite-loader><div class="loader-text">${this._translations.deleteInProgress}</div>`:this._showUndeletableItems?a`<calcite-label class=${r(s)} layout=inline>${this._translations.failedToDeleteItems}</calcite-label><solution-item-accordion class=${r(s)} .itemRelationshipDependencies=${[]} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${h(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>`:a`<div class="padding-around"><calcite-label class=${r(s)} layout=inline scale=l>${this._translations.deletionNote}<calcite-chip .label=${i} scale=m icon=information>${i}</calcite-chip></calcite-label><calcite-loader class=${r(e)} label></calcite-loader><solution-item-accordion class=${r(s)} .itemRelationshipDependencies=${t} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${h(this._accordion)}></solution-item-accordion></div><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${()=>{this.delete()}} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>${this._showDeleteError&&a`<calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDelete} @calciteAlertClose=${()=>{this._showDeleteError=!1}} open><div slot=message>${this._translations.failedToDelete}</div></calcite-alert>`||""}`}</calcite-dialog>`}_getDependencyCount(){let e=this._nonSolutionDependencyItems.map(t=>t.controlItemId);return[...new Set(e)].length}};_("solution-delete-dialog",u);return u},c,e)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import e from"./PMKGWCXK.js";import d from"./VYQEF3JJ.js";import"./5XHAT3I6.js";import"./UHIFNZFJ.js";import"./DC5KIXAN.js";import"./YMMGYOOO.js";import c from"./O7F5EUMA.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)
@@ -0,0 +1,161 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import b from"./O7F5EUMA.js";import{a as A}from"./W4YXXJAS.js";import{b as k}from"./77CU4WA2.js";import{Eb as T,c as E,ya as R}from"./T4PIUXJ7.js";import{a as M}from"./6S75SIVV.js";import{g as d}from"./3YYHZQJB.js";import{b as C}from"./ABSRNM72.js";import{F as a,G as l,H as U,L as h,h as y,i as c,j as S,r as _}from"./5CQPQ7AE.js";export default $arcgis.t(([m,x,P,{I:g,j:$,r:u,y:O}])=>{var b=class{constructor(e,t,i,s){this._credential=void 0,this._isEnterprise=!1,this._locale="en",this._portalSubset=void 0,this._portalUserSubset=void 0,this._searchArcGISOnlineEnabled=!0,this._signInParam=void 0,this._clientId=e??"",this._locale=i??"en",this._portalUrl=t??"https://www.arcgis.com",this._portalRestUrl=this._portalUrl+"/sharing/rest",this._portalUrl=location.origin.endsWith(".arcgis.com")?window.location.origin:this._portalUrl,this._signInParam=s;let n=new x({appId:this._clientId,locale:this._locale,popup:!1,portalUrl:this._portalUrl,preserveUrlHash:!0});try{m.registerOAuthInfos([n])}catch(o){console.log(o)}this._portal=new P({url:this._portalUrl})}get Credential(){return this._credential}get IsEnterprisePortal(){return this._isEnterprise}get IsSignedIn(){return!!this._credential}get Portal(){return this._portal}get PortalSubset(){return this._portalSubset}get PortalUrl(){return this._portalUrl}get PortalUserOrg(){return this._portalSubset&&this._portalSubset.id}get PortalUserName(){return this._portalUserSubset&&this._portalUserSubset.username||""}get PortalUserSubset(){return this._portalUserSubset}get PortalUserPrivileges(){let e=[];return this._portalUserSubset?.privileges&&(e=this._portalUserSubset.privileges),e}get SignInParam(){return this._signInParam}get CanDeleteSolution(){return this.PortalUserPrivileges.includes("portal:admin:deleteItems")}get CanUpdateSolution(){return this.PortalUserPrivileges.includes("portal:admin:updateItems")}get CanUseAI(){let e=this._portalSubset?.orgSettings,t=this.PortalUserPrivileges.includes("portal:user:useAIAssistants");return e?.aiAssistantsEnabled?e.aiAssistantsEnabled&&!e.blockBetaApps&&t:!1}get CanViewOrg(){return this.PortalUserPrivileges.includes("portal:admin:viewItems")}get CanSearchArcGISOnline(){return this._searchArcGISOnlineEnabled}get RestUserSession(){let e=m.findServerInfo(this._portalRestUrl),t=this._credential?d.fromCredential(this._credential,e):this._isEnterprise?new d({}):new d({portal:this._portalRestUrl});return t.portal=this.PortalSubset?.restUrl?this.PortalSubset?.restUrl:t.portal,t.clientId=this._credential?._oAuthCred?.appId,t._refreshToken=this._credential?._oAuthCred?.refreshToken,t}async initialize(){try{await this._init()}catch{this.destroy()}return this}destroy(){this._credential=void 0,this._portalSubset=void 0,this._portalUserSubset=void 0,m.destroyCredentials()}async signIn(e=""){m.setOAuthRedirectionHandler(t=>{let i=t.authorizeParams.redirect_uri;if(e.length>0){let s=i.split("?"),n=s[0],o="",r=new URLSearchParams(s[1]||"");r.append("signInParam",e),o="?"+r.toString(),t.authorizeParams.redirect_uri=n+o}window.location.href=t.authorizeUrl+"?"+this._objectToQuery(t.authorizeParams)}),await m.getCredential((this._portalSubset?.portalUrl??this._portalUrl)+"/sharing").then(t=>{t&&window.location.reload()})}signOut(){let e=window.location.href,t=/[\/]\b([0-9A-Fa-f]){32}\b/g,i=e.match(t)?e.replace(t,""):e,n=`${this._portal?.restUrl??this._portalUrl+"/sharing/rest"}/oauth2/signout?client_id=${this._clientId}&redirect_uri=${encodeURIComponent(i)}`;this.destroy(),window.location.replace(n)}refreshSession(){let e=this.RestUserSession;if(!(!e||!this.IsSignedIn))return e.exchangeRefreshToken()}_getOrgUrl(e,t,i){return t&&i?window.location.protocol+"//"+t.toLowerCase()+"."+i:e}async _init(){try{this._credential=await m.checkSignInStatus(this._portalUrl+"/sharing")}catch(t){console.log(t)}try{let t=await m.checkAppAccess(this._portalUrl+"/sharing",this._clientId);(typeof t.valid<"u"&&!t.valid||t.viewOnlyUserTypeApp)&&window.location.replace(`error.html?error=blocked&locale=${this._locale}`),this._credential=t.credential}catch(t){console.log(t),t.name}this._portal.authMode="auto",await this._portal.load();let e=this._credential?await R(this.RestUserSession):{};if(this._isEnterprise=this._portal.isPortal,this._isEnterprise)try{let t=`${this._portal.restUrl}/portals/self/settings`,i=await E(t,{authentication:this._credential?this.RestUserSession:void 0});i?.portalConfigProperties?.searchArcGISOnlineEnabled!==void 0?this._searchArcGISOnlineEnabled=i.portalConfigProperties.searchArcGISOnlineEnabled:this._searchArcGISOnlineEnabled=!1}catch(t){console.warn("Failed to fetch portal settings:",t),this._searchArcGISOnlineEnabled=!1}else this._searchArcGISOnlineEnabled=!0;return this._portalSubset={name:this._portal.name??"",id:this._portal.id??"",restUrl:this._portal.restUrl??"",portalUrl:this._portal.url??"",urlKey:this._portal.urlKey??"",hostName:this._portal.portalHostname??"",orgUrl:this._getOrgUrl(this._portal.url,this._portal.urlKey??"",this._portal.customBaseUrl??""),locationTrackingEnabled:this._portal.helperServices.hasOwnProperty("locationTracking"),hubPremiumEnabled:this._portal.portalProperties?.hub?.enabled||!1,workflowURL:this._portal.helperServices?.workflowManager?.url??this._portal.url,isReadOnly:this._portal.isReadOnly,orgSettings:e},this._portalUserSubset={fullName:this._portal.user?.fullName??"",username:this._portal.user?.username??"",culture:this._portal.user?.culture?.toLowerCase()||"en",thumbnailUrl:this._portal.user?.thumbnailUrl||this._portal.url+"/home/js/arcgisonline/css/images/no-user-thumb.jpg",orgId:this._portal.user?.orgId??"",privileges:this._portal.user.privileges,role:this._portal.user?.role??""},this._isEnterprise&&this._portalSubset&&(this._portalSubset.workflowURL=await T(this._portal.restUrl,this.RestUserSession||new d({}))),this._portal?.user?.roleId&&this._portalUserSubset&&(this._portalUserSubset.roleId=this._portal.user.roleId),this}_isSerializable(e){return e&&typeof e=="object"&&"toJSON"in e&&typeof e.toJSON=="function"}_objectToQuery(e,t){return e?t&&typeof t=="function"?Object.keys(e).map(i=>encodeURIComponent(i)+"="+encodeURIComponent(t(i,e[i]))).join("&"):Object.keys(e).map(i=>{let s=e[i];if(s==null)return"";let n=encodeURIComponent(i)+"=",o=t&&t[i];return o?n+encodeURIComponent(o(s)):Array.isArray(s)?s.map(r=>this._isSerializable(r)?n+encodeURIComponent(JSON.stringify(r)):n+encodeURIComponent(r)).join("&"):this._isSerializable(s)?n+encodeURIComponent(JSON.stringify(s)):n+encodeURIComponent(s)}).filter(i=>i).join("&"):""}};var f=class I{constructor(){this._telemetryInstance=void 0,this._logTelemetryEvents=!1}getInstance(){return this._telemetryInstance}isEnabled(){return this._logTelemetryEvents}setInstance(e){this._telemetryInstance=e}setEnabled(e){this._logTelemetryEvents=e}_mapDimensions(e){let t={};return e&&e.slice(0,20).forEach((i,s)=>{let n=`dimension${s+1}`;t[n]=i}),t}_mapMetrics(e){let t={};return e&&e.slice(0,20).forEach((i,s)=>{let n=`metric${s+1}`;t[n]=i}),t}logEvent(e){if(this._logTelemetryEvents&&this._telemetryInstance){let{category:t,action:i,dimensions:s,metrics:n,label:o="",details:r=""}=e,w=this._mapDimensions(s),p=this._mapMetrics(n);this._telemetryInstance.logEvent({category:t,action:i,label:o,details:r,...w,...p})}}getTelemetrySession(){return{instance:this._telemetryInstance,logEvent:e=>this.logEvent(e),enabled:this._logTelemetryEvents}}static getDisabledSession(){return{instance:void 0,logEvent:()=>{},enabled:!1}}async initializeTelemetry(e,t){if(!I.shouldEnableTelemetry(e,t))return this.getTelemetrySession();let s=document.querySelector("consent-manager");if(!s){if(!customElements.get("consent-manager"))return this.getTelemetrySession();s=document.createElement("consent-manager"),s.portal=e.Portal,s.measurementIds=t.measurementIds||[],s.firstUseVar=t.cookiesFirstUseVar;let o=I.getEnvironmentConfig(t,e);o&&(s.amazonUserPoolID=o?.amazon?.userPoolID,s.amazonAppId=o?.amazon?.app?.id,s.amazonAppName=t.telemetry?.name,s.amazonVersion=t.telemetry?.version);let r=e.Portal?.eueiEnabled;(localStorage.getItem(s.firstUseVar)==="true"||r)&&(this.setEnabled(!0),s.classList.add("display-none")),document.body.appendChild(s),r?(await new Promise(p=>setTimeout(p,100)),await this._setInstanceFromConsentManager(s)):window.addEventListener("consentGranted",p=>{p.detail?.granted&&(this.setEnabled(!0),this._setInstanceFromConsentManager(s))})}return this.getTelemetrySession()}async _setInstanceFromConsentManager(e){try{let t=new Promise((s,n)=>setTimeout(()=>n(new Error("Timeout waiting for consent-manager instance")),1e4)),i=await Promise.race([e.getInstance(),t]);this.setInstance(i)}catch{}}static shouldEnableTelemetry(e,t){let i=e?.IsEnterprisePortal,s=e?.Portal?.eueiEnabled;return s===!1||i?!1:!!((t.measurementIds||t.telemetry)&&(t.cookiesFirstUseVar||s))}static getEnvironmentConfig(e,t){if(!e.telemetry)return;let i=e.forceTrackingEnv||$(document.location.hostname,t?.Portal?.portalHostname||"");return i&&Object.keys(e.telemetry).includes(i)?e.telemetry[i]:void 0}},z=y`/** @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
+ .esri-global-nav__title {
19
+ margin-block-start: 0;
20
+ position: relative;
21
+ margin-bottom: 0;
22
+ font-size: var(--calcite-font-size-xl);
23
+ font-weight: var(--calcite-font-weight-medium);
24
+ padding-inline-end: var(--calcite-spacing-xxl);
25
+ align-self: center;
26
+ }
27
+
28
+ .esri-global-nav__logo-link {
29
+ color: var(--calcite-color-text-1);
30
+ text-decoration: unset;
31
+ margin-block-start: 0px;
32
+ position: relative;
33
+ margin-bottom: 0px;
34
+ align-self: center;
35
+ }
36
+
37
+ .cursor-pointer {
38
+ cursor: pointer;
39
+ }
40
+
41
+ .side {
42
+ border-right: solid 1px;
43
+ color: var(--calcite-color-text-1);
44
+ }
45
+
46
+ .display-flex {
47
+ display: flex;
48
+ }
49
+
50
+ .align-self-center {
51
+ align-self: center;
52
+ }
53
+
54
+ .padding-top-1 {
55
+ padding-top: var(--calcite-spacing-lg);
56
+ }
57
+
58
+ .padding-end-1 {
59
+ padding-inline-end: var(--calcite-spacing-lg);
60
+ }
61
+
62
+ .padding-start-1 {
63
+ padding-inline-start: var(--calcite-spacing-lg);
64
+ }
65
+
66
+ .padding-bottom-1 {
67
+ padding-bottom: var(--calcite-spacing-lg);
68
+ }
69
+
70
+ .margin-start-end-1 {
71
+ margin-inline-start: var(--calcite-spacing-lg);
72
+ margin-inline-end: var(--calcite-spacing-lg);
73
+ }
74
+
75
+ .margin-start-end-1-5 {
76
+ margin-inline-start: var(--calcite-spacing-xxl);
77
+ margin-inline-end: var(--calcite-spacing-xxl);
78
+ }
79
+
80
+ /* calcite-menu {
81
+ --calcite-color-focus: transparent;
82
+ } */
83
+
84
+ /* calcite-button {
85
+ --calcite-color-focus: transparent;
86
+ } */
87
+
88
+ .sign-in {
89
+ display: flex;
90
+ vertical-align: middle;
91
+ align-items: center;
92
+ height: 100%;
93
+ }
94
+
95
+ .height-full {
96
+ height: 100%;
97
+ }
98
+
99
+ .user-label {
100
+ --calcite-label-margin-bottom: 0px;
101
+ }
102
+
103
+ .font-bold {
104
+ font-weight: var(--calcite-font-weight-bold);
105
+ }
106
+
107
+ .font-normal {
108
+ font-weight: var(--calcite-font-weight-normal);
109
+ }
110
+
111
+ .logo-padding {
112
+ padding-inline-start: var(--calcite-spacing-none);
113
+ }
114
+
115
+ @media (max-width: 800px) {
116
+ .logo-padding {
117
+ padding-inline-start: var(--calcite-spacing-lg);
118
+ }
119
+ }
120
+
121
+ .signin-padding {
122
+ padding-inline-end: var(--calcite-spacing-none);
123
+ }
124
+
125
+ @media (max-width: 800px) {
126
+ .signin-padding {
127
+ padding-inline-end: var(--calcite-spacing-lg);
128
+ }
129
+ }
130
+
131
+ calcite-action {
132
+ --calcite-font-size-0: var(--calcite-font-size--1);
133
+ --calcite-internal-action-padding-inline: var(--calcite-spacing-lg);
134
+ }
135
+
136
+ calcite-navigation {
137
+ --calcite-color-border-3: transparent;
138
+ }
139
+
140
+ .border-bottom {
141
+ border-bottom-color: var(--calcite-color-border-1);
142
+ border-bottom-width: var(--calcite-spacing-px);
143
+ border-bottom-style: solid;
144
+ }
145
+
146
+ .border {
147
+ height: var(--calcite-spacing-px);
148
+ border-bottom-color: var(--calcite-color-border-3);
149
+ border-bottom-style: solid;
150
+ border-bottom-width: var(--calcite-border-width-sm);
151
+ box-sizing: border-box;
152
+ position: absolute;
153
+ top: 65px;
154
+ left: 0px;
155
+ width: 100%;
156
+ z-index: 1;
157
+ }
158
+
159
+ .height-65 {
160
+ height: 65px;
161
+ }`,v=class extends U{constructor(){super(),this._isMobile=!1,this._logoFill="",this._thumbnailUrl="",this._translations=M({name:"solutions-deploy-app-nav",blocking:!0}),this._activeTab="all-solutions",this._authentication=void 0,this._cardType="details",this._dropdownRef=a(),this._dropdownItemAll=a(),this._dropdownItemMy=a(),this._dropdownItemMyContent=a(),this._dropdownItemResources=a(),this._isMobileContextConsumer=k({context:A,subscribe:!0,callback:e=>this._isMobile=e}),this._menuRef=a(),this._menuItemAll=a(),this._menuItemMy=a(),this._menuItemResources=a(),this.authInit=_(),this.navTabSelected=_(),this.tabChanged=_(),this.tokenRefreshed=_(),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployAppTabSelected",this._deployAppTabSelected),this.listenOn(window,"popstate",this._handleUrlChange),this.listenOn(window,"sessionRefreshed",e=>{this._updateThumbnailToken(e.detail)})}static{this.properties={appConfig:1,initTab:1,_subNavigationCard:[16,{},{state:!0}],_isMobile:[16,{},{state:!0}],_logoFill:[16,{},{state:!0}],_thumbnailUrl:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=z}get _telemetry(){return this._config?.telemetrySession}clearMenuItems(){this._isMobile?(this._dropdownItemAll.value.selected=!1,this._authentication?.IsSignedIn&&(this._dropdownItemMy.value.selected=!1),this._dropdownItemResources.value.selected=!1):(this._menuItemAll.value.active=!1,this._authentication?.IsSignedIn&&(this._menuItemMy.value.active=!1),this._menuItemResources.value.active=!1)}activateMenuItem(e,t=!1){let i,s;switch(e){case"all-solutions":i=this._isMobile?this._dropdownItemAll:this._menuItemAll,s=this._isMobile?[this._dropdownItemMy,this._dropdownItemResources]:[this._menuItemMy,this._menuItemResources];break;case"deployments":i=this._isMobile?this._dropdownItemMy:this._menuItemMy,s=this._isMobile?[this._dropdownItemAll,this._dropdownItemResources]:[this._menuItemAll,this._menuItemResources];break;case"resources":i=this._isMobile?this._dropdownItemResources:this._menuItemResources,s=this._isMobile?[this._dropdownItemAll,this._dropdownItemMy]:[this._menuItemAll,this._menuItemMy];break;case"my-content":this._isMobile&&(i=this._dropdownItemMyContent,s=[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemResources]);break}i&&s&&this._handleMenuClick(e,i,s,t)}async connectedCallback(){super.connectedCallback();let e=new d({username:"",password:""});this._userSession=e}async load(){let e=window.matchMedia("(prefers-color-scheme: dark)");e.addEventListener("change",o=>this._logoFill=this._getLogoFill(o.matches)),this._logoFill=this._getLogoFill(e.matches),this._isMobileContextConsumer.value&&(this._isMobile=this._isMobileContextConsumer.value);let t=this.appConfig.locale||"en",i=this.appConfig.authentication?.PortalSubset?.orgUrl||this.appConfig.orgURL||this.appConfig.portalURL,s=this.appConfig.authentication?.PortalUrl||this.appConfig.portalURL,n=this.appConfig.primarySolutionsGroupId;this._authentication||(this.appConfig.authentication?this._authentication=this.appConfig.authentication:(this._authentication=new b(this.appConfig.appId,this.appConfig.portalURL,this.appConfig.locale),await this._authentication.initialize())),this._authentication.RestUserSession&&(this._userSession=this._authentication.RestUserSession),this.initTab&&(this._activeTab=this.initTab,this.initTab=void 0),this._config={anonAgolSession:void 0,agolPortalUrl:"",allCards:[],appId:this.appConfig.appId,authentication:this._authentication,agoBasedEnterpriseSolutionsGroupId:this.appConfig.agoBasedEnterpriseSolutionsGroupId,diagramKey:this.appConfig.diagramKey,isEnterprise:this.appConfig.isEnterprise,locale:t,orgUrl:i,portalURL:s,primarySolutionsGroupId:n,userSession:this._userSession,telemetrySession:f.getDisabledSession(),cookiesFirstUseVar:this.appConfig.cookiesFirstUseVar,trackingEnabled:this.appConfig.trackingEnabled,forceTrackingEnv:this.appConfig.forceTrackingEnv,telemetry:this.appConfig.telemetry,measurementIds:this.appConfig.measurementIds},this.authInit.emit(this._config),this._portal=await this._userSession?.getPortal()}render(){return c`<div><calcite-navigation>${this._getHeading()}${this._isMobile?this._getDropdown():this._getMenu()}${this._isMobile?"":this._getSignInOut()}</calcite-navigation><div class="border" slot=header></div>${!this._isMobile&&this._getSubHeading()||""}</div>`}updated(e){e.has("_isMobile")&&e.get("_isMobile")!==void 0&&this.activateMenuItem(this._activeTab,!0)}_getSignInOut(){return c`<div slot=user>${this._authentication?.IsSignedIn?this._getUserAvatar():c`<calcite-button appearance=transparent class="sign-in" kind=neutral scale=l @click=${this._handleSignIn}>${this._translations.signIn}</calcite-button>`}</div>`}_getDropdown(){let e=this._authentication?.IsSignedIn?this._translations.signOut:this._translations.signIn;return c`<calcite-dropdown overlay-positioning=fixed slot=content-end width=m ${l(this._dropdownRef)}><calcite-button appearance=transparent icon-start=hamburger kind=neutral slot=trigger scale=l></calcite-button><calcite-dropdown-group><calcite-dropdown-item @click=${()=>this._handleMenuClick("all-solutions",this._dropdownItemAll,[this._dropdownItemMy,this._dropdownItemResources,this._dropdownItemMyContent],!0)} @keydown=${t=>u(t,()=>this._handleMenuClick("all-solutions",this._dropdownItemAll,[this._dropdownItemMy,this._dropdownItemResources,this._dropdownItemMyContent],!0))} ${l(this._dropdownItemAll)}>${this._translations.allSolutions}</calcite-dropdown-item><calcite-dropdown-item @click=${()=>this._handleMenuClick("deployments",this._dropdownItemMy,[this._dropdownItemAll,this._dropdownItemResources,this._dropdownItemMyContent],!0)} @keydown=${t=>u(t,()=>this._handleMenuClick("deployments",this._dropdownItemMy,[this._dropdownItemAll,this._dropdownItemResources,this._dropdownItemMyContent],!0))} ${l(this._dropdownItemMy)}>${this._translations.myDeployments}</calcite-dropdown-item><calcite-dropdown-item @click=${()=>this._handleMenuClick("resources",this._dropdownItemResources,[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemMyContent],!0)} @keydown=${t=>u(t,()=>this._handleMenuClick("resources",this._dropdownItemResources,[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemMyContent],!0))} ${l(this._dropdownItemResources)}>${this._translations.solutionResources}</calcite-dropdown-item><calcite-dropdown-item @click=${()=>{let t=this._activeTab==="all-solutions"?this._dropdownItemAll:this._activeTab==="deployments"?this._dropdownItemMy:this._activeTab==="resources"?this._dropdownItemResources:void 0;setTimeout(()=>this._handleMenuClick("my-content",t,[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemResources,this._dropdownItemMyContent],!1),10)}} ${l(this._dropdownItemMyContent)}>${this._translations.myContent}</calcite-dropdown-item><calcite-dropdown-item @click=${t=>{this._authentication?.IsSignedIn?this._signOut():this._handleSignIn(t)}}>${e}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}_getMenu(){return c`<calcite-menu label slot=content-start ${l(this._menuRef)}><calcite-menu-item label @click=${()=>this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0)} @keydown=${e=>u(e,()=>this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0))} .text=${this._translations.allSolutions} ${l(this._menuItemAll)}></calcite-menu-item><calcite-menu-item label @click=${()=>this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0)} @keydown=${e=>u(e,()=>this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0))} .text=${this._translations.myDeployments} ${l(this._menuItemMy)}></calcite-menu-item><calcite-menu-item label @click=${()=>this._handleMenuClick("resources",this._menuItemResources,[this._menuItemAll,this._menuItemMy],!0)} @keydown=${e=>u(e,()=>this._handleMenuClick("resources",this._menuItemResources,[this._menuItemAll,this._menuItemMy],!0))} .text=${this._translations.solutionResources} ${l(this._menuItemResources)}></calcite-menu-item></calcite-menu>`}_getHeading(){return c`<div class="align-self-center display-flex cursor-pointer logo-padding" slot=logo><a aria-label=${this._translations.linkToEsriHomePage??h} class="esri-global-nav__logo-link" href=https://www.esri.com @click=${()=>this._logLinkClickTelemetry("Esri")} rel=noopener target=_blank title=${this._translations.linkToEsriHomePage??h}><svg height=30 viewBox="0 0 84 30" width=84 xmlns=http://www.w3.org/2000/svg>${S`<path fill=${this._logoFill??h} d="M77.277.5c-1.48 0-2.554 1.175-2.554 2.488 0 1.314 1.074 2.49 2.554 2.49 1.48 0 2.622-1.071 2.622-2.49C79.899 1.572 78.756.5 77.277.5zm-1.913 23.426h3.891V8.353h-3.891v15.573zM40.515 7.965c-4.702 0-8.465 3.275-8.465 8.174 0 4.898 3.763 8.177 8.465 8.177 2.146 0 4.165-.667 5.852-2.31l-2.457-2.457c-.916.964-2.093 1.651-3.78 1.651-2.175 0-3.927-1.397-4.188-3.698h11.875v-1.07c0-5.42-2.95-8.467-7.302-8.467zm-4.573 6.617c.293-2.24 1.721-3.7 4.023-3.7 2.434 0 3.926 1.43 3.96 3.7h-7.983zm17.305-1.849c0-1.169 1.233-1.655 2.273-1.655 1.32 0 2.292.547 3.037 1.577l2.476-2.474c-1.282-1.6-3.407-2.216-5.418-2.216-3.147 0-6.262 1.555-6.262 5.028 0 5.938 8.403 3.406 8.403 6.617 0 1.233-1.46 1.784-2.595 1.784-1.65 0-2.687-.806-3.69-1.905l-2.515 2.514c1.58 1.711 3.62 2.313 5.978 2.313 3.179 0 6.717-1.299 6.717-4.998 0-6.067-8.404-3.795-8.404-6.585zm14.15-1.916h-.062V8.353h-3.892v15.573h3.892v-8.34c0-.842.518-3.925 4.185-3.925.564 0 1.127.112 1.718.253l.152-3.726c-.45-.127-.901-.223-1.382-.223-2.046 0-3.766 1.07-4.61 2.852zM14.683 2.766c-1.217-.037-1.932.12-2.651.26-.216-.056-.62.003-.643.472 0 .252.08.447.24.562.159.114 1.493 1.1 2.473 2.142-.47.052-.98.138-1.504.246-.585-1.264-2.465-.114-3.714-.064-.146.006-.286.025-.431.035-.137-1.056-.235-2.15-.21-2.92 1.618-.917 4.748-1.593 6.874-1.626l.373-.01c.312-.003.337-.251.043-.291-2.641-.361-4.929.173-7.279 1.145C5.808 3.748 2.696 6.12.8 10.596c-.444 1.247-2.219 7.195.935 12.3 2.56 4.142 5.855 6.113 9.887 6.676 4.024.561 6.207.075 8.752-1.055 5.951-2.642 10.496-12.559 5.95-19.747-1.794-3.319-6.495-6.229-11.641-6.004zm-2.259 4.647a17.754 17.754 0 0 1 2.362-.368 15.741 15.741 0 0 1 1.748 2.54c-.805.39-1.878.688-2.315 1.312-.181.26-.226.613-.232.995a23.59 23.59 0 0 0-3.877 1.286c-.453-1.332-.85-2.66-1.124-3.842 1.296-1.237 2.813-1.438 3.438-1.923zm6.61 15.88c-.354.038-.706.083-1.016.13-.77.121-1.762.379-2.685.723-.53-.843-1.95-2.891-2.667-4.437 1.442-.709 3.457-1.303 5.775-1.444.19.33.4.66.69.956.757.774-.44 1.883-.096 4.072zm-8.603-9.14c1.12-.53 2.3-.968 3.56-1.286-.008.333-.045.649-.182.903-.196.366-.106 1.428.134 1.775.755 1.099 2.008.488 2.951.883.433.181.721.482.964.84-1.974.124-3.91.584-5.706 1.41-.923-1.96-1.72-4.524-1.72-4.524zm.832 4.938c-.07.033-.145.074-.217.11a40.803 40.803 0 0 0-3.256-.78c-.995-.204-1.031-.15-2.151.175-.16.046-.313.088-.462.133a36.17 36.17 0 0 1-.445-1.202c1.436-1.106 2.884-2.034 4.821-2.985.5 1.491 1.215 3.483 1.71 4.549zm.768 4.528c.293-.765.521-1.331.605-1.89.569.958 1.248 2 1.774 2.815-.819.397-1.772 1.01-2.672 1.685.062-1.037.083-2.064.293-2.61zm5.334-14.636c-.01.014-.028.026-.04.04a23.057 23.057 0 0 0-1.376-2.111c1.007-.061 2.246-.008 3.374.108-1.014.363-1.461 1.254-1.958 1.963zm-9.028 1.094c.019-.026.039-.047.057-.072.234 1.182.513 2.16.886 3.518-1.402.618-3.881 2.148-4.976 2.972-.198-.502-.404-1.214-.589-1.946.249-.737.758-1.254 1.476-1.325 1.228-.123 2.28-1.95 3.146-3.147zm-5.41-1.784C4.24 6.455 6.023 4.666 7.65 3.773c-.016.4.086 1.567.218 2.693-.57.057-1.134.128-1.692.211a12.084 12.084 0 0 0-3.115 4.088c-.117-1.054-.178-1.933-.133-2.472zM2.07 9.731s.062 1.06.113 1.833c0 0-.781.886-1.18 1.59.159-1.443.498-2.187 1.067-3.423zm7.664 18.356C5.688 26.82 2.69 23.41 1.62 19.834a17.475 17.475 0 0 1-.651-6.473c.056.01.186.072.38.017.135-.093.616-.43.957-.728l.018.131c-.23.87-.371 1.775-.4 2.71.37.39.804 1.038 1.286 1.707-.31.23-.905.641-1.045.741-.41.292-.406.753-.114 1.015.161.144.492.084.613-.01.358-.285.656-.513 1.066-.77.15.393.292.748.43 1.086-.175.188-.3.436-.342.798-.135 1.172.979 2.092 1.918 2.36.035.01.06.014.094.023.05.076.095.147.148.224-.487.378-.82.765-1.049 1.063-.132.172-.28.43-.16.481.123.05.535 0 .719-.034.466-.09.826-.606 1.148-.796.387.534 1.017 1.22 1.672 1.88.029.12.055.246.088.351.125.403.293.804.495 1.196.471.22.962.402 1.464.561a8.344 8.344 0 0 0-.622.72zm.989.313c.155-.203.312-.454.505-.626.468.31.969.665 1.368.894-.615-.07-1.337-.085-1.873-.268zm3.113.31s-1.604-1.062-2.009-1.471c.803-.667 2.102-1.459 3.128-1.889.402.63 1.727 2.507 2.258 3.112-.963.168-2.31.294-3.377.248zM20.54 27.2c-.286.189-1.664.814-2.204.988a23.43 23.43 0 0 1-2.44-3.202c.844-.354 2.143-.67 3.346-.82.109.342.25.704.444 1.094.19.382.411.662.649.853.085-.053.164-.115.248-.17-.006.42-.018.846-.043 1.257zm-.33-21.477c-.27-.172-.607-.108-.467.193.053.117.259.314.427.512-.986-.272-3.608-.479-4.856-.364-.815-.916-1.744-2.028-2.861-2.765 4.999-.311 9.49 1.756 11.473 4.186-.661-.344-2.087-.834-2.667-.963-.313-.319-.708-.58-1.05-.8zm1.094 21.065c.023-.407.04-.922.053-1.396.487-.378.946-.79 1.37-1.238.547.063 1.094.156 1.427.24-.74.936-1.762 1.716-2.85 2.394zm3.825-3.724c-.12.253-.428.688-.633.894-.312-.126-.781-.258-1.272-.375.078-.094.163-.182.24-.279.268-1.796-.338-2.37.42-4.014l.172-.371c.418.118.812.247 1.153.386.043.616.04 2.728-.08 3.759zm-.708-4.917c.196-.407.412-.84.645-1.27.061.547.105 1.08.131 1.563a9.256 9.256 0 0 0-.776-.293zm2.218 1.126l-.194.756c-.137.515-.593 1.732-.832 2.223.091-.663.171-2.384.148-2.73.16.049.502-.147.559-.341.057-.195-.564-.495-.564-.495a20.742 20.742 0 0 0-.172-2.7c.142-.23.286-.452.434-.655a12.082 12.082 0 0 0-.186-1.575c.125.041.24.074.323.075.283.004.282-.19.192-.298-.058-.07-.328-.238-.643-.42a12.02 12.02 0 0 0-2.78-5.32c.533.202 1.214.48 1.754.774.41.516 1.585 1.675 2.212 4.92.564 2.922-.06 5.143-.251 5.786zM80.886 8.597v-.24h1.218v.24h-.468v1.191h-.283V8.597h-.467zm1.87-.24l.365 1.025.368-1.024h.406v1.43h-.262V8.634l-.396 1.154h-.229l-.4-1.154v1.154h-.261v-1.43h.409z" />`}</svg></a><div class="side margin-start-end-1-5" slot=logo></div><div class="esri-global-nav__title"><a aria-label=${this._translations.linkToArcGISSolutionsHomePage??h} class="esri-global-nav__logo-link" href=https://www.esri.com/en-us/arcgis/products/arcgis-solutions/overview @click=${()=>this._logLinkClickTelemetry("ArcGIS Solutions")} rel=noopener target=_blank title=${this._translations.linkToArcGISSolutionsHomePage??h}>${this._translations.arcgisSolutions}</a></div></div>`}_getSubHeading(){let e=this._cardType==="deployed"?this._translations.myDeployments:this._translations.allSolutions;return this._subNavigationCard?c`<calcite-navigation class="height-65" slot=navigation-secondary><calcite-menu class="height-65" label slot=content-start><calcite-menu-item breadcrumb .label=${e} @click=${this._navigateFromSubMenu} .text=${e} text-enabled></calcite-menu-item><calcite-menu-item label active .text=${this._subNavigationCard?.title} text-enabled></calcite-menu-item></calcite-menu></calcite-navigation>`:""}_getLogoFill(e){return e?"#FFFFFF":"#141414"}_handleMenuClick(e,t,i,s){i.forEach(n=>{n.value&&(this._isMobile?n.value.selected=!1:n.value.active=!1)}),t?.value&&(this._isMobile?t.value.selected=!0:t.value.active=!0),e!=="my-content"?this._activeTab=e:this._viewMyContent(),s&&this._logNavClickTelemetry(e),s&&this.navTabSelected.emit({tabType:e})}_logNavClickTelemetry(e){let i={"all-solutions":"Solutions",deployments:"Deployments","my-content":"My Content",resources:"Resources",details:void 0,"deployed-card":void 0}[e];i&&this._telemetry?.logEvent({category:g.GLOBAL_NAVIGATION,action:"Navigate",dimensions:[i]})}_logLinkClickTelemetry(e){this._telemetry?.logEvent({category:g.GLOBAL_NAVIGATION,action:"Navigate",dimensions:[e]})}_getUserAvatar(){let e=this._portal.user,t=this._authentication?.PortalUserSubset,i=e?.id??e?.sourceJSON?.id;return this._thumbnailUrl=e?.thumbnailUrl??t?.thumbnailUrl??"",c`<div class="height-full display-flex cursor-pointer signin-padding"><calcite-navigation-user class="height-full" full-name=${e?.fullName??h} id=instant-apps-sign-in-user-button slot=user .thumbnail=${this._thumbnailUrl} .userId=${i} .username=${e?.username}></calcite-navigation-user></div><calcite-popover placement=bottom-end scale=s reference-element=instant-apps-sign-in-user-button offset-distance=0 pointer-disabled focus-trap-disabled auto-close .label=${this._translations.userSettings}><calcite-action scale=l @click=${this._viewMyContent} .text=${this._translations.myContent} text-enabled></calcite-action><calcite-action scale=l @click=${this._signOut} .text=${this._translations.signOut} text-enabled></calcite-action></calcite-popover>`}_viewMyContent(){let e=`${this._config?.portalURL}/home/content.html#my`;window.open(e,"_blank")}_signOut(){this._telemetry?.logEvent({category:g.GLOBAL_NAVIGATION,action:"Navigate",dimensions:["Sign out"]}),this._authentication?.signOut()}_handleSignIn(e){e.preventDefault(),this._telemetry?.logEvent({category:g.GLOBAL_NAVIGATION,action:"Navigate",dimensions:["Sign in"]}),this._authentication?.signIn().then(()=>{}).catch(t=>{console.error("Error creating global nav header:",t)})}_deployedCardSelected(e){this._cardType="deployed",this._subNavigationCard=e.detail.card}_detailsCardSelected(e){this._cardType="details",this._subNavigationCard=e.detail}_deployAppTabSelected(){this._subNavigationCard=void 0}_handleUrlChange(){this._subNavigationCard=void 0}_navigateFromSubMenu(){this._cardType==="details"?this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0):this._cardType==="deployed"&&this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0)}_updateThumbnailToken(e){this._thumbnailUrl!==""&&(this._thumbnailUrl=O(this._thumbnailUrl,e))}};C("solutions-deploy-app-nav",v);return{a:f,b:v}},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- 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(([{e:o}])=>{return o},a)
2
+ import a from"./O7F5EUMA.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(([{z:o}])=>{return o},a)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import b from"./W6JGGPX7.js";import a from"./O7F5EUMA.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)
@@ -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"./IWXIVFNT.js";import b from"./O7F5EUMA.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");
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import b from"./HC7Y7YXB.js";import"./I5GF7UR6.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"./K7RXCITJ.js";import"./I5GF7UR6.js";import a from"./O7F5EUMA.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)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import c from"./2NKBQR2S.js";import a from"./O7F5EUMA.js";import{K as M,nb as T,ob as U,qa as N,r as b}from"./T4PIUXJ7.js";import{g as O}from"./3YYHZQJB.js";export default $arcgis.t(([{F:_,e:y,f:J,g:k,h:K,k:F,l:w},{a:A,b:l,c:j,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 O({}),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,c,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 i;if(h&&h.size>0){let d=A(this.cardCache,h);i=l(d,g,C)}else i=l(this.cardCache,g,C);return Promise.resolve(i)}let R={filter:r.filter,sortField:r.sortField,sortOrder:r.sortOrder,categories:r?.categories?this.convertSearchCategories(r.categories):"",signal:a},S=[];if(t&&!c){let i=e||new O({});S.push(U(t,r.q,i,R,p))}return s&&c&&S.push(U(s,r.q,z,R,f)),Promise.allSettled(S).then(i=>{let d=[];i.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(i=>Promise.reject(new Error(i.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 c={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?N(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))):T(c).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 c=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,c),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:y(e.licenseInfo),deployCommonId:w(e.typeKeywords||[],"solutionid-"),deployVersion:w(e.typeKeywords||[],"solutionversion-"),canDelete:e.created>16183314e5,preview:this.preparePreviewImageUrls(e.id,e.properties?.preview,c),sourcePortalUrl:e.sourcePortalUrl||"",knownToBePublicSource:e.knownToBePublicSource||!1,waitId:"",relatedSolutions:M(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 $(n,r,t,s,e=_,c="created",a="desc",o=!1,h=[],g=[],C,p){if(!n?.IsSignedIn)return;let f={q:e,filter:"type:Solution",sortField:c,sortOrder:a,delay:o,categories:h,num:100};return f.q+=L(n,C),await V(r,f,s,g,p)}function L(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 V(n,r,t,s,e=""){let c=await t.requestDeployedSolutionCards(r,n,e),a=j(c.cards,s);return{cards:c.cards,relatedSolutions:a}}return{a:x,b:$}},a,c)
@@ -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 b from"./2NKBQR2S.js";import a from"./O7F5EUMA.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 r,h as n,i as t,r as d}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{I:x,r:b},{f:y}])=>{var $=n`/** @license
3
3
  * Copyright 2025 Esri
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -140,4 +140,4 @@ a {
140
140
  margin: 0;
141
141
  display: inherit;
142
142
  height: 100%;
143
- }`,l=class extends h{constructor(){super(...arguments),this.referrerSolutionId="",this.referrerSolutionTitle="",this.referrerSolutionVersion="",this.source="all-solutions",this._translations=u({name:"solution-details-card",blocking:!0}),this._configContextConsumer=f({context:g,subscribe:!0}),this.detailsCardSelected=d()}static{this.properties={card:[0,{},{attribute:!1}],referrerSolutionId:1,referrerSolutionTitle:1,referrerSolutionVersion:1,source:1,_translations:[16,{},{state:!0}]}}static{this.styles=S}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){let e=b(this.card.title);return t`<a href=${e??o} @click=${this._anchorClick} .title=${`${this._translations.arcgisSolutions} | ${this.card.title}`}>${this._renderCard()}</a>`}_anchorClick(e){e.preventDefault()}_cardSelected(){if(this.source==="you-may-also-like"){let r=[this.referrerSolutionTitle,this.referrerSolutionId,this.referrerSolutionVersion,this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""];this._telemetry?.logEvent({category:x.SOLUTION_DETAILS,action:"Related Solution",dimensions:r})}this.detailsCardSelected.emit(this.card)}_renderChips(e){let r=e.includes("deployed"),v=e.filter(i=>i!=="deployed"),s=[];return v.forEach(i=>{let y="chip-status",c=`solution-details-card-chip-${i}`,w=i==="new"?"star":"mega-phone",a=i==="new"?this._translations.newSolution:this._translations.updated;s.push(t`<calcite-chip class=${p(y)} .icon=${w} id=${c??o} .label=${a} .value=${a} scale=s></calcite-chip><calcite-tooltip .referenceElement=${c}><span>${a}</span></calcite-tooltip>`)}),r&&s.push(t`<calcite-chip class="chip-deployed" icon=check-circle id=solution-details-card-chip-deployed .label=${this._translations.deployed} .value=${this._translations.deployed} scale=s></calcite-chip><calcite-tooltip reference-element=solution-details-card-chip-deployed><span>${this._translations.deployed}</span></calcite-tooltip>`),s}_renderCard(){let e=this.card;return t`<calcite-card .label=${e.snippet} @click=${this._cardSelected}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title??o} class="thumbnail card-image" src=${e.thumbnailUrl??o}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chips&&e.chips.length>0?t`<div slot=footer-end style="display: flex; gap: 0.5rem; justify-content: flex-end;">${this._renderChips(e.chips)}</div>`:void 0}<div slot=footer-start></div></calcite-card>`}};m("solution-details-card",l);return l},a,b,c)
143
+ }`,l=class extends h{constructor(){super(...arguments),this.referrerSolutionId="",this.referrerSolutionTitle="",this.referrerSolutionVersion="",this.source="all-solutions",this._translations=u({name:"solution-details-card",blocking:!0}),this._configContextConsumer=f({context:g,subscribe:!0}),this.detailsCardSelected=d()}static{this.properties={card:[0,{},{attribute:!1}],referrerSolutionId:1,referrerSolutionTitle:1,referrerSolutionVersion:1,source:1,_translations:[16,{},{state:!0}]}}static{this.styles=$}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){let e=y(this.card.title);return t`<a href=${e??r} @click=${this._anchorClick} @keydown=${i=>b(i,()=>this._cardSelected())} .title=${`${this._translations.arcgisSolutions} | ${this.card.title}`}>${this._renderCard()}</a>`}_anchorClick(e){e.preventDefault()}_cardSelected(){if(this.source==="you-may-also-like"){let i=[this.referrerSolutionTitle,this.referrerSolutionId,this.referrerSolutionVersion,this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""];this._telemetry?.logEvent({category:x.SOLUTION_DETAILS,action:"Related Solution",dimensions:i})}this.detailsCardSelected.emit(this.card)}_renderChips(e){let i=e.includes("deployed"),v=e.filter(o=>o!=="deployed"),s=[];return v.forEach(o=>{let w="chip-status",c=`solution-details-card-chip-${o}`,S=o==="new"?"star":"mega-phone",a=o==="new"?this._translations.newSolution:this._translations.updated;s.push(t`<calcite-chip class=${p(w)} .icon=${S} id=${c??r} .label=${a} .value=${a} scale=s></calcite-chip><calcite-tooltip .referenceElement=${c}><span>${a}</span></calcite-tooltip>`)}),i&&s.push(t`<calcite-chip class="chip-deployed" icon=check-circle id=solution-details-card-chip-deployed .label=${this._translations.deployed} .value=${this._translations.deployed} scale=s></calcite-chip><calcite-tooltip reference-element=solution-details-card-chip-deployed><span>${this._translations.deployed}</span></calcite-tooltip>`),s}_renderCard(){let e=this.card;return t`<calcite-card .label=${e.snippet} @click=${this._cardSelected}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title??r} class="thumbnail card-image" src=${e.thumbnailUrl??r}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chips&&e.chips.length>0?t`<div slot=footer-end style="display: flex; gap: 0.5rem; justify-content: flex-end;">${this._renderChips(e.chips)}</div>`:void 0}<div slot=footer-start></div></calcite-card>`}};m("solution-details-card",l);return l},a,b)
@@ -0,0 +1,71 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import b from"./O7F5EUMA.js";import{a as y,b as f}from"./W4YXXJAS.js";import{b as h}from"./77CU4WA2.js";import"./T4PIUXJ7.js";import{a as S}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 g,L as c,h as u,i as n,r as a}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{J:p,r:l}])=>{var w=u`/** @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
+ }`,d=class extends g{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=S({name:"solutions-searchsort-toolbar",blocking:!0}),this._configContextConsumer=h({context:f,subscribe:!0,callback:async t=>{t&&t.authentication&&(this._canViewOrg=t.authentication.CanViewOrg)}}),this._isMobileContextConsumer=h({context:y,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=w}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?p.ORG:p.MINE,type:"owner",value:this.isOrgSolutions?"My organization's solutions":"My solutions"};this.searchChanged.emit({option:e,scope:this.scope})}changeSearchFilter(t,e,s){let i=this._activeSearchSortSettings.map(o=>o.scope===this.scope?{...o,settings:{...o.settings,searchTerm:t}}:o),r=JSON.stringify(this._activeSearchSortSettings)!==JSON.stringify(i);this._activeSearchSortSettings=i,e&&r&&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,i=this._isMobile?"padding-end-1-2":"";return t?n`<div class="flex-row toolbar-sizing"><calcite-input-text class="flex-grow-1" clearable icon=search @calciteInputTextChange=${r=>{let o=r.target;this.changeSearchFilter(o.value,!0,!1)}} @keyup=${r=>{let o=r.target;["Tab","Shift","Alt","Control","Meta","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Escape"].includes(r.key)||(r.key==="Enter"?this.changeSearchFilter(o.value,!0,!1):(o.value.length>=3||o.value.length===0)&&this.changeSearchFilter(o.value,o.value.length>=3||o.value.length===0,!0))}} .placeholder=${s} scale=l slot=content-top .value=${e?.searchTerm}></calcite-input-text>${this._isMobile&&this.scope==="all-solutions"?n`<calcite-button appearance=transparent class=${`focus-color ${i}`} 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 n`<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??c}><calcite-dropdown-item icon-start=user @click=${t=>{t.detail!==0&&this.changeOwnerFilter(!0)}} @keydown=${t=>l(t,()=>this.changeOwnerFilter(!0))} .selected=${!this.isOrgSolutions}>${this._translations.mySolutions}</calcite-dropdown-item><calcite-dropdown-item icon-start=organization @click=${t=>{t.detail!==0&&this.changeOwnerFilter(!1)}} @keydown=${t=>l(t,()=>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 n`<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??c}>${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?n`<calcite-dropdown-item @click=${i=>{i.detail!==0&&this.sortChanged(e,!0)}} @keydown=${i=>l(i,()=>this.sortChanged(e,!0))}>${t}</calcite-dropdown-item>`:n`<calcite-dropdown-item @click=${i=>{i.detail!==0&&this.sortChanged(e,!0)}} @keydown=${i=>l(i,()=>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(i=>i.scope===e?(s=i,!0):!1),s&&this.updateUrlParams.emit(s)}};m("solutions-searchsort-toolbar",d);return d},b)
@@ -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"./O7F5EUMA.js";import{b as o}from"./W4YXXJAS.js";import{b as h}from"./77CU4WA2.js";import{a as n}from"./6S75SIVV.js";import{b as r}from"./ABSRNM72.js";import{H as t,L as s,h as l,i as a,j as c}from"./5CQPQ7AE.js";export default $arcgis.t(([{I:z,r:m}])=>{var d=l`/** @license
3
3
  * Copyright 2025 Esri
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -52,4 +52,4 @@ calcite-card:hover {
52
52
  height: 48px;
53
53
  display: block;
54
54
  color: var(--calcite-color-text-3);
55
- }`,m={"arcmap-blog":"M34 28.9H10v-.8h24zm-24 5h20v-.8H10zm31.591-20.8l-.8.8H45.1v25.2H18.583l-9.817 4.245 1.823-4.245H3.9V13.9h22.665l.8-.8H3.1v26.8h6.274l-2.142 4.986L18.666 39.9H45.9V13.1zm-.953-5.141l.449 2.676L32.6 19.12l-.567-.565 8.195-8.196-.286-1.708L24.09 24.476a1.82 1.82 0 0 1-.689.431l-3.52 1.22 1.213-3.525a1.832 1.832 0 0 1 .431-.692L42.461.989l2.578 2.577zm3.268-4.394L42.461 2.12 22.09 22.475a1.036 1.036 0 0 0-.242.388l-.678 1.97 1.968-.682a1.018 1.018 0 0 0 .384-.24z","esri-community":"M24 47.896a3.897 3.897 0 0 1-1.563-.327L3.1 39.106V12.928a6.169 6.169 0 0 1 3.696-5.651L22.436.43a3.905 3.905 0 0 1 3.128 0L44.9 8.894v26.178a6.17 6.17 0 0 1-3.696 5.651l-15.64 6.846a3.897 3.897 0 0 1-1.564.327zM3.9 38.583l18.857 8.254a3.11 3.11 0 0 0 2.486 0l15.64-6.846a5.37 5.37 0 0 0 3.217-4.92V9.418L25.243 1.163a3.11 3.11 0 0 0-2.486 0L7.117 8.01A5.369 5.369 0 0 0 3.9 12.928zm21.364.344a14.156 14.156 0 0 1-14.17-14.111 13.678 13.678 0 0 1 16.893-13.26l.387.103-1.164 4.336-.389-.107a8.052 8.052 0 0 0-2.141-.282 8.907 8.907 0 0 0-8.74 8.838 9.303 9.303 0 0 0 15.277 7.075.809.809 0 0 1 1.104.062l2.451 2.57a.808.808 0 0 1-.047 1.161 14.213 14.213 0 0 1-9.461 3.615zm-.559-27a12.956 12.956 0 0 0-12.81 12.889 13.375 13.375 0 0 0 22.298 9.899L31.73 32.13a10.103 10.103 0 0 1-16.591-7.687 9.718 9.718 0 0 1 9.54-9.637 8.982 8.982 0 0 1 1.965.212l.748-2.787a11.953 11.953 0 0 0-2.687-.305zM36 26.9H24a3.905 3.905 0 0 1-3.9-3.9.901.901 0 0 1 .9-.9h10.84a7.77 7.77 0 0 0-1.875-4.15l-.131-.158 1.332-5.01.475.357a13.413 13.413 0 0 1 5.26 10.705V26a.901.901 0 0 1-.901.9zm-15-4a.1.1 0 0 0-.1.1 3.103 3.103 0 0 0 3.1 3.1h12a.1.1 0 0 0 .1-.1v-2.156a12.643 12.643 0 0 0-4.47-9.693l-.918 3.451a8.135 8.135 0 0 1 1.95 4.898v.4z",faq:"M18.495 23.09a3.22 3.22 0 0 1 3.502 3.123 3.526 3.526 0 0 1-1.593 3.034 3.413 3.413 0 0 0-1.524 3.096V33h-.8v-.657a4.165 4.165 0 0 1 1.812-3.71 2.727 2.727 0 0 0 1.305-2.42 2.425 2.425 0 0 0-2.702-2.322c-1.716 0-2.498.99-2.498 1.912h-.8c0-1.348 1.133-2.712 3.298-2.712zm22.849-2.748l.843 4.81-3.579-1.014.218-.77 2.354.668-.721-4.111.246-.139c3.427-1.927 5.393-4.774 5.393-7.81 0-5.554-6.55-10.072-14.6-10.072s-14.6 4.518-14.6 10.072a8.111 8.111 0 0 0 2.73 5.856l.313.3C29.924 18.47 37.9 24.104 37.9 31c0 7.113-8.479 12.9-18.9 12.9-1.417 0-3.901-.295-4.433-.36l-9.71 3.627 2.062-6.238C2.58 38.47.1 34.867.1 31c0-7.064 8.364-12.813 18.686-12.893a8.769 8.769 0 0 1-2.688-6.131c0-5.995 6.908-10.872 15.4-10.872s15.4 4.877 15.4 10.872c0 3.258-2.02 6.295-5.554 8.366zM19 18.9C9.02 18.9.9 24.328.9 31c0 3.65 2.44 7.073 6.694 9.389l.293.16-1.746 5.285 8.33-3.112.097.012c.03.004 2.923.366 4.432.366 9.98 0 18.1-5.428 18.1-12.1S28.98 18.9 19 18.9zm.4 16.6a.9.9 0 1 1-.9-.9.901.901 0 0 1 .9.9zm-.8 0a.1.1 0 0 0-.2 0c0 .11.2.11.2 0zm12.9-25.025a1.025 1.025 0 1 1-1.025 1.025 1.026 1.026 0 0 1 1.025-1.025zm0 .8a.225.225 0 0 0-.225.225c0 .248.45.248.45 0a.225.225 0 0 0-.225-.225zm6.975.225a1.025 1.025 0 1 1 1.025 1.025 1.026 1.026 0 0 1-1.025-1.025zm.8 0c0 .248.45.248.45 0a.225.225 0 0 0-.45 0zM23.5 10.475a1.025 1.025 0 1 1-1.025 1.025 1.026 1.026 0 0 1 1.025-1.025zm0 .8a.225.225 0 0 0-.225.225c0 .248.45.248.45 0a.225.225 0 0 0-.225-.225z",idea:"M31.858 10.113a12.288 12.288 0 0 0-9.675-3.074 12.438 12.438 0 0 0-7.706 20.764 11.032 11.032 0 0 1 3.016 7.387A1.511 1.511 0 0 0 19 36.9h.187l.388 1.553-.523 1.047.5 1-.41.821-.043 1.033 2.44 2.546h3.921l2.439-2.546V36.9h.307a1.51 1.51 0 0 0 1.508-1.504 11.03 11.03 0 0 1 3.014-7.391 12.45 12.45 0 0 0-.871-17.692zM27.1 42.033L25.12 44.1h-3.24l-1.98-2.068v-.437l.347-.695H24v-.8h-3.753l-.3-.6.3-.6H24v-.8h-3.688l-.3-1.2H27.1zm-5.2-9.869a1.6 1.6 0 1 1 3.2 0V36.1h-3.2zm10.238-4.698a11.814 11.814 0 0 0-3.222 7.924.71.71 0 0 1-.71.71H25.9v-3.936a2.406 2.406 0 0 0-.468-1.42l3.903-12.02-.76-.247-3.786 11.655a2.368 2.368 0 0 0-.89-.344V22.9H25v-.8h-3v.8h1.1v6.888a2.368 2.368 0 0 0-.889.344l-3.785-11.655-.761.248 3.903 12.019a2.406 2.406 0 0 0-.468 1.42V36.1h-2.099a.712.712 0 0 1-.709-.717 11.812 11.812 0 0 0-3.225-7.92 11.638 11.638 0 0 1 7.205-19.429 11.486 11.486 0 0 1 9.053 2.876 11.65 11.65 0 0 1 .813 16.556zM23.9 3h-.8V0h.8zM11.69 7.194l-1.77-2.39.642-.476 1.771 2.39zm24.748-2.866l.642.477-1.77 2.39-.644-.477zM2.483 16.022l2.822.808-.22.77-2.822-.808zm42.252.77l-2.822.808-.22-.77 2.822-.808z",install:"M30.991 21.733l-7.395 7.394-7.395-7.394.567-.566L23.1 27.5V3h.8v24.691l6.525-6.524zm6.7-7.633H26v.8h11.1v26.2H9.9V14.9H21v-.8H9.31L.69 24.748l.62.504L9.1 15.63V41.9h28.8V15.63l7.79 9.622.62-.504z",keys:"M42.52 18.96c-.8-2.67-2.58-4.84-4.98-6.07-.02-.02-.03-.04-.05-.06.34-1.09.41-2.27.41-3.66C37.9 4.08 35.31.1 32 .1c-3.19 0-5.72 3.7-5.88 8.54-6.7 1.555-10.39 8.9-7.57 15.21L5.1 37.08v5.79l6.27.03 3.28-3.57V37.9h1.34l2.41-2.41v-1.34h1.23l4.87-4.55c.57.23 1.16.41 1.76.54L20.79 43.3l1.74 4.39 4.92-1.93 1.5-3.7-.41-1.01 1.15-.45 1.12-2.76-.42-1.06.93-.37 2.33-5.21c6.53.047 10.619-6.336 8.87-12.24zM17.6 35.16l-1.94 1.94h-1.81v1.92l-2.83 3.08-5.12-.03v-4.65l13.61-13.4c-3.048-6.604.758-13.066 6.6-14.56.037 2.097.58 4.415 1.72 6.17-.878 2.281.823 4.77 3.29 4.77 1.95 0 3.53-1.58 3.53-3.52 0-3.417-4.395-4.834-6.39-2.06-.913-1.675-1.336-3.612-1.36-5.52 3.674-.656 7.662.792 10.1 4.22 4.726 6.764-.128 16.08-8.38 16.08-1.426 0-2.9-.303-4.29-.94l-5.01 4.69H17.6v1.81zm16.24-18.1c-1.518.948-3.521.728-5.1-1.5 1.346-2.459 5.11-1.493 5.11 1.32 0 .06 0 .12-.01.18zm-.29 1.04c-.44.89-1.36 1.5-2.43 1.5a2.725 2.725 0 0 1-2.69-3.13c1.322 1.591 3.197 2.391 5.12 1.63zM32 .9c2.81 0 5.1 3.71 5.1 8.27 0 1.09-.04 2.03-.23 2.89-2.58-2.899-6.39-4.152-9.95-3.58C27.13 4.24 29.33.9 32 .9zm1.14 29.48l-2.42 5.41-1.37.54.6 1.51-.88 2.14-1.56.63.57 1.45-1.24 3.08-3.86 1.52-1.33-3.35 5.41-13.02c.665.091 1.147.11 1.698.11l-5.36 12.44.734.316L29.65 30.35c7.71-.716 12.301-9.014 8.82-15.93 6.615 4.993 3.842 16.3-5.33 15.96zM20.38 28.1L9.15 39.34l-.57-.57 11.24-11.23.56.56z","search-files":"M10.9 4h-.8V1.1h13.57l9.23 9.23v13.28c-.26-.04-.53-.07-.8-.09V10.9h-5.08l-.8-.8h5.31L23.9 2.47v5.31l-.8-.8V1.9H10.9V4zm12.27 31.9H6.1V5.1h13.57l9.23 9.23v9.56a6.335 6.335 0 0 0-.8.28V14.9h-9v-9H6.9v29.2h15.99c.03.139.193.611.28.8zM19.9 14.1h7.63L19.9 6.47v7.63zm7.2 18.4v.5h.8v-.5c0-1.985 1.617-3.6 3.602-3.6H32v-.8h-.499a4.408 4.408 0 0 0-4.402 4.4zm18.733 12.096c0 .24-.094.466-.264.636l-1.307 1.307a.897.897 0 0 1-1.274 0l-5.527-5.528.97-.996-2.005-2.005A7.364 7.364 0 0 1 31.5 39.9c-4.08 0-7.4-3.319-7.4-7.4s3.32-7.4 7.4-7.4c4.081 0 7.401 3.32 7.401 7.4a7.36 7.36 0 0 1-1.909 4.944l1.997 1.997 1.018-1.044 5.561 5.561c.167.168.264.4.264.637zM31.5 39.102c3.64 0 6.6-2.961 6.6-6.6 0-3.64-2.96-6.601-6.6-6.601s-6.6 2.96-6.6 6.6c0 3.64 2.96 6.6 6.6 6.6zm13.502 5.423l-4.987-4.988-1.43 1.467 4.969 4.97h.14l1.308-1.307v-.142zM9 19.9h15v-.8H9v.8zm0 10h9v-.8H9v.8zm12-5.8H9v.8h12v-.8z",support:"M39.973 19.342l.069-.016a67.604 67.604 0 0 0-.898-3.54A16.04 16.04 0 0 0 23.514 4.1 16.006 16.006 0 0 0 7.797 16.11c-.175.663-.324 1.326-.477 1.99H6.5a1.402 1.402 0 0 0-1.4 1.4v2a1.402 1.402 0 0 0 1.4 1.4h1.4v-3.792q.304-1.398.67-2.796A15.216 15.216 0 0 1 23.514 4.9a15.248 15.248 0 0 1 14.86 11.104 66.99 66.99 0 0 1 .805 3.156c-.375.029-1.054.27-1.054 1.659v8.47c0 1.376.666 1.625 1.043 1.658-2.449 5.636-4.985 9.933-11.21 10.536a1.979 1.979 0 0 0-1.904-1.464h-2.108a1.981 1.981 0 1 0 0 3.962h2.108a1.978 1.978 0 0 0 1.953-1.699c6.887-.656 9.598-5.636 12.153-11.61 1.29-.717 2.766-2.661 2.766-3.924V23.36c0-1.324-1.624-3.396-2.953-4.018zM7.1 22.1h-.6a.6.6 0 0 1-.6-.6v-2a.6.6 0 0 1 .6-.6h.6zm18.954 21.081h-2.108a1.181 1.181 0 0 1 0-2.362h2.108a1.181 1.181 0 0 1 0 2.362zm16.071-16.433c0 1.207-2.003 3.406-2.856 3.406-.284 0-.343-.47-.343-.865v-8.47c0-.395.06-.865.343-.865.853 0 2.856 2.2 2.856 3.406z",value:"M14.068 13.1l-6.83 7.62L24.5 45.067l17.261-24.345-6.829-7.62H14.068zm19.883.8l-2 6.2H17.049l-2-6.2h18.902zm-19.685.178l1.943 6.022h-7.34l5.397-6.022zM8.346 20.9h8.12l6.779 21.013L8.347 20.9zM24.5 43.198L17.307 20.9h14.386L24.5 43.198zm1.255-1.283L32.533 20.9h8.12L25.755 41.915zM32.79 20.1l1.943-6.022L40.13 20.1h-7.339zM24.9 5h-.8V2h.8v3zm11.42 3.628l-.642-.476 1.771-2.39.643.476-1.772 2.39zm-23.642 0l-1.772-2.39.643-.476 1.771 2.39-.642.476zm35.253 7.164l-2.822.808-.22-.77 2.822-.808.22.77zm-46.644-.77l2.822.809-.22.77-2.822-.809.22-.77z",video:"M11.363 17.1l27.814-8.32-1.697-5.673-31.127 9.311 1.696 5.673.051-.015V41.9h31.8V17.1zm15.783-5.556l-5.179 1.549 1.246-4.883 5.178-1.549zm2.14-5.15l5.178-1.549-1.246 4.883-5.178 1.548zm-8.213 6.966l-5.178 1.549 1.246-4.883 5.178-1.548zm-6.072 1.816l-5.178 1.549 1.246-4.883 5.178-1.548zm23.18-6.933L34.112 9.46l1.246-4.882 1.585-.474zM7.35 12.955l2.826-.845-1.246 4.882-.343.103zM29.044 22.1l2.52-4.2h5.405l-2.52 4.2zm-19.014 0l2.52-4.2h5.405l-2.52 4.2zm8.858-4.2h5.405l-2.52 4.2h-5.405zm6.338 0h5.405l-2.52 4.2h-5.405zM8.9 17.9h2.716l-2.519 4.2H8.9zm30.2 23.2H8.9V22.9h30.2zm-3.718-19l2.52-4.2H39.1v4.2zM36 27.9h-2v-.8h2zm-5 0H13v-.8h18zm-17.9 9h22.8v-5.8H13.1zm.8-5h21.2v4.2H13.9z","speech-bubbles":"M11 15.9v-.8h18v.8zm12 4v-.8H11v.8zm-1 7.2h-3.443L9.9 32.76V27.1H5.75a1.852 1.852 0 0 1-1.85-1.85v-14.5A1.852 1.852 0 0 1 5.75 8.9h27.5a1.852 1.852 0 0 1 1.85 1.85V22h.8V10.75a2.653 2.653 0 0 0-2.65-2.65H5.75a2.653 2.653 0 0 0-2.65 2.65v14.5a2.653 2.653 0 0 0 2.65 2.65H9.1v6.34l9.695-6.34H22zm18.9 9.8h1.35a2.653 2.653 0 0 0 2.65-2.65v-8.5a2.653 2.653 0 0 0-2.65-2.65h-16.5a2.653 2.653 0 0 0-2.65 2.65v8.5a2.653 2.653 0 0 0 2.65 2.65h7.28l7.87 5.628zm1.35-13a1.852 1.852 0 0 1 1.85 1.85v8.5a1.852 1.852 0 0 1-1.85 1.85H40.1v4.872L33.288 36.1H25.75a1.852 1.852 0 0 1-1.85-1.85v-8.5a1.852 1.852 0 0 1 1.85-1.85zm-3.25 4v-.8H29v.8zm-3 5v-.8h-7v.8z"},e=class extends l{constructor(){super(...arguments),this._translations=r({name:"solution-resource-card",blocking:!0}),this._configContextConsumer=n({context:o,subscribe:!0}),this.heading="",this.description="",this.sectionHeading=""}static{this.properties={_translations:[16,{},{state:!0}],icon:1,meridianIcon:1,heading:1,description:1,url:1,sectionHeading:1}}static{this.styles=v}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){return a`<calcite-card @click=${()=>this.url&&this._handleCardClick(this.url)}>${this.meridianIcon&&m[this.meridianIcon]&&a`<div class="card-icon"><svg class="meridian-icon" xmlns=http://www.w3.org/2000/svg viewBox="0 0 48 48">${c`<path fill=currentColor d=${m[this.meridianIcon]??t} />`}</svg></div>`||""}${this.icon&&a`<div class="card-icon"><calcite-icon .icon=${this.icon} scale=l></calcite-icon></div>`||""}<h3 class="card-heading">${this.heading}</h3><p class="card-description">${this.description}</p></calcite-card>`}_handleCardClick(z){this._telemetry?.logEvent({category:h.RESOURCES,action:"Open",dimensions:[`${this.sectionHeading} - ${this.heading}`]}),window.open(z,"_blank","noopener,noreferrer")}};s("solution-resource-card",e);return e},b)
55
+ }`,v={"arcmap-blog":"M34 28.9H10v-.8h24zm-24 5h20v-.8H10zm31.591-20.8l-.8.8H45.1v25.2H18.583l-9.817 4.245 1.823-4.245H3.9V13.9h22.665l.8-.8H3.1v26.8h6.274l-2.142 4.986L18.666 39.9H45.9V13.1zm-.953-5.141l.449 2.676L32.6 19.12l-.567-.565 8.195-8.196-.286-1.708L24.09 24.476a1.82 1.82 0 0 1-.689.431l-3.52 1.22 1.213-3.525a1.832 1.832 0 0 1 .431-.692L42.461.989l2.578 2.577zm3.268-4.394L42.461 2.12 22.09 22.475a1.036 1.036 0 0 0-.242.388l-.678 1.97 1.968-.682a1.018 1.018 0 0 0 .384-.24z","esri-community":"M24 47.896a3.897 3.897 0 0 1-1.563-.327L3.1 39.106V12.928a6.169 6.169 0 0 1 3.696-5.651L22.436.43a3.905 3.905 0 0 1 3.128 0L44.9 8.894v26.178a6.17 6.17 0 0 1-3.696 5.651l-15.64 6.846a3.897 3.897 0 0 1-1.564.327zM3.9 38.583l18.857 8.254a3.11 3.11 0 0 0 2.486 0l15.64-6.846a5.37 5.37 0 0 0 3.217-4.92V9.418L25.243 1.163a3.11 3.11 0 0 0-2.486 0L7.117 8.01A5.369 5.369 0 0 0 3.9 12.928zm21.364.344a14.156 14.156 0 0 1-14.17-14.111 13.678 13.678 0 0 1 16.893-13.26l.387.103-1.164 4.336-.389-.107a8.052 8.052 0 0 0-2.141-.282 8.907 8.907 0 0 0-8.74 8.838 9.303 9.303 0 0 0 15.277 7.075.809.809 0 0 1 1.104.062l2.451 2.57a.808.808 0 0 1-.047 1.161 14.213 14.213 0 0 1-9.461 3.615zm-.559-27a12.956 12.956 0 0 0-12.81 12.889 13.375 13.375 0 0 0 22.298 9.899L31.73 32.13a10.103 10.103 0 0 1-16.591-7.687 9.718 9.718 0 0 1 9.54-9.637 8.982 8.982 0 0 1 1.965.212l.748-2.787a11.953 11.953 0 0 0-2.687-.305zM36 26.9H24a3.905 3.905 0 0 1-3.9-3.9.901.901 0 0 1 .9-.9h10.84a7.77 7.77 0 0 0-1.875-4.15l-.131-.158 1.332-5.01.475.357a13.413 13.413 0 0 1 5.26 10.705V26a.901.901 0 0 1-.901.9zm-15-4a.1.1 0 0 0-.1.1 3.103 3.103 0 0 0 3.1 3.1h12a.1.1 0 0 0 .1-.1v-2.156a12.643 12.643 0 0 0-4.47-9.693l-.918 3.451a8.135 8.135 0 0 1 1.95 4.898v.4z",faq:"M18.495 23.09a3.22 3.22 0 0 1 3.502 3.123 3.526 3.526 0 0 1-1.593 3.034 3.413 3.413 0 0 0-1.524 3.096V33h-.8v-.657a4.165 4.165 0 0 1 1.812-3.71 2.727 2.727 0 0 0 1.305-2.42 2.425 2.425 0 0 0-2.702-2.322c-1.716 0-2.498.99-2.498 1.912h-.8c0-1.348 1.133-2.712 3.298-2.712zm22.849-2.748l.843 4.81-3.579-1.014.218-.77 2.354.668-.721-4.111.246-.139c3.427-1.927 5.393-4.774 5.393-7.81 0-5.554-6.55-10.072-14.6-10.072s-14.6 4.518-14.6 10.072a8.111 8.111 0 0 0 2.73 5.856l.313.3C29.924 18.47 37.9 24.104 37.9 31c0 7.113-8.479 12.9-18.9 12.9-1.417 0-3.901-.295-4.433-.36l-9.71 3.627 2.062-6.238C2.58 38.47.1 34.867.1 31c0-7.064 8.364-12.813 18.686-12.893a8.769 8.769 0 0 1-2.688-6.131c0-5.995 6.908-10.872 15.4-10.872s15.4 4.877 15.4 10.872c0 3.258-2.02 6.295-5.554 8.366zM19 18.9C9.02 18.9.9 24.328.9 31c0 3.65 2.44 7.073 6.694 9.389l.293.16-1.746 5.285 8.33-3.112.097.012c.03.004 2.923.366 4.432.366 9.98 0 18.1-5.428 18.1-12.1S28.98 18.9 19 18.9zm.4 16.6a.9.9 0 1 1-.9-.9.901.901 0 0 1 .9.9zm-.8 0a.1.1 0 0 0-.2 0c0 .11.2.11.2 0zm12.9-25.025a1.025 1.025 0 1 1-1.025 1.025 1.026 1.026 0 0 1 1.025-1.025zm0 .8a.225.225 0 0 0-.225.225c0 .248.45.248.45 0a.225.225 0 0 0-.225-.225zm6.975.225a1.025 1.025 0 1 1 1.025 1.025 1.026 1.026 0 0 1-1.025-1.025zm.8 0c0 .248.45.248.45 0a.225.225 0 0 0-.45 0zM23.5 10.475a1.025 1.025 0 1 1-1.025 1.025 1.026 1.026 0 0 1 1.025-1.025zm0 .8a.225.225 0 0 0-.225.225c0 .248.45.248.45 0a.225.225 0 0 0-.225-.225z",idea:"M31.858 10.113a12.288 12.288 0 0 0-9.675-3.074 12.438 12.438 0 0 0-7.706 20.764 11.032 11.032 0 0 1 3.016 7.387A1.511 1.511 0 0 0 19 36.9h.187l.388 1.553-.523 1.047.5 1-.41.821-.043 1.033 2.44 2.546h3.921l2.439-2.546V36.9h.307a1.51 1.51 0 0 0 1.508-1.504 11.03 11.03 0 0 1 3.014-7.391 12.45 12.45 0 0 0-.871-17.692zM27.1 42.033L25.12 44.1h-3.24l-1.98-2.068v-.437l.347-.695H24v-.8h-3.753l-.3-.6.3-.6H24v-.8h-3.688l-.3-1.2H27.1zm-5.2-9.869a1.6 1.6 0 1 1 3.2 0V36.1h-3.2zm10.238-4.698a11.814 11.814 0 0 0-3.222 7.924.71.71 0 0 1-.71.71H25.9v-3.936a2.406 2.406 0 0 0-.468-1.42l3.903-12.02-.76-.247-3.786 11.655a2.368 2.368 0 0 0-.89-.344V22.9H25v-.8h-3v.8h1.1v6.888a2.368 2.368 0 0 0-.889.344l-3.785-11.655-.761.248 3.903 12.019a2.406 2.406 0 0 0-.468 1.42V36.1h-2.099a.712.712 0 0 1-.709-.717 11.812 11.812 0 0 0-3.225-7.92 11.638 11.638 0 0 1 7.205-19.429 11.486 11.486 0 0 1 9.053 2.876 11.65 11.65 0 0 1 .813 16.556zM23.9 3h-.8V0h.8zM11.69 7.194l-1.77-2.39.642-.476 1.771 2.39zm24.748-2.866l.642.477-1.77 2.39-.644-.477zM2.483 16.022l2.822.808-.22.77-2.822-.808zm42.252.77l-2.822.808-.22-.77 2.822-.808z",install:"M30.991 21.733l-7.395 7.394-7.395-7.394.567-.566L23.1 27.5V3h.8v24.691l6.525-6.524zm6.7-7.633H26v.8h11.1v26.2H9.9V14.9H21v-.8H9.31L.69 24.748l.62.504L9.1 15.63V41.9h28.8V15.63l7.79 9.622.62-.504z",keys:"M42.52 18.96c-.8-2.67-2.58-4.84-4.98-6.07-.02-.02-.03-.04-.05-.06.34-1.09.41-2.27.41-3.66C37.9 4.08 35.31.1 32 .1c-3.19 0-5.72 3.7-5.88 8.54-6.7 1.555-10.39 8.9-7.57 15.21L5.1 37.08v5.79l6.27.03 3.28-3.57V37.9h1.34l2.41-2.41v-1.34h1.23l4.87-4.55c.57.23 1.16.41 1.76.54L20.79 43.3l1.74 4.39 4.92-1.93 1.5-3.7-.41-1.01 1.15-.45 1.12-2.76-.42-1.06.93-.37 2.33-5.21c6.53.047 10.619-6.336 8.87-12.24zM17.6 35.16l-1.94 1.94h-1.81v1.92l-2.83 3.08-5.12-.03v-4.65l13.61-13.4c-3.048-6.604.758-13.066 6.6-14.56.037 2.097.58 4.415 1.72 6.17-.878 2.281.823 4.77 3.29 4.77 1.95 0 3.53-1.58 3.53-3.52 0-3.417-4.395-4.834-6.39-2.06-.913-1.675-1.336-3.612-1.36-5.52 3.674-.656 7.662.792 10.1 4.22 4.726 6.764-.128 16.08-8.38 16.08-1.426 0-2.9-.303-4.29-.94l-5.01 4.69H17.6v1.81zm16.24-18.1c-1.518.948-3.521.728-5.1-1.5 1.346-2.459 5.11-1.493 5.11 1.32 0 .06 0 .12-.01.18zm-.29 1.04c-.44.89-1.36 1.5-2.43 1.5a2.725 2.725 0 0 1-2.69-3.13c1.322 1.591 3.197 2.391 5.12 1.63zM32 .9c2.81 0 5.1 3.71 5.1 8.27 0 1.09-.04 2.03-.23 2.89-2.58-2.899-6.39-4.152-9.95-3.58C27.13 4.24 29.33.9 32 .9zm1.14 29.48l-2.42 5.41-1.37.54.6 1.51-.88 2.14-1.56.63.57 1.45-1.24 3.08-3.86 1.52-1.33-3.35 5.41-13.02c.665.091 1.147.11 1.698.11l-5.36 12.44.734.316L29.65 30.35c7.71-.716 12.301-9.014 8.82-15.93 6.615 4.993 3.842 16.3-5.33 15.96zM20.38 28.1L9.15 39.34l-.57-.57 11.24-11.23.56.56z","search-files":"M10.9 4h-.8V1.1h13.57l9.23 9.23v13.28c-.26-.04-.53-.07-.8-.09V10.9h-5.08l-.8-.8h5.31L23.9 2.47v5.31l-.8-.8V1.9H10.9V4zm12.27 31.9H6.1V5.1h13.57l9.23 9.23v9.56a6.335 6.335 0 0 0-.8.28V14.9h-9v-9H6.9v29.2h15.99c.03.139.193.611.28.8zM19.9 14.1h7.63L19.9 6.47v7.63zm7.2 18.4v.5h.8v-.5c0-1.985 1.617-3.6 3.602-3.6H32v-.8h-.499a4.408 4.408 0 0 0-4.402 4.4zm18.733 12.096c0 .24-.094.466-.264.636l-1.307 1.307a.897.897 0 0 1-1.274 0l-5.527-5.528.97-.996-2.005-2.005A7.364 7.364 0 0 1 31.5 39.9c-4.08 0-7.4-3.319-7.4-7.4s3.32-7.4 7.4-7.4c4.081 0 7.401 3.32 7.401 7.4a7.36 7.36 0 0 1-1.909 4.944l1.997 1.997 1.018-1.044 5.561 5.561c.167.168.264.4.264.637zM31.5 39.102c3.64 0 6.6-2.961 6.6-6.6 0-3.64-2.96-6.601-6.6-6.601s-6.6 2.96-6.6 6.6c0 3.64 2.96 6.6 6.6 6.6zm13.502 5.423l-4.987-4.988-1.43 1.467 4.969 4.97h.14l1.308-1.307v-.142zM9 19.9h15v-.8H9v.8zm0 10h9v-.8H9v.8zm12-5.8H9v.8h12v-.8z",support:"M39.973 19.342l.069-.016a67.604 67.604 0 0 0-.898-3.54A16.04 16.04 0 0 0 23.514 4.1 16.006 16.006 0 0 0 7.797 16.11c-.175.663-.324 1.326-.477 1.99H6.5a1.402 1.402 0 0 0-1.4 1.4v2a1.402 1.402 0 0 0 1.4 1.4h1.4v-3.792q.304-1.398.67-2.796A15.216 15.216 0 0 1 23.514 4.9a15.248 15.248 0 0 1 14.86 11.104 66.99 66.99 0 0 1 .805 3.156c-.375.029-1.054.27-1.054 1.659v8.47c0 1.376.666 1.625 1.043 1.658-2.449 5.636-4.985 9.933-11.21 10.536a1.979 1.979 0 0 0-1.904-1.464h-2.108a1.981 1.981 0 1 0 0 3.962h2.108a1.978 1.978 0 0 0 1.953-1.699c6.887-.656 9.598-5.636 12.153-11.61 1.29-.717 2.766-2.661 2.766-3.924V23.36c0-1.324-1.624-3.396-2.953-4.018zM7.1 22.1h-.6a.6.6 0 0 1-.6-.6v-2a.6.6 0 0 1 .6-.6h.6zm18.954 21.081h-2.108a1.181 1.181 0 0 1 0-2.362h2.108a1.181 1.181 0 0 1 0 2.362zm16.071-16.433c0 1.207-2.003 3.406-2.856 3.406-.284 0-.343-.47-.343-.865v-8.47c0-.395.06-.865.343-.865.853 0 2.856 2.2 2.856 3.406z",value:"M14.068 13.1l-6.83 7.62L24.5 45.067l17.261-24.345-6.829-7.62H14.068zm19.883.8l-2 6.2H17.049l-2-6.2h18.902zm-19.685.178l1.943 6.022h-7.34l5.397-6.022zM8.346 20.9h8.12l6.779 21.013L8.347 20.9zM24.5 43.198L17.307 20.9h14.386L24.5 43.198zm1.255-1.283L32.533 20.9h8.12L25.755 41.915zM32.79 20.1l1.943-6.022L40.13 20.1h-7.339zM24.9 5h-.8V2h.8v3zm11.42 3.628l-.642-.476 1.771-2.39.643.476-1.772 2.39zm-23.642 0l-1.772-2.39.643-.476 1.771 2.39-.642.476zm35.253 7.164l-2.822.808-.22-.77 2.822-.808.22.77zm-46.644-.77l2.822.809-.22.77-2.822-.809.22-.77z",video:"M11.363 17.1l27.814-8.32-1.697-5.673-31.127 9.311 1.696 5.673.051-.015V41.9h31.8V17.1zm15.783-5.556l-5.179 1.549 1.246-4.883 5.178-1.549zm2.14-5.15l5.178-1.549-1.246 4.883-5.178 1.548zm-8.213 6.966l-5.178 1.549 1.246-4.883 5.178-1.548zm-6.072 1.816l-5.178 1.549 1.246-4.883 5.178-1.548zm23.18-6.933L34.112 9.46l1.246-4.882 1.585-.474zM7.35 12.955l2.826-.845-1.246 4.882-.343.103zM29.044 22.1l2.52-4.2h5.405l-2.52 4.2zm-19.014 0l2.52-4.2h5.405l-2.52 4.2zm8.858-4.2h5.405l-2.52 4.2h-5.405zm6.338 0h5.405l-2.52 4.2h-5.405zM8.9 17.9h2.716l-2.519 4.2H8.9zm30.2 23.2H8.9V22.9h30.2zm-3.718-19l2.52-4.2H39.1v4.2zM36 27.9h-2v-.8h2zm-5 0H13v-.8h18zm-17.9 9h22.8v-5.8H13.1zm.8-5h21.2v4.2H13.9z","speech-bubbles":"M11 15.9v-.8h18v.8zm12 4v-.8H11v.8zm-1 7.2h-3.443L9.9 32.76V27.1H5.75a1.852 1.852 0 0 1-1.85-1.85v-14.5A1.852 1.852 0 0 1 5.75 8.9h27.5a1.852 1.852 0 0 1 1.85 1.85V22h.8V10.75a2.653 2.653 0 0 0-2.65-2.65H5.75a2.653 2.653 0 0 0-2.65 2.65v14.5a2.653 2.653 0 0 0 2.65 2.65H9.1v6.34l9.695-6.34H22zm18.9 9.8h1.35a2.653 2.653 0 0 0 2.65-2.65v-8.5a2.653 2.653 0 0 0-2.65-2.65h-16.5a2.653 2.653 0 0 0-2.65 2.65v8.5a2.653 2.653 0 0 0 2.65 2.65h7.28l7.87 5.628zm1.35-13a1.852 1.852 0 0 1 1.85 1.85v8.5a1.852 1.852 0 0 1-1.85 1.85H40.1v4.872L33.288 36.1H25.75a1.852 1.852 0 0 1-1.85-1.85v-8.5a1.852 1.852 0 0 1 1.85-1.85zm-3.25 4v-.8H29v.8zm-3 5v-.8h-7v.8z"},i=class extends t{constructor(){super(...arguments),this._translations=n({name:"solution-resource-card",blocking:!0}),this._configContextConsumer=h({context:o,subscribe:!0}),this.heading="",this.description="",this.sectionHeading=""}static{this.properties={_translations:[16,{},{state:!0}],icon:1,meridianIcon:1,heading:1,description:1,url:1,sectionHeading:1}}static{this.styles=d}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){return a`<calcite-card @click=${()=>this.url&&this._handleCardClick(this.url)} @keydown=${e=>m(e,()=>this.url&&this._handleCardClick(this.url))}>${this.meridianIcon&&v[this.meridianIcon]&&a`<div class="card-icon"><svg class="meridian-icon" xmlns=http://www.w3.org/2000/svg viewBox="0 0 48 48">${c`<path fill=currentColor d=${v[this.meridianIcon]??s} />`}</svg></div>`||""}${this.icon&&a`<div class="card-icon"><calcite-icon .icon=${this.icon} scale=l></calcite-icon></div>`||""}<h3 class="card-heading">${this.heading}</h3><p class="card-description">${this.description}</p></calcite-card>`}_handleCardClick(e){this._telemetry?.logEvent({category:z.RESOURCES,action:"Open",dimensions:[`${this.sectionHeading} - ${this.heading}`]}),window.open(e,"_blank","noopener,noreferrer")}};r("solution-resource-card",i);return i},b)
@@ -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 f from"./PMKGWCXK.js";import e from"./VYQEF3JJ.js";import"./5XHAT3I6.js";import"./UHIFNZFJ.js";import"./DC5KIXAN.js";import"./YMMGYOOO.js";import d from"./O7F5EUMA.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");
@@ -21,4 +21,4 @@ import g from"./HZ35KRFT.js";import f from"./VYQEF3JJ.js";import"./5XHAT3I6.js";
21
21
 
22
22
  .width-51 {
23
23
  width: 51px;
24
- }`,f=class extends _{constructor(){super(),this._translations=v({name:"field-selection",blocking:!0}),this._fieldSortOrder="default",this._selectedFields=[],this._fieldVisibilityPopoverClickHandler=e=>{this._fieldVisibilityPopoverNode?this._isInNode(e.target,"arcgis-field-pick-list")||(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0,document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler)):document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler)},this.listenOn(window,"columnReorder",this.handleColumnReorder,{capture:!0})}static{this.properties={configExtraFields:1,layer:[0,{},{attribute:!1}],mapView:[0,{},{attribute:!1}],table:[0,{},{attribute:!1}],tableRef:[0,{},{attribute:!1}],_translations:[16,{},{state:!0}]}}static{this.styles=C}render(){return b`<calcite-action alignment=center appearance=solid class="height-51 width-51" id=solutions-field-selection .text=${this._translations.fieldVisibility} scale=m @click=${()=>this._handleFieldVisibilityClick()} @mouseover=${()=>this._addTableTooltip(this._fieldVisibilityActionNode,this._translations.fieldVisibility)} @mouseout=${()=>this._removeTableTooltip()} @focus=${()=>this._addTableTooltip(this._fieldVisibilityActionNode,this._translations.fieldVisibility)} ${y(e=>this._fieldVisibilityActionNode=e)}><calcite-icon scale=s icon=gear></calcite-icon></calcite-action>`}handleColumnReorder(){this._fieldSortOrder="default",this._fieldVisibilityPopoverNode&&(this.removeFieldsPickList(),this._handleFieldVisibilityClick())}_handleFieldVisibilityClick(){if(this._fieldVisibilityPopoverNode)return;let e=this.table?.tableTemplate?.columnTemplates;if(this.layer&&this.mapView&&e&&this._fieldVisibilityActionNode){document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler);let t=this.table.fieldColumns.map(l=>({alias:l.field.alias,description:l.field.description,name:l.field.name,type:l.field.type}));if(this._hasAttachmentsEnabled(this.layer)){let l="Attachments";if(this._shouldShowField(l.toUpperCase(),!1)){if(!e.some(a=>a.fieldName.toUpperCase()===l.toUpperCase())){let a={fieldName:l,type:"attachment",visible:!0};e.push(a)}t.push({name:l,alias:"Photos and files",type:"none",description:l})}}if(this.table.relatedRecordsEnabled&&this.layer.relationships&&this.layer.relationships.length>0){let l=this.layer.parent;this.layer.relationships.forEach(a=>{let o,r=this._shouldShowField(a.name||"",!0);if(!e.some(n=>n.fieldName.toLowerCase()===a.name?.toLowerCase()?(o=a.name,!0):!1))if(a.name){o=a.name;let n={fieldName:o,type:"relationship",visible:!0};r=this._shouldShowField(o,!0),e.push(n)}else{let n=[...l?.layers||[],...l?.tables],d;if(n.some(c=>c.layerId===a.relatedTableId?(d=c,!0):!1),d){o=d.title,a.name=o;let c={fieldName:o,type:"relationship",visible:!0};r=this._shouldShowField(o,!0),e.push(c)}}o&&r&&t.push({name:o,alias:`Related ${o}`,type:"none",description:`related:${o}`})})}let i=this._fieldVisibilityPopoverNode?this._fieldVisibilityPopoverNode:document.createElement("arcgis-field-pick-list");i.layer=this.layer,i.fields=t,i.showFieldInfo=!0,i.showFieldName=!0,i.showDescription=!1,i.showSelectionAll=!0,i.hideCancel=!0,i.hideSort=!1,i.showFilterLength=5,i.multiple=!0,i.heading=this._translations.fieldVisibility,i.okBtnText=this._translations.doneWithFieldChanges,i.filterPlaceholderText=this._translations.filterFields,i.sortBy=this._fieldSortOrder??"default";let p=this.table?.visibleColumns.map(l=>l.fieldName.startsWith("EsriFeatureTableRelationshipColumn")||l.fieldName.startsWith("EsriFeatureTableAttachmentsColumn")?l.effectiveLabel:l.fieldName);i.selectedFields=e.reduce((l,a)=>((p?p.indexOf(a.fieldName)>-1:a.visible)&&l.push(a.fieldName),l),[]),this._selectedFields=i.selectedFields,i.style.minHeight="340px",i.popoverProps={refElement:this._fieldVisibilityActionNode,popoverWidth:300,placement:"bottom-end",offsetDistance:-20,triggerDisabled:!1,autoClose:!1},i.addEventListener("arcgisChange",l=>{l.stopPropagation();let a=l.detail.selectedFields,o=this._getDifference(a,this._selectedFields),r=this._getDifference(this._selectedFields,a);o.concat(r).forEach(d=>{let c=this.layer?.relationships?.map(m=>m.name)||[];if(d==="Attachments"){let m=this.table.columns.find(h=>"onShowAttachments"in h);m.hidden=r.indexOf(d)>-1}else c.indexOf(d)>-1?this.table.columns.filter(h=>"relationshipId"in h).forEach(h=>{r.indexOf(d)>-1,d==h.effectiveLabel&&(h.hidden=r.indexOf(d)>-1)}):this.table.toggleColumnVisibility(d)}),this._selectedFields=a,this._updateTable(this.table.tableTemplate)}),i.addEventListener("arcgisSortByChange",l=>{l.stopPropagation(),this._fieldSortOrder=l.detail,this._sortFields(l.detail)}),i.addEventListener("arcgisClose",()=>{this._closePopovers(),setTimeout(()=>this._fieldVisibilityActionNode.setFocus(),200)}),document.body.appendChild(i),this._fieldVisibilityPopoverNode=i,setTimeout(()=>document.addEventListener("click",this._fieldVisibilityPopoverClickHandler),200)}}_shouldShowField(e,t){return(this.configExtraFields||[]).some(s=>t?s.replace("related:","").toUpperCase()===e.toUpperCase():s.toUpperCase()===e.toUpperCase())}removeFieldsPickList(){this._fieldVisibilityPopoverNode&&(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0)}_sortFields(e){let t=this.table.tableTemplate.columnTemplates,s=this._getSortOrder(e),p=t.filter(a=>a.type!=="attachment"&&a.type!=="relationship").sort((a,o)=>{let r=s.indexOf(a.fieldName),n=s.indexOf(o.fieldName);return r===-1&&n!==-1?1:r!==-1&&n===-1?-1:r===-1&&n===-1?0:r-n}),l=t.filter(a=>a.type==="attachment"||a.type==="relationship");this.tableRef.setColumnOrder([...p,...l]),this._updateTable(this.table.tableTemplate)}_getSortOrder(e){let t=[...this.layer.fields];return e==="display"?t.sort((s,i)=>s.alias.localeCompare(i.alias)):e==="field"?t.sort((s,i)=>s.name.localeCompare(i.name)):e==="type"&&t.sort((s,i)=>s.type.localeCompare(i.type)),t.map(s=>s.name)}_getDifference(e,t){return e.filter(s=>!t.includes(s))}_updateTable(e){this.table.tableTemplate=e,this._isStandardView()&&this._syncAttributeTableTemplate()}async _syncAttributeTableTemplate(){let e=this.table.layer;if(e.attributeTableTemplate){let{_modules:t}=this,s=e.attributeTableTemplate.clone();t?.attributeTableTemplateUtils.syncAttributeTableTemplate(this.table,s),JSON.stringify(s)!==JSON.stringify(e.attributeTableTemplate)&&(e.attributeTableTemplate=s)}if(e.attributeTableTemplate?.orderByFields?.length>1){let t=e.attributeTableTemplate.clone(),s=this.table.activeSortOrders[0];t.orderByFields=[{field:s.fieldName,order:s.direction}],e.attributeTableTemplate=t,this._syncColumnDirectionsWithOrderByFields()}}_syncColumnDirectionsWithOrderByFields(){let e=this.table.activeSortOrders[0]?.fieldName;this.table.columns.forEach(t=>{"fieldName"in t&&t.fieldName!==e&&(t.direction=void 0)}),this.table.tableTemplate?.columnTemplates.forEach(t=>{"fieldName"in t&&t.fieldName!==e&&(t.direction=void 0)})}_isStandardView(){return!this.table.relatedTable&&!this.table.attachmentsViewOptions.objectId}_closePopovers(){document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler),this._fieldVisibilityPopoverNode&&(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0)}_addTableTooltip(e,t){let s=document.createElement("calcite-tooltip");s.className="table-tooltip",s.referenceElement=e,s.placement="trailing-start",s.open=!0;let i=document.createElement("div");i.className="tooltip",i.innerHTML=t,s.append(i),document.body.append(s)}_removeTableTooltip(){document.querySelectorAll(".table-tooltip").forEach(e=>e.parentNode?.removeChild(e))}_isInNode(e,t){for(;e;){if(e.nodeName===t.toUpperCase())return!0;e=e.parentElement}return!1}_hasAttachmentsEnabled(e){if(!e?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:s}}}=e;return t&&s}};T("field-selection",f);return f},a,c,d,e,f,g)
24
+ }`,f=class extends _{constructor(){super(),this._translations=v({name:"field-selection",blocking:!0}),this._fieldSortOrder="default",this._selectedFields=[],this._fieldVisibilityPopoverClickHandler=e=>{this._fieldVisibilityPopoverNode?this._isInNode(e.target,"arcgis-field-pick-list")||(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0,document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler)):document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler)},this.listenOn(window,"columnReorder",this.handleColumnReorder,{capture:!0})}static{this.properties={configExtraFields:1,layer:[0,{},{attribute:!1}],mapView:[0,{},{attribute:!1}],table:[0,{},{attribute:!1}],tableRef:[0,{},{attribute:!1}],_translations:[16,{},{state:!0}]}}static{this.styles=C}render(){return b`<calcite-action alignment=center appearance=solid class="height-51 width-51" id=solutions-field-selection .text=${this._translations.fieldVisibility} scale=m @click=${()=>this._handleFieldVisibilityClick()} @mouseover=${()=>this._addTableTooltip(this._fieldVisibilityActionNode,this._translations.fieldVisibility)} @mouseout=${()=>this._removeTableTooltip()} @focus=${()=>this._addTableTooltip(this._fieldVisibilityActionNode,this._translations.fieldVisibility)} ${y(e=>this._fieldVisibilityActionNode=e)}><calcite-icon scale=s icon=gear></calcite-icon></calcite-action>`}handleColumnReorder(){this._fieldSortOrder="default",this._fieldVisibilityPopoverNode&&(this.removeFieldsPickList(),this._handleFieldVisibilityClick())}_handleFieldVisibilityClick(){if(this._fieldVisibilityPopoverNode)return;let e=this.table?.tableTemplate?.columnTemplates;if(this.layer&&this.mapView&&e&&this._fieldVisibilityActionNode){document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler);let t=this.table.fieldColumns.map(l=>({alias:l.field.alias,description:l.field.description,name:l.field.name,type:l.field.type}));if(this._hasAttachmentsEnabled(this.layer)){let l="Attachments";if(this._shouldShowField(l.toUpperCase(),!1)){if(!e.some(a=>a.fieldName.toUpperCase()===l.toUpperCase())){let a={fieldName:l,type:"attachment",visible:!0};e.push(a)}t.push({name:l,alias:"Photos and files",type:"none",description:l})}}if(this.table.relatedRecordsEnabled&&this.layer.relationships&&this.layer.relationships.length>0){let l=this.layer.parent;this.layer.relationships.forEach(a=>{let o,r=this._shouldShowField(a.name||"",!0);if(!e.some(n=>n.fieldName.toLowerCase()===a.name?.toLowerCase()?(o=a.name,!0):!1))if(a.name){o=a.name;let n={fieldName:o,type:"relationship",visible:!0};r=this._shouldShowField(o,!0),e.push(n)}else{let n=[...l?.layers||[],...l?.tables],d;if(n.some(c=>c.layerId===a.relatedTableId?(d=c,!0):!1),d){o=d.title,a.name=o;let c={fieldName:o,type:"relationship",visible:!0};r=this._shouldShowField(o,!0),e.push(c)}}o&&r&&t.push({name:o,alias:`Related ${o}`,type:"none",description:`related:${o}`})})}let i=this._fieldVisibilityPopoverNode?this._fieldVisibilityPopoverNode:document.createElement("arcgis-field-pick-list");i.layer=this.layer,i.fields=t,i.showFieldInfo=!0,i.showFieldName=!0,i.showDescription=!1,i.showSelectionAll=!0,i.hideCancel=!0,i.hideSort=!1,i.showFilterLength=5,i.multiple=!0,i.heading=this._translations.fieldVisibility,i.okBtnText=this._translations.doneWithFieldChanges,i.filterPlaceholderText=this._translations.filterFields,i.sortBy=this._fieldSortOrder??"default";let p=this.table?.visibleColumns.map(l=>l.fieldName.startsWith("EsriFeatureTableRelationshipColumn")||l.fieldName.startsWith("EsriFeatureTableAttachmentsColumn")?l.effectiveLabel:l.fieldName);i.selectedFields=e.reduce((l,a)=>((p?p.indexOf(a.fieldName)>-1:a.visible)&&l.push(a.fieldName),l),[]),this._selectedFields=i.selectedFields,i.style.minHeight="340px",i.popoverProps={refElement:this._fieldVisibilityActionNode,popoverWidth:300,placement:"bottom-end",offsetDistance:-20,triggerDisabled:!1,autoClose:!1},i.addEventListener("arcgisChange",l=>{l.stopPropagation();let a=l.detail.selectedFields,o=this._getDifference(a,this._selectedFields),r=this._getDifference(this._selectedFields,a);o.concat(r).forEach(d=>{let c=this.layer?.relationships?.map(m=>m.name)||[];if(d==="Attachments"){let m=this.table.columns.find(h=>"onShowAttachments"in h);m.hidden=r.indexOf(d)>-1}else c.indexOf(d)>-1?this.table.columns.filter(h=>"relationshipId"in h).forEach(h=>{r.indexOf(d)>-1,d==h.effectiveLabel&&(h.hidden=r.indexOf(d)>-1)}):this.table.toggleColumnVisibility(d)}),this._selectedFields=a,this._updateTable(this.table.tableTemplate)}),i.addEventListener("arcgisSortByChange",l=>{l.stopPropagation(),this._fieldSortOrder=l.detail,this._sortFields(l.detail)}),i.addEventListener("arcgisClose",()=>{this._closePopovers(),setTimeout(()=>this._fieldVisibilityActionNode.setFocus(),200)}),document.body.appendChild(i),this._fieldVisibilityPopoverNode=i,setTimeout(()=>document.addEventListener("click",this._fieldVisibilityPopoverClickHandler),200)}}_shouldShowField(e,t){return(this.configExtraFields||[]).some(s=>t?s.replace("related:","").toUpperCase()===e.toUpperCase():s.toUpperCase()===e.toUpperCase())}removeFieldsPickList(){this._fieldVisibilityPopoverNode&&(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0)}_sortFields(e){let t=this.table.tableTemplate.columnTemplates,s=this._getSortOrder(e),p=t.filter(a=>a.type!=="attachment"&&a.type!=="relationship").sort((a,o)=>{let r=s.indexOf(a.fieldName),n=s.indexOf(o.fieldName);return r===-1&&n!==-1?1:r!==-1&&n===-1?-1:r===-1&&n===-1?0:r-n}),l=t.filter(a=>a.type==="attachment"||a.type==="relationship");this.tableRef.setColumnOrder([...p,...l]),this._updateTable(this.table.tableTemplate)}_getSortOrder(e){let t=[...this.layer.fields];return e==="display"?t.sort((s,i)=>s.alias.localeCompare(i.alias)):e==="field"?t.sort((s,i)=>s.name.localeCompare(i.name)):e==="type"&&t.sort((s,i)=>s.type.localeCompare(i.type)),t.map(s=>s.name)}_getDifference(e,t){return e.filter(s=>!t.includes(s))}_updateTable(e){this.table.tableTemplate=e,this._isStandardView()&&this._syncAttributeTableTemplate()}async _syncAttributeTableTemplate(){let e=this.table.layer;if(e.attributeTableTemplate){let{_modules:t}=this,s=e.attributeTableTemplate.clone();t?.attributeTableTemplateUtils.syncAttributeTableTemplate(this.table,s),JSON.stringify(s)!==JSON.stringify(e.attributeTableTemplate)&&(e.attributeTableTemplate=s)}if(e.attributeTableTemplate?.orderByFields?.length>1){let t=e.attributeTableTemplate.clone(),s=this.table.activeSortOrders[0];t.orderByFields=[{field:s.fieldName,order:s.direction}],e.attributeTableTemplate=t,this._syncColumnDirectionsWithOrderByFields()}}_syncColumnDirectionsWithOrderByFields(){let e=this.table.activeSortOrders[0]?.fieldName;this.table.columns.forEach(t=>{"fieldName"in t&&t.fieldName!==e&&(t.direction=void 0)}),this.table.tableTemplate?.columnTemplates.forEach(t=>{"fieldName"in t&&t.fieldName!==e&&(t.direction=void 0)})}_isStandardView(){return!this.table.relatedTable&&!this.table.attachmentsViewOptions.objectId}_closePopovers(){document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler),this._fieldVisibilityPopoverNode&&(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0)}_addTableTooltip(e,t){let s=document.createElement("calcite-tooltip");s.className="table-tooltip",s.referenceElement=e,s.placement="trailing-start",s.open=!0;let i=document.createElement("div");i.className="tooltip",i.innerHTML=t,s.append(i),document.body.append(s)}_removeTableTooltip(){document.querySelectorAll(".table-tooltip").forEach(e=>e.parentNode?.removeChild(e))}_isInNode(e,t){for(;e;){if(e.nodeName===t.toUpperCase())return!0;e=e.parentElement}return!1}_hasAttachmentsEnabled(e){if(!e?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:s}}}=e;return t&&s}};T("field-selection",f);return f},a,c,d,e,f)