@esri/solutions-components 0.10.39 → 0.10.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (406) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +26 -6
  2. package/dist/cjs/buffer-tools_3.cjs.entry.js +23 -3
  3. package/dist/cjs/calcite-alert_5.cjs.entry.js +40 -5
  4. package/dist/cjs/calcite-block_5.cjs.entry.js +75 -65
  5. package/dist/cjs/calcite-combobox_3.cjs.entry.js +11 -1
  6. package/dist/cjs/calcite-flow_4.cjs.entry.js +33 -10
  7. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +119 -10
  8. package/dist/cjs/calcite-shell_3.cjs.entry.js +26 -4
  9. package/dist/cjs/card-manager_3.cjs.entry.js +41 -9
  10. package/dist/cjs/consent-manager.cjs.entry.js +12 -0
  11. package/dist/cjs/crowdsource-manager.cjs.entry.js +12 -13
  12. package/dist/cjs/crowdsource-reporter.cjs.entry.js +19 -9
  13. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  14. package/dist/cjs/feature-list.cjs.entry.js +13 -3
  15. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +1 -1
  16. package/dist/cjs/instant-apps-export.cjs.entry.js +5 -1
  17. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
  18. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
  19. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +6 -6
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/map-select-tools_3.cjs.entry.js +38 -6
  22. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  23. package/dist/cjs/public-notification.cjs.entry.js +11 -2
  24. package/dist/cjs/share-item.cjs.entry.js +1 -1
  25. package/dist/cjs/solution-configuration.cjs.entry.js +20 -5
  26. package/dist/cjs/solution-contents_3.cjs.entry.js +37 -7
  27. package/dist/cjs/solution-item-accordion.cjs.entry.js +11 -1
  28. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  29. package/dist/cjs/solutions-components.cjs.js +1 -1
  30. package/dist/cjs/spatial-ref.cjs.entry.js +16 -1
  31. package/dist/collection/collection-manifest.json +0 -7
  32. package/dist/collection/components/buffer-tools/buffer-tools.js +30 -1
  33. package/dist/collection/components/card-manager/card-manager.js +34 -2
  34. package/dist/collection/components/consent-manager/consent-manager.js +32 -0
  35. package/dist/collection/components/create-feature/create-feature.js +31 -2
  36. package/dist/collection/components/create-related-feature/create-related-feature.js +30 -1
  37. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +20 -22
  38. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +38 -9
  39. package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
  40. package/dist/collection/components/delete-button/delete-button.js +31 -2
  41. package/dist/collection/components/delete-dialog/delete-dialog.js +33 -1
  42. package/dist/collection/components/edit-card/edit-card.js +30 -1
  43. package/dist/collection/components/feature-details/feature-details.js +24 -6
  44. package/dist/collection/components/feature-list/feature-list.js +32 -3
  45. package/dist/collection/components/floor-filter/floor-filter.js +1 -1
  46. package/dist/collection/components/info-card/info-card.js +36 -2
  47. package/dist/collection/components/json-editor/json-editor.js +38 -1
  48. package/dist/collection/components/layer-list/layer-list.js +35 -3
  49. package/dist/collection/components/layer-table/layer-table.js +34 -5
  50. package/dist/collection/components/map-card/map-card.js +31 -2
  51. package/dist/collection/components/map-draw-tools/map-draw-tools.js +30 -1
  52. package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
  53. package/dist/collection/components/map-layer-picker/map-layer-picker.js +30 -1
  54. package/dist/collection/components/map-legend/map-legend.js +1 -1
  55. package/dist/collection/components/map-picker/map-picker.js +30 -1
  56. package/dist/collection/components/map-search/map-search.js +1 -1
  57. package/dist/collection/components/map-select-tools/map-select-tools.js +15 -4
  58. package/dist/collection/components/map-tools/map-tools.js +30 -1
  59. package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
  60. package/dist/collection/components/pdf-download/pdf-download.js +33 -1
  61. package/dist/collection/components/public-notification/public-notification.js +13 -2
  62. package/dist/collection/components/refine-selection/refine-selection.js +15 -1
  63. package/dist/collection/components/share-item/share-item.js +1 -1
  64. package/dist/collection/components/solution-configuration/solution-configuration.js +38 -4
  65. package/dist/collection/components/solution-contents/solution-contents.js +1 -1
  66. package/dist/collection/components/solution-item/solution-item.js +37 -3
  67. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +30 -1
  68. package/dist/collection/components/solution-item-details/solution-item-details.js +38 -1
  69. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  70. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +35 -1
  71. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +35 -1
  72. package/dist/collection/components/solution-resource-item/solution-resource-item.js +35 -1
  73. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +35 -1
  74. package/dist/collection/components/solution-template-data/solution-template-data.js +35 -1
  75. package/dist/collection/components/solution-variables/solution-variables.js +35 -1
  76. package/dist/collection/components/spatial-ref/spatial-ref.js +35 -1
  77. package/dist/collection/demos/crowdsource-manager.html +0 -1
  78. package/dist/collection/demos/crowdsource-reporter.html +2 -2
  79. package/dist/components/buffer-tools2.js +15 -3
  80. package/dist/components/card-manager2.js +18 -3
  81. package/dist/components/consent-manager.js +15 -0
  82. package/dist/components/create-feature2.js +14 -2
  83. package/dist/components/create-related-feature2.js +13 -1
  84. package/dist/components/crowdsource-manager.js +14 -15
  85. package/dist/components/crowdsource-reporter.js +21 -9
  86. package/dist/components/deduct-calculator2.js +1 -1
  87. package/dist/components/delete-button2.js +16 -4
  88. package/dist/components/delete-dialog2.js +16 -1
  89. package/dist/components/edit-card2.js +13 -1
  90. package/dist/components/feature-details2.js +8 -6
  91. package/dist/components/feature-list2.js +15 -3
  92. package/dist/components/floor-filter2.js +1 -1
  93. package/dist/components/info-card2.js +19 -2
  94. package/dist/components/instant-apps-app-guide.js +1 -1
  95. package/dist/components/instant-apps-export.js +5 -1
  96. package/dist/components/instant-apps-filter-list2.js +75 -66
  97. package/dist/components/instant-apps-landing-page.js +1 -1
  98. package/dist/components/instant-apps-sign-in2.js +2 -2
  99. package/dist/components/instant-apps-time-filter.js +6 -6
  100. package/dist/components/json-editor2.js +21 -1
  101. package/dist/components/layer-list2.js +18 -3
  102. package/dist/components/layer-table2.js +17 -5
  103. package/dist/components/map-card2.js +14 -2
  104. package/dist/components/map-draw-tools2.js +13 -1
  105. package/dist/components/map-fullscreen2.js +1 -1
  106. package/dist/components/map-layer-picker2.js +13 -1
  107. package/dist/components/map-legend2.js +1 -1
  108. package/dist/components/map-picker2.js +13 -1
  109. package/dist/components/map-search2.js +1 -1
  110. package/dist/components/map-select-tools2.js +14 -4
  111. package/dist/components/map-tools2.js +13 -1
  112. package/dist/components/pci-calculator.js +1 -1
  113. package/dist/components/pdf-download2.js +16 -1
  114. package/dist/components/public-notification.js +12 -2
  115. package/dist/components/refine-selection2.js +14 -1
  116. package/dist/components/share-item.js +1 -1
  117. package/dist/components/solution-configuration.js +23 -6
  118. package/dist/components/solution-contents2.js +1 -1
  119. package/dist/components/solution-item-accordion.js +13 -1
  120. package/dist/components/solution-item-details2.js +22 -2
  121. package/dist/components/solution-item-icon2.js +1 -1
  122. package/dist/components/solution-item-sharing2.js +20 -3
  123. package/dist/components/solution-item2.js +22 -5
  124. package/dist/components/solution-organization-variables2.js +18 -1
  125. package/dist/components/solution-resource-item2.js +20 -3
  126. package/dist/components/solution-spatial-ref2.js +20 -3
  127. package/dist/components/solution-template-data2.js +20 -3
  128. package/dist/components/solution-variables2.js +18 -1
  129. package/dist/components/spatial-ref.js +18 -1
  130. package/dist/esm/basemap-gallery_7.entry.js +26 -6
  131. package/dist/esm/buffer-tools_3.entry.js +23 -3
  132. package/dist/esm/calcite-alert_5.entry.js +40 -5
  133. package/dist/esm/calcite-block_5.entry.js +75 -65
  134. package/dist/esm/calcite-combobox_3.entry.js +11 -1
  135. package/dist/esm/calcite-flow_4.entry.js +33 -10
  136. package/dist/esm/calcite-shell-panel_14.entry.js +119 -10
  137. package/dist/esm/calcite-shell_3.entry.js +26 -4
  138. package/dist/esm/card-manager_3.entry.js +41 -9
  139. package/dist/esm/consent-manager.entry.js +12 -0
  140. package/dist/esm/crowdsource-manager.entry.js +12 -13
  141. package/dist/esm/crowdsource-reporter.entry.js +19 -9
  142. package/dist/esm/deduct-calculator.entry.js +1 -1
  143. package/dist/esm/feature-list.entry.js +13 -3
  144. package/dist/esm/instant-apps-app-guide.entry.js +1 -1
  145. package/dist/esm/instant-apps-export.entry.js +5 -1
  146. package/dist/esm/instant-apps-landing-page.entry.js +1 -1
  147. package/dist/esm/instant-apps-sign-in.entry.js +2 -2
  148. package/dist/esm/instant-apps-time-filter.entry.js +6 -6
  149. package/dist/esm/loader.js +1 -1
  150. package/dist/esm/map-select-tools_3.entry.js +38 -6
  151. package/dist/esm/pci-calculator.entry.js +1 -1
  152. package/dist/esm/public-notification.entry.js +11 -2
  153. package/dist/esm/share-item.entry.js +1 -1
  154. package/dist/esm/solution-configuration.entry.js +20 -5
  155. package/dist/esm/solution-contents_3.entry.js +37 -7
  156. package/dist/esm/solution-item-accordion.entry.js +11 -1
  157. package/dist/esm/solution-item-icon.entry.js +1 -1
  158. package/dist/esm/solutions-components.js +1 -1
  159. package/dist/esm/spatial-ref.entry.js +16 -1
  160. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-app-guide/instant-apps-app-guide.css +1 -1
  161. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +43 -26
  162. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-sign-in/instant-apps-sign-in.css +6 -0
  163. package/dist/solutions-components/demos/crowdsource-manager.html +0 -1
  164. package/dist/solutions-components/demos/crowdsource-reporter.html +2 -2
  165. package/dist/solutions-components/p-0a2e5861.entry.js +6 -0
  166. package/dist/solutions-components/{p-739ce6f3.entry.js → p-2f784608.entry.js} +1 -1
  167. package/dist/solutions-components/{p-1c2d0e90.entry.js → p-3e44cfab.entry.js} +1 -1
  168. package/dist/solutions-components/{p-841816a1.entry.js → p-41314f33.entry.js} +7 -7
  169. package/dist/solutions-components/{p-18089a0b.entry.js → p-471d5c7f.entry.js} +2 -2
  170. package/dist/solutions-components/p-5001cc41.entry.js +6 -0
  171. package/dist/solutions-components/p-523dcf4b.entry.js +6 -0
  172. package/dist/solutions-components/p-561c0e02.entry.js +6 -0
  173. package/dist/solutions-components/p-56beff4c.entry.js +6 -0
  174. package/dist/solutions-components/p-592f2000.entry.js +6 -0
  175. package/dist/solutions-components/p-5cbf3eed.entry.js +6 -0
  176. package/dist/solutions-components/p-62d8796c.entry.js +17 -0
  177. package/dist/solutions-components/p-6d1922cc.entry.js +6 -0
  178. package/dist/solutions-components/p-80e81af7.entry.js +6 -0
  179. package/dist/solutions-components/{p-82ddf716.entry.js → p-8e2f4995.entry.js} +1 -1
  180. package/dist/solutions-components/p-8f8c7045.entry.js +6 -0
  181. package/dist/solutions-components/p-953afbb3.entry.js +29 -0
  182. package/dist/solutions-components/{p-bb8b1ee2.entry.js → p-a2cf9fdc.entry.js} +1 -1
  183. package/dist/solutions-components/p-a7f56b28.entry.js +6 -0
  184. package/dist/solutions-components/{p-6502d0f8.entry.js → p-b7fbaeb7.entry.js} +1 -1
  185. package/dist/solutions-components/p-cced387c.entry.js +6 -0
  186. package/dist/solutions-components/{p-a5d79c86.entry.js → p-ce53e33d.entry.js} +2 -2
  187. package/dist/solutions-components/{p-59ccd27c.entry.js → p-d51c07d2.entry.js} +1 -1
  188. package/dist/solutions-components/p-d75cf651.entry.js +11 -0
  189. package/dist/solutions-components/p-d7afbe8d.entry.js +11 -0
  190. package/dist/solutions-components/p-e1e21798.entry.js +12 -0
  191. package/dist/solutions-components/p-e4107150.entry.js +6 -0
  192. package/dist/solutions-components/p-e9026f9a.entry.js +6 -0
  193. package/dist/solutions-components/solutions-components.esm.js +1 -1
  194. package/dist/types/components/buffer-tools/buffer-tools.d.ts +8 -0
  195. package/dist/types/components/card-manager/card-manager.d.ts +8 -0
  196. package/dist/types/components/consent-manager/consent-manager.d.ts +8 -0
  197. package/dist/types/components/create-feature/create-feature.d.ts +8 -0
  198. package/dist/types/components/create-related-feature/create-related-feature.d.ts +8 -0
  199. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -4
  200. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +8 -0
  201. package/dist/types/components/deduct-calculator/deduct-calculator.d.ts +1 -1
  202. package/dist/types/components/delete-button/delete-button.d.ts +9 -1
  203. package/dist/types/components/delete-dialog/delete-dialog.d.ts +8 -0
  204. package/dist/types/components/edit-card/edit-card.d.ts +8 -0
  205. package/dist/types/components/feature-details/feature-details.d.ts +4 -0
  206. package/dist/types/components/feature-list/feature-list.d.ts +8 -0
  207. package/dist/types/components/info-card/info-card.d.ts +8 -0
  208. package/dist/types/components/json-editor/json-editor.d.ts +8 -0
  209. package/dist/types/components/layer-list/layer-list.d.ts +8 -0
  210. package/dist/types/components/layer-table/layer-table.d.ts +9 -1
  211. package/dist/types/components/map-card/map-card.d.ts +8 -0
  212. package/dist/types/components/map-draw-tools/map-draw-tools.d.ts +8 -0
  213. package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +8 -0
  214. package/dist/types/components/map-picker/map-picker.d.ts +8 -0
  215. package/dist/types/components/map-select-tools/map-select-tools.d.ts +4 -0
  216. package/dist/types/components/map-tools/map-tools.d.ts +8 -0
  217. package/dist/types/components/pdf-download/pdf-download.d.ts +8 -0
  218. package/dist/types/components/public-notification/public-notification.d.ts +4 -0
  219. package/dist/types/components/refine-selection/refine-selection.d.ts +4 -0
  220. package/dist/types/components/solution-configuration/solution-configuration.d.ts +8 -0
  221. package/dist/types/components/solution-item/solution-item.d.ts +8 -0
  222. package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +8 -0
  223. package/dist/types/components/solution-item-details/solution-item-details.d.ts +8 -0
  224. package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +8 -0
  225. package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +8 -0
  226. package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +8 -0
  227. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +8 -0
  228. package/dist/types/components/solution-template-data/solution-template-data.d.ts +8 -0
  229. package/dist/types/components/solution-variables/solution-variables.d.ts +8 -0
  230. package/dist/types/components/spatial-ref/spatial-ref.d.ts +8 -0
  231. package/dist/types/components.d.ts +266 -120
  232. package/dist/types/preact.d.ts +0 -16
  233. package/package.json +8 -8
  234. package/dist/cjs/feature-comments.cjs.entry.js +0 -61
  235. package/dist/cjs/feature-form-flow-item.cjs.entry.js +0 -61
  236. package/dist/cjs/features-flow-item.cjs.entry.js +0 -61
  237. package/dist/cjs/layout-manager.cjs.entry.js +0 -114
  238. package/dist/cjs/list-flow-item.cjs.entry.js +0 -61
  239. package/dist/cjs/location-flow-item.cjs.entry.js +0 -61
  240. package/dist/cjs/refine-results-flow-item.cjs.entry.js +0 -61
  241. package/dist/collection/assets/t9n/feature-comments/resources.json +0 -3
  242. package/dist/collection/assets/t9n/feature-comments/resources_en.json +0 -3
  243. package/dist/collection/assets/t9n/feature-form-flow-item/resources.json +0 -3
  244. package/dist/collection/assets/t9n/feature-form-flow-item/resources_en.json +0 -3
  245. package/dist/collection/assets/t9n/layout-manager/resources.json +0 -7
  246. package/dist/collection/assets/t9n/layout-manager/resources_ar.json +0 -7
  247. package/dist/collection/assets/t9n/layout-manager/resources_bg.json +0 -7
  248. package/dist/collection/assets/t9n/layout-manager/resources_bs.json +0 -7
  249. package/dist/collection/assets/t9n/layout-manager/resources_ca.json +0 -7
  250. package/dist/collection/assets/t9n/layout-manager/resources_cs.json +0 -7
  251. package/dist/collection/assets/t9n/layout-manager/resources_da.json +0 -7
  252. package/dist/collection/assets/t9n/layout-manager/resources_de.json +0 -7
  253. package/dist/collection/assets/t9n/layout-manager/resources_el.json +0 -7
  254. package/dist/collection/assets/t9n/layout-manager/resources_en.json +0 -7
  255. package/dist/collection/assets/t9n/layout-manager/resources_es.json +0 -7
  256. package/dist/collection/assets/t9n/layout-manager/resources_et.json +0 -7
  257. package/dist/collection/assets/t9n/layout-manager/resources_fi.json +0 -7
  258. package/dist/collection/assets/t9n/layout-manager/resources_fr.json +0 -7
  259. package/dist/collection/assets/t9n/layout-manager/resources_he.json +0 -7
  260. package/dist/collection/assets/t9n/layout-manager/resources_hr.json +0 -7
  261. package/dist/collection/assets/t9n/layout-manager/resources_hu.json +0 -7
  262. package/dist/collection/assets/t9n/layout-manager/resources_id.json +0 -7
  263. package/dist/collection/assets/t9n/layout-manager/resources_it.json +0 -7
  264. package/dist/collection/assets/t9n/layout-manager/resources_ja.json +0 -7
  265. package/dist/collection/assets/t9n/layout-manager/resources_ko.json +0 -7
  266. package/dist/collection/assets/t9n/layout-manager/resources_lt.json +0 -7
  267. package/dist/collection/assets/t9n/layout-manager/resources_lv.json +0 -7
  268. package/dist/collection/assets/t9n/layout-manager/resources_nb.json +0 -7
  269. package/dist/collection/assets/t9n/layout-manager/resources_nl.json +0 -7
  270. package/dist/collection/assets/t9n/layout-manager/resources_pl.json +0 -7
  271. package/dist/collection/assets/t9n/layout-manager/resources_pt-BR.json +0 -7
  272. package/dist/collection/assets/t9n/layout-manager/resources_pt-PT.json +0 -7
  273. package/dist/collection/assets/t9n/layout-manager/resources_ro.json +0 -7
  274. package/dist/collection/assets/t9n/layout-manager/resources_ru.json +0 -7
  275. package/dist/collection/assets/t9n/layout-manager/resources_sk.json +0 -7
  276. package/dist/collection/assets/t9n/layout-manager/resources_sl.json +0 -7
  277. package/dist/collection/assets/t9n/layout-manager/resources_sr.json +0 -7
  278. package/dist/collection/assets/t9n/layout-manager/resources_sv.json +0 -7
  279. package/dist/collection/assets/t9n/layout-manager/resources_th.json +0 -7
  280. package/dist/collection/assets/t9n/layout-manager/resources_tr.json +0 -7
  281. package/dist/collection/assets/t9n/layout-manager/resources_uk.json +0 -7
  282. package/dist/collection/assets/t9n/layout-manager/resources_vi.json +0 -7
  283. package/dist/collection/assets/t9n/layout-manager/resources_zh-CN.json +0 -7
  284. package/dist/collection/assets/t9n/layout-manager/resources_zh-HK.json +0 -7
  285. package/dist/collection/assets/t9n/layout-manager/resources_zh-TW.json +0 -7
  286. package/dist/collection/assets/t9n/list-flow-item/resources.json +0 -3
  287. package/dist/collection/assets/t9n/list-flow-item/resources_en.json +0 -3
  288. package/dist/collection/assets/t9n/location-flow-item/resources.json +0 -3
  289. package/dist/collection/assets/t9n/location-flow-item/resources_en.json +0 -3
  290. package/dist/collection/components/feature-comments/feature-comments.css +0 -19
  291. package/dist/collection/components/feature-comments/feature-comments.js +0 -80
  292. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.css +0 -19
  293. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +0 -80
  294. package/dist/collection/components/features-flow-item/features-flow-item.css +0 -19
  295. package/dist/collection/components/features-flow-item/features-flow-item.js +0 -80
  296. package/dist/collection/components/layout-manager/layout-manager.css +0 -73
  297. package/dist/collection/components/layout-manager/layout-manager.js +0 -161
  298. package/dist/collection/components/list-flow-item/list-flow-item.css +0 -19
  299. package/dist/collection/components/list-flow-item/list-flow-item.js +0 -80
  300. package/dist/collection/components/location-flow-item/location-flow-item.css +0 -19
  301. package/dist/collection/components/location-flow-item/location-flow-item.js +0 -80
  302. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.css +0 -19
  303. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +0 -80
  304. package/dist/components/feature-comments.d.ts +0 -11
  305. package/dist/components/feature-comments.js +0 -76
  306. package/dist/components/feature-form-flow-item.d.ts +0 -11
  307. package/dist/components/feature-form-flow-item.js +0 -76
  308. package/dist/components/features-flow-item.d.ts +0 -11
  309. package/dist/components/features-flow-item.js +0 -76
  310. package/dist/components/layout-manager.d.ts +0 -11
  311. package/dist/components/layout-manager.js +0 -159
  312. package/dist/components/list-flow-item.d.ts +0 -11
  313. package/dist/components/list-flow-item.js +0 -76
  314. package/dist/components/location-flow-item.d.ts +0 -11
  315. package/dist/components/location-flow-item.js +0 -76
  316. package/dist/components/refine-results-flow-item.d.ts +0 -11
  317. package/dist/components/refine-results-flow-item.js +0 -76
  318. package/dist/esm/feature-comments.entry.js +0 -57
  319. package/dist/esm/feature-form-flow-item.entry.js +0 -57
  320. package/dist/esm/features-flow-item.entry.js +0 -57
  321. package/dist/esm/layout-manager.entry.js +0 -110
  322. package/dist/esm/list-flow-item.entry.js +0 -57
  323. package/dist/esm/location-flow-item.entry.js +0 -57
  324. package/dist/esm/refine-results-flow-item.entry.js +0 -57
  325. package/dist/solutions-components/assets/t9n/feature-comments/resources.json +0 -3
  326. package/dist/solutions-components/assets/t9n/feature-comments/resources_en.json +0 -3
  327. package/dist/solutions-components/assets/t9n/feature-form-flow-item/resources.json +0 -3
  328. package/dist/solutions-components/assets/t9n/feature-form-flow-item/resources_en.json +0 -3
  329. package/dist/solutions-components/assets/t9n/layout-manager/resources.json +0 -7
  330. package/dist/solutions-components/assets/t9n/layout-manager/resources_ar.json +0 -7
  331. package/dist/solutions-components/assets/t9n/layout-manager/resources_bg.json +0 -7
  332. package/dist/solutions-components/assets/t9n/layout-manager/resources_bs.json +0 -7
  333. package/dist/solutions-components/assets/t9n/layout-manager/resources_ca.json +0 -7
  334. package/dist/solutions-components/assets/t9n/layout-manager/resources_cs.json +0 -7
  335. package/dist/solutions-components/assets/t9n/layout-manager/resources_da.json +0 -7
  336. package/dist/solutions-components/assets/t9n/layout-manager/resources_de.json +0 -7
  337. package/dist/solutions-components/assets/t9n/layout-manager/resources_el.json +0 -7
  338. package/dist/solutions-components/assets/t9n/layout-manager/resources_en.json +0 -7
  339. package/dist/solutions-components/assets/t9n/layout-manager/resources_es.json +0 -7
  340. package/dist/solutions-components/assets/t9n/layout-manager/resources_et.json +0 -7
  341. package/dist/solutions-components/assets/t9n/layout-manager/resources_fi.json +0 -7
  342. package/dist/solutions-components/assets/t9n/layout-manager/resources_fr.json +0 -7
  343. package/dist/solutions-components/assets/t9n/layout-manager/resources_he.json +0 -7
  344. package/dist/solutions-components/assets/t9n/layout-manager/resources_hr.json +0 -7
  345. package/dist/solutions-components/assets/t9n/layout-manager/resources_hu.json +0 -7
  346. package/dist/solutions-components/assets/t9n/layout-manager/resources_id.json +0 -7
  347. package/dist/solutions-components/assets/t9n/layout-manager/resources_it.json +0 -7
  348. package/dist/solutions-components/assets/t9n/layout-manager/resources_ja.json +0 -7
  349. package/dist/solutions-components/assets/t9n/layout-manager/resources_ko.json +0 -7
  350. package/dist/solutions-components/assets/t9n/layout-manager/resources_lt.json +0 -7
  351. package/dist/solutions-components/assets/t9n/layout-manager/resources_lv.json +0 -7
  352. package/dist/solutions-components/assets/t9n/layout-manager/resources_nb.json +0 -7
  353. package/dist/solutions-components/assets/t9n/layout-manager/resources_nl.json +0 -7
  354. package/dist/solutions-components/assets/t9n/layout-manager/resources_pl.json +0 -7
  355. package/dist/solutions-components/assets/t9n/layout-manager/resources_pt-BR.json +0 -7
  356. package/dist/solutions-components/assets/t9n/layout-manager/resources_pt-PT.json +0 -7
  357. package/dist/solutions-components/assets/t9n/layout-manager/resources_ro.json +0 -7
  358. package/dist/solutions-components/assets/t9n/layout-manager/resources_ru.json +0 -7
  359. package/dist/solutions-components/assets/t9n/layout-manager/resources_sk.json +0 -7
  360. package/dist/solutions-components/assets/t9n/layout-manager/resources_sl.json +0 -7
  361. package/dist/solutions-components/assets/t9n/layout-manager/resources_sr.json +0 -7
  362. package/dist/solutions-components/assets/t9n/layout-manager/resources_sv.json +0 -7
  363. package/dist/solutions-components/assets/t9n/layout-manager/resources_th.json +0 -7
  364. package/dist/solutions-components/assets/t9n/layout-manager/resources_tr.json +0 -7
  365. package/dist/solutions-components/assets/t9n/layout-manager/resources_uk.json +0 -7
  366. package/dist/solutions-components/assets/t9n/layout-manager/resources_vi.json +0 -7
  367. package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-CN.json +0 -7
  368. package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-HK.json +0 -7
  369. package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-TW.json +0 -7
  370. package/dist/solutions-components/assets/t9n/list-flow-item/resources.json +0 -3
  371. package/dist/solutions-components/assets/t9n/list-flow-item/resources_en.json +0 -3
  372. package/dist/solutions-components/assets/t9n/location-flow-item/resources.json +0 -3
  373. package/dist/solutions-components/assets/t9n/location-flow-item/resources_en.json +0 -3
  374. package/dist/solutions-components/p-04ab956c.entry.js +0 -6
  375. package/dist/solutions-components/p-06364211.entry.js +0 -6
  376. package/dist/solutions-components/p-1700f63a.entry.js +0 -6
  377. package/dist/solutions-components/p-1f07e21a.entry.js +0 -6
  378. package/dist/solutions-components/p-46416e11.entry.js +0 -6
  379. package/dist/solutions-components/p-5b3c0418.entry.js +0 -6
  380. package/dist/solutions-components/p-70c0050c.entry.js +0 -6
  381. package/dist/solutions-components/p-720de4db.entry.js +0 -6
  382. package/dist/solutions-components/p-74bcef23.entry.js +0 -11
  383. package/dist/solutions-components/p-750b3277.entry.js +0 -6
  384. package/dist/solutions-components/p-76154700.entry.js +0 -6
  385. package/dist/solutions-components/p-8779ee41.entry.js +0 -6
  386. package/dist/solutions-components/p-938bc915.entry.js +0 -6
  387. package/dist/solutions-components/p-9c4fef09.entry.js +0 -17
  388. package/dist/solutions-components/p-9d56f4b5.entry.js +0 -6
  389. package/dist/solutions-components/p-9da8a590.entry.js +0 -6
  390. package/dist/solutions-components/p-aac0c89c.entry.js +0 -6
  391. package/dist/solutions-components/p-be4c7ffd.entry.js +0 -6
  392. package/dist/solutions-components/p-ca3cbd29.entry.js +0 -6
  393. package/dist/solutions-components/p-d2612c30.entry.js +0 -6
  394. package/dist/solutions-components/p-df7de4b7.entry.js +0 -12
  395. package/dist/solutions-components/p-e1391389.entry.js +0 -29
  396. package/dist/solutions-components/p-e345f9c4.entry.js +0 -6
  397. package/dist/solutions-components/p-eadff42b.entry.js +0 -11
  398. package/dist/solutions-components/p-fa1c368c.entry.js +0 -6
  399. package/dist/solutions-components/p-ff3858c6.entry.js +0 -6
  400. package/dist/types/components/feature-comments/feature-comments.d.ts +0 -19
  401. package/dist/types/components/feature-form-flow-item/feature-form-flow-item.d.ts +0 -19
  402. package/dist/types/components/features-flow-item/features-flow-item.d.ts +0 -19
  403. package/dist/types/components/layout-manager/layout-manager.d.ts +0 -69
  404. package/dist/types/components/list-flow-item/list-flow-item.d.ts +0 -19
  405. package/dist/types/components/location-flow-item/location-flow-item.d.ts +0 -19
  406. package/dist/types/components/refine-results-flow-item/refine-results-flow-item.d.ts +0 -19
@@ -21059,6 +21059,19 @@ const SpatialRefStyle0 = spatialRefCss;
21059
21059
 
21060
21060
  const SpatialRef = class {
21061
21061
  get el() { return getElement(this); }
21062
+ //--------------------------------------------------------------------------
21063
+ //
21064
+ // Watch handlers
21065
+ //
21066
+ //--------------------------------------------------------------------------
21067
+ /**
21068
+ * Fetch translations when the locale is updated
21069
+ */
21070
+ async localeWatchHandler() {
21071
+ // to support url param and language switcher
21072
+ this.el.lang = this.locale;
21073
+ await this._getTranslations();
21074
+ }
21062
21075
  valueChanged(newValue) {
21063
21076
  this._spatialRef = this._createSpatialRefDisplay(newValue);
21064
21077
  const searchBox = document.getElementById("calcite-sr-search");
@@ -21084,6 +21097,7 @@ const SpatialRef = class {
21084
21097
  this.spatialReferenceChange = createEvent(this, "spatialReferenceChange", 7);
21085
21098
  this.defaultWkid = 102100;
21086
21099
  this.disabled = false;
21100
+ this.locale = undefined;
21087
21101
  this.value = this.defaultWkid.toString();
21088
21102
  this._cachedValue = this.defaultWkid.toString();
21089
21103
  this._spatialRef = undefined;
@@ -21101,7 +21115,7 @@ const SpatialRef = class {
21101
21115
  * Renders the component.
21102
21116
  */
21103
21117
  render() {
21104
- return (h(Host, { key: '1da00c18c49d769c98e236f73e648dd880df6e2a' }, h("div", { key: '61da287f6865c90a1b4b523cb13d689247255573' }, h("calcite-input", { key: 'e129b4a009fa12f9aff37384debe673dbed31774', disabled: this.disabled, id: "calcite-sr-search", onKeyUp: (evt) => this._searchInputKeyDown(evt), placeholder: this._translations.spatialReferencePlaceholder }), h("calcite-tree", { key: '125c006a62fda7fd1204c81374c119b562424e26', id: "calcite-sr-tree", slot: "children" }, this._getTreeContent()))));
21118
+ return (h(Host, { key: '348d114f0c8c9571b4beff34a946a09b734083f9' }, h("div", { key: '2f6bb626834a50690fd523744a4c2adeddfb0f9f' }, h("calcite-input", { key: '4b3d9354f1c1983c49360eb9f3a0a921288f50c2', disabled: this.disabled, id: "calcite-sr-search", onKeyUp: (evt) => this._searchInputKeyDown(evt), placeholder: this._translations.spatialReferencePlaceholder }), h("calcite-tree", { key: '883819c424636a79957d375f0d613d32827e5ebe', id: "calcite-sr-tree", slot: "children" }, this._getTreeContent()))));
21105
21119
  }
21106
21120
  _lastHighlightedSref;
21107
21121
  //--------------------------------------------------------------------------
@@ -21299,6 +21313,7 @@ const SpatialRef = class {
21299
21313
  this._translations = translations[0];
21300
21314
  }
21301
21315
  static get watchers() { return {
21316
+ "locale": ["localeWatchHandler"],
21302
21317
  "value": ["valueChanged"]
21303
21318
  }; }
21304
21319
  };
@@ -13,10 +13,10 @@
13
13
  }
14
14
  :host calcite-carousel {
15
15
  flex: 1;
16
- overflow: scroll;
17
16
  height: -moz-fit-content;
18
17
  height: fit-content;
19
18
  background-color: var(--calcite-color-foreground-1);
19
+ overflow: auto;
20
20
  }
21
21
  :host [slot=header-content] {
22
22
  display: flex;
@@ -45,7 +45,6 @@
45
45
  :host .instant-apps-landing-page__subtitle-text {
46
46
  font-weight: var(--calcite-font-weight-medium);
47
47
  font-size: var(--instant-apps-landing-page-subtitle-text-font-size);
48
- text-align: center;
49
48
  }
50
49
  :host .instant-apps-landing-page__description-text {
51
50
  font-size: var(--instant-apps-landing-page-description-text-font-size);
@@ -101,9 +100,6 @@
101
100
  align-items: center;
102
101
  justify-content: center;
103
102
  }
104
- :host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__description-text {
105
- text-align: center;
106
- }
107
103
  :host .instant-apps-landing-page__alignment--center {
108
104
  justify-content: center;
109
105
  align-items: center;
@@ -113,9 +109,6 @@
113
109
  flex-direction: column;
114
110
  align-items: center;
115
111
  }
116
- :host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__description-text {
117
- text-align: center;
118
- }
119
112
  :host .instant-apps-landing-page__alignment--bottom-center {
120
113
  justify-content: flex-end;
121
114
  align-items: center;
@@ -125,30 +118,18 @@
125
118
  flex-direction: column;
126
119
  align-items: center;
127
120
  }
128
- :host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__description-text {
129
- text-align: center;
130
- }
131
121
  :host .instant-apps-landing-page__alignment--top-left {
132
122
  justify-content: flex-start;
133
123
  align-items: flex-start;
134
124
  }
135
- :host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__description-text {
136
- text-align: left;
137
- }
138
125
  :host .instant-apps-landing-page__alignment--center-left {
139
126
  justify-content: center;
140
127
  align-items: flex-start;
141
128
  }
142
- :host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__description-text {
143
- text-align: left;
144
- }
145
129
  :host .instant-apps-landing-page__alignment--bottom-left {
146
130
  justify-content: flex-end;
147
131
  align-items: flex-start;
148
132
  }
149
- :host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__description-text {
150
- text-align: left;
151
- }
152
133
  :host .instant-apps-landing-page__alignment--top-right {
153
134
  justify-content: flex-start;
154
135
  align-items: flex-end;
@@ -158,9 +139,6 @@
158
139
  flex-direction: column;
159
140
  align-items: flex-end;
160
141
  }
161
- :host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__description-text {
162
- text-align: right;
163
- }
164
142
  :host .instant-apps-landing-page__alignment--center-right {
165
143
  justify-content: center;
166
144
  align-items: flex-end;
@@ -170,9 +148,6 @@
170
148
  flex-direction: column;
171
149
  align-items: flex-end;
172
150
  }
173
- :host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__description-text {
174
- text-align: right;
175
- }
176
151
  :host .instant-apps-landing-page__alignment--bottom-right {
177
152
  justify-content: flex-end;
178
153
  align-items: flex-end;
@@ -182,7 +157,49 @@
182
157
  flex-direction: column;
183
158
  align-items: flex-end;
184
159
  }
185
- :host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__description-text {
160
+ :host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,
161
+ :host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,
162
+ :host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text {
163
+ text-align: left;
164
+ }
165
+ :host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,
166
+ :host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,
167
+ :host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text {
168
+ text-align: left;
169
+ }
170
+ :host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,
171
+ :host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,
172
+ :host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text {
173
+ text-align: left;
174
+ }
175
+ :host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,
176
+ :host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,
177
+ :host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text {
178
+ text-align: center;
179
+ }
180
+ :host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,
181
+ :host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,
182
+ :host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text {
183
+ text-align: center;
184
+ }
185
+ :host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,
186
+ :host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,
187
+ :host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text {
188
+ text-align: center;
189
+ }
190
+ :host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,
191
+ :host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,
192
+ :host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text {
193
+ text-align: right;
194
+ }
195
+ :host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,
196
+ :host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,
197
+ :host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text {
198
+ text-align: right;
199
+ }
200
+ :host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,
201
+ :host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,
202
+ :host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text {
186
203
  text-align: right;
187
204
  }
188
205
  :host instant-apps-sign-in {
@@ -97,6 +97,12 @@
97
97
  --calcite-color-brand-press: var(--instant-apps-landing-page-entry-button-color);
98
98
  min-width: 165px;
99
99
  }
100
+ :host .instant-apps-sign-in__entry-button[appearance=solid] {
101
+ border: 1px solid #fff;
102
+ }
103
+ :host .instant-apps-sign-in__entry-button[appearance=solid]:hover, :host .instant-apps-sign-in__entry-button[appearance=solid]:focus {
104
+ filter: brightness(0.9);
105
+ }
100
106
  @media screen and (max-width: 767px) {
101
107
  :host {
102
108
  flex-direction: column;
@@ -171,7 +171,6 @@
171
171
  }
172
172
  }]
173
173
  ];
174
- //demo.hideMapOnLoad = true;
175
174
  demo.appLayout = "splitView";
176
175
  //demo.coverPageEnabled = true;
177
176
  //demo.introductionWindowEnabled = true;
@@ -181,10 +181,10 @@
181
181
  // demo.mapView.ui.add(legend, "top-left");
182
182
  });
183
183
  demo.reportsHeader = "Reports";
184
- demo.reportButtonText = "Report an incident";
184
+ //demo.reportButtonText = "Report an incident";
185
185
  demo.enableNewReports = true;
186
186
  demo.theme = "light";
187
- demo.reportSubmittedMessage = "Thank you! Your request was successfully submitted";
187
+ //demo.reportSubmittedMessage = "Thank you! Your request was successfully submitted";
188
188
 
189
189
  //Set the zoomScale to be used when zooming to single point feature
190
190
  //demo.zoomToScale = 139596221; //World
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as i,g as s,a as e,h as a,H as l}from"./p-4e6eb06e.js";import{b as o,c as n,a as h}from"./p-80cb7c73.js";import{l as c,g as r}from"./p-f4aadb3b.js";import{e as d,h as p}from"./p-d572627c.js";import{s as g}from"./p-51c6e6fe.js";import{c as b,r as m}from"./p-ff9e28d1.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-dc9d4be3.js";import"./p-7530a02f.js";import"./p-d0d020a5.js";import"./p-9bb44f57.js";const u=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}get el(){return s(this)}_activeSelection;_downloadTools;_geometryEngine;Graphic;_jsonUtils;_onboardingImageUrl="";_popupsEnabled;_removeDuplicates;_searchConfiguration;_selectTools;_mediaQuery;_titleElement;_titleValue=void 0;_numSelected=0;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(t){t?.popup&&(this._popupsEnabled=t?.popup.autoOpenEnabled),this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);this.mapView&&(s!==JSON.stringify(i)||s&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),i===n.EXPORT&&this._removeExportGraphics(),t!==n.SELECT)return this._highlightFeatures()}searchConfigurationChange;selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=e("assets/data/images/onboarding.png")}render(){return a(l,{key:"1955aa1e3791004b62c7d6d51fbd7dabacbe6cc6"},a("calcite-shell",{key:"5d269f036d96fd8364dab1dcf1c820e5516c6236"},a("calcite-action-bar",{key:"1ab0388a35fccbe9b293279a61384e30065b193d",class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async componentDidLoad(){this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i,s]=await c(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=t,this._jsonUtils=i,this.Graphic=s}_initSearchConfiguration(t){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=t,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return a("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},a("div",{class:"background-override"},a("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),a("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},a("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),a("div",{class:"display-flex padding-1"},a("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},a("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return a("div",{class:"display-flex padding-sides-1"},a("img",{class:"img-container",role:"presentation",src:this._onboardingImageUrl}))}_getSelectionSetList(){return a("div",{class:"padding-top-1-2 padding-bottom-1-2"},a("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,s)=>{const e=this._getSelectionSetIds(i);let l=!0;return i.workflowType===h.REFINE&&(l=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),l&&t.push(a("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",e.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==h.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===h.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==h.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return a("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),a("div",null,a("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",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,isUpdate:!!this._activeSelection,locale:this.locale,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return a("calcite-panel",null,a("div",null,this._getLabel(this._translations.export,!1),t?a("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),a("div",{class:"padding-sides-1 "+i},a("div",{class:"display-flex"},a("calcite-label",{layout:"inline"},a("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),a("div",{class:"display-flex"},this._translations.removeDuplicate,a("div",{class:"info-message padding-start-1-2"},a("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"remove-duplicates-icon",scale:"s"})),a("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},a("span",{class:"tooltip-message"},this._translations.duplicatesTip))),a("div",{class:"border-bottom"}),a("div",{class:"padding-top-sides-1"},a("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t),width:"full"},a("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},a("span",{class:"font-weight-500"},this._translations.pdf)),a("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},a("span",{class:"font-weight-500"},this._translations.csv)))),a("div",{class:"padding-bottom-1"},this._getExportOptions()),a("div",{class:"padding-1 display-flex"},a("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},a("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",e=this._addResults?"":"display-none";return a("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),a("div",{class:`padding-top-sides-1 ${e}`},a("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),a("div",{class:`padding-sides-1 ${e}`},a("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,locale:this.locale,ref:t=>{this._downloadTools=t}})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),a("div",{class:t},this._getLabel(this._translations.title,!0,""),a("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:s})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._handleAddMapChange()}),this._translations.includeMap)),a("div",{class:`padding-top-sides-1 ${i}`},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._exportGraphics,onCalciteCheckboxChange:()=>this._handleExportGraphicsChange()}),this._translations.listGraphics),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"list-graphics-icon",scale:"s"}),a("calcite-popover",{closable:!0,label:"",referenceElement:"list-graphics-icon"},a("span",{class:"tooltip-message"},this._translations.listGraphicsTip))))}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(t){let i;return Object.keys(g.managedLayers).some((s=>{const e=this.mapView.map.layers.findIndex((t=>t.title===s));if(g.managedLayers[s]===t)return i=this.mapView.map.layers.getItemAt(e),!0})),i}_updateExportGraphics(t=!1){!t&&this._exportGraphics&&this._addMap||this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");t&&t.graphics.removeAll(),i&&i.graphics.removeAll()}_addExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");this._selectionSets.forEach((s=>{if(s.download&&(t&&t.graphics.add(s.sketchGraphic),i)){const t=new this.Graphic({geometry:s.buffer,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});i.graphics.add(t)}}))}_getRefinePage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?a("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),a("refine-selection",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,e,l,o){return a("div",{class:"padding-bottom-1"},a("div",{class:"display-flex padding-top-sides-1"},a("calcite-button",{disabled:i,onClick:s,width:"full"},a("span",{class:"font-weight-500"},t))),a("div",{class:"display-flex padding-top-1-2 padding-sides-1"},a("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},a("span",{class:"font-weight-500"},e))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return a("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},a("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{const s=this._getSelectionSetIds(i),e=i.workflowType!==h.REFINE||s.length>0;return!this._downloadActive&&i.download&&e&&(this._downloadActive=!0),e&&t.push(a("div",{class:"display-flex padding-sides-1 padding-bottom-1"},a("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),a("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},a("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",s.length.toString()))))))),t}),[])||a("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._updateExportGraphics(!0),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=t?.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{if(i.workflowType===h.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const s=i?.layerView?.layer.id;t=this._updateExportInfos(t,s,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,e,l=!1,o=""){return a("calcite-action",{disabled:!t,icon:i,iconFlipRtl:!0,indicator:l,onClick:e,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){const t=await(this._selectTools?.getSelection()),i=this._selectTools?.isUpdate;return this._selectionSets=i?this._selectionSets.map((i=>i.id===t.id?t:i)):[...this._selectionSets,t],this._home()}async _clearSelection(){await(this._selectTools?.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){d(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===h.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];g.highlightHandles.push(await p(e.ids,e.layerView,this.mapView))}}_checkPopups(){"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=this.mapView?.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await r(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':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-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.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:0.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:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.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:0.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-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as e,c as t,g as a,h as l,H as c}from"./p-4e6eb06e.js";import{E as i,a as s,b as r}from"./p-747d4b59.js";const d=class{constructor(a){e(this,a),this.deductValueComplete=t(this,"deductValueComplete",7)}get el(){return a(this)}_densityElement;_typeElement;_severityElement;_types=Object.keys(i).filter((e=>!isNaN(Number(i[e]))));deductValueComplete;render(){return l(c,{key:"3053ca7a4e457a5259622c3fd72c04f2f68c21be"},l("div",{key:"f6d4ffbd6811f4eae23a950afac0fd1c68b24c9d",class:"label-display"},l("calcite-label",{key:"acaa80f5f10a3343e7e73d9cb33948ae4481e09e",class:"label-display"},"Density %",this._getDensityInput()),l("calcite-label",{key:"577ce996676878f7e7236308a191ea9db073d88e",class:"label-display"},"Type",this._getTypeInput()),l("calcite-label",{key:"626db25056ce49eb7b4160aee3e9cf898dd5400a",class:"label-display"},"Severity",this._getSeverityInput())),l("div",{key:"fa95eac25a03f7e30770ebc9ac7df02cba8cd187"},this._getCalculateInput()))}_getDensityInput(){return l("calcite-input",{max:100,min:0,ref:e=>{this._densityElement=e},type:"number"})}_getTypeInput(){return l("calcite-select",{label:"",ref:e=>{this._typeElement=e}},this._types.map(((e,t)=>l("calcite-option",{value:i[e].toString()},`${e} (${t+1})`))))}_getSeverityInput(){return l("calcite-select",{label:"",ref:e=>{this._severityElement=e}},l("calcite-option",{value:s.H},"High"),l("calcite-option",{value:s.M},"Medium"),l("calcite-option",{value:s.L},"Low"))}_getCalculateInput(){return l("calcite-button",{onClick:()=>this._calculateDeduct(parseFloat(this._typeElement.value),this._severityElement.value,parseFloat(this._densityElement.value))},"Calculate Deduct Value")}_calculateDeduct(e,t,a){if(e&&t&&!isNaN(a)){const l=r(e.toString(),t.toString(),a.toString(),!0);this.deductValueComplete.emit(l),alert(l)}else alert("Type, severity, and a density number are required")}};d.style=":host{display:block;--calcite-label-margin-bottom:0}.label-display{display:block;padding-bottom:1rem}";export{d as deduct_calculator}
6
+ import{r as e,c as t,g as a,h as l,H as c}from"./p-4e6eb06e.js";import{E as i,a as s,b as r}from"./p-747d4b59.js";const d=class{constructor(a){e(this,a),this.deductValueComplete=t(this,"deductValueComplete",7)}get el(){return a(this)}_densityElement;_typeElement;_severityElement;_types=Object.keys(i).filter((e=>!isNaN(Number(i[e]))));deductValueComplete;render(){return l(c,{key:"021786cd4ccb8c826df0822983ba6e0e7fb3c890"},l("div",{key:"6a55996f013e74b3f761c9fd4b141d60d9b0239f",class:"label-display"},l("calcite-label",{key:"54108b452ef18af979148f069f56503db220cc60",class:"label-display"},"Density %",this._getDensityInput()),l("calcite-label",{key:"011af5ed63f169b32905abd809ad0b8c6c21900c",class:"label-display"},"Type",this._getTypeInput()),l("calcite-label",{key:"9f5f04799c26f1911f17bb046abd0b27c8d3ce01",class:"label-display"},"Severity",this._getSeverityInput())),l("div",{key:"8cd00c331e1f1541c43a02b7e6d991ee41d864e6"},this._getCalculateInput()))}_getDensityInput(){return l("calcite-input",{max:100,min:0,ref:e=>{this._densityElement=e},type:"number"})}_getTypeInput(){return l("calcite-select",{label:"",ref:e=>{this._typeElement=e}},this._types.map(((e,t)=>l("calcite-option",{value:i[e].toString()},`${e} (${t+1})`))))}_getSeverityInput(){return l("calcite-select",{label:"",ref:e=>{this._severityElement=e}},l("calcite-option",{value:s.H},"High"),l("calcite-option",{value:s.M},"Medium"),l("calcite-option",{value:s.L},"Low"))}_getCalculateInput(){return l("calcite-button",{onClick:()=>this._calculateDeduct(parseFloat(this._typeElement.value),this._severityElement.value,parseFloat(this._densityElement.value))},"Calculate Deduct Value")}_calculateDeduct(e,t,a){if(e&&t&&!isNaN(a)){const l=r(e.toString(),t.toString(),a.toString(),!0);this.deductValueComplete.emit(l),alert(l)}else alert("Type, severity, and a density number are required")}};d.style=":host{display:block;--calcite-label-margin-bottom:0}.label-display{display:block;padding-bottom:1rem}";export{d as deduct_calculator}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as e,g as i,h as n,H as s}from"./p-4e6eb06e.js";import{g as o}from"./p-f4aadb3b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const r={storage:{},memory:!0,get(t){let e;try{e=window.localStorage&&window.localStorage.getItem(t)||this.storage[t]}catch(i){e=this.storage[t]}if(e)try{return JSON.parse(e)}catch(t){return}},set(t,e){const i=JSON.stringify(e);try{window.localStorage.setItem(t,i)}catch(i){this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[t]=e}},delete(t){try{window.localStorage.removeItem(t)}catch(e){this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[t]}}},a="esri-telemetry";class c extends Error{}const l=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"];class d{constructor(t){var e,i,n;this.trackers=[],this.options=t,this.debug=t.debug,this.suppressDisabledWarnings=t.suppressDisabledWarnings,this.disabled=function(t={}){const{disabled:e,portal:i}=t;return!(!e&&!1!==(null==i?void 0:i.eueiEnabled)&&(!i||function(t){return t.eueiEnabled&&t.user&&t.user.orgId===t.id}(i)||function(t){return t.user&&!t.user.orgId&&"US"===t.ipCntryCode}(i)||function(t){return!t.user&&"US"===t.ipCntryCode}(i)))}(t),this.logger=t.logger||console,this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");const s=(null===(e=t.portal)||void 0===e?void 0:e.user)||t.user;s&&this.setUser(s,null===(n=null===(i=t.portal)||void 0===i?void 0:i.subscriptionInfo)||void 0===n?void 0:n.type),this.disabled||this.initializeTrackers()}initializeTrackers(){this.options.plugins&&this.trackers.push(...this.options.plugins),this.trackers.length||this.logger.error(new Error("No trackers configured"))}getScriptTags(){return this.trackers.map((t=>t.getScriptTags&&t.getScriptTags())).join("")}async init(){const t=this.trackers.map((t=>t.init()));await Promise.all(t)}setUser(t={},e="Public"){let i;if(this.user=t="string"==typeof t?{username:t}:t,this.user.accountType=e,t.email&&t.email.split){const e=t.email.split("@")[1];i=l.filter((t=>e===t)).length>0}(i||["In House","Demo and Marketing"].indexOf(e)>-1)&&(this.user.internalUser=!0)}logPageView(t,e={},i={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;const n=this.trackers.filter((({disabled:t,hasError:e})=>!t&&!e));if(!n.length)return this.logger.warn("Page view was not logged because no enabled telemetry-plugins are registered."),!1;const s=this.preProcess(e,i);this.debug&&this.logger.info("Tracking page view",JSON.stringify(s));const o=n.map((e=>e.logPageView(t,s)));return Promise.all(o).then(),!0}logEvent(t,e={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;const i=this.trackers.filter((({disabled:t,hasError:e})=>!t&&!e));if(!i.length)return this.logger.warn("Event was not logged because no enabled telemetry-plugins are registered."),!1;const n=this.preProcess(t,e);this.debug&&this.logger.info("Tracking event",JSON.stringify(n));const s=i.map((t=>t.logEvent(n)));return Promise.all(s).then(),!0}logError(t={}){t=Object.assign({eventType:"error"},t),this.logEvent(t)}startWorkflow(t,e={}){const i={name:t,start:Date.now(),steps:[],workflowId:Math.floor(17592186044416*(1+Math.random())).toString(16)};this.saveWorkflow(i);const n=Object.assign({name:t,step:"start"},e);return this.logWorkflow(n),i}stepWorkflow(t,e,i={}){const n=Object.assign({name:t,step:e,details:"string"==typeof i?i:i.details},i);this.logWorkflow(n)}endWorkflow(t,e={}){const i=Object.assign({name:t,step:"finish"},e);this.logWorkflow(i)}cancelWorkflow(t,e={}){const i=Object.assign({name:t,step:"cancel"},e);this.logWorkflow(i)}getWorkflow(t){const e=r.get(`TELEMETRY-WORKFLOW:${t}`);if(e){if(Date.now()-e.start<18e5)return e;this.deleteWorkflow(e)}}saveWorkflow(t){r.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){r.delete(`TELEMETRY-WORKFLOW:${t.name}`)}logWorkflow(t={}){t=this.preProcess(t);let e=this.getWorkflow(t.name);e||(this.startWorkflow(t.name),e=this.getWorkflow(t.name)),e.steps.push(t.step),e.duration=(Date.now()-e.start)/1e3,["cancel","finish"].indexOf(t.step)>-1?this.deleteWorkflow(e):this.saveWorkflow(e);const i=Object.assign(t,{eventType:"workflow",category:t.name,action:t.step,label:t.details,duration:e.duration,workflowId:e.workflowId});this.logEvent(i)}preProcess(t={},e={}){let i={};return this.user&&(i={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},t),i)).reduce((n=e.omitComplexData,s=this.logger,function(t,[e,i]){return function(t){return["string","number","boolean","undefined"].includes(typeof t)||t&&"string"==typeof t.valueOf()}(i)?t[e]=i:n||(s.warn(`You are trying to log a non-primitive value, ${e}:${JSON.stringify(i)}. This will get logged as [object Object]`),t[e]=i),t}),{});var n,s}disableTracker(t){var e;const i=this.trackers.find((({name:e})=>e===t));i&&!i.hasError&&(i.disabled=!0,null===(e=i.disable)||void 0===e||e.call(i))}enableTracker(t){var e;const i=this.trackers.find((({name:e})=>e===t));i&&!i.hasError&&(i.disabled=!1,null===(e=i.enable)||void 0===e||e.call(i))}}"function"==typeof SuppressedError&&SuppressedError;class h{constructor(t){var e;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},"undefined"!=typeof window&&!(null===(e=null==t?void 0:t.measurementIds)||void 0===e?void 0:e.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,t)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return this._getScripts().map((t=>{const e=[];return["src","id","dataAttribute","type"].forEach((i=>{let n=i;"dataAttribute"===i&&(n="data-esri-telemetry"),t[i]&&e.push(`${n}="${t[i]}"`)})),["async","defer"].forEach((i=>{t[i]&&e.push(`${i}`)})),`<script ${e.join(" ")}>${t.body?t.body:""}<\/script>`})).join("")}async init(){if("undefined"==typeof window)throw new c("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map((t=>{return e=t,new Promise(((t,i)=>{e.onload=t,e.onerror=i;const n=function(t){const{body:e,src:i,id:n,dataAttribute:s,section:o="body",type:r="text/javascript",async:l=!1,defer:d=!1,onload:h,onerror:u}=t;if("undefined"==typeof window)throw new c("Window is undefined: Cannot add script element.");if(function(t){const{id:e,dataAttribute:i}=t;return!!document.getElementById(e)||!!document.querySelector(`[data-${a}="${i}"]`)}(t))return void console.log(`script (${n||s}) is already present, skipping`);const p=function({id:t,dataAttribute:e,type:i,async:n,defer:s,body:o,src:r,onload:c,onerror:l}){const d=document.createElement("script");return t&&(d.id=t),e&&d.setAttribute(`data-${a}`,e),r&&(d.src=r),o&&(d.innerText=o),d.type=i,d.async=n,d.defer=s,c&&(d.onload=c),l&&(d.onerror=l),d}({id:n,dataAttribute:s,type:r,async:l,defer:d,body:e,src:i,onload:h,onerror:u});return"body"===o?document.body.appendChild(p):document.head.appendChild(p)}(e);n&&!e.body||t()}));var e}))),this.injectConfig()}logPageView(t,e={}){const i=this.buildCustomParams(e),n=Object.assign({page_title:t||window.location.pathname},i);return window.gtag("event","page_view",n),!0}logEvent(t){let{action:e}=t,i=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(i[n[s]]=t[n[s]])}return i}(t,["action"]);const n=e||"other",s=this.buildCustomParams(i);return window.gtag("event",n,s),!0}disable(){this.measurementIds&&this.measurementIds.forEach((t=>{window[`ga-disable-${t}`]=!0}))}enable(){this.measurementIds&&this.measurementIds.forEach((t=>{window[`ga-disable-${t}`]=void 0}))}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);const t={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach((e=>{window.gtag("config",e,t)}))}buildCustomParams(t){let e,{category:i,label:n}=t;return e=this.verifyCustomDimensionAndMetrics(t),i&&(e=Object.assign(Object.assign({},e),{event_category:i})),n&&(e=Object.assign(Object.assign({},e),{event_label:n})),e}verifyCustomDimensionAndMetrics(t){const e=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),i=Object.values(e);return Object.keys(t).filter((t=>i.includes(t))).reduce(((e,i)=>Object.assign(e,{[i]:t[i]})),{})}createDimensionsAndMetricsCustomMap(t={},e={}){const i=this.createMetricCustomMap(e),n=this.createDimensionCustomMap(t);return Object.assign(Object.assign({},i),n)}createMetricCustomMap(t={}){return Object.keys(t).map((function(e){return{key:`metric${t[e]}`,value:e}})).filter((t=>t)).reduce(((t,{key:e,value:i})=>(t[e]=i,t)),{})}createDimensionCustomMap(t={}){return Object.keys(t).map((function(e){return{key:`dimension${t[e]}`,value:e}})).filter((t=>t)).reduce(((t,{key:e,value:i})=>(t[e]=i,t)),{})}}const u=class{constructor(i){t(this,i),this.consentGranted=e(this,"consentGranted",7),this.firstUseVar=void 0,this.measurementIds=void 0,this.portal=void 0,this._shouldRender=void 0,this._translations=void 0}get el(){return i(this)}_consentGranted=!1;_loaded=!1;_telemetryInstance;async getInstance(){return"true"===localStorage.getItem(this.firstUseVar)?(await this._init(),this._telemetryInstance):void 0}consentGranted;async componentWillLoad(){await this._getTranslations(),this._shouldRender=null===localStorage.getItem(this.firstUseVar)}render(){return this._shouldRender?n(s,null,n("calcite-panel",{class:"consent-panel calcite-mode-dark",id:"cookie-policy"},n("div",{class:"cookie-consent-popup-container"},n("div",{id:"cookie-policy-description-top",tabindex:"-1"},n("p",null,this._translations.dearVisitor),n("p",null,this._translations.useAnalytics)),n("div",{class:"button-container"},n("calcite-button",{appearance:"solid",class:"padding-end-1",kind:"brand",onClick:()=>this._refuse()},this._translations.refuseAnalytics),n("calcite-button",{appearance:"solid",kind:"brand",onClick:()=>this._accept()},this._translations.acceptAnalytics)),n("div",null,n("p",null,this._translations.moreInfo," ",n("calcite-link",{class:"link-text",href:"https://www.arcgis.com/",rel:"noopener noreferrer",target:"_blank"},this._translations.protectionPolicy),this._translations.our," ",n("calcite-link",{class:"link-text",href:"https://www.arcgis.com/",rel:"noopener noreferrer",target:"_blank"},this._translations.cookiePolicy," "),this._translations.andOur," ",n("calcite-link",{class:"link-text",href:"https://www.arcgis.com/",rel:"noopener noreferrer",target:"_blank"},this._translations.cookiesInventory)))))):void 0}async componentDidLoad(){this.consentGranted.emit({granted:"true"===localStorage.getItem(this.firstUseVar)})}async _init(){if(!this._loaded&&this.measurementIds?.length>0&&this.portal){const t=new h({measurementIds:this.measurementIds});this._telemetryInstance=new d({plugins:[t],portal:this.portal}),await this._telemetryInstance.init(),this._loaded=!0}}_accept(){this._consentGranted=!0,this._handleConsent()}_refuse(){this._consentGranted=!1,this._handleConsent()}_handleConsent(){this._shouldRender=!1,localStorage.setItem(this.firstUseVar,this._consentGranted.toString()),this.consentGranted.emit({granted:this._consentGranted})}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}};u.style=":host{display:block}.consent-panel{position:fixed;display:block;z-index:5000;bottom:0;left:0;width:100%;height:auto;text-align:center}.cookie-consent-popup-container{position:relative;display:block;bottom:0;left:0;width:100%;margin:0;padding-top:1rem;padding-bottom:1rem;transition:transform 0.5s ease-out 0s;background-color:rgba(51, 51, 51, 0.95);color:#fff}.button-container{position:static;margin-bottom:1rem;display:flex;justify-content:center;flex-wrap:wrap}.padding-end-1{padding-inline-end:1rem}.link-text{--calcite-ui-text-link:var(--calcite-color-text-inverse);--calcite-ui-brand:var(--calcite-color-text-inverse);--calcite-color-text-link:var(--calcite-color-text-inverse);--calcite-color-brand-underline:var(--calcite-color-text-inverse);--calcite-color-brand:var(--calcite-color-text-inverse)}";export{u as consent_manager}
6
+ import{r as t,c as e,g as i,h as n,H as s}from"./p-4e6eb06e.js";import{g as r}from"./p-f4aadb3b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const o={storage:{},memory:!0,get(t){let e;try{e=window.localStorage&&window.localStorage.getItem(t)||this.storage[t]}catch(i){e=this.storage[t]}if(e)try{return JSON.parse(e)}catch(t){return}},set(t,e){const i=JSON.stringify(e);try{window.localStorage.setItem(t,i)}catch(i){this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[t]=e}},delete(t){try{window.localStorage.removeItem(t)}catch(e){this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[t]}}},a="esri-telemetry";class c extends Error{}const l=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"];class d{constructor(t){var e,i,n;this.trackers=[],this.options=t,this.debug=t.debug,this.suppressDisabledWarnings=t.suppressDisabledWarnings,this.disabled=function(t={}){const{disabled:e,portal:i}=t;return!(!e&&!1!==(null==i?void 0:i.eueiEnabled)&&(!i||function(t){return t.eueiEnabled&&t.user&&t.user.orgId===t.id}(i)||function(t){return t.user&&!t.user.orgId&&"US"===t.ipCntryCode}(i)||function(t){return!t.user&&"US"===t.ipCntryCode}(i)))}(t),this.logger=t.logger||console,this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");const s=(null===(e=t.portal)||void 0===e?void 0:e.user)||t.user;s&&this.setUser(s,null===(n=null===(i=t.portal)||void 0===i?void 0:i.subscriptionInfo)||void 0===n?void 0:n.type),this.disabled||this.initializeTrackers()}initializeTrackers(){this.options.plugins&&this.trackers.push(...this.options.plugins),this.trackers.length||this.logger.error(new Error("No trackers configured"))}getScriptTags(){return this.trackers.map((t=>t.getScriptTags&&t.getScriptTags())).join("")}async init(){const t=this.trackers.map((t=>t.init()));await Promise.all(t)}setUser(t={},e="Public"){let i;if(this.user=t="string"==typeof t?{username:t}:t,this.user.accountType=e,t.email&&t.email.split){const e=t.email.split("@")[1];i=l.filter((t=>e===t)).length>0}(i||["In House","Demo and Marketing"].indexOf(e)>-1)&&(this.user.internalUser=!0)}logPageView(t,e={},i={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;const n=this.trackers.filter((({disabled:t,hasError:e})=>!t&&!e));if(!n.length)return this.logger.warn("Page view was not logged because no enabled telemetry-plugins are registered."),!1;const s=this.preProcess(e,i);this.debug&&this.logger.info("Tracking page view",JSON.stringify(s));const r=n.map((e=>e.logPageView(t,s)));return Promise.all(r).then(),!0}logEvent(t,e={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;const i=this.trackers.filter((({disabled:t,hasError:e})=>!t&&!e));if(!i.length)return this.logger.warn("Event was not logged because no enabled telemetry-plugins are registered."),!1;const n=this.preProcess(t,e);this.debug&&this.logger.info("Tracking event",JSON.stringify(n));const s=i.map((t=>t.logEvent(n)));return Promise.all(s).then(),!0}logError(t={}){t=Object.assign({eventType:"error"},t),this.logEvent(t)}startWorkflow(t,e={}){const i={name:t,start:Date.now(),steps:[],workflowId:Math.floor(17592186044416*(1+Math.random())).toString(16)};this.saveWorkflow(i);const n=Object.assign({name:t,step:"start"},e);return this.logWorkflow(n),i}stepWorkflow(t,e,i={}){const n=Object.assign({name:t,step:e,details:"string"==typeof i?i:i.details},i);this.logWorkflow(n)}endWorkflow(t,e={}){const i=Object.assign({name:t,step:"finish"},e);this.logWorkflow(i)}cancelWorkflow(t,e={}){const i=Object.assign({name:t,step:"cancel"},e);this.logWorkflow(i)}getWorkflow(t){const e=o.get(`TELEMETRY-WORKFLOW:${t}`);if(e){if(Date.now()-e.start<18e5)return e;this.deleteWorkflow(e)}}saveWorkflow(t){o.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){o.delete(`TELEMETRY-WORKFLOW:${t.name}`)}logWorkflow(t={}){t=this.preProcess(t);let e=this.getWorkflow(t.name);e||(this.startWorkflow(t.name),e=this.getWorkflow(t.name)),e.steps.push(t.step),e.duration=(Date.now()-e.start)/1e3,["cancel","finish"].indexOf(t.step)>-1?this.deleteWorkflow(e):this.saveWorkflow(e);const i=Object.assign(t,{eventType:"workflow",category:t.name,action:t.step,label:t.details,duration:e.duration,workflowId:e.workflowId});this.logEvent(i)}preProcess(t={},e={}){let i={};return this.user&&(i={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},t),i)).reduce((n=e.omitComplexData,s=this.logger,function(t,[e,i]){return function(t){return["string","number","boolean","undefined"].includes(typeof t)||t&&"string"==typeof t.valueOf()}(i)?t[e]=i:n||(s.warn(`You are trying to log a non-primitive value, ${e}:${JSON.stringify(i)}. This will get logged as [object Object]`),t[e]=i),t}),{});var n,s}disableTracker(t){var e;const i=this.trackers.find((({name:e})=>e===t));i&&!i.hasError&&(i.disabled=!0,null===(e=i.disable)||void 0===e||e.call(i))}enableTracker(t){var e;const i=this.trackers.find((({name:e})=>e===t));i&&!i.hasError&&(i.disabled=!1,null===(e=i.enable)||void 0===e||e.call(i))}}"function"==typeof SuppressedError&&SuppressedError;class h{constructor(t){var e;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},"undefined"!=typeof window&&!(null===(e=null==t?void 0:t.measurementIds)||void 0===e?void 0:e.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,t)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return this._getScripts().map((t=>{const e=[];return["src","id","dataAttribute","type"].forEach((i=>{let n=i;"dataAttribute"===i&&(n="data-esri-telemetry"),t[i]&&e.push(`${n}="${t[i]}"`)})),["async","defer"].forEach((i=>{t[i]&&e.push(`${i}`)})),`<script ${e.join(" ")}>${t.body?t.body:""}<\/script>`})).join("")}async init(){if("undefined"==typeof window)throw new c("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map((t=>{return e=t,new Promise(((t,i)=>{e.onload=t,e.onerror=i;const n=function(t){const{body:e,src:i,id:n,dataAttribute:s,section:r="body",type:o="text/javascript",async:l=!1,defer:d=!1,onload:h,onerror:u}=t;if("undefined"==typeof window)throw new c("Window is undefined: Cannot add script element.");if(function(t){const{id:e,dataAttribute:i}=t;return!!document.getElementById(e)||!!document.querySelector(`[data-${a}="${i}"]`)}(t))return void console.log(`script (${n||s}) is already present, skipping`);const p=function({id:t,dataAttribute:e,type:i,async:n,defer:s,body:r,src:o,onload:c,onerror:l}){const d=document.createElement("script");return t&&(d.id=t),e&&d.setAttribute(`data-${a}`,e),o&&(d.src=o),r&&(d.innerText=r),d.type=i,d.async=n,d.defer=s,c&&(d.onload=c),l&&(d.onerror=l),d}({id:n,dataAttribute:s,type:o,async:l,defer:d,body:e,src:i,onload:h,onerror:u});return"body"===r?document.body.appendChild(p):document.head.appendChild(p)}(e);n&&!e.body||t()}));var e}))),this.injectConfig()}logPageView(t,e={}){const i=this.buildCustomParams(e),n=Object.assign({page_title:t||window.location.pathname},i);return window.gtag("event","page_view",n),!0}logEvent(t){let{action:e}=t,i=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(i[n[s]]=t[n[s]])}return i}(t,["action"]);const n=e||"other",s=this.buildCustomParams(i);return window.gtag("event",n,s),!0}disable(){this.measurementIds&&this.measurementIds.forEach((t=>{window[`ga-disable-${t}`]=!0}))}enable(){this.measurementIds&&this.measurementIds.forEach((t=>{window[`ga-disable-${t}`]=void 0}))}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);const t={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach((e=>{window.gtag("config",e,t)}))}buildCustomParams(t){let e,{category:i,label:n}=t;return e=this.verifyCustomDimensionAndMetrics(t),i&&(e=Object.assign(Object.assign({},e),{event_category:i})),n&&(e=Object.assign(Object.assign({},e),{event_label:n})),e}verifyCustomDimensionAndMetrics(t){const e=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),i=Object.values(e);return Object.keys(t).filter((t=>i.includes(t))).reduce(((e,i)=>Object.assign(e,{[i]:t[i]})),{})}createDimensionsAndMetricsCustomMap(t={},e={}){const i=this.createMetricCustomMap(e),n=this.createDimensionCustomMap(t);return Object.assign(Object.assign({},i),n)}createMetricCustomMap(t={}){return Object.keys(t).map((function(e){return{key:`metric${t[e]}`,value:e}})).filter((t=>t)).reduce(((t,{key:e,value:i})=>(t[e]=i,t)),{})}createDimensionCustomMap(t={}){return Object.keys(t).map((function(e){return{key:`dimension${t[e]}`,value:e}})).filter((t=>t)).reduce(((t,{key:e,value:i})=>(t[e]=i,t)),{})}}const u=class{constructor(i){t(this,i),this.consentGranted=e(this,"consentGranted",7),this.firstUseVar=void 0,this.locale=void 0,this.measurementIds=void 0,this.portal=void 0,this._shouldRender=void 0,this._translations=void 0}get el(){return i(this)}_consentGranted=!1;_loaded=!1;_telemetryInstance;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async getInstance(){return"true"===localStorage.getItem(this.firstUseVar)?(await this._init(),this._telemetryInstance):void 0}consentGranted;async componentWillLoad(){await this._getTranslations(),this._shouldRender=null===localStorage.getItem(this.firstUseVar)}render(){return this._shouldRender?n(s,null,n("calcite-panel",{class:"consent-panel calcite-mode-dark",id:"cookie-policy"},n("div",{class:"cookie-consent-popup-container"},n("div",{id:"cookie-policy-description-top",tabindex:"-1"},n("p",null,this._translations.dearVisitor),n("p",null,this._translations.useAnalytics)),n("div",{class:"button-container"},n("calcite-button",{appearance:"solid",class:"padding-end-1",kind:"brand",onClick:()=>this._refuse()},this._translations.refuseAnalytics),n("calcite-button",{appearance:"solid",kind:"brand",onClick:()=>this._accept()},this._translations.acceptAnalytics)),n("div",null,n("p",null,this._translations.moreInfo," ",n("calcite-link",{class:"link-text",href:"https://www.arcgis.com/",rel:"noopener noreferrer",target:"_blank"},this._translations.protectionPolicy),this._translations.our," ",n("calcite-link",{class:"link-text",href:"https://www.arcgis.com/",rel:"noopener noreferrer",target:"_blank"},this._translations.cookiePolicy," "),this._translations.andOur," ",n("calcite-link",{class:"link-text",href:"https://www.arcgis.com/",rel:"noopener noreferrer",target:"_blank"},this._translations.cookiesInventory)))))):void 0}async componentDidLoad(){this.consentGranted.emit({granted:"true"===localStorage.getItem(this.firstUseVar)})}async _init(){if(!this._loaded&&this.measurementIds?.length>0&&this.portal){const t=new h({measurementIds:this.measurementIds});this._telemetryInstance=new d({plugins:[t],portal:this.portal}),await this._telemetryInstance.init(),this._loaded=!0}}_accept(){this._consentGranted=!0,this._handleConsent()}_refuse(){this._consentGranted=!1,this._handleConsent()}_handleConsent(){this._shouldRender=!1,localStorage.setItem(this.firstUseVar,this._consentGranted.toString()),this.consentGranted.emit({granted:this._consentGranted})}async _getTranslations(){const t=await r(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"]}}};u.style=":host{display:block}.consent-panel{position:fixed;display:block;z-index:5000;bottom:0;left:0;width:100%;height:auto;text-align:center}.cookie-consent-popup-container{position:relative;display:block;bottom:0;left:0;width:100%;margin:0;padding-top:1rem;padding-bottom:1rem;transition:transform 0.5s ease-out 0s;background-color:rgba(51, 51, 51, 0.95);color:#fff}.button-container{position:static;margin-bottom:1rem;display:flex;justify-content:center;flex-wrap:wrap}.padding-end-1{padding-inline-end:1rem}.link-text{--calcite-ui-text-link:var(--calcite-color-text-inverse);--calcite-ui-brand:var(--calcite-color-text-inverse);--calcite-color-text-link:var(--calcite-color-text-inverse);--calcite-color-brand-underline:var(--calcite-color-text-inverse);--calcite-color-brand:var(--calcite-color-text-inverse)}";export{u as consent_manager}