@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,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import e from"./RFTLE3FH.js";import d from"./QFO7CLLL.js";import{b as w}from"./W4YXXJAS.js";import{b}from"./77CU4WA2.js";import"./T4PIUXJ7.js";import{a as g}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as m}from"./ABSRNM72.js";import{F as a,G as n,H as v,K as l,L as c,h as f,i as s,j as p}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([$,R,{n:y},{o:x}])=>{var L=f`/** @license
2
+ import d from"./O7F5EUMA.js";import{b as w}from"./W4YXXJAS.js";import{b}from"./77CU4WA2.js";import"./T4PIUXJ7.js";import{a as g}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as m}from"./ABSRNM72.js";import{F as a,G as n,H as v,K as l,L as c,h as f,i as s,j as p}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([$,R,{I:x,n:y}])=>{var L=f`/** @license
3
3
  * Copyright 2025 Esri
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the 'License');
@@ -215,4 +215,4 @@ calcite-action {
215
215
 
216
216
  :host([scale=l]) .solutions-social-share__dialog.solutions-social-share__layout--horizontal {
217
217
  width: var(--solutions-social-share-width-horizontal--l);
218
- }`,S=".calcite-mode-dark",C={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?url={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},I="https://arcg.is/prod/shorten",u=class extends v{constructor(){super(...arguments),this.actionApperance="transparent",this.autoUpdateShareUrl=!0,this.buttonAppearance="transparent",this.inlineSuccessPopoverPlacement="trailing",this.mode="popover",this.popoverButtonIconScale="m",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.scale="s",this.shareButtonKind="neutral",this.shareButtonScale="m",this.shareButtonText="",this.shareButtonType="button",this.shareIconsLayout="vertical",this.shareText="",this.shareUrl=window.location.href,this.shortenShareUrl=!0,this.socialMedia=!0,this.solutionId="",this.solutionTitle="",this.solutionVersion="",this.successMessage="",this._copied=!1,this._inlineCopyLinkOpened=!1,this._opened=!1,this._translations=g({name:"solution-social-share",blocking:!0}),this._configContextConsumer=b({context:w,subscribe:!0}),this._copyLinkPopoverRef=a(),this._dialogContentRef=a(),this._popoverActionRef=a(),this._popoverButtonRef=a(),this._popoverRef=a(),this._shareListRef=a()}static{this.properties={actionApperance:1,autoUpdateShareUrl:[5,{},{type:Boolean}],buttonAppearance:1,inlineSuccessPopoverPlacement:[3,{},{reflect:!0}],mode:[3,{},{reflect:!0}],popoverButtonIconScale:[3,{},{reflect:!0}],popoverPositioning:[3,{},{reflect:!0}],removePopoverOffset:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],shareButtonKind:[3,{},{reflect:!0}],shareButtonScale:[3,{},{reflect:!0}],shareButtonText:1,shareButtonType:[3,{},{reflect:!0}],shareIconsLayout:[3,{},{reflect:!0}],shareText:[3,{},{reflect:!0}],shareUrl:1,shortenShareUrl:[7,{},{reflect:!0,type:Boolean}],socialMedia:[7,{},{reflect:!0,type:Boolean}],solutionId:1,solutionTitle:1,solutionVersion:1,successMessage:[3,{},{reflect:!0}],_copied:[16,{},{state:!0}],_inlineCopyLinkOpened:[16,{},{state:!0}],_opened:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=L}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}loaded(){this._setupAutoCloseListeners(),this.mode==="popover"&&this._popoverRef.value&&(this._opened&&(this._popoverRef.value.open=!0),this.listenOn(this._popoverRef.value,"calcitePopoverOpen",()=>{if(!this._shareListRef.value)return;this._shareListRef.value.children[0].focus()}),this.listenOn(this._popoverRef.value,"keydown",this._handlePopoverRefKeyDown))}render(){let o=this._copied&&this.mode==="popover"?this._renderSuccess():s`<div class=solutions-social-share__dialog-content>${this._renderOptions()}</div>`,e=this.shareIconsLayout==="vertical"?" solutions-social-share__layout--vertical":" solutions-social-share__layout--horizontal",t=` calcite-mode-${this.el.closest(S)?"dark":"light"}`,i=s`<div class=${`solutions-social-share__dialog${e}${t}`} ${n(this._dialogContentRef)}>${o}</div>`,r=this.removePopoverOffset?0:6;return this.mode==="popover"?[s`<calcite-popover .label=${this._translations.share?.label??""} reference-element=shareButton placement=bottom-start .scale=${this.scale} overlay-positioning=${this.popoverPositioning??c} offset-distance=${r??c} pointer-disabled=${this.removePopoverOffset??c} ${n(this._popoverRef)}>${i}</calcite-popover>`,this._renderButton()]:[i,s`<calcite-popover .label=${this._translations.share?.label??""} reference-element=copyToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${n(this._copyLinkPopoverRef)}>${this._renderSuccess()}</calcite-popover>`]}_setupAutoCloseListeners(){this.listenOn(document.documentElement,"click",this._autoCloseCallback),this.mode==="popover"&&this._popoverRef.value?(this.listenOn(this._popoverRef.value,"click",this._stopPropagationCallback),this.listenOn(this._popoverRef.value,"calcitePopoverClose",this._resetPopoverCopyState)):this._dialogContentRef.value&&this.listenOn(this._dialogContentRef.value,"click",this._stopPropagationCallback)}_handlePopoverRefKeyDown(o){if(o.code==="Tab"){if(!this._shareListRef.value)return;let e=o.target,t=this._shareListRef.value.children[0],i=this._shareListRef.value.children[this._shareListRef.value.children.length-1];o.shiftKey&&e===t?(o.preventDefault(),i.focus()):!o.shiftKey&&e===i&&(o.preventDefault(),t.focus())}else o.code==="Escape"&&(this._closePopover(),this.shareButtonType==="button"?this._popoverButtonRef.value?.setFocus():this._popoverActionRef.value?.setFocus())}_autoCloseCallback(){this.mode==="popover"?(this._opened=!1,this._popoverRef.value.open=this._opened):(this._copyLinkPopoverRef.value&&(this._copyLinkPopoverRef.value.open=!1),this._inlineCopyLinkOpened=!1)}_stopPropagationCallback(o){o.stopPropagation()}_resetPopoverCopyState(){this.shareButtonType==="button"?this._popoverButtonRef.value?.setFocus():this._popoverActionRef.value?.setFocus(),setTimeout(()=>{this._copied=!1},200)}_renderButton(){let o=this.shareButtonScale!=null?this.shareButtonScale:this.scale;return this.shareButtonType==="button"?s`<calcite-button .appearance=${this.buttonAppearance} class=solutions-social-share__popover-button id=shareButton .kind=${this.shareButtonKind} .label=${this._translations.share?.label} @click=${this._togglePopover.bind(this)} .scale=${o} title=${this._translations.share?.label??c} ${n(this._popoverButtonRef)}>${this.shareButtonText}</calcite-button>`:s`<calcite-action alignment=center .appearance=${this.actionApperance} class=solutions-social-share__popover-button id=shareButton .label=${this._translations.share?.label} @click=${this._togglePopover.bind(this)} .scale=${o} text title=${this._translations.share?.label??c} ${n(this._popoverActionRef)}><div class=solutions-social-share__icon-container><calcite-icon icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div></calcite-action>`}_renderSuccess(){let o=this._translations.success;return s`<div class=solutions-social-share__success><span class=solutions-social-share__success-header><span class=solutions-social-share__success-icon><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${o?.label}</span><span class=solutions-social-share__success-message>${this.successMessage||o?.url}</span></div>`}_renderOptions(){let o=this._translations.options,e=document.dir==="rtl"?" solutions-social-share__option-text--rtl":"";return s`<ul class=solutions-social-share__options role=menu ${n(this._shareListRef)}><li id=copyToClipboard @click=${this._handleShareItem.bind(this,"link")} @keydown=${this._handleOptionKeyDown("link")} role=menuitem tabindex=0><span class=solutions-social-share__icon><calcite-icon icon=link .scale=${this.scale}></calcite-icon></span><span class=${`solutions-social-share__option-text${e}`}>${o?.link?.label}</span></li>${this.socialMedia?[s`<li @click=${this._handleShareItem.bind(this,"facebook")} @keydown=${this._handleOptionKeyDown("facebook")} role=menuitem tabindex=0><span class=solutions-social-share__icon>${this._renderFacebookIcon()}</span><span class=${`solutions-social-share__option-text${e}`}>${o?.facebook?.label}</span></li>`,s`<li @click=${this._handleShareItem.bind(this,"x")} @keydown=${this._handleOptionKeyDown("x")} role=menuitem tabindex=0><span class=solutions-social-share__icon>${this._renderXIcon()}</span><span class=${`solutions-social-share__option-text${e}`}>\r\n X</span></li>`,s`<li @click=${this._handleShareItem.bind(this,"linkedIn")} @keydown=${this._handleOptionKeyDown("linkedIn")} role=menuitem tabindex=0><span class=solutions-social-share__icon>${this._renderLinkedInIcon()}</span><span class=${`solutions-social-share__option-text${e}`}>${o?.linkedIn?.label}</span></li>`,s`<li @click=${this._handleShareItem.bind(this,"bluesky")} @keydown=${this._handleOptionKeyDown("bluesky")} role=menuitem tabindex=0><span class=solutions-social-share__icon>${this._renderBlueSkyIcon()}</span><span class=${`solutions-social-share__option-text${e}`}>${o?.blueSky?.label}</span></li>`]:null}</ul>`}_handleOptionKeyDown(o){return e=>{let t=e.code;(t==="Space"||t==="Enter")&&this._handleShareItem(o)}}_renderFacebookIcon(){return s`<svg height=100% style=${l({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${p`<g><path d="M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z" style=${l({fill:"#1877f2",fillRule:"nonzero"})} /><path d="M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z" style=${l({fill:"#fff",fillRule:"nonzero"})} /></g>`}</svg>`}_renderXIcon(){return s`<svg class="solutions-social-share__x-logo" viewBox="0 0 1200 1227" fill=none xmlns=http://www.w3.org/2000/svg>${p`<rect height=400 style=${l({fill:"none"})} width=400 x=56 y=56 /><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" fill=currentColor />`}</svg>`}_renderBlueSkyIcon(){return s`<svg fill=#0f85fe xmlns=http://www.w3.org/2000/svg viewBox="0 0 512 512">${p`<path d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z" />`}</svg>`}_renderLinkedInIcon(){return s`<svg height=100% style=${l({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${p`<g id=g5891><path d="M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z" id=background style=${l({fill:"#2867b2"})} /><g id=shapes><rect height=257.962 id=rect11 style=${l({fill:"#fff"})} width=85.76 x=61.053 y=178.667 /><path d="M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z" id=path13-0 style=${l({fill:"#fff",fillRule:"nonzero"})} /><path d="M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z" id=path15 style=${l({fill:"#fff",fillRule:"nonzero"})} /></g></g>`}</svg>`}_togglePopover(o){o.stopPropagation(),this._opened=!this._opened,this._popoverRef.value.open=this._opened}_closePopover(){this._opened=!1,this._popoverRef.value.open=this._opened}async _handleShareItem(o){this._telemetry?.logEvent({category:y.SOLUTION_DETAILS,action:"Share",dimensions:[this.solutionTitle,this.solutionId,this.solutionVersion,x(o)]}),this.shareUrl=await this._generateShareUrl();let e=null,t=navigator?.userAgent?.includes("Chrome")??!1,i=(navigator?.userAgent?.includes("Safari")??!1)&&!t;!i&&this.shortenShareUrl&&(e=await this._shortenUrl(this.shareUrl));let h=e||this.shareUrl;switch(o){case"link":navigator.clipboard.writeText(h),this.mode==="inline"&&(this._copyLinkPopoverRef.value.open=!0,setTimeout(()=>this._copyLinkPopoverRef.value.open=!1,3e3)),this._inlineCopyLinkOpened=!0,this._copied=!0,this.mode==="popover"&&setTimeout(()=>this._closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let r;i&&(r=window.open("","_blank"),this.shortenShareUrl&&(h=await this._shortenUrl(this.shareUrl)||h));let d={url:encodeURI(h)},k=o==="x"?{...d,text:this.shareText}:d,_=$.substitute(C[o],k);this.mode==="popover"&&this._closePopover(),i&&r?(r.location=_,r.focus()):window.open(encodeURI(_),"_blank")}return}}async _shortenUrl(o){let t=(await R(I,{query:{longUrl:o,f:"json"}}))?.data?.data?.url;if(t)return t.replace("http://","https://")}_generateShareUrl(){return this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),this.shareUrl}};m("solution-social-share",u);return u},"intl","request",d,e)
218
+ }`,S=".calcite-mode-dark",C={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?url={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},I="https://arcg.is/prod/shorten",u=class extends v{constructor(){super(...arguments),this.actionApperance="transparent",this.autoUpdateShareUrl=!0,this.buttonAppearance="transparent",this.inlineSuccessPopoverPlacement="trailing",this.mode="popover",this.popoverButtonIconScale="m",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.scale="s",this.shareButtonKind="neutral",this.shareButtonScale="m",this.shareButtonText="",this.shareButtonType="button",this.shareIconsLayout="vertical",this.shareText="",this.shareUrl=window.location.href,this.shortenShareUrl=!0,this.socialMedia=!0,this.solutionId="",this.solutionTitle="",this.solutionVersion="",this.successMessage="",this._copied=!1,this._inlineCopyLinkOpened=!1,this._opened=!1,this._translations=g({name:"solution-social-share",blocking:!0}),this._configContextConsumer=b({context:w,subscribe:!0}),this._copyLinkPopoverRef=a(),this._dialogContentRef=a(),this._popoverActionRef=a(),this._popoverButtonRef=a(),this._popoverRef=a(),this._shareListRef=a()}static{this.properties={actionApperance:1,autoUpdateShareUrl:[5,{},{type:Boolean}],buttonAppearance:1,inlineSuccessPopoverPlacement:[3,{},{reflect:!0}],mode:[3,{},{reflect:!0}],popoverButtonIconScale:[3,{},{reflect:!0}],popoverPositioning:[3,{},{reflect:!0}],removePopoverOffset:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],shareButtonKind:[3,{},{reflect:!0}],shareButtonScale:[3,{},{reflect:!0}],shareButtonText:1,shareButtonType:[3,{},{reflect:!0}],shareIconsLayout:[3,{},{reflect:!0}],shareText:[3,{},{reflect:!0}],shareUrl:1,shortenShareUrl:[7,{},{reflect:!0,type:Boolean}],socialMedia:[7,{},{reflect:!0,type:Boolean}],solutionId:1,solutionTitle:1,solutionVersion:1,successMessage:[3,{},{reflect:!0}],_copied:[16,{},{state:!0}],_inlineCopyLinkOpened:[16,{},{state:!0}],_opened:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=L}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}loaded(){this._setupAutoCloseListeners(),this.mode==="popover"&&this._popoverRef.value&&(this._opened&&(this._popoverRef.value.open=!0),this.listenOn(this._popoverRef.value,"calcitePopoverOpen",()=>{if(!this._shareListRef.value)return;this._shareListRef.value.children[0].focus()}),this.listenOn(this._popoverRef.value,"keydown",this._handlePopoverRefKeyDown))}render(){let e=this._copied&&this.mode==="popover"?this._renderSuccess():s`<div class=solutions-social-share__dialog-content>${this._renderOptions()}</div>`,o=this.shareIconsLayout==="vertical"?" solutions-social-share__layout--vertical":" solutions-social-share__layout--horizontal",t=` calcite-mode-${this.el.closest(S)?"dark":"light"}`,i=s`<div class=${`solutions-social-share__dialog${o}${t}`} ${n(this._dialogContentRef)}>${e}</div>`,r=this.removePopoverOffset?0:6;return this.mode==="popover"?[s`<calcite-popover .label=${this._translations.share?.label??""} reference-element=shareButton placement=bottom-start .scale=${this.scale} overlay-positioning=${this.popoverPositioning??c} offset-distance=${r??c} pointer-disabled=${this.removePopoverOffset??c} ${n(this._popoverRef)}>${i}</calcite-popover>`,this._renderButton()]:[i,s`<calcite-popover .label=${this._translations.share?.label??""} reference-element=copyToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${n(this._copyLinkPopoverRef)}>${this._renderSuccess()}</calcite-popover>`]}_setupAutoCloseListeners(){this.listenOn(document.documentElement,"click",this._autoCloseCallback),this.mode==="popover"&&this._popoverRef.value?(this.listenOn(this._popoverRef.value,"click",this._stopPropagationCallback),this.listenOn(this._popoverRef.value,"calcitePopoverClose",this._resetPopoverCopyState)):this._dialogContentRef.value&&this.listenOn(this._dialogContentRef.value,"click",this._stopPropagationCallback)}_handlePopoverRefKeyDown(e){if(e.code==="Tab"){if(!this._shareListRef.value)return;let o=e.target,t=this._shareListRef.value.children[0],i=this._shareListRef.value.children[this._shareListRef.value.children.length-1];e.shiftKey&&o===t?(e.preventDefault(),i.focus()):!e.shiftKey&&o===i&&(e.preventDefault(),t.focus())}else e.code==="Escape"&&(this._closePopover(),this.shareButtonType==="button"?this._popoverButtonRef.value?.setFocus():this._popoverActionRef.value?.setFocus())}_autoCloseCallback(){this.mode==="popover"?(this._opened=!1,this._popoverRef.value.open=this._opened):(this._copyLinkPopoverRef.value&&(this._copyLinkPopoverRef.value.open=!1),this._inlineCopyLinkOpened=!1)}_stopPropagationCallback(e){e.stopPropagation()}_resetPopoverCopyState(){this.shareButtonType==="button"?this._popoverButtonRef.value?.setFocus():this._popoverActionRef.value?.setFocus(),setTimeout(()=>{this._copied=!1},200)}_renderButton(){let e=this.shareButtonScale!=null?this.shareButtonScale:this.scale;return this.shareButtonType==="button"?s`<calcite-button .appearance=${this.buttonAppearance} class=solutions-social-share__popover-button id=shareButton .kind=${this.shareButtonKind} .label=${this._translations.share?.label} @click=${this._togglePopover.bind(this)} .scale=${e} title=${this._translations.share?.label??c} ${n(this._popoverButtonRef)}>${this.shareButtonText}</calcite-button>`:s`<calcite-action alignment=center .appearance=${this.actionApperance} class=solutions-social-share__popover-button id=shareButton .label=${this._translations.share?.label} @click=${this._togglePopover.bind(this)} .scale=${e} text title=${this._translations.share?.label??c} ${n(this._popoverActionRef)}><div class=solutions-social-share__icon-container><calcite-icon icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div></calcite-action>`}_renderSuccess(){let e=this._translations.success;return s`<div class=solutions-social-share__success><span class=solutions-social-share__success-header><span class=solutions-social-share__success-icon><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=solutions-social-share__success-message>${this.successMessage||e?.url}</span></div>`}_renderOptions(){let e=this._translations.options,o=document.dir==="rtl"?" solutions-social-share__option-text--rtl":"";return s`<ul class=solutions-social-share__options role=menu ${n(this._shareListRef)}><li id=copyToClipboard @click=${this._handleShareItem.bind(this,"link")} @keydown=${this._handleOptionKeyDown("link")} role=menuitem tabindex=0><span class=solutions-social-share__icon><calcite-icon icon=link .scale=${this.scale}></calcite-icon></span><span class=${`solutions-social-share__option-text${o}`}>${e?.link?.label}</span></li>${this.socialMedia?[s`<li @click=${this._handleShareItem.bind(this,"facebook")} @keydown=${this._handleOptionKeyDown("facebook")} role=menuitem tabindex=0><span class=solutions-social-share__icon>${this._renderFacebookIcon()}</span><span class=${`solutions-social-share__option-text${o}`}>${e?.facebook?.label}</span></li>`,s`<li @click=${this._handleShareItem.bind(this,"x")} @keydown=${this._handleOptionKeyDown("x")} role=menuitem tabindex=0><span class=solutions-social-share__icon>${this._renderXIcon()}</span><span class=${`solutions-social-share__option-text${o}`}>\r\n X</span></li>`,s`<li @click=${this._handleShareItem.bind(this,"linkedIn")} @keydown=${this._handleOptionKeyDown("linkedIn")} role=menuitem tabindex=0><span class=solutions-social-share__icon>${this._renderLinkedInIcon()}</span><span class=${`solutions-social-share__option-text${o}`}>${e?.linkedIn?.label}</span></li>`,s`<li @click=${this._handleShareItem.bind(this,"bluesky")} @keydown=${this._handleOptionKeyDown("bluesky")} role=menuitem tabindex=0><span class=solutions-social-share__icon>${this._renderBlueSkyIcon()}</span><span class=${`solutions-social-share__option-text${o}`}>${e?.blueSky?.label}</span></li>`]:null}</ul>`}_handleOptionKeyDown(e){return o=>{let t=o.code;(t==="Space"||t==="Enter"||t==="NumpadEnter")&&this._handleShareItem(e)}}_renderFacebookIcon(){return s`<svg height=100% style=${l({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${p`<g><path d="M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z" style=${l({fill:"#1877f2",fillRule:"nonzero"})} /><path d="M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z" style=${l({fill:"#fff",fillRule:"nonzero"})} /></g>`}</svg>`}_renderXIcon(){return s`<svg class="solutions-social-share__x-logo" viewBox="0 0 1200 1227" fill=none xmlns=http://www.w3.org/2000/svg>${p`<rect height=400 style=${l({fill:"none"})} width=400 x=56 y=56 /><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" fill=currentColor />`}</svg>`}_renderBlueSkyIcon(){return s`<svg fill=#0f85fe xmlns=http://www.w3.org/2000/svg viewBox="0 0 512 512">${p`<path d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z" />`}</svg>`}_renderLinkedInIcon(){return s`<svg height=100% style=${l({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${p`<g id=g5891><path d="M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z" id=background style=${l({fill:"#2867b2"})} /><g id=shapes><rect height=257.962 id=rect11 style=${l({fill:"#fff"})} width=85.76 x=61.053 y=178.667 /><path d="M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z" id=path13-0 style=${l({fill:"#fff",fillRule:"nonzero"})} /><path d="M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z" id=path15 style=${l({fill:"#fff",fillRule:"nonzero"})} /></g></g>`}</svg>`}_togglePopover(e){e.stopPropagation(),this._opened=!this._opened,this._popoverRef.value.open=this._opened}_closePopover(){this._opened=!1,this._popoverRef.value.open=this._opened}async _handleShareItem(e){this._telemetry?.logEvent({category:x.SOLUTION_DETAILS,action:"Share",dimensions:[this.solutionTitle,this.solutionId,this.solutionVersion,y(e)]}),this.shareUrl=await this._generateShareUrl();let o=null,t=navigator?.userAgent?.includes("Chrome")??!1,i=(navigator?.userAgent?.includes("Safari")??!1)&&!t;!i&&this.shortenShareUrl&&(o=await this._shortenUrl(this.shareUrl));let h=o||this.shareUrl;switch(e){case"link":navigator.clipboard.writeText(h),this.mode==="inline"&&(this._copyLinkPopoverRef.value.open=!0,setTimeout(()=>this._copyLinkPopoverRef.value.open=!1,3e3)),this._inlineCopyLinkOpened=!0,this._copied=!0,this.mode==="popover"&&setTimeout(()=>this._closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let r;i&&(r=window.open("","_blank"),this.shortenShareUrl&&(h=await this._shortenUrl(this.shareUrl)||h));let d={url:encodeURI(h)},k=e==="x"?{...d,text:this.shareText}:d,_=$.substitute(C[e],k);this.mode==="popover"&&this._closePopover(),i&&r?(r.location=_,r.focus()):window.open(encodeURI(_),"_blank")}return}}async _shortenUrl(e){let t=(await R(I,{query:{longUrl:e,f:"json"}}))?.data?.data?.url;if(t)return t.replace("http://","https://")}_generateShareUrl(){return this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),this.shareUrl}};m("solution-social-share",u);return u},"intl","request",d)
@@ -0,0 +1,42 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import{a as p}from"./I5GF7UR6.js";import a from"./O7F5EUMA.js";import{a as A,b as C}from"./W4YXXJAS.js";import{b as F}from"./77CU4WA2.js";import{a as b}from"./6S75SIVV.js";import{b as S}from"./ABSRNM72.js";import{H as y,J as N,h as _,i as c,r as E}from"./5CQPQ7AE.js";export default $arcgis.t(([{B:I,I:O,r:u}])=>{var T=_`/** @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
+ .width-full {
19
+ width: 100%
20
+ }
21
+
22
+ calcite-panel {
23
+ --calcite-panel-background-color: var(--calcite-color-foreground-1);
24
+ --calcite-panel-footer-space: var(--calcite-spacing-sm);
25
+ }
26
+
27
+ .border-color {
28
+ --calcite-block-border-color: transparent;
29
+ }
30
+
31
+ calcite-block {
32
+ margin: 0;
33
+ --calcite-block-content-space: 0;
34
+ }
35
+
36
+ .tree-padding {
37
+ padding: 0 0.2rem;
38
+ }
39
+
40
+ .display-none {
41
+ display: none;
42
+ }`,R={PUBLICSAFETY:["EMERGENCYMANAGEMENT","FIRESERVICE","LAWENFORCEMENT"],STATEANDLOCALGOVERNMENT:["AGRICULTURE","AIRPORT","ASSESSMENTANDTAXATION","ELECTIONS","EMERGENCYMANAGEMENT","FIRESERVICE","FISHANDWILDLIFE","HEALTHANDHUMANSERVICES","LAWENFORCEMENT","NATURALRESOURCES","PARKS","PLANNINGANDDEVELOPMENT","PUBLICWORKS","TRANSPORTATION"],UTILITIES:["DISTRICTENERGY","ELECTRIC","GAS","SEWER","STORMWATER","WATER"]},$=Object.keys(I).reduce((m,t)=>{let s=t;return m[s]=R[s]??[],m},{}),f=class extends y{constructor(){super(),this.hideIndustryFilter=!1,this.isAIDialogOpen=!1,this.showReset=!1,this._activeFilterSettings={categories:[]},this._isMobile=!1,this._translations=b({name:"solutions-filter-panel",blocking:!0}),this._userFirstName="",this._configContextConsumer=F({context:C,subscribe:!0,callback:t=>{t?.userSession&&!this._userFirstName&&this._loadUserFirstName()}}),this._isMobileContextConsumer=F({context:A,subscribe:!0,callback:t=>this._isMobile=t}),this.applyFilter=E(),this.toggleFilter=E(),this._handleFilterRemoved=t=>{let s=t.detail;Array.isArray(s)&&(this._activeFilterSettings={...this._activeFilterSettings,categories:[...s]})},this._industryMatchName=t=>{let s=Object.keys(this._translations.industries).find(h=>h.toUpperCase()===t.replaceAll(" ","").toUpperCase());return s&&s in this._translations.industries?this._translations.industries[s]:t},this.listenOn(window,"filterRemoved",this._handleFilterRemoved),this.listenOn(window,"closeAssistant",()=>{this.isAIDialogOpen=!1}),this.listenOn(window,"openAssistant",()=>{this.isAIDialogOpen=!0})}static{this.properties={hideIndustryFilter:[5,{},{type:Boolean}],isAIDialogOpen:[5,{},{type:Boolean}],showReset:[5,{},{type:Boolean}],_activeFilterSettings:[16,{},{state:!0}],_isMobile:[16,{},{state:!0}],_translations:[16,{},{state:!0}],_userFirstName:[16,{},{state:!0}]}}static{this.styles=T}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}changeIndustryFilter(t,s,h,d){if(t!==""||s!==""){let o=[];if(s!==""){let e=I[t];o=[{displayValue:this._industryMatchName(e),type:"industry",value:t,industry:t,domain:""},{displayValue:h,type:"domain",value:s,industry:t,domain:s}]}else o=[{displayValue:h,type:s!==""?"domain":"industry",value:s!==""?s:t,industry:t,domain:s}];this._activeFilterSettings={...this._activeFilterSettings,categories:[...o]},d&&this.applyFilter.emit(o)}else{let o={displayValue:h,type:"industry",value:t,industry:t,domain:s};this._activeFilterSettings={...this._activeFilterSettings,categories:[o]},d&&this.applyFilter.emit(o)}}clearFilters(){this.changeIndustryFilter("","",""),this.applyFilter.emit(null)}async load(){await this._loadUserFirstName(),this._isMobileContextConsumer.value&&(this._isMobile=this._isMobileContextConsumer.value)}render(){return c`<calcite-panel description heading>${this.showReset&&c`<calcite-action appearance=solid icon=reset @click=${()=>{this.clearFilters()}} slot=header-actions-end .text=${this._translations.resetFilters} text-enabled></calcite-action>`||""}<calcite-block-group .label=${this._translations.filters} scale=l>${!this.hideIndustryFilter&&this.renderIndustryBlock()||""}</calcite-block-group><calcite-button id=solutions-assistant-button icon-start=speech-bubbles label="Solutions Assistant" @click=${()=>{this._telemetry?.logEvent({category:O.ASSISTANT,action:"Open"}),this.isAIDialogOpen=!0}} round scale=l slot=footer-start></calcite-button><calcite-tooltip reference-element=solutions-assistant-button placement=right slot=footer-start offset-distance=10 open><span>${this._translations.assistant.welcomeTip}</span></calcite-tooltip><arcgis-solutions-assistant .open=${this.isAIDialogOpen} .userFirstName=${this._userFirstName}></arcgis-solutions-assistant></calcite-panel>`}renderIndustryBlock(){let t=(e,n)=>!this._activeFilterSettings||!this._activeFilterSettings.categories?!1:this._activeFilterSettings.categories.some(i=>i.industry===e&&(i.domain??"")===n),s=e=>!this._activeFilterSettings||!this._activeFilterSettings.categories?!1:this._activeFilterSettings.categories.some(n=>n.industry===e&&(n.domain??"")===""),h=(e,n)=>n.length>0&&(s(e)||this._activeFilterSettings.categories?.some(i=>i.industry===e&&!!i.domain&&n.includes(i.domain))===!0),d=(e,n)=>n.map(i=>{let r=Object.keys(this._translations.industriesDomain).find(a=>a.toUpperCase()===i.toUpperCase()),l=r&&r in this._translations.industriesDomain?this._translations.industriesDomain[r]:i;return t(e,i)?p(i,c`<calcite-tree-item .label=${l} @click=${a=>{a.detail!==0&&this.changeIndustryFilter(e,i,l,!0)}} @keydown=${a=>u(a,()=>this.changeIndustryFilter(e,i,l,!0))} selected>${l}</calcite-tree-item>`):p(i,c`<calcite-tree-item .label=${l} @click=${a=>{a.detail!==0&&this.changeIndustryFilter(e,i,l,!0)}} @keydown=${a=>u(a,()=>this.changeIndustryFilter(e,i,l,!0))}>${l}</calcite-tree-item>`)}),o=Object.entries($).map(([e,n])=>{let i=this._industryMatchName(e),r=n,l=s(e),g=h(e,r);return l?p(e,c`<calcite-tree-item .label=${i} @click=${a=>{a.detail!==0&&this.changeIndustryFilter(e,"",i,!0)}} @keydown=${a=>u(a,()=>this.changeIndustryFilter(e,"",i,!0))} selected .expanded=${g?!0:void 0}>${i}${r.length>0&&c`<calcite-tree slot=children selection-mode=multiple>${d(e,r)}</calcite-tree>`||""}</calcite-tree-item>`):p(e,c`<calcite-tree-item .label=${i} @click=${a=>{a.detail!==0&&this.changeIndustryFilter(e,"",i,!0)}} @keydown=${a=>u(a,()=>this.changeIndustryFilter(e,"",i,!0))} .expanded=${g?!0:void 0}>${i}${r.length>0&&c`<calcite-tree slot=children selection-mode=multiple>${d(e,r)}</calcite-tree>`||""}</calcite-tree-item>`)});return c`<calcite-block description expanded class="border-color" .heading=${this._translations.industriesHeader} .label=${this._translations.industriesHeader}><calcite-action class=${N(this._isMobile?"":"display-none")} icon=x @click=${this._toggleFilter} slot=content-end text></calcite-action><calcite-tree selection-mode=single-persist class="tree-padding">${o}</calcite-tree></calcite-block>`}_toggleFilter(){this.toggleFilter.emit()}async _loadUserFirstName(){try{let t=await this._configContextConsumer.value?.userSession?.getUser();if(t?.fullName){let s=t.fullName.split(" ")[0];this._userFirstName=s}}catch{}}};S("solutions-filter-panel",f);return f},a)
@@ -0,0 +1,107 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import e from"./HUJXES5O.js";import d from"./2NKBQR2S.js";import b from"./O7F5EUMA.js";import{b as v}from"./W4YXXJAS.js";import{b as w}from"./77CU4WA2.js";import"./T4PIUXJ7.js";import{a as C}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as S}from"./ABSRNM72.js";import{H as y,h as _,i as a,j as f,r as c}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{B:x,C:E,F:I,G:h,I:u,o:T},{c:L},{a:g,b:b}])=>{var D=_`/** @license
3
+ * Copyright 2025 Esri
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ calcite-panel {
19
+ width: 100%;
20
+ height: 100%;
21
+ --calcite-panel-background-color: var(--calcite-color-foreground-2);
22
+ }
23
+
24
+ .card-group {
25
+ overflow: hidden;
26
+ padding: 0.2rem var(--calcite-spacing-md) var(--calcite-spacing-md);
27
+ }
28
+
29
+ solution-details-card {
30
+ width: calc(25% - 0.6rem);
31
+ }
32
+
33
+ @media (max-width: 1234px) {
34
+ solution-details-card {
35
+ width: calc(33.333% - 0.6rem);
36
+ }
37
+ }
38
+
39
+ @media (max-width: 1010px) {
40
+ solution-details-card {
41
+ width: calc(50% - 0.6rem);
42
+ }
43
+ }
44
+
45
+ /* We go back to 3 cards below 800 because the filter tree on the left disappears */
46
+ /* See the solutions-all-shell.css for the filter disappearing selector */
47
+ @media (max-width: 800px) {
48
+ solution-details-card {
49
+ width: calc(33.33% - 0.6rem);
50
+ }
51
+ }
52
+
53
+ @media (max-width: 680px) {
54
+ solution-details-card {
55
+ width: calc(50% - 0.6rem);
56
+ }
57
+ }
58
+
59
+ @media (max-width: 440px) {
60
+ solution-details-card {
61
+ width: calc(100% - 0.75rem);
62
+ }
63
+ }
64
+
65
+ .text-center {
66
+ text-align: center;
67
+ }
68
+
69
+ .leader-1 {
70
+ margin-top: var(--calcite-spacing-xxl);
71
+ }
72
+
73
+ .trailer-1 {
74
+ margin-bottom: var(--calcite-spacing-xxl);
75
+ }
76
+
77
+ .warning-text {
78
+ max-width: 35em;
79
+ margin-left: auto;
80
+ margin-right: auto;
81
+ font-size: var(--calcite-font-size-md);
82
+ }
83
+
84
+ .no-solutions {
85
+ display: flex;
86
+ flex-direction: column;
87
+ justify-content: center;
88
+ align-items: center;
89
+ width: 100%;
90
+ min-height: calc(100vh - 190px);
91
+ }
92
+
93
+ .margin-top-half {
94
+ margin-top: 0.5rem;
95
+ }
96
+
97
+ .margin-top-1 {
98
+ margin-top: 1rem;
99
+ }
100
+
101
+ .no-solutions-prompt {
102
+ display: flex;
103
+ flex-direction: column;
104
+ justify-content: center;
105
+ align-items: center;
106
+ width: 100%;
107
+ }`,A=5,m=class extends y{constructor(){super(),this.sortType="relevance",this._cards=[],this._isLoading=!0,this._modifiedCheckTry=0,this._translations=C({name:"solutions-all-panel",blocking:!0}),this._agoTerms=`${h}`,this._allCards=[],this._baseAgoTerms=h,this._categories=[],this._configContextConsumer=w({context:v,subscribe:!0,callback:async e=>{e&&(this._isDisconnectedEnvironment?this._isLoading=!1:await this._loadUpdateProcedures())}}),this._delay=!1,this._getSuggested=!1,this._relatedSolutions=new Set,this._sortField="relevance",this._sortOrder="desc",this.cardsFetched=c(),this.allCardsFetched=c(),this.searchTermSet=c(),this.sortTypeSet=c(),this.detailsCardSelected=c(),this._handleOpenAssistant=()=>{this._telemetry?.logEvent({category:u.ASSISTANT,action:"Open"}),window.dispatchEvent(new CustomEvent("openAssistant"))},this.listenOn(window,"deployProgressEnd",()=>{this._modifiedCheckTry=A,this._loadUpdateProcedures()}),this.listenOn(window,"solutionDeleted",()=>{this._modifiedCheckTry=A,this._loadUpdateProcedures()}),this.listenOn(window,"sortTypeChanged",e=>{e.detail&&e.detail.scope==="all-solutions"&&(this.sortType=e.detail.sortType,this._telemetry?.logEvent({category:u.ALL_SOLUTIONS,action:"Sort",dimensions:[T(e.detail.sortType)]}),this.sortType==="suggested"&&this._deployedSolutions?.cards.length===0?this._getDeployedSolutions().then(()=>{this.searchSolutions(e.detail)}):this.searchSolutions(e.detail))}),this.listenOn(window,"solutionIDFromAssistant",e=>{this._lookupSolutionById(e.detail)})}static{this.properties={sortType:1,_cards:[16,{},{state:!0}],_isLoading:[16,{},{state:!0}],_modifiedCheckTry:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=D}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextConsumer.value?.isEnterprise===!0&&this._configContextConsumer.value?.authentication?.CanSearchArcGISOnline===!1}async searchSolutions(e){this._isDisconnectedEnvironment||(e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):Array.isArray(e)&&this._filterCards(e):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),this._cards=await this._getSolutions())}async setSearchOptions(e){e&&("searchTerm"in e&&(this._textSearch(e.searchTerm),this.searchTermSet.emit({searchTerm:e.searchTerm,scope:"all-solutions"})),"sortType"in e&&(this._sortCards(e),this.sortTypeSet.emit({sortType:e.sortType,scope:"all-solutions"})))}render(){let e=this._configContextConsumer.value?.authentication?.IsSignedIn&&this._configContextConsumer.value?.authentication?.CanUseAI;return this._isDisconnectedEnvironment?a`<div class="no-solutions">${this._getMeridianSearch()}<div class="no-solutions-prompt"><div class="text-center leader-1 warning-text trailer-1"><div>${this._translations.disconnectedEnvironment}</div></div></div></div>`:this._isLoading||this._cards.length?a`<calcite-panel>${this._isLoading?a`<calcite-loader id=solutions-all-panel-loader .label=${this._translations.fetchingSolutions}></calcite-loader>`:a`<calcite-card-group class="card-group" .label=${this._translations.allSolutionCards}>${this._renderCards()}</calcite-card-group>`}</calcite-panel>`:a`<div class="no-solutions">${this._getMeridianSearch()}<div class="no-solutions-prompt"><div class="text-center leader-1 warning-text trailer-1"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${e?this._translations.assistantHelp:this._translations.changeSearchTerm}</div></div>${e&&a`<calcite-button appearance=outline icon-start=speech-bubbles @click=${this._handleOpenAssistant} scale=l>${this._translations.askAssistant}</calcite-button>`||""}</div></div>`}_renderCards(){return this._cards.map(e=>a`<solution-details-card .card=${e}></solution-details-card>`)}async _getSolutions(){if(this._isDisconnectedEnvironment)return this._isLoading=!1,[];if(this._configContextConsumer.value){this._isLoading=!0,this._abortController?this._abortController.abort():this._abortController=new AbortController;let e=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested,num:100},this._configContextConsumer.value?.primarySolutionsGroupId,this._configContextConsumer.value?.agoBasedEnterpriseSolutionsGroupId,this._configContextConsumer.value?.userSession,this._configContextConsumer.value?.isEnterprise,this._abortController.signal,{num:1e3});this._abortController=void 0;let t=e?.cards.length?e.cards:[];if(this.sortType==="new"||this.sortType==="updated"){let s="/Categories/New Release";this.sortType==="updated"&&(s="/Categories/Updated"),t.sort((l,d)=>l.categories.includes(s)&&!d.categories.includes(s)?-1:!l.categories.includes(s)&&d.categories.includes(s)?1:l.categories.includes(s)&&d.categories.includes(s)?l.categories.length-d.categories.length:0)}else if(this.sortType==="suggested"&&this._relatedSolutions.size>0&&this._deployedSolutions?.cards?.length){let s=new Map;for(let o of t){let r=s.get(o.deployCommonId),n=Number(o.deployVersion);(!r||n>r)&&s.set(o.deployCommonId,n)}let l=this._deployedSolutions.cards.filter(o=>{let r=s.get(o.deployCommonId);return r!==void 0&&Number(o.deployVersion)>=r}),d=new Set(l.map(o=>o.deployCommonId));this._relatedSolutions=new Set([...this._relatedSolutions].filter(o=>!d.has(o))),t.sort((o,r)=>{let n=this._relatedSolutions.has(o.deployCommonId),p=this._relatedSolutions.has(r.deployCommonId);return n&&!p?-1:!n&&p?1:0})}let i=t.map(s=>{let l=s.categories.indexOf("/Categories/New Release")>-1,d=s.categories.indexOf("/Categories/Updated")>-1,o=!1,r=!0;this._deployedSolutions&&(o=this._isSolutionDeployed(s.deployCommonId),r=this._isLatestVersion(s));let n=[];return l?n.push("new"):d&&n.push("updated"),o&&r&&n.push("deployed"),s.chips=n.length>0?n:void 0,s.supportReuse=o?!!(o&&!r):!0,s});return this._allCards.length===0&&e?.cards&&(this._allCards=e?.cards,this._deployedSolutions&&(this._relatedSolutions=L(this._deployedSolutions.cards,this._allCards))),this.cardsFetched.emit(i.length),this._isLoading=!1,i}else return this._isLoading=!1,[]}async _loadUpdateProcedures(){if(this._isDisconnectedEnvironment){this._isLoading=!1;return}this._isLoading=!0;let e=this._configContextConsumer.value;this._cardsFetcher=new g(e.locale,e.orgUrl,e.portalURL),this._cardsFetcherDeployed=new g(e.locale,e.orgUrl,e.portalURL),await this._getDeployedSolutions(),this._cards=await this._getSolutions(),this.allCardsFetched.emit(this._cards),this._isLoading=!1}async _getDeployedSolutions(){let e=this._configContextConsumer.value.authentication,t=this._configContextConsumer.value.userSession;if(e&&t&&e.IsSignedIn){let i=await b(e,t,this._cardsFetcher,this._cardsFetcherDeployed,I,"created");if(i){if(this._modifiedCheckTry>0){if(this._deployedSolutions?.cards.length===i?.cards.length)return this._modifiedCheckTry--,await this._getDeployedSolutions();this._modifiedCheckTry=0}this._deployedSolutions=i}}}_getMeridianSearch(){return a`<div><svg viewBox="0 0 64 64" width=140 height=140 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${f`<path d="M60.217 54.937l-15.77-15.77-1.414 1.415-3.801-3.8a19.94 19.94 0 1 0-2.451 2.45l3.802 3.802-1.413 1.415 15.767 15.767a1.739 1.739 0 0 0 2.459 0l2.82-2.821a1.742 1.742 0 0 0 0-2.458zM4.9 24A19.1 19.1 0 1 1 24 43.1 19.121 19.121 0 0 1 4.9 24zm32.474 14.693q.69-.63 1.32-1.32l3.774 3.775-1.32 1.32zM59.65 56.83l-2.82 2.82a.97.97 0 0 1-1.327 0L40.3 44.45l4.145-4.15L59.65 55.501a.939.939 0 0 1 0 1.328zM22.343 9.62l.097.795q-.31.038-.619.086a13.635 13.635 0 0 0-11.353 11.775l-.026.217-.795-.084.026-.228a14.44 14.44 0 0 1 12.022-12.47c.215-.034.431-.064.648-.09z" />`}</svg></div>`}_textSearch(e){this._agoTerms=this._baseAgoTerms+` ${e}`}_sortCards(e){let t=e.sortType;this._getSuggested=!1,this._sortOrder="desc",t==="suggested"?this._getSuggested=!0:t==="new"?this._sortField="relevance":t==="relevance"||t==="title"?(t==="title"&&(this._sortOrder="asc"),this._sortField=t):t==="updated"&&(this._sortField="relevance"),this.sortType=t}_filterCards(e){this._categories=[],e.forEach(t=>{if(t.industry){let i=this._getIndustryValue(t.industry);if(t.domain){let s=this._getDomainValue(t.domain);this._categories.push(`/Categories/${i}/${s}`)}else this._categories.push(`/Categories/${i}`)}})}_getDomainValue(e){return E[e]}_getIndustryValue(e){return e==="AEC"?"AEC":x[e]}_clearFilterCategories(){this._categories=[]}_isSolutionDeployed(e){return!!this._deployedSolutions?.cards?.some(t=>t?.typeKeywords?.some(i=>i.includes("solutionid")&&i.includes(e)))}_isLatestVersion(e){let t=this._deployedSolutions?.cards?.filter(i=>i?.typeKeywords?.some(s=>s.includes("solutionid")&&s.includes(e.deployCommonId)));return!(t&&t.length>0&&t[0].deployVersion!==e.deployVersion)}_lookupSolutionById(e){let t=this._allCards.filter(i=>i.deployCommonId===e);t.length>0&&this.detailsCardSelected.emit(t[0])}};S("solutions-all-panel",m);return m},b,d,e)
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
- import{a as S}from"./UHIFNZFJ.js";import"./YMMGYOOO.js";import f from"./RFTLE3FH.js";import e 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 L}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as v}from"./ABSRNM72.js";import{F as p,G as r,H as I,J as b,h as _,i as l,l as m,r as d,u as g}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([k,F,x,,{c:w,j:M},{f:u},{n:$}])=>{function C(n){return n?.indexOf("http://")!==-1}function f(n){return C(n)?n.replace(/^http:\/\//,"https://"):n}function T(n,e,t){return t&&t.forEach(a=>{n.allLayers.forEach(i=>{i&&i.url===a.sourceUrl&&(i.url=f(a.proxyUrl),i.portalItem&&i.portalItem.when(()=>{i.portalItem.url=f(a.proxyUrl)}),e.request?.interceptors?.push({urls:a.sourceUrl,before:s=>{s.url&&s.url===a.sourceUrl&&(s.url=f(a.proxyUrl))}}))})}),n}var V=_`@layer{
2
+ import{a as S}from"./UHIFNZFJ.js";import"./YMMGYOOO.js";import e 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 L}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as v}from"./ABSRNM72.js";import{F as p,G as r,H as I,J as b,h as _,i as l,l as m,r as d,u as g}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([k,F,x,,{c:w,j:M},{A:u,m:$}])=>{function C(n){return n?.indexOf("http://")!==-1}function f(n){return C(n)?n.replace(/^http:\/\//,"https://"):n}function T(n,e,t){return t&&t.forEach(a=>{n.allLayers.forEach(i=>{i&&i.url===a.sourceUrl&&(i.url=f(a.proxyUrl),i.portalItem&&i.portalItem.when(()=>{i.portalItem.url=f(a.proxyUrl)}),e.request?.interceptors?.push({urls:a.sourceUrl,before:s=>{s.url&&s.url===a.sourceUrl&&(s.url=f(a.proxyUrl))}}))})}),n}var V=_`@layer{
3
3
  /** @license
4
4
  * Copyright 2025 Esri
5
5
  *
@@ -90,4 +90,4 @@ calcite-action-bar {
90
90
  --calcite-internal-action-bar-gap: 0px;
91
91
  --calcite-internal-action-bar-padding: 0px;
92
92
  }
93
- }`,y=class extends I{constructor(){super(),this.defaultWebmapId="",this.defaultLayerId="",this.enableHome=!1,this.enableLegend=!1,this.enableLayerList=!0,this.enableFloorFilter=!1,this.enableFullscreen=!1,this.enableShare=!1,this.enableMapLayerPicker=!1,this.enableMapPicker=!1,this.enableSingleExpand=!1,this.enableSearch=!1,this.enableBasemap=!1,this.featureSelectionMode="multiple",this.hide=!1,this.zoomToolsSize="m",this.mapInfos=[],this.mapWidgetsIndex=0,this.mapWidgetsPosition="top-leading",this.mobileMapWidgetsPosition="top-right",this.mapWidgetsSize="m",this.stackTools=!1,this.mapToolsOrder=[],this.mobileToolsOrder=[],this.isMapLayout=!1,this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.selectedFeaturesIds=[],this.showOnlyUpdatableLayers=!1,this.isMobile=!1,this.enableSelectionTool=!1,this.visibilityIcon="eyeball",this._configLayerOrderDefined=!1,this._translations=L({name:"map-card",blocking:!0}),this._toolInfos=[],this._filterActive=!1,this._layerIds=[],this._enabledLayerIds=[],this._defaultWebmapHonored=!1,this._loadedId="",this._mapDiv=p(),this._mapPicker=p(),this._mapTools=p(),this._mobMapTools=p(),this._mapLayerPicker=p(),this._selectedWebMapId="",this._isValidWebMap=!0,this.mapChanged=d(),this.beforeMapChanged=d(),this.toggleFilter=d(),this.clearSelection=d(),this.editMultipleFeatures=d(),this.listenOn(window,"mapInfoChange",this.mapInfoChange),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"idsFound",this._idsFound),this.enableSingleExpand=!0,this.stackTools=!0,S(window)}static{this.properties={appLayout:1,appProxies:1,defaultWebmapId:1,defaultLayerId:1,enableHome:[5,{},{type:Boolean}],enableLegend:[5,{},{type:Boolean}],enableLayerList:[5,{},{type:Boolean}],enableFloorFilter:[5,{},{type:Boolean}],enableFullscreen:[5,{},{type:Boolean}],enableShare:[5,{},{type:Boolean}],enableMapLayerPicker:[5,{},{type:Boolean}],enableMapPicker:[5,{},{type:Boolean}],enableSingleExpand:[5,{},{type:Boolean}],enableSearch:[5,{},{type:Boolean}],enableBasemap:[5,{},{type:Boolean}],featureSelectionMode:1,basemapConfig:[0,{},{attribute:!1}],hide:[5,{},{type:Boolean}],zoomToolsSize:1,mapInfos:[0,{},{attribute:!1}],mapWidgetsIndex:[9,{},{type:Number}],mapWidgetsPosition:1,mobileMapWidgetsPosition:1,mapWidgetsSize:1,mapView:[0,{},{attribute:!1}],stackTools:[5,{},{type:Boolean}],theme:1,mapToolsOrder:[0,{},{attribute:!1}],mobileToolsOrder:[0,{},{attribute:!1}],isMapLayout:[5,{},{type:Boolean}],shareIncludeEmbed:[5,{},{type:Boolean}],shareIncludeSocial:[5,{},{type:Boolean}],selectedFeaturesIds:[0,{},{attribute:!1}],selectedLayer:[0,{},{attribute:!1}],zoomToScale:[9,{},{type:Number}],showOnlyUpdatableLayers:[5,{},{type:Boolean}],isMobile:[5,{},{type:Boolean}],mapInfo:[0,{},{attribute:!1}],enableSelectionTool:[5,{},{type:Boolean}],visibilityIcon:1,_configLayerOrderDefined:[16,{},{state:!0}],_translations:[16,{},{state:!0}],_searchConfiguration:[16,{},{state:!0}],_webMapInfo:[16,{},{state:!0}],_toolInfos:[16,{},{state:!0}],_filterActive:[16,{},{state:!0}],_mapDivHeight:[16,{},{state:!0}],_mapDivWidth:[16,{},{state:!0}],_layerIds:[16,{},{state:!0}]}}static{this.styles=V}static{this.shadowRootOptions=g}willUpdate(e){e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("selectedFeaturesIds")&&this.selectedFeaturesIdsWatchHandler()}appLayoutWatchHandler(){this._updateShareUrl()}async mapInfoWatchHandler(){this._configLayerOrderDefined="configLayerOrder"in(this.mapInfo?.layerOptions||{}),this._enabledLayerIds=$(this.mapInfo?.layerOptions?.layers||[],this.mapInfo?.layerOptions?.configLayerOrder)}async mapViewWatchHandler(){this.mapView&&this._updateShareUrl()}async selectedFeaturesIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions()}async resetFilter(){this._filterActive=!1,this._updateShareUrl()}async updateFilterState(e){this._filterActive=e,this._updateShareUrl()}async updateLayer(){this._mapLayerPicker.value&&this._mapLayerPicker.value.updateLayer()}async mapInfoChange(e){this._selectedWebMapId=e.detail.id,await this._loadMap(e.detail)}noLayersFound(){this.selectedLayer=void 0,this.selectedFeaturesIds=[]}layerSelectionChange(){setTimeout(()=>{this._initToolInfos()},50)}_idsFound(e){this._layerIds=e.detail}async load(){this._initToolInfos(),this._mapSizeObserver||(this._mapSizeObserver=new ResizeObserver(()=>{this._mapDivWidth&&this._mapDiv.value&&(this._mapDivWidth=this._mapDiv.value.offsetWidth)}))}render(){let e=this.hide?"visibility-hidden-1":"",t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",a="height-full",i=this.isMapLayout?"":"display-none",s=this._isValidWebMap?"":"hidden",h=this.isMobile?"":"hidden",o=this.enableMapPicker&&this.mapInfos.length>1,c=this.enableMapLayerPicker&&this._layerIds.length>1;return this._handleMapVisibility(),this._validateActiveActions(),l`<calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker()}${this._getHeaderActions()}<div slot=header-actions-end>${this.enableShare&&this.isMapLayout?this._getShare("share"):void 0}</div><calcite-progress class=${b(i)} value=0></calcite-progress><div class=${`${e} ${a}`}><div class="height-full" ${r(this._mapDiv)}></div></div>${l`<map-tools .basemapConfig=${this.basemapConfig} class=${`box-shadow ${t} ${s}`} .defaultLayerId=${this.defaultLayerId} .enableBasemap=${this.enableBasemap} .enableFloorFilter=${this.enableFloorFilter} .enableFullscreen=${this.enableFullscreen} .enableHome=${this.enableHome} .enableLegend=${this.enableLegend} .enableLayerList=${this.enableLayerList} .enableSearch=${this.enableSearch} .enableSingleExpand=${this.enableSingleExpand} .enableSelectionTool=${this.enableSelectionTool} .isMobile=${this.isMobile} .parentComponentHeight=${this._mapDivHeight} .parentComponentWidth=${this._mapDivWidth} .zoomToolsSize=${this.zoomToolsSize} layout=horizontal .mapView=${this.mapView} .mapWidgetsSize=${this.mapWidgetsSize} .position=${this.mapWidgetsPosition} .selectedFeaturesIds=${this.selectedFeaturesIds} .selectedLayer=${this.selectedLayer} .searchConfiguration=${this._searchConfiguration} .stackTools=${this.stackTools} .toolOrder=${this.mapToolsOrder} .visibilityIcon=${this.visibilityIcon} ${r(this._mapTools)}></map-tools><map-tools class=${`box-shadow ${t} ${h}`} .defaultLayerId=${this.defaultLayerId} .enabledLayerIds=${this._enabledLayerIds} .enableMapLayerPicker=${c} .enableMapPicker=${o} .isMobile=${this.isMobile} .zoomToolsSize=${this.zoomToolsSize} layout=vertical .mapInfos=${this.mapInfos} .mapView=${this.mapView} .mapWidgetsSize=${this.mapWidgetsSize} .parentComponentHeight=${this._mapDivHeight} .position=${this.mobileMapWidgetsPosition} .selectedLayer=${this.selectedLayer} .selectedWebMapId=${this._selectedWebMapId} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} .stackTools=${this.stackTools} .toolOrder=${this.mobileToolsOrder} ${r(this._mobMapTools)}></map-tools>`}</calcite-panel>`}updated(){this._mapDivHeight=this._mapDiv.value?.offsetHeight??0,document.onclick=e=>this._handleDocumentClick(e)}loaded(){this._mapDiv.value&&this._mapSizeObserver?.observe(this._mapDiv.value),this._updateShareUrl()}async _loadMap(e){let t=!this._defaultWebmapHonored&&this.defaultWebmapId,a=this.mapInfos?.filter(o=>o.id===this.defaultWebmapId),i=JSON.stringify(e)!==JSON.stringify(this._webMapInfo);this._webMapInfo=t&&a?a[0]:!e?.id&&this.mapInfos.length>0?this.mapInfos[0]:e;let s=this._webMapInfo.id,h=t&&e?.id===this.defaultWebmapId;if(this._loadedId!==s&&!t||h){let o=new x({portalItem:{id:s}});try{o&&await o.load(),this.appProxies&&o&&await T(o,k,this.appProxies),this.mapView=new F({container:this._mapDiv.value,map:o,resizeAlign:"center"}),this._loadedId=s,this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapView&&await this.mapView.when(()=>{this.mapView&&(this._mapDivWidth=this._mapDiv.value&&this._mapDiv.value.offsetWidth,this._mapTools.value&&this.mapView.ui.add(this._mapTools.value,{position:this.mapWidgetsPosition,index:this.mapWidgetsIndex}),this._mobMapTools.value&&this.mapView.ui.add(this._mobMapTools.value,{position:this.mobileMapWidgetsPosition,index:this.mapWidgetsIndex}),this._defaultWebmapHonored=h?!0:this._defaultWebmapHonored,this._isValidWebMap=!0,this.mapChanged.emit({id:s,mapView:this.mapView,isValid:!0}),this.isMobile||document.getElementsByClassName("esri-zoom")[0]?.classList.remove("display-none"))})}catch(c){console.error(c),this._loadedId=s,this._isValidWebMap=!1,this.mapChanged.emit({id:s,mapView:void 0,isValid:!1}),document.getElementsByClassName("esri-zoom")[0]?.classList.add("display-none");return}}else t?(this._defaultWebmapHonored=!0,this._mapPicker.value&&this._mapPicker.value.setMapByID(s)):i&&this.mapView&&(this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapChanged.emit({id:s,mapView:this.mapView,isValid:!0}));this._updateShareUrl()}_getMapLayerPicker(){let e=this.isMapLayout?"header-actions-start":"",t=this.mapInfos?.length>1?"":"display-none",a=this.isMapLayout?"height-0":"width-full",i="display-flex",s=this.isMapLayout?"":"display-none";return l`${!this.isMobile&&l`<div slot=${e??m}><map-picker class=${`${t} ${a}`} id=map-picker .isMapLayout=${this.isMapLayout} .mapInfos=${this.mapInfos} .selectedWebMapId=${this._selectedWebMapId} ${r(this._mapPicker)}></map-picker></div>`||""}<div slot=header-actions-start class=${`mapView-header display-flex ${s}`} id=solutions-map-layer-picker-container><div class=${`border-end ${i}`}>${this.mapView&&l`<map-layer-picker appearance=transparent .configLayerOrderDefined=${this._configLayerOrderDefined} .defaultLayerId=${this.defaultLayerId} display=inline-flex .enabledLayerIds=${this._enabledLayerIds} height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this.selectedLayer?[this.selectedLayer.id]:[]} show-single-layer-as-label show-tables show-tables-disabled type=dropdown ${r(this._mapLayerPicker)}></map-layer-picker>`||""}</div></div>`}_getHeaderActions(){return l`<div slot=header-content><calcite-action-bar class=${b("display-flex")} expand-disabled expanded id=${this._getId("bar")??m} layout=horizontal><calcite-action-group>${this.isMapLayout?this._getActions():void 0}</calcite-action-group></calcite-action-bar></div>`}_getShare(e){return l`<div class="share-action" id=${this._getId(e)??m}>${this.mapView&&l`<instant-apps-social-share class="instant-app-share" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${r(t=>{t&&(this._shareNode=t,this._updateShareUrl())})}></instant-apps-social-share>`||""}${this._getToolTip("bottom",`map-${e}`,this._translations?.share)}</div>`}_updateShareUrl(){let e=this._shareNode?.shareUrl;if(!e)return;let t=new URL(e);this._loadedId?t.searchParams.set("webmap",this._loadedId):t.searchParams.delete("webmap"),this.selectedLayer?.id?t.searchParams.set("layer",this.selectedLayer.id):t.searchParams.delete("layer"),this.selectedFeaturesIds?.length>0?t.searchParams.set("oid",this.selectedFeaturesIds.join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this._shareNode&&(this._shareNode.autoUpdateShareUrl=!1,this._shareNode.shareUrl=t.href)}_initToolInfos(){let e=this.selectedFeaturesIds.length>0,t=this.selectedFeaturesIds.length<2||this.selectedFeaturesIds.length>u,a=this.featureSelectionMode==="multiple"&&this.selectedLayer?.capabilities?.operations.supportsUpdate,i=[];i.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>void this._toggleFilter(),disabled:!1,toolTip:this._translations.filters}),i.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>void this._zoom(),disabled:!e,toolTip:this._translations.zoom}),a&&i.push({active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>this.editMultipleFeatures.emit(this.selectedFeaturesIds),disabled:t,toolTip:this._translations.editMultiple}),i.push({active:!1,icon:"refresh",indicator:!1,label:this._translations.refresh,func:()=>this.selectedLayer?.refresh(),disabled:!1,toolTip:this._translations.refresh}),i.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>this.clearSelection.emit(),disabled:!e,toolTip:this._translations.clearSelection}),this._toolInfos=[...i]}_validateActiveActions(){let e=["filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&t.icon==="filter"&&(t.indicator=this._filterActive)})}_handleMapVisibility(){if(this._mapDiv.value){let e=this._mapDiv.value.getElementsByClassName("esri-view-surface")[0],t=this._mapDiv.value.getElementsByClassName("esri-attribution")[0];this._isValidWebMap?(e?.classList.remove("hidden"),t?.classList.remove("hidden")):(e?.classList.add("hidden"),t?.classList.add("hidden"))}}_validateEnabledActions(){let e=this.selectedFeaturesIds.length>0,t=this.selectedFeaturesIds.length<2||this.selectedFeaturesIds.length>u,a=["zoom-to-object","pencil","erase"];this._toolInfos?.forEach(i=>{i&&a.indexOf(i.icon)>-1&&(i.disabled=i.icon==="pencil"?t:!e,i.toolTip=i.icon==="pencil"?this.selectedFeaturesIds.length>u?this._translations.featureEditLimitNotice:this._translations.editMultiple:i.toolTip)})}_handleDocumentClick(e){e.target.tagName!=="MAP-PICKER"&&this._mapPicker.value&&this._mapPicker.value.close()}async _zoom(){if(this.selectedLayer&&this.mapView){let e=await w(this.mapView,this.selectedLayer.id);e&&await M(this.selectedFeaturesIds,e,this.mapView,!0,void 0,this.zoomToScale)}}async _toggleFilter(){this.toggleFilter.emit()}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,t.loading,t.toolTip)),e),[])}_getToolTip(e,t,a){return l`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${a}</span></calcite-tooltip>`}_getAction(e,t,a,i,s,h,o,c){let W=this.selectedLayer===void 0?!0:h;return l`<calcite-action .active=${e} appearance=solid .disabled=${W} .icon=${t} .id=${`map-${t}`} .indicator=${a} .label=${i} .loading=${o} @click=${s} .text=${i} text-enabled></calcite-action>${this._getToolTip("auto",`map-${t}`,c)}`}_getId(e){return`solutions-action-${e}`}};v("map-card",y);return y},"config","views/MapView","WebMap",a,c,e,f)
93
+ }`,y=class extends I{constructor(){super(),this.defaultWebmapId="",this.defaultLayerId="",this.enableHome=!1,this.enableLegend=!1,this.enableLayerList=!0,this.enableFloorFilter=!1,this.enableFullscreen=!1,this.enableShare=!1,this.enableMapLayerPicker=!1,this.enableMapPicker=!1,this.enableSingleExpand=!1,this.enableSearch=!1,this.enableBasemap=!1,this.featureSelectionMode="multiple",this.hide=!1,this.zoomToolsSize="m",this.mapInfos=[],this.mapWidgetsIndex=0,this.mapWidgetsPosition="top-leading",this.mobileMapWidgetsPosition="top-right",this.mapWidgetsSize="m",this.stackTools=!1,this.mapToolsOrder=[],this.mobileToolsOrder=[],this.isMapLayout=!1,this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.selectedFeaturesIds=[],this.showOnlyUpdatableLayers=!1,this.isMobile=!1,this.enableSelectionTool=!1,this.visibilityIcon="eyeball",this._configLayerOrderDefined=!1,this._translations=L({name:"map-card",blocking:!0}),this._toolInfos=[],this._filterActive=!1,this._layerIds=[],this._enabledLayerIds=[],this._defaultWebmapHonored=!1,this._loadedId="",this._mapDiv=p(),this._mapPicker=p(),this._mapTools=p(),this._mobMapTools=p(),this._mapLayerPicker=p(),this._selectedWebMapId="",this._isValidWebMap=!0,this.mapChanged=d(),this.beforeMapChanged=d(),this.toggleFilter=d(),this.clearSelection=d(),this.editMultipleFeatures=d(),this.listenOn(window,"mapInfoChange",this.mapInfoChange),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"idsFound",this._idsFound),this.enableSingleExpand=!0,this.stackTools=!0,S(window)}static{this.properties={appLayout:1,appProxies:1,defaultWebmapId:1,defaultLayerId:1,enableHome:[5,{},{type:Boolean}],enableLegend:[5,{},{type:Boolean}],enableLayerList:[5,{},{type:Boolean}],enableFloorFilter:[5,{},{type:Boolean}],enableFullscreen:[5,{},{type:Boolean}],enableShare:[5,{},{type:Boolean}],enableMapLayerPicker:[5,{},{type:Boolean}],enableMapPicker:[5,{},{type:Boolean}],enableSingleExpand:[5,{},{type:Boolean}],enableSearch:[5,{},{type:Boolean}],enableBasemap:[5,{},{type:Boolean}],featureSelectionMode:1,basemapConfig:[0,{},{attribute:!1}],hide:[5,{},{type:Boolean}],zoomToolsSize:1,mapInfos:[0,{},{attribute:!1}],mapWidgetsIndex:[9,{},{type:Number}],mapWidgetsPosition:1,mobileMapWidgetsPosition:1,mapWidgetsSize:1,mapView:[0,{},{attribute:!1}],stackTools:[5,{},{type:Boolean}],theme:1,mapToolsOrder:[0,{},{attribute:!1}],mobileToolsOrder:[0,{},{attribute:!1}],isMapLayout:[5,{},{type:Boolean}],shareIncludeEmbed:[5,{},{type:Boolean}],shareIncludeSocial:[5,{},{type:Boolean}],selectedFeaturesIds:[0,{},{attribute:!1}],selectedLayer:[0,{},{attribute:!1}],zoomToScale:[9,{},{type:Number}],showOnlyUpdatableLayers:[5,{},{type:Boolean}],isMobile:[5,{},{type:Boolean}],mapInfo:[0,{},{attribute:!1}],enableSelectionTool:[5,{},{type:Boolean}],visibilityIcon:1,_configLayerOrderDefined:[16,{},{state:!0}],_translations:[16,{},{state:!0}],_searchConfiguration:[16,{},{state:!0}],_webMapInfo:[16,{},{state:!0}],_toolInfos:[16,{},{state:!0}],_filterActive:[16,{},{state:!0}],_mapDivHeight:[16,{},{state:!0}],_mapDivWidth:[16,{},{state:!0}],_layerIds:[16,{},{state:!0}]}}static{this.styles=V}static{this.shadowRootOptions=g}willUpdate(e){e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("selectedFeaturesIds")&&this.selectedFeaturesIdsWatchHandler()}appLayoutWatchHandler(){this._updateShareUrl()}async mapInfoWatchHandler(){this._configLayerOrderDefined="configLayerOrder"in(this.mapInfo?.layerOptions||{}),this._enabledLayerIds=$(this.mapInfo?.layerOptions?.layers||[],this.mapInfo?.layerOptions?.configLayerOrder)}async mapViewWatchHandler(){this.mapView&&this._updateShareUrl()}async selectedFeaturesIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions()}async resetFilter(){this._filterActive=!1,this._updateShareUrl()}async updateFilterState(e){this._filterActive=e,this._updateShareUrl()}async updateLayer(){this._mapLayerPicker.value&&this._mapLayerPicker.value.updateLayer()}async mapInfoChange(e){this._selectedWebMapId=e.detail.id,await this._loadMap(e.detail)}noLayersFound(){this.selectedLayer=void 0,this.selectedFeaturesIds=[]}layerSelectionChange(){setTimeout(()=>{this._initToolInfos()},50)}_idsFound(e){this._layerIds=e.detail}async load(){this._initToolInfos(),this._mapSizeObserver||(this._mapSizeObserver=new ResizeObserver(()=>{this._mapDivWidth&&this._mapDiv.value&&(this._mapDivWidth=this._mapDiv.value.offsetWidth)}))}render(){let e=this.hide?"visibility-hidden-1":"",t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",a="height-full",i=this.isMapLayout?"":"display-none",s=this._isValidWebMap?"":"hidden",h=this.isMobile?"":"hidden",o=this.enableMapPicker&&this.mapInfos.length>1,c=this.enableMapLayerPicker&&this._layerIds.length>1;return this._handleMapVisibility(),this._validateActiveActions(),l`<calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker()}${this._getHeaderActions()}<div slot=header-actions-end>${this.enableShare&&this.isMapLayout?this._getShare("share"):void 0}</div><calcite-progress class=${b(i)} value=0></calcite-progress><div class=${`${e} ${a}`}><div class="height-full" ${r(this._mapDiv)}></div></div>${l`<map-tools .basemapConfig=${this.basemapConfig} class=${`box-shadow ${t} ${s}`} .defaultLayerId=${this.defaultLayerId} .enableBasemap=${this.enableBasemap} .enableFloorFilter=${this.enableFloorFilter} .enableFullscreen=${this.enableFullscreen} .enableHome=${this.enableHome} .enableLegend=${this.enableLegend} .enableLayerList=${this.enableLayerList} .enableSearch=${this.enableSearch} .enableSingleExpand=${this.enableSingleExpand} .enableSelectionTool=${this.enableSelectionTool} .isMobile=${this.isMobile} .parentComponentHeight=${this._mapDivHeight} .parentComponentWidth=${this._mapDivWidth} .zoomToolsSize=${this.zoomToolsSize} layout=horizontal .mapView=${this.mapView} .mapWidgetsSize=${this.mapWidgetsSize} .position=${this.mapWidgetsPosition} .selectedFeaturesIds=${this.selectedFeaturesIds} .selectedLayer=${this.selectedLayer} .searchConfiguration=${this._searchConfiguration} .stackTools=${this.stackTools} .toolOrder=${this.mapToolsOrder} .visibilityIcon=${this.visibilityIcon} ${r(this._mapTools)}></map-tools><map-tools class=${`box-shadow ${t} ${h}`} .defaultLayerId=${this.defaultLayerId} .enabledLayerIds=${this._enabledLayerIds} .enableMapLayerPicker=${c} .enableMapPicker=${o} .isMobile=${this.isMobile} .zoomToolsSize=${this.zoomToolsSize} layout=vertical .mapInfos=${this.mapInfos} .mapView=${this.mapView} .mapWidgetsSize=${this.mapWidgetsSize} .parentComponentHeight=${this._mapDivHeight} .position=${this.mobileMapWidgetsPosition} .selectedLayer=${this.selectedLayer} .selectedWebMapId=${this._selectedWebMapId} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} .stackTools=${this.stackTools} .toolOrder=${this.mobileToolsOrder} ${r(this._mobMapTools)}></map-tools>`}</calcite-panel>`}updated(){this._mapDivHeight=this._mapDiv.value?.offsetHeight??0,document.onclick=e=>this._handleDocumentClick(e)}loaded(){this._mapDiv.value&&this._mapSizeObserver?.observe(this._mapDiv.value),this._updateShareUrl()}async _loadMap(e){let t=!this._defaultWebmapHonored&&this.defaultWebmapId,a=this.mapInfos?.filter(o=>o.id===this.defaultWebmapId),i=JSON.stringify(e)!==JSON.stringify(this._webMapInfo);this._webMapInfo=t&&a?a[0]:!e?.id&&this.mapInfos.length>0?this.mapInfos[0]:e;let s=this._webMapInfo.id,h=t&&e?.id===this.defaultWebmapId;if(this._loadedId!==s&&!t||h){let o=new x({portalItem:{id:s}});try{o&&await o.load(),this.appProxies&&o&&await T(o,k,this.appProxies),this.mapView=new F({container:this._mapDiv.value,map:o,resizeAlign:"center"}),this._loadedId=s,this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapView&&await this.mapView.when(()=>{this.mapView&&(this._mapDivWidth=this._mapDiv.value&&this._mapDiv.value.offsetWidth,this._mapTools.value&&this.mapView.ui.add(this._mapTools.value,{position:this.mapWidgetsPosition,index:this.mapWidgetsIndex}),this._mobMapTools.value&&this.mapView.ui.add(this._mobMapTools.value,{position:this.mobileMapWidgetsPosition,index:this.mapWidgetsIndex}),this._defaultWebmapHonored=h?!0:this._defaultWebmapHonored,this._isValidWebMap=!0,this.mapChanged.emit({id:s,mapView:this.mapView,isValid:!0}),this.isMobile||document.getElementsByClassName("esri-zoom")[0]?.classList.remove("display-none"))})}catch(c){console.error(c),this._loadedId=s,this._isValidWebMap=!1,this.mapChanged.emit({id:s,mapView:void 0,isValid:!1}),document.getElementsByClassName("esri-zoom")[0]?.classList.add("display-none");return}}else t?(this._defaultWebmapHonored=!0,this._mapPicker.value&&this._mapPicker.value.setMapByID(s)):i&&this.mapView&&(this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapChanged.emit({id:s,mapView:this.mapView,isValid:!0}));this._updateShareUrl()}_getMapLayerPicker(){let e=this.isMapLayout?"header-actions-start":"",t=this.mapInfos?.length>1?"":"display-none",a=this.isMapLayout?"height-0":"width-full",i="display-flex",s=this.isMapLayout?"":"display-none";return l`${!this.isMobile&&l`<div slot=${e??m}><map-picker class=${`${t} ${a}`} id=map-picker .isMapLayout=${this.isMapLayout} .mapInfos=${this.mapInfos} .selectedWebMapId=${this._selectedWebMapId} ${r(this._mapPicker)}></map-picker></div>`||""}<div slot=header-actions-start class=${`mapView-header display-flex ${s}`} id=solutions-map-layer-picker-container><div class=${`border-end ${i}`}>${this.mapView&&l`<map-layer-picker appearance=transparent .configLayerOrderDefined=${this._configLayerOrderDefined} .defaultLayerId=${this.defaultLayerId} display=inline-flex .enabledLayerIds=${this._enabledLayerIds} height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this.selectedLayer?[this.selectedLayer.id]:[]} show-single-layer-as-label show-tables show-tables-disabled type=dropdown ${r(this._mapLayerPicker)}></map-layer-picker>`||""}</div></div>`}_getHeaderActions(){return l`<div slot=header-content><calcite-action-bar class=${b("display-flex")} expand-disabled expanded id=${this._getId("bar")??m} layout=horizontal><calcite-action-group>${this.isMapLayout?this._getActions():void 0}</calcite-action-group></calcite-action-bar></div>`}_getShare(e){return l`<div class="share-action" id=${this._getId(e)??m}>${this.mapView&&l`<instant-apps-social-share class="instant-app-share" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${r(t=>{t&&(this._shareNode=t,this._updateShareUrl())})}></instant-apps-social-share>`||""}${this._getToolTip("bottom",`map-${e}`,this._translations?.share)}</div>`}_updateShareUrl(){let e=this._shareNode?.shareUrl;if(!e)return;let t=new URL(e);this._loadedId?t.searchParams.set("webmap",this._loadedId):t.searchParams.delete("webmap"),this.selectedLayer?.id?t.searchParams.set("layer",this.selectedLayer.id):t.searchParams.delete("layer"),this.selectedFeaturesIds?.length>0?t.searchParams.set("oid",this.selectedFeaturesIds.join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this._shareNode&&(this._shareNode.autoUpdateShareUrl=!1,this._shareNode.shareUrl=t.href)}_initToolInfos(){let e=this.selectedFeaturesIds.length>0,t=this.selectedFeaturesIds.length<2||this.selectedFeaturesIds.length>u,a=this.featureSelectionMode==="multiple"&&this.selectedLayer?.capabilities?.operations.supportsUpdate,i=[];i.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>void this._toggleFilter(),disabled:!1,toolTip:this._translations.filters}),i.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>void this._zoom(),disabled:!e,toolTip:this._translations.zoom}),a&&i.push({active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>this.editMultipleFeatures.emit(this.selectedFeaturesIds),disabled:t,toolTip:this._translations.editMultiple}),i.push({active:!1,icon:"refresh",indicator:!1,label:this._translations.refresh,func:()=>this.selectedLayer?.refresh(),disabled:!1,toolTip:this._translations.refresh}),i.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>this.clearSelection.emit(),disabled:!e,toolTip:this._translations.clearSelection}),this._toolInfos=[...i]}_validateActiveActions(){let e=["filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&t.icon==="filter"&&(t.indicator=this._filterActive)})}_handleMapVisibility(){if(this._mapDiv.value){let e=this._mapDiv.value.getElementsByClassName("esri-view-surface")[0],t=this._mapDiv.value.getElementsByClassName("esri-attribution")[0];this._isValidWebMap?(e?.classList.remove("hidden"),t?.classList.remove("hidden")):(e?.classList.add("hidden"),t?.classList.add("hidden"))}}_validateEnabledActions(){let e=this.selectedFeaturesIds.length>0,t=this.selectedFeaturesIds.length<2||this.selectedFeaturesIds.length>u,a=["zoom-to-object","pencil","erase"];this._toolInfos?.forEach(i=>{i&&a.indexOf(i.icon)>-1&&(i.disabled=i.icon==="pencil"?t:!e,i.toolTip=i.icon==="pencil"?this.selectedFeaturesIds.length>u?this._translations.featureEditLimitNotice:this._translations.editMultiple:i.toolTip)})}_handleDocumentClick(e){e.target.tagName!=="MAP-PICKER"&&this._mapPicker.value&&this._mapPicker.value.close()}async _zoom(){if(this.selectedLayer&&this.mapView){let e=await w(this.mapView,this.selectedLayer.id);e&&await M(this.selectedFeaturesIds,e,this.mapView,!0,void 0,this.zoomToScale)}}async _toggleFilter(){this.toggleFilter.emit()}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,t.loading,t.toolTip)),e),[])}_getToolTip(e,t,a){return l`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${a}</span></calcite-tooltip>`}_getAction(e,t,a,i,s,h,o,c){let W=this.selectedLayer===void 0?!0:h;return l`<calcite-action .active=${e} appearance=solid .disabled=${W} .icon=${t} .id=${`map-${t}`} .indicator=${a} .label=${i} .loading=${o} @click=${s} .text=${i} text-enabled></calcite-action>${this._getToolTip("auto",`map-${t}`,c)}`}_getId(e){return`solutions-action-${e}`}};v("map-card",y);return y},"config","views/MapView","WebMap",a,c,e)
@@ -0,0 +1,188 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
+ import{a as k,b as N}from"./W4YXXJAS.js";import{b}from"./77CU4WA2.js";import{ka as C,nb as $,nc as P,oa as M,qa as x,sa as U}from"./T4PIUXJ7.js";import{a as R}from"./6S75SIVV.js";import{u as L}from"./3GWWHA4S.js";import{b as v}from"./ABSRNM72.js";import{F as y,G as w,H as I,J as D,L as m,h as S,i as l,j as O,r as A}from"./5CQPQ7AE.js";export default $arcgis.t(([])=>{var q=S`/** @license
3
+ * Copyright 2025 Esri
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ calcite-card {
19
+ height: 100%;
20
+ padding-bottom: var(--calcite-spacing-base);
21
+ }
22
+
23
+ /* @media (max-width: 600px) {
24
+ calcite-card {
25
+ width: calc(100% / 2 - var(--calcite-spacing-sm));
26
+ }
27
+ } */
28
+
29
+ @media (max-width: 400px) {
30
+ calcite-card {
31
+ width: 100%;
32
+ }
33
+ }
34
+
35
+ calcite-card:hover img {
36
+ /* TODO check in dark mode */
37
+ -webkit-filter: brightness(30%);
38
+ filter: brightness(30%);
39
+ -webkit-transition: all .1s ease;
40
+ -moz-transition: all .1s ease;
41
+ -o-transition: all .1s ease;
42
+ -ms-transition: all .1s ease;
43
+ transition: all .1s ease;
44
+ }
45
+
46
+ calcite-card:hover .hover-text {
47
+ opacity: 1;
48
+ color: #ffffff;
49
+ }
50
+
51
+ calcite-card:hover {
52
+ outline: var(--calcite-spacing-base) solid var(--calcite-color-brand);
53
+ box-sizing: content-box;
54
+ cursor: pointer;
55
+ }
56
+
57
+ .hover-text {
58
+ transition: .1s ease;
59
+ opacity: 0;
60
+ position: absolute;
61
+ top: 50%;
62
+ left: 50%;
63
+ transform: translate(-50%, -50%);
64
+ -ms-transform: translate(-50%, -50%);
65
+ text-align: center;
66
+ display: flex;
67
+ flex-direction: row;
68
+ align-items: center;
69
+ height: 100%;
70
+ font-size: var(--calcite-spacing-xl);
71
+ }
72
+
73
+ .card-image-wrap {
74
+ flex: 0 0 auto;
75
+ }
76
+
77
+ .card-image-wrap {
78
+ width: 100%;
79
+ position: relative;
80
+ margin-bottom: 0;
81
+ -webkit-box-flex: 0 0 auto;
82
+ -ms-flex: 0 0 auto;
83
+ flex: 0 0 auto;
84
+ }
85
+
86
+ .card-image {
87
+ width: 100%;
88
+ display: block;
89
+ }
90
+
91
+ video,
92
+ img {
93
+ max-width: 100%;
94
+ height: auto;
95
+ }
96
+
97
+ img {
98
+ overflow-clip-margin: content-box;
99
+ overflow: clip;
100
+ }
101
+
102
+ .width-full {
103
+ width: 100%;
104
+ }
105
+
106
+ .deployed-label-override {
107
+ --calcite-label-text-color: var(--calcite-color-text-3);
108
+ --calcite-label-margin-bottom: var(--calcite-spacing-none);
109
+ }
110
+
111
+ .svg-color {
112
+ fill: var(--calcite-color-text-3);
113
+ }
114
+
115
+ .padding-end-1-2 {
116
+ padding-inline-end: var(--calcite-spacing-sm);
117
+ }
118
+
119
+ .padding-bottom-1-2 {
120
+ padding-bottom: var(--calcite-spacing-sm);
121
+ }
122
+
123
+ .display-flex {
124
+ display: flex;
125
+ }
126
+
127
+ .display-none {
128
+ display: none;
129
+ }
130
+
131
+ .flex-direction-column {
132
+ flex-direction: column;
133
+ }
134
+
135
+ .align-items-center {
136
+ align-items: center;
137
+ }
138
+
139
+ .font-weight-400 {
140
+ font-weight: 400;
141
+ }
142
+
143
+ .font-weight-normal {
144
+ font-weight: normal;
145
+ }
146
+
147
+ .font-color-text-2 {
148
+ --calcite-label-text-color: var(--calcite-color-text-2);
149
+ }
150
+
151
+ .font-line-height {
152
+ line-height: 1.4;
153
+ }
154
+
155
+ .font-size-size--1 {
156
+ font-size: var(--calcite-font-size--1);
157
+ }
158
+
159
+ .icon-brand-color {
160
+ --calcite-icon-color: var(--calcite-color-brand);
161
+ }
162
+
163
+ .header-line-height {
164
+ --calcite-label-margin-bottom: 0;
165
+ margin-top: var(--calcite-spacing-sm);
166
+ margin-bottom: 0.7rem;
167
+ }
168
+
169
+ .dialog-y-size {
170
+ --calcite-dialog-size-y: 90%
171
+ }
172
+
173
+ .dialog-x-size {
174
+ --calcite-dialog-size-x: 90%
175
+ }
176
+
177
+ .justify-content-space-between {
178
+ justify-content: space-between;
179
+ }
180
+
181
+ .panel-bg-color {
182
+ --calcite-panel-header-background-color: var(--calcite-color-foreground-1);
183
+ --calcite-panel-background-color: var(--calcite-color-foreground-1);
184
+ }
185
+
186
+ .cursor-default {
187
+ cursor: default;
188
+ }`;function j(t){let e="",i="?";return t.forEach(s=>{s.k&&s.v&&(e+=i+s.k+"="+s.v,i="&")}),e}function Me(t){return t?P(t,{}).then(e=>Promise.resolve(!!e)):Promise.resolve(!1)}async function J(t,e){let i=e,s=await i.getUsername(),r={q:new L().match(t).in("title").and().match(s).in("owner"),filter:"type:Solution",authentication:i},n=(await $(r)).results.map(p=>p.title),{folders:o}=await C(i),h=o.map(p=>p.title),u=[...n,...h].map(p=>p.trim().toLowerCase()),_=t.toLowerCase(),z=u.filter(p=>p===_),Y=u.filter(p=>p.startsWith(_));return{conflictingNames:z,similiarNames:Y}}async function xe(t,e){return Q(t)?{status:!1,type:"empty"}:X(t)?{status:!1,type:"exceed length"}:Z(t,"folder")?{status:!1,type:"special character"}:(await J(t.trim(),e)).conflictingNames.length>0?{status:!1,type:"not unique"}:{status:!0,type:""}}function Q(t){return t.length<=0}function X(t){return t.length>Ee}function Z(t,e){return(e==="item"?/[><~`$^+=|]/u:/[/<>]/u).test(t)}function Ue(t){if(t){let e=t.trim();return e?"<div>"+e+"</div>":""}else return""}function ee(t){let e="",i="?";return t.forEach(s=>{s.k&&s.v&&(e+=i+s.k+"="+s.v,i="&")}),e}function $e(t,e,i,s){let a="";return e?a=s+"/sharing/rest/content/items/"+t+"/info/"+e+ee([{k:"w",v:"400"}]):a=i,a}function Pe(t){let e=t?t.replace("https://","").replace("www.",""):"";return e.endsWith("devext.arcgis.com")||e.endsWith("mapsqa.arcgis.com")||e.endsWith("qaext.arcgis.com")?t??"https://www.arcgis.com":"https://www.arcgis.com"}function Ge(t,e,i){return e.some(s=>s.wkid===t?(i=s.defaultExtent,!0):!1),i}function Be(t,e){return G(e||t)}function Ke(t,e="en"){return new Intl.DateTimeFormat(e,{year:"numeric",month:"long",day:"numeric"}).format(t)}function Fe(t,e){let i="";return t.some(s=>s.startsWith(e)?(i=s.substring(e.length),!0):!1),i}function G(t){let e=t.replace("www.","");return e.endsWith("devext.arcgis.com")?"dev":e.endsWith("mapsqa.arcgis.com")||e.endsWith("qaext.arcgis.com")?"qa":e==="arcgis.com"||e.endsWith(".arcgis.com")?"prod":"dev"}function He(t,e){let i=t?.reduce((s,a)=>(s.indexOf(a.id)<0&&s.push(a.id),s),[])||[];return e?i.sort((s,a)=>e.indexOf(s)-e.indexOf(a)):i}function We(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Ve(t){return{relevance:"Relevance",title:"Title",new:"New",created:"Date deployed",updated:"Updated",suggested:"Suggested for you"}[t]||t}function ze(t){if(!t)return"Unknown error";if(t.message)return t.message;try{let e=JSON.stringify(t);return e&&e!=="{}"?e:t.toString()}catch{return t.toString()}}function Ye(t){return t?parseFloat(((Date.now()-t)/1e3).toFixed(2)):0}function g(t,e){(t.key==="Enter"||t.code==="NumpadEnter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e())}async function te(t,e){let i=await U(t,e);if(!i)throw new Error(`Solution ${t} was not found`);let s=e?.portal.replace("/sharing/rest","")??"https://www.arcgis.com",a=[];if(i.templates[0].item)a=i.templates.map(r=>({id:r.itemId,title:r.item.title,type:r.item.type,typeKeywords:r.item.typeKeywords,dependencies:r.dependencies,snippet:r.item.snippet}));else{let r=i.templates.map(o=>o.type==="Group"?M(o.itemId,e):x(o.itemId,e));a=(await Promise.allSettled(r)).filter(o=>o.status==="fulfilled").map(o=>o.value).map((o,h)=>{let u=typeof o.type>"u"?"group":"item";return{id:o.id,title:o.title,type:o.type??"Group",typeKeywords:o.typeKeywords,dependencies:i.templates[h].dependencies,snippet:o.snippet,url:`${s}/home/${u}.html?id=${o.id}`}})}return a}function qe(t,e,i){let s=t.templates.map(h=>h.type),a=[];a.push(ce),s.indexOf("Group")>=0&&(a.push(B),a.push(F)),s.indexOf("Feature Service")>=0&&a.push(K);let r=s.indexOf("Feed")>-1;r&&a.push(ue);let c=s.indexOf("Big Data Analytic")>-1;c&&a.push(de);let n=s.indexOf("Real Time Analytic")>-1;n&&a.push(he),(r||c||n)&&a.push(be),s.indexOf("Workflow")>-1&&(a.push(B),a.push(K),a.push(F),a.push(Te)),s.indexOf("Geoprocessing Service")>-1&&(a.push(pe),i.IsEnterprisePortal&&a.push(ge));let o=t.templates.reduce((h,u)=>h.concat(u.item.typeKeywords||[]),[]);return se(a,o,i),ae(a,e),ie(a,t),a}function ie(t,e){e.templates.some(i=>i.type==="Group"&&i.item?.membershipAccess==="collaboration")&&t.push(le)}function se(t,e,i){let s=H(i),a=ne(i);["Location Tracking View"].some(c=>e.indexOf(c)>-1)&&(!s&&!a?t.push(fe):s&&!a?t.push(ye):!s&&a&&t.push(we))}function ae(t,e){["HubPremium"].some(s=>e.indexOf(s)>-1)&&t.push(me)}function H(t){let e=t?.PortalUserSubset?.privileges,i=["portal:admin:create","portal:admin:delete","portal:admin:update","portal:admin:reassign"];return e?i.every(s=>e.some(a=>a.startsWith(s))):!1}function ne(t){return t.PortalSubset?.locationTrackingEnabled||!1}function je(t,e){let i={leadingMessages:[],bulletedMessages:[],trailingMessages:[]},s=[d.NOTEBOOK,d.VELOCITY,d.HUBPREMIUM,d.WORKFLOW,d.TRACKINGBASE],a=f(t,e,d.VELOCITY);a&&i.leadingMessages.push(a);let r=f(t,e,d.NOTEBOOK);r&&i.leadingMessages.push(r);let c=f(t,e,d.HUBPREMIUM);c&&i.leadingMessages.push(c);let n=f(t,e,d.WORKFLOW);n&&i.leadingMessages.push(n),e=e.filter(u=>s.indexOf(u)<0),e.forEach(u=>{i.bulletedMessages.push(W(t,u))});let o=f(t,e,d.TRACKINGBASE);return o&&i.trailingMessages.push(o),(i.leadingMessages.length>0||i.trailingMessages.length>0||i.bulletedMessages.length>0)&&i.trailingMessages.push(t.missingPrivilegesPopup.suggestedProblemRemedyMessage),i}function f(t,e,i){return e.filter(a=>a.includes(i)).length>0?W(t,i):""}function W(t,e){let i=t.missingPrivilegesPopup.requiredPrivilegesList,s="";switch(e){case"portal:user:createItem":s=i.createItem;break;case"portal:publisher:publishFeatures":s=i.publishFeatures;break;case"portal:user:createGroup":s=i.createGroup;break;case"portal:user:shareToGroup":s=i.shareToGroup;break;case"portal:user:addExternalMembersToGroup":s=i.addMembers;break;case"portal:publisher:publishFeeds":s=i.publishFeeds;break;case"portal:publisher:publishBigDataAnalytics":s=i.publishBigDataAnalytics;break;case"portal:publisher:publishRealTimeAnalytics":s=i.publishRealTimeAnalytics;break;case"solutions:locationtracking:admin:tracking":s=i.requiresLocationTrackingAndAdmin;break;case"solutions:locationtracking:tracking":s=i.requiresLocationTracking;break;case"solutions:locationtracking:admin":s=i.requiresAdmin;break;case"solutions:hubPremium":s=i.hubPremium;break;case"solutions:workflowManager":s=i.workflowManager;break;case"solutions:velocity":s=i.velocity;break;case"solutions:notebook":s=i.requiresNotebookServer;break;case"portal:publisher:publishServerGPServices":s=i.publishGPServices;break;case"writable:Enterprise":s=i.writableEnterprise;break;case"writable:Online":s=i.writableOnline.replace("{{url}}","https://status.arcgis.com");break}return s}function Je(t,e){let i=V(e),s=j([{k:"id",v:t}])||"";return i?`${i}/home/item.html${s}`:""}function Qe(t,e,i,s){let a=s||V(i);return a?`${a}/sharing/rest/content/items/${t}/resources/${e}`:""}function V(t){return t?.PortalSubset?.orgUrl||t?.PortalUrl||""}function oe(t,e){let i=new URL(t);return i.searchParams.set("token",e),i.toString()}var E=class extends I{constructor(){super(),this.deployedDate="",this.description="",this.diagramKey="",this.heading="",this.itemId="",this.owner="",this.thumbnail="",this.updateAvailable=!1,this.templateInfos=[],this._isDeleteOpen=!1,this._isDiagramOpen=!1,this.isMobile=!1,this.templateInfoGraph=[],this._configureTitlesOpen=!1,this._thumbnailUrl="",this._translations=R({name:"solution-deployed-card",blocking:!0}),this._configContextConsumer=b({context:N,subscribe:!0,callback:async e=>{e&&(this._isOrgAdmin=H(e.authentication),this._thumbnailUrl=`${this.thumbnail}&token=${e.userSession?.token}`)}}),this._deleteDialogRef=y(),this._diagramDialogRef=y(),this._isOrgAdmin=!1,this._isMobileContextConsumer=b({context:k,subscribe:!0,callback:e=>this.isMobile=e}),this.deployedCardSelected=A(),this.listenOn(window,"sessionRefreshed",e=>{this._updateThumbnailToken(e.detail)})}static{this.properties={card:[0,{},{attribute:!1}],deployedDate:1,description:1,diagramKey:1,heading:1,itemId:1,owner:1,thumbnail:1,updateAvailable:[5,{},{type:Boolean}],templateInfos:[0,{},{attribute:!1}],_isDeleteOpen:[16,{},{state:!0}],_isDiagramOpen:[16,{},{state:!0}],isMobile:[16,{},{state:!0}],templateInfoGraph:[16,{},{state:!0}],_configureTitlesOpen:[16,{},{state:!0}],_thumbnailUrl:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=q}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async renderDeleteDialog(){return this._isDeleteOpen=!0,this._renderDeleteDialog(),this._deleteDialogRef.value}async renderDiagramDialog(e){return await this._viewDiagram(e),await this._renderDiagramDialog(),this._diagramDialogRef.value}async getTemplates(){return this._processTemplates(this.card)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}render(){return l`<calcite-card .label=${this.description} @click=${this._cardSelected} @keydown=${e=>g(e,()=>this._cardSelected())}>${this._getImage()}${this._getHeader()}<p class="font-color-text-2 font-line-height font-size-size--1" slot=description>${this.description}</p><div class="width-full display-flex flex-direction-column" slot=footer-start><div class="padding-bottom-1-2">${this.owner!==""&&this._getOwnerLabel()||""}${this._getDeployedDate()}</div>${this._getConfigureButton()}</div></calcite-card>${this._renderDeleteDialog()}${this._renderDiagramDialog()}${this._renderConfigureTitlesDialog()}`}_getImage(){return l`<div class="card-image-wrap" slot=thumbnail><img alt=${this.heading??m} class="thumbnail card-image" src=${this._thumbnailUrl??m}><div class="hover-text">${this._translations.openSolution}</div></div>`}_getHeader(){return l`<div class="display-flex justify-content-space-between header-line-height" slot=heading><calcite-label layout=inline-space-between scale=l>${this.heading}</calcite-label></div>`}_getOwnerLabel(){return l`<calcite-label class="font-weight-400 padding-end-1-2" layout=inline scale=s>${`${this._translations.owner}:`}<calcite-link class="font-weight-normal" @click=${this._openUserProfile}>${this.owner}</calcite-link></calcite-label>`}_getDeployedDate(){return l`<div class="display-flex align-items-center"><div class="padding-end-1-2"><svg height=16px viewBox="0 0 32 32" width=16px xmlns=http://www.w3.org/2000/svg>${O`<path class="svg-color" d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" /><path class="svg-color" d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" />`}</svg></div><calcite-label class="deployed-label-override" scale=s>${this._translations.deployedDate.replace("{{date}}",this.deployedDate)}</calcite-label></div>`}_getConfigureButton(){let e=this._configContextConsumer.value?.userSession?.username,i=this._configContextConsumer.value?.authentication?.CanUpdateSolution,s=this._configContextConsumer.value?.authentication?.CanDeleteSolution,a=this.card?.owner===e||this._isOrgAdmin||i,r=this.card?.owner===e||this._isOrgAdmin||s,c=a?"display-none":"";return l`<calcite-split-button appearance=outline aria-label=${this._translations.openSolution??m} dropdown-label=${this._translations.moreActions??m} kind=neutral @calciteSplitButtonPrimaryClick=${this._cardSelected} @click=${n=>n.stopPropagation()} @keydown=${n=>n.stopPropagation()} overlay-positioning=fixed primary-text=${this._translations.openSolution??m} width=full><calcite-dropdown-group selection-mode=none>${!this.isMobile&&l`<calcite-dropdown-item icon-start=model @click=${this._viewDiagram} @keydown=${n=>g(n,()=>this._viewDiagram(n))}>${this._translations.viewDiagram}</calcite-dropdown-item>`||""}<calcite-dropdown-item icon-start=file-text @click=${this._viewDocumentation} @keydown=${n=>g(n,()=>this._viewDocumentation(n))}>${this._translations.documentation}</calcite-dropdown-item><calcite-dropdown-item icon-start=information @click=${this._viewItemDetails} @keydown=${n=>g(n,()=>this._viewItemDetails(n))}>${this._translations.viewItemDetails}</calcite-dropdown-item>${!this.isMobile&&a&&l`<calcite-dropdown-item icon-start=edit-attributes id=solution-configure-titles-dropdown @click=${async()=>{this.templateInfos=await this._processTemplates(this.card),this._configureTitlesOpen=!0}} @keydown=${n=>g(n,async()=>{this.templateInfos=await this._processTemplates(this.card),this._configureTitlesOpen=!0})}>${this._translations.renameItems}</calcite-dropdown-item>`||""}${!this.isMobile&&r&&l`<calcite-dropdown-item icon-start=trash @click=${this._deleteSolution} @keydown=${n=>g(n,()=>this._deleteSolution(n))}>${this._translations.deleteSolution}</calcite-dropdown-item>`||""}</calcite-dropdown-group><calcite-tooltip class=${D(c)} overlay-positioning=fixed reference-element=solution-configure-titles-dropdown><span>${this._translations.mustOwnSolution}</span></calcite-tooltip></calcite-split-button>`}_renderDeleteDialog(){return this._isDeleteOpen?l`<solution-delete-dialog .card=${this.card} @solutionDeleteDialogOpen=${e=>{this._isDeleteOpen=e.detail}} .open=${this._isDeleteOpen} source="Card Dropdown" ${w(this._deleteDialogRef)}></solution-delete-dialog>`:""}_renderDiagramDialog(){return this._isDiagramOpen?l`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")??m} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled scale=m width=l ${w(this._diagramDialogRef)}><solution-item-diagram .diagramKey=${this.diagramKey} .templateInfoGraph=${this.templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}_renderConfigureTitlesDialog(){return this._configureTitlesOpen?l`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async()=>{this._processTemplates(this.card).then(e=>{this.templateInfos=e}),this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this._processTemplates(this.card).then(e=>{this.templateInfos=e})}} .open=${this._configureTitlesOpen} source="Card Dropdown" .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_cardSelected(){this.deployedCardSelected.emit({card:this.card,cardRef:this.el})}async _viewDiagram(e){e.stopPropagation(),this.card&&(this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"View Diagram",dimensions:[this.card.title||"",this.card.deployCommonId||"",this.card.deployVersion||"","Card Dropdown"]}),this.templateInfoGraph=await this._processTemplates(this.card),this._isDiagramOpen=!0)}_viewDocumentation(e){e.stopPropagation(),this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Card Dropdown"]}),window.open(this.card.learnMoreUrl,"_blank")}_viewItemDetails(e){e.stopPropagation(),this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"Open Item Details",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Card Dropdown"]}),window.open(this.card.itemUrl,"_blank")}_deleteSolution(e){e.stopPropagation(),this._isDeleteOpen=!0}_openUserProfile(e){e.stopPropagation();let i=this._configContextConsumer.value?.authentication?.PortalSubset?.orgUrl;i&&window.open(`${i}/home/user.html?user=${this.owner}`,"_blank")}async _processTemplates(e){return await te(e.id,this._configContextConsumer.value.userSession)}_updateThumbnailToken(e){this._thumbnailUrl!==""&&(this._thumbnailUrl=oe(this._thumbnailUrl,e))}};v("solution-deployed-card",E);var Xe=500,Ze={AEC:"Architecture, Engineering, and Construction (AEC)",AIRPORTPORTRAIL:"Airports, Ports, and Rails",BUSINESS:"Business",CONSERVATION:"Conservation",DEFENSE:"Defense",FACILITIES:"Facilities",HEALTHANDHUMANSERVICES:"Health and Human Services",PIPELINE:"Pipeline",PUBLICSAFETY:"Public Safety",RENEWABLES:"Renewables",STATEANDLOCALGOVERNMENT:"State and Local Government",TELECOMMUNICATIONS:"Telecommunications",UTILITIES:"Utilities"},et={AIRPORT:"Airports",AGRICULTURE:"Agriculture",ASSESSMENTANDTAXATION:"Assessment and Taxation",DISTRICTENERGY:"District Energy",ELECTIONS:"Elections",ELECTRIC:"Electric",EMERGENCYMANAGEMENT:"Emergency Management",ENVIRONMENTANDNATURALRESOURCES:"Environment and Natural Resources",FIRESERVICE:"Fire Service",FISHANDWILDLIFE:"Fish and Wildlife",GAS:"Gas",HEALTHANDHUMANSERVICES:"Health and Human Services",LAWENFORCEMENT:"Law Enforcement",NATURALRESOURCES:"Natural Resources",PARKS:"Parks",PLANNINGANDDEVELOPMENT:"Planning and Development",PROTECTEDAREAS:"Protected Areas",PUBLICWORKS:"Public Works",SEWER:"Sewer",STORMWATER:"Stormwater",TELECOMMUNICATIONS:"Telecommunications",TRANSPORTATION:"Transportation",WATER:"Water Distribution"},d=(t=>(t.HUBPREMIUM="solutions:hubPremium",t.NOTEBOOK="solutions:notebook",t.TRACKINGBASE="solutions:locationtracking",t.TRACKING="solutions:locationtracking:tracking",t.TRACKINGADMIN="solutions:locationtracking:admin",t.TRACKINGADMINANDTRACKING="solutions:locationtracking:admin:tracking",t.VELOCITY="solutions:velocity",t.WORKFLOW="solutions:workflowManager",t))(d||{}),re=(t=>(t.VELOCITYBIGDATA="portal:publisher:publishBigDataAnalytics",t.VELOCITYFEEDS="portal:publisher:publishFeeds",t.VELOCITYREALTIME="portal:publisher:publishRealTimeAnalytics",t))(re||{}),tt='((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))',it="(typekeywords:Solution,Template)",le="portal:user:addExternalMembersToGroup",ce="portal:user:createItem",B="portal:user:createGroup",de="portal:publisher:publishBigDataAnalytics",K="portal:publisher:publishFeatures",ue="portal:publisher:publishFeeds",pe="portal:publisher:publishServerGPServices",he="portal:publisher:publishRealTimeAnalytics",F="portal:user:shareToGroup",me="solutions:hubPremium",ge="solutions:notebook",fe="solutions:locationtracking:admin:tracking",ye="solutions:locationtracking:tracking",we="solutions:locationtracking:admin",be="solutions:velocity",Te="solutions:workflowManager",Ee=250,T={SOLUTION_DETAILS:"Solution Details",GLOBAL_NAVIGATION:"Global Nav",ALL_SOLUTIONS:"Solutions",DEPLOYMENTS:"Deployments",ASSISTANT:"Assistant",RESOURCES:"Resources"},st={MINE:"My deployments",ORG:"Organization"};return{a:Me,b:J,c:xe,d:Z,e:Ue,f:ee,g:$e,h:Pe,i:Ge,j:Be,k:Ke,l:Fe,m:He,n:We,o:Ve,p:ze,q:Ye,r:g,s:te,t:qe,u:H,v:je,w:Je,x:Qe,y:oe,z:E,A:Xe,B:Ze,C:et,D:d,E:re,F:tt,G:it,H:Ee,I:T,J:st}},"identity/IdentityManager","identity/OAuthInfo","portal/Portal","intl")