@esri/solutions-components 5.1.0-next.100 → 5.1.0-next.102

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 (240) hide show
  1. package/dist/cdn/24OJQL75.js +2 -0
  2. package/dist/cdn/2AXKBNIN.js +2 -0
  3. package/dist/cdn/{CEP54NLT.js → 2C4DK6YC.js} +1 -1
  4. package/dist/cdn/2HGZUNIC.js +2 -0
  5. package/dist/cdn/{E63XW5PH.js → 3NPBN2B4.js} +1 -1
  6. package/dist/cdn/{HHVIWWK2.js → 45UNI2VP.js} +2 -2
  7. package/dist/cdn/4SPIPOYO.js +2 -0
  8. package/dist/cdn/5LX6ROQC.js +384 -0
  9. package/dist/cdn/64ZLSOK3.js +2 -0
  10. package/dist/cdn/{MVYIHKFK.js → 66BZFR5Z.js} +1 -1
  11. package/dist/cdn/{ULTK7DMM.js → 6GOYDVLJ.js} +1 -1
  12. package/dist/cdn/{IVSYM7YY.js → 6UTDTBHM.js} +1 -1
  13. package/dist/cdn/{76APML4N.js → 76OYXG7R.js} +1 -1
  14. package/dist/cdn/{XKFPWKMX.js → 7EPZDMA2.js} +1 -1
  15. package/dist/cdn/{7SJP3QTP.js → 7SFTLJTV.js} +1 -1
  16. package/dist/cdn/7X5K32QE.js +2 -0
  17. package/dist/cdn/{AY6K2SJI.js → A2SX6EF7.js} +1 -1
  18. package/dist/cdn/{2MK34V3V.js → ADTHTFGI.js} +1 -1
  19. package/dist/cdn/{IEKNRCBC.js → AFMPPVMO.js} +1 -1
  20. package/dist/cdn/{TFZ2AK22.js → ANZVLZYR.js} +1 -1
  21. package/dist/cdn/{VG6ML5VK.js → AO3QYZNQ.js} +1 -1
  22. package/dist/cdn/AOTEIDXK.js +2 -0
  23. package/dist/cdn/{X23TE3BV.js → AYO5GP4M.js} +1 -1
  24. package/dist/cdn/{DHPZIFHE.js → B4EWPUMU.js} +1 -1
  25. package/dist/cdn/{74OJ22BW.js → BELRJU3A.js} +1 -1
  26. package/dist/cdn/{ZS6XB5WK.js → BYU5RVVM.js} +1 -1
  27. package/dist/cdn/{J3MAWMYQ.js → CNY6H6U2.js} +1 -1
  28. package/dist/cdn/{44R32SU3.js → CZZN3R4F.js} +1 -1
  29. package/dist/cdn/{ZYCAAXQF.js → DINEURA2.js} +1 -1
  30. package/dist/cdn/{W6E3DYEQ.js → EW4O5UX4.js} +1 -1
  31. package/dist/cdn/{E6YARJM2.js → G4OMMOS4.js} +1 -1
  32. package/dist/cdn/GKT3GU2L.js +2 -0
  33. package/dist/cdn/GU4QAZMD.js +2 -0
  34. package/dist/cdn/{7RFQ7MW2.js → IGIHPCRS.js} +1 -1
  35. package/dist/cdn/{CRFLICFH.js → IIOO4ABM.js} +1 -1
  36. package/dist/cdn/{V3YTRV33.js → JMVHSWQR.js} +1 -1
  37. package/dist/cdn/JPJ2PWRJ.js +2 -0
  38. package/dist/cdn/{2PM224B6.js → JUJ5KUGK.js} +1 -1
  39. package/dist/cdn/{UUPARGLA.js → LYNVZ7EL.js} +1 -1
  40. package/dist/cdn/{NBPM6OJQ.js → MSEGWVWC.js} +19 -19
  41. package/dist/cdn/{66NSOJUX.js → MT2QHKUQ.js} +1 -1
  42. package/dist/cdn/{DJFXVUF7.js → N3FJFS6W.js} +1 -1
  43. package/dist/cdn/{GSK7CUMC.js → NBJK6Z7L.js} +1 -1
  44. package/dist/cdn/{R3QHE3VT.js → O5PAINAH.js} +1 -1
  45. package/dist/cdn/O7TCCL6B.js +2 -0
  46. package/dist/cdn/P2QWXLFJ.js +2 -0
  47. package/dist/cdn/{Q6XLTRMA.js → P76UNULK.js} +1 -1
  48. package/dist/cdn/{OIRNHTN3.js → PCZFIXAY.js} +1 -1
  49. package/dist/cdn/{OG6IMWBH.js → PDE6N2YM.js} +1 -1
  50. package/dist/cdn/{U77O2MIG.js → PQPNCADS.js} +1 -1
  51. package/dist/cdn/{KH2WXNMT.js → RQIBNHBN.js} +1 -1
  52. package/dist/cdn/{4QJK4LPR.js → S7ZM2RFD.js} +1 -1
  53. package/dist/cdn/{HNVWONX2.js → SKUGEKDV.js} +1 -1
  54. package/dist/cdn/{2ASJ2RMU.js → SR53JCI4.js} +1 -1
  55. package/dist/cdn/{LOINOBXI.js → TDY54Z67.js} +1 -1
  56. package/dist/cdn/{2HLILJFJ.js → TS7GYVPR.js} +1 -1
  57. package/dist/cdn/{HM4YDFBC.js → TWO6FJHP.js} +1 -1
  58. package/dist/cdn/UUGWRXGN.js +2 -0
  59. package/dist/cdn/{Y3PCMVG7.js → UUMJMH3T.js} +1 -1
  60. package/dist/cdn/VB5C4Z27.js +2 -0
  61. package/dist/cdn/VK6ZOC6A.js +2 -0
  62. package/dist/cdn/WNH3PY6X.js +2 -0
  63. package/dist/cdn/{J75MHJID.js → WU7QCA5H.js} +1 -1
  64. package/dist/cdn/{VLBW4YNM.js → WZ22NICV.js} +1 -1
  65. package/dist/cdn/{DQWJUYMM.js → XF533XOH.js} +1 -1
  66. package/dist/cdn/{YOAGUXW6.js → XKMN6N5I.js} +1 -1
  67. package/dist/cdn/{QZRJRLYA.js → XMHHBXM6.js} +1 -1
  68. package/dist/cdn/{RG2D7ZRS.js → Y2ROEEOX.js} +2 -2
  69. package/dist/cdn/{D5FLGJ5G.js → YXJJ5QPI.js} +1 -1
  70. package/dist/cdn/{3RJKHADA.js → ZPOWEU76.js} +1 -1
  71. package/dist/cdn/{6ENQ42XY.js → ZT5TOVYM.js} +1 -1
  72. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
  73. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
  74. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
  75. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
  76. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
  77. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
  78. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
  79. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
  80. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
  81. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
  82. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.en.json +1 -1
  83. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
  84. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
  85. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
  86. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
  87. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
  88. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
  89. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
  90. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
  91. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
  92. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
  93. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.json +1 -1
  94. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
  95. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
  96. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
  97. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
  98. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
  99. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
  100. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
  101. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
  102. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
  103. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
  104. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
  105. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
  106. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
  107. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
  108. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
  109. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
  110. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
  111. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
  112. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
  113. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
  114. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
  115. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.en.json +1 -1
  116. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.json +1 -1
  117. package/dist/cdn/index.js +1 -1
  118. package/dist/chunks/CardsFetcher.js +287 -0
  119. package/dist/chunks/cardFetchingUtils.js +22 -304
  120. package/dist/chunks/cardsHelpers.js +6 -6
  121. package/dist/chunks/converter.js +72 -28
  122. package/dist/chunks/downloadUtils.js +246 -235
  123. package/dist/chunks/helpers.js +38 -43
  124. package/dist/chunks/interfaces.js +1 -1
  125. package/dist/chunks/popupUtils.js +2 -2
  126. package/dist/chunks/queryUtils.js +3 -3
  127. package/dist/chunks/solutions-deploy-app-nav.js +1 -1
  128. package/dist/components/arcgis-solutions-assistant/customElement.d.ts +2 -0
  129. package/dist/components/arcgis-solutions-assistant/customElement.js +9725 -8601
  130. package/dist/components/buffer-tools/customElement.d.ts +4 -3
  131. package/dist/components/card-manager/customElement.d.ts +4 -3
  132. package/dist/components/consent-manager/customElement.d.ts +2 -2
  133. package/dist/components/create-feature/customElement.d.ts +2 -2
  134. package/dist/components/create-feature/customElement.js +13 -13
  135. package/dist/components/create-related-feature/customElement.d.ts +6 -4
  136. package/dist/components/create-related-feature/customElement.js +2 -2
  137. package/dist/components/crowdsource-reporter/customElement.d.ts +2 -2
  138. package/dist/components/crowdsource-reporter/customElement.js +4 -4
  139. package/dist/components/delete-button/customElement.d.ts +2 -2
  140. package/dist/components/delete-dialog/customElement.d.ts +2 -2
  141. package/dist/components/edit-card/customElement.d.ts +7 -5
  142. package/dist/components/edit-card/customElement.js +2 -2
  143. package/dist/components/feature-details/customElement.d.ts +7 -6
  144. package/dist/components/feature-details/customElement.js +2 -2
  145. package/dist/components/feature-list/customElement.d.ts +4 -3
  146. package/dist/components/feature-list/customElement.js +3 -3
  147. package/dist/components/field-selection/customElement.d.ts +6 -4
  148. package/dist/components/info-card/customElement.d.ts +6 -5
  149. package/dist/components/info-card/customElement.js +2 -2
  150. package/dist/components/layer-list/customElement.d.ts +2 -2
  151. package/dist/components/layer-list/customElement.js +2 -2
  152. package/dist/components/layer-list-widget/customElement.d.ts +4 -3
  153. package/dist/components/layer-list-widget/customElement.js +1 -1
  154. package/dist/components/layer-table/customElement.d.ts +4 -3
  155. package/dist/components/layer-table/customElement.js +5 -5
  156. package/dist/components/map-basemap-gallery/customElement.d.ts +4 -3
  157. package/dist/components/map-basemap-gallery/customElement.js +2 -2
  158. package/dist/components/map-card/customElement.d.ts +7 -5
  159. package/dist/components/map-card/customElement.js +4 -4
  160. package/dist/components/map-draw-tools/customElement.d.ts +10 -6
  161. package/dist/components/map-draw-tools/customElement.js +3 -3
  162. package/dist/components/map-floor-filter/customElement.d.ts +4 -3
  163. package/dist/components/map-floor-filter/customElement.js +2 -2
  164. package/dist/components/map-fullscreen/customElement.d.ts +4 -3
  165. package/dist/components/map-fullscreen/customElement.js +2 -2
  166. package/dist/components/map-layer-picker/customElement.d.ts +2 -2
  167. package/dist/components/map-legend/customElement.d.ts +4 -3
  168. package/dist/components/map-legend/customElement.js +1 -1
  169. package/dist/components/map-search/customElement.d.ts +4 -3
  170. package/dist/components/map-search/customElement.js +2 -2
  171. package/dist/components/map-select-tools/customElement.d.ts +13 -8
  172. package/dist/components/map-select-tools/customElement.js +5 -5
  173. package/dist/components/map-tools/customElement.d.ts +6 -4
  174. package/dist/components/map-tools/customElement.js +2 -2
  175. package/dist/components/pdf-download/customElement.d.ts +3 -3
  176. package/dist/components/public-notification/customElement.d.ts +10 -6
  177. package/dist/components/public-notification/customElement.js +154 -70
  178. package/dist/components/refine-selection/customElement.d.ts +15 -9
  179. package/dist/components/refine-selection/customElement.js +2 -2
  180. package/dist/components/selection-tool/customElement.d.ts +2 -2
  181. package/dist/components/selection-tool/customElement.js +2 -2
  182. package/dist/components/solution-builder-assistant/customElement.js +57 -57
  183. package/dist/components/solution-configure-titles/customElement.js +1 -1
  184. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  185. package/dist/components/solution-deployed-card-panel/customElement.d.ts +2 -0
  186. package/dist/components/solution-deployed-card-panel/customElement.js +51 -39
  187. package/dist/components/solution-details-card/customElement.js +26 -26
  188. package/dist/components/solution-details-panel/customElement.js +67 -63
  189. package/dist/components/solution-item-accordion/customElement.js +7 -8
  190. package/dist/components/solution-resource-card/customElement.js +1 -1
  191. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  192. package/dist/components/solution-social-share/customElement.js +2 -2
  193. package/dist/components/solutions-all-panel/customElement.js +6 -5
  194. package/dist/components/solutions-deploy-app/customElement.js +3 -2
  195. package/dist/components/solutions-deployed-list/customElement.d.ts +10 -6
  196. package/dist/components/solutions-deployed-list/customElement.js +40 -18
  197. package/dist/components/solutions-deployed-list/index.js +2 -0
  198. package/dist/components/solutions-deployed-panel/customElement.js +8 -7
  199. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  200. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  201. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  202. package/dist/docs/api.json +1 -1
  203. package/dist/docs/docs.json +1 -1
  204. package/dist/docs/vscode.html-custom-data.json +1 -1
  205. package/dist/docs/web-types.json +1 -1
  206. package/dist/loader.js +3 -3
  207. package/dist/solutions-components_commit.txt +7 -7
  208. package/dist/types/lumina.d.ts +2 -2
  209. package/dist/types/preact.d.ts +2 -2
  210. package/dist/types/react.d.ts +2 -2
  211. package/dist/types/stencil.d.ts +2 -2
  212. package/dist/utils/Auth.d.ts +2 -2
  213. package/dist/utils/interfaces.d.ts +27 -27
  214. package/package.json +1 -1
  215. package/dist/cdn/2R3HJ764.js +0 -2
  216. package/dist/cdn/5AGYVY7S.js +0 -2
  217. package/dist/cdn/AWQQ3CNF.js +0 -2
  218. package/dist/cdn/C47FRSF6.js +0 -2
  219. package/dist/cdn/C6KN2U7N.js +0 -2
  220. package/dist/cdn/DOK6WZN3.js +0 -2
  221. package/dist/cdn/DRXERUDE.js +0 -2
  222. package/dist/cdn/ESBPGZRY.js +0 -2
  223. package/dist/cdn/J6LCEXM3.js +0 -2
  224. package/dist/cdn/J6MVIDTT.js +0 -2
  225. package/dist/cdn/JSJWGKKI.js +0 -2
  226. package/dist/cdn/LEBQMVF6.js +0 -2
  227. package/dist/cdn/MVJVKXZM.js +0 -2
  228. package/dist/cdn/MZXEOLNG.js +0 -2
  229. package/dist/cdn/NM7MKM5L.js +0 -2
  230. package/dist/cdn/TSEG3YWM.js +0 -359
  231. /package/dist/cdn/{HMKJYAVE.js → 2KSTM3IP.js} +0 -0
  232. /package/dist/cdn/{J5FYHTE4.js → 6S56JAXB.js} +0 -0
  233. /package/dist/cdn/{6WQK4DHL.js → 7JOL6EOJ.js} +0 -0
  234. /package/dist/cdn/{ZDLTST3A.js → FB2RD4BK.js} +0 -0
  235. /package/dist/cdn/{3JGLETSR.js → IRQKL5IM.js} +0 -0
  236. /package/dist/cdn/{34EUIYLN.js → ITM5SR7G.js} +0 -0
  237. /package/dist/cdn/{6MP2RVUK.js → SITXFSGP.js} +0 -0
  238. /package/dist/cdn/{QAMVNRII.js → W5VSVSIV.js} +0 -0
  239. /package/dist/cdn/{YVNP437O.js → WV7QX3ED.js} +0 -0
  240. /package/dist/cdn/{6IIMJC5D.js → XMLWS6XC.js} +0 -0
@@ -1,23 +1,23 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { g as S, c as w } from "../../chunks/runtime.js";
3
- import { e as v, h as $ } from "../../chunks/mapViewUtils.js";
4
- import { c as x, r as T, b as E, e as k } from "../../chunks/downloadUtils.js";
5
- import { u as L } from "../../chunks/useT9n.js";
6
- import { css as C, html as l, nothing as m } from "lit";
7
- import { createRef as p, ref as h } from "lit-html/directives/ref.js";
8
- import { LitElement as I, createEvent as P, noShadowRoot as O, safeClassMap as g } from "@arcgis/lumina";
9
- import { p as R } from "../../chunks/publicNotificationContext.js";
10
- import { useContextProvider as D } from "@arcgis/lumina/context";
2
+ import { g as G, c as U } from "../../chunks/runtime.js";
3
+ import { e as H, h as j } from "../../chunks/mapViewUtils.js";
4
+ import { c as B, r as J, b as W, e as z } from "../../chunks/downloadUtils.js";
5
+ import { u as q } from "../../chunks/useT9n.js";
6
+ import { css as X, html as l, nothing as L } from "lit";
7
+ import { createRef as x, ref as _ } from "lit-html/directives/ref.js";
8
+ import { LitElement as Y, createEvent as Q, noShadowRoot as K, safeClassMap as v } from "@arcgis/lumina";
9
+ import { p as Z } from "../../chunks/publicNotificationContext.js";
10
+ import { useContextProvider as ee } from "@arcgis/lumina/context";
11
11
  import "../refine-selection/customElement.js";
12
- import V from "@arcgis/core/Graphic";
13
- import { Controller as N } from "@arcgis/lumina/controllers";
14
- import F from "@arcgis/core/rest/support/PrintTemplate";
15
- import A from "@arcgis/core/rest/support/PrintParameters";
16
- import * as G from "@arcgis/core/rest/print";
17
- import * as b from "@arcgis/core/rest/geoprocessor";
18
- import f from "@arcgis/core/request";
19
- const U = C`@layer{:host{display:block;--calcite-input-message-spacing-value: 0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-bottom-0{padding-bottom:0!important}.padding-inline-start-0{padding-inline-start:0!important}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-block-start-1{padding-block-start:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-top-1-2{padding-block-start:.5rem!important}.padding-top-1{padding-top:1rem}.indent-group{border-inline-start:1px solid var(--calcite-color-border-2);margin-bottom:.5rem;padding-inline-start:1rem;margin-inline-start:.5rem}.margin-bottom-0-5{margin-bottom:.5rem}.margin-top-0-5{margin-top:.5rem!important}.instructional-text{line-height:1;padding:0!important;margin:0;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.info-blue{color:var(--calcite-color-status-info)}.info-message{justify-content:center;display:grid}.font-bold{font-weight:700}.header-label{font-weight:700;font-size:var(--calcite-font-size-0)}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:.5rem}.margin-top-0{margin-block-start:0!important}.margin-top-1{margin-top:1rem!important}.label-margin-0{--calcite-label-margin-bottom: 0}.list-label{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-bold)!important}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-surface-4: var(--calcite-color-brand);--calcite-color-surface-3: var(--calcite-color-brand-hover);--calcite-color-text-1: var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}.list-container{padding:0 1rem 1rem}.list-items{align-items:center;background-color:#fff;box-shadow:0 1px 3px #0000001a;font-family:sans-serif;padding:12px 16px}.list-item{display:flex;align-items:center;justify-content:space-between}.item-label{color:#4a4a4a;font-size:16px}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}calcite-segmented-control{--calcite-segmented-control-border-color: var(--calcite-color-border-2)}calcite-segmented-control-item{--calcite-segmented-control-color: var(--calcite-color-text-3)}calcite-segmented-control-item[checked]{--calcite-segmented-control-border-color: var(--calcite-color-surface-highlight);--calcite-segmented-control-background-color: var(--calcite-color-surface-highlight);--calcite-segmented-control-color: var(--calcite-color-text-highlight)}calcite-action-bar{--calcite-internal-action-bar-gap: 0px;--calcite-internal-action-bar-padding: 0px}}`;
20
- class M extends N {
12
+ import te from "@arcgis/core/Graphic.js";
13
+ import { Controller as ie } from "@arcgis/lumina/controllers";
14
+ import se from "@arcgis/core/rest/support/PrintTemplate.js";
15
+ import ae from "@arcgis/core/rest/support/PrintParameters.js";
16
+ import * as oe from "@arcgis/core/rest/print.js";
17
+ import * as V from "@arcgis/core/rest/geoprocessor.js";
18
+ import P from "@arcgis/core/request.js";
19
+ const le = X`@layer{:host{display:block;--calcite-input-message-spacing-value: 0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-bottom-0{padding-bottom:0!important}.padding-inline-start-0{padding-inline-start:0!important}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-block-start-1{padding-block-start:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-top-1-2{padding-block-start:.5rem!important}.padding-top-1{padding-top:1rem}.indent-group{border-inline-start:1px solid var(--calcite-color-border-2);margin-bottom:.5rem;padding-inline-start:1rem;margin-inline-start:.5rem}.margin-bottom-0-5{margin-bottom:.5rem}.margin-top-0-5{margin-top:.5rem!important}.instructional-text{line-height:1;padding:0!important;margin:0;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.info-blue{color:var(--calcite-color-status-info)}.info-message{justify-content:center;display:grid}.font-bold{font-weight:700}.header-label{font-weight:700;font-size:var(--calcite-font-size-0)}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:.5rem}.margin-top-0{margin-block-start:0!important}.margin-top-1{margin-top:1rem!important}.label-margin-0{--calcite-label-margin-bottom: 0}.list-label{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-bold)!important}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-surface-4: var(--calcite-color-brand);--calcite-color-surface-3: var(--calcite-color-brand-hover);--calcite-color-text-1: var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}.list-container{padding:0 1rem 1rem}.list-items{align-items:center;background-color:#fff;box-shadow:0 1px 3px #0000001a;font-family:sans-serif;padding:12px 16px}.list-item{display:flex;align-items:center;justify-content:space-between}.item-label{color:#4a4a4a;font-size:16px}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}calcite-segmented-control{--calcite-segmented-control-border-color: var(--calcite-color-border-2)}calcite-segmented-control-item{--calcite-segmented-control-color: var(--calcite-color-text-3)}calcite-segmented-control-item[checked]{--calcite-segmented-control-border-color: var(--calcite-color-surface-highlight);--calcite-segmented-control-background-color: var(--calcite-color-surface-highlight);--calcite-segmented-control-color: var(--calcite-color-text-highlight)}calcite-action-bar{--calcite-internal-action-bar-gap: 0px;--calcite-internal-action-bar-padding: 0px}}`;
20
+ class ne extends ie {
21
21
  constructor() {
22
22
  super(), this.managedLayers = {}, this.managedTables = [], this.highlightHandles = [];
23
23
  }
@@ -28,18 +28,18 @@ class M extends N {
28
28
  }), this.highlightHandles = [];
29
29
  }
30
30
  }
31
- class H extends I {
31
+ class re extends Y {
32
32
  constructor() {
33
- super(), this.addresseeLayerIds = [], this.bufferColor = [227, 139, 79, 0.8], this.bufferOutlineColor = [255, 255, 255], this.customLabelEnabled = !1, this.customExport = !1, this.customExportURL = "", this.defaultBufferDistance = 0, this.defaultBufferUnit = "feet", this.defaultExportTitle = "", this.defaultNumLabelsPerPage = 6, this.enableLayerFeatures = !0, this.enableLayerFeaturesOnLoad = !1, this.enableSearchDistance = !0, this.enableSearchDistanceOnLoad = !1, this.enableSketchTools = !0, this.featureHighlightEnabled = !1, this.noResultText = "", this.initialNotice = "", this.selectionLayerIds = [], this.showRefineSelection = !1, this.showSearchSettings = !0, this._exportGraphics = !1, this._addMap = !1, this._addResults = !0, this._addTitle = !1, this._downloadActive = !0, this._exportType = "PDF", this._fetchingData = !1, this._isMobile = !1, this._numDuplicates = 0, this._pageType = "LIST", this._saveEnabled = !1, this._selectionSets = [], this._segmentType = "STANDARD", this._selectedReportingLayerId = "", this._isInitialLoading = !0, this._layoutTemplates = [], this._translations = L({ name: "public-notification", blocking: !0 }), this._downloadTools = p(), this.layoutTemplateSelectRef = p(), this.reportTemplateSelectRef = p(), this._onboardingImageUrl = "", this._popupsEnabled = !1, this._removeDuplicates = p(), this._selectTools = p(), this._refineSelection = p(), this._titleElement = p(), this._titleValue = void 0, this._numSelected = 0, this._pnStateContextProvider = D({ context: R }), this._refineGraphics = [], this._reportTemplates = [], this._reportTemplatesInfo = [], this.searchConfigurationChange = P(), this.listenOn(window, "selectionSetsChanged", this.selectionSetsChanged), this._pnState = new M(), this._pnStateContextProvider.setValue(this._pnState);
33
+ super(), this.addresseeLayerIds = [], this.bufferColor = [227, 139, 79, 0.8], this.bufferOutlineColor = [255, 255, 255], this.customLabelEnabled = !1, this.customExport = !1, this.customExportURL = "", this.defaultBufferDistance = 0, this.defaultBufferUnit = "feet", this.defaultExportTitle = "", this.defaultNumLabelsPerPage = 6, this.enableLayerFeatures = !0, this.enableLayerFeaturesOnLoad = !1, this.enableSearchDistance = !0, this.enableSearchDistanceOnLoad = !1, this.enableSketchTools = !0, this.featureHighlightEnabled = !1, this.noResultText = "", this.initialNotice = "", this.selectionLayerIds = [], this.showRefineSelection = !1, this.showSearchSettings = !0, this._exportGraphics = !1, this._addMap = !1, this._addResults = !0, this._addTitle = !1, this._downloadActive = !0, this._exportType = "PDF", this._fetchingData = !1, this._isMobile = !1, this._numDuplicates = 0, this._pageType = "LIST", this._saveEnabled = !1, this._selectionSets = [], this._segmentType = "STANDARD", this._selectedReportingLayerId = "", this._isInitialLoading = !0, this._layoutTemplates = [], this._translations = q({ name: "public-notification", blocking: !0 }), this._downloadTools = x(), this.layoutTemplateSelectRef = x(), this.reportTemplateSelectRef = x(), this._onboardingImageUrl = "", this._popupsEnabled = !1, this._removeDuplicates = x(), this._selectTools = x(), this._refineSelection = x(), this._titleElement = x(), this._titleValue = void 0, this._numSelected = 0, this._pnStateContextProvider = ee({ context: Z }), this._refineGraphics = [], this._reportTemplates = [], this._reportTemplatesInfo = [], this.searchConfigurationChange = Q(), this.listenOn(window, "selectionSetsChanged", this.selectionSetsChanged), this._pnState = new ne(), this._pnStateContextProvider.setValue(this._pnState);
34
34
  }
35
35
  static {
36
36
  this.properties = { addresseeLayerIds: 0, bufferColor: 1, bufferOutlineColor: 1, customLabelEnabled: 5, customExport: 5, customExportURL: 1, defaultBufferDistance: 9, defaultBufferUnit: 1, defaultExportTitle: 1, defaultNumLabelsPerPage: 9, enableLayerFeatures: 5, enableLayerFeaturesOnLoad: 5, enableSearchDistance: 5, enableSearchDistanceOnLoad: 5, enableSketchTools: 5, featureEffect: 0, featureHighlightEnabled: 5, mapView: 0, noResultText: 1, initialNotice: 1, searchConfiguration: 0, selectionLayerIds: 0, showRefineSelection: 5, showSearchSettings: 5, sketchLineSymbol: 0, sketchPointSymbol: 0, sketchPolygonSymbol: 0, _exportGraphics: 16, _addMap: 16, _addResults: 16, _addTitle: 16, _downloadActive: 16, _exportType: 16, _fetchingData: 16, _isMobile: 16, _numDuplicates: 16, _pageType: 16, _saveEnabled: 16, _selectionSets: 16, _segmentType: 16, _selectedReportingLayerId: 16, _isInitialLoading: 16, _layoutTemplates: 16, _translations: 16 };
37
37
  }
38
38
  static {
39
- this.styles = U;
39
+ this.styles = le;
40
40
  }
41
41
  static {
42
- this.shadowRootOptions = O;
42
+ this.shadowRootOptions = K;
43
43
  }
44
44
  willUpdate(e) {
45
45
  e.has("mapView") && this.mapView && this.mapViewWatchHandler(this.mapView), e.has("searchConfiguration") && this.searchConfiguration && this.watchSearchConfigurationHandler(this.searchConfiguration, e.get("searchConfiguration")), e.has("sketchLineSymbol") && this.sketchLineSymbolWatchHandler(this.sketchLineSymbol, e.get("sketchLineSymbol")), e.has("sketchPointSymbol") && this.sketchPointSymbolWatchHandler(this.sketchPointSymbol, e.get("sketchPointSymbol")), e.has("sketchPolygonSymbol") && this.sketchPolygonSymbolWatchHandler(this.sketchPolygonSymbol, e.get("sketchPolygonSymbol")), e.has("_pageType") && (this.hasUpdated || this._pageType !== "LIST") && this.pageTypeWatchHandler(this._pageType, e.get("_pageType")), (e.has("customExport") || e.has("customExportURL")) && this.hasUpdated && this._setTemplates();
@@ -71,11 +71,11 @@ class H extends I {
71
71
  super.connectedCallback(), this._mediaQuery = window.matchMedia("(max-width: 600px)"), this.listenOn(this._mediaQuery, "change", (e) => this._setIsMobile(e));
72
72
  }
73
73
  async load() {
74
- this._initSymbols(), this._onboardingImageUrl = S("assets/public-notification/images/onboarding.png");
74
+ this._initSymbols(), this._onboardingImageUrl = G("assets/public-notification/images/onboarding.png");
75
75
  }
76
76
  render() {
77
77
  const e = this._isMobile ? "footer" : "header";
78
- return l`<calcite-shell>${this._isInitialLoading ? l`<calcite-loader label></calcite-loader>` : l`<calcite-action-bar class="border-bottom-1 action-bar-size" expand-disabled layout=horizontal slot=${e ?? m}>${this._getActionGroup("list-check", "LIST", this._translations.myLists)}${this.showRefineSelection ? this._getActionGroup("test-data", "REFINE", this._translations.refineSelection) : null}${this._getActionGroup("export", "EXPORT", this._translations.export)}</calcite-action-bar>${this._getPage(this._pageType)}`}</calcite-shell>`;
78
+ return l`<calcite-shell>${this._isInitialLoading ? l`<calcite-loader label></calcite-loader>` : l`<calcite-action-bar class="border-bottom-1 action-bar-size" expand-disabled layout=horizontal slot=${e ?? L}>${this._getActionGroup("list-check", "LIST", this._translations.myLists)}${this.showRefineSelection ? this._getActionGroup("test-data", "REFINE", this._translations.refineSelection) : null}${this._getActionGroup("export", "EXPORT", this._translations.export)}</calcite-action-bar>${this._getPage(this._pageType)}`}</calcite-shell>`;
79
79
  }
80
80
  async loaded() {
81
81
  this.searchConfiguration && this._initSearchConfiguration(this.searchConfiguration), this.customExport && this.customExportURL && await this._setTemplates(), this._isInitialLoading = !1;
@@ -132,7 +132,7 @@ class H extends I {
132
132
  }
133
133
  _getActionGroup(e, t, i) {
134
134
  const s = this.showRefineSelection ? "w-1-3" : "w-1-2";
135
- return l`<calcite-action-group class=${g(s)} layout=horizontal><div class="background-override"><calcite-action .active=${this._pageType === t} alignment=center appearance=solid class="width-full height-full" .icon=${e} id=${e ?? m} @click=${() => {
135
+ return l`<calcite-action-group class=${v(s)} layout=horizontal><div class="background-override"><calcite-action .active=${this._pageType === t} alignment=center appearance=solid class="width-full height-full" .icon=${e} id=${e ?? L} @click=${() => {
136
136
  this._setPageType(t);
137
137
  }} text></calcite-action></div><calcite-tooltip label placement=bottom .referenceElement=${e}><span>${i}</span></calcite-tooltip></calcite-action-group>`;
138
138
  }
@@ -164,15 +164,15 @@ class H extends I {
164
164
  }} width=full><span class="font-weight-500">${this._translations.add}</span></calcite-button></div></calcite-panel>`;
165
165
  }
166
166
  _getOnboardingImage() {
167
- return l`<div class="display-flex padding-sides-1"><img class="img-container" role=presentation src=${this._onboardingImageUrl ?? m}></div>`;
167
+ return l`<div class="display-flex padding-sides-1"><img class="img-container" role=presentation src=${this._onboardingImageUrl ?? L}></div>`;
168
168
  }
169
169
  _getSelectionSetList() {
170
170
  return l`<div class="padding-top-1-2 padding-bottom-1-2"><calcite-list class="list-border margin-sides-1" label>${this._selectionSets.reduce((e, t, i) => {
171
171
  const s = this._getSelectionSetIds(t);
172
172
  let a = !0;
173
- return t.workflowType === "REFINE" && (a = Object.keys(t.refineInfos).reduce((n, r) => {
174
- const d = t.refineInfos[r];
175
- return n += d.addIds.length + d.removeIds.length, n;
173
+ return t.workflowType === "REFINE" && (a = Object.keys(t.refineInfos).reduce((n, h) => {
174
+ const p = t.refineInfos[h];
175
+ return n += p.addIds.length + p.removeIds.length, n;
176
176
  }, 0) > 0), a && e.push(l`<calcite-list-item .label=${t.label} @click=${() => this.mapView && this._gotoSelection(t, this.mapView)}><div slot=content><div class="list-label">${t.label}</div><div class="list-description">${t?.layerView?.layer.title}</div><div class="list-description">${this._translations.selectedFeatures.replace("{{n}}", s.length.toString())}</div></div>${this._getAction(!0, "pencil", "", (o) => this._openSelection(t, o), !1, "actions-end")}${this._getAction(!0, "x", "", (o) => this._deleteSelection(i, o), !1, "actions-end")}</calcite-list-item>`), e;
177
177
  }, [])}</calcite-list></div>`;
178
178
  }
@@ -185,7 +185,7 @@ class H extends I {
185
185
  return e && i ? t.length > 0 || this._selectionSets.length > 1 : this._selectionSets.length > 0;
186
186
  }
187
187
  async _getNumDuplicates() {
188
- const e = this._getExportInfos(), t = this.mapView?.map && await x(this.mapView.map, e), i = t && T(t);
188
+ const e = this._getExportInfos(), t = this.mapView?.map && await B(this.mapView.map, e), i = t && J(t);
189
189
  return t && i ? t.length - i.length : 0;
190
190
  }
191
191
  _getExportInfos() {
@@ -210,7 +210,7 @@ class H extends I {
210
210
  }
211
211
  _getSelectPage() {
212
212
  const e = this._translations.selectSearchTip;
213
- return l`<calcite-panel>${this._getLabel(this._translations?.stepTwoFull, !0, "header-label")}${this._getNotice(e, "padding-1", "word-wrap-anywhere")}<div><map-select-tools .bufferColor=${this.bufferColor} .bufferOutlineColor=${this.bufferOutlineColor} class="" .customLabelEnabled=${this.customLabelEnabled} .defaultBufferDistance=${this.defaultBufferDistance} .defaultBufferUnit=${this.defaultBufferUnit} .enableLayerFeatures=${this.enableLayerFeatures} .enableLayerFeaturesOnLoad=${this.enableLayerFeaturesOnLoad} .enableSearchDistance=${this.enableSearchDistance} .enableSearchDistanceOnLoad=${this.enableSearchDistanceOnLoad} .enableSketchTools=${this.enableSketchTools} .enabledLayerIds=${this.addresseeLayerIds} header-label-class .isUpdate=${!!this._activeSelection} .mapView=${this.mapView} .noResultText=${this.noResultText} @selectionSetChange=${this._updateForSelection} .searchConfiguration=${this._searchConfiguration} .searchDistanceEnabled=${this.enableSearchDistanceOnLoad} .selectionLayerIds=${this.selectionLayerIds} .selectionSet=${this._activeSelection} .sketchLineSymbol=${this.sketchLineSymbol} .sketchPointSymbol=${this.sketchPointSymbol} .sketchPolygonSymbol=${this.sketchPolygonSymbol} .useLayerFeaturesEnabled=${this.enableLayerFeaturesOnLoad} ${h(this._selectTools)}></map-select-tools></div>${this._getPageNavButtons(this._translations.done, this._numSelected === 0, () => {
213
+ return l`<calcite-panel>${this._getLabel(this._translations?.stepTwoFull, !0, "header-label")}${this._getNotice(e, "padding-1", "word-wrap-anywhere")}<div><map-select-tools .bufferColor=${this.bufferColor} .bufferOutlineColor=${this.bufferOutlineColor} class="" .customLabelEnabled=${this.customLabelEnabled} .defaultBufferDistance=${this.defaultBufferDistance} .defaultBufferUnit=${this.defaultBufferUnit} .enableLayerFeatures=${this.enableLayerFeatures} .enableLayerFeaturesOnLoad=${this.enableLayerFeaturesOnLoad} .enableSearchDistance=${this.enableSearchDistance} .enableSearchDistanceOnLoad=${this.enableSearchDistanceOnLoad} .enableSketchTools=${this.enableSketchTools} .enabledLayerIds=${this.addresseeLayerIds} header-label-class .isUpdate=${!!this._activeSelection} .mapView=${this.mapView} .noResultText=${this.noResultText} @selectionSetChange=${this._updateForSelection} .searchConfiguration=${this._searchConfiguration} .searchDistanceEnabled=${this.enableSearchDistanceOnLoad} .selectionLayerIds=${this.selectionLayerIds} .selectionSet=${this._activeSelection} .sketchLineSymbol=${this.sketchLineSymbol} .sketchPointSymbol=${this.sketchPointSymbol} .sketchPolygonSymbol=${this.sketchPolygonSymbol} .useLayerFeaturesEnabled=${this.enableLayerFeaturesOnLoad} ${_(this._selectTools)}></map-select-tools></div>${this._getPageNavButtons(this._translations.done, this._numSelected === 0, () => {
214
214
  this._saveSelection();
215
215
  }, this._translations.cancel, !1, () => {
216
216
  this._home();
@@ -218,18 +218,18 @@ class H extends I {
218
218
  }
219
219
  _getExportPage() {
220
220
  const e = this._hasSelections(this.showRefineSelection), t = this._numDuplicates > 0 ? "display-block" : "display-none", i = this.customExport && this.customExportURL && this._layoutTemplates.length;
221
- return l`<calcite-panel><div>${this._getLabel(this._translations.export, !1, "header-label")}${e ? l`<div>${this._getNotice(this._translations.exportTip, "padding-sides-1")}${this._getLabel(this._translations.exportListsLabel, !1, "")}${this._getExportSelectionLists()}<div class=${`padding-sides-1 ${t}`}><div class="display-flex"><calcite-label layout=inline><calcite-checkbox ${h(this._removeDuplicates)}></calcite-checkbox><div class="display-flex">${this._translations.removeDuplicate}<div class="info-message padding-start-1-2"><calcite-input-message class="info-blue margin-top-0" scale=m>${` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`}</calcite-input-message></div></div></calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase() !== "he"} icon=question id=remove-duplicates-icon scale=s></calcite-icon></div><calcite-popover closable label overlay-positioning=fixed reference-element=remove-duplicates-icon><span class="tooltip-message">${this._translations.duplicatesTip}</span></calcite-popover></div><div class="border-bottom"></div><div class="segmented-controls padding-top-sides-1">${this._getLabel(this._translations.exportOptions, !0, "", "margin-bottom-0-5")}${this._getSegmentedControls()}</div>${i ? this._getCustomPrintOptions() : l`<div class="padding-1 padding-bottom-0">${this._getExportOptions()}</div>`}<div class="padding-1 display-flex"><calcite-button .disabled=${!this._downloadActive || this._fetchingData || !this._addMap && !this._addResults} .loading=${this._fetchingData} @click=${() => this._segmentType === "CUSTOM" ? this._customExport() : void this._standardExport()} width=full><span class="font-weight-500">${this._translations.export}</span></calcite-button></div></div>` : this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")}</div></calcite-panel>`;
221
+ return l`<calcite-panel><div>${this._getLabel(this._translations.export, !1, "header-label")}${e ? l`<div>${this._getNotice(this._translations.exportTip, "padding-sides-1")}${this._getLabel(this._translations.exportListsLabel, !1, "")}${this._getExportSelectionLists()}<div class=${`padding-sides-1 ${t}`}><div class="display-flex"><calcite-label layout=inline><calcite-checkbox ${_(this._removeDuplicates)}></calcite-checkbox><div class="display-flex">${this._translations.removeDuplicate}<div class="info-message padding-start-1-2"><calcite-input-message class="info-blue margin-top-0" scale=m>${` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`}</calcite-input-message></div></div></calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase() !== "he"} icon=question id=remove-duplicates-icon scale=s></calcite-icon></div><calcite-popover closable label overlay-positioning=fixed reference-element=remove-duplicates-icon><span class="tooltip-message">${this._translations.duplicatesTip}</span></calcite-popover></div><div class="border-bottom"></div><div class="segmented-controls padding-top-sides-1">${this._getLabel(this._translations.exportOptions, !0, "", "margin-bottom-0-5")}${this._getSegmentedControls()}</div>${i ? this._getCustomPrintOptions() : l`<div class="padding-1 padding-bottom-0">${this._getExportOptions()}</div>`}<div class="padding-1 display-flex"><calcite-button .disabled=${!this._downloadActive || this._fetchingData || !this._addMap && !this._addResults} .loading=${this._fetchingData} @click=${() => this._segmentType === "CUSTOM" ? this._customExport() : void this._standardExport()} width=full><span class="font-weight-500">${this._translations.export}</span></calcite-button></div></div>` : this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")}</div></calcite-panel>`;
222
222
  }
223
223
  _customExport() {
224
224
  if (!this.mapView)
225
225
  return;
226
226
  const e = this.layoutTemplateSelectRef.value ? this.layoutTemplateSelectRef.value.selectedOption.value : "", t = this.reportTemplateSelectRef.value ? this.reportTemplateSelectRef.value.selectedOption.value : "";
227
227
  this._fetchingData = !0;
228
- const i = this._reportTemplatesInfo.find((r) => r.reportTemplate === t), s = i ? { ...i.reportOptions } : {}, a = this._selectedReportingLayerId;
229
- s?.reportSectionOverrides && Object.keys(s.reportSectionOverrides).forEach((r) => {
230
- s.reportSectionOverrides[r].sourceId = a;
228
+ const i = this._reportTemplatesInfo.find((h) => h.reportTemplate === t), s = i ? { ...i.reportOptions } : {}, a = this._selectedReportingLayerId;
229
+ s?.reportSectionOverrides && Object.keys(s.reportSectionOverrides).forEach((h) => {
230
+ s.reportSectionOverrides[h].sourceId = a;
231
231
  });
232
- const o = new F({
232
+ const o = new se({
233
233
  layout: e,
234
234
  report: t,
235
235
  format: "pdf",
@@ -237,19 +237,19 @@ class H extends I {
237
237
  titleText: this._titleElement.value?.value
238
238
  },
239
239
  reportOptions: s
240
- }), n = new A({
240
+ }), n = new ae({
241
241
  view: this.mapView,
242
242
  template: o
243
243
  });
244
- G.execute(this.customExportURL, n).then((r) => {
245
- let d = this._titleValue;
246
- if (!d) {
247
- const u = this._getSelectionIdsAndViews(this._selectionSets, !0), c = E(u);
248
- d = k(c);
244
+ oe.execute(this.customExportURL, n).then((h) => {
245
+ let p = this._titleValue;
246
+ if (!p) {
247
+ const g = this._getSelectionIdsAndViews(this._selectionSets, !0), d = W(g);
248
+ p = z(d);
249
249
  }
250
- r.url && d && this._downloadCustomPDF(r.url, d), this._fetchingData = !1;
251
- }).catch((r) => {
252
- this._fetchingData = !1, console.error(r);
250
+ h.url && p && this._downloadCustomPDF(h.url, p), this._fetchingData = !1;
251
+ }).catch((h) => {
252
+ this._fetchingData = !1, console.error(h);
253
253
  });
254
254
  }
255
255
  async _downloadCustomPDF(e, t) {
@@ -290,7 +290,7 @@ class H extends I {
290
290
  const e = this._titleValue ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "", t = [], i = this._getSelectionIdsAndViews(this._selectionSets, !0);
291
291
  return Object.keys(i).forEach((s) => {
292
292
  i[s].ids.length && t.push(s);
293
- }), l`<div id=custom-export-div class="padding-top-sides-1"><p class="instructional-text">${this._translations.formattingTip}</p>${t.length > 1 && l`<p class="instructional-text margin-top-0-5">${this._translations.selectMatchingInputLayersLabel}</p>` || ""}<div class=${"margin-top-1"}>${this._getLabel(this._translations.title, !0, "", "none")}<calcite-input-text class="padding-inline-start-0 padding-top-1-2" @calciteInputTextInput=${() => this._changeTitle()} .placeholder=${this._translations.titlePlaceholder} .value=${e} ${h(this._titleElement)}></calcite-input-text></div><div class=${"margin-top-1"}>${this._getLabel(this._translations.layoutTemplate, !0, "", "none")}</div><calcite-select class="padding-inline-start-0 padding-top-1-2" label ${h(this.layoutTemplateSelectRef)}>${this._layoutTemplates.map((s, a) => l`<calcite-option .selected=${a === 0} .value=${s}>${s}</calcite-option>`)}</calcite-select>${this._reportTemplates?.length && l`<div class=${"margin-top-1"}>${this._getLabel(this._translations.reportTemplate, !0, "", "none")}</div><calcite-select class="padding-inline-start-0 padding-top-1-2" label ${h(this.reportTemplateSelectRef)}>${this._reportTemplates.map((s, a) => l`<calcite-option .selected=${a === 0} .value=${s}>${s}</calcite-option>`)}</calcite-select><div class=${"padding-top-sides-1 padding-inline-start-0 display-flex margin-bottom-0-5"}><calcite-label class="label-margin-0" layout=inline>${this._translations.reportLayer}</calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase() !== "he"} icon=information id=filter-message-info scale=s></calcite-icon><calcite-popover closable label overlay-positioning=fixed reference-element=filter-message-info><span class="tooltip-message">${this._translations.sourceLayerWarning}</span></calcite-popover></div><map-layer-picker .disabled=${t.length <= 1} .enabledLayerIds=${t} .mapView=${this.mapView} @layerSelectionChange=${(s) => {
293
+ }), l`<div id=custom-export-div class="padding-top-sides-1"><p class="instructional-text">${this._translations.formattingTip}</p>${t.length > 1 && l`<p class="instructional-text margin-top-0-5">${this._translations.selectMatchingInputLayersLabel}</p>` || ""}<div class=${"margin-top-1"}>${this._getLabel(this._translations.title, !0, "", "none")}<calcite-input-text class="padding-inline-start-0 padding-top-1-2" @calciteInputTextInput=${() => this._changeTitle()} .placeholder=${this._translations.titlePlaceholder} .value=${e} ${_(this._titleElement)}></calcite-input-text></div><div class=${"margin-top-1"}>${this._getLabel(this._translations.layoutTemplate, !0, "", "none")}</div><calcite-select class="padding-inline-start-0 padding-top-1-2" label ${_(this.layoutTemplateSelectRef)}>${this._layoutTemplates.map((s, a) => l`<calcite-option .selected=${a === 0} .value=${s}>${s}</calcite-option>`)}</calcite-select>${this._reportTemplates?.length && l`<div class=${"margin-top-1"}>${this._getLabel(this._translations.reportTemplate, !0, "", "none")}</div><calcite-select class="padding-inline-start-0 padding-top-1-2" label ${_(this.reportTemplateSelectRef)}>${this._reportTemplates.map((s, a) => l`<calcite-option .selected=${a === 0} .value=${s}>${s}</calcite-option>`)}</calcite-select><div class=${"padding-top-sides-1 padding-inline-start-0 display-flex margin-bottom-0-5"}><calcite-label class="label-margin-0" layout=inline>${this._translations.reportLayer}</calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase() !== "he"} icon=information id=filter-message-info scale=s></calcite-icon><calcite-popover closable label overlay-positioning=fixed reference-element=filter-message-info><span class="tooltip-message">${this._translations.sourceLayerWarning}</span></calcite-popover></div><map-layer-picker .disabled=${t.length <= 1} .enabledLayerIds=${t} .mapView=${this.mapView} @layerSelectionChange=${(s) => {
294
294
  this._selectedReportingLayerId = s.detail[0];
295
295
  }} .selectedIds=${[this._selectedReportingLayerId]}></map-layer-picker>` || ""}</div>`;
296
296
  }
@@ -303,18 +303,18 @@ class H extends I {
303
303
  try {
304
304
  const i = await this.getTasksInfo(t);
305
305
  let s = "";
306
- const a = i.tasks?.map(async (c) => {
307
- await this.getTaskType(c, t) === "GetReportTemplatesInfo" && (s = `${t}/${c}`);
306
+ const a = i.tasks?.map(async (d) => {
307
+ await this.getTaskType(d, t) === "GetReportTemplatesInfo" && (s = `${t}/${d}`);
308
308
  });
309
309
  a && await Promise.all(a), s && i.executionType && await this._fetchReportTemplates(s, i.executionType);
310
- const n = (await f(e, {
310
+ const n = (await P(e, {
311
311
  authMode: "auto",
312
312
  responseType: "json",
313
313
  query: { f: "json" }
314
- }))?.data, r = n.parameters.find((c) => c.name === "Layout_Template" && Array.isArray(c.choiceList)), d = n.parameters.find((c) => c.name === "Report_Template" && Array.isArray(c.choiceList));
315
- this._layoutTemplates = r ? r.choiceList : [];
316
- const u = d ? d.choiceList : [];
317
- this._reportTemplates = this._reportTemplatesInfo.length ? u.filter((c) => this._reportTemplatesInfo.some((_) => _.reportTemplate === c)) : [];
314
+ }))?.data, h = n.parameters.find((d) => d.name === "Layout_Template" && Array.isArray(d.choiceList)), p = n.parameters.find((d) => d.name === "Report_Template" && Array.isArray(d.choiceList));
315
+ this._layoutTemplates = h ? h.choiceList : [];
316
+ const g = p ? p.choiceList : [];
317
+ this._reportTemplates = this._reportTemplatesInfo.length ? g.filter((d) => this._reportTemplatesInfo.some(($) => $.reportTemplate === d)) : [];
318
318
  } catch (i) {
319
319
  this.resetCustomExport(), console.error(i);
320
320
  }
@@ -327,7 +327,7 @@ class H extends I {
327
327
  return Promise.resolve("");
328
328
  const i = `${t}/${e}`;
329
329
  try {
330
- const o = (await f(i, {
330
+ const o = (await P(i, {
331
331
  authMode: "auto",
332
332
  responseType: "json",
333
333
  query: { f: "json" }
@@ -346,7 +346,7 @@ class H extends I {
346
346
  query: { f: "json" }
347
347
  };
348
348
  try {
349
- const a = (await f(t, i))?.data, o = a?.tasks, n = a?.executionType === "esriExecutionTypeSynchronous" ? "execute" : "submitJob";
349
+ const a = (await P(t, i))?.data, o = a?.tasks, n = a?.executionType === "esriExecutionTypeSynchronous" ? "execute" : "submitJob";
350
350
  return {
351
351
  tasks: o,
352
352
  supportedOperations: n,
@@ -360,10 +360,10 @@ class H extends I {
360
360
  if (e)
361
361
  try {
362
362
  if (t === "esriExecutionTypeSynchronous") {
363
- const s = (await b.execute(e, {}))?.results?.find((a) => a.paramName === "Output_JSON");
363
+ const s = (await V.execute(e, {}))?.results?.find((a) => a.paramName === "Output_JSON");
364
364
  this._reportTemplatesInfo = s?.value ?? [];
365
365
  } else {
366
- const i = await b.submitJob(e, {});
366
+ const i = await V.submitJob(e, {});
367
367
  await i.waitForJobCompletion();
368
368
  const s = await i.fetchResultData("Output_JSON");
369
369
  this._reportTemplatesInfo = s?.value ?? [];
@@ -384,7 +384,7 @@ class H extends I {
384
384
  }
385
385
  _getExportOptions() {
386
386
  const e = this._exportType === "PDF" ? "display-block" : "display-none", t = this._addTitle ? "display-block" : "display-none", i = this._addMap ? "display-flex" : "display-none", s = this._titleValue ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "", a = this._addResults ? "" : "display-none";
387
- return l`<div class=${g(e)}><p class="instructional-text">${this._translations.selectContentTip}</p><div class="padding-top-sides-1 padding-inline-start-0"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addResults} @calciteCheckboxChange=${() => this._addResults = !this._addResults}></calcite-checkbox>${this._translations.addResults}</calcite-label></div><div class=${`indent-group margin-top-1 ${a}`}><div class="margin-bottom-0-5"><calcite-label class="label-margin-0">${this._translations.selectPDFLabelOption}</calcite-label></div><div><pdf-download .defaultNumLabelsPerPage=${Number.parseInt(this.defaultNumLabelsPerPage.toString(), 10)} .disabled=${!this._downloadActive} ${h(this._downloadTools)}></pdf-download></div></div><div class="padding-top-sides-1 padding-inline-start-0"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addTitle} @calciteCheckboxChange=${() => this._addTitle = !this._addTitle}></calcite-checkbox>${this._translations.title}</calcite-label></div><div class=${`${t} indent-group margin-top-0-5`}><calcite-input-text class="padding-inline-start-0 padding-top-1-2" @calciteInputTextInput=${() => this._changeTitle()} .placeholder=${this._translations.titlePlaceholder} .value=${s} ${h(this._titleElement)}></calcite-input-text></div><div class="padding-top-sides-1 padding-inline-start-0"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addMap} @calciteCheckboxChange=${() => this._handleAddMapChange()}></calcite-checkbox>${this._translations.includeMap}</calcite-label></div><div class=${`padding-top-sides-1 padding-inline-start-0 ${i}`}><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._exportGraphics} @calciteCheckboxChange=${() => this._handleExportGraphicsChange()}></calcite-checkbox>${this._translations.listGraphics}</calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase() !== "he"} icon=question id=list-graphics-icon scale=s></calcite-icon><calcite-popover closable label overlay-positioning=fixed reference-element=list-graphics-icon><span class="tooltip-message">${this._translations.listGraphicsTip}</span></calcite-popover></div></div>`;
387
+ return l`<div class=${v(e)}><p class="instructional-text">${this._translations.selectContentTip}</p><div class="padding-top-sides-1 padding-inline-start-0"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addResults} @calciteCheckboxChange=${() => this._addResults = !this._addResults}></calcite-checkbox>${this._translations.addResults}</calcite-label></div><div class=${`indent-group margin-top-1 ${a}`}><div class="margin-bottom-0-5"><calcite-label class="label-margin-0">${this._translations.selectPDFLabelOption}</calcite-label></div><div><pdf-download .defaultNumLabelsPerPage=${Number.parseInt(this.defaultNumLabelsPerPage.toString(), 10)} .disabled=${!this._downloadActive} ${_(this._downloadTools)}></pdf-download></div></div><div class="padding-top-sides-1 padding-inline-start-0"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addTitle} @calciteCheckboxChange=${() => this._addTitle = !this._addTitle}></calcite-checkbox>${this._translations.title}</calcite-label></div><div class=${`${t} indent-group margin-top-0-5`}><calcite-input-text class="padding-inline-start-0 padding-top-1-2" @calciteInputTextInput=${() => this._changeTitle()} .placeholder=${this._translations.titlePlaceholder} .value=${s} ${_(this._titleElement)}></calcite-input-text></div><div class="padding-top-sides-1 padding-inline-start-0"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addMap} @calciteCheckboxChange=${() => this._handleAddMapChange()}></calcite-checkbox>${this._translations.includeMap}</calcite-label></div><div class=${`padding-top-sides-1 padding-inline-start-0 ${i}`}><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._exportGraphics} @calciteCheckboxChange=${() => this._handleExportGraphicsChange()}></calcite-checkbox>${this._translations.listGraphics}</calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase() !== "he"} icon=question id=list-graphics-icon scale=s></calcite-icon><calcite-popover closable label overlay-positioning=fixed reference-element=list-graphics-icon><span class="tooltip-message">${this._translations.listGraphicsTip}</span></calcite-popover></div></div>`;
388
388
  }
389
389
  _handleAddMapChange() {
390
390
  this._addMap = !this._addMap, this._updateExportGraphics();
@@ -420,7 +420,7 @@ class H extends I {
420
420
  color: this.bufferOutlineColor,
421
421
  width: 1
422
422
  }
423
- }, a = new V({
423
+ }, a = new te({
424
424
  geometry: i.buffer,
425
425
  symbol: s
426
426
  });
@@ -428,9 +428,83 @@ class H extends I {
428
428
  }
429
429
  });
430
430
  }
431
+ async _getExportCropArea() {
432
+ if (!this.mapView)
433
+ return;
434
+ const [e, t] = this.mapView.size || [0, 0];
435
+ if (e <= 0 || t <= 0)
436
+ return;
437
+ const i = [], s = (c) => {
438
+ c && isFinite(c.xmin) && isFinite(c.ymin) && isFinite(c.xmax) && isFinite(c.ymax) && i.push({
439
+ xmin: c.xmin,
440
+ ymin: c.ymin,
441
+ xmax: c.xmax,
442
+ ymax: c.ymax,
443
+ sr: c.spatialReference
444
+ });
445
+ }, a = (c) => {
446
+ c?.graphics.forEach((r) => {
447
+ const m = r?.geometry;
448
+ m && (m.extent ? s(m.extent) : typeof m.x == "number" && typeof m.y == "number" && i.push({
449
+ xmin: m.x,
450
+ ymin: m.y,
451
+ xmax: m.x,
452
+ ymax: m.y,
453
+ sr: m.spatialReference
454
+ }));
455
+ });
456
+ };
457
+ a(this._getManagedLayer("buffer")), a(this._getManagedLayer("sketch"));
458
+ const o = [];
459
+ if (this._selectionSets.forEach((c) => {
460
+ const r = (m, T) => {
461
+ m && T?.length && o.push(m.queryExtent({ objectIds: T }).then((A) => A?.extent ?? null).catch(() => null));
462
+ };
463
+ c.workflowType === "REFINE" && c.refineInfos ? Object.keys(c.refineInfos).forEach((m) => {
464
+ const T = c.refineInfos[m];
465
+ r(T?.layerView, T?.addIds || []);
466
+ }) : r(c.layerView, c.selectedIds || []);
467
+ }), o.length > 0 && (await Promise.all(o)).forEach((r) => s(r)), i.length === 0)
468
+ return;
469
+ const n = i[0].sr;
470
+ let h = i[0].xmin, p = i[0].ymin, g = i[0].xmax, d = i[0].ymax;
471
+ for (let c = 1; c < i.length; ++c) {
472
+ const r = i[c];
473
+ r.xmin < h && (h = r.xmin), r.ymin < p && (p = r.ymin), r.xmax > g && (g = r.xmax), r.ymax > d && (d = r.ymax);
474
+ }
475
+ const $ = [
476
+ { x: h, y: p, spatialReference: n },
477
+ { x: h, y: d, spatialReference: n },
478
+ { x: g, y: p, spatialReference: n },
479
+ { x: g, y: d, spatialReference: n }
480
+ ];
481
+ let f = Number.POSITIVE_INFINITY, y = Number.POSITIVE_INFINITY, b = Number.NEGATIVE_INFINITY, S = Number.NEGATIVE_INFINITY;
482
+ for (const c of $) {
483
+ const r = this.mapView.toScreen(c);
484
+ !r || !isFinite(r.x) || !isFinite(r.y) || (r.x < f && (f = r.x), r.y < y && (y = r.y), r.x > b && (b = r.x), r.y > S && (S = r.y));
485
+ }
486
+ if (!isFinite(f) || !isFinite(y) || !isFinite(b) || !isFinite(S))
487
+ return;
488
+ const E = 24;
489
+ f = Math.max(0, Math.floor(f - E)), y = Math.max(0, Math.floor(y - E)), b = Math.min(e, Math.ceil(b + E)), S = Math.min(t, Math.ceil(S + E));
490
+ const O = b - f, R = S - y;
491
+ if (O <= 0 || R <= 0)
492
+ return;
493
+ const D = 8 / 10.5, F = (f + b) / 2, M = (y + S) / 2;
494
+ let u = Math.max(O, R * D), w = u / D;
495
+ const k = Math.min(e / u, t / w);
496
+ k > 1 && (u *= k, w *= k), u > e && (u = e), w > t && (w = t);
497
+ let I = F - u / 2, C = M - w / 2;
498
+ return I = Math.max(0, Math.min(I, e - u)), C = Math.max(0, Math.min(C, t - w)), {
499
+ x: Math.floor(I),
500
+ y: Math.floor(C),
501
+ width: Math.floor(u),
502
+ height: Math.floor(w)
503
+ };
504
+ }
431
505
  _getRefinePage() {
432
506
  const e = this._hasSelections();
433
- return l`<calcite-panel>${this._getLabel(this._translations.refineSelection, !1, "header-label")}${e ? l`<div>${this._getNotice(this._translations.refineTip, "padding-sides-1")}<refine-selection .enabledLayerIds=${this.selectionLayerIds} .mapView=${this.mapView} .drawnGraphicsArr=${this._refineGraphics} .selectionSets=${this._selectionSets} .sketchLineSymbol=${this.sketchLineSymbol} .sketchPointSymbol=${this.sketchPointSymbol} .sketchPolygonSymbol=${this.sketchPolygonSymbol} .bufferColor=${this.bufferColor} .bufferOutlineColor=${this.bufferOutlineColor} .defaultBufferDistance=${this.defaultBufferDistance} .defaultBufferUnit=${this.defaultBufferUnit} .enableSearchDistance=${this.enableSearchDistance} .enableSearchDistanceOnLoad=${this.enableSearchDistanceOnLoad} .searchDistanceEnabled=${this.enableSearchDistanceOnLoad} ${h(this._refineSelection)}></refine-selection></div>` : this._getNotice(this._translations.refineTipNoSelections, "padding-sides-1")}</calcite-panel>`;
507
+ return l`<calcite-panel>${this._getLabel(this._translations.refineSelection, !1, "header-label")}${e ? l`<div>${this._getNotice(this._translations.refineTip, "padding-sides-1")}<refine-selection .enabledLayerIds=${this.selectionLayerIds} .mapView=${this.mapView} .drawnGraphicsArr=${this._refineGraphics} .selectionSets=${this._selectionSets} .sketchLineSymbol=${this.sketchLineSymbol} .sketchPointSymbol=${this.sketchPointSymbol} .sketchPolygonSymbol=${this.sketchPolygonSymbol} .bufferColor=${this.bufferColor} .bufferOutlineColor=${this.bufferOutlineColor} .defaultBufferDistance=${this.defaultBufferDistance} .defaultBufferUnit=${this.defaultBufferUnit} .enableSearchDistance=${this.enableSearchDistance} .enableSearchDistanceOnLoad=${this.enableSearchDistanceOnLoad} .searchDistanceEnabled=${this.enableSearchDistanceOnLoad} ${_(this._refineSelection)}></refine-selection></div>` : this._getNotice(this._translations.refineTipNoSelections, "padding-sides-1")}</calcite-panel>`;
434
508
  }
435
509
  _getPageNavButtons(e, t, i, s, a, o) {
436
510
  return l`<div class="padding-bottom-1"><div class="display-flex padding-top-sides-1"><calcite-button .disabled=${t} @click=${i} width=full><span class="font-weight-500">${e}</span></calcite-button></div><div class="display-flex padding-top-1-2 padding-sides-1"><calcite-button appearance=outline .disabled=${a} @click=${o} width=full><span class="font-weight-500">${s}</span></calcite-button></div></div>`;
@@ -439,10 +513,10 @@ class H extends I {
439
513
  this._titleElement.value?.value && (this._titleValue = this._titleElement.value.value || "");
440
514
  }
441
515
  _getNotice(e, t = "padding-1", i = "") {
442
- return l`<calcite-notice class=${g(t)} icon=lightbulb kind=success open><div class=${g(i)} slot=message>${e}</div></calcite-notice>`;
516
+ return l`<calcite-notice class=${v(t)} icon=lightbulb kind=success open><div class=${v(i)} slot=message>${e}</div></calcite-notice>`;
443
517
  }
444
518
  _getLabel(e, t = !1, i = "font-bold", s = "padding-top-sides-1") {
445
- return i += t ? " label-margin-0" : "", l`<div class=${g(s)}><calcite-label class=${g(i)}>${e}</calcite-label></div>`;
519
+ return i += t ? " label-margin-0" : "", l`<div class=${v(s)}><calcite-label class=${v(i)}>${e}</calcite-label></div>`;
446
520
  }
447
521
  _getExportSelectionLists() {
448
522
  return this._selectionSets.reduce((e, t) => {
@@ -467,7 +541,17 @@ class H extends I {
467
541
  const e = this._addResults ? this._getSelectionIdsAndViews(this._selectionSets, !0) : {};
468
542
  if (this._exportType === "PDF") {
469
543
  let t = "";
470
- this._addMap && this.mapView && (t = (await this.mapView.takeScreenshot({ width: 1500, height: 2e3 }))?.dataUrl), this._fetchingData = !0, this._downloadTools.value && this._removeDuplicates.value && this.mapView?.map && await this._downloadTools.value.downloadPDF(this.mapView.map, e, this._removeDuplicates.value.checked, this._addTitle && this._titleElement.value ? this._titleElement.value.value : "", t), this._fetchingData = !1;
544
+ if (this._addMap && this.mapView) {
545
+ const i = await this._getExportCropArea(), [s, a] = this.mapView.size || [0, 0], o = 2e3, n = i?.width ?? s, h = i?.height ?? a;
546
+ let p = 1500, g = 2e3;
547
+ if (n > 0 && h > 0) {
548
+ const f = o / Math.max(n, h);
549
+ p = Math.max(1, Math.round(n * f)), g = Math.max(1, Math.round(h * f));
550
+ }
551
+ const d = { width: p, height: g };
552
+ i && (d.area = i), t = (await this.mapView.takeScreenshot(d))?.dataUrl;
553
+ }
554
+ this._fetchingData = !0, this._downloadTools.value && this._removeDuplicates.value && this.mapView?.map && await this._downloadTools.value.downloadPDF(this.mapView.map, e, this._removeDuplicates.value.checked, this._addTitle && this._titleElement.value ? this._titleElement.value.value : "", t), this._fetchingData = !1;
471
555
  }
472
556
  this._exportType === "CSV" && (this._fetchingData = !0, this._downloadTools.value && this.mapView?.map && await this._downloadTools.value.downloadCSV(this.mapView.map, e, this._removeDuplicates.value?.checked || !1), this._fetchingData = !1);
473
557
  }
@@ -477,8 +561,8 @@ class H extends I {
477
561
  Object.keys(a.refineInfos).forEach((o) => {
478
562
  const n = a.refineInfos[o];
479
563
  if (n.addIds) {
480
- const r = n.layerView.layer.id;
481
- s = this._updateExportInfos(s, r, a.label, n.addIds, n.layerView);
564
+ const h = n.layerView.layer.id;
565
+ s = this._updateExportInfos(s, h, a.label, n.addIds, n.layerView);
482
566
  }
483
567
  });
484
568
  else {
@@ -496,7 +580,7 @@ class H extends I {
496
580
  }), e;
497
581
  }
498
582
  _getAction(e, t, i, s, a = !1, o = "") {
499
- return l`<calcite-action appearance=solid .disabled=${!e} .icon=${t} icon-flip-rtl .indicator=${a} @click=${s} slot=${o ?? m} .text=${i}></calcite-action>`;
583
+ return l`<calcite-action appearance=solid .disabled=${!e} .icon=${t} icon-flip-rtl .indicator=${a} @click=${s} slot=${o ?? L} .text=${i}></calcite-action>`;
500
584
  }
501
585
  _updateForSelection(e) {
502
586
  this._numSelected = e.detail, this._saveEnabled = this._numSelected > 0;
@@ -519,7 +603,7 @@ class H extends I {
519
603
  return t.stopPropagation(), this._selectionSets = this._selectionSets.filter((i, s) => (i.workflowType === "REFINE" && (this._refineGraphics = []), s !== e ? i : !1)), this._highlightFeatures();
520
604
  }
521
605
  _gotoSelection(e, t) {
522
- e.selectedIds && e.layerView && v(e.selectedIds, e.layerView, t, this.featureHighlightEnabled, this.featureEffect);
606
+ e.selectedIds && e.layerView && H(e.selectedIds, e.layerView, t, this.featureHighlightEnabled, this.featureEffect);
523
607
  }
524
608
  _openSelection(e, t) {
525
609
  t.stopPropagation(), this._activeSelection = e, this._pageType = e.workflowType === "REFINE" ? "REFINE" : "SELECT";
@@ -532,7 +616,7 @@ class H extends I {
532
616
  for (let s = 0; s < i.length; s++) {
533
617
  const a = t[i[s]];
534
618
  if (a.layerView && this.mapView) {
535
- const o = await $(a.ids, a.layerView, this.mapView);
619
+ const o = await j(a.ids, a.layerView, this.mapView);
536
620
  e.highlightHandles.push(o);
537
621
  }
538
622
  }
@@ -545,7 +629,7 @@ class H extends I {
545
629
  e && e.highlightHandles && e.removeHandles();
546
630
  }
547
631
  }
548
- w("public-notification", H);
632
+ U("public-notification", re);
549
633
  export {
550
- H as PublicNotification
634
+ re as PublicNotification
551
635
  };
@@ -1,5 +1,11 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ import type Graphic from "@arcgis/core/Graphic.js";
3
+ import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView.js";
4
+ import type Geometry from "@arcgis/core/geometry/Geometry.js";
5
+ import type SimpleFillSymbol from "@arcgis/core/symbols/SimpleFillSymbol.js";
6
+ import type SimpleMarkerSymbol from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
7
+ import type SimpleLineSymbol from "@arcgis/core/symbols/SimpleLineSymbol.js";
8
+ import type MapView from "@arcgis/core/views/MapView.js";
3
9
  import type { DistanceUnit, ISelectionSet } from "../../utils/interfaces.js";
4
10
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
5
11
  import type { T9nMeta } from "@arcgis/lumina/controllers";
@@ -37,7 +43,7 @@ export abstract class RefineSelection extends LitElement {
37
43
  sketchLayer: string;
38
44
  }>;
39
45
  /** esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html */
40
- accessor addresseeLayer: __esri.FeatureLayerView | undefined;
46
+ accessor addresseeLayer: FeatureLayerView | undefined;
41
47
  /** string | number[] | object with r, g, b, a: https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html */
42
48
  accessor bufferColor: any;
43
49
  /** string | number[] | object with r, g, b, a: https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html */
@@ -48,8 +54,8 @@ export abstract class RefineSelection extends LitElement {
48
54
  accessor defaultBufferUnit: DistanceUnit | undefined;
49
55
  /** Array of drawn graphics for refine selection */
50
56
  accessor drawnGraphicsArr: {
51
- drawnGraphic: __esri.Graphic | undefined;
52
- bufferGraphic: __esri.Graphic | undefined;
57
+ drawnGraphic: Graphic | undefined;
58
+ bufferGraphic: Graphic | undefined;
53
59
  }[];
54
60
  /**
55
61
  * string[]: Optional list of enabled layer ids
@@ -69,9 +75,9 @@ export abstract class RefineSelection extends LitElement {
69
75
  */
70
76
  accessor enableSearchDistanceOnLoad: boolean;
71
77
  /** esri/geometry: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html */
72
- accessor geometries: __esri.Geometry[] | undefined;
78
+ accessor geometries: Geometry[] | undefined;
73
79
  /** esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */
74
- accessor mapView: __esri.MapView | undefined;
80
+ accessor mapView: MapView | undefined;
75
81
  /**
76
82
  * boolean: when true buffer tools controls are enabled
77
83
  *
@@ -81,11 +87,11 @@ export abstract class RefineSelection extends LitElement {
81
87
  /** utils/interfaces/ISelectionSet: An array of user defined selection sets */
82
88
  accessor selectionSets: ISelectionSet[];
83
89
  /** esri/symbols/SimpleLineSymbol | JSON representation : https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html */
84
- accessor sketchLineSymbol: __esri.SimpleLineSymbol | undefined;
90
+ accessor sketchLineSymbol: SimpleLineSymbol | undefined;
85
91
  /** esri/symbols/SimpleMarkerSymbol | JSON representation: https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html */
86
- accessor sketchPointSymbol: __esri.SimpleMarkerSymbol | undefined;
92
+ accessor sketchPointSymbol: SimpleMarkerSymbol | undefined;
87
93
  /** esri/symbols/SimpleFillSymbol | JSON representation: https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html */
88
- accessor sketchPolygonSymbol: __esri.SimpleFillSymbol | undefined;
94
+ accessor sketchPolygonSymbol: SimpleFillSymbol | undefined;
89
95
  /** Emitted on demand when selection starts or ends. */
90
96
  readonly selectionLoadingChange: import("@arcgis/lumina").TargetedEvent<this, boolean>;
91
97
  /** Emitted on demand when selection sets change. */
@@ -8,8 +8,8 @@ import { LitElement as L, createEvent as y, noShadowRoot as E, safeClassMap as G
8
8
  import { css as x, html as h } from "lit";
9
9
  import { useContextConsumer as $ } from "@arcgis/lumina/context";
10
10
  import { p as C } from "../../chunks/publicNotificationContext.js";
11
- import D from "@arcgis/core/Graphic";
12
- import A from "@arcgis/core/layers/GraphicsLayer";
11
+ import D from "@arcgis/core/Graphic.js";
12
+ import A from "@arcgis/core/layers/GraphicsLayer.js";
13
13
  const O = x`@layer{:host{display:block}.div-not-visible{display:none!important}.border{outline:1px solid var(--calcite-color-border-input)}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.3em;background-color:var(--calcite-color-surface-2)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}.esri-sketch__tool-section{border-right:1px solid rgba(110,110,110,.3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110,110,110,.3)}.display-flex{display:flex}.font-bold{font-weight:700}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom: 0}.padding-start-1-2{padding-inline-start:.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}}`;
14
14
  class R extends L {
15
15
  constructor() {
@@ -1,10 +1,10 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ import type MapView from "@arcgis/core/views/MapView.js";
3
3
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
4
 
5
5
  export abstract class SelectionTool extends LitElement {
6
6
  /** esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */
7
- accessor mapView: __esri.MapView | undefined;
7
+ accessor mapView: MapView | undefined;
8
8
  /**
9
9
  * string: Selected layer id
10
10
  *
@@ -3,8 +3,8 @@ import { c as a } from "../../chunks/runtime.js";
3
3
  import { c as r } from "../../chunks/mapViewUtils.js";
4
4
  import { LitElement as c, createEvent as s, noShadowRoot as l } from "@arcgis/lumina";
5
5
  import { css as h } from "lit";
6
- import n from "@arcgis/core/layers/GraphicsLayer";
7
- import p from "@arcgis/core/widgets/Sketch/SketchViewModel";
6
+ import n from "@arcgis/core/layers/GraphicsLayer.js";
7
+ import p from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
8
8
  const m = h`@layer{:host{display:block;pointer-events:all!important}}`;
9
9
  class d extends c {
10
10
  constructor() {