@esri/solutions-components 0.7.7 → 0.7.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +3 -3
  2. package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
  3. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +1 -1
  4. package/dist/cjs/calcite-alert_3.cjs.entry.js +2 -2
  5. package/dist/cjs/calcite-combobox_6.cjs.entry.js +2 -2
  6. package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +16 -9
  7. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +6 -6
  8. package/dist/cjs/card-manager_3.cjs.entry.js +2 -2
  9. package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
  10. package/dist/cjs/{helpers-ff831524.js → helpers-a0719076.js} +1 -1
  11. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +10 -10
  12. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +2 -2
  13. package/dist/cjs/instant-apps-export.cjs.entry.js +4 -4
  14. package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
  15. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
  16. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +4 -4
  17. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +7 -7
  18. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +6 -6
  19. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +4 -4
  20. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +3 -3
  21. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
  22. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +8 -8
  23. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +7 -7
  24. package/dist/cjs/instant-apps-measurement.cjs.entry.js +4 -4
  25. package/dist/cjs/instant-apps-popover.cjs.entry.js +3 -3
  26. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +3 -3
  27. package/dist/cjs/instant-apps-splash.cjs.entry.js +3 -3
  28. package/dist/cjs/{languageSwitcher-cae609d9.js → languageSwitcher-7de41e17.js} +1 -1
  29. package/dist/cjs/layout-manager.cjs.entry.js +1 -1
  30. package/dist/cjs/{loadModules-1d0f0316.js → loadModules-51c30ab9.js} +1 -1
  31. package/dist/cjs/loader.cjs.js +1 -1
  32. package/dist/cjs/{locale-56c3447b.js → locale-9b9d0e94.js} +1 -1
  33. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  34. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  35. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  36. package/dist/cjs/solutions-components.cjs.js +1 -1
  37. package/dist/cjs/{utils-41eb3a01.js → utils-35b31785.js} +1 -1
  38. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +5 -5
  39. package/dist/collection/components/edit-card/edit-card.css +3 -3
  40. package/dist/collection/components/info-card/info-card.css +2 -2
  41. package/dist/collection/components/json-editor/json-editor.css +3 -123
  42. package/dist/collection/components/layer-table/layer-table.css +9 -12
  43. package/dist/collection/components/layer-table/layer-table.js +1 -1
  44. package/dist/collection/components/layout-manager/layout-manager.css +73 -73
  45. package/dist/collection/components/map-draw-tools/map-draw-tools.css +1 -1
  46. package/dist/collection/components/map-layer-picker/map-layer-picker.css +5 -3
  47. package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
  48. package/dist/collection/components/map-picker/map-picker.css +3 -3
  49. package/dist/collection/components/map-search/map-search.css +24 -24
  50. package/dist/collection/components/map-select-tools/map-select-tools.css +5 -5
  51. package/dist/collection/components/map-tools/map-tools.css +1 -1
  52. package/dist/collection/components/public-notification/public-notification.css +11 -11
  53. package/dist/collection/components/public-notification/public-notification.js +1 -1
  54. package/dist/collection/components/refine-selection/refine-selection.css +2 -2
  55. package/dist/collection/components/solution-item-details/solution-item-details.css +0 -148
  56. package/dist/collection/components/solution-item-icon/solution-item-icon.css +2 -124
  57. package/dist/collection/components/solution-item-sharing/solution-item-sharing.css +5 -125
  58. package/dist/collection/components/solution-organization-variables/solution-organization-variables.css +6 -126
  59. package/dist/collection/components/solution-resource-item/solution-resource-item.css +6 -126
  60. package/dist/collection/components/solution-variables/solution-variables.css +9 -129
  61. package/dist/collection/demos/browse-solutions.html +2 -0
  62. package/dist/collection/demos/buffer-tools.html +1 -1
  63. package/dist/collection/demos/card-manager.html +2 -2
  64. package/dist/collection/demos/crowdsource-manager.html +3 -3
  65. package/dist/collection/demos/crowdsource-reporter.html +5 -5
  66. package/dist/collection/demos/deduct-calculator.html +1 -1
  67. package/dist/collection/demos/info-card.html +2 -2
  68. package/dist/collection/demos/layer-table.html +2 -2
  69. package/dist/collection/demos/list-item.html +2 -2
  70. package/dist/collection/demos/map-card.html +2 -2
  71. package/dist/collection/demos/map-draw-tools.html +1 -1
  72. package/dist/collection/demos/map-layer-picker.html +1 -1
  73. package/dist/collection/demos/map-select-tools.html +1 -1
  74. package/dist/collection/demos/new-public-notification.html +5 -5
  75. package/dist/collection/demos/pci-calculator.html +1 -1
  76. package/dist/components/crowdsource-manager.js +1 -1
  77. package/dist/components/edit-card2.js +1 -1
  78. package/dist/components/info-card2.js +1 -1
  79. package/dist/components/instant-apps-ckeditor-wrapper2.js +2 -2
  80. package/dist/components/instant-apps-control-panel.js +1 -1
  81. package/dist/components/instant-apps-export.js +2 -2
  82. package/dist/components/instant-apps-filter-list2.js +4 -2
  83. package/dist/components/instant-apps-header2.js +2 -2
  84. package/dist/components/instant-apps-interactive-legend-classic2.js +1 -1
  85. package/dist/components/instant-apps-interactive-legend-count2.js +1 -1
  86. package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +5 -5
  87. package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +1 -1
  88. package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +1 -1
  89. package/dist/components/instant-apps-interactive-legend-layer-element2.js +1 -1
  90. package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +1 -1
  91. package/dist/components/instant-apps-interactive-legend-relationship2.js +1 -1
  92. package/dist/components/instant-apps-interactive-legend.js +1 -1
  93. package/dist/components/instant-apps-keyboard-shortcuts.js +1 -1
  94. package/dist/components/instant-apps-landing-page.js +1 -1
  95. package/dist/components/instant-apps-language-switcher.js +4 -4
  96. package/dist/components/instant-apps-language-translator-item2.js +4 -4
  97. package/dist/components/instant-apps-language-translator-search2.js +1 -1
  98. package/dist/components/instant-apps-language-translator2.js +3 -3
  99. package/dist/components/instant-apps-measurement.js +2 -2
  100. package/dist/components/instant-apps-popover.js +1 -1
  101. package/dist/components/instant-apps-scoreboard.js +1 -1
  102. package/dist/components/instant-apps-social-share2.js +11 -5
  103. package/dist/components/instant-apps-splash.js +1 -1
  104. package/dist/components/json-editor2.js +1 -1
  105. package/dist/components/layer-table2.js +2 -2
  106. package/dist/components/layout-manager.js +1 -1
  107. package/dist/components/loadModules2.js +1 -1
  108. package/dist/components/map-draw-tools2.js +1 -1
  109. package/dist/components/map-layer-picker2.js +2 -2
  110. package/dist/components/map-picker2.js +1 -1
  111. package/dist/components/map-search2.js +1 -1
  112. package/dist/components/map-select-tools2.js +1 -1
  113. package/dist/components/map-tools2.js +1 -1
  114. package/dist/components/public-notification.js +2 -2
  115. package/dist/components/refine-selection2.js +1 -1
  116. package/dist/components/solution-item-details2.js +1 -1
  117. package/dist/components/solution-item-icon2.js +1 -1
  118. package/dist/components/solution-item-sharing2.js +1 -1
  119. package/dist/components/solution-organization-variables2.js +1 -1
  120. package/dist/components/solution-resource-item2.js +1 -1
  121. package/dist/components/solution-variables2.js +1 -1
  122. package/dist/esm/basemap-gallery_7.entry.js +3 -3
  123. package/dist/esm/buffer-tools_3.entry.js +1 -1
  124. package/dist/esm/calcite-action-pad_2.entry.js +1 -1
  125. package/dist/esm/calcite-alert_3.entry.js +2 -2
  126. package/dist/esm/calcite-combobox_6.entry.js +2 -2
  127. package/dist/esm/calcite-input-date-picker_3.entry.js +16 -9
  128. package/dist/esm/calcite-shell-panel_14.entry.js +6 -6
  129. package/dist/esm/card-manager_3.entry.js +2 -2
  130. package/dist/esm/crowdsource-manager.entry.js +1 -1
  131. package/dist/esm/{helpers-e8282221.js → helpers-078591d2.js} +1 -1
  132. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +10 -10
  133. package/dist/esm/instant-apps-control-panel.entry.js +2 -2
  134. package/dist/esm/instant-apps-export.entry.js +4 -4
  135. package/dist/esm/instant-apps-header.entry.js +2 -2
  136. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
  137. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +4 -4
  138. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +7 -7
  139. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +6 -6
  140. package/dist/esm/instant-apps-interactive-legend.entry.js +4 -4
  141. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +3 -3
  142. package/dist/esm/instant-apps-landing-page.entry.js +1 -1
  143. package/dist/esm/instant-apps-language-switcher.entry.js +8 -8
  144. package/dist/esm/instant-apps-language-translator.entry.js +7 -7
  145. package/dist/esm/instant-apps-measurement.entry.js +4 -4
  146. package/dist/esm/instant-apps-popover.entry.js +3 -3
  147. package/dist/esm/instant-apps-scoreboard.entry.js +3 -3
  148. package/dist/esm/instant-apps-splash.entry.js +3 -3
  149. package/dist/esm/{languageSwitcher-75765d90.js → languageSwitcher-62232826.js} +1 -1
  150. package/dist/esm/layout-manager.entry.js +1 -1
  151. package/dist/esm/{loadModules-037feea8.js → loadModules-b677d6d7.js} +1 -1
  152. package/dist/esm/loader.js +1 -1
  153. package/dist/esm/{locale-53d724b5.js → locale-89b49505.js} +1 -1
  154. package/dist/esm/map-select-tools_3.entry.js +2 -2
  155. package/dist/esm/public-notification.entry.js +2 -2
  156. package/dist/esm/solution-item-icon.entry.js +1 -1
  157. package/dist/esm/solutions-components.js +1 -1
  158. package/dist/esm/{utils-06bace50.js → utils-b1bd777e.js} +1 -1
  159. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-export/instant-apps-export.css +20 -20
  160. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +3 -3
  161. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +3 -3
  162. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-classic/instant-apps-interactive-legend-classic.css +4 -4
  163. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-count/instant-apps-interactive-legend-count.css +1 -1
  164. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-group-legend-element-caption/instant-apps-interactive-legend-group-legend-element-caption.css +5 -7
  165. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-layer-element-caption/instant-apps-interactive-legend-layer-element-caption.css +5 -7
  166. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-legend-element-caption/instant-apps-interactive-legend-legend-element-caption.css +4 -5
  167. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-relationship/instant-apps-interactive-legend-relationship.css +1 -1
  168. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend.css +2 -2
  169. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-keyboard-shortcuts/instant-apps-keyboard-shortcuts.css +4 -4
  170. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +6 -6
  171. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-switcher/instant-apps-language-switcher.css +4 -4
  172. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator-item/instant-apps-language-translator-item.css +7 -7
  173. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator-search/instant-apps-language-translator-search.css +2 -2
  174. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator.css +2 -2
  175. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-measurement/instant-apps-measurement.css +2 -2
  176. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-popover/instant-apps-popover.css +3 -3
  177. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-scoreboard/instant-apps-scoreboard.css +4 -4
  178. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-social-share/instant-apps-social-share.css +6 -6
  179. package/dist/solutions-components/demos/browse-solutions.html +2 -0
  180. package/dist/solutions-components/demos/buffer-tools.html +1 -1
  181. package/dist/solutions-components/demos/card-manager.html +2 -2
  182. package/dist/solutions-components/demos/crowdsource-manager.html +3 -3
  183. package/dist/solutions-components/demos/crowdsource-reporter.html +5 -5
  184. package/dist/solutions-components/demos/deduct-calculator.html +1 -1
  185. package/dist/solutions-components/demos/info-card.html +2 -2
  186. package/dist/solutions-components/demos/layer-table.html +2 -2
  187. package/dist/solutions-components/demos/list-item.html +2 -2
  188. package/dist/solutions-components/demos/map-card.html +2 -2
  189. package/dist/solutions-components/demos/map-draw-tools.html +1 -1
  190. package/dist/solutions-components/demos/map-layer-picker.html +1 -1
  191. package/dist/solutions-components/demos/map-select-tools.html +1 -1
  192. package/dist/solutions-components/demos/new-public-notification.html +5 -5
  193. package/dist/solutions-components/demos/pci-calculator.html +1 -1
  194. package/dist/solutions-components/{p-bab0aa05.js → p-00f9774c.js} +1 -1
  195. package/dist/solutions-components/p-14097810.entry.js +6 -0
  196. package/dist/solutions-components/{p-019f0baa.entry.js → p-166d5bcc.entry.js} +1 -1
  197. package/dist/solutions-components/{p-9270f6da.entry.js → p-1b9709ce.entry.js} +1 -1
  198. package/dist/solutions-components/p-3bf0115f.entry.js +6 -0
  199. package/dist/solutions-components/{p-796ce3a2.entry.js → p-3ea18af7.entry.js} +1 -1
  200. package/dist/solutions-components/p-4f1c4004.entry.js +6 -0
  201. package/dist/solutions-components/{p-8c7d5880.entry.js → p-546a3d3c.entry.js} +1 -1
  202. package/dist/solutions-components/p-60d212df.entry.js +6 -0
  203. package/dist/solutions-components/{p-bd3f4aa6.entry.js → p-627c19b5.entry.js} +1 -1
  204. package/dist/solutions-components/{p-84034340.js → p-62e92138.js} +1 -1
  205. package/dist/solutions-components/{p-149d80ad.js → p-68434a63.js} +1 -1
  206. package/dist/solutions-components/{p-b2a9bae3.entry.js → p-75f7bfe3.entry.js} +1 -1
  207. package/dist/solutions-components/{p-188483e2.entry.js → p-789f606f.entry.js} +1 -1
  208. package/dist/solutions-components/{p-a7a06d6a.js → p-83225907.js} +1 -1
  209. package/dist/solutions-components/{p-c3fa8a3d.entry.js → p-95ebc2e5.entry.js} +1 -1
  210. package/dist/solutions-components/p-98fe7b5d.entry.js +6 -0
  211. package/dist/solutions-components/p-99ca7674.entry.js +6 -0
  212. package/dist/solutions-components/p-a0b8cecf.entry.js +6 -0
  213. package/dist/solutions-components/{p-7eec285c.entry.js → p-a5d924a9.entry.js} +1 -1
  214. package/dist/solutions-components/{p-0ad0b29a.js → p-a8a0187d.js} +1 -1
  215. package/dist/solutions-components/p-a9f21aaf.entry.js +6 -0
  216. package/dist/solutions-components/{p-a2467088.entry.js → p-b42bde59.entry.js} +1 -1
  217. package/dist/solutions-components/p-baf82bab.entry.js +6 -0
  218. package/dist/solutions-components/p-c504529e.entry.js +6 -0
  219. package/dist/solutions-components/p-c556ed60.entry.js +6 -0
  220. package/dist/solutions-components/p-c99843aa.entry.js +6 -0
  221. package/dist/solutions-components/p-cc774829.entry.js +6 -0
  222. package/dist/solutions-components/p-ced4e208.entry.js +6 -0
  223. package/dist/solutions-components/{p-9e92fd19.entry.js → p-d78f13cb.entry.js} +1 -1
  224. package/dist/solutions-components/{p-10e99d5d.entry.js → p-d8b3d156.entry.js} +1 -1
  225. package/dist/solutions-components/p-db3ca38d.entry.js +17 -0
  226. package/dist/solutions-components/p-dcd6e7b9.entry.js +6 -0
  227. package/dist/solutions-components/{p-811313d1.entry.js → p-dd48cc25.entry.js} +1 -1
  228. package/dist/solutions-components/p-e8011829.entry.js +47 -0
  229. package/dist/solutions-components/solutions-components.css +1 -7
  230. package/dist/solutions-components/solutions-components.esm.js +1 -1
  231. package/dist/types/preact.d.ts +1 -1
  232. package/package.json +2 -2
  233. package/dist/solutions-components/p-0103dee1.entry.js +0 -6
  234. package/dist/solutions-components/p-2f496e4c.entry.js +0 -6
  235. package/dist/solutions-components/p-3977568f.entry.js +0 -17
  236. package/dist/solutions-components/p-3c3c2587.entry.js +0 -6
  237. package/dist/solutions-components/p-4b3ebd24.entry.js +0 -6
  238. package/dist/solutions-components/p-59407d94.entry.js +0 -6
  239. package/dist/solutions-components/p-7283bfe4.entry.js +0 -6
  240. package/dist/solutions-components/p-74a89c71.entry.js +0 -6
  241. package/dist/solutions-components/p-81c5c5f2.entry.js +0 -6
  242. package/dist/solutions-components/p-847193e7.entry.js +0 -6
  243. package/dist/solutions-components/p-a1c924c0.entry.js +0 -47
  244. package/dist/solutions-components/p-a44f1e85.entry.js +0 -6
  245. package/dist/solutions-components/p-abab359e.entry.js +0 -6
  246. package/dist/solutions-components/p-ad5f374e.entry.js +0 -6
  247. package/dist/solutions-components/p-afd9d486.entry.js +0 -6
  248. package/dist/solutions-components/p-f4742b64.entry.js +0 -6
  249. package/dist/solutions-components/p-f7042c6a.entry.js +0 -6
@@ -0,0 +1,47 @@
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,h as i,f as e,g as s,c as o,H as a,F as n}from"./p-78780f63.js";import{c as l,d as r}from"./p-1be63b50.js";import{a as c,i as h,s as d,u as p,n as b,d as u,y as m,t as v,e as g,g as f}from"./p-ca97465b.js";import{c as x,d as w}from"./p-ede84883.js";import{c as y}from"./p-475ad635.js";import{c as k,s as z,d as C,u as T}from"./p-79ba73cb.js";import{C as _}from"./p-29d68474.js";import{g as I}from"./p-fcefdfff.js";import{c as L}from"./p-5b566d55.js";import{c as H,d as j,u as A}from"./p-0c97de08.js";import{g as S}from"./p-0c07ad8a.js";import{s as W,a as D,c as E}from"./p-f10944e6.js";import{q as $,m as F,d as R,a as M,s as N,h as B,b as O,g as U,k as P,t as V,i as J,c as q,f as K,e as G,n as X,r as Y,j as Q,l as Z,o as tt,p as it,L as et}from"./p-026b1345.js";import{d as st,a as ot,c as at}from"./p-3f279568.js";import{C as nt,S as lt}from"./p-d32e6900.js";import{I as rt}from"./p-b3ebaa79.js";import{g as ct}from"./p-6b943f52.js";import{s as ht}from"./p-36eb8399.js";import{d as dt}from"./p-4af32c75.js";import{E as pt}from"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-1e2ffee3.js";import"./p-c92fff33.js";import"./p-77b43a94.js";import"./p-993e8bd0.js";import"./p-a82f35c9.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-225c4ca4.js";import"./p-220ec0d1.js";
7
+ /*!
8
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
10
+ * v2.0.0
11
+ */const bt=class{constructor(i){t(this,i),this.initialContentWidth=null,this.initialContentHeight=null,this.initialClientX=null,this.initialClientY=null,this.contentWidthMax=null,this.contentWidthMin=null,this.contentHeightMax=null,this.contentHeightMin=null,this.step=1,this.stepMultiplier=10,this.actionBars=[],this.storeContentEl=t=>{this.contentEl=t},this.getKeyAdjustedSize=t=>{const{key:i}=t,{el:e,step:s,stepMultiplier:o,layout:a,contentWidthMin:n,contentWidthMax:l,initialContentWidth:r,initialContentHeight:h,contentHeightMin:d,contentHeightMax:p,position:b}=this,u=s*o;["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"].indexOf(i)>-1&&t.preventDefault();const m=["ArrowLeft","ArrowRight"],v=["ArrowDown","ArrowUp"],g="rtl"===c(e)&&m.includes(i)?-1:1;if("horizontal"===a?"end"===b?i===v[1]||i===m[0]:i===v[0]||i===m[1]:i===v[1]||("end"===b?i===m[0]:i===m[1])){const i=t.shiftKey?u:s;return"horizontal"===a?h+g*i:r+g*i}if("horizontal"===a?"end"===b?i===v[0]||i===m[0]:i===v[1]||i===m[1]:i===v[0]||("end"===b?i===m[1]:i===m[0])){const i=t.shiftKey?u:s;return"horizontal"===a?h-g*i:r-g*i}return"Home"===i&&"horizontal"===a&&"number"==typeof d?d:"Home"===i&&"vertical"===a&&"number"==typeof n?n:"End"===i&&"horizontal"===a&&"number"==typeof p?p:"End"===i&&"vertical"===a&&"number"==typeof l?l:"PageDown"===i?"horizontal"===a?h-u:r-u:"PageUp"===i?"horizontal"===a?h+u:r+u:null},this.initialKeydownWidth=t=>{this.setInitialContentWidth();const i=this.getKeyAdjustedSize(t);"number"==typeof i&&this.setContentWidth(i)},this.initialKeydownHeight=t=>{this.setInitialContentHeight();const i=this.getKeyAdjustedSize(t);"number"==typeof i&&this.setContentHeight(i)},this.separatorKeyDown=t=>{"horizontal"===this.layout?this.initialKeydownHeight(t):this.initialKeydownWidth(t)},this.separatorPointerMove=t=>{t.preventDefault();const{el:i,layout:e,initialContentWidth:s,initialContentHeight:o,position:a,initialClientX:n,initialClientY:l}=this,r="horizontal"===e?t.clientY-l:t.clientX-n,h="vertical"===e&&"rtl"===c(i)?-1:1,d="end"===a?-h*r:h*r;"horizontal"===e?this.setContentHeight(o+d):this.setContentWidth(s+d)},this.separatorPointerUp=t=>{h(t)&&(t.preventDefault(),window.removeEventListener("pointerup",this.separatorPointerUp),window.removeEventListener("pointermove",this.separatorPointerMove))},this.setInitialContentHeight=()=>{var t;this.initialContentHeight=null===(t=this.contentEl)||void 0===t?void 0:t.getBoundingClientRect().height},this.setInitialContentWidth=()=>{var t;this.initialContentWidth=null===(t=this.contentEl)||void 0===t?void 0:t.getBoundingClientRect().width},this.separatorPointerDown=t=>{if(!h(t))return;t.preventDefault();const{separatorEl:i}=this;i&&document.activeElement!==i&&i.focus(),"horizontal"===this.layout?(this.setInitialContentHeight(),this.initialClientY=t.clientY):(this.setInitialContentWidth(),this.initialClientX=t.clientX),window.addEventListener("pointerup",this.separatorPointerUp),window.addEventListener("pointermove",this.separatorPointerMove)},this.connectSeparator=t=>{this.disconnectSeparator(),this.separatorEl=t,null==t||t.addEventListener("pointerdown",this.separatorPointerDown)},this.disconnectSeparator=()=>{var t;null===(t=this.separatorEl)||void 0===t||t.removeEventListener("pointerdown",this.separatorPointerDown)},this.setActionBarsLayout=t=>{t.forEach((t=>t.layout=this.layout))},this.handleActionBarSlotChange=t=>{const i=d(t).filter((t=>null==t?void 0:t.matches("calcite-action-bar")));this.actionBars=i,this.setActionBarsLayout(i)},this.handleHeaderSlotChange=t=>{this.hasHeader=p(t)},this.collapsed=!1,this.detached=!1,this.displayMode="dock",this.detachedHeightScale=void 0,this.heightScale=void 0,this.widthScale="m",this.layout="vertical",this.position="start",this.resizable=!1,this.messages=void 0,this.messageOverrides=void 0,this.contentWidth=null,this.contentHeight=null,this.defaultMessages=void 0,this.effectiveLocale="",this.hasHeader=!1}handleDetached(t){t?this.displayMode="float":"float"===this.displayMode&&(this.displayMode="dock")}handleDisplayMode(t){this.detached="float"===t}handleDetachedHeightScale(t){this.heightScale=t}handleHeightScale(t){this.detachedHeightScale=t}layoutHandler(){this.setActionBarsLayout(this.actionBars)}onMessagesChange(){}connectedCallback(){l(this),x(this),k(this)}async componentWillLoad(){await z(this)}disconnectedCallback(){r(this),this.disconnectSeparator(),w(this),C(this)}componentDidLoad(){this.updateAriaValues()}effectiveLocaleChange(){T(this,this.effectiveLocale)}renderHeader(){return i("div",{class:"content__header",hidden:!this.hasHeader,key:"header"},i("slot",{name:"header",onSlotchange:this.handleHeaderSlotChange}))}render(){const{collapsed:t,position:e,initialContentWidth:s,initialContentHeight:o,contentWidth:a,contentWidthMax:n,contentWidthMin:l,contentHeight:r,contentHeightMax:h,contentHeightMin:d,resizable:p,layout:b,displayMode:u}=this,m=c(this.el),v="float"!==u&&p,g=v?"horizontal"===b?r?{height:`${r}px`}:null:a?{width:`${a}px`}:null:null,f=!t&&v?i("div",{"aria-label":this.messages.resize,"aria-orientation":"horizontal"===b?"vertical":"horizontal","aria-valuemax":"horizontal"==b?h:n,"aria-valuemin":"horizontal"==b?d:l,"aria-valuenow":"horizontal"==b?null!=r?r:o:null!=a?a:s,class:"separator",key:"separator",onKeyDown:this.separatorKeyDown,role:"separator",tabIndex:0,"touch-action":"none",ref:this.connectSeparator}):null,x=i("div",{class:{[_.rtl]:"rtl"===m,content:!0,"content--overlay":"overlay"===u,"content--float":"float"===u,[_.calciteAnimate]:"overlay"===u,["horizontal"===b?"start"===e?_.calciteAnimateInDown:_.calciteAnimateInUp:"ltr"===m&&"end"===e||"rtl"===m&&"start"===e?_.calciteAnimateInLeft:_.calciteAnimateInRight]:"overlay"===u},hidden:t,key:"content",style:g,ref:this.storeContentEl},this.renderHeader(),i("div",{class:"content__body"},i("slot",null)),f),w=[i("slot",{key:"action-bar",name:"action-bar",onSlotchange:this.handleActionBarSlotChange}),x];return"end"===e&&w.reverse(),i("div",{class:{container:!0}},w)}setContentWidth(t){const{contentWidthMax:i,contentWidthMin:e}=this,s=Math.round(t);this.contentWidth="number"==typeof i&&"number"==typeof e?y(s,e,i):s}updateAriaValues(){const{contentEl:t}=this,i=t&&getComputedStyle(t);i&&("horizontal"===this.layout?this.updateHeights(i):this.updateWidths(i),e(this))}setContentHeight(t){const{contentHeightMax:i,contentHeightMin:e}=this,s=Math.round(t);this.contentHeight="number"==typeof i&&"number"==typeof e?y(s,e,i):s}updateWidths(t){const i=parseInt(t.getPropertyValue("max-width"),10),e=parseInt(t.getPropertyValue("min-width"),10),s=parseInt(t.getPropertyValue("width"),10);"number"!=typeof s||isNaN(s)||(this.initialContentWidth=s),"number"!=typeof i||isNaN(i)||(this.contentWidthMax=i),"number"!=typeof e||isNaN(e)||(this.contentWidthMin=e)}updateHeights(t){const i=parseInt(t.getPropertyValue("max-height"),10),e=parseInt(t.getPropertyValue("min-height"),10),s=parseInt(t.getPropertyValue("height"),10);"number"!=typeof s||isNaN(s)||(this.initialContentHeight=s),"number"!=typeof i||isNaN(i)||(this.contentHeightMax=i),"number"!=typeof e||isNaN(e)||(this.contentHeightMin=e)}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{detached:["handleDetached"],displayMode:["handleDisplayMode"],detachedHeightScale:["handleDetachedHeightScale"],heightScale:["handleHeightScale"],layout:["layoutHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};bt.style=":host{pointer-events:none;position:relative;display:flex;flex:0 1 auto;align-items:stretch;z-index:var(--calcite-shell-panel-z-index, var(--calcite-z-index));--calcite-shell-panel-detached-max-height:unset;--calcite-shell-panel-max-height:unset;--calcite-shell-panel-shadow-block-start-internal:0 4px 8px -1px rgba(0, 0, 0, 0.08),\n 0 2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-block-end-internal:0 -4px 8px -1px rgba(0, 0, 0, 0.08),\n 0 -2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-start-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08),\n 2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-end-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08),\n -2px 0 4px -1px rgba(0, 0, 0, 0.04)}.calcite--rtl.content--overlay{--calcite-shell-panel-shadow-inline-start-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08),\n -2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-end-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08),\n 2px 0 4px -1px rgba(0, 0, 0, 0.04)}:host([layout=vertical]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index) + 1))}:host([layout=vertical][display-mode=overlay]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index-header) + 1))}:host([layout=vertical][width-scale=s]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 12vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 300px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical][width-scale=m]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 20vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 420px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical][width-scale=l]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 45vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 680px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 340px)}:host([layout=horizontal][height-scale=s]) .content{--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 20vh)\n )}:host([layout=horizontal]) .content{--calcite-shell-panel-min-height-internal:var(--calcite-shell-panel-min-height, 5vh);--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 30vh)\n )}:host([layout=horizontal][height-scale=l]) .content{--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 40vh)\n )}.container{pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2)}.container *{box-sizing:border-box}:host([layout=horizontal]) .container{flex-direction:column}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-color-border-3)}.separator{pointer-events:auto;position:absolute;display:flex;background-color:transparent;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-color-border-2)}.separator:focus{background-color:var(--calcite-color-brand);opacity:1}:host([layout=vertical]) .separator{inset-block:0px;block-size:100%;inline-size:0.125rem;cursor:col-resize}:host([layout=horizontal][position=start]) .separator{inset-block-end:0px}:host([layout=horizontal][position=end]) .separator{inset-block-start:0px}:host([layout=horizontal]) .separator{inset-inline-end:0px;block-size:0.125rem;inline-size:100%;cursor:row-resize}:host([layout=vertical][position=start]) .separator{inset-inline-end:-2px}:host([layout=horizontal][position=start]) .separator{inset-block-end:-2px}:host([layout=vertical][position=end]) .separator{inset-inline-start:-2px}:host([layout=horizontal][position=end]) .separator{inset-block-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;background-color:var(--calcite-color-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), max-inline-size var(--calcite-animation-timing)}:host([layout=vertical]) .content{inline-size:var(--calcite-shell-panel-width-internal);max-inline-size:var(--calcite-shell-panel-max-width-internal);min-inline-size:var(--calcite-shell-panel-min-width-internal)}:host([layout=horizontal]) .content{block-size:var(--calcite-shell-panel-height-internal);max-block-size:var(--calcite-shell-panel-max-height-internal);min-block-size:var(--calcite-shell-panel-min-height-internal)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--overlay{position:absolute;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([layout=vertical]) .content--overlay{inset-block-start:0px;block-size:100%}:host([layout=horizontal]) .content--overlay{inset-inline-start:0px;inline-size:100%}:host([layout=vertical][position=start]) .content--overlay{inset-inline-start:100%;box-shadow:var(--calcite-shell-panel-shadow-inline-start-internal)}:host([layout=vertical][position=end]) .content--overlay{inset-inline-end:100%;box-shadow:var(--calcite-shell-panel-shadow-inline-end-internal)}:host([layout=horizontal][position=start]) .content--overlay{inset-block-start:100%;box-shadow:var(--calcite-shell-panel-shadow-block-start-internal)}:host([layout=horizontal][position=end]) .content--overlay{inset-block-end:100%;box-shadow:var(--calcite-shell-panel-shadow-block-end-internal)}.content--float{margin-inline:0.5rem;margin-block:0.5rem auto;block-size:auto;overflow:hidden;border-radius:0.25rem;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);max-block-size:var(--calcite-shell-panel-max-height-internal, calc(100% - 1rem))}.content--float ::slotted(calcite-panel),.content--float ::slotted(calcite-flow){max-block-size:unset}:host([layout=horizontal]) .content--float{margin-block:0.5rem}:host([position=start]) .content--float ::slotted(calcite-panel),:host([position=start]) .content--float ::slotted(calcite-flow),:host([position=end]) .content--float ::slotted(calcite-panel),:host([position=end]) .content--float ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){border-inline-end:none}:host([layout=horizontal]) slot[name=action-bar]::slotted(calcite-action-bar){border-inline:0}:host([layout=horizontal][position=start]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=start]) .content ::slotted(calcite-panel){border-inline:0;border-block-start:0}:host([layout=horizontal][position=end]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=end]) .content ::slotted(calcite-panel){border-inline:0;border-block-end:0}:host([hidden]){display:none}[hidden]{display:none}";
12
+ /*!
13
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
14
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
15
+ * v2.0.0
16
+ */
17
+ const ut=class{constructor(i){t(this,i),this.calciteInternalTabRegister=o(this,"calciteInternalTabRegister",6),this.guid=`calcite-tab-title-${I()}`,this.tab=void 0,this.selected=!1,this.scale="m",this.labeledBy=void 0}render(){return i(a,{"aria-labelledby":this.labeledBy,id:this.el.id||this.guid},i("div",{class:{container:!0,[`scale-${this.scale}`]:!0},role:"tabpanel",tabIndex:this.selected?0:-1},i("section",{class:"content"},i("slot",null))))}connectedCallback(){this.parentTabsEl=this.el.closest("calcite-tabs")}componentDidLoad(){this.calciteInternalTabRegister.emit()}disconnectedCallback(){var t;null===(t=document.body)||void 0===t||t.dispatchEvent(new CustomEvent("calciteTabUnregister",{detail:this.el}))}internalTabChangeHandler(t){t.composedPath().find((t=>"CALCITE-TABS"===t.tagName))===this.parentTabsEl&&(this.tab?this.selected=this.tab===t.detail.tab:this.getTabIndex().then((i=>{this.selected=i===t.detail.tab})),t.stopPropagation())}async getTabIndex(){return Array.prototype.indexOf.call(b(this.el.parentElement.children).filter((t=>t.matches("calcite-tab"))),this.el)}async updateAriaInfo(t=[],i=[]){this.labeledBy=i[t.indexOf(this.el.id)]||null}get el(){return s(this)}};ut.style=":host([selected]) section,:host([selected]) .container{display:block}:host{display:none;block-size:100%;inline-size:100%}:host([selected]){display:block;block-size:100%;inline-size:100%;overflow:auto}.scale-s .content{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}.scale-m .content{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}.scale-l .content{padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}section,.container{display:none;block-size:100%;inline-size:100%}:host([hidden]){display:none}[hidden]{display:none}";
18
+ /*!
19
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
20
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
21
+ * v2.0.0
22
+ */
23
+ const mt=class{constructor(i){t(this,i),this.calciteTabChange=o(this,"calciteTabChange",6),this.calciteInternalTabChange=o(this,"calciteInternalTabChange",6),this.animationActiveDuration=.3,this.resizeObserver=L("resize",(()=>{this.activeIndicatorEl&&(this.activeIndicatorEl.style.transitionDuration="0s",this.updateActiveWidth(),this.updateOffsetPosition())})),this.handleTabFocus=(t,i,e)=>{u(this.enabledTabTitles,i,e),t.stopPropagation()},this.handleContainerScroll=()=>{this.activeIndicatorEl.style.transitionDuration="0s",this.updateOffsetPosition()},this.storageId=void 0,this.syncId=void 0,this.selectedTitle=null,this.scale="m",this.layout="inline",this.position="bottom",this.bordered=!1,this.indicatorOffset=void 0,this.indicatorWidth=void 0,this.selectedTabId=void 0}async selectedTabIdChanged(){localStorage&&this.storageId&&null!=this.selectedTabId&&localStorage.setItem(`calcite-tab-nav-${this.storageId}`,JSON.stringify(this.selectedTabId)),this.calciteInternalTabChange.emit({tab:this.selectedTabId}),this.selectedTitle=await this.getTabTitleById(this.selectedTabId)}selectedTitleChanged(){this.updateOffsetPosition(),this.updateActiveWidth(),this.activeIndicatorEl.style.transitionDuration=`${this.animationActiveDuration}s`}connectedCallback(){var t;this.parentTabsEl=this.el.closest("calcite-tabs"),null===(t=this.resizeObserver)||void 0===t||t.observe(this.el)}componentWillLoad(){const t=`calcite-tab-nav-${this.storageId}`;if(localStorage&&this.storageId&&localStorage.getItem(t)){const i=JSON.parse(localStorage.getItem(t));this.selectedTabId=i}}componentWillRender(){const{parentTabsEl:t}=this;this.layout=null==t?void 0:t.layout,this.bordered=null==t?void 0:t.bordered,this.selectedTitle&&this.updateOffsetPosition()}componentDidRender(){this.tabTitles.length&&this.tabTitles.every((t=>!t.selected))&&!this.selectedTabId&&this.tabTitles[0].getTabIdentifier().then((t=>{this.calciteInternalTabChange.emit({tab:t})}))}disconnectedCallback(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}render(){const t=c(this.el),e=`${this.indicatorWidth}px`,s=`${this.indicatorOffset}px`,o="rtl"!==t?{width:e,left:s}:{width:e,right:s};return i(a,{role:"tablist"},i("div",{class:{"tab-nav":!0,[`scale-${this.scale}`]:!0,[`position-${this.position}`]:!0},onScroll:this.handleContainerScroll,ref:t=>this.tabNavEl=t},i("slot",null),i("div",{class:"tab-nav-active-indicator-container",ref:t=>this.activeIndicatorContainerEl=t},i("div",{class:"tab-nav-active-indicator",style:o,ref:t=>this.activeIndicatorEl=t}))))}focusPreviousTabHandler(t){this.handleTabFocus(t,t.target,"previous")}focusNextTabHandler(t){this.handleTabFocus(t,t.target,"next")}focusFirstTabHandler(t){this.handleTabFocus(t,t.target,"first")}focusLastTabHandler(t){this.handleTabFocus(t,t.target,"last")}internalActivateTabHandler(t){this.selectedTabId=t.detail.tab?t.detail.tab:this.getIndexOfTabTitle(t.target),t.stopPropagation()}activateTabHandler(t){this.calciteTabChange.emit(),t.stopPropagation()}internalCloseTabHandler(t){this.handleTabTitleClose(t.target),t.stopPropagation()}updateTabTitles(t){t.target.selected&&(this.selectedTabId=t.detail)}globalInternalTabChangeHandler(t){this.syncId&&t.target!==this.el&&t.target.syncId===this.syncId&&this.selectedTabId!==t.detail.tab&&(this.selectedTabId=t.detail.tab),t.stopPropagation()}iconStartChangeHandler(){this.updateActiveWidth(),this.updateOffsetPosition()}updateOffsetPosition(){var t,i,e,s,o;const a=c(this.el),n=null===(t=this.activeIndicatorContainerEl)||void 0===t?void 0:t.offsetWidth,l=null===(i=this.selectedTitle)||void 0===i?void 0:i.offsetLeft,r=null===(e=this.selectedTitle)||void 0===e?void 0:e.offsetWidth;this.indicatorOffset="rtl"!==a?l-(null===(s=this.tabNavEl)||void 0===s?void 0:s.scrollLeft):n-(l+r)+(null===(o=this.tabNavEl)||void 0===o?void 0:o.scrollLeft)}updateActiveWidth(){var t;this.indicatorWidth=null===(t=this.selectedTitle)||void 0===t?void 0:t.offsetWidth}getIndexOfTabTitle(t,i=this.tabTitles){return i.indexOf(t)}async getTabTitleById(t){return Promise.all(this.tabTitles.map((t=>t.getTabIdentifier()))).then((i=>this.tabTitles[i.indexOf(t)]))}get tabTitles(){return m(this.el,"calcite-tab-title")}get enabledTabTitles(){return m(this.el,"calcite-tab-title:not([disabled])").filter((t=>!t.closed))}handleTabTitleClose(t){const{tabTitles:i}=this,e=i.reduce(((t,i,e)=>i.closed?t:[...t,e]),[]),s=e.length;if(1===s&&i[e[0]].closable)i[e[0]].closable=!1,this.selectedTabId=e[0];else if(s>1){const o=i.findIndex((i=>i===t)),a=e.find((t=>t>o));this.selectedTabId===o&&(this.selectedTabId=a||s-1)}requestAnimationFrame((()=>{this.updateOffsetPosition(),this.updateActiveWidth(),i[this.selectedTabId].focus()}))}get el(){return s(this)}static get watchers(){return{selectedTabId:["selectedTabIdChanged"],selectedTitle:["selectedTitleChanged"]}}};mt.style=":host{position:relative;display:flex}.scale-s{min-block-size:1.5rem}.scale-m{min-block-size:2rem}.scale-l{min-block-size:2.75rem}:host([layout=center]:not([bordered])){padding-inline:1.25rem}:host([layout=center]:not([bordered])) .tab-nav ::slotted(calcite-tab-title:last-child){margin-inline-end:0px}:host(:not([bordered])) .scale-l ::slotted(calcite-tab-title){margin-inline-end:1.5rem}:host(:not([bordered])) .scale-m ::slotted(calcite-tab-title){margin-inline-end:1.25rem}:host(:not([bordered])) .scale-s ::slotted(calcite-tab-title){margin-inline-end:1rem}.tab-nav{display:flex;inline-size:100%;justify-content:flex-start;overflow:auto}.tab-nav-active-indicator-container{position:absolute;inset-inline:0px;inset-block-end:0px;block-size:0.125rem;inline-size:100%;overflow:hidden}.tab-nav-active-indicator{position:absolute;inset-block-end:0px;display:block;block-size:0.125rem;background-color:var(--calcite-color-brand);transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host([layout=center]) .tab-nav{justify-content:space-evenly}:host .position-bottom .tab-nav-active-indicator{inset-block-end:unset;inset-block-start:0px}:host .position-bottom .tab-nav-active-indicator-container{inset-block-end:unset;inset-block-start:0px}:host([bordered]) .tab-nav-active-indicator-container{inset-block-end:unset}:host([bordered]) .position-bottom .tab-nav-active-indicator-container{inset-block-end:0;inset-block-start:unset}@media (forced-colors: active){.tab-nav-active-indicator{background-color:highlight}}:host([hidden]){display:none}[hidden]{display:none}";
24
+ /*!
25
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
26
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
27
+ * v2.0.0
28
+ */
29
+ const vt="close-button",gt="calcite-tab-title--icon",ft=class{constructor(i){t(this,i),this.calciteTabsActivate=o(this,"calciteTabsActivate",6),this.calciteInternalTabsActivate=o(this,"calciteInternalTabsActivate",6),this.calciteTabsClose=o(this,"calciteTabsClose",6),this.calciteInternalTabsClose=o(this,"calciteInternalTabsClose",6),this.calciteInternalTabsFocusNext=o(this,"calciteInternalTabsFocusNext",6),this.calciteInternalTabsFocusPrevious=o(this,"calciteInternalTabsFocusPrevious",6),this.calciteInternalTabsFocusFirst=o(this,"calciteInternalTabsFocusFirst",6),this.calciteInternalTabsFocusLast=o(this,"calciteInternalTabsFocusLast",6),this.calciteInternalTabTitleRegister=o(this,"calciteInternalTabTitleRegister",6),this.calciteInternalTabIconChanged=o(this,"calciteInternalTabIconChanged",6),this.closeClickHandler=()=>{this.closeTabTitleAndNotify()},this.mutationObserver=L("mutation",(()=>this.updateHasText())),this.resizeObserver=L("resize",(()=>{this.calciteInternalTabIconChanged.emit()})),this.guid=`calcite-tab-title-${I()}`,this.selected=!1,this.closable=!1,this.closed=!1,this.disabled=!1,this.iconEnd=void 0,this.iconFlipRtl=void 0,this.iconStart=void 0,this.layout=void 0,this.position="top",this.scale="m",this.bordered=!1,this.tab=void 0,this.messages=void 0,this.messageOverrides=void 0,this.controls=void 0,this.defaultMessages=void 0,this.effectiveLocale=void 0,this.hasText=!1}selectedHandler(){this.selected&&this.emitActiveTab(!1)}onMessagesChange(){}connectedCallback(){H(this),x(this),k(this),this.setupTextContentObserver(),this.parentTabNavEl=this.el.closest("calcite-tab-nav"),this.parentTabsEl=this.el.closest("calcite-tabs")}disconnectedCallback(){var t,i,e;null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(i=document.body)||void 0===i||i.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el})),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),j(this),w(this),C(this)}async componentWillLoad(){await z(this),this.updateHasText(),this.tab&&this.selected&&this.emitActiveTab(!1)}componentWillRender(){this.parentTabsEl&&(this.layout=this.parentTabsEl.layout,this.bordered=this.parentTabsEl.bordered)}render(){const{el:t,closed:e}=this,s=t.id||this.guid,o=i("calcite-icon",{class:{[gt]:!0,"icon-start":!0},flipRtl:"start"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconStart,scale:S(this.scale)}),n=i("calcite-icon",{class:{[gt]:!0,"icon-end":!0},flipRtl:"end"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconEnd,scale:S(this.scale)});return i(a,{"aria-controls":this.controls,"aria-selected":v(this.selected),id:s,role:"tab",tabIndex:this.selected?0:-1},i("div",{class:{container:!0,"icon-present":!!this.iconStart||!!this.iconEnd,[`scale-${this.scale}`]:!0},hidden:e,ref:t=>{var i;return null===(i=this.resizeObserver)||void 0===i?void 0:i.observe(t)}},i("div",{class:{content:!0,"content--has-text":this.hasText}},this.iconStart?o:null,i("slot",null),this.iconEnd?n:null),this.renderCloseButton()))}renderCloseButton(){const{closable:t,messages:e}=this;return t?i("button",{"aria-label":e.close,class:vt,disabled:!1,key:vt,onClick:this.closeClickHandler,title:e.close,type:"button",ref:t=>this.closeButtonEl=t},i("calcite-icon",{icon:"x",scale:S(this.scale)})):null}async componentDidLoad(){this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier())}componentDidRender(){A(this,(()=>this.selected))}internalTabChangeHandler(t){t.composedPath().find((t=>"CALCITE-TABS"===t.tagName))===this.parentTabsEl&&(this.tab?this.selected=this.tab===t.detail.tab:this.getTabIndex().then((i=>{this.selected=i===t.detail.tab})),t.stopPropagation())}onClick(){this.disabled||this.emitActiveTab()}keyDownHandler(t){switch(t.key){case" ":case"Enter":t.composedPath().includes(this.closeButtonEl)||(this.emitActiveTab(),t.preventDefault());break;case"ArrowRight":t.preventDefault(),"ltr"===c(this.el)?this.calciteInternalTabsFocusNext.emit():this.calciteInternalTabsFocusPrevious.emit();break;case"ArrowLeft":t.preventDefault(),"ltr"===c(this.el)?this.calciteInternalTabsFocusPrevious.emit():this.calciteInternalTabsFocusNext.emit();break;case"Home":t.preventDefault(),this.calciteInternalTabsFocusFirst.emit();break;case"End":t.preventDefault(),this.calciteInternalTabsFocusLast.emit()}}async getTabIndex(){return Array.prototype.indexOf.call(b(this.el.parentElement.children).filter((t=>t.matches("calcite-tab-title"))),this.el)}async getTabIdentifier(){return this.tab?this.tab:this.getTabIndex()}async updateAriaInfo(t=[],i=[]){this.controls=t[i.indexOf(this.el.id)]||null}effectiveLocaleChange(){T(this,this.effectiveLocale)}updateHasText(){this.hasText=this.el.textContent.trim().length>0}setupTextContentObserver(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0})}emitActiveTab(t=!0){this.disabled||this.closed||(this.calciteInternalTabsActivate.emit({tab:this.tab}),t&&requestAnimationFrame((()=>this.calciteTabsActivate.emit())))}closeTabTitleAndNotify(){this.closed=!0,this.calciteInternalTabsClose.emit({tab:this.tab}),this.calciteTabsClose.emit()}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{selected:["selectedHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};ft.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;outline:2px solid transparent;outline-offset:2px;margin-inline-start:0px}:host([layout=inline]){flex:0 1 auto}:host([layout=center]){flex:1 1 auto}:host([layout=center]) .scale-s,:host([layout=center]) .scale-m,:host([layout=center]) .scale-l{margin-block:0px;text-align:center;flex-basis:12rem}:host([layout=center]) .scale-s .content,:host([layout=center]) .scale-m .content,:host([layout=center]) .scale-l .content{margin:auto}:host([layout=center][closable]) .content{padding-inline-start:32px}:host([layout=center][bordered][closable]) .scale-s .content{padding-inline-start:36px}:host([layout=center][bordered][closable]) .scale-m .content{padding-inline-start:40px}:host([layout=center][closable]) .scale-l .content{padding-inline-start:40px}:host([layout=center][closable][bordered]) .scale-s .content{padding-inline-start:52px}:host([position=bottom]) .container{border-block-end-width:0px;border-block-start-width:2px;border-block-start-color:transparent;border-block-start-style:solid}:host([closed]){display:none}.container{outline-color:transparent}:host(:focus) .container{outline:2px solid var(--calcite-color-brand);outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}:host(:focus) .container:focus-within{outline-color:transparent}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-color-border-2);color:var(--calcite-color-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host([selected]) .container{border-color:transparent;color:var(--calcite-color-text-1)}:host([disabled]) .container{pointer-events:none;opacity:0.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.scale-s .content{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}.scale-m .content{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}.scale-l .content{padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.container{box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;align-content:center;justify-content:space-between;border-block-end-width:2px;padding-inline:0px;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-block-end-color:transparent;border-block-end-style:solid}.content{display:flex;align-items:center;justify-content:center}.calcite-tab-title--icon{position:relative;margin:0px;display:inline-flex;align-self:center}.calcite-tab-title--icon svg{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.content--has-text{padding:0.25rem}.content--has-text .calcite-tab-title--icon.icon-start{margin-inline-end:0.5rem}.content--has-text .calcite-tab-title--icon.icon-end{margin-inline-start:0.5rem}.close-button{display:flex;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-style:none;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:calc(100% - 2px);background-color:var(--calcite-button-transparent-1);margin-inline-start:auto}.close-button:focus{outline:2px solid var(--calcite-color-brand);outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n );outline-offset:-1px}.close-button:focus,.close-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-2)}.close-button:active{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.close-button calcite-icon{color:inherit}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{margin-inline-end:0.5rem}:host([bordered]){margin-inline-end:0}:host([bordered][selected]){box-shadow:inset 0px -2px var(--calcite-color-foreground-1)}:host([bordered][selected][position=bottom]){box-shadow:inset 0 2px 0 var(--calcite-color-foreground-1)}:host([bordered]:hover) .container,:host([bordered]:focus) .container,:host([bordered]:active) .container{position:relative}:host([bordered]:hover) .container{background-color:var(--calcite-color-transparent-hover)}:host([closable]) .container,:host([bordered]) .container{border-inline-start:1px solid transparent;border-inline-end:1px solid transparent}:host([closable]) .container .close-button,:host([bordered]) .container .close-button{margin-inline:0}:host([closable]) .content{box-sizing:border-box;block-size:100%;border-block-end-color:transparent}:host([closable][position=bottom]) .container,:host([bordered][position=bottom]) .container{border-block-start-style:unset}:host([selected][bordered]) .container{border-inline-start-color:var(--calcite-color-border-1);border-inline-end-color:var(--calcite-color-border-1)}:host([bordered]) .content{padding-inline:0.75rem}:host([bordered]) .scale-s .content{padding-inline:0.5rem}:host([bordered]) .scale-l .content{padding-inline:1rem}@media (forced-colors: active){:host{outline-width:0;outline-offset:0}:host(:focus) .container{outline-color:highlight}:host([bordered]) .container{border-block-end-style:solid}:host([bordered][position=bottom]) .container{border-block-start-style:solid}:host([bordered][selected]) .container{border-block-end-style:none}:host([bordered][position=bottom][selected]) .container{border-block-start-style:none}.close-button{z-index:var(--calcite-z-index)}}:host([hidden]){display:none}[hidden]{display:none}";
30
+ /*!
31
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
32
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
33
+ * v2.0.0
34
+ */
35
+ const xt=class{constructor(i){t(this,i),this.mutationObserver=L("mutation",(t=>{for(const i of t){const t=i.target;"CALCITE-TAB-NAV"!==t.nodeName&&"CALCITE-TAB-TITLE"!==t.nodeName&&"CALCITE-TAB"!==t.nodeName||this.updateItems()}})),this.layout="inline",this.position="top",this.scale="m",this.bordered=!1,this.titles=[],this.tabs=[]}handleInheritableProps(){this.updateItems()}connectedCallback(){this.mutationObserver.observe(this.el,{childList:!0}),this.updateItems()}async componentWillLoad(){this.updateItems()}disconnectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect()}render(){return i(n,null,i("slot",{name:"title-group"}),i("section",null,i("slot",null)))}calciteInternalTabTitleRegister(t){this.titles=[...this.titles,t.target],this.registryHandler(),t.stopPropagation()}calciteTabTitleUnregister(t){this.titles=this.titles.filter((i=>i!==t.detail)),this.registryHandler(),t.stopPropagation()}calciteInternalTabRegister(t){this.tabs=[...this.tabs,t.target],this.registryHandler(),t.stopPropagation()}calciteTabUnregister(t){this.tabs=this.tabs.filter((i=>i!==t.detail)),this.registryHandler(),t.stopPropagation()}updateItems(){const{position:t,scale:i}=this,e=this.el.querySelector("calcite-tab-nav");e&&(e.position=t,e.scale=i),Array.from(this.el.querySelectorAll("calcite-tab")).forEach((t=>{t.parentElement===this.el&&(t.scale=i)})),Array.from(this.el.querySelectorAll("calcite-tab-nav > calcite-tab-title")).forEach((e=>{e.position=t,e.scale=i}))}async registryHandler(){let t,i;if(this.tabs.some((t=>t.tab))||this.titles.some((t=>t.tab)))t=this.tabs.sort(((t,i)=>t.tab.localeCompare(i.tab))).map((t=>t.id)),i=this.titles.sort(((t,i)=>t.tab.localeCompare(i.tab))).map((t=>t.id));else{const e=await Promise.all(this.tabs.map((t=>t.getTabIndex()))),s=await Promise.all(this.titles.map((t=>t.getTabIndex())));t=e.reduce(((t,i,e)=>(t[i]=this.tabs[e].id,t)),[]),i=s.reduce(((t,i,e)=>(t[i]=this.titles[e].id,t)),[])}this.tabs.forEach((e=>e.updateAriaInfo(t,i))),this.titles.forEach((e=>e.updateAriaInfo(t,i)))}get el(){return s(this)}static get watchers(){return{position:["handleInheritableProps"],scale:["handleInheritableProps"]}}};xt.style=":host{display:flex;flex-direction:column}:host([bordered]){box-shadow:inset 0 1px 0 var(--calcite-color-border-1);background-color:var(--calcite-color-foreground-1)}:host([bordered]:not([position=bottom])) ::slotted(calcite-tab-nav){margin-block-end:-1px}:host([bordered][position=bottom]){box-shadow:inset 0 1px 0 var(--calcite-color-border-1), inset 0 -1px 0 var(--calcite-color-border-1)}:host([bordered]) section{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-1)}:host([bordered][scale=s]) section{padding:0.75rem}:host([bordered][scale=m]) section{padding:0.5rem}:host([bordered][scale=l]) section{padding:1rem}:host([position=bottom]){flex-direction:column-reverse}section{display:flex;flex-grow:1;overflow:hidden;border-block-start-width:1px;border-block-start-color:var(--calcite-color-border-1);border-block-start-style:solid}:host([position=bottom]) section{flex-direction:column-reverse;border-block-start-width:0px;border-block-end-width:1px;border-block-end-color:var(--calcite-color-border-1)}:host([position=bottom]:not([bordered])) section{border-block-end-style:solid}@media (forced-colors: active){:host([bordered]) section{border-block-start-width:0px;border-block-end-width:1px}:host([position=bottom][bordered]) section{border-block-start-width:1px;border-block-end-width:0px}}:host([hidden]){display:none}[hidden]{display:none}";var wt;
36
+ /*!
37
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
38
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
39
+ * v2.0.0
40
+ */
41
+ function yt(t,i,e){const{items:s,messages:o}=e,a=s.length,n=$(e,t)+1;return function(t,i,e,s){return t.replace("{position}",e.toString()).replace("{itemLabel}",i).replace("{total}",s.toString())}("idle"===i?o.dragHandleIdle:"active"===i?o.dragHandleActive:"change"===i?o.dragHandleChange:o.dragHandleCommit,t.label,n,a)}function kt(t){return{handle:t.composedPath().find((t=>void 0!==t.dataset?.jsHandle)),item:t.composedPath().find((t=>"calcite-value-list-item"===t.tagName?.toLowerCase()))}}!function(t){t.grip="grip"}(wt||(wt={}));const zt=class{constructor(i){t(this,i),this.calciteListChange=o(this,"calciteListChange",6),this.calciteListOrderChange=o(this,"calciteListOrderChange",6),this.calciteListFilter=o(this,"calciteListFilter",6),this.lastSelectedItem=null,this.mutationObserver=L("mutation",F.bind(this)),this.handleSelector=".handle",this.dragSelector="calcite-value-list-item",this.setFilterEl=t=>{this.filterEl=t},this.setFilteredItems=t=>{this.filteredItems=t},this.deselectRemovedItems=R.bind(this),this.deselectSiblingItems=M.bind(this),this.selectSiblings=N.bind(this),this.handleFilter=B.bind(this),this.handleFilterEvent=O.bind(this),this.getItemData=U.bind(this),this.keyDownHandler=t=>{if(t.defaultPrevented)return;const{handle:i,item:e}=kt(t);if(i&&!e.handleActivated&&" "===t.key&&this.updateScreenReaderText(yt(e,"commit",this)),!i||!e.handleActivated)return void P.call(this,t);t.preventDefault();const{items:s}=this;if(" "===t.key&&this.updateScreenReaderText(yt(e,"active",this)),"ArrowUp"!==t.key&&"ArrowDown"!==t.key||s.length<=1)return;const{el:o}=this,a=V(this,e,"ArrowUp"===t.key?"up":"down");if(a===s.length-1)o.appendChild(e);else{const t=o.children[a];o.insertBefore(e,t===e.nextElementSibling?t.nextElementSibling:t)}this.items=this.getItems(),this.calciteListOrderChange.emit(this.items.map((({value:t})=>t))),requestAnimationFrame((()=>g(i))),e.handleActivated=!0,this.updateHandleAriaLabel(i,yt(e,"change",this))},this.storeAssistiveEl=t=>{this.assistiveTextEl=t},this.handleFocusIn=t=>{const{handle:i,item:e}=kt(t);!(null==e?void 0:e.handleActivated)&&e&&i&&this.updateHandleAriaLabel(i,yt(e,"idle",this))},this.disabled=!1,this.canPull=void 0,this.canPut=void 0,this.dragEnabled=!1,this.filteredItems=[],this.filteredData=[],this.filterEnabled=!1,this.filterPlaceholder=void 0,this.filterText=void 0,this.group=void 0,this.loading=!1,this.multiple=!1,this.selectionFollowsFocus=!1,this.messageOverrides=void 0,this.messages=void 0,this.dataForFilter=[],this.defaultMessages=void 0,this.effectiveLocale="",this.selectedValues=new Map}onMessagesChange(){}effectiveLocaleChange(){T(this,this.effectiveLocale)}connectedCallback(){st(this)||(H(this),x(this),k(this),J.call(this),q.call(this),this.setUpSorting())}async componentWillLoad(){W(this),await z(this)}componentDidLoad(){D(this),K.call(this)}componentDidRender(){A(this)}disconnectedCallback(){st(this)||(j(this),ot(this),w(this),C(this),G.call(this))}calciteListFocusOutHandler(t){X.call(this,t)}calciteListItemRemoveHandler(t){Y.call(this,t)}calciteListItemChangeHandler(t){Q.call(this,t)}calciteInternalListItemPropsChangeHandler(t){t.stopPropagation(),this.setUpFilter()}calciteInternalListItemValueChangeHandler(t){Z.call(this,t),t.stopPropagation()}onDragStart(){G.call(this)}onDragEnd(){q.call(this)}onDragSort(){this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item"));const t=this.items.map((t=>t.value));this.calciteListOrderChange.emit(t)}getItems(){return Array.from(this.el.querySelectorAll("calcite-value-list-item"))}setUpItems(){tt.call(this,"calcite-value-list-item"),this.setUpSorting()}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}setUpSorting(){const{dragEnabled:t}=this;t&&at(this)}handleBlur(){this.dragEnabled&&this.updateScreenReaderText("")}async getSelectedItems(){return this.selectedValues}async setFocus(t){return await E(this),it.call(this,t)}getIconType(){let t=null;return this.dragEnabled&&(t=wt.grip),t}updateScreenReaderText(t){this.assistiveTextEl.textContent=t}updateHandleAriaLabel(t,i){t.ariaLabel=i}handleValueListItemBlur(t){const{item:i,handle:e}=t.detail;!(null==i?void 0:i.handleActivated)&&i&&this.updateHandleAriaLabel(e,yt(i,"idle",this)),t.stopPropagation()}render(){return i(et,{onBlur:this.handleBlur,onFocusin:this.handleFocusIn,onKeyDown:this.keyDownHandler,props:this})}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};zt.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;box-sizing:border-box;display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2)}:host *{box-sizing:border-box}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-value-list-item:last-of-type{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header{margin-block-end:0.25rem;display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1);--tw-shadow:0 1px 0 var(--calcite-color-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-z-index-sticky)}calcite-filter{margin-block-end:1px}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}";
42
+ /*!
43
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
44
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
45
+ * v2.0.0
46
+ */
47
+ const Ct="actions-end",Tt="actions-start",_t=class{constructor(i){t(this,i),this.calciteListItemChange=o(this,"calciteListItemChange",6),this.calciteListItemRemove=o(this,"calciteListItemRemove",7),this.calciteValueListItemDragHandleBlur=o(this,"calciteValueListItemDragHandleBlur",6),this.pickListItem=null,this.guid=`calcite-value-list-item-${I()}`,this.getPickListRef=t=>this.pickListItem=t,this.handleKeyDown=t=>{" "===t.key&&(this.handleActivated=!this.handleActivated)},this.handleBlur=()=>{this.handleActivated=!1,this.calciteValueListItemDragHandleBlur.emit({item:this.el,handle:this.handleEl})},this.handleSelectChange=t=>{this.selected=t.detail.selected},this.description=void 0,this.disabled=!1,this.deselectDisabled=!1,this.nonInteractive=!1,this.handleActivated=!1,this.icon=null,this.iconFlipRtl=!1,this.label=void 0,this.metadata=void 0,this.removable=!1,this.selected=!1,this.value=void 0}connectedCallback(){l(this),H(this)}disconnectedCallback(){r(this),j(this)}componentWillLoad(){W(this)}componentDidLoad(){D(this)}componentDidRender(){A(this,!!this.el.closest("calcite-value-list")&&"managed")}async toggleSelected(t){this.pickListItem.toggleSelected(t)}async setFocus(){var t;return await E(this),null===(t=this.pickListItem)||void 0===t?void 0:t.setFocus()}calciteListItemChangeHandler(t){t.detail.item=this.el}renderActionsEnd(){const{el:t}=this;return f(t,Ct)?i("slot",{name:Ct,slot:lt.actionsEnd}):null}renderActionsStart(){const{el:t}=this;return f(t,Tt)?i("slot",{name:Tt,slot:lt.actionsStart}):null}renderHandle(){const{icon:t,iconFlipRtl:e}=this;if(t===rt.grip)return i("span",{class:{[nt.handle]:!0,[nt.handleActivated]:this.handleActivated},"data-js-handle":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,role:"button",tabindex:"0",ref:t=>this.handleEl=t},i("calcite-icon",{flipRtl:e,icon:"drag",scale:"s"}))}render(){return i(a,{id:this.el.id||this.guid},this.renderHandle(),i("calcite-pick-list-item",{description:this.description,deselectDisabled:this.deselectDisabled,disabled:this.disabled,label:this.label,metadata:this.metadata,nonInteractive:this.nonInteractive,onCalciteListItemChange:this.handleSelectChange,removable:this.removable,selected:this.selected,value:this.value,ref:this.getPickListRef},this.renderActionsStart(),this.renderActionsEnd()))}get el(){return s(this)}};_t.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{margin-block-end:1px;box-sizing:border-box;display:flex;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);--tw-shadow:0 1px 0 var(--calcite-color-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition:background-color var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}:host *{box-sizing:border-box}calcite-pick-list-item{position:relative;margin:0px;flex-grow:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([active]),:host([selected]){--tw-shadow:0 0 0 1px var(--calcite-color-brand);--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.handle{display:flex;cursor:move;align-items:center;justify-content:center;border-style:none;background-color:transparent;padding-block:0px;padding-inline:0.25rem;color:var(--calcite-color-border-input);outline-color:transparent}.handle:hover{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.handle:focus{outline:2px solid var(--calcite-color-brand);outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.handle--activated{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}.handle calcite-icon{color:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hidden]){display:none}[hidden]{display:none}";const It=class{constructor(i){t(this,i),this._loaded=!1,this._useDiffEditor=!1,this.hasChanges=!1,this.hasErrors=!1,this.instanceid="",this.value=""}componentDidLoad(){const t=document.getElementById(`${this.instanceid}-container`);if(t){this._editor=monaco.editor.create(t,{value:this.value,language:"json",theme:"vs",minimap:{enabled:!1},automaticLayout:!0,scrollBeyondLastLine:!1}),this._currentModel=this._editor.getModel(),this._contentChanged=this._currentModel.onDidChangeContent(this._onEditorChange.bind(this));const i=monaco.editor.setModelMarkers,e=this;monaco.editor.setModelMarkers=function(t,s,o){var a,n;t.id===e._currentModel.id&&(e._flagEditorHasErrors(o.length>0),e.hasErrors||(e._flagEditorHasChanges(null===(a=e._currentModel)||void 0===a?void 0:a.canUndo()),(null===(n=e._currentModel)||void 0===n?void 0:n.canUndo())&&e._flagEditorContentChanged()),document.getElementById(`${e.instanceid}-errorFlag`).style.visibility=e.hasErrors?"visible":"hidden"),i.call(monaco.editor,t,s,o)},this._diffEditor=monaco.editor.createDiffEditor(document.getElementById(`${this.instanceid}-diff-container`),{automaticLayout:!0}),this._setDiffModel(),this._loaded=!0,this._toggleUndoRedo()}}async componentWillLoad(){this._initValueObserver(),await this._getTranslations()}render(){return i(a,null,i("div",{id:`${this.instanceid}-editor-container`,class:"editor-container padding-right"},i("div",{class:"editor-controls"},i("div",{class:"editor-buttons"},i("calcite-icon",{id:`${this.instanceid}-errorFlag`,icon:"exclamation-mark-triangle",title:this._translations.errorFlag,scale:"s",class:"edit-error-flag"}),i("calcite-button",{id:`${this.instanceid}-undo`,color:"blue",appearance:"solid",title:this._translations.undo,onClick:()=>this._undo(),scale:"s",class:"edit-button"},i("calcite-icon",{icon:"undo",scale:"s"})),i("calcite-button",{id:`${this.instanceid}-redo`,color:"blue",appearance:"solid",title:this._translations.redo,onClick:()=>this._redo(),scale:"s",class:"edit-button"},i("calcite-icon",{icon:"redo",scale:"s"})),i("calcite-button",{id:`${this.instanceid}-diff`,color:"blue",appearance:"solid",title:this._translations.diff,onClick:()=>this._toggleEditor(),scale:"s",class:"edit-button"},i("calcite-icon",{icon:"compare",scale:"s"})),i("calcite-button",{id:`${this.instanceid}-search`,appearance:"outline",color:"blue",title:this._translations.search,onClick:()=>this._search(),scale:"s",class:"edit-button"},i("calcite-icon",{icon:"search",scale:"s"})),i("calcite-button",{id:`${this.instanceid}-reset`,color:"blue",appearance:"solid",disabled:!0,title:this._translations.cancelEdits,onClick:()=>this._reset(),scale:"s",class:"edit-button"},i("calcite-icon",{icon:"reset",scale:"s"})))),i("div",{class:"edit-parent"},i("div",{id:`${this.instanceid}-container`,class:"json-edit-container"}),i("div",{id:`${this.instanceid}-diff-container`,class:"json-edit-container display-none"}))))}async getEditorContents(){return new Promise(((t,i)=>{try{t(this._currentModel.getValue())}catch(t){i(t)}}))}async prepareForDeletion(){var t,i,e,s,o;null===(t=this._searchBtnHandler)||void 0===t||t.removeEventListener("click",this._search),null===(i=this._cancelEditsBtnHandler)||void 0===i||i.removeEventListener("click",this._reset),null===(e=this._valueObserver)||void 0===e||e.disconnect(),null===(s=this._contentChanged)||void 0===s||s.dispose(),null===(o=this._editor)||void 0===o||o.dispose()}async replaceCurrentSelection(t){const i=this._editor.getSelection();this._editor.executeEdits("",[{range:i,text:t}])}async reset(){return new Promise(((t,i)=>{try{this._reset(),t({success:!0})}catch(t){i(t)}}))}_disableButton(t){var i;null===(i=document.getElementById(t))||void 0===i||i.setAttribute("disabled","")}_enableButton(t){var i;null===(i=document.getElementById(t))||void 0===i||i.removeAttribute("disabled")}_flagEditorContentChanged(){window.dispatchEvent(new CustomEvent("solutionEditorContentChanged",{detail:{id:this.instanceid,contents:this._currentModel.getValue()},bubbles:!0,cancelable:!1,composed:!0}))}_flagEditorHasChanges(t){this.hasChanges!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasChanges",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasChanges=t)}_flagEditorHasErrors(t){this.hasErrors!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasErrors",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasErrors=t)}async _getTranslations(){const t=await ct(this.el);this._translations=t[0]}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"value"===t.attributeName&&t.target[t.attributeName]!==t.oldValue&&this._loaded&&this._currentModel.setValue(this.value)}))})),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}_onEditorChange(){this._toggleUndoRedo()}_redo(){var t;(null===(t=this._currentModel)||void 0===t?void 0:t.canRedo())&&(this._currentModel.redo(),this._toggleUndoRedo())}_reset(){this._currentModel.setValue(this.value),this._toggleUndoRedo()}_search(){this._editor.trigger("toggleFind","actions.find")}_setDiffModel(){this._diffEditor&&this._diffEditor.setModel({original:monaco.editor.createModel(this.value,"json"),modified:this._editor.getModel()})}_toggleEditor(){this._useDiffEditor=!this._useDiffEditor;let t=document.getElementById(`${this.instanceid}-diff-container`),i=document.getElementById(`${this.instanceid}-container`);this._useDiffEditor?(this._setDiffModel(),t.classList.remove("display-none"),i.classList.add("display-none")):(t.classList.add("display-none"),i.classList.remove("display-none"))}_toggleUndoRedo(){var t,i,e,s;(null===(t=this._currentModel)||void 0===t?void 0:t.canUndo())?this._enableButton(`${this.instanceid}-undo`):this._disableButton(`${this.instanceid}-undo`),(null===(i=this._currentModel)||void 0===i?void 0:i.canRedo())?this._enableButton(`${this.instanceid}-redo`):this._disableButton(`${this.instanceid}-redo`),(null===(e=this._currentModel)||void 0===e?void 0:e.canUndo())||(null===(s=this._currentModel)||void 0===s?void 0:s.canRedo())?this._enableButton(`${this.instanceid}-reset`):this._disableButton(`${this.instanceid}-reset`)}_undo(){var t;(null===(t=this._currentModel)||void 0===t?void 0:t.canUndo())&&(this._currentModel.undo(),this._toggleUndoRedo())}static get assetsDirs(){return["assets"]}get el(){return s(this)}};It.style=":host{display:block}.editor-container{position:relative;height:100%}.editor-controls{height:2.75rem;padding-right:0.5rem;background-color:#F4F4F4}.editor-buttons{float:right}html[dir=rtl] .editor-buttons{float:left}.edit-error-flag{padding-top:0.5rem;color:red;visibility:hidden}.edit-button{padding-inline-start:0.5rem}.editor-text{width:100%;overflow-y:auto;background-color:#FFFFFF}.edit-width{width:100%}.edit-parent{box-sizing:border-box;width:100%;height:calc(100% - 46px)}.json-edit-container{height:100%;width:100%;border:1px #808080 solid}.padding-right{padding-inline-end:0.125rem}.btn{margin-bottom:1rem;display:flex;align-content:center;height:25px;width:120px}.select-ctrl{margin-bottom:1rem}.all-edits{margin-top:4rem}.floating-title{font-size:2rem;z-index:100;position:absolute;left:0.5rem;pointer-events:none}.floating-title-button{pointer-events:auto}.json-editor-position1{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:100%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2a{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2b{position:absolute;right:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}";const Lt=class{constructor(i){t(this,i),this.itemId="",this.itemDetails={accessInformation:"",description:"",licenseInfo:"",snippet:"",tags:[],title:""},this.itemEdit=void 0,this._translations=void 0,this.thumbnail=void 0,this.thumbnailContainer=void 0}async componentWillLoad(){return this._getTranslations()}async componentWillRender(){return this.itemEdit=ht.getItemInfo(this.itemId),this.itemEdit&&(this.itemDetails=this.itemEdit.item,this.itemType=this.itemDetails.type),Promise.resolve()}render(){return i(a,null,i("div",{class:"parent-container"},i("div",{class:"inputBottomSeparation"},i("calcite-input",{id:"item-title",value:this.itemDetails.title})),i("div",{class:"inputBottomSeparation"},i("input",{accept:".jpg,.gif,.png,image/jpg,image/gif,image/png",class:"display-none",onChange:t=>this._updateThumbnail(t),ref:t=>this.browseForThumbnail=t,type:"file"}),i("button",{class:"font-size--3 btn-link inline-block trailer-quarter",onClick:()=>this._getThumbnail()},i("svg",{class:"icon-inline icon-inline--on-left",height:"16",viewBox:"0 0 16 16",width:"16"},i("path",{d:"M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z"})),this._translations.editThumbnail),i("div",{class:"flex"},i("div",{class:"img-container",ref:t=>this.thumbnailContainer=t},i("img",{class:"scale-down",height:"133",id:"item-thumbnail",ref:t=>this.thumbnail=t,width:"200"})),i("div",{class:"snippet-count-container"},i("calcite-input",{id:"item-snippet",maxLength:250,type:"textarea",value:this.itemDetails.snippet}),i("label",{class:"font-size--3",id:"item-snippet-count",ref:t=>this.itemSnippetCount=t})))),i("calcite-label",null,this._translations.description,i("label",{id:"item-description-label"},i("calcite-input",{id:"item-description",type:"textarea",value:this.itemDetails.description}))),i("calcite-label",null,this._translations.tags,i("label",{id:"item-tags-label"},i("calcite-input",{id:"item-tags",value:(this.itemDetails.tags&&Array.isArray(this.itemDetails.tags)?this.itemDetails.tags:[this.itemDetails.tags]).join(",")}))),"Group"!==this.itemType?i("calcite-label",null,this._translations.credits,i("label",{id:"item-credits-label"},i("calcite-input",{id:"item-credits",value:this.itemDetails.accessInformation}))):null,"Group"!==this.itemType?i("calcite-label",null,i("label",{id:"item-terms-label"},this._translations.termsOfUse,i("calcite-input",{id:"item-terms",type:"textarea",value:this.itemDetails.licenseInfo}))):null))}componentDidRender(){this._loadThumb()}inputReceivedHandler(t){switch(t.target.id){case"item-title":this.itemDetails.title=t.target.value,this._updateStore();break;case"item-snippet":t.target.value.length>250&&(t.target.value=t.target.value.substring(0,250)),this.itemDetails.snippet=t.target.value,this._updateLengthLabel(this.itemDetails.snippet),this._updateStore();break;case"item-description":this.itemDetails.description=t.target.value,this._updateStore();break;case"item-tags":this.itemDetails.tags=t.target.value,this._updateStore();break;case"item-credits":this.itemDetails.accessInformation=t.target.value,this._updateStore();break;case"item-terms":this.itemDetails.licenseInfo=t.target.value,this._updateStore()}}_getThumbnail(){this.browseForThumbnail.click()}_loadThumb(){var t;this.thumbnail&&(null===(t=this.itemEdit)||void 0===t?void 0:t.thumbnail)?(this.thumbnail.src=URL.createObjectURL(this.itemEdit.thumbnail),this.thumbnailContainer.classList.remove("empty-box"),this.thumbnail.classList.remove("display-none")):(this.thumbnailContainer.classList.add("empty-box"),this.thumbnail.classList.add("display-none"))}_updateLengthLabel(t){this.itemSnippetCount.innerText=this._translations.snippetCountPattern.replace("{{n}}",t.length.toString())}_updateStore(){this.itemEdit=ht.getItemInfo(this.itemId),this.itemEdit.item=this.itemDetails,ht.setItemInfo(this.itemEdit)}_updateThumbnail(t){const i=t.target.files;i&&i[0]&&this.thumbnail&&(this.thumbnail.src=URL.createObjectURL(i[0]),this.itemEdit=ht.getItemInfo(this.itemId),this.itemEdit.thumbnail=i[0],ht.replaceItemThumbnail(this.itemEdit))}async _getTranslations(){const t=await ct(this.el);this._translations=t[0]}get el(){return s(this)}};Lt.style=".inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.icon-inline--on-left,.icon-inline--on-right{display:inline;vertical-align:middle;margin-inline-end:0.375rem;fill:#0079c1}.scale-down{-o-object-fit:scale-down;object-fit:scale-down}.img-container{display:inline;margin-inline-end:1rem;max-width:363px}.summary-count-container{display:inline;flex-grow:1;margin-inline-start:0.75rem}.snippet-count-container{width:calc(100vw - 363px)}.parent-container{max-width:100%;padding:1rem}label{position:relative;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem;display:block;min-width:-moz-min-content;min-width:min-content}";const Ht=class{constructor(i){t(this,i),this.groupId="",this._translations=void 0,this.sharing=[]}itemIdWatchHandler(){const t=ht.getItemInfo(this.groupId);this.sharing=t.groupDetails}async componentWillLoad(){return this._getTranslations()}render(){return i(a,null,i("div",{class:"container-border"},i("calcite-label",null,this._translations.groupInfo),this._renderItems(this.sharing)))}async getShareInfo(){return this.sharing}_renderItems(t){return t&&t.length>0?t.map((t=>i("calcite-label",{layout:"inline"},i("calcite-switch",{checked:t.shareItem,id:t.id,name:"setting",onCalciteSwitchChange:t=>this._updateItem(t),scale:"m",value:"enabled"}),i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title)))):null}_updateItem(t){const i=t.target.id;this.sharing=this.sharing.map((e=>{if(e.id===i){e.shareItem=t.detail.switched;const s=ht.getItemInfo(i);if(e.shareItem)s.groups?s.groups.indexOf(this.groupId)<0&&s.groups.push(this.groupId):s.groups=[this.groupId];else if(s.groups){const t=s.groups.indexOf(this.groupId);t>-1&&s.groups.splice(t,1)}ht.setItemInfo(s)}return e}))}async _getTranslations(){const t=await ct(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{groupId:["itemIdWatchHandler"]}}};Ht.style=":host{display:block}.container-border{padding:1rem}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const jt=class{constructor(i){t(this,i),this.organizationVariableSelected=o(this,"organizationVariableSelected",7),this.value="",this._organizationVariables=[],this._translations=void 0}valueWatchHandler(){this._organizationVariables=JSON.parse(this.value)}async componentWillLoad(){return this._getTranslations()}render(){return i(a,null,i("div",null,i("h4",{class:"org-var-header"},this._translations.orgVariables)),i("div",{class:"container-border"},i("calcite-tree",{id:"variable-label"},this._renderHierarchy(this._organizationVariables))))}_renderHierarchy(t){return t.map((t=>i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,i){this.organizationVariableSelected.emit({itemId:t,value:i})}async _getTranslations(){const t=await ct(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{value:["valueWatchHandler"]}}};jt.style=":host{display:block}.container-border{overflow-y:auto}.org-var-header{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1rem}";const At=class{constructor(i){t(this,i),this._removedResources={},this.authentication=void 0,this.itemId="",this.resourceFilePaths=[],this.resources=[],this._translations=void 0}itemIdWatchHandler(){const t=ht.getItemInfo(this.itemId);this.resourceFilePaths=t.resourceFilePaths,this.resources=t.resources.map((t=>t.substring(t.lastIndexOf("/")+1)))}componentWillLoad(){return this._getTranslations()}render(){const t=this._hasValidResources();return i(a,null,i("div",{class:"resource-item"},i("div",{class:"margin-bottom-1"},i("calcite-button",{appearance:"solid",class:"resource-button",color:"blue",onClick:()=>this._addNewResource()},this._translations.addResource),i("calcite-button",{appearance:"solid",color:"blue",disabled:!t,onClick:()=>this._downloadAll()},this._translations.downloadAll)),i("div",{class:"resources-container",style:{display:t?"inherit":"none"}},this._renderResourceList())))}_renderResourceList(){return i("calcite-value-list",{multiple:!0},this.resourceFilePaths.reduce(((t,i)=>(i.type!==pt.Thumbnail&&t.push(this._renderResource(i)),t)),[]))}_renderResource(t){const e=t.updateType===dt.Remove;return i("calcite-value-list-item",{class:e?"disabled":"",label:t.folder?t.folder+"/"+t.filename:t.filename,nonInteractive:!0,value:t.url},i("calcite-action-group",{"expand-disabled":"true",layout:"horizontal",slot:"actions-end"},i("calcite-action",{disabled:e,icon:"download",label:this._translations.download,onClick:()=>this._download(t.url,t.filename),scale:"m",text:this._translations.download,title:this._translations.download}),i("calcite-action",{disabled:e,icon:"upload-to",label:this._translations.update,onClick:()=>this._upload(t),scale:"m",text:this._translations.update,title:this._translations.update}),i("calcite-action",{disabled:e,icon:"trash",label:this._translations.delete,onClick:()=>this._delete(t),scale:"m",text:this._translations.delete,title:this._translations.delete}),e?i("calcite-action",{icon:"reset",label:this._translations.reset,onClick:()=>this._reset(t.filename),scale:"m",text:this._translations.reset,title:this._translations.reset}):i("div",{class:"display-none"})))}_delete(t){t.updateType=dt.Remove,this.resourceFilePaths=[...this.resourceFilePaths],this._updateStore()}_reset(t){this.resourceFilePaths=this.resources.some((i=>i===t))?this.resourceFilePaths.map((i=>(i.filename===t&&(i.updateType=dt.None),i))):this.resourceFilePaths.map((i=>(i.filename===t&&(i.updateType=dt.Add),i))),this._updateStore()}_downloadAll(){this.resourceFilePaths.forEach((t=>{this._download(t.url,t.filename)}))}_download(t,i){t.startsWith("blob")?this.downloadFile(t,i):this.fetchAndDownload(`${t}?token=${this.authentication.token}`,i)}downloadFile(t,i){const e=document.createElement("a");e.href=t,e.download=i,e.target="_blank",e.click()}_hasValidResources(){return this.resourceFilePaths.some((t=>t.url.indexOf("_info_thumbnail")<0))}async fetchAndDownload(t,i){const e=await fetch(t),s=await e.blob(),o=URL.createObjectURL(s);this.downloadFile(o,i)}_upload(t){const i=document.createElement("input");i.classList.add("display-none"),i.onchange=this._updateResource.bind(this,t),i.type="file",i.click()}_addNewResource(){const t=document.createElement("input");t.classList.add("display-none"),t.onchange=this._add.bind(this),t.type="file",t.click()}_updateResource(t,i){const e=i.target.files;e&&e[0]&&(t.blob=e[0],t.updateType=dt.Update,this._updateStore())}_add(t){const i=t.target.files;if(i&&i[0]){const t=URL.createObjectURL(i[0]),e=i[0].name;this.resourceFilePaths.some((i=>i.filename===e&&i.url===t))||(this.resourceFilePaths=[...this.resourceFilePaths,{url:t,type:pt.Data,folder:void 0,filename:e,blob:i[0],updateType:dt.Add}],this._updateStore())}}_updateStore(){const t=ht.getItemInfo(this.itemId);t.resourceFilePaths=this.resourceFilePaths,ht.setItemInfo(t)}async _getTranslations(){const t=await ct(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};At.style=":host{display:block}.resource-item{padding:1rem}.resource-button{margin-inline-end:1rem}.resource-progress{padding-top:1rem}.resources-container{border:1px #808080 solid}.margin-bottom-1{margin-bottom:1rem}";const St=class{itemIdWatchHandler(){this._initializing=!0,this.value=JSON.stringify("data"===this.instanceid?ht.getItemInfo(this.itemId).data:ht.getItemInfo(this.itemId).properties,null,2)}constructor(i){t(this,i),this._initializing=!1,this.instanceid="",this.itemId="",this.organizationVariables="",this.solutionVariables="",this.varsOpen=!0,this._translations=void 0,this.value="",window.addEventListener("solutionEditorContentChanged",(t=>{if(this.itemId){const{id:i,contents:e}=t.detail,[s,o]=i.split("|");if(s==this.itemId&&o===this.instanceid){if(!this._initializing&&e.length>0){const t=ht.getItemInfo(s);"data"===o?t.data=JSON.parse(e):t.properties=JSON.parse(e),ht.setItemInfo(t)}this._initializing=!1}}}))}componentWillLoad(){return this._getTranslations()}render(){return i(a,null,i("div",{class:"solution-data-container"},i("calcite-shell",{class:"light var-container",dir:"ltr"},i("calcite-panel",{class:"json-editor"},i("div",{class:"solution-data-child-container calcite-match-height"},i("json-editor",{class:"solution-data-editor-container",instanceid:this.itemId+"|"+this.instanceid,value:this.value}))),i("calcite-shell-panel",{"height-scale":"l",position:"end",slot:"contextual-panel","width-scale":"xs"},i("div",{class:this.varsOpen?"solution-data-child-container":"solution-data-child-container-collapsed"},i("calcite-button",{appearance:"transparent",class:"collapse-btn","icon-start":this.varsOpen?"chevrons-right":"chevrons-left",id:"collapse-vars",onClick:()=>this._toggleVars(),scale:"s",title:this.varsOpen?this._translations.collapse:this._translations.expand}),i("div",{class:this.varsOpen?"org-vars":"org-vars display-none",id:"orgVars"},i("solution-organization-variables",{value:this.organizationVariables})),i("div",{class:this.varsOpen?"sol-vars":"sol-vars display-none",id:"solVars"},i("solution-variables",{value:this.solutionVariables})))))))}_toggleVars(){this.varsOpen=!this.varsOpen}async _getTranslations(){const t=await ct(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};St.style=":host{display:flexbox}.solution-data-container{position:absolute;height:-moz-available;height:calc(100% - 48px);height:-webkit-fill-available;height:stretch;width:-moz-available;width:100%;width:-webkit-fill-available;width:stretch}.solution-data-child-container{display:flex;height:100%;width:100%;flex-direction:column;overflow-y:auto}.solution-data-editor-container{height:100%}.solution-data-child-container-collapsed{display:flex;height:100%;flex-direction:column;overflow:auto;width:50px}.inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.json-editor{margin:1rem;width:auto;width:-webkit-fill-available -moz-available}.collapse-btn{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.org-vars{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.sol-vars{padding-top:0px;padding-bottom:0px;padding-left:1rem;padding-right:1rem;min-height:45%}.padding-1{padding:1rem}.light{background-color:#F4F4F4}";const Wt=class{constructor(i){t(this,i),this.solutionVariableSelected=o(this,"solutionVariableSelected",7),this.value="",this._solutionVariables=[],this._translations=void 0}valueWatchHandler(){this._solutionVariables=JSON.parse(this.value)}componentWillLoad(){return this._getTranslations()}render(){return i(a,null,i("div",null,i("h4",{class:"org-var-header"},this._translations.solVariables)),i("div",{class:"container-border"},i("calcite-tree",{id:"variable-label"},this._renderHierarchy(this._solutionVariables))))}_renderHierarchy(t){return t.map((t=>t.dependencies&&t.dependencies.length>0?i("calcite-tree-item",{onClick:t=>this._toggleExpand(t)},i("solution-item-icon",{type:t.type}),i("span",{class:"icon-text",title:t.title},t.title),i("calcite-tree",{slot:"children"},this._renderHierarchy(t.dependencies))):i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,i){this.solutionVariableSelected.emit({itemId:t,value:i})}_toggleExpand(t){var i;const e=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.closest("calcite-tree-item");e&&(e.expanded=!e.expanded)}async _getTranslations(){const t=await ct(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{value:["valueWatchHandler"]}}};Wt.style=":host{display:block}.container-border{overflow-y:hidden}.org-var-header{margin-top:1rem;margin-bottom:1rem;margin-left:0px;margin-right:0px}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";export{bt as calcite_shell_panel,ut as calcite_tab,mt as calcite_tab_nav,ft as calcite_tab_title,xt as calcite_tabs,zt as calcite_value_list,_t as calcite_value_list_item,It as json_editor,Lt as solution_item_details,Ht as solution_item_sharing,jt as solution_organization_variables,At as solution_resource_item,St as solution_template_data,Wt as solution_variables}