@esri/solutions-components 5.1.0-next.95 → 5.1.0-next.96

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 (135) hide show
  1. package/dist/cdn/{XAW6KPKL.js → 2BUUN32T.js} +1 -1
  2. package/dist/cdn/{ZGEMIOB5.js → 2NVL4Z5G.js} +1 -1
  3. package/dist/cdn/{WVRKV5SS.js → 3CDDDNHX.js} +1 -1
  4. package/dist/cdn/{4B7NJE47.js → 3EVMNCX6.js} +1 -1
  5. package/dist/cdn/{2VXTMCRJ.js → 3JQP6RGM.js} +1 -1
  6. package/dist/cdn/5K6B2WSQ.js +2 -0
  7. package/dist/cdn/{QYDGCI2P.js → 63RUMXWC.js} +1 -1
  8. package/dist/cdn/{UHPN75WT.js → 6HZIF7DC.js} +1 -1
  9. package/dist/cdn/{C7ASL3A4.js → 6ZRRFBIZ.js} +1 -1
  10. package/dist/cdn/{NPOHA56R.js → 7RK7YWYV.js} +1 -1
  11. package/dist/cdn/{4QZ7WHXA.js → AG22WAP3.js} +1 -1
  12. package/dist/cdn/{DI7PQSFH.js → AMEUOI76.js} +1 -1
  13. package/dist/cdn/{ZP6VPBP4.js → BGXRCU7G.js} +1 -1
  14. package/dist/cdn/{5OF3YOO7.js → BIVYOKLF.js} +1 -1
  15. package/dist/cdn/{WRSVJIPA.js → BSXTZCNH.js} +1 -1
  16. package/dist/cdn/DRXERUDE.js +2 -0
  17. package/dist/cdn/{3ZZ726LQ.js → DSLOJFRD.js} +1 -1
  18. package/dist/cdn/{5LTIZSXG.js → EN6E35NY.js} +1 -1
  19. package/dist/cdn/{FVXS4LF5.js → ESBPGZRY.js} +1 -1
  20. package/dist/cdn/{R3MCMOLS.js → EVEXF6IH.js} +2 -2
  21. package/dist/cdn/{55NRVFJ5.js → FZBIZBOO.js} +1 -1
  22. package/dist/cdn/{KYFNXHOH.js → G7N3V3YJ.js} +1 -1
  23. package/dist/cdn/{ELPH6EFW.js → I2GXCEQM.js} +1 -1
  24. package/dist/cdn/{4HPFDUTJ.js → IC2D4LPZ.js} +1 -1
  25. package/dist/cdn/{FGWGYIBZ.js → KLLT6LQO.js} +1 -1
  26. package/dist/cdn/{KW6YOUWC.js → MWMNRIUD.js} +1 -1
  27. package/dist/cdn/{CWXOH2PC.js → NBX7J6DU.js} +1 -1
  28. package/dist/cdn/{JC5EXPFH.js → NEM3F44J.js} +1 -1
  29. package/dist/cdn/{2HUG6L4M.js → OF33IXBV.js} +1 -1
  30. package/dist/cdn/{2O3HAXKG.js → OZE4W3UQ.js} +1 -1
  31. package/dist/cdn/PVM4ETZ7.js +2 -0
  32. package/dist/cdn/QADMFYXT.js +2 -0
  33. package/dist/cdn/QKJ4PGBO.js +2 -0
  34. package/dist/cdn/RTA6KNSK.js +2 -0
  35. package/dist/cdn/{SJCXI4TB.js → RX3VLQGY.js} +1 -1
  36. package/dist/cdn/{CHZWEULM.js → SAI5O6SI.js} +1 -1
  37. package/dist/cdn/{3J47AYBV.js → TRBSV6ZY.js} +100 -100
  38. package/dist/cdn/{5BU6XZAD.js → TTV5UYNT.js} +1 -1
  39. package/dist/cdn/{2B2ANB2N.js → U6CZXWSF.js} +1 -1
  40. package/dist/cdn/{GJTXLQOS.js → URVOLZIY.js} +1 -1
  41. package/dist/cdn/{XXT542UR.js → UYY6JODL.js} +1 -1
  42. package/dist/cdn/VFZ2J4EW.js +2 -0
  43. package/dist/cdn/VRM54VB2.js +2 -0
  44. package/dist/cdn/{IGSOHYV3.js → XGZCGPHU.js} +1 -1
  45. package/dist/cdn/{JJ7JB2ZP.js → Y5N6ESUO.js} +1 -1
  46. package/dist/cdn/YDNNXKDK.js +2 -0
  47. package/dist/cdn/{O3SWSZQE.js → ZKGLAGUM.js} +1 -1
  48. package/dist/cdn/ZPWKF5SM.js +2 -0
  49. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
  50. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
  51. package/dist/cdn/assets/solution-details-card/t9n/messages.ar.json +1 -1
  52. package/dist/cdn/assets/solution-details-card/t9n/messages.bg.json +1 -1
  53. package/dist/cdn/assets/solution-details-card/t9n/messages.bs.json +1 -1
  54. package/dist/cdn/assets/solution-details-card/t9n/messages.ca.json +1 -1
  55. package/dist/cdn/assets/solution-details-card/t9n/messages.cs.json +1 -1
  56. package/dist/cdn/assets/solution-details-card/t9n/messages.da.json +1 -1
  57. package/dist/cdn/assets/solution-details-card/t9n/messages.de.json +1 -1
  58. package/dist/cdn/assets/solution-details-card/t9n/messages.el.json +1 -1
  59. package/dist/cdn/assets/solution-details-card/t9n/messages.es.json +1 -1
  60. package/dist/cdn/assets/solution-details-card/t9n/messages.et.json +1 -1
  61. package/dist/cdn/assets/solution-details-card/t9n/messages.fi.json +1 -1
  62. package/dist/cdn/assets/solution-details-card/t9n/messages.fr.json +1 -1
  63. package/dist/cdn/assets/solution-details-card/t9n/messages.he.json +1 -1
  64. package/dist/cdn/assets/solution-details-card/t9n/messages.hr.json +1 -1
  65. package/dist/cdn/assets/solution-details-card/t9n/messages.hu.json +1 -1
  66. package/dist/cdn/assets/solution-details-card/t9n/messages.id.json +1 -1
  67. package/dist/cdn/assets/solution-details-card/t9n/messages.it.json +1 -1
  68. package/dist/cdn/assets/solution-details-card/t9n/messages.ja.json +1 -1
  69. package/dist/cdn/assets/solution-details-card/t9n/messages.ko.json +1 -1
  70. package/dist/cdn/assets/solution-details-card/t9n/messages.lt.json +1 -1
  71. package/dist/cdn/assets/solution-details-card/t9n/messages.lv.json +1 -1
  72. package/dist/cdn/assets/solution-details-card/t9n/messages.nl.json +1 -1
  73. package/dist/cdn/assets/solution-details-card/t9n/messages.no.json +1 -1
  74. package/dist/cdn/assets/solution-details-card/t9n/messages.pl.json +1 -1
  75. package/dist/cdn/assets/solution-details-card/t9n/messages.pt-BR.json +1 -1
  76. package/dist/cdn/assets/solution-details-card/t9n/messages.pt-PT.json +1 -1
  77. package/dist/cdn/assets/solution-details-card/t9n/messages.ro.json +1 -1
  78. package/dist/cdn/assets/solution-details-card/t9n/messages.ru.json +1 -1
  79. package/dist/cdn/assets/solution-details-card/t9n/messages.sk.json +1 -1
  80. package/dist/cdn/assets/solution-details-card/t9n/messages.sl.json +1 -1
  81. package/dist/cdn/assets/solution-details-card/t9n/messages.sr.json +1 -1
  82. package/dist/cdn/assets/solution-details-card/t9n/messages.sv.json +1 -1
  83. package/dist/cdn/assets/solution-details-card/t9n/messages.th.json +1 -1
  84. package/dist/cdn/assets/solution-details-card/t9n/messages.tr.json +1 -1
  85. package/dist/cdn/assets/solution-details-card/t9n/messages.uk.json +1 -1
  86. package/dist/cdn/assets/solution-details-card/t9n/messages.vi.json +1 -1
  87. package/dist/cdn/assets/solution-details-card/t9n/messages.zh-CN.json +1 -1
  88. package/dist/cdn/assets/solution-details-card/t9n/messages.zh-HK.json +1 -1
  89. package/dist/cdn/assets/solution-details-card/t9n/messages.zh-TW.json +1 -1
  90. package/dist/cdn/assets/solution-item-accordion/t9n/messages.en.json +1 -1
  91. package/dist/cdn/assets/solution-item-accordion/t9n/messages.json +1 -1
  92. package/dist/cdn/index.js +1 -1
  93. package/dist/chunks/cardFetchingUtils.js +1 -1
  94. package/dist/chunks/converter.js +5 -4
  95. package/dist/chunks/helpers.js +61 -39
  96. package/dist/chunks/solution-deploy-dialog.js +1 -1
  97. package/dist/chunks/solutions-deploy-app-nav.js +1 -1
  98. package/dist/components/arcgis-solutions-assistant/customElement.js +4962 -4647
  99. package/dist/components/solution-configure-titles/customElement.js +36 -38
  100. package/dist/components/solution-delete-dialog/customElement.js +49 -51
  101. package/dist/components/solution-deployed-card-panel/customElement.js +35 -38
  102. package/dist/components/solution-details-card/customElement.js +24 -32
  103. package/dist/components/solution-details-panel/customElement.js +1 -1
  104. package/dist/components/solution-item-accordion/customElement.d.ts +2 -0
  105. package/dist/components/solution-item-accordion/customElement.js +25 -32
  106. package/dist/components/solution-item-accordion/index.js +0 -1
  107. package/dist/components/solutions-all-panel/customElement.d.ts +2 -0
  108. package/dist/components/solutions-all-panel/customElement.js +48 -33
  109. package/dist/components/solutions-all-shell/customElement.js +94 -40
  110. package/dist/components/solutions-deployed-list/customElement.d.ts +9 -9
  111. package/dist/components/solutions-deployed-list/customElement.js +3 -3
  112. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  113. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  114. package/dist/docs/api.json +1 -1
  115. package/dist/docs/docs.json +1 -1
  116. package/dist/docs/vscode.html-custom-data.json +1 -1
  117. package/dist/docs/web-types.json +1 -1
  118. package/dist/loader.js +2 -2
  119. package/dist/solutions-components_commit.txt +7 -7
  120. package/dist/types/lumina.d.ts +1 -1
  121. package/dist/types/preact.d.ts +1 -1
  122. package/dist/types/react.d.ts +1 -1
  123. package/dist/types/stencil.d.ts +1 -1
  124. package/dist/utils/interfaces.d.ts +9 -1
  125. package/package.json +1 -1
  126. package/dist/cdn/2ID55IJB.js +0 -2
  127. package/dist/cdn/2SGR44DX.js +0 -2
  128. package/dist/cdn/74MDW73I.js +0 -2
  129. package/dist/cdn/ADPYDJG6.js +0 -2
  130. package/dist/cdn/AJZHT4GA.js +0 -2
  131. package/dist/cdn/ITLTQWCX.js +0 -2
  132. package/dist/cdn/IYUTLV2O.js +0 -2
  133. package/dist/cdn/K6WLYYPH.js +0 -2
  134. package/dist/cdn/R4VHCXKS.js +0 -2
  135. package/dist/cdn/X5EABWHE.js +0 -2
package/dist/loader.js CHANGED
@@ -53,11 +53,11 @@ const l = a(e, {
53
53
  "solution-snapshot-gallery": [() => import("./components/solution-snapshot-gallery/customElement.js"), "_translations:,card:,itemProperties:,open,screenshot:"],
54
54
  "solution-social-share": [() => import("./components/solution-social-share/customElement.js"), "_translations:,actionApperance,autoUpdateShareUrl,buttonAppearance,inlineSuccessPopoverPlacement,mode,popoverButtonIconScale,popoverPositioning,removePopoverOffset,scale,shareButtonKind,shareButtonScale,shareButtonText,shareButtonType,shareIconsLayout,shareText,shareUrl,shortenShareUrl,socialMedia,solutionId,solutionTitle,solutionVersion,successMessage"],
55
55
  "solution-user-avatar": [() => import("./components/solution-user-avatar/customElement.js"), "fullname,lookupProfile,thumbnailUrl,username"],
56
- "solutions-all-panel": [() => import("./components/solutions-all-panel/customElement.js"), "_translations:,sortType;searchSolutions,setSearchOptions"],
56
+ "solutions-all-panel": [() => import("./components/solutions-all-panel/customElement.js"), "_translations:,sortType;searchSolutions,setSearchOptions;getDisplayedSolutionIds"],
57
57
  "solutions-all-shell": [() => import("./components/solutions-all-shell/customElement.js"), "_translations:,solutionsCount;searchSolutions"],
58
58
  "solutions-deploy-app": [() => import("./components/solutions-deploy-app/customElement.js"), "_translations:,appConfig,initTab,initTitleOrId,loadExampleBuilderData,sortType,useLocalAppConfig;selectTab"],
59
59
  "solutions-deploy-app-nav": [() => import("./components/solutions-deploy-app-nav/customElement.js"), "_translations:,appConfig,assistantOpen,initTab;;activateMenuItem,clearMenuItems"],
60
- "solutions-deployed-list": [() => import("./components/solutions-deployed-list/customElement.js"), "_translations:,cards:,listTitle"],
60
+ "solutions-deployed-list": [() => import("./components/solutions-deployed-list/customElement.js"), "_translations:,cards:,hasLinks,listTitle"],
61
61
  "solutions-deployed-panel": [() => import("./components/solutions-deployed-panel/customElement.js"), "_translations:,sortType;reload,searchSolutions,setSearchOptions"],
62
62
  "solutions-deployed-shell": [() => import("./components/solutions-deployed-shell/customElement.js"), "_translations:,solutionsCount;searchSolutions"],
63
63
  "solutions-filter-panel": [() => import("./components/solutions-filter-panel/customElement.js"), "_translations:,hideIndustryFilter,showReset;;changeIndustryFilter,clearFilters"],
@@ -1,10 +1,10 @@
1
- Built 04/23/2026 19:48:00.58
1
+ Built 04/24/2026 19:48:03.88
2
2
  develop
3
- commit b295d977ec35387031304310562dfa1f38d03dd9
4
- Merge: 09a9f0905 da7bd5b2f
5
- Author: Previn Wong <pwong@esri.com>
6
- Date: Thu Apr 23 16:57:10 2026 -0700
3
+ commit 6898acc9889e0e36f6ae969d5a1dee24a7f3f644
4
+ Merge: 80f1c154d 498913323
5
+ Author: John Hauck <jhauck@esri.com>
6
+ Date: Fri Apr 24 14:48:29 2026 -0600
7
7
 
8
- Merge pull request #2308 from Esri/prev8048-accordion-chips
8
+ Merge pull request #2314 from Esri/prev8048-accordion-chips
9
9
 
10
- forgot an import
10
+ Clean up dependency chip tooltip work
@@ -348,7 +348,7 @@ interface LuminaSolutionsDeployAppNav extends Partial<Pick<SolutionsDeployAppNav
348
348
  ontokenRefreshed?: EventHandler<SolutionsDeployAppNav["tokenRefreshed"]>;
349
349
  }
350
350
 
351
- interface LuminaSolutionsDeployedList extends Partial<Pick<SolutionsDeployedList, "cards" | "listTitle">>, h.JSX.HTMLAttributes<SolutionsDeployedList> {
351
+ interface LuminaSolutionsDeployedList extends Partial<Pick<SolutionsDeployedList, "cards" | "hasLinks" | "listTitle">>, h.JSX.HTMLAttributes<SolutionsDeployedList> {
352
352
  ondeployedCardsClicked?: EventHandler<SolutionsDeployedList["deployedCardsClicked"]>;
353
353
  }
354
354
 
@@ -349,7 +349,7 @@ interface PreactSolutionsDeployAppNav extends Partial<Pick<SolutionsDeployAppNav
349
349
  ontokenRefreshed?: EventHandler<SolutionsDeployAppNav["tokenRefreshed"]>;
350
350
  }
351
351
 
352
- interface PreactSolutionsDeployedList extends Partial<Pick<SolutionsDeployedList, "cards" | "listTitle">>, HTMLAttributes<SolutionsDeployedList> {
352
+ interface PreactSolutionsDeployedList extends Partial<Pick<SolutionsDeployedList, "cards" | "hasLinks" | "listTitle">>, HTMLAttributes<SolutionsDeployedList> {
353
353
  ondeployedCardsClicked?: EventHandler<SolutionsDeployedList["deployedCardsClicked"]>;
354
354
  }
355
355
 
@@ -349,7 +349,7 @@ interface ReactSolutionsDeployAppNav extends Partial<Pick<SolutionsDeployAppNav,
349
349
  ontokenRefreshed?: EventHandler<SolutionsDeployAppNav["tokenRefreshed"]>;
350
350
  }
351
351
 
352
- interface ReactSolutionsDeployedList extends Partial<Pick<SolutionsDeployedList, "cards" | "listTitle">>, HTMLProps<SolutionsDeployedList> {
352
+ interface ReactSolutionsDeployedList extends Partial<Pick<SolutionsDeployedList, "cards" | "hasLinks" | "listTitle">>, HTMLProps<SolutionsDeployedList> {
353
353
  ondeployedCardsClicked?: EventHandler<SolutionsDeployedList["deployedCardsClicked"]>;
354
354
  }
355
355
 
@@ -349,7 +349,7 @@ interface StencilSolutionsDeployAppNav extends Partial<Pick<SolutionsDeployAppNa
349
349
  onTokenRefreshed?: EventHandler<SolutionsDeployAppNav["tokenRefreshed"]>;
350
350
  }
351
351
 
352
- interface StencilSolutionsDeployedList extends Partial<Pick<SolutionsDeployedList, "cards" | "listTitle">>, StencilJsx.HTMLAttributes<SolutionsDeployedList> {
352
+ interface StencilSolutionsDeployedList extends Partial<Pick<SolutionsDeployedList, "cards" | "hasLinks" | "listTitle">>, StencilJsx.HTMLAttributes<SolutionsDeployedList> {
353
353
  onDeployedCardsClicked?: EventHandler<SolutionsDeployedList["deployedCardsClicked"]>;
354
354
  }
355
355
 
@@ -145,6 +145,14 @@ export interface ITemplateInfo {
145
145
  url?: string;
146
146
  }
147
147
 
148
+ /** Mini set of information for tooltip or small lists */
149
+ export interface ISolutionItemMiniContext {
150
+ id: string;
151
+ title: string;
152
+ deployVersion: string;
153
+ created: number;
154
+ }
155
+
148
156
  export type ILayerItemsHash = { [key: string]: ILayerDetailsHash; };
149
157
 
150
158
  export interface ILayerDetailsHash {
@@ -404,7 +412,7 @@ export type SortType = "relevance" | "title" | "new" | "updated" | "suggested" |
404
412
 
405
413
  export type SortOrder = "asc" | "desc";
406
414
 
407
- export type FilterType = "type" | "industry" | "domain" | "owner";
415
+ export type FilterType = "type" | "industry" | "domain" | "owner" | "solution";
408
416
 
409
417
  export const EIndustry: {
410
418
  AEC: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solutions-components",
3
- "version": "5.1.0-next.95",
3
+ "version": "5.1.0-next.96",
4
4
  "description": "Web Components for Esri's Solutions Applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import j from"./NPOHA56R.js";import h from"./XAW6KPKL.js";import e from"./ZP6VPBP4.js";import d from"./XXT542UR.js";import a from"./X5EABWHE.js";import{a as _,b as v}from"./2B4SGB3I.js";import{b as g}from"./YKQDHR27.js";import{la as w,ra as y}from"./J75MHJID.js";import{a as x}from"./R67EKKSL.js";import{b}from"./KIUBUHVM.js";import{G as u,I as f,K as c,h as m,i,q as r}from"./H5E6ISYP.js";export default $arcgis.t(([{r:$},{c:C},{a:k,c:D,o:l},{a:S},{d:p,h:I,i:T}])=>{var O=m`.negative-tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.font-weight-med{font-weight:var(--calcite-font-weight-medium)}.font-weight-bold{font-weight:var(--calcite-font-weight-bold)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.font-1{font-size:var(--calcite-spacing-lg)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}@container (min-width: 801px){.font-size-override .display-flex.flex-direction-row>.image-width+.display-flex{flex:1;min-width:0}}.icon-color{color:var(--calcite-color-text-3)}.padding-bottom-lg{padding-bottom:var(--calcite-spacing-lg)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.align-items-center{align-items:center}.align-items-start{align-items:start}.font-size-override{--calcite-font-size--2: var(--calcite-font-size--1)}.background-color-1{background-color:var(--calcite-color-surface-2)}.background-color-2{background-color:var(--calcite-color-surface-3)}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.position-relative{position:relative}.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-surface-3);background-color:var(--calcite-color-surface-3)}.panel-background-1{--calcite-panel-background-color: var(--calcite-color-surface-2);--calcite-shell-panel-background-color: var(--calcite-color-surface-2)}.border-none{border:none}.font-color-1{color:var(--calcite-color-text-1)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.bottom-border{border-bottom:solid var(--calcite-spacing-px);color:var(--calcite-color-border-1)}.margin-start-end-xxl{margin-inline-start:var(--calcite-spacing-xxl);margin-inline-end:var(--calcite-spacing-xxl)}.margin-start-end-lg{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg)}.margin-top-xxl{margin-top:var(--calcite-spacing-xxl)}.justify-between{justify-content:space-between}.items-baseline{align-items:baseline}.padding-xxl{padding:var(--calcite-spacing-xxl)}.padding-lg{padding:var(--calcite-spacing-lg)}.padding-top-xxl{padding-top:var(--calcite-spacing-xxl)}.padding-top-lg{padding-top:var(--calcite-spacing-lg)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-xxl{padding-inline-end:var(--calcite-spacing-xxl)}.padding-start-sm{padding-inline-start:var(--calcite-spacing-sm)}.padding-start-xxl{padding-inline-start:var(--calcite-spacing-xxl)}.image-width{width:300px;flex-grow:0;flex-shrink:0}@container (max-width: 1280px){.image-width{flex-grow:0;flex-shrink:1}}img{max-width:100%;height:auto;overflow-clip-margin:content-box;overflow:clip;display:block}.margin-xl{margin:var(--calcite-spacing-xl)}.line-height-1{line-height:1.1}.line-height-xxl{line-height:var(--calcite-line-height-xxl)}@container (max-width: 800px){.font-size-override .display-flex.flex-direction-row{flex-direction:column!important}.image-width{width:100%!important;max-width:100%!important;margin:0!important;padding:var(--calcite-spacing-lg)!important;padding-bottom:0!important;box-sizing:border-box}.image-width img{width:100%;max-width:100%}.margin-xl{margin:0!important}.image-width+.display-flex{padding-inline-start:var(--calcite-spacing-lg)!important;padding-inline-end:var(--calcite-spacing-lg)!important}.padding-start-sm{padding-inline-start:0!important}.title-font{padding-inline-start:0!important;padding-top:var(--calcite-spacing-lg)!important;padding-bottom:var(--calcite-spacing-lg)!important}.align-items-start.padding-bottom-xxl,.padding-bottom-xxl.padding-start-sm{padding-bottom:var(--calcite-spacing-lg)!important}}calcite-shell-panel{--calcite-shell-panel-max-width: 20rem;--calcite-shell-panel-width: 24vw}calcite-shell{block-size:unset}.solution-deployed-action{--calcite-color-focus: initial}.skeleton-loader{background:linear-gradient(90deg,var(--calcite-color-foreground-1) 0%,var(--calcite-color-foreground-2) 50%,var(--calcite-color-foreground-1) 100%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:var(--calcite-border-radius)}.skeleton-folder{height:1.5rem;width:12rem;border-radius:var(--calcite-border-radius)}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}`,h=class extends u{constructor(){super(),this.diagramKey="",this.open=!1,this.templateInfos=[],this._accordionLoading=!1,this._configureTitlesOpen=!1,this._deleteDialogOpen=!1,this._hasNewVersion=!1,this._isDiagramOpen=!1,this._isNameConflict=!1,this._invalidNameMessage="",this._showFailedAlert=!1,this._showItemUpdateLoading=!1,this.isMobile=!1,this._templateInfoGraph=[],this._thumbnailUrl="",this._folderName="",this._folderId=null,this._folderLoading=!1,this._translations=x({name:"solution-deployed-card-panel",blocking:!0}),this._configContextConsumer=g({context:v,subscribe:!0,callback:async e=>{e&&(this._isOrgAdmin=D(e.authentication),this._user=e.authentication?.Portal?.user)}}),this._isOrgAdmin=!1,this._isMobileContextConsumer=g({context:_,subscribe:!0,callback:e=>this.isMobile=e}),this.navTabSelected=r(),this.forceSelectTab=r(),this.sortTypeChanged=r(),this.solutionConfigureDialogClose=r(),this._nonSolutionDependencyItems=[],this._openFolder=e=>{e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Folder",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]});let t=this._configContextConsumer.value?.orgUrl;if(!t)return;let a=this._configContextConsumer.value?.userSession?.username,n=this.card?.owner===a,o;if(n){let s=this._folderId||this.card?.owner;o=`${t}/home/content.html?folder=${s}`}else this._folderId?o=`${t}/home/content.html?user=${this.card?.owner}&folder=${this._folderId}`:o=`${t}/home/content.html?user=${this.card?.owner}&folder=${this.card?.owner}`;window.open(o,"_blank")},this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected),this.listenOn(window,"displayDeployedCard",()=>{$({kind:"success",icon:"check-circle",title:this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title??""),message:"",autoClose:!0,autoCloseDuration:"medium"})}),this.listenOn(window,"sessionRefreshed",e=>{this._updateThumbnailToken(e.detail)})}static{this.properties={card:0,cardRef:1,diagramKey:1,open:5,templateInfos:0,_accordionLoading:16,_configureTitlesOpen:16,_deleteDialogOpen:16,_hasNewVersion:16,_isDiagramOpen:16,_isNameConflict:16,_invalidNameMessage:16,_showFailedAlert:16,_showItemUpdateLoading:16,isMobile:16,_templateInfoGraph:16,_thumbnailUrl:16,_folderName:16,_folderId:16,_folderLoading:16,_translations:16,_nonSolutionDependencyItems:16}}static{this.styles=O}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async load(){if(this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value),this.card?.thumbnailUrl){let e=this._configContextConsumer.value?.userSession,t=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400");this._thumbnailUrl=`${t}&token=${e?.token}`}}willUpdate(e){if(e.has("card")){let t=this._configContextConsumer.value?.userSession,a=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400");this._thumbnailUrl=`${a}&token=${t?.token}`,this._folderLoading=!0,this._folderName="",this._folderId=null}}render(){return this.isMobile?i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="background-color-2 padding-top-lg">${this._getSolutionPanel()}</div><div class="background-color-1 margin-top-xxl">${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</div>${this._getSolutionContents()}</calcite-panel></calcite-shell>`:i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="padding-end-xxl panel-background-2 border-none" slot=panel-bottom><div class="display-flex flex-direction-column overflow-hidden"><div class="background-color-2 padding-top-xxl">${this._getSolutionPanel()}</div>${this._getSolutionContents()}</div></calcite-panel><calcite-shell-panel class="panel-background-1" slot=panel-end>${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</calcite-shell-panel>${this._renderDiagramDialog()}${this._getConfigureTitlesDialog()}${this._getDeleteDialog()}</calcite-shell>`}async _deployedCardSelected(e){let t=e.detail;this.card=t.card,this.cardRef=t.cardRef,this.templateInfos=[],this._accordionLoading=!0,this.templateInfos=await this._getTemplates(),this._accordionLoading=!1;let a=await S(this._configContextConsumer.value.userSession,this.card);this._nonSolutionDependencyItems=a._nonSolutionDependencyItems;let n=I(this._configContextConsumer.value?.allCards||[],this.card.deployCommonId),o=!1;if(n){let s=p(n),d=p(this.card);o=s>d}this._hasNewVersion=o,this._folderLoading=!0,this._folderName="",this._folderId=null,await this._fetchFolderInfo(),this._folderLoading=!1}_handleDeployAppTabSelected(e){e.detail==="deployed-card"&&this.sortTypeChanged.emit("")}_getButtons(){let e=this._configContextConsumer.value?.userSession?.username,t=this._configContextConsumer.value?.authentication?.CanUpdateSolution,a=this._configContextConsumer.value?.authentication?.CanDeleteSolution&&this._configContextConsumer.value?.authentication?.CanUpdateSolution,n=this.card?.owner===e||this._isOrgAdmin||t,o=this.card?.owner===e||this._isOrgAdmin||a,s=n?"display-none":"",d=this.isMobile?"padding-lg":"padding-xxl";return i`<div class=${`display-flex flex-direction-column ${d}`}>${!this.isMobile&&i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button>`||""}<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button>${n&&!this.isMobile&&i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${f(s)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>`||""}${o&&!this.isMobile&&i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button>`||""}</div>`}_openConfigureTitlesDialog(){this._configureTitlesOpen=!0}_getConfigureTitlesDialog(){return this._configureTitlesOpen?i`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async()=>{this.templateInfos=await this._getTemplates(),this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this.templateInfos=await this._getTemplates()}} .open=${this._configureTitlesOpen} source="Details Page" .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_viewDocumentation(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),window.open(this.card.learnMoreUrl,"_blank")}_openItemDetails(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Item Details",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),window.open(this.card.itemUrl,"_blank")}_getOwnerSection(){if(!this._configContextConsumer?.value)return;let e=this.isMobile?"margin-start-end-lg":"margin-start-end-xxl";return i`<div class=${`display-flex padding-bottom-xxl ${e} flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l tabindex=0>${this._translations.aboutYourSolutionOwner}</calcite-label></div><solution-user-avatar .fullname=${this._user?.username===this.card?.owner?this._user?.fullName:void 0} .lookupProfile=${this._user?.username!==this.card?.owner} .thumbnailUrl=${this._user?.username===this.card?.owner?this._user?.thumbnailUrl:void 0} .username=${this.card?.owner}></solution-user-avatar></div>`}async _openDiagram(e){e.stopPropagation();let t=await this._getTemplates();t&&(this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"View Diagram",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),this._templateInfoGraph=t,this._isDiagramOpen=!0)}async _getTemplates(){return this.cardRef?await this.cardRef.getTemplates():this.card?await k(this.card.id,this._configContextConsumer.value.userSession):void 0}async _fetchFolderInfo(){if(this.card?.id)try{let e=this._configContextConsumer.value?.userSession;if(!e)return;let t=await y(this.card.id,e);if(this._folderId=t.ownerFolder??null,this._folderId){let a=await w(this.card.owner,this._folderId,e);this._folderName=a?.currentFolder?.title||this._folderId}else this._folderName=this.card.owner||"Root"}catch(e){console.error("Error fetching folder info:",e),this._folderId=null,this._folderName=""}}_getFolderSection(){let e=this.isMobile?"padding-lg":"padding-xxl",t=this._folderId?"folder":"home";return i`<div class=${`${e} display-flex flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.folder}</calcite-label><calcite-button appearance=transparent .disabled=${this._folderLoading} kind=neutral icon-start=launch2 @click=${this._openFolder}>${this._translations.openFolder}</calcite-button></div><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center">${this._folderLoading?i`<div class="skeleton-loader skeleton-folder"></div>`:i`<calcite-icon class="icon-color" .icon=${t} scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${this._folderName||"Root"}</span></div>`}</div></div></div>`}_getSolutionVersionCard(){let e=this._hasNewVersion?this._translations.newVersionAvailable:this._translations.youHaveTheLatestVersion,t=this.isMobile?"padding-lg":"padding-xxl";return i`<div class=${`${t} display-flex flex-direction-column`}><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.solutionVersion.replace("{{version}}",this.card?.deployVersion||"")}</calcite-label><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center"><calcite-icon class="icon-color" icon=clock-forward scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${e}</span></div></div></div>${this._hasNewVersion?i`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openNewVersionSolution} width=full>${this._translations.learnMoreNewVersion}</calcite-button>`:""}</div>`}async _openNewVersionSolution(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"View Latest Version",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),await new Promise(a=>setTimeout(a,100));let t=T(this._configContextConsumer.value.allCards,this.card.deployCommonId);t&&this.forceSelectTab.emit({tabType:"details",tabTitleOrId:t})}_getSolutionPanel(){return i`<calcite-panel class="font-size-override panel-background-1"><div class="display-flex flex-direction-row"><div class="image-width margin-xl"><img alt=${this.card?.title??c} src=${this._thumbnailUrl??c}></div><div class="display-flex flex-direction-column"><h1 class="title-font margin-block-start-end-0 padding-end-xxl padding-start-sm padding-top-xxl padding-bottom-xxl line-height-1 negative-tabbing-offset" tabindex=0>${this.card?.title}</h1><div class="display-flex flex-direction-column padding-bottom-xxl padding-start-sm"><div class="display-flex align-items-start padding-bottom-xxl"><div class="font-1 padding-end-1 line-height-xxl negative-tabbing-offset" tabindex=0>${this.card?.snippet}</div></div><div class="display-flex"><div class="display-flex"><calcite-label class="label-override icon-color tabbing-offset" layout=inline tabindex=0><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this._translations.aboutYourSolutionDeployedDate.replace("{{deployedDate}}",this.card?.created||"")}</calcite-label></div></div></div></div></div></calcite-panel>`}_getSolutionContents(){let e=new Set(this._nonSolutionDependencyItems.filter(a=>a.dependencyItemId!==this.card.id).map(a=>`${a.controlItemId}|${a.dependencyItemId}`)),t=Array.from(e).map(a=>{let[n,o]=a.split("|");return{controlItemId:n,dependencyItemId:o}});return i`<calcite-panel class="panel-background-1 padding-top-xxl"><calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded><div class="margin-block-start-end-0 heading-font " slot=content-start>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}",this.templateInfos.length.toString())}</div><div class="overflow-auto">${this._accordionLoading?i`<calcite-loader .label=${this._translations.loadingText} scale=m></calcite-loader>`:i`<solution-item-accordion .itemRelationshipDependencies=${t} .listSelectionMode=${t.length>0?"multiple":"single"} .reuseWarning=${this._translations.itemUsedInOtherSolutions} .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords}></solution-item-accordion>`}</div></calcite-accordion-item></calcite-accordion></calcite-panel>`}_getDeleteDialog(){return this._deleteDialogOpen?i`<solution-delete-dialog .card=${this.card} @solutionDeleted=${()=>setTimeout(()=>this.navTabSelected.emit({tabType:"deployments"}),100)} @solutionDeleteDialogBeforeClose=${()=>{this._deleteDialogOpen=!1}} .open=${this._deleteDialogOpen} source="Details Page"></solution-delete-dialog>`:""}_renderDiagramDialog(){return this._isDiagramOpen?i`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")??c} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled scale=m width=l><solution-item-diagram .diagramKey=${this.diagramKey!==""?this.diagramKey:this._configContextConsumer.value?.diagramKey??""} .templateInfoGraph=${this._templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}async _deleteSolution(){this._deleteDialogOpen=!0}_updateThumbnailToken(e){this._thumbnailUrl!==""&&(this._thumbnailUrl=C(this._thumbnailUrl,e))}};b("solution-deployed-card-panel",h);return h},a,d,e,h,j)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{c as g}from"./ZYCAAXQF.js";import i from"./XAW6KPKL.js";import e from"./ZP6VPBP4.js";import d from"./XXT542UR.js";import a from"./X5EABWHE.js";import{b as T}from"./2B4SGB3I.js";import{b as D}from"./YKQDHR27.js";import{sb as _,ta as $,tb as x,ub as b}from"./J75MHJID.js";import{a as S}from"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as v}from"./KIUBUHVM.js";import{E as m,F as h,G as I,I as f,h as C,i as u,q as c}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{m:w,o:P},{a:V}])=>{var N=C`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.font-weight-medium{font-weight:var(--calcite-font-weight-medium)}.font-style-1{font-size:1rem;color:var(--calcite-color-text-2)}.margin-top-0{margin-top:0}.padding-top-20{padding-top:20px}.padding-bottom-2{padding-bottom:2rem}.padding-left-2{padding-left:2rem}.padding-right-2{padding-right:2rem}.padding-end-1{padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.width-full{width:100%}.justify-content-space{justify-content:space-between}`,y=class extends I{constructor(){super(...arguments),this.open=!1,this.source="Card Dropdown",this.solutionData={},this.templateInfos=[],this._saveDisabled=!1,this._displayTemplateInfos=[],this._hasNameLengthError=!1,this._nonSolutionDependencyItems=[],this._solutionItemsTitlesUpdating=!1,this._translations=S({name:"solution-configure-titles",blocking:!0}),this._configContextConsumer=D({context:T,subscribe:!0}),this._defaultPrefix="",this._defaultSuffix="",this._loadingDefaultPrefix=!1,this._loadingDefaultSuffix=!1,this._prefixRef=m(),this._prefixValue="",this._suffixRef=m(),this._suffixValue="",this._templateInfos=[],this._originalTitles=[],this.solutionConfigureTitlesBeforeClose=c(),this.solutionItemsTitlesChanged=c()}static{this.properties={card:0,open:5,source:1,solutionData:1,templateInfos:0,_saveDisabled:16,_displayTemplateInfos:16,_hasNameLengthError:16,_nonSolutionDependencyItems:16,_solutionItemsTitlesUpdating:16,_translations:16}}static{this.styles=N}async willUpdate(i){if(i.has("templateInfos")&&(this._templateInfos=JSON.parse(JSON.stringify(this.templateInfos)),this._updateTemplates()),i.has("open")){let s=i.get("open");if(this.open&&!s){await this._updatePrefixSuffix(),this._templateInfos=JSON.parse(JSON.stringify(this.templateInfos)),this._originalTitles=this._templateInfos.map(t=>({id:t.id,title:t.title})),this._updateTemplates();let e=await V(this._configContextConsumer.value.userSession,this.card);this._nonSolutionDependencyItems=e._nonSolutionDependencyItems,await this._accordionRef?.expandFirstItem()}}}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async load(){this._updateTemplates(),await this._updatePrefixSuffix()}async _updatePrefixSuffix(){this.solutionData=await $(this.card.id,this._configContextConsumer.value.userSession),this.solutionData.titles?.prefix&&(this._loadingDefaultPrefix=!0,this._defaultPrefix=this.solutionData.titles.prefix,this._prefixValue=this.solutionData.titles.prefix),this.solutionData.titles?.suffix&&(this._loadingDefaultSuffix=!0,this._defaultSuffix=this.solutionData.titles.suffix,this._suffixValue=this.solutionData.titles.suffix)}render(){return u`<calcite-dialog .heading=${this.card.title} modal @calciteDialogBeforeClose=${()=>{this.solutionConfigureTitlesBeforeClose.emit()}} .open=${this.open} outside-close-disabled width=l>${this._getPrefixSuffixControls()}${this._getAccordion()}${this._getDialogButtons()}</calcite-dialog>`}_getPrefixSuffixControls(){let i=g(this._prefixValue),s=this._hasNameLengthError&&this._prefixValue.length>0,e=i.errorType!=="special-character",t=!s,a=e?"display-none":"",n=t?"display-none":"",d=e&&t?"valid":"invalid",p=g(this._suffixValue),l=this._hasNameLengthError&&this._suffixValue.length>0,o=p.errorType!=="special-character",r=!l,E=o?"display-none":"",W=r?"display-none":"",k=o&&r?"valid":"invalid";return this._saveDisabled=!e||!t||!o||!r||!this._hasChanges(),u`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-top-20"><calcite-label scale=l class="font-weight-medium"><span tabindex=0>${this._translations.configureTitlesDialogHeader}</span></calcite-label><p class="font-style-1 margin-top-0" tabindex=0>${this._translations.addPrefixOrSuffixToItems}</p><div class="display-flex flex-direction-row justify-content-space"><calcite-label class="width-full padding-end-1" scale=l>${this._translations.prefixToAddToItems}<calcite-input clearable @blur=${this._prefixInput} @input=${this._prefixInput} .placeholder=${this._translations.enterPrefixPlaceholder} .status=${d} .value=${this._prefixValue} ${h(this._prefixRef)}></calcite-input><calcite-input-message class=${f(a)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${f(n)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label><calcite-label class="width-full" scale=l>${this._translations.suffixToAddToItems}<calcite-input clearable @blur=${this._suffixInput} @input=${this._suffixInput} .placeholder=${this._translations.enterSuffixPlaceholder} .status=${k} .value=${this._suffixValue} ${h(this._suffixRef)}></calcite-input><calcite-input-message class=${f(E)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${f(W)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label></div></div>`}_getAccordion(){let i=new Set(this._nonSolutionDependencyItems.filter(e=>e.dependencyItemId!==this.card.id).map(e=>`${e.controlItemId}|${e.dependencyItemId}`)),s=Array.from(i).map(e=>{let[t,a]=e.split("|");return{controlItemId:t,dependencyItemId:a}});return u`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-bottom-2"><p class="font-style-1 margin-top-0">${this._translations.previewTheChanges}</p><solution-item-accordion .itemRelationshipDependencies=${s} list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReuseWarning} .templateInfos=${this._displayTemplateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=rename ${h(async e=>{e&&(this._accordionRef=e)})}></solution-item-accordion></div>`}_getDialogButtons(){return u`<div slot=footer-end><calcite-button appearance=outline class="padding-end-1-2" kind=brand @click=${this._closeDialog}>${this._translations.cancelTheDialog}</calcite-button><calcite-button .disabled=${this._saveDisabled} kind=brand .loading=${this._solutionItemsTitlesUpdating} @click=${this._commitNameChanges}>${this._translations.applyChangesAndCloseTheDialog}</calcite-button></div>`}_prefixInput(){clearTimeout(this._textInputTimeout),this._textInputTimeout=setTimeout(()=>{this._prefixValue=this._prefixRef.value?.value||"",this._updateTemplates()},500)}_suffixInput(){clearTimeout(this._textInputTimeout),this._textInputTimeout=setTimeout(()=>{this._suffixValue=this._suffixRef.value?.value||"",this._updateTemplates()},500)}_updateTemplates(){let i=this._configContextConsumer.value?.authentication?.CanUpdateSolution??!1,s=this._configContextConsumer.value?.authentication?.PortalUserName;this._templateInfos=this._templateInfos.map(t=>(this._loadingDefaultPrefix&&t.title.startsWith(this._prefixValue)&&(t.title=this._replaceStart(t.title,this._prefixValue,"")),this._loadingDefaultSuffix&&t.title.endsWith(this._suffixValue)&&(t.title=this._replaceAtEnd(t.title,this._suffixValue,"")),t));let e=JSON.parse(JSON.stringify(this._templateInfos));this._hasNameLengthError=!1,this._displayTemplateInfos=e.map(t=>{let a=this._prefixValue!=="",n=this._suffixValue!=="",d=this._defaultPrefix!=="",p=this._defaultSuffix!=="";if(t.owner!==s&&!i)return t;let l=t.title;a&&(d?this._originalTitles.find(r=>r.id===t.id)?.title.startsWith(this._defaultPrefix)?l=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue):this._prefixValue!==this._defaultPrefix&&(l=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue)):l=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue));let o=l;return n&&(p?this._originalTitles.find(r=>r.id===t.id)?.title.endsWith(this._defaultSuffix)?o=this._applySuffixWithDuplicateCheck(l,this._suffixValue):this._suffixValue!==this._defaultSuffix&&(o=this._applySuffixWithDuplicateCheck(l,this._suffixValue)):o=this._applySuffixWithDuplicateCheck(l,this._suffixValue)),t.title=o,this._hasNameLengthError||(this._hasNameLengthError=t.title.length>w),t}),this._loadingDefaultPrefix=!1,this._loadingDefaultSuffix=!1}_replaceStart(i,s,e){return i.startsWith(s)?`${e}${i.slice(s.length)}`:i}_replaceAtEnd(i,s,e){return i.endsWith(s)?`${i.substring(0,i.length-s.length)}${e}`:i}_applyPrefixWithDuplicateCheck(i,s){return!s||i.startsWith(s)?i:s+i}_applySuffixWithDuplicateCheck(i,s){return!s||i.endsWith(s)?i:i+s}_hasChanges(){let i=this._defaultPrefix!==this._prefixValue,s=this._defaultSuffix!==this._suffixValue;return this._displayTemplateInfos.some(e=>{let t=this._originalTitles.find(a=>a.id===e.id);return t&&t.title!==e.title})||i||s}_closeDialog(){this.open=!1}async _commitNameChanges(){if(this._hasChanges()){this._telemetry?.logEvent({category:P.DEPLOYMENTS,action:"Rename Items",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",this.source]}),this._solutionItemsTitlesUpdating=!0;let i=this._configContextConsumer.value?.authentication?.CanUpdateSolution??!1,s=this._configContextConsumer.value?.authentication?.PortalUserName,e=this._displayTemplateInfos.reduce((t,a)=>{if(a.owner!==s){if(i){let n={id:a.id,title:a.title};t.push(a.type==="Group"?x(n,this._configContextConsumer.value.userSession):_(n,this._configContextConsumer.value.userSession,void 0,{solutionOwner:this.card?.owner}))}}else{let n={id:a.id,title:a.title};t.push(a.type==="Group"?x(n,this._configContextConsumer.value.userSession):_(n,this._configContextConsumer.value.userSession,void 0,{solutionOwner:this.card?.owner}))}return t},[]);if(this.solutionData?.templates){let t={id:this.card.id},a={...this.solutionData,titles:{prefix:this._prefixValue,suffix:this._suffixValue}};e.push(b(t,a,this._configContextConsumer.value.userSession,void 0,void 0,null,this.card?.owner))}await Promise.all(e),this._solutionItemsTitlesUpdating=!1,this.solutionItemsTitlesChanged.emit()}this._closeDialog()}};v("solution-configure-titles",y);return y},a,d,e,i)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import i from"./XAW6KPKL.js";import"./R4VHCXKS.js";import h from"./ZP6VPBP4.js";import e from"./XXT542UR.js";import b from"./X5EABWHE.js";import{b as I}from"./2B4SGB3I.js";import{b as D}from"./YKQDHR27.js";import{_b as y}from"./J75MHJID.js";import{a as f}from"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as _}from"./KIUBUHVM.js";import{E as u,F as d,G as g,I as r,h as m,i as a,l as p,q as c}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([,{a:b},{c:w,o:$},{a:C,b:v}])=>{var P=m`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.deletion-note-text{display:inline-block}.deletion-note-container{display:flex;align-items:center;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size-0);margin-bottom:var(--calcite-spacing-md)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.display-none{display:none}calcite-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.loader-text{margin-top:var(--calcite-spacing-md);margin-bottom:var(--calcite-spacing-xl);text-align:center;font-size:var(--calcite-font-size-relative-base);color:var(--calcite-color-text-1)}.padding-around{padding:12px 2rem 2rem}`,h=class extends g{constructor(){super(),this.open=!1,this.source="Card Dropdown",this._deletePercentage=0,this._fetchingTemplates=!1,this._isDeleteInProgress=!1,this._nonSolutionDependencyItems=[],this._showDeleteError=!1,this._showUndeletableItems=!1,this._templateInfos=[],this._translations=f({name:"solution-delete-dialog",blocking:!0}),this._accordion=u(),this._configContextConsumer=D({context:I,subscribe:!0}),this.solutionDeleteDialogOpen=c(),this.solutionDeleted=c(),this.solutionDeleteDialogBeforeClose=c(),this.listenOn(window,"beforeunload",t=>{this._isDeleteInProgress&&(t.preventDefault(),t.returnValue=!0)})}static{this.properties={card:0,open:5,source:1,_deletePercentage:16,_fetchingTemplates:16,_isDeleteInProgress:16,_nonSolutionDependencyItems:16,_showDeleteError:16,_showUndeletableItems:16,_templateInfos:16,_translations:16}}static{this.styles=P}get _hasAdminDeletePermission(){return this._configContextConsumer.value?.authentication?w(this._configContextConsumer.value?.authentication):!1}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}close(){this._showUndeletableItems&&this.solutionDeleted.emit({showAlert:!1,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._showDeleteError=!1,this._showUndeletableItems=!1,this._isDeleteInProgress=!1,this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}delete(){if(this._telemetry?.logEvent({category:$.DEPLOYMENTS,action:"Delete Solution",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",this.source]}),this._isDeleteInProgress=!0,this.card){let t=[{itemName:this.card.title,itemType:"Solution",owner:this.card.owner,modified:this.card.modified}],s={progressCallback:n=>{this._deletePercentage=Math.round(n)},solutionOwner:this.card.owner};y(this.card.id,this._configContextConsumer.value.userSession,s).then(n=>{let o=n[1],l;if(o?l=o.items.map(e=>({itemName:e.title,itemType:e.type,owner:e.owner,modified:e.modified})):l=t,l.length===0)this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._isDeleteInProgress=!1,this.open=!1;else if(l.some(e=>e.itemType==="Solution"))this.card?v(this.card,this._configContextConsumer.value.userSession).then(e=>{this._templateInfos=e,this._showDeleteError=!0,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}):(this._showDeleteError=!0,this._isDeleteInProgress=!1);else if(this.card){let e=[];e=o.items.map(i=>({id:i.id,title:i.title,type:i.type,owner:i.owner,modified:i.modified,typeKeywords:[],snippet:"",dependencies:[],url:b(i.id,this._configContextConsumer.value.authentication)})),this._templateInfos=e,this._showDeleteError=!1,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}else this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1})}}willUpdate(t){if(t.has("open")){let s=t.get("open");this.open&&!s&&(this._fetchingTemplates=!0,C(this._configContextConsumer.value.userSession,this.card).then(n=>{this._templateInfos=n.templateInfos,this._nonSolutionDependencyItems=n._nonSolutionDependencyItems,this._fetchingTemplates=!1}))}}render(){let t=this._fetchingTemplates?"":"display-none",s=this._fetchingTemplates?"display-none":"",n=new Set(this._nonSolutionDependencyItems.filter(i=>i.dependencyItemId!==this.card.id).map(i=>`${i.controlItemId}|${i.dependencyItemId}`)),o=Array.from(n).map(i=>{let[x,S]=i.split("|");return{controlItemId:x,dependencyItemId:S}}),l=this._templateInfos.length-this._getDependencyCount()-this._getNonOwnerCount(),e=this._translations.deletionCount.replace("{{deleteableCount}}",l.toString()).replace("{{totalCount}}",this._templateInfos.length.toString());return a`<calcite-dialog class="panel-bg-color" .closeDisabled=${this._isDeleteInProgress} .escapeDisabled=${this._isDeleteInProgress} .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??p} modal kind=danger .open=${this.open} width=l outside-close-disabled @calciteDialogBeforeClose=${()=>{this.solutionDeleteDialogBeforeClose.emit()}} @calciteDialogClose=${()=>{this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}}>${this._isDeleteInProgress?a`<calcite-loader .label=${this._translations.deleteInProgress} scale=l type=determinate-value .value=${this._deletePercentage}></calcite-loader><div class="loader-text" tabindex=0>${this._translations.deleteInProgress}</div>`:this._showUndeletableItems?a`<calcite-label class=${r(s)} layout=inline><span tabindex=0>${this._translations.failedToDeleteItems}</span></calcite-label><solution-item-accordion class=${r(s)} .itemRelationshipDependencies=${[]} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=delete ${d(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>`:a`<div class="padding-around"><div class=${`deletion-note-container ${s}`}><span class="deletion-note-text" tabindex=0>${this._translations.deletionNote}</span><calcite-chip .label=${e} scale=m icon=information>${e}</calcite-chip></div><calcite-loader class=${r(t)} label></calcite-loader><solution-item-accordion class=${r(s)} .itemRelationshipDependencies=${o} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=delete ${d(this._accordion)}></solution-item-accordion></div><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${()=>{this.delete()}} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>${this._showDeleteError&&a`<calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDelete} @calciteAlertClose=${()=>{this._showDeleteError=!1}} open><div slot=message>${this._translations.failedToDelete}</div></calcite-alert>`||""}`}</calcite-dialog>`}_getDependencyCount(){let t=this._nonSolutionDependencyItems.map(s=>s.controlItemId);return new Set(t).size}_getNonOwnerCount(){if(this._templateInfos.length===0||this._hasAdminDeletePermission)return 0;let t=this._nonSolutionDependencyItems.map(o=>o.controlItemId),s=new Set(t),n=this._configContextConsumer.value.userSession.username;return this._templateInfos.filter(o=>!s.has(o.id)).filter(o=>o.owner!==n).length}};_("solution-delete-dialog",h);return h},b,e,h,i)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a}from"./R4VHCXKS.js";import"./2B4SGB3I.js";import"./YKQDHR27.js";import"./J75MHJID.js";import"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./KIUBUHVM.js";import"./H5E6ISYP.js";import"./QPIMTXPL.js";export{a as SolutionItemAccordion};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import h from"./ZGEMIOB5.js";import g from"./NPOHA56R.js";import e from"./ZP6VPBP4.js";import d from"./XXT542UR.js";import b from"./X5EABWHE.js";import{b as w}from"./2B4SGB3I.js";import{b as f}from"./YKQDHR27.js";import"./J75MHJID.js";import{a as v}from"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as S}from"./KIUBUHVM.js";import{G as C,h as m,i as a,j as y,q as c}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([{n:x,q:T},,{g:b,h:A,k:D,l:h,o:u},{c:E},{a:_,b:I}])=>{var O=m`calcite-panel{width:100%;height:100%;--calcite-panel-background-color: var(--calcite-color-surface-3)}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-md) var(--calcite-spacing-md)}solution-details-card{width:calc(25% - .6rem)}@container (max-width: 1234px){solution-details-card{width:calc(33.333% - .6rem)}}@container (max-width: 1010px){solution-details-card{width:calc(50% - .6rem)}}@container (max-width: 800px){.card-group{padding-left:0;padding-right:0}solution-details-card{width:calc(33.33% - .6rem)}}@container (max-width: 680px){solution-details-card{width:calc(50% - .6rem)}}@container (max-width: 440px){solution-details-card{width:calc(100% - .75rem)}}.text-center{text-align:center}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto;font-size:var(--calcite-font-size-md)}.no-solutions{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(100vh - 190px)}.margin-top-half{margin-top:.5rem}.margin-top-1{margin-top:1rem}.no-solutions-prompt{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%}`,L=5,g=class extends C{constructor(){super(),this.sortType="relevance",this._cards=[],this._isLoading=!0,this._modifiedCheckTry=0,this._translations=v({name:"solutions-all-panel",blocking:!0}),this._agoTerms=`${h}`,this._allCards=[],this._baseAgoTerms=h,this._categories=[],this._configContextConsumer=f({context:w,subscribe:!0,callback:async t=>{t&&(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=L,this._loadUpdateProcedures()}),this.listenOn(window,"solutionDeleted",()=>{this._modifiedCheckTry=L,this._loadUpdateProcedures()}),this.listenOn(window,"sortTypeChanged",t=>{t.detail&&t.detail.scope==="all-solutions"&&(this.sortType=t.detail.sortType,this._telemetry?.logEvent({category:u.ALL_SOLUTIONS,action:"Sort",dimensions:[x(t.detail.sortType)]}),this.sortType==="suggested"&&this._deployedSolutions?.cards.length===0?this._getDeployedSolutions().then(()=>{this.searchSolutions(t.detail)}):this.searchSolutions(t.detail))}),this.listenOn(window,"solutionIDFromAssistant",t=>{this._lookupSolutionById(t.detail)})}static{this.properties={sortType:1,_cards:16,_isLoading:16,_modifiedCheckTry:16,_translations:16}}static{this.styles=O}get _isEnterprise(){return this._configContextConsumer.value?.isEnterprise}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextConsumer.value?.isEnterprise===!0&&this._configContextConsumer.value?.authentication?.CanSearchArcGISOnline===!1}async searchSolutions(t){this._isDisconnectedEnvironment||(t?"searchTerm"in t?this._textSearch(t.searchTerm):"sortType"in t?this._sortCards(t):Array.isArray(t)&&this._filterCards(t):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),this._cards=await this._getSolutions())}async setSearchOptions(t){t&&("searchTerm"in t&&(this._textSearch(t.searchTerm),this.searchTermSet.emit({searchTerm:t.searchTerm,scope:"all-solutions"})),"sortType"in t&&(this._sortCards(t),this.sortTypeSet.emit({sortType:t.sortType,scope:"all-solutions"})))}render(){let t=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">${!this._isEnterprise&&t?this._translations.assistantHelp:this._translations.changeSearchTerm}</div></div>${!this._isEnterprise&&t&&a`<calcite-button appearance=outline icon-start=speech-bubbles @click=${this._handleOpenAssistant} @keydown=${e=>T(e,()=>this._handleOpenAssistant())} scale=l>${this._translations.askAssistant}</calcite-button>`||""}</div></div>`}_renderCards(){return this._cards.map(t=>a`<solution-details-card .card=${t}></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):this._abortController=new AbortController;let t=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 e=t?.cards.length?t.cards:[];if(this.sortType==="new"||this.sortType==="updated"){let s="/Categories/New Release";this.sortType==="updated"&&(s="/Categories/Updated"),e.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 i of e){let n=s.get(i.deployCommonId),r=Number(i.deployVersion);(!n||r>n)&&s.set(i.deployCommonId,r)}let l=this._deployedSolutions.cards.filter(i=>{let n=s.get(i.deployCommonId);return n!==void 0&&Number(i.deployVersion)>=n}),d=new Set(l.map(i=>i.deployCommonId));this._relatedSolutions=new Set([...this._relatedSolutions].filter(i=>!d.has(i))),e.sort((i,n)=>{let r=this._relatedSolutions.has(i.deployCommonId),p=this._relatedSolutions.has(n.deployCommonId);return r&&!p?-1:!r&&p?1:0})}let o=e.map(s=>{let l=s.categories.indexOf("/Categories/New Release")>-1,d=s.categories.indexOf("/Categories/Updated")>-1,i=!1,n=!0;this._deployedSolutions&&(i=this._isSolutionDeployed(s.deployCommonId),n=this._isLatestVersion(s));let r=[];return l?r.push("new"):d&&r.push("updated"),i&&(n?r.push("deployed"):r.push("deployedOlderVersion")),s.chips=r.length>0?r:void 0,s.supportReuse=i?!!(i&&!n):!0,s});return this._allCards.length===0&&t?.cards&&(this._allCards=t?.cards,this._deployedSolutions&&(this._relatedSolutions=E(this._deployedSolutions.cards,this._allCards))),this.cardsFetched.emit(o.length),this._isLoading=!1,o}else return this._isLoading=!1,[]}async _loadUpdateProcedures(){if(this._isDisconnectedEnvironment){this._isLoading=!1;return}this._isLoading=!0;let t=this._configContextConsumer.value;this._cardsFetcher=new _(t.locale,t.orgUrl,t.portalURL),this._cardsFetcherDeployed=new _(t.locale,t.orgUrl,t.portalURL),await this._getDeployedSolutions(),this._cards=await this._getSolutions(),this.allCardsFetched.emit(this._cards),this._isLoading=!1}async _getDeployedSolutions(){let t=this._configContextConsumer.value.authentication,e=this._configContextConsumer.value.userSession;if(t&&e&&t.IsSignedIn){this._abortControllerDeployed?(this._abortControllerDeployed.abort(),this._abortControllerDeployed=new AbortController):this._abortControllerDeployed=new AbortController;let o=await I(t,e,this._cardsFetcher,this._cardsFetcherDeployed,D,"created",this._sortOrder,void 0,this._categories,void 0,this._abortControllerDeployed.signal);if(this._abortControllerDeployed=void 0,o){if(this._modifiedCheckTry>0){if(this._deployedSolutions?.cards.length===o?.cards.length)return this._modifiedCheckTry--,await this._getDeployedSolutions();this._modifiedCheckTry=0}this._deployedSolutions=o}}}_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)>${y`<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(t){this._agoTerms=this._baseAgoTerms+` ${t}`}_sortCards(t){let e=t.sortType;this._getSuggested=!1,this._sortOrder="desc",e==="suggested"?this._getSuggested=!0:e==="new"?this._sortField="relevance":e==="relevance"||e==="title"?(e==="title"&&(this._sortOrder="asc"),this._sortField=e):e==="updated"&&(this._sortField="relevance"),this.sortType=e}_filterCards(t){this._categories=[],t.forEach(e=>{if(e.industry){let o=this._getIndustryValue(e.industry);if(e.domain){let s=this._getDomainValue(e.domain);this._categories.push(`/Categories/${o}/${s}`)}else this._categories.push(`/Categories/${o}`)}})}_getDomainValue(t){return A[t]}_getIndustryValue(t){return t==="AEC"?"AEC":b[t]}_clearFilterCategories(){this._categories=[]}_isSolutionDeployed(t){return!!this._deployedSolutions?.cards?.some(e=>e?.typeKeywords?.some(o=>o.includes("solutionid")&&o.includes(t)))}_isLatestVersion(t){let e=this._deployedSolutions?.cards?.filter(o=>o?.typeKeywords?.some(s=>s.includes("solutionid")&&s.includes(t.deployCommonId)));return!(e&&e.length>0&&e[0].deployVersion!==t.deployVersion)}_lookupSolutionById(t){let e=this._allCards.filter(o=>o.deployCommonId===t);e.length>0&&this.detailsCardSelected.emit(e[0])}};S("solutions-all-panel",g);return g},b,d,e,g,h)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import e from"./NPOHA56R.js";import d from"./ZP6VPBP4.js";import c from"./XXT542UR.js";import a from"./X5EABWHE.js";import{b as v}from"./2B4SGB3I.js";import{b as y}from"./YKQDHR27.js";import{nb as b}from"./J75MHJID.js";import{a as g}from"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as f}from"./KIUBUHVM.js";import{G as m,I as u,K as l,h,i as o,q as p}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([{q:x},,{o:$},{f:_}])=>{var w=h`calcite-card{height:100%;padding-bottom:2px;border:2px solid transparent;transition:border-color .1s ease;box-sizing:border-box}@media(max-width:400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{border-color:var(--calcite-color-brand);cursor:pointer}.chip-status{--calcite-chip-icon-color: var(--calcite-color-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:1.2rem}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.info-icon{--calcite-icon-color: var(--calcite-color-text-inverse);padding-inline-end:.3rem}.card-image-wrap{flex:0 0 auto}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}a{text-decoration:none;color:inherit;outline:0;padding:0;margin:0;display:inherit;height:100%}`,d=class extends m{constructor(){super(...arguments),this.referrerSolutionId="",this.referrerSolutionTitle="",this.referrerSolutionVersion="",this.source="all-solutions",this._deployedTooltipContent="",this._translations=g({name:"solution-details-card",blocking:!0}),this._configContextConsumer=y({context:v,subscribe:!0}),this.detailsCardSelected=p()}static{this.properties={card:0,referrerSolutionId:1,referrerSolutionTitle:1,referrerSolutionVersion:1,source:1,_deployedTooltipContent:16,_translations:16}}static{this.styles=w}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){let e=_(this.card.title);return o`<a href=${e??l} @click=${this._anchorClick} tabindex=-1 .title=${`${this._translations.arcgisSolutions} | ${this.card.title}`}>${this._renderCard()}</a>`}_anchorClick(e){e.preventDefault()}_cardSelected(){if(this.source==="you-may-also-like"){let e=[this.referrerSolutionTitle,this.referrerSolutionId,this.referrerSolutionVersion,this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""];this._telemetry?.logEvent({category:$.SOLUTION_DETAILS,action:"Related Solution",dimensions:e})}this.detailsCardSelected.emit(this.card)}_renderChips(e){let r=e.filter(t=>t==="deployed"||t==="deployedOlderVersion"),C=e.filter(t=>t!=="deployed"&&t!=="deployedOlderVersion"),c=[];return C.forEach(t=>{let a="chip-status",i=`solution-details-card-chip-${t}`,n=t==="new"?"star":"mega-phone",s=t==="new"?this._translations.newSolution:this._translations.updated;c.push(o`<calcite-chip class=${u(a)} .icon=${n} id=${i??l} .label=${s} .value=${s} scale=s></calcite-chip><calcite-tooltip .referenceElement=${i}><span>${s}</span></calcite-tooltip>`)}),r.length>0&&c.push(o`<calcite-chip class="chip-deployed" .icon=${r[0]==="deployedOlderVersion"?"recent":"check-circle"} id=solution-details-card-chip-deployed .label=${this._translations.deployed} .value=${this._translations.deployed} scale=s></calcite-chip><calcite-tooltip placement=bottom reference-element=solution-details-card-chip-deployed @calciteTooltipBeforeOpen=${async()=>{let t={q:`${this.card?.deployCommonId} and owner:${this._configContextConsumer.value?.userSession?.username}`,authentication:this._configContextConsumer.value?.userSession,pagingParam:{start:1,num:100}},a=await b(t);console.log(a),this._deployedTooltipContent=o`<solutions-deployed-list .cards=${a.results.map(i=>{let n=i.typeKeywords?.find(S=>S.startsWith("solutionversion-")),s=n?n.split("-")[1]:"unknown";return{id:i.id,title:i.title,deployVersion:s,created:i.created}})} .listTitle=${r[0]==="deployedOlderVersion"?this._translations.deployedPreviousTitle:this._translations.deployedTitle}></solutions-deployed-list>`}}>${this._deployedTooltipContent}</calcite-tooltip>`),c}_renderCard(){let e=this.card;return o`<calcite-card .label=${e.snippet} @click=${this._cardSelected} @keydown=${r=>x(r,()=>this._cardSelected())}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title??l} class="thumbnail card-image" src=${e.thumbnailUrl??l}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chips&&e.chips.length>0?o`<div slot=footer-end style="display: flex; gap: 0.5rem; justify-content: flex-end;">${this._renderChips(e.chips)}</div>`:void 0}<div slot=footer-start></div></calcite-card>`}};f("solution-details-card",d);return d},a,c,d,e)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as c}from"./2B4SGB3I.js";import{b as d}from"./YKQDHR27.js";import{a as r}from"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import{b as n}from"./KIUBUHVM.js";import{G as o,h as a,i as t,j as s,q as l}from"./H5E6ISYP.js";import"./QPIMTXPL.js";var h=a`.text-center{text-align:center}.no-solutions{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(100vh - 190px)}.display-flex{display:flex;align-items:center}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.padding-10{padding:10px}.padding-y-10{padding-top:10px;padding-bottom:10px}.subnote{font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}`,e=class extends o{constructor(){super(),this.cards=[],this.listTitle="",this._translations=r({name:"solutions-deployed-list",blocking:!0}),this._configContextConsumer=d({context:c,subscribe:!0}),this.deployedCardsClicked=l()}static{this.properties={cards:0,listTitle:1,_translations:16}}static{this.styles=h}disconnectedCallback(){super.disconnectedCallback()}render(){return this.cards.length?t`${this.listTitle!==""&&t`<div>${this.listTitle}</div>`||""}${this._renderCards()}`:t`<div class="no-solutions"></div>`}_renderCards(){return this.cards.map(i=>t`<div class="display-flex flex-direction-row"><div class=padding-10>${this._getSolutionsBriefcase()}</div><div class=padding-10><div><a href=${"/apps/solutions/deployments/"+i.id} target="=_blank">${i.title}</a></div><div class="subnote">${`${this._translations.deployedVersion} ${i.deployVersion} - ${new Date(i.created).toLocaleDateString(this._configContextConsumer.value?.locale,{year:"numeric",month:"long",day:"numeric"})}`}</div></div></div>`)}_getSolutionsBriefcase(){return t`<div slot=header-actions-start><svg viewBox="0 0 64 64" width=24 height=24 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-1)>${s`<path d="M10.723 54.9h6.409a7.896 7.896 0 0 0 13.736 0h23.896a4.137 4.137 0 0 0 4.136-4.136l-.004-32.446a3.222 3.222 0 0 0-3.217-3.219l-10.779.064V9.836A3.741 3.741 0 0 0 41.163 6.1H23.837A3.741 3.741 0 0 0 20.1 9.836l.067 5.264-10.8.004A3.275 3.275 0 0 0 6.1 18.37L6.096 26a.893.893 0 0 0 .263.636.907.907 0 0 0 .638.263l5.902-.014.013-5.985 38.781.01a.407.407 0 0 1 .407.407l.008 22.925a2.858 2.858 0 0 1-2.857 2.858H30.868a7.896 7.896 0 0 0-13.736 0H12.9v-5.2a.801.801 0 0 0-.8-.8H6.9a.801.801 0 0 0-.8.8l-.001 8.375a4.59 4.59 0 0 0 1.353 3.27 4.658 4.658 0 0 0 3.27 1.355zM6.9 41.9h5.2v6h5.51l.112-.213a7.098 7.098 0 0 1 12.556 0l.113.213h18.86a3.683 3.683 0 0 0 2.587-1.071 3.635 3.635 0 0 0 1.071-2.587L52.9 21.317a1.208 1.208 0 0 0-1.207-1.207l-38.867-.01a.714.714 0 0 0-.714.712l-.011 5.275-5.106.012.001.4-.1-.499.003-7.628a2.471 2.471 0 0 1 2.468-2.469l10.8-.003a.734.734 0 0 0 .733-.733v-5.33A2.94 2.94 0 0 1 23.837 6.9h17.326A2.94 2.94 0 0 1 44.1 9.836v5.327a.734.734 0 0 0 .733.733l10.846.003a2.421 2.421 0 0 1 2.417 2.419l.004 32.446a3.337 3.337 0 0 1-3.336 3.336H30.39l-.113.213a7.098 7.098 0 0 1-12.556 0l-.113-.213h-6.886a3.85 3.85 0 0 1-2.704-1.12 3.796 3.796 0 0 1-1.12-2.705zm17.1 13a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm10-6a7.918 7.918 0 0 0 7.349-5h4.818a.734.734 0 0 0 .733-.733v-4.334a.734.734 0 0 0-.733-.733h-4.818a7.9 7.9 0 0 0-14.698 0H5.833a.734.734 0 0 0-.733.733v4.334a.734.734 0 0 0 .733.733h20.818a7.918 7.918 0 0 0 7.349 5zm-28.167-10h21.378l.095-.266a7.1 7.1 0 0 1 13.388 0l.095.266 5.31-.066.068 4.266h-5.378l-.095.266a7.1 7.1 0 0 1-13.388 0l-.095-.266-21.31.066zM34 37.9a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm5.658-20.8H25.342a1.244 1.244 0 0 0-1.242 1.242V15.9h16.8v-4.558a1.244 1.244 0 0 0-1.242-1.242zm.442 5H24.9v-3.758a.443.443 0 0 1 .442-.442h14.316a.443.443 0 0 1 .442.442z" />`}</svg></div>`}};n("solutions-deployed-list",e);export{e as SolutionsDeployedList};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as y}from"./L33BENH7.js";import d from"./ZP6VPBP4.js";import{a as v,b as x}from"./2B4SGB3I.js";import{b as c}from"./YKQDHR27.js";import{a as b}from"./R67EKKSL.js";import{b as m}from"./KIUBUHVM.js";import{E as r,F as a,G as _,I as o,J as n,h as f,i as s,q as g}from"./H5E6ISYP.js";export default $arcgis.t(([{g:h,h:p,o:d}])=>{var w=f`.display-flex{display:flex}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: 0px;--calcite-panel-header-background-color: var(--calcite-color-surface-3)}.panel-override{--calcite-panel-background-color: var(--calcite-color-surface-3);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;font-weight:var(--calcite-font-weight-medium)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-sm)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-1{z-index:1}.z-index-2{z-index:2}h1{font-weight:unset;margin:0;padding:0}@container (max-width: 800px){.filter{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-surface-4);--calcite-panel-background-color: var(--calcite-color-surface-4)}.chips-container{display:flex;flex-wrap:wrap;align-items:center;gap:var(--calcite-spacing-xs);flex:1;padding-block:var(--calcite-spacing-xs)}.header-content-wrapper{min-height:50px;flex-wrap:wrap;gap:var(--calcite-spacing-xs);padding-inline-start:var(--calcite-spacing-lg);padding-top:8px}.position-relative{position:relative;height:100%;overflow:hidden}.height-100{height:100%}.border-none{border:none}.height-50{height:50px}.chip-group{max-width:100%}.chip-group{display:flex;flex-wrap:wrap}.responsive-chip{max-width:100%}.responsive-chip .chip-text{display:inline-flex;align-items:center;line-height:1;max-width:100%}@container (max-width: 800px){.responsive-chip{max-width:100%;min-width:0}.responsive-chip .chip-text{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.mobile-stack{flex-direction:column;align-items:flex-start;padding-top:var(--calcite-spacing-md)}`,u=class extends _{constructor(){super(),this.solutionsCount=0,this._isLoading=!0,this._filterOpen=!0,this._filters={categories:[],searchTerm:""},this._isMobile=!1,this._translations=b({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=r(),this._solutionsFilterPanelRef=r(),this._mainPanelRef=r(),this._panelFixed=!1,this._configContextConsumer=c({context:x,subscribe:!0}),this._isMobileContextConsumer=c({context:v,subscribe:!0,callback:e=>this._isMobile=e}),this.filterRemoved=g(),this.listenOn(window,"searchChanged",e=>{e.detail&&e.detail.scope==="all-solutions"&&this._filterApplied(e.detail.option,e.detail.logSearchTelemetry)}),this.listenOn(window,"toggleFilter",this._toggleFilter),this.listenOn(window,"cardsFetched",()=>{this._isLoading=!1})}static{this.properties={solutionsCount:9,_isLoading:16,_filterOpen:16,_filters:16,_isMobile:16,_translations:16}}static{this.styles=w}willUpdate(e){e.has("_isMobile")&&(this._filterOpen=!this._isMobile)}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async searchSolutions(e){if(this._allSolutionsPanelRef.value.setSearchOptions(e),"industry"in e||"domain"in e){e.displayValue=e.domain||e.industry;let t=e.industry?Object.entries(h).find(([,l])=>l===e.industry)?.[0]:void 0,i=e.domain?Object.entries(p).find(([,l])=>l===e.domain)?.[0]:void 0;e.industry=t||"",e.domain=i||"",e.value=i||t||"",this._solutionsFilterPanelRef.value.changeIndustryFilter(e.industry,e.domain,e.displayValue,!0)}else("searchTerm"in e||"sortType"in e)&&("searchTerm"in e&&(this._filters.searchTerm=e.searchTerm),this._allSolutionsPanelRef.value?.searchSolutions(e))}async load(){this._isMobileContextConsumer.value&&(this._isMobile=this._isMobileContextConsumer.value)}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let e=this._mainPanelRef.value;e.componentOnReady?.().then(()=>{if(e.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&(t.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(t=>{t.forEach(i=>{if(i.type==="attributes"&&i.attributeName==="tabindex"){let l=i.target;l.classList.contains("content-wrapper")&&l.tabIndex===0&&(l.tabIndex=-1)}})});let e=this._mainPanelRef.value;if(e?.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&this._panelObserver.observe(t,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){let e=this._isMobile?"justify-content-end":"",t=this._isLoading?"display-none":"";return s`<calcite-shell class=${`position-relative ${t}`}>${this._isMobile?"":this._getFilterPanel()}<h1 class="height-100"><calcite-panel class="border-override header-override panel-override z-index-1" ${a(this._mainPanelRef)}><div class=${o(this._isMobile?`mobile-stack ${e}`:`display-flex align-items-center header-content-wrapper ${e}`)} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label><div class="chips-container">${this._renderChips()}${this._filters.categories&&this._filters.categories?.length>0&&s`<calcite-button appearance=transparent icon-start=reset kind=neutral @click=${()=>{this._filters={...this._filters,categories:[]},this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this.filterRemoved.emit([])}} .label=${this._translations.clearIndustryFilter}>${this._translations.clearIndustryFilter}</calcite-button>`||""}</div></div>${this._isMobile&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></h1></calcite-shell>`}_getFilterPanel(){let e=this._filterOpen?{display:"flex"}:"";return this._isMobile?s`<calcite-panel class=${`border-none ${this._filterOpen?"background-override":"filter background-override"}`} id=solutions-all-shell-panel-start style=${n(e)}><solutions-filter-panel class="height-100" @applyFilter=${t=>{this._filterApplied(t.detail)}} ${a(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel>`:s`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start slot=panel-start style=${n(e)}><calcite-panel class="border-none"><solutions-filter-panel class="height-100" @applyFilter=${t=>{this._filterApplied(t.detail)}} ${a(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this._isMobile&&this._filterOpen?{display:"none"}:"";return s`<solutions-all-panel @cardsFetched=${this._updateSolutionCount} style=${n(e)} ${a(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){if(!this._filters.categories)return;let e=this._filters.categories.filter(t=>t.type==="industry"||t.type==="domain");if(e.length!==0)return s`<calcite-chip-group class="chip-group" label>${y(e,t=>`${t.type}:${t.value}`,t=>s`<calcite-chip appearance=outline-fill class=${o(this._isMobile?"responsive-chip":"padding-start responsive-chip")} closable .label=${t.displayValue} @calciteChipClose=${()=>this._chipClosed(t.displayValue,t.type)} .value=${t.displayValue}>${t.displayValue}</calcite-chip>`)}</calcite-chip-group>`}_updateSolutionCount(e){this.solutionsCount=e.detail}_chipClosed(e,t){if(this._filters.categories){if(t==="industry")this._filters.categories=[];else{let i=this._filters.categories.filter(l=>l.displayValue!==e&&l.type!==t);this._filters.categories=i}this._filters.categories.length>0?this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories):this._filters.searchTerm!==""?(this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this._allSolutionsPanelRef.value?.searchSolutions({searchTerm:this._filters.searchTerm})):this._allSolutionsPanelRef.value?.searchSolutions(),this.filterRemoved.emit(this._filters.categories)}}_toggleFilter(){this._filterOpen=!this._filterOpen}_logFilterTelemetry(e){if((e.type==="industry"||e.type==="domain")&&e.industry){let t=[h[e.industry]];if(e.domain){let i=p[e.domain];t.push(i)}this._telemetry?.logEvent({category:d.ALL_SOLUTIONS,action:"Filter",dimensions:t})}}_filterApplied(e,t){if(this._filters.categories)if(e){let i=e;if("displayValue"in e)this._filters.categories.push(e),this._logFilterTelemetry(e);else if(Array.isArray(e)&&e.length>0){e.length>=2&&(i=[e[e.length-1]]),this._filters={categories:e,searchTerm:this._filters.searchTerm};let l=e[e.length-1];l&&this._logFilterTelemetry(l)}if("searchTerm"in i&&(this._filters.searchTerm=i.searchTerm,t&&i.searchTerm)){this._telemetry?.logEvent({category:d.ALL_SOLUTIONS,action:"Search",dimensions:[i.searchTerm]});return}this._allSolutionsPanelRef.value?.searchSolutions(i)}else this._filters.categories=[],this._allSolutionsPanelRef.value?.searchSolutions()}};m("solutions-all-shell",u);return u},d)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as v}from"./2B4SGB3I.js";import{b as _}from"./YKQDHR27.js";import{nb as T}from"./J75MHJID.js";import{a as f}from"./R67EKKSL.js";import{b as y}from"./KIUBUHVM.js";import{G as u,J as g,h,i as s,l as m,q as a}from"./H5E6ISYP.js";var $=h`:host{display:block}.padding-start-1{padding-inline-start:1rem}.border-override{--calcite-accordion-border-color: var(--calcite-color-border-1) !important}.display-flex{display:flex}.align-center{align-items:center}.solution-list-item-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1)}.solution-list-item-label,.solution-list-item-description{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.solution-list-item-description{font-size:var(--calcite-font-size--2);margin-block-start:.125rem;color:var(--calcite-color-text-3)}.solution-list-item-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:1.375}.underline{text-decoration:underline}calcite-chip{--calcite-chip-icon-color: var(--calcite-color-brand)}`,c=class extends u{constructor(){super(...arguments),this.itemRelationshipDependencies=[],this.linkType="item",this.listSelectionMode="none",this.reuseWarning="",this.templateInfos=[],this.typeKeywords=[],this.usageContext="content",this._canDeletePermission=!1,this._dependencyTooltipContent="",this._sortedTemplateInfos=[],this._translations=f({name:"solution-item-accordion",blocking:!0}),this._configContextConsumer=_({context:v,subscribe:!0}),this._sortOrder=["Hub Site Application","Hub Page","Web Experience","Instant App","Web Mapping Application","Dashboard","StoryMap","Form","QuickCapture Project","Workflow","Big Data Analytic (hosted)","Real Time Analytic (hosted)","Feed (hosted)","Tool","Notebook","Data Pipeline","Project Package","Desktop Application Template","TypeNotFound","Web Map","Web Scene","Feature Layer (hosted, view)","Feature Layer (hosted)","Table (hosted, view)","Table (hosted)","Tile Layer","CSV","Microsoft Excel","Microsoft Word","Report Template","Rule Package","Group"],this.solutionItemHover=a(),this.solutionItemSelect=a(),this.solutionTypeHover=a()}static{this.properties={itemRelationshipDependencies:0,linkType:1,listSelectionMode:1,reuseWarning:1,templateInfos:0,typeKeywords:0,usageContext:1,_canDeletePermission:16,_dependencyTooltipContent:16,_sortedTemplateInfos:16,_translations:16}}static{this.styles=$}willUpdate(e){e.has("templateInfos")&&(this.hasUpdated||this.templateInfos?.length>0)&&this.templateInfosWatchHandler()}async templateInfosWatchHandler(){this._sortedTemplateInfos=this._sortTemplates()}async collapseAll(){this.el?.shadowRoot?.querySelectorAll("calcite-accordion-item")?.forEach(e=>{e.expanded=!1})}async deselectAll(e=!1){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.selected&&(t.selected=!1),e&&(t.parentElement?.parentElement).expanded&&((t.parentElement?.parentElement).expanded=!1)})}async expandItemById(e){this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id===e&&((t.parentElement?.parentElement).expanded=!0)})}async expandFirstItem(){let e=this.el?.shadowRoot?.querySelectorAll("calcite-list-item");e?.length&&((e[0].parentElement?.parentElement).expanded=!0)}async expandItems(e){this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{e.indexOf(t.id)>-1&&((t.parentElement?.parentElement).expanded=!0)})}async selectItem(e){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id===e&&(t.selected=!0,(t.parentElement?.parentElement).expanded=!0)})}async selectFirstItem(){let e=this.el?.shadowRoot?.querySelectorAll("calcite-list-item");e?.length&&(e[0].selected=!0,(e[0].parentElement?.parentElement).expanded=!0)}async selectItems(e){this.listSelectionMode==="multiple"&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{e.indexOf(t.id)>-1&&(t.selected=!0,(t.parentElement?.parentElement).expanded=!0)})}async load(){this._sortedTemplateInfos=this._sortTemplates(),this._canDeletePermission=(this._configContextConsumer.value?.authentication?.CanDeleteSolution&&this._configContextConsumer.value?.authentication?.CanUpdateSolution)??!1}render(){return this._getAccordion()}_deselectOthers(e){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id!==e&&(t.selected=!1)})}_getAccordion(){let e=[],t=this._sortedTemplateInfos.reduce((i,n)=>{let o=this._getTypeForDisplay(n.type,n.typeKeywords);return e.indexOf(o)<0&&(e.push(o),i.push(this._getAccordionItem(n))),i},[]);return s`<calcite-accordion class="border-override" selection-mode=single>${t}</calcite-accordion>`}_getAccordionItem(e){let t=this._getTypeForDisplay(e.type,e.typeKeywords),i=this._sortedTemplateInfos.filter(n=>this._getTypeForDisplay(n.type,n.typeKeywords)===t);return s`<calcite-accordion-item .heading=${`${t} (${i.length})`} @mouseenter=${()=>this.solutionTypeHover.emit({itemType:t,entering:!0})} @mouseleave=${()=>this.solutionTypeHover.emit({itemType:t,entering:!1})}><solution-item-icon class="padding-start-1 display-flex align-center" slot=actions-start .type=${e.type} .typeKeywords=${e.typeKeywords}></solution-item-icon>${this._getList(i)}</calcite-accordion-item>`}_getList(e){let t=this._sortTemplatesByTitle(e);return s`<calcite-list .label=${this._translations.solutionsTemplates} selection-appearance=border .selectionMode=${this.listSelectionMode}>${t.map(i=>this._getListItem(i))}</calcite-list>`}_getListItem(e){let t=this.typeKeywords.includes("Deployed")&&e.url,i=this.linkType==="action";return s`<calcite-list-item id=${e.id??m} @mouseenter=${()=>this.solutionItemHover.emit({itemId:e.id,entering:!0})} @mouseleave=${()=>this.solutionItemHover.emit({itemId:e.id,entering:!1})} @calciteListItemSelect=${()=>{this._deselectOthers(e.id),this.solutionItemSelect.emit({itemId:e.id,selected:!0}),t&&!i&&window.open(e.url,"_blank")}} .value=${e.id}><div class="solution-list-item-content" slot=content><div class=${`solution-list-item-label ${t&&!i?"underline":""}`}>${e.title}</div><div class="solution-list-item-description">${e.snippet}</div></div>${this._checkUsageForWarnings(e)}${t&&i?s`<div slot=actions-end><calcite-action icon=launch .id=${`${e.id}-launch`} @click=${()=>window.open(e.url,"_blank")} text></calcite-action><calcite-tooltip overlay-positioning=fixed .referenceElement=${`${e.id}-launch`}><span>${this._translations?.openDetails}</span></calcite-tooltip></div>`:null}</calcite-list-item>`}_sortTemplatesByTitle(e){return e.sort((t,i)=>t.title<i.title?-1:t.title>i.title?1:0)}_sortTemplates(){return this.templateInfos.sort((e,t)=>{let i=this._getTypeForSort(e),n=this._getTypeForSort(t),o=this._sortOrder.indexOf(i),r=this._sortOrder.indexOf(n);return o-r})}_getTypeForSort(e){let t=this._getTypeForDisplay(e.type,e.typeKeywords);return this._sortOrder.indexOf(t)<0&&(t="TypeNotFound"),t}_getTypeForDisplay(e,t){let i=e;if(e==="Feature Service"){let n=t.indexOf("View Service")>-1,o=t.indexOf("Table")>-1;i=n&&o?"Table (hosted, view)":o?"Table (hosted)":n?"Feature Layer (hosted, view)":"Feature Layer (hosted)"}return e==="Web Mapping Application"&&(i=t.indexOf("configurableApp")>-1?"Instant App":i),i=e==="Geoprocessing Service"?"Tool":i,i=e==="Feed"?"Feed (hosted)":i,i=e==="Real Time Analytic"?"Real Time Analytic (hosted)":i,i=e==="Big Data Analytic"?"Big Data Analytic (hosted)":i,i=e==="Vector Tile Service"?"Tile Layer":i,i}_getWarningChip(e,t,i,n){let o=t==="info"?"var(--calcite-color-status-info)":"var(--calcite-color-status-danger)";return s`<div slot=actions-end><calcite-chip .icon=${t==="info"?"information":"exclamation-mark-triangle"} .id=${i+"-warning"} kind=neutral .label=${e} scale=s style=${g({"--calcite-chip-icon-color":o,cursor:n&&n.length>0?"pointer":"default"})}>${e}</calcite-chip>${n&&n.length>0?s`<calcite-popover auto-close class=solution-list-item-content .label=${`${i}-warning`} placement=bottom .referenceElement=${`${i}-warning`} scale=s @calcitePopoverBeforeOpen=${async()=>{let r={q:n.map(l=>`id:${l.dependencyItemId}`).join(" OR "),authentication:this._configContextConsumer.value?.userSession,pagingParam:{start:1,num:100}},d=await T(r);console.log(d),this._dependencyTooltipContent=s`<solutions-deployed-list .cards=${d.results.map(l=>{let p=l.typeKeywords?.find(w=>w.startsWith("solutionversion-")),x=p?p.split("-")[1]:"unknown";return{id:l.id,title:l.title,deployVersion:x,created:l.created}})}></solutions-deployed-list>`}}>${this._dependencyTooltipContent}</calcite-popover>`:null}</div>`}_checkUsageForWarnings(e){let t=this._configContextConsumer.value?.userSession?.username??null,i=this.itemRelationshipDependencies.filter(o=>o.controlItemId===e.id),n=i.length>0;if(this.usageContext==="content"&&n&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info",e.id,i);if(this.usageContext==="rename"){let o=this._configContextConsumer.value?.authentication?.CanUpdateSolution??!1;if(e.owner!==t)if(o){if(n&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info",e.id,i)}else return this._getWarningChip(this._translations?.noPrivilegeToManage||"","warn",e.id);else if(n&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info",e.id,i)}if(this.usageContext==="delete"){if(e.owner!==t)if(this._canDeletePermission){if(n)return this._getWarningChip(this._translations?.usedInOtherSolutionsDeleteWarning||"","info",e.id)}else return this._getWarningChip(this._translations?.noPrivilegeToManage||"","warn",e.id);else if(n)return this._getWarningChip(this.reuseWarning,"info",e.id,i)}return""}};y("solution-item-accordion",c);export{c as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{oc as o}from"./J75MHJID.js";export default $arcgis.t(([])=>{function d(t){let e="",n="?";return t.forEach(r=>{r.k&&r.v&&(e+=n+r.k+"="+r.v,n="&")}),e}function f(t){return t?o(t,{}).then(e=>Promise.resolve(!!e)):Promise.resolve(!1)}function m(t){if(t){let e=t.trim();return e?"<div>"+e+"</div>":""}else return""}function a(t){let e="",n="?";return t.forEach(r=>{r.k&&r.v&&(e+=n+r.k+"="+r.v,n="&")}),e}function l(t,e,n){try{let r=new URL(t);if(r.searchParams.get(e)===n)return r.searchParams.delete(e),r.toString()}catch{}return t}function g(t,e,n,r){let s="";return e?s=r+"/sharing/rest/content/items/"+t+"/info/"+e+a([{k:"w",v:"400"}]):s=n,s}function h(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 p(t,e,n){return e.some(r=>r.wkid===t?(n=r.defaultExtent,!0):!1),n}function w(t,e){return i(e||t)}function v(t,e="en"){return new Intl.DateTimeFormat(e,{year:"numeric",month:"long",day:"numeric"}).format(t)}function k(t,e){let n="";return t.some(r=>r.startsWith(e)?(n=r.substring(e.length),!0):!1),n}function i(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 x(t,e){let n=t?.reduce((r,s)=>(r.indexOf(s.id)<0&&r.push(s.id),r),[])||[];return e?n.sort((r,s)=>e.indexOf(r)-e.indexOf(s)):n}function y(t){return t.charAt(0).toUpperCase()+t.slice(1)}function E(t){return{relevance:"Relevance",title:"Title",new:"New",created:"Date deployed",updated:"Updated",suggested:"Suggested for you"}[t]||t}function W(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 S(t){return t?parseFloat(((Date.now()-t)/1e3).toFixed(2)):0}function q(t,e){(t.key==="Enter"||t.code==="NumpadEnter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e())}function D(t){window.dispatchEvent(new CustomEvent("showGlobalAlert",{detail:t}))}return{a:d,b:f,c:m,d:a,e:l,f:g,g:h,h:p,i:w,j:v,k:k,l:x,m:y,n:E,o:W,p:S,q:q,r:D}},"intl")