@esri/solutions-components 0.10.23 → 0.10.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (365) hide show
  1. package/dist/cjs/{calcite-accordion-item.cjs.entry.js → calcite-accordion_2.cjs.entry.js} +83 -1
  2. package/dist/cjs/calcite-alert_5.cjs.entry.js +2 -2
  3. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +6 -6
  4. package/dist/cjs/{calcite-tree_3.cjs.entry.js → calcite-tree_2.cjs.entry.js} +0 -317
  5. package/dist/cjs/card-manager_3.cjs.entry.js +4 -4
  6. package/dist/cjs/{downloadUtils-470f6a27.js → downloadUtils-17f08e5e.js} +235 -160
  7. package/dist/cjs/feature-list.cjs.entry.js +2 -2
  8. package/dist/cjs/{index.es-6387d8fb.js → index.es-2518dd41.js} +36 -47
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
  11. package/dist/cjs/{popupUtils-c38f840d.js → popupUtils-24306e6b.js} +1 -1
  12. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  13. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
  14. package/dist/cjs/solution-item-accordion.cjs.entry.js +233 -0
  15. package/dist/cjs/solution-item-icon.cjs.entry.js +328 -0
  16. package/dist/cjs/solutions-components.cjs.js +1 -1
  17. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  18. package/dist/collection/assets/t9n/solution-item-accordion/resources.json +3 -0
  19. package/dist/collection/assets/t9n/solution-item-accordion/resources_en.json +3 -0
  20. package/dist/collection/collection-manifest.json +1 -0
  21. package/dist/collection/components/layer-table/layer-table.js +3 -3
  22. package/dist/collection/components/solution-item-accordion/solution-item-accordion.css +23 -0
  23. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +287 -0
  24. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  25. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  26. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  27. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  28. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  29. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  30. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  31. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  32. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  33. package/dist/collection/demos/solution-item-accordion.html +345 -0
  34. package/dist/collection/utils/interfaces.ts +11 -0
  35. package/dist/{esm/calcite-accordion-item.entry.js → components/accordion-item.js} +47 -16
  36. package/dist/{esm/calcite-accordion.entry.js → components/accordion.js} +36 -10
  37. package/dist/components/calcite-accordion-item.js +1 -222
  38. package/dist/components/calcite-accordion.js +1 -110
  39. package/dist/components/downloadUtils.js +234 -159
  40. package/dist/components/index.es.js +35 -46
  41. package/dist/components/layer-table2.js +3 -3
  42. package/dist/components/solution-item-accordion.d.ts +11 -0
  43. package/dist/components/solution-item-accordion.js +336 -0
  44. package/dist/components/solution-item-details2.js +1 -1
  45. package/dist/components/solution-item-icon2.js +1 -1
  46. package/dist/components/solution-item-sharing2.js +1 -1
  47. package/dist/components/solution-organization-variables2.js +1 -1
  48. package/dist/components/solution-resource-item2.js +1 -1
  49. package/dist/components/solution-spatial-ref2.js +1 -1
  50. package/dist/components/solution-template-data2.js +1 -1
  51. package/dist/components/solution-variables2.js +1 -1
  52. package/dist/components/spatial-ref.js +1 -1
  53. package/dist/esm/{ExpandToggle-b5147279.js → ExpandToggle-9289b7ca.js} +1 -1
  54. package/dist/esm/{ar-e0e64e78.js → ar-8dded5d5.js} +8 -8
  55. package/dist/esm/{bg-d2d8dbe0.js → bg-c1cdf619.js} +8 -8
  56. package/dist/esm/{bs-d883901d.js → bs-a40506a4.js} +8 -8
  57. package/dist/esm/buffer-tools_3.entry.js +1 -1
  58. package/dist/esm/{ca-064729ad.js → ca-67879a0c.js} +8 -8
  59. package/dist/esm/calcite-accordion_2.entry.js +279 -0
  60. package/dist/esm/calcite-action-bar.entry.js +4 -4
  61. package/dist/esm/calcite-action-group.entry.js +3 -3
  62. package/dist/esm/calcite-action-menu_2.entry.js +3 -3
  63. package/dist/esm/calcite-action-pad_2.entry.js +4 -4
  64. package/dist/esm/calcite-action_2.entry.js +6 -6
  65. package/dist/esm/calcite-alert_5.entry.js +6 -6
  66. package/dist/esm/calcite-avatar.entry.js +1 -1
  67. package/dist/esm/calcite-block-section.entry.js +3 -3
  68. package/dist/esm/calcite-block_5.entry.js +9 -9
  69. package/dist/esm/calcite-button.entry.js +5 -5
  70. package/dist/esm/calcite-card-group.entry.js +1 -1
  71. package/dist/esm/calcite-card.entry.js +3 -3
  72. package/dist/esm/calcite-carousel.entry.js +3 -3
  73. package/dist/esm/calcite-checkbox.entry.js +3 -3
  74. package/dist/esm/calcite-chip-group.entry.js +1 -1
  75. package/dist/esm/calcite-chip_2.entry.js +4 -4
  76. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
  77. package/dist/esm/calcite-color-picker.entry.js +3 -3
  78. package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
  79. package/dist/esm/calcite-combobox_3.entry.js +8 -8
  80. package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
  81. package/dist/esm/calcite-dialog.entry.js +5 -5
  82. package/dist/esm/calcite-dropdown_2.entry.js +3 -3
  83. package/dist/esm/calcite-fab.entry.js +1 -1
  84. package/dist/esm/calcite-filter_5.entry.js +3 -3
  85. package/dist/esm/calcite-graph_2.entry.js +4 -4
  86. package/dist/esm/calcite-icon_2.entry.js +2 -2
  87. package/dist/esm/calcite-inline-editable.entry.js +4 -4
  88. package/dist/esm/calcite-input-number.entry.js +5 -5
  89. package/dist/esm/calcite-input-text.entry.js +5 -5
  90. package/dist/esm/{calcite-input-time-picker-66e7a9f3.js → calcite-input-time-picker-37845feb.js} +56 -56
  91. package/dist/esm/calcite-input-time-picker.entry.js +8 -8
  92. package/dist/esm/calcite-input-time-zone.entry.js +5 -5
  93. package/dist/esm/calcite-input_2.entry.js +5 -5
  94. package/dist/esm/calcite-label.entry.js +2 -2
  95. package/dist/esm/calcite-link.entry.js +1 -1
  96. package/dist/esm/calcite-menu-item.entry.js +3 -3
  97. package/dist/esm/calcite-menu.entry.js +3 -3
  98. package/dist/esm/calcite-meter.entry.js +3 -3
  99. package/dist/esm/calcite-modal_3.entry.js +5 -5
  100. package/dist/esm/calcite-navigation.entry.js +1 -1
  101. package/dist/esm/calcite-notice.entry.js +4 -4
  102. package/dist/esm/calcite-option_2.entry.js +3 -3
  103. package/dist/esm/calcite-pagination.entry.js +3 -3
  104. package/dist/esm/calcite-pick-list-group.entry.js +1 -1
  105. package/dist/esm/calcite-pick-list-item.entry.js +3 -3
  106. package/dist/esm/calcite-pick-list.entry.js +2 -2
  107. package/dist/esm/calcite-radio-button-group.entry.js +1 -1
  108. package/dist/esm/calcite-radio-button.entry.js +3 -3
  109. package/dist/esm/calcite-rating.entry.js +5 -5
  110. package/dist/esm/calcite-scrim.entry.js +3 -3
  111. package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
  112. package/dist/esm/calcite-sheet.entry.js +3 -3
  113. package/dist/esm/calcite-shell-center-row.entry.js +1 -1
  114. package/dist/esm/calcite-shell-panel_14.entry.js +10 -10
  115. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  116. package/dist/esm/calcite-stepper-item.entry.js +3 -3
  117. package/dist/esm/calcite-stepper.entry.js +3 -3
  118. package/dist/esm/calcite-switch.entry.js +3 -3
  119. package/dist/esm/calcite-table-cell_2.entry.js +3 -3
  120. package/dist/esm/calcite-table-row.entry.js +1 -1
  121. package/dist/esm/calcite-table.entry.js +3 -3
  122. package/dist/esm/calcite-text-area.entry.js +5 -5
  123. package/dist/esm/calcite-tile-group.entry.js +1 -1
  124. package/dist/esm/calcite-tile.entry.js +1 -1
  125. package/dist/esm/calcite-time-picker.entry.js +4 -4
  126. package/dist/esm/calcite-tip-manager.entry.js +3 -3
  127. package/dist/esm/calcite-tip.entry.js +3 -3
  128. package/dist/esm/calcite-tooltip.entry.js +3 -3
  129. package/dist/esm/{calcite-tree_3.entry.js → calcite-tree_2.entry.js} +3 -319
  130. package/dist/esm/card-manager_3.entry.js +4 -4
  131. package/dist/esm/{cs-3751e560.js → cs-b01aecfc.js} +8 -8
  132. package/dist/esm/{da-227f8ad5.js → da-87ac64be.js} +8 -8
  133. package/dist/esm/{date-87a67cb4.js → date-7a1345c1.js} +1 -1
  134. package/dist/esm/{de-a5d2b25b.js → de-0eb6c065.js} +8 -8
  135. package/dist/esm/{de-at-66232b80.js → de-at-2db1a5d5.js} +8 -8
  136. package/dist/esm/{de-ch-1264ed4c.js → de-ch-063c0a6b.js} +8 -8
  137. package/dist/esm/{dom-63d2d41c.js → dom-451ed293.js} +1 -1
  138. package/dist/esm/{downloadUtils-d1f791c5.js → downloadUtils-4a34c86a.js} +235 -160
  139. package/dist/esm/{el-f5bf7ca3.js → el-eb29e645.js} +8 -8
  140. package/dist/esm/{en-au-2ac8f62e.js → en-au-00f884ad.js} +8 -8
  141. package/dist/esm/{en-ca-a1602b49.js → en-ca-1e7456d7.js} +8 -8
  142. package/dist/esm/{en-gb-28354b2e.js → en-gb-60a33692.js} +8 -8
  143. package/dist/esm/{es-feb7aad2.js → es-74f8b164.js} +8 -8
  144. package/dist/esm/{es-mx-5d64f899.js → es-mx-2bfa704a.js} +8 -8
  145. package/dist/esm/{et-173d2f49.js → et-b1a2d978.js} +8 -8
  146. package/dist/esm/feature-list.entry.js +2 -2
  147. package/dist/esm/{fi-ff9bb719.js → fi-70441d5b.js} +8 -8
  148. package/dist/esm/{floating-ui-c7ae81d9.js → floating-ui-4b1f5138.js} +1 -1
  149. package/dist/esm/{focusTrapComponent-833b1234.js → focusTrapComponent-b9709e71.js} +1 -1
  150. package/dist/esm/{form-08e1bcb7.js → form-fa4c471b.js} +1 -1
  151. package/dist/esm/{fr-e3af6835.js → fr-cea05ec9.js} +8 -8
  152. package/dist/esm/{fr-ch-491f1abe.js → fr-ch-8faa2fcf.js} +8 -8
  153. package/dist/esm/{he-47aa8dde.js → he-058ece46.js} +8 -8
  154. package/dist/esm/{hi-1700df3e.js → hi-163a268e.js} +8 -8
  155. package/dist/esm/{hr-68b828f5.js → hr-2b69b2ad.js} +8 -8
  156. package/dist/esm/{hu-df6a8f29.js → hu-e46e0cb6.js} +8 -8
  157. package/dist/esm/{id-8091582d.js → id-ebccdbbb.js} +8 -8
  158. package/dist/esm/{index.es-decad494.js → index.es-5f44061b.js} +36 -47
  159. package/dist/esm/{it-1f5e149d.js → it-813be6d0.js} +8 -8
  160. package/dist/esm/{it-ch-bf7fcac6.js → it-ch-bc95119e.js} +8 -8
  161. package/dist/esm/{ja-a5117166.js → ja-3488d28c.js} +8 -8
  162. package/dist/esm/{ko-9d7a9e79.js → ko-54faa268.js} +8 -8
  163. package/dist/esm/{label-4c4e06d6.js → label-414f1003.js} +1 -1
  164. package/dist/esm/loader.js +1 -1
  165. package/dist/esm/{locale-4441c976.js → locale-337dc231.js} +1 -1
  166. package/dist/esm/{lt-2e1c53de.js → lt-8c773940.js} +8 -8
  167. package/dist/esm/{lv-ca1ba866.js → lv-4882a326.js} +8 -8
  168. package/dist/esm/map-select-tools_3.entry.js +1 -1
  169. package/dist/esm/{mk-421d0d41.js → mk-d045a827.js} +8 -8
  170. package/dist/esm/{nb-5b103e32.js → nb-529fd6f8.js} +8 -8
  171. package/dist/esm/{nl-eac33461.js → nl-ebd398ac.js} +8 -8
  172. package/dist/esm/{openCloseComponent-c8c8645b.js → openCloseComponent-80c6ee4b.js} +1 -1
  173. package/dist/esm/{pl-03531ccb.js → pl-4cd334ed.js} +8 -8
  174. package/dist/esm/{popupUtils-4e0a103f.js → popupUtils-3ccb86bd.js} +1 -1
  175. package/dist/esm/{pt-b5d8bffc.js → pt-be0c86a5.js} +8 -8
  176. package/dist/esm/{pt-br-dee45728.js → pt-br-29226fc3.js} +8 -8
  177. package/dist/esm/public-notification.entry.js +1 -1
  178. package/dist/esm/{ro-df6cb584.js → ro-6555f5dd.js} +8 -8
  179. package/dist/esm/{ru-e7c02faa.js → ru-67b5c59c.js} +8 -8
  180. package/dist/esm/{shared-list-render-cadae2eb.js → shared-list-render-c8da5fde.js} +1 -1
  181. package/dist/esm/{sk-cae387d2.js → sk-81f19081.js} +8 -8
  182. package/dist/esm/{sl-2892ad87.js → sl-4b892d99.js} +8 -8
  183. package/dist/esm/solution-contents_3.entry.js +1 -1
  184. package/dist/esm/solution-item-accordion.entry.js +229 -0
  185. package/dist/esm/solution-item-icon.entry.js +324 -0
  186. package/dist/esm/solutions-components.js +1 -1
  187. package/dist/esm/spatial-ref.entry.js +1 -1
  188. package/dist/esm/{sr-11e6839f.js → sr-6cb6f797.js} +8 -8
  189. package/dist/esm/{sv-fd5c6ca5.js → sv-aacab364.js} +8 -8
  190. package/dist/esm/{t9n-b7ea1a61.js → t9n-7d4462c0.js} +1 -1
  191. package/dist/esm/{th-170cf6b1.js → th-6b423678.js} +8 -8
  192. package/dist/esm/{time-a7f1020b.js → time-b0bba3f9.js} +1 -1
  193. package/dist/esm/{tr-1d6ca382.js → tr-0e2b854e.js} +8 -8
  194. package/dist/esm/{uk-35eec84e.js → uk-af0a30cc.js} +8 -8
  195. package/dist/esm/{utils-62514064.js → utils-37bc2853.js} +1 -1
  196. package/dist/esm/{vi-2713ee26.js → vi-62071c6f.js} +8 -8
  197. package/dist/esm/{zh-cn-ed066014.js → zh-cn-8f53db2f.js} +8 -8
  198. package/dist/esm/{zh-hk-a118dced.js → zh-hk-a8c68b9c.js} +8 -8
  199. package/dist/esm/{zh-tw-c9bbf220.js → zh-tw-3006115d.js} +8 -8
  200. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources.json +3 -0
  201. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_en.json +3 -0
  202. package/dist/solutions-components/demos/solution-item-accordion.html +345 -0
  203. package/dist/solutions-components/{p-02ea30d1.entry.js → p-00cfce5b.entry.js} +1 -1
  204. package/dist/solutions-components/{p-ac11cf8f.entry.js → p-01510268.entry.js} +1 -1
  205. package/dist/solutions-components/{p-cd5a9034.entry.js → p-030e5077.entry.js} +1 -1
  206. package/dist/solutions-components/{p-de3ee7a6.entry.js → p-075a3c9d.entry.js} +1 -1
  207. package/dist/solutions-components/{p-267ef1b8.entry.js → p-0bd7752a.entry.js} +1 -1
  208. package/dist/solutions-components/{p-8c6a301f.entry.js → p-109cabd8.entry.js} +2 -2
  209. package/dist/solutions-components/{p-87f928a5.entry.js → p-116927af.entry.js} +3 -3
  210. package/dist/solutions-components/{p-8da5aeea.entry.js → p-118e1989.entry.js} +1 -1
  211. package/dist/solutions-components/p-16261018.js +11 -0
  212. package/dist/solutions-components/{p-c5facecd.entry.js → p-16d721ef.entry.js} +1 -1
  213. package/dist/solutions-components/{p-f7bc99fb.entry.js → p-1794a1aa.entry.js} +3 -3
  214. package/dist/solutions-components/{p-cf9e6515.entry.js → p-19697807.entry.js} +2 -2
  215. package/dist/solutions-components/{p-25b5ffea.js → p-1a7c4e9a.js} +1 -1
  216. package/dist/solutions-components/{p-5067d77e.entry.js → p-1c5f17cb.entry.js} +1 -1
  217. package/dist/solutions-components/p-1cfc581f.js +11 -0
  218. package/dist/solutions-components/{p-d784f756.entry.js → p-20393dcf.entry.js} +1 -1
  219. package/dist/solutions-components/{p-4e7aa926.js → p-203b4081.js} +1 -1
  220. package/dist/solutions-components/p-228c3bf3.entry.js +17 -0
  221. package/dist/solutions-components/{p-e4ef6f49.js → p-24192cfe.js} +1 -1
  222. package/dist/solutions-components/{p-d75ef009.entry.js → p-25ee25ea.entry.js} +2 -2
  223. package/dist/solutions-components/{p-7b2ef872.entry.js → p-2756e4ac.entry.js} +1 -1
  224. package/dist/solutions-components/{p-691cb5f4.js → p-290dee0b.js} +2 -2
  225. package/dist/solutions-components/{p-aa68a36e.entry.js → p-2ace1fe7.entry.js} +2 -2
  226. package/dist/solutions-components/{p-8bb2c169.js → p-2afb3a2b.js} +1 -1
  227. package/dist/solutions-components/{p-95c3b305.entry.js → p-2b212cd0.entry.js} +1 -1
  228. package/dist/solutions-components/p-2c00221b.js +6 -0
  229. package/dist/solutions-components/{p-3c1ecf85.entry.js → p-2fafe489.entry.js} +1 -1
  230. package/dist/solutions-components/{p-9560a1fd.entry.js → p-30b555dc.entry.js} +1 -1
  231. package/dist/solutions-components/{p-347d9ce0.js → p-328fbcb5.js} +1 -1
  232. package/dist/solutions-components/{p-aa341d46.entry.js → p-32cf5a71.entry.js} +1 -1
  233. package/dist/solutions-components/{p-712873f0.js → p-33fe9a28.js} +1 -1
  234. package/dist/solutions-components/{p-80f49acc.js → p-35f33a32.js} +1 -1
  235. package/dist/solutions-components/p-374d0fdc.entry.js +6 -0
  236. package/dist/solutions-components/{p-fb3e0eae.js → p-3955461a.js} +1 -1
  237. package/dist/solutions-components/p-39e9ae5c.entry.js +6 -0
  238. package/dist/solutions-components/{p-54a9017c.entry.js → p-3f6d5f14.entry.js} +1 -1
  239. package/dist/solutions-components/{p-1a06bf01.js → p-3fb350ea.js} +1 -1
  240. package/dist/solutions-components/{p-a79f4c52.entry.js → p-41744516.entry.js} +1 -1
  241. package/dist/solutions-components/{p-c40b0ec5.js → p-4182a628.js} +3 -3
  242. package/dist/solutions-components/{p-304cef31.js → p-42552409.js} +3 -3
  243. package/dist/solutions-components/{p-0e851a4b.js → p-4336e44a.js} +1 -1
  244. package/dist/solutions-components/{p-c25e8c35.js → p-441f1992.js} +1 -1
  245. package/dist/solutions-components/{p-fa68f43a.entry.js → p-451b483d.entry.js} +1 -1
  246. package/dist/solutions-components/{p-9bc84681.js → p-472be784.js} +1 -1
  247. package/dist/solutions-components/p-48c58b28.js +6 -0
  248. package/dist/solutions-components/{p-ca6055a3.js → p-4993c7b1.js} +1 -1
  249. package/dist/solutions-components/{p-b8ce880d.js → p-4a35785b.js} +1 -1
  250. package/dist/solutions-components/{p-de8121a4.js → p-4d97016e.js} +1 -1
  251. package/dist/solutions-components/{p-990d8b4b.js → p-4f4f00a9.js} +1 -1
  252. package/dist/solutions-components/{p-b3e8da19.entry.js → p-50203a2d.entry.js} +1 -1
  253. package/dist/solutions-components/{p-19b466d0.js → p-546a2802.js} +1 -1
  254. package/dist/solutions-components/{p-66b01781.js → p-54fa7a94.js} +2 -2
  255. package/dist/solutions-components/{p-04294b8e.js → p-57b673e2.js} +1 -1
  256. package/dist/solutions-components/{p-c163b67f.js → p-593a6f17.js} +1 -1
  257. package/dist/solutions-components/{p-5a3cab12.entry.js → p-5c0d42e9.entry.js} +1 -1
  258. package/dist/solutions-components/{p-9fa7a7ad.entry.js → p-5cef36d6.entry.js} +1 -1
  259. package/dist/solutions-components/{p-2aa44a02.entry.js → p-5d4efa42.entry.js} +2 -2
  260. package/dist/solutions-components/{p-7fce703f.entry.js → p-5d8a5e53.entry.js} +1 -1
  261. package/dist/solutions-components/{p-c7046172.entry.js → p-5fe92f6e.entry.js} +2 -2
  262. package/dist/solutions-components/{p-da80cfbc.entry.js → p-6384a9a5.entry.js} +1 -1
  263. package/dist/solutions-components/{p-b8f33145.js → p-6518727d.js} +1 -1
  264. package/dist/solutions-components/{p-52f19286.entry.js → p-67392838.entry.js} +1 -1
  265. package/dist/solutions-components/{p-54b7e680.js → p-6e0b76ce.js} +1 -1
  266. package/dist/solutions-components/{p-1017609e.js → p-6e3f1d71.js} +2 -2
  267. package/dist/solutions-components/{p-5f7c1e49.js → p-6f39a13f.js} +1 -1
  268. package/dist/solutions-components/{p-0b6e5486.js → p-71c0a413.js} +1 -1
  269. package/dist/solutions-components/{p-fedbf657.entry.js → p-728ec094.entry.js} +1 -1
  270. package/dist/solutions-components/{p-b8b78283.entry.js → p-72d0eda0.entry.js} +1 -1
  271. package/dist/solutions-components/p-743ad3a7.entry.js +6 -0
  272. package/dist/solutions-components/{p-732bb88c.entry.js → p-78c438c0.entry.js} +1 -1
  273. package/dist/solutions-components/{p-1ef6a1c2.entry.js → p-7b63f249.entry.js} +1 -1
  274. package/dist/solutions-components/{p-91b7a7dc.entry.js → p-7f090468.entry.js} +1 -1
  275. package/dist/solutions-components/{p-770a0e12.js → p-7f31be6a.js} +1 -1
  276. package/dist/solutions-components/{p-cb07016a.entry.js → p-8419b5a1.entry.js} +2 -2
  277. package/dist/solutions-components/{p-dfeb6a2e.entry.js → p-86ca6cfe.entry.js} +1 -1
  278. package/dist/solutions-components/{p-66afdfdd.entry.js → p-8846430d.entry.js} +3 -3
  279. package/dist/solutions-components/{p-508b2b7b.js → p-89ddc916.js} +1 -1
  280. package/dist/solutions-components/{p-9db30b19.entry.js → p-89f14b8a.entry.js} +1 -1
  281. package/dist/solutions-components/{p-23dd68de.entry.js → p-8ae73529.entry.js} +2 -2
  282. package/dist/solutions-components/{p-64bf4d2e.entry.js → p-8badcaf5.entry.js} +1 -1
  283. package/dist/solutions-components/{p-eb2859d6.js → p-8eacc640.js} +1 -1
  284. package/dist/solutions-components/{p-798b9928.entry.js → p-8f840208.entry.js} +1 -1
  285. package/dist/solutions-components/{p-c7eaade6.entry.js → p-9232245b.entry.js} +1 -1
  286. package/dist/solutions-components/{p-1490c752.js → p-926664d9.js} +1 -1
  287. package/dist/solutions-components/{p-919e9de7.entry.js → p-92de7cd3.entry.js} +1 -1
  288. package/dist/solutions-components/{p-9c5f4347.js → p-96919110.js} +1 -1
  289. package/dist/solutions-components/{p-222e0445.entry.js → p-981afe9e.entry.js} +1 -1
  290. package/dist/solutions-components/{p-550da58b.js → p-9901e971.js} +1 -1
  291. package/dist/solutions-components/{p-986ff43b.entry.js → p-9957c7b8.entry.js} +1 -1
  292. package/dist/solutions-components/{p-6b0fa1eb.entry.js → p-9c6f2672.entry.js} +1 -1
  293. package/dist/solutions-components/{p-bb0f549a.js → p-a0ef9cee.js} +1 -1
  294. package/dist/solutions-components/{p-d47abf9b.entry.js → p-a16449b2.entry.js} +1 -1
  295. package/dist/solutions-components/{p-08d1cc1f.js → p-a2d4c97e.js} +2 -2
  296. package/dist/solutions-components/{p-bae65813.entry.js → p-a68f4775.entry.js} +1 -1
  297. package/dist/solutions-components/{p-79f78acc.entry.js → p-a8d4a522.entry.js} +1 -1
  298. package/dist/solutions-components/{p-6c080ac7.entry.js → p-a9f65057.entry.js} +1 -1
  299. package/dist/solutions-components/{p-40175313.entry.js → p-ab8f4820.entry.js} +2 -2
  300. package/dist/solutions-components/{p-f6f2018a.js → p-abc30e04.js} +1 -1
  301. package/dist/solutions-components/{p-c0d25be5.entry.js → p-ac7868a6.entry.js} +1 -1
  302. package/dist/solutions-components/{p-9524e5e4.js → p-acf135cc.js} +1 -1
  303. package/dist/solutions-components/{p-b96233e3.entry.js → p-af3e49d8.entry.js} +1 -1
  304. package/dist/solutions-components/p-af8a7aff.entry.js +6 -0
  305. package/dist/solutions-components/{p-924ec704.js → p-b3b042df.js} +1 -1
  306. package/dist/solutions-components/{p-8fb06a85.entry.js → p-b6b4c707.entry.js} +1 -1
  307. package/dist/solutions-components/{p-4c179300.entry.js → p-b7a49673.entry.js} +1 -1
  308. package/dist/solutions-components/{p-40f5df15.entry.js → p-b955a19b.entry.js} +1 -1
  309. package/dist/solutions-components/{p-c4953b5e.entry.js → p-b9eefee6.entry.js} +2 -2
  310. package/dist/solutions-components/p-bb9492ed.js +6 -0
  311. package/dist/solutions-components/{p-8537518d.entry.js → p-bc86c87d.entry.js} +2 -2
  312. package/dist/solutions-components/{p-8614d1a0.entry.js → p-bd3c130b.entry.js} +1 -1
  313. package/dist/solutions-components/{p-e74bc7b3.js → p-bdc425fc.js} +1 -1
  314. package/dist/solutions-components/{p-92ba99ff.js → p-beba6703.js} +1 -1
  315. package/dist/solutions-components/{p-cd6eee11.js → p-c1242d4b.js} +1 -1
  316. package/dist/solutions-components/{p-a4e35c2d.entry.js → p-c26ac7d9.entry.js} +1 -1
  317. package/dist/solutions-components/{p-b76ed1c7.entry.js → p-c3782a7e.entry.js} +2 -2
  318. package/dist/solutions-components/{p-936037e4.js → p-c5520bba.js} +1 -1
  319. package/dist/solutions-components/{p-29a09798.js → p-c58ec2d0.js} +3 -3
  320. package/dist/solutions-components/{p-53b5a39e.js → p-c5d26e3a.js} +1 -1
  321. package/dist/solutions-components/{p-a37d1b17.entry.js → p-c8325ead.entry.js} +1 -1
  322. package/dist/solutions-components/{p-94ae78d6.js → p-cba777d2.js} +1 -1
  323. package/dist/solutions-components/{p-01dae909.js → p-d1371897.js} +1 -1
  324. package/dist/solutions-components/{p-d1cc620f.entry.js → p-d6c50190.entry.js} +1 -1
  325. package/dist/solutions-components/{p-fcd33b4f.js → p-d726e895.js} +1 -1
  326. package/dist/solutions-components/{p-270ead49.js → p-d8a54947.js} +1 -1
  327. package/dist/solutions-components/{p-a85fd786.entry.js → p-da6e25cb.entry.js} +1 -1
  328. package/dist/solutions-components/{p-ee9b7fab.js → p-db2c82ad.js} +1 -1
  329. package/dist/solutions-components/{p-e0ee0556.entry.js → p-dbcfdc6d.entry.js} +1 -1
  330. package/dist/solutions-components/{p-67c34d05.entry.js → p-ddc97e93.entry.js} +1 -1
  331. package/dist/solutions-components/{p-74fbad1c.js → p-dec62e5d.js} +30 -31
  332. package/dist/solutions-components/{p-245c35ce.js → p-e013e797.js} +1 -1
  333. package/dist/solutions-components/{p-0d6b3f44.js → p-e3bb02cc.js} +1 -1
  334. package/dist/solutions-components/{p-5440c8dd.js → p-e5ec69a4.js} +1 -1
  335. package/dist/solutions-components/p-e8aa44e2.entry.js +6 -0
  336. package/dist/solutions-components/{p-49bbe45e.js → p-ea119eee.js} +1 -1
  337. package/dist/solutions-components/{p-062f4457.js → p-ec59efb8.js} +1 -1
  338. package/dist/solutions-components/{p-bc6cf10f.entry.js → p-ef360459.entry.js} +1 -1
  339. package/dist/solutions-components/{p-0dc73313.js → p-f14d11f1.js} +1 -1
  340. package/dist/solutions-components/{p-6319ca20.js → p-f4d6771a.js} +1 -1
  341. package/dist/solutions-components/{p-5f705984.js → p-f4e30ab2.js} +1 -1
  342. package/dist/solutions-components/{p-7ae41cd8.js → p-f7680693.js} +1 -1
  343. package/dist/solutions-components/{p-9277a339.entry.js → p-faf7740b.entry.js} +1 -1
  344. package/dist/solutions-components/{p-707ee1d1.entry.js → p-fb95ec69.entry.js} +2 -2
  345. package/dist/solutions-components/{p-2264e8d5.entry.js → p-fbf86656.entry.js} +1 -1
  346. package/dist/solutions-components/{p-7c854814.js → p-fd730974.js} +2 -2
  347. package/dist/solutions-components/{p-4fe5e9c3.entry.js → p-ff96d7ee.entry.js} +3 -3
  348. package/dist/solutions-components/solutions-components.esm.js +1 -1
  349. package/dist/solutions-components/utils/interfaces.ts +11 -0
  350. package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +117 -0
  351. package/dist/types/components.d.ts +23 -2
  352. package/dist/types/preact.d.ts +2 -0
  353. package/dist/types/utils/interfaces.d.ts +10 -0
  354. package/package.json +6 -6
  355. package/dist/cjs/calcite-accordion.cjs.entry.js +0 -95
  356. package/dist/solutions-components/p-2007eaa4.entry.js +0 -6
  357. package/dist/solutions-components/p-23ce9afa.entry.js +0 -11
  358. package/dist/solutions-components/p-2d17790c.js +0 -6
  359. package/dist/solutions-components/p-2e06ec97.js +0 -6
  360. package/dist/solutions-components/p-33db098c.js +0 -6
  361. package/dist/solutions-components/p-3a47fde6.entry.js +0 -11
  362. package/dist/solutions-components/p-79f5a8be.js +0 -11
  363. package/dist/solutions-components/p-a5e64f6b.entry.js +0 -6
  364. package/dist/solutions-components/p-d36878db.js +0 -11
  365. package/dist/solutions-components/p-fd79adec.entry.js +0 -6
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as e,h as i,f as a,g as o,H as s,d as n,F as l}from"./p-6eb37ed2.js";import{c,d as r}from"./p-f8d23498.js";import{a as d,i as h,h as b,s as p,y as u,d as f,B as m,t as v,C as g,e as w,g as y}from"./p-c25e8c35.js";import{c as x,d as k}from"./p-304cef31.js";import{c as z}from"./p-d9e930c8.js";import{c as C,s as _,d as I,u as T}from"./p-1017609e.js";import{C as L}from"./p-8bfa18b7.js";import{g as H}from"./p-aaa56cbf.js";import{c as S,a as j,b as W}from"./p-e3196917.js";import{c as D}from"./p-1c249530.js";import{c as A,d as E,I as F,u as M}from"./p-1ce2608d.js";import{g as R}from"./p-27d462c0.js";import{i as $}from"./p-4b9b7778.js";import{s as N,a as B,c as O}from"./p-3e828614.js";import{q as P,m as V,d as U,a as J,s as q,h as G,b as K,g as X,k as Y,t as Q,i as Z,c as tt,f as et,e as it,n as at,r as ot,j as st,l as nt,o as lt,p as ct,L as rt}from"./p-270ead49.js";import{d as dt,c as ht}from"./p-0a165419.js";import{l as bt}from"./p-b5b66530.js";import{C as pt,S as ut}from"./p-a471ceb6.js";import{I as ft}from"./p-5de67b86.js";import{g as mt}from"./p-2058b5d9.js";import{s as vt}from"./p-36e59391.js";import{d as gt}from"./p-80cb7c73.js";import{E as wt}from"./p-d0d020a5.js";import"./p-7530a02f.js";import"./p-64a34d92.js";import"./p-8bce991a.js";import"./p-38a87c63.js";import"./p-c8d3207e.js";import"./p-0ef9d36b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-720a12c0.js";import"./p-9bb44f57.js";
6
+ import{r as t,c as e,h as i,f as a,g as o,H as s,d as n,F as l}from"./p-6eb37ed2.js";import{c,d as r}from"./p-f8d23498.js";import{h as d,i as h,e as b,s as p,y as u,b as f,B as m,t as v,C as g,d as w,g as y}from"./p-441f1992.js";import{c as x,d as k}from"./p-42552409.js";import{c as z}from"./p-d9e930c8.js";import{c as C,s as _,d as I,u as T}from"./p-6e3f1d71.js";import{C as L}from"./p-8bfa18b7.js";import{g as H}from"./p-aaa56cbf.js";import{c as S,a as j,b as W}from"./p-e3196917.js";import{c as D}from"./p-1c249530.js";import{c as A,d as E,I as F,u as M}from"./p-1ce2608d.js";import{g as R}from"./p-27d462c0.js";import{i as $}from"./p-4b9b7778.js";import{s as N,a as B,c as O}from"./p-3e828614.js";import{q as P,m as V,d as U,a as J,s as q,h as G,b as K,g as X,k as Y,t as Q,i as Z,c as tt,f as et,e as it,n as at,r as ot,j as st,l as nt,o as lt,p as ct,L as rt}from"./p-d8a54947.js";import{d as dt,c as ht}from"./p-0a165419.js";import{l as bt}from"./p-b5b66530.js";import{C as pt,S as ut}from"./p-a471ceb6.js";import{I as ft}from"./p-5de67b86.js";import{g as mt}from"./p-2058b5d9.js";import{s as vt}from"./p-36e59391.js";import{d as gt}from"./p-80cb7c73.js";import{E as wt}from"./p-d0d020a5.js";import"./p-7530a02f.js";import"./p-64a34d92.js";import"./p-8bce991a.js";import"./p-38a87c63.js";import"./p-c8d3207e.js";import"./p-0ef9d36b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-720a12c0.js";import"./p-9bb44f57.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
@@ -44,4 +44,4 @@ function Kt(t,e,i){const{items:a,messages:o}=i,s=a.length,n=P(i,t)+1;return func
44
44
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
45
45
  * v2.12.2
46
46
  */
47
- const Qt="actions-end",Zt="actions-start";bt.deprecated("component",{name:"value-list-item",removalVersion:3,suggested:"list-item"});const te=class{constructor(i){t(this,i),this.calciteListItemChange=e(this,"calciteListItemChange",6),this.calciteListItemRemove=e(this,"calciteListItemRemove",7),this.calciteValueListItemDragHandleBlur=e(this,"calciteValueListItemDragHandleBlur",6),this.pickListItem=null,this.guid=`calcite-value-list-item-${H()}`,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(){c(this),A(this)}disconnectedCallback(){r(this),E(this)}componentWillLoad(){N(this)}componentDidLoad(){B(this)}componentDidRender(){M(this)}async toggleSelected(t){this.pickListItem.toggleSelected(t)}async setFocus(){return await O(this),this.pickListItem?.setFocus()}calciteListItemChangeHandler(t){t.detail.item=this.el}renderActionsEnd(){const{el:t}=this;return y(t,Qt)?i("slot",{name:Qt,slot:ut.actionsEnd}):null}renderActionsStart(){const{el:t}=this;return y(t,Zt)?i("slot",{name:Zt,slot:ut.actionsStart}):null}renderHandle(){const{icon:t,iconFlipRtl:e}=this;if(t===ft.grip)return i("span",{class:{[pt.handle]:!0,[pt.handleActivated]:this.handleActivated},"data-js-handle":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>this.handleEl=t,role:"button",tabindex:"0"},i("calcite-icon",{flipRtl:e,icon:"drag",scale:"s"}))}render(){return i(s,{key:"5800bb42bb126d69868f664845be9d912cc16a1e",id:this.el.id||this.guid},i(F,{key:"3fd26470647b3ec37edaf80d83d8b74b4a0dbcb0",disabled:this.disabled},this.renderHandle(),i("calcite-pick-list-item",{key:"772821bab106c95accaa215e05164371760f2ac0",description:this.description,deselectDisabled:this.deselectDisabled,disabled:this.disabled,label:this.label,metadata:this.metadata,nonInteractive:this.nonInteractive,onCalciteListItemChange:this.handleSelectChange,ref:this.getPickListRef,removable:this.removable,selected:this.selected,value:this.value},this.renderActionsStart(),this.renderActionsEnd())))}get el(){return o(this)}};te.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-ui-focus-color, 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}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}";const ee=class{constructor(e){t(this,e),this.hasChanges=!1,this.hasErrors=!1,this.instanceid="",this.value=""}get el(){return o(this)}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 e=monaco.editor.setModelMarkers,i=this;monaco.editor.setModelMarkers=function(t,a,o){t.id===i._currentModel.id&&(i._flagEditorHasErrors(o.length>0),i.hasErrors||(i._flagEditorHasChanges(i._currentModel?.canUndo()),i._currentModel?.canUndo()&&i._flagEditorContentChanged()),document.getElementById(`${i.instanceid}-errorFlag`).style.visibility=i.hasErrors?"visible":"hidden"),e.call(monaco.editor,t,a,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(s,{key:"f7bd89c09a1da47faac69a2046e17f116d81f900"},i("div",{key:"ecb97ba7d6be7490e5e62eb32c821acc3e4d647f",id:`${this.instanceid}-editor-container`,class:"editor-container padding-right"},i("div",{key:"8e41d06868b3d6814b71d06899a860444cf22f5f",class:"editor-controls"},i("div",{key:"72e466cd4960538d2b12da8d7b19ff52587af282",class:"editor-buttons"},i("calcite-icon",{key:"ec927121edd4ad9873f39c4382bec58ec70f4fe0",id:`${this.instanceid}-errorFlag`,icon:"exclamation-mark-triangle",title:this._translations.errorFlag,scale:"s",class:"edit-error-flag"}),i("calcite-button",{key:"e58f934f12ffb97b658b79bd6f43b488bfe48be1",id:`${this.instanceid}-undo`,color:"blue",appearance:"solid",title:this._translations.undo,onClick:()=>this._undo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"39843757e60fe92ba3379fe72cf9696c082f83f7",icon:"undo",scale:"s"})),i("calcite-button",{key:"d0b6147354e31152615f148fba1e9780d7d60d60",id:`${this.instanceid}-redo`,color:"blue",appearance:"solid",title:this._translations.redo,onClick:()=>this._redo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"484b599a9c38c7e87a822c3b87934648ea47f440",icon:"redo",scale:"s"})),i("calcite-button",{key:"5d984fe49873a751c0a5da22de35261566e2c648",id:`${this.instanceid}-diff`,color:"blue",appearance:"solid",title:this._translations.diff,onClick:()=>this._toggleEditor(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"c6089f49f33196f3edd7ef009b1367b7978e0469",icon:"compare",scale:"s"})),i("calcite-button",{key:"e8d4923b89329a19eb4b0426c9a8645327be7558",id:`${this.instanceid}-search`,appearance:"outline",color:"blue",title:this._translations.search,onClick:()=>this._search(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"0033b33183f88b5122dda9afa5f7095072c7beaf",icon:"search",scale:"s"})),i("calcite-button",{key:"fdb722e4e9046eb31ca62352a841097bd60f9989",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",{key:"c1f8cda4d8fb79b66e1a8b91286e8952bd6afaaa",icon:"reset",scale:"s"})))),i("div",{key:"2111d6a3f15a3df17cdc33ae49de36f51d9db37b",class:"edit-parent"},i("div",{key:"9a7b4cbf25dff972a44ec6332ac010adb511251d",id:`${this.instanceid}-container`,class:"json-edit-container"}),i("div",{key:"9ccd5646f1df550e5ff2c35bb5a9bf3e181117fa",id:`${this.instanceid}-diff-container`,class:"json-edit-container display-none"}))))}_cancelEditsBtnHandler;_contentChanged;_currentModel;_diffEditor;_editor;_loaded=!1;_searchBtnHandler;_translations;_useDiffEditor=!1;_valueObserver;async getEditorContents(){return new Promise(((t,e)=>{try{t(this._currentModel.getValue())}catch(t){e(t)}}))}async prepareForDeletion(){this._searchBtnHandler?.removeEventListener("click",this._search),this._cancelEditsBtnHandler?.removeEventListener("click",this._reset),this._valueObserver?.disconnect(),this._contentChanged?.dispose(),this._editor?.dispose()}async replaceCurrentSelection(t){const e=this._editor.getSelection();this._editor.executeEdits("",[{range:e,text:t}])}async reset(){return new Promise(((t,e)=>{try{this._reset(),t({success:!0})}catch(t){e(t)}}))}_disableButton(t){document.getElementById(t)?.setAttribute("disabled","")}_enableButton(t){document.getElementById(t)?.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 mt(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(){this._currentModel?.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`),e=document.getElementById(`${this.instanceid}-container`);this._useDiffEditor?(this._setDiffModel(),t.classList.remove("display-none"),e.classList.add("display-none")):(t.classList.add("display-none"),e.classList.remove("display-none"))}_toggleUndoRedo(){this._currentModel?.canUndo()?this._enableButton(`${this.instanceid}-undo`):this._disableButton(`${this.instanceid}-undo`),this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-redo`):this._disableButton(`${this.instanceid}-redo`),this._currentModel?.canUndo()||this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-reset`):this._disableButton(`${this.instanceid}-reset`)}_undo(){this._currentModel?.canUndo()&&(this._currentModel.undo(),this._toggleUndoRedo())}static get assetsDirs(){return["assets"]}};ee.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 ie=class{constructor(e){t(this,e),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}get el(){return o(this)}async componentWillLoad(){return this._getTranslations()}async componentWillRender(){return this.itemEdit=vt.getItemInfo(this.itemId),this.itemEdit&&(this.itemDetails=this.itemEdit.item,this.itemType=this.itemDetails.type),Promise.resolve()}render(){return i(s,{key:"66924107ce947a376028ae9cedde446311f131bf"},i("div",{key:"8cb3221e632b06a070455014637534c35a1f8b09",class:"parent-container"},i("div",{key:"104f2c5e01ac4af2a238c001fa890902de4354e3",class:"inputBottomSeparation"},i("calcite-input",{key:"9735e02ba2487f40d4c1f95047e9d33299562be4",id:"item-title",value:this.itemDetails.title})),i("div",{key:"ab8a525e9fef7904fb547b4b2ef76ce716a0fd8c",class:"inputBottomSeparation"},i("input",{key:"d8e98a227f7f77921f3e6eefd49ff650e72c0c8c",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",{key:"5465e97b62201bd47cc75a44a36bce007419b22f",class:"font-size--3 btn-link inline-block trailer-quarter",onClick:()=>this._getThumbnail()},i("svg",{key:"3bfa09cf4808b3a13dcd552b5bfdc6e747a33b67",class:"icon-inline icon-inline--on-left",height:"16",viewBox:"0 0 16 16",width:"16"},i("path",{key:"28eb743b0ec445dbe6f7a1bafa38bd00e4d13c43",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",{key:"187f3292746d58cc8f46e5d422923424a29c3a7a",class:"flex"},i("div",{key:"5b3ba4347bcbb2ba7f86404c5ea5634831dd916a",class:"img-container",ref:t=>this.thumbnailContainer=t},i("img",{key:"87ca825056fdb5f07e2641748c2faa284381bcf4",class:"scale-down",height:"133",id:"item-thumbnail",ref:t=>this.thumbnail=t,width:"200"})),i("div",{key:"6d343a236607c72a51b22b0b43e0e29cf57ba361",class:"snippet-count-container"},i("calcite-input",{key:"3bff884cf3b462942e9a959c323f1a47b8ac1fb9",id:"item-snippet",maxLength:250,type:"textarea",value:this.itemDetails.snippet}),i("label",{key:"fdd0951508f0c422fc28c79488c126f70af07f88",class:"font-size--3",id:"item-snippet-count",ref:t=>this.itemSnippetCount=t})))),i("calcite-label",{key:"42cdb37a1ba254bd863b7f424e1d6b1d2524b3bc"},this._translations.description,i("label",{key:"d45d8bbd0bfd913f100e5f446265b9336d50a93a",id:"item-description-label"},i("calcite-input",{key:"cbe6a819f00d2015858e632e2dd417260dc8c58f",id:"item-description",type:"textarea",value:this.itemDetails.description}))),i("calcite-label",{key:"de374dafb6856b650c1fe59913b7bb9c53b9ede7"},this._translations.tags,i("label",{key:"265b4ff2b4210c36f15d2b66a18e4b5943b4ef09",id:"item-tags-label"},i("calcite-input",{key:"8f93a4ae7cefa909351ca9eee36a995315474cfb",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()}browseForThumbnail;itemType;itemSnippetCount;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(){this.thumbnail&&this.itemEdit?.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=vt.getItemInfo(this.itemId),this.itemEdit.item=this.itemDetails,vt.setItemInfo(this.itemEdit)}_updateThumbnail(t){const e=t.target.files;e&&e[0]&&this.thumbnail&&(this.thumbnail.src=URL.createObjectURL(e[0]),this.itemEdit=vt.getItemInfo(this.itemId),this.itemEdit.thumbnail=e[0],vt.replaceItemThumbnail(this.itemEdit))}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}};ie.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 ae=class{constructor(e){t(this,e),this.groupId="",this._translations=void 0,this.sharing=[]}get el(){return o(this)}itemIdWatchHandler(){const t=vt.getItemInfo(this.groupId);this.sharing=t.groupDetails}async componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"63291062c3de65e5b1be43c8b4ad576dec5bc03d"},i("div",{key:"3d85e17d3a1b62ebddf941d2cf2d7003fb09fa3e",class:"container-border"},i("calcite-label",{key:"0c4266ddfa4e38fa61d2963a18263af08139a38d"},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 e=t.target.id;this.sharing=this.sharing.map((i=>{if(i.id===e){i.shareItem=t.target.checked;const a=vt.getItemInfo(e);if(i.shareItem)a.groups?a.groups.indexOf(this.groupId)<0&&a.groups.push(this.groupId):a.groups=[this.groupId];else if(a.groups){const t=a.groups.indexOf(this.groupId);t>-1&&a.groups.splice(t,1)}vt.setItemInfo(a)}return i}))}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{groupId:["itemIdWatchHandler"]}}};ae.style=":host{display:block}.container-border{padding:1rem}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const oe=class{constructor(i){t(this,i),this.organizationVariableSelected=e(this,"organizationVariableSelected",7),this.value="",this._organizationVariables=[],this._translations=void 0}get el(){return o(this)}valueWatchHandler(){this._organizationVariables=JSON.parse(this.value)}async componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"76e0f912c6793c1ef3f8a7f1c30bf8150ee56b11"},i("div",{key:"08466bae42b7911d81f0047024d53cc759486545"},i("h4",{key:"b14ce6b8dbc48e7772b4dff6ce7568789012b497",class:"org-var-header"},this._translations.orgVariables)),i("div",{key:"0da50a1ff0dbcd341cf98f7319255ef2d0e922c7",class:"container-border"},i("calcite-tree",{key:"463beeb427ed3358ce9358c1363ff0f62a34a714",id:"variable-label"},this._renderHierarchy(this._organizationVariables))))}organizationVariableSelected;_renderHierarchy(t){return t.map((t=>i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.organizationVariableSelected.emit({itemId:t,value:e})}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{value:["valueWatchHandler"]}}};oe.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 se=class{constructor(e){t(this,e),this.authentication=void 0,this.itemId="",this.resourceFilePaths=[],this.resources=[],this._translations=void 0}get el(){return o(this)}itemIdWatchHandler(){const t=vt.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(s,{key:"106f481657df3169901b74a9a44254cb60ebcbc1"},i("div",{key:"de5496a1f9ee00d881960691112af008fa3348e0",class:"resource-item"},i("div",{key:"df37567b6feebe82f0c642d11df50ae2a60b4c85",class:"margin-bottom-1"},i("calcite-button",{key:"043e569dc938d27c7b2f007fc818791d3cecf266",appearance:"solid",class:"resource-button",color:"blue",onClick:()=>this._addNewResource()},this._translations.addResource),i("calcite-button",{key:"be01e64fb47fa243dbcf9f0b5f387152b6da7f57",appearance:"solid",color:"blue",disabled:!t,onClick:()=>this._downloadAll()},this._translations.downloadAll)),i("div",{key:"5a08b047d2bdbb5ee3c7f46ebc1b75c27d08b450",class:"resources-container",style:{display:t?"inherit":"none"}},this._renderResourceList())))}_removedResources={};_renderResourceList(){return i("calcite-value-list",{multiple:!0},this.resourceFilePaths.reduce(((t,e)=>(e.type!==wt.Thumbnail&&t.push(this._renderResource(e)),t)),[]))}_renderResource(t){const e=t.updateType===gt.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=gt.Remove,this.resourceFilePaths=[...this.resourceFilePaths],this._updateStore()}_reset(t){this.resourceFilePaths=this.resources.some((e=>e===t))?this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=gt.None),e))):this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=gt.Add),e))),this._updateStore()}_downloadAll(){this.resourceFilePaths.forEach((t=>{this._download(t.url,t.filename)}))}_download(t,e){t.startsWith("blob")?this.downloadFile(t,e):this.fetchAndDownload(`${t}?token=${this.authentication.token}`,e)}downloadFile(t,e){const i=document.createElement("a");i.href=t,i.download=e,i.target="_blank",i.click()}_hasValidResources(){return this.resourceFilePaths.some((t=>t.url.indexOf("_info_thumbnail")<0))}async fetchAndDownload(t,e){const i=await fetch(t),a=await i.blob(),o=URL.createObjectURL(a);this.downloadFile(o,e)}_upload(t){const e=document.createElement("input");e.classList.add("display-none"),e.onchange=this._updateResource.bind(this,t),e.type="file",e.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,e){const i=e.target.files;i&&i[0]&&(t.blob=i[0],t.updateType=gt.Update,this._updateStore())}_add(t){const e=t.target.files;if(e&&e[0]){const t=URL.createObjectURL(e[0]),i=e[0].name;this.resourceFilePaths.some((e=>e.filename===i&&e.url===t))||(this.resourceFilePaths=[...this.resourceFilePaths,{url:t,type:wt.Data,folder:void 0,filename:i,blob:e[0],updateType:gt.Add}],this._updateStore())}}_updateStore(){const t=vt.getItemInfo(this.itemId);t.resourceFilePaths=this.resourceFilePaths,vt.setItemInfo(t)}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};se.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 ne=class{get el(){return o(this)}itemIdWatchHandler(){this._initializing=!0,this.value=JSON.stringify("data"===this.instanceid?vt.getItemInfo(this.itemId).data:vt.getItemInfo(this.itemId).properties,null,2)}constructor(e){t(this,e),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:e,contents:i}=t.detail,[a,o]=e.split("|");if(a==this.itemId&&o===this.instanceid){if(!this._initializing&&i.length>0){const t=vt.getItemInfo(a);"data"===o?t.data=JSON.parse(i):t.properties=JSON.parse(i),vt.setItemInfo(t)}this._initializing=!1}}}))}componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"b907b06222070e2d3c6c6df2d84f76de0f0eb38c"},i("div",{key:"ee0602b96a42abffbe304ab87e3509c3becd7a20",class:"solution-data-container"},i("calcite-shell",{key:"bda449f2095f54307e36da0cad30c9925dce71d1",class:"light var-container",dir:"ltr"},i("calcite-panel",{key:"258b22d836fcbc1b673922f153aaa706265499e4",class:"json-editor"},i("div",{key:"e8a68cc1f67ea6884ecb69d260fe8c75720e6507",class:"solution-data-child-container calcite-match-height"},i("json-editor",{key:"fcdc35e68a49f118344e9f6e680d00695cb0627f",class:"solution-data-editor-container",instanceid:this.itemId+"|"+this.instanceid,value:this.value}))),i("calcite-shell-panel",{key:"8491cafb36bc5ec37e3a4162cf4ccf754c27f168","height-scale":"l",position:"end",slot:"contextual-panel","width-scale":"xs"},i("div",{key:"100427789b8741e91578272e1c6599ea3274e841",class:this.varsOpen?"solution-data-child-container":"solution-data-child-container-collapsed"},i("calcite-button",{key:"698c51a7ef4ed24f4729999a92e2b2d65919b130",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",{key:"d75faf0b3baa7a770603a5e64b310fa537c66a5b",class:this.varsOpen?"org-vars":"org-vars display-none",id:"orgVars"},i("solution-organization-variables",{key:"0d87e21946cc7414d577fce30b58d6633faa48ce",value:this.organizationVariables})),i("div",{key:"74c325d0174842c55d3ec44b8230450048460d57",class:this.varsOpen?"sol-vars":"sol-vars display-none",id:"solVars"},i("solution-variables",{key:"e91eb808161167ccf62771a81d42c07446642791",value:this.solutionVariables})))))))}_initializing=!1;_toggleVars(){this.varsOpen=!this.varsOpen}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};ne.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 le=class{constructor(i){t(this,i),this.solutionVariableSelected=e(this,"solutionVariableSelected",7),this.value="",this._solutionVariables=[],this._translations=void 0}get el(){return o(this)}valueWatchHandler(){this._solutionVariables=JSON.parse(this.value)}componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"433753b4da6f9f84d1f0e205523530cfdf07f6cd"},i("div",{key:"5ae081220ce5c01e89ae7c4f8167e5d8b80d818b"},i("h4",{key:"bcbe1103c8e52db304b2d90ced42acd7d3dd2974",class:"org-var-header"},this._translations.solVariables)),i("div",{key:"869027e1f0351685570f15e062e89cba32fefac5",class:"container-border"},i("calcite-tree",{key:"cc5d2c6fae7154cdbacb990d917830696d79e6c3",id:"variable-label"},this._renderHierarchy(this._solutionVariables))))}solutionVariableSelected;_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,e){this.solutionVariableSelected.emit({itemId:t,value:e})}_toggleExpand(t){const e=t?.target?.closest("calcite-tree-item");e&&(e.expanded=!e.expanded)}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{value:["valueWatchHandler"]}}};le.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{_t as calcite_shell_panel,Tt as calcite_tab,Ft as calcite_tab_nav,qt as calcite_tab_title,Gt as calcite_tabs,Yt as calcite_value_list,te as calcite_value_list_item,ee as json_editor,ie as solution_item_details,ae as solution_item_sharing,oe as solution_organization_variables,se as solution_resource_item,ne as solution_template_data,le as solution_variables}
47
+ const Qt="actions-end",Zt="actions-start";bt.deprecated("component",{name:"value-list-item",removalVersion:3,suggested:"list-item"});const te=class{constructor(i){t(this,i),this.calciteListItemChange=e(this,"calciteListItemChange",6),this.calciteListItemRemove=e(this,"calciteListItemRemove",7),this.calciteValueListItemDragHandleBlur=e(this,"calciteValueListItemDragHandleBlur",6),this.pickListItem=null,this.guid=`calcite-value-list-item-${H()}`,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(){c(this),A(this)}disconnectedCallback(){r(this),E(this)}componentWillLoad(){N(this)}componentDidLoad(){B(this)}componentDidRender(){M(this)}async toggleSelected(t){this.pickListItem.toggleSelected(t)}async setFocus(){return await O(this),this.pickListItem?.setFocus()}calciteListItemChangeHandler(t){t.detail.item=this.el}renderActionsEnd(){const{el:t}=this;return y(t,Qt)?i("slot",{name:Qt,slot:ut.actionsEnd}):null}renderActionsStart(){const{el:t}=this;return y(t,Zt)?i("slot",{name:Zt,slot:ut.actionsStart}):null}renderHandle(){const{icon:t,iconFlipRtl:e}=this;if(t===ft.grip)return i("span",{class:{[pt.handle]:!0,[pt.handleActivated]:this.handleActivated},"data-js-handle":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>this.handleEl=t,role:"button",tabindex:"0"},i("calcite-icon",{flipRtl:e,icon:"drag",scale:"s"}))}render(){return i(s,{key:"5800bb42bb126d69868f664845be9d912cc16a1e",id:this.el.id||this.guid},i(F,{key:"3fd26470647b3ec37edaf80d83d8b74b4a0dbcb0",disabled:this.disabled},this.renderHandle(),i("calcite-pick-list-item",{key:"772821bab106c95accaa215e05164371760f2ac0",description:this.description,deselectDisabled:this.deselectDisabled,disabled:this.disabled,label:this.label,metadata:this.metadata,nonInteractive:this.nonInteractive,onCalciteListItemChange:this.handleSelectChange,ref:this.getPickListRef,removable:this.removable,selected:this.selected,value:this.value},this.renderActionsStart(),this.renderActionsEnd())))}get el(){return o(this)}};te.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-ui-focus-color, 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}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}";const ee=class{constructor(e){t(this,e),this.hasChanges=!1,this.hasErrors=!1,this.instanceid="",this.value=""}get el(){return o(this)}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 e=monaco.editor.setModelMarkers,i=this;monaco.editor.setModelMarkers=function(t,a,o){t.id===i._currentModel.id&&(i._flagEditorHasErrors(o.length>0),i.hasErrors||(i._flagEditorHasChanges(i._currentModel?.canUndo()),i._currentModel?.canUndo()&&i._flagEditorContentChanged()),document.getElementById(`${i.instanceid}-errorFlag`).style.visibility=i.hasErrors?"visible":"hidden"),e.call(monaco.editor,t,a,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(s,{key:"f7bd89c09a1da47faac69a2046e17f116d81f900"},i("div",{key:"ecb97ba7d6be7490e5e62eb32c821acc3e4d647f",id:`${this.instanceid}-editor-container`,class:"editor-container padding-right"},i("div",{key:"8e41d06868b3d6814b71d06899a860444cf22f5f",class:"editor-controls"},i("div",{key:"72e466cd4960538d2b12da8d7b19ff52587af282",class:"editor-buttons"},i("calcite-icon",{key:"ec927121edd4ad9873f39c4382bec58ec70f4fe0",id:`${this.instanceid}-errorFlag`,icon:"exclamation-mark-triangle",title:this._translations.errorFlag,scale:"s",class:"edit-error-flag"}),i("calcite-button",{key:"e58f934f12ffb97b658b79bd6f43b488bfe48be1",id:`${this.instanceid}-undo`,color:"blue",appearance:"solid",title:this._translations.undo,onClick:()=>this._undo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"39843757e60fe92ba3379fe72cf9696c082f83f7",icon:"undo",scale:"s"})),i("calcite-button",{key:"d0b6147354e31152615f148fba1e9780d7d60d60",id:`${this.instanceid}-redo`,color:"blue",appearance:"solid",title:this._translations.redo,onClick:()=>this._redo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"484b599a9c38c7e87a822c3b87934648ea47f440",icon:"redo",scale:"s"})),i("calcite-button",{key:"5d984fe49873a751c0a5da22de35261566e2c648",id:`${this.instanceid}-diff`,color:"blue",appearance:"solid",title:this._translations.diff,onClick:()=>this._toggleEditor(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"c6089f49f33196f3edd7ef009b1367b7978e0469",icon:"compare",scale:"s"})),i("calcite-button",{key:"e8d4923b89329a19eb4b0426c9a8645327be7558",id:`${this.instanceid}-search`,appearance:"outline",color:"blue",title:this._translations.search,onClick:()=>this._search(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"0033b33183f88b5122dda9afa5f7095072c7beaf",icon:"search",scale:"s"})),i("calcite-button",{key:"fdb722e4e9046eb31ca62352a841097bd60f9989",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",{key:"c1f8cda4d8fb79b66e1a8b91286e8952bd6afaaa",icon:"reset",scale:"s"})))),i("div",{key:"2111d6a3f15a3df17cdc33ae49de36f51d9db37b",class:"edit-parent"},i("div",{key:"9a7b4cbf25dff972a44ec6332ac010adb511251d",id:`${this.instanceid}-container`,class:"json-edit-container"}),i("div",{key:"9ccd5646f1df550e5ff2c35bb5a9bf3e181117fa",id:`${this.instanceid}-diff-container`,class:"json-edit-container display-none"}))))}_cancelEditsBtnHandler;_contentChanged;_currentModel;_diffEditor;_editor;_loaded=!1;_searchBtnHandler;_translations;_useDiffEditor=!1;_valueObserver;async getEditorContents(){return new Promise(((t,e)=>{try{t(this._currentModel.getValue())}catch(t){e(t)}}))}async prepareForDeletion(){this._searchBtnHandler?.removeEventListener("click",this._search),this._cancelEditsBtnHandler?.removeEventListener("click",this._reset),this._valueObserver?.disconnect(),this._contentChanged?.dispose(),this._editor?.dispose()}async replaceCurrentSelection(t){const e=this._editor.getSelection();this._editor.executeEdits("",[{range:e,text:t}])}async reset(){return new Promise(((t,e)=>{try{this._reset(),t({success:!0})}catch(t){e(t)}}))}_disableButton(t){document.getElementById(t)?.setAttribute("disabled","")}_enableButton(t){document.getElementById(t)?.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 mt(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(){this._currentModel?.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`),e=document.getElementById(`${this.instanceid}-container`);this._useDiffEditor?(this._setDiffModel(),t.classList.remove("display-none"),e.classList.add("display-none")):(t.classList.add("display-none"),e.classList.remove("display-none"))}_toggleUndoRedo(){this._currentModel?.canUndo()?this._enableButton(`${this.instanceid}-undo`):this._disableButton(`${this.instanceid}-undo`),this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-redo`):this._disableButton(`${this.instanceid}-redo`),this._currentModel?.canUndo()||this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-reset`):this._disableButton(`${this.instanceid}-reset`)}_undo(){this._currentModel?.canUndo()&&(this._currentModel.undo(),this._toggleUndoRedo())}static get assetsDirs(){return["assets"]}};ee.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 ie=class{constructor(e){t(this,e),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}get el(){return o(this)}async componentWillLoad(){return this._getTranslations()}async componentWillRender(){return this.itemEdit=vt.getItemInfo(this.itemId),this.itemEdit&&(this.itemDetails=this.itemEdit.item,this.itemType=this.itemDetails.type),Promise.resolve()}render(){return i(s,{key:"84bfa00fcedb54a43856c92e8446305d15d1a54a"},i("div",{key:"bceaddf6dcc35e5a22cad12e661c17f716fd165e",class:"parent-container"},i("div",{key:"17834a249ffbbbd3ee54617fa2f2224816dd59b1",class:"inputBottomSeparation"},i("calcite-input",{key:"372ceefe695e7c54a4ad35cf5b496202037fd57c",id:"item-title",value:this.itemDetails.title})),i("div",{key:"fc356bd1e3bb965b7555dcea9fccfce44ca96a31",class:"inputBottomSeparation"},i("input",{key:"11dc51158e385025d139372682b33d2093956a50",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",{key:"abc5c96ec20adb16026fd6a7c3eb41871512d360",class:"font-size--3 btn-link inline-block trailer-quarter",onClick:()=>this._getThumbnail()},i("svg",{key:"35ce23e7fe17e7f45110e028ddb0c31e033f6f34",class:"icon-inline icon-inline--on-left",height:"16",viewBox:"0 0 16 16",width:"16"},i("path",{key:"0bab7e61e1261db38a1a62dd085f63de5993a640",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",{key:"4dff94a716f70a350168ae123f0afb41f360fb3b",class:"flex"},i("div",{key:"bda8e51d80a72f221eb02ea915609b1e2175a56f",class:"img-container",ref:t=>this.thumbnailContainer=t},i("img",{key:"3b606e141fae758b24d6114d7433cfdec9570ba9",class:"scale-down",height:"133",id:"item-thumbnail",ref:t=>this.thumbnail=t,width:"200"})),i("div",{key:"3f5c6fd680a45c754e2b798566776363e94bf307",class:"snippet-count-container"},i("calcite-input",{key:"3d35c224c6d8b34483712e392aeca8a87e0d0810",id:"item-snippet",maxLength:250,type:"textarea",value:this.itemDetails.snippet}),i("label",{key:"1aecd6515a83c523c991d5ccd9516ff14384a13a",class:"font-size--3",id:"item-snippet-count",ref:t=>this.itemSnippetCount=t})))),i("calcite-label",{key:"3052a4847edc5afd336a763e8e6933694aad9d6d"},this._translations.description,i("label",{key:"595de020ea7e1e5b61296f7c9b17f1a02a0741e0",id:"item-description-label"},i("calcite-input",{key:"135cb36c76f6462aa470f9b7680ebefa6be60018",id:"item-description",type:"textarea",value:this.itemDetails.description}))),i("calcite-label",{key:"8f51b5f1d2607e040b6a94920d2f581b3595838f"},this._translations.tags,i("label",{key:"21b84a7bcb9d5b8b56e7b6ccee0b49e940e1faf3",id:"item-tags-label"},i("calcite-input",{key:"8f3b14471019c703944e531abca80b01751b04e1",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()}browseForThumbnail;itemType;itemSnippetCount;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(){this.thumbnail&&this.itemEdit?.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=vt.getItemInfo(this.itemId),this.itemEdit.item=this.itemDetails,vt.setItemInfo(this.itemEdit)}_updateThumbnail(t){const e=t.target.files;e&&e[0]&&this.thumbnail&&(this.thumbnail.src=URL.createObjectURL(e[0]),this.itemEdit=vt.getItemInfo(this.itemId),this.itemEdit.thumbnail=e[0],vt.replaceItemThumbnail(this.itemEdit))}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}};ie.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 ae=class{constructor(e){t(this,e),this.groupId="",this._translations=void 0,this.sharing=[]}get el(){return o(this)}itemIdWatchHandler(){const t=vt.getItemInfo(this.groupId);this.sharing=t.groupDetails}async componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"6a9facacd8961a53dd4e49082def5573732d49bf"},i("div",{key:"6eaf512253573a4db25ec64ebe1439228df4845d",class:"container-border"},i("calcite-label",{key:"db5680d010759bdb28b774293b8ae1522c9d8052"},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 e=t.target.id;this.sharing=this.sharing.map((i=>{if(i.id===e){i.shareItem=t.target.checked;const a=vt.getItemInfo(e);if(i.shareItem)a.groups?a.groups.indexOf(this.groupId)<0&&a.groups.push(this.groupId):a.groups=[this.groupId];else if(a.groups){const t=a.groups.indexOf(this.groupId);t>-1&&a.groups.splice(t,1)}vt.setItemInfo(a)}return i}))}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{groupId:["itemIdWatchHandler"]}}};ae.style=":host{display:block}.container-border{padding:1rem}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const oe=class{constructor(i){t(this,i),this.organizationVariableSelected=e(this,"organizationVariableSelected",7),this.value="",this._organizationVariables=[],this._translations=void 0}get el(){return o(this)}valueWatchHandler(){this._organizationVariables=JSON.parse(this.value)}async componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"99ef09d7f851a57d42c7f7ad5cd6e303b9508d17"},i("div",{key:"7217187249febdbbf3899d96cdbb2a45474343b7"},i("h4",{key:"d5d01648936de6726d7422f81f58ad998574ea87",class:"org-var-header"},this._translations.orgVariables)),i("div",{key:"22d6f7fb4b0d8f570dbcf9dcac08dce7e2f6383e",class:"container-border"},i("calcite-tree",{key:"5f21f4fc4b378da1b144dbeb1e19df2f43bcee61",id:"variable-label"},this._renderHierarchy(this._organizationVariables))))}organizationVariableSelected;_renderHierarchy(t){return t.map((t=>i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.organizationVariableSelected.emit({itemId:t,value:e})}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{value:["valueWatchHandler"]}}};oe.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 se=class{constructor(e){t(this,e),this.authentication=void 0,this.itemId="",this.resourceFilePaths=[],this.resources=[],this._translations=void 0}get el(){return o(this)}itemIdWatchHandler(){const t=vt.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(s,{key:"eb76345d460620ea6229c1ac94eaf5dec9943c1e"},i("div",{key:"8dfb91c0ca0d4201940e29bcb809002da1cd9d76",class:"resource-item"},i("div",{key:"a6ec9664d267c25eada0432e6825369fdc82676f",class:"margin-bottom-1"},i("calcite-button",{key:"d84827e9dbe4ad68544430c007b28c5e9929e076",appearance:"solid",class:"resource-button",color:"blue",onClick:()=>this._addNewResource()},this._translations.addResource),i("calcite-button",{key:"d88b2928ca6994054f899823701327ece50a937b",appearance:"solid",color:"blue",disabled:!t,onClick:()=>this._downloadAll()},this._translations.downloadAll)),i("div",{key:"445c0c3e2deb3b546f4c84186a148e8888477d13",class:"resources-container",style:{display:t?"inherit":"none"}},this._renderResourceList())))}_removedResources={};_renderResourceList(){return i("calcite-value-list",{multiple:!0},this.resourceFilePaths.reduce(((t,e)=>(e.type!==wt.Thumbnail&&t.push(this._renderResource(e)),t)),[]))}_renderResource(t){const e=t.updateType===gt.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=gt.Remove,this.resourceFilePaths=[...this.resourceFilePaths],this._updateStore()}_reset(t){this.resourceFilePaths=this.resources.some((e=>e===t))?this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=gt.None),e))):this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=gt.Add),e))),this._updateStore()}_downloadAll(){this.resourceFilePaths.forEach((t=>{this._download(t.url,t.filename)}))}_download(t,e){t.startsWith("blob")?this.downloadFile(t,e):this.fetchAndDownload(`${t}?token=${this.authentication.token}`,e)}downloadFile(t,e){const i=document.createElement("a");i.href=t,i.download=e,i.target="_blank",i.click()}_hasValidResources(){return this.resourceFilePaths.some((t=>t.url.indexOf("_info_thumbnail")<0))}async fetchAndDownload(t,e){const i=await fetch(t),a=await i.blob(),o=URL.createObjectURL(a);this.downloadFile(o,e)}_upload(t){const e=document.createElement("input");e.classList.add("display-none"),e.onchange=this._updateResource.bind(this,t),e.type="file",e.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,e){const i=e.target.files;i&&i[0]&&(t.blob=i[0],t.updateType=gt.Update,this._updateStore())}_add(t){const e=t.target.files;if(e&&e[0]){const t=URL.createObjectURL(e[0]),i=e[0].name;this.resourceFilePaths.some((e=>e.filename===i&&e.url===t))||(this.resourceFilePaths=[...this.resourceFilePaths,{url:t,type:wt.Data,folder:void 0,filename:i,blob:e[0],updateType:gt.Add}],this._updateStore())}}_updateStore(){const t=vt.getItemInfo(this.itemId);t.resourceFilePaths=this.resourceFilePaths,vt.setItemInfo(t)}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};se.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 ne=class{get el(){return o(this)}itemIdWatchHandler(){this._initializing=!0,this.value=JSON.stringify("data"===this.instanceid?vt.getItemInfo(this.itemId).data:vt.getItemInfo(this.itemId).properties,null,2)}constructor(e){t(this,e),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:e,contents:i}=t.detail,[a,o]=e.split("|");if(a==this.itemId&&o===this.instanceid){if(!this._initializing&&i.length>0){const t=vt.getItemInfo(a);"data"===o?t.data=JSON.parse(i):t.properties=JSON.parse(i),vt.setItemInfo(t)}this._initializing=!1}}}))}componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"78d31b01a7b3aac5e3b63ec59fa0225e662c3532"},i("div",{key:"84ad00f60d5ad98fc14fad50b2db93844e54a842",class:"solution-data-container"},i("calcite-shell",{key:"0e56c32e9ba92e9e536ce16f30db4e59d1c71094",class:"light var-container",dir:"ltr"},i("calcite-panel",{key:"ab251fe749493d11b61359f3f018fa87917d83c6",class:"json-editor"},i("div",{key:"94be603b8c03bccbcc31293839d633ffa0ca5b15",class:"solution-data-child-container calcite-match-height"},i("json-editor",{key:"76a5a31ae0dc54d59a300e0d6cc6b543e994d322",class:"solution-data-editor-container",instanceid:this.itemId+"|"+this.instanceid,value:this.value}))),i("calcite-shell-panel",{key:"5405b6aa574c721965bbdd4aabf90981f82c7da7","height-scale":"l",position:"end",slot:"contextual-panel","width-scale":"xs"},i("div",{key:"e7b57aa1f91e479a7538b5bb60fff9ff096bc9c9",class:this.varsOpen?"solution-data-child-container":"solution-data-child-container-collapsed"},i("calcite-button",{key:"ddd017fee5c66d79cd2c6239b847aacef9e04070",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",{key:"a45aec86952e3172c76153b01a54076d97050de9",class:this.varsOpen?"org-vars":"org-vars display-none",id:"orgVars"},i("solution-organization-variables",{key:"e138b7ec4c256c916ef52cef6d17f0d9a839d506",value:this.organizationVariables})),i("div",{key:"9444585d82bc85f2cf535ecc8921b2d3f67b398d",class:this.varsOpen?"sol-vars":"sol-vars display-none",id:"solVars"},i("solution-variables",{key:"030de51ff885c3ddf549fc4898c31ec23bb0d303",value:this.solutionVariables})))))))}_initializing=!1;_toggleVars(){this.varsOpen=!this.varsOpen}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};ne.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 le=class{constructor(i){t(this,i),this.solutionVariableSelected=e(this,"solutionVariableSelected",7),this.value="",this._solutionVariables=[],this._translations=void 0}get el(){return o(this)}valueWatchHandler(){this._solutionVariables=JSON.parse(this.value)}componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"5d3ed27bced41fb6bf6c393ddde152fb0056d25b"},i("div",{key:"cb05d3c237719abd539b21b38968a41364c1880e"},i("h4",{key:"367eb15af209dfed31b43f705fb6de05e25bb374",class:"org-var-header"},this._translations.solVariables)),i("div",{key:"10142202269a9f2eaa82c0b50a1980d9f3051208",class:"container-border"},i("calcite-tree",{key:"d89353a7fe357851a697df036ae7795154254759",id:"variable-label"},this._renderHierarchy(this._solutionVariables))))}solutionVariableSelected;_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,e){this.solutionVariableSelected.emit({itemId:t,value:e})}_toggleExpand(t){const e=t?.target?.closest("calcite-tree-item");e&&(e.expanded=!e.expanded)}async _getTranslations(){const t=await mt(this.el);this._translations=t[0]}static get watchers(){return{value:["valueWatchHandler"]}}};le.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{_t as calcite_shell_panel,Tt as calcite_tab,Ft as calcite_tab_nav,qt as calcite_tab_title,Gt as calcite_tabs,Yt as calcite_value_list,te as calcite_value_list_item,ee as json_editor,ie as solution_item_details,ae as solution_item_sharing,oe as solution_organization_variables,se as solution_resource_item,ne as solution_template_data,le as solution_variables}
@@ -3,15 +3,15 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as i,h as e,g as s,F as n}from"./p-6eb37ed2.js";import{a as h,q as a,r as l,s as r,u as o,n as c,o as p,h as u,v as d,O as m,c as f}from"./p-3792492a.js";import{e as x,x as y}from"./p-c25e8c35.js";import{s as g,a as b,c as w}from"./p-3e828614.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";
6
+ import{r as t,c as i,h as s,g as e,F as n}from"./p-6eb37ed2.js";import{a as h,q as a,r as l,s as r,u as o,n as c,o as p,h as u,v as d,O as m,c as f}from"./p-3792492a.js";import{d as x,x as y}from"./p-441f1992.js";import{s as g,a as b,c as w}from"./p-3e828614.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
10
10
  * v2.12.2
11
- */const C=h(),v=class{constructor(e){t(this,e),this.calciteColorPickerHexInputChange=i(this,"calciteColorPickerHexInputChange",6),this.onHexInputBlur=()=>{const t=this.hexInputNode,i=t.value,e=`#${i}`,{allowEmpty:s,internalColor:n}=this,h=s&&!i,c=a(e);l(e,this.alphaChannel)&&this.onHexInputChange(),h||r(e)&&c||(t.value=s&&!n?"":this.formatHexForInternalInput(o(n.object())))},this.onOpacityInputBlur=()=>{const t=this.opacityInputNode,i=t.value,{allowEmpty:e,internalColor:s}=this;e&&!i||(t.value=e&&!s?"":this.formatOpacityForInternalInput(s))},this.onOpacityInputInput=()=>{this.onOpacityInputChange()},this.onHexInputChange=()=>{let t=this.hexInputNode.value;if(t){const i=c(t,!1);r(i)&&this.alphaChannel&&this.internalColor&&(t=`${i+c(this.internalColor.hexa(),!0).slice(-2)}`)}this.internalSetValue(t,this.value)},this.onOpacityInputChange=()=>{const t=this.opacityInputNode;let i;if(t.value){const e=p(Number(t.value));i=this.internalColor?.alpha(e).hexa()}else i=t.value;this.internalSetValue(i,this.value)},this.onInputFocus=t=>{"calciteInternalInputTextFocus"===t.type?this.hexInputNode.selectText():this.opacityInputNode.selectText()},this.onHexInputInput=()=>{const t=`#${this.hexInputNode.value}`,i=this.value;r(t,this.alphaChannel)&&a(t,this.alphaChannel)&&this.internalSetValue(t,i)},this.onInputKeyDown=t=>{const{altKey:i,ctrlKey:e,metaKey:s,shiftKey:n}=t,{alphaChannel:h,hexInputNode:a,internalColor:r,value:o}=this,{key:c}=t,p=t.composedPath();if("Tab"===c&&l(o,this.alphaChannel)||"Enter"===c)return p.includes(a)?this.onHexInputChange():this.onOpacityInputChange(),void("Enter"===c&&t.preventDefault());const m=this.value;if("ArrowDown"===c||"ArrowUp"===c)return o?(this.internalSetValue(u(this.nudgeRGBChannels(r,(n?10:1)*("ArrowUp"===c?1:-1),p.includes(a)?"rgb":"a"),h),m),void t.preventDefault()):(this.internalSetValue(this.previousNonNullValue,m),void t.preventDefault());const f=i||e||s,x=1===c.length,y=d.test(c);!x||f||y||t.preventDefault()},this.onHexInputPaste=t=>{const i=t.clipboardData.getData("text");r(i,this.alphaChannel)&&a(i,this.alphaChannel)&&(t.preventDefault(),this.hexInputNode.value=i.slice(1),this.internalSetValue(i,this.value))},this.previousNonNullValue=this.value,this.storeHexInputRef=t=>{this.hexInputNode=t},this.storeOpacityInputRef=t=>{this.opacityInputNode=t},this.allowEmpty=!1,this.alphaChannel=!1,this.hexLabel="Hex",this.messages=void 0,this.numberingSystem=void 0,this.scale="m",this.value=c(u(C,this.alphaChannel),this.alphaChannel,!0),this.internalColor=C}connectedCallback(){const{allowEmpty:t,alphaChannel:i,value:e}=this;if(e){const t=c(e,i);r(t,i)&&this.internalSetValue(t,t,!1)}else t&&this.internalSetValue(null,null,!1)}componentWillLoad(){g(this)}componentDidLoad(){b(this)}handleValueChange(t,i){this.internalSetValue(t,i,!1)}render(){const{alphaChannel:t,hexLabel:i,internalColor:s,messages:n,scale:h,value:a}=this,l=this.formatHexForInternalInput(a),r=this.formatOpacityForInternalInput(s),o="l"===h?"m":"s";return e("div",{key:"7f3098ef31cae459bb4816fbea34cc74c174ec87",class:"container"},e("calcite-input-text",{key:"66b3c778e3340ac4f9b91c4198b964c26c6a7347",class:"hex-input",label:n?.hex||i,maxLength:this.alphaChannel?8:6,onCalciteInputTextChange:this.onHexInputChange,onCalciteInputTextInput:this.onHexInputInput,onCalciteInternalInputTextBlur:this.onHexInputBlur,onCalciteInternalInputTextFocus:this.onInputFocus,onKeyDown:this.onInputKeyDown,onPaste:this.onHexInputPaste,prefixText:"#",ref:this.storeHexInputRef,scale:o,value:l}),t?e("calcite-input-number",{class:"opacity-input",key:"opacity-input",label:n?.opacity,max:m.max,maxLength:3,min:m.min,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberInput:this.onOpacityInputInput,onCalciteInternalInputNumberBlur:this.onOpacityInputBlur,onCalciteInternalInputNumberFocus:this.onInputFocus,onKeyDown:this.onInputKeyDown,ref:this.storeOpacityInputRef,scale:o,suffixText:"%",value:r}):null)}async setFocus(){return await w(this),x(this.hexInputNode)}internalSetValue(t,i,e=!0){if(t){const{alphaChannel:i}=this,s=c(t,i,i);if(r(s,i)){const{internalColor:t}=this,n=h(s),a=c(u(n,i),i),l=!t||a!==c(u(t,i),i);return this.internalColor=n,this.previousNonNullValue=a,this.value=a,void(l&&e&&this.calciteColorPickerHexInputChange.emit())}}else if(this.allowEmpty)return this.internalColor=null,this.value=null,void(e&&this.calciteColorPickerHexInputChange.emit());this.value=i}formatHexForInternalInput(t){return t?t.replace("#","").slice(0,6):""}formatOpacityForInternalInput(t){return t?`${f(t.alpha())}`:""}nudgeRGBChannels(t,i,e){let s;const n=t.array(),a=n.slice(0,3);if("rgb"===e)s=[...a.map((t=>t+i)),this.alphaChannel?n[3]:void 0];else{const e=p(f(t.alpha())+i);s=[...a,e]}return h(s)}get el(){return s(this)}static get watchers(){return{value:["handleValueChange"]}}};v.style=":host{display:block}.container{display:flex;inline-size:100%;flex-wrap:nowrap;align-items:center}.hex-input{flex-grow:1;text-transform:uppercase}.opacity-input{inline-size:68px;margin-inline-start:-1px}:host([scale=s]) .container{flex-wrap:wrap;row-gap:0.125rem}:host([scale=s]) .opacity-input{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .opacity-input{inline-size:88px}:host([hidden]){display:none}[hidden]{display:none}";
11
+ */const C=h(),v=class{constructor(s){t(this,s),this.calciteColorPickerHexInputChange=i(this,"calciteColorPickerHexInputChange",6),this.onHexInputBlur=()=>{const t=this.hexInputNode,i=t.value,s=`#${i}`,{allowEmpty:e,internalColor:n}=this,h=e&&!i,c=a(s);l(s,this.alphaChannel)&&this.onHexInputChange(),h||r(s)&&c||(t.value=e&&!n?"":this.formatHexForInternalInput(o(n.object())))},this.onOpacityInputBlur=()=>{const t=this.opacityInputNode,i=t.value,{allowEmpty:s,internalColor:e}=this;s&&!i||(t.value=s&&!e?"":this.formatOpacityForInternalInput(e))},this.onOpacityInputInput=()=>{this.onOpacityInputChange()},this.onHexInputChange=()=>{let t=this.hexInputNode.value;if(t){const i=c(t,!1);r(i)&&this.alphaChannel&&this.internalColor&&(t=`${i+c(this.internalColor.hexa(),!0).slice(-2)}`)}this.internalSetValue(t,this.value)},this.onOpacityInputChange=()=>{const t=this.opacityInputNode;let i;if(t.value){const s=p(Number(t.value));i=this.internalColor?.alpha(s).hexa()}else i=t.value;this.internalSetValue(i,this.value)},this.onInputFocus=t=>{"calciteInternalInputTextFocus"===t.type?this.hexInputNode.selectText():this.opacityInputNode.selectText()},this.onHexInputInput=()=>{const t=`#${this.hexInputNode.value}`,i=this.value;r(t,this.alphaChannel)&&a(t,this.alphaChannel)&&this.internalSetValue(t,i)},this.onInputKeyDown=t=>{const{altKey:i,ctrlKey:s,metaKey:e,shiftKey:n}=t,{alphaChannel:h,hexInputNode:a,internalColor:r,value:o}=this,{key:c}=t,p=t.composedPath();if("Tab"===c&&l(o,this.alphaChannel)||"Enter"===c)return p.includes(a)?this.onHexInputChange():this.onOpacityInputChange(),void("Enter"===c&&t.preventDefault());const m=this.value;if("ArrowDown"===c||"ArrowUp"===c)return o?(this.internalSetValue(u(this.nudgeRGBChannels(r,(n?10:1)*("ArrowUp"===c?1:-1),p.includes(a)?"rgb":"a"),h),m),void t.preventDefault()):(this.internalSetValue(this.previousNonNullValue,m),void t.preventDefault());const f=i||s||e,x=1===c.length,y=d.test(c);!x||f||y||t.preventDefault()},this.onHexInputPaste=t=>{const i=t.clipboardData.getData("text");r(i,this.alphaChannel)&&a(i,this.alphaChannel)&&(t.preventDefault(),this.hexInputNode.value=i.slice(1),this.internalSetValue(i,this.value))},this.previousNonNullValue=this.value,this.storeHexInputRef=t=>{this.hexInputNode=t},this.storeOpacityInputRef=t=>{this.opacityInputNode=t},this.allowEmpty=!1,this.alphaChannel=!1,this.hexLabel="Hex",this.messages=void 0,this.numberingSystem=void 0,this.scale="m",this.value=c(u(C,this.alphaChannel),this.alphaChannel,!0),this.internalColor=C}connectedCallback(){const{allowEmpty:t,alphaChannel:i,value:s}=this;if(s){const t=c(s,i);r(t,i)&&this.internalSetValue(t,t,!1)}else t&&this.internalSetValue(null,null,!1)}componentWillLoad(){g(this)}componentDidLoad(){b(this)}handleValueChange(t,i){this.internalSetValue(t,i,!1)}render(){const{alphaChannel:t,hexLabel:i,internalColor:e,messages:n,scale:h,value:a}=this,l=this.formatHexForInternalInput(a),r=this.formatOpacityForInternalInput(e),o="l"===h?"m":"s";return s("div",{key:"7f3098ef31cae459bb4816fbea34cc74c174ec87",class:"container"},s("calcite-input-text",{key:"66b3c778e3340ac4f9b91c4198b964c26c6a7347",class:"hex-input",label:n?.hex||i,maxLength:this.alphaChannel?8:6,onCalciteInputTextChange:this.onHexInputChange,onCalciteInputTextInput:this.onHexInputInput,onCalciteInternalInputTextBlur:this.onHexInputBlur,onCalciteInternalInputTextFocus:this.onInputFocus,onKeyDown:this.onInputKeyDown,onPaste:this.onHexInputPaste,prefixText:"#",ref:this.storeHexInputRef,scale:o,value:l}),t?s("calcite-input-number",{class:"opacity-input",key:"opacity-input",label:n?.opacity,max:m.max,maxLength:3,min:m.min,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberInput:this.onOpacityInputInput,onCalciteInternalInputNumberBlur:this.onOpacityInputBlur,onCalciteInternalInputNumberFocus:this.onInputFocus,onKeyDown:this.onInputKeyDown,ref:this.storeOpacityInputRef,scale:o,suffixText:"%",value:r}):null)}async setFocus(){return await w(this),x(this.hexInputNode)}internalSetValue(t,i,s=!0){if(t){const{alphaChannel:i}=this,e=c(t,i,i);if(r(e,i)){const{internalColor:t}=this,n=h(e),a=c(u(n,i),i),l=!t||a!==c(u(t,i),i);return this.internalColor=n,this.previousNonNullValue=a,this.value=a,void(l&&s&&this.calciteColorPickerHexInputChange.emit())}}else if(this.allowEmpty)return this.internalColor=null,this.value=null,void(s&&this.calciteColorPickerHexInputChange.emit());this.value=i}formatHexForInternalInput(t){return t?t.replace("#","").slice(0,6):""}formatOpacityForInternalInput(t){return t?`${f(t.alpha())}`:""}nudgeRGBChannels(t,i,s){let e;const n=t.array(),a=n.slice(0,3);if("rgb"===s)e=[...a.map((t=>t+i)),this.alphaChannel?n[3]:void 0];else{const s=p(f(t.alpha())+i);e=[...a,s]}return h(e)}get el(){return e(this)}static get watchers(){return{value:["handleValueChange"]}}};v.style=":host{display:block}.container{display:flex;inline-size:100%;flex-wrap:nowrap;align-items:center}.hex-input{flex-grow:1;text-transform:uppercase}.opacity-input{inline-size:68px;margin-inline-start:-1px}:host([scale=s]) .container{flex-wrap:wrap;row-gap:0.125rem}:host([scale=s]) .opacity-input{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .opacity-input{inline-size:88px}:host([hidden]){display:none}[hidden]{display:none}";
12
12
  /*!
13
13
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
14
14
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
15
15
  * v2.12.2
16
16
  */
17
- const k="swatch",I="swatch--no-color",z="checker",T=4,j=8,F=class{constructor(i){t(this,i),this.active=!1,this.color=void 0,this.scale="m"}handleColorChange(t){this.internalColor=t?h(t):null}componentWillLoad(){this.handleColorChange(this.color)}render(){const t=!this.internalColor;return e("svg",{key:"b29377be8ce0518f7b0f3691dcb1dda08890dd94",class:{[k]:!0,[I]:t},xmlns:"http://www.w3.org/2000/svg"},this.renderSwatch())}renderSwatch(){const{active:t,el:i,internalColor:s}=this,h=t?"100%":"0",a={height:"100%",rx:h,stroke:"light"===y(i)?"rgba(0, 0, 0, 0.3)":"rgba(255, 255, 255, 0.15)","stroke-width":"2",width:"100%"};if(!s)return e(n,null,e("clipPath",{id:"shape"},e("rect",{height:"100%",rx:h,width:"100%"})),e("rect",{"clip-path":`inset(0 round ${h})`,rx:h,...a}),e("line",{"clip-path":"url(#shape)","stroke-width":"3",x1:"100%",x2:"0",y1:"0",y2:"100%"}));const l=s.alpha(),r=u(s),o=u(s,l<1);return e(n,null,e("title",null,o),e("defs",null,e("pattern",{height:j,id:"checker",patternUnits:"userSpaceOnUse",width:j,x:"0",y:"0"},e("rect",{class:z,height:T,width:T,x:"0",y:"0"}),e("rect",{class:z,height:T,width:T,x:T,y:T}))),e("rect",{fill:"url(#checker)",height:"100%",rx:h,width:"100%"}),e("rect",{fill:r,style:{"clip-path":l<1?"polygon(100% 0, 0 0, 0 100%)":`inset(0 round ${h})`},...a}),l<1?e("rect",{fill:o,key:"opacity-fill",style:{"clip-path":"polygon(100% 0, 100% 100%, 0 100%)"},...a}):null)}get el(){return s(this)}static get watchers(){return{color:["handleColorChange"]}}};F.style=":host{position:relative;display:inline-flex}:host([scale=s]){block-size:1.25rem;inline-size:1.25rem}:host([scale=m]){block-size:1.5rem;inline-size:1.5rem}:host([scale=l]){block-size:2rem;inline-size:2rem}.swatch{overflow:hidden;block-size:inherit;inline-size:inherit}.swatch rect{transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.swatch--no-color rect{fill:var(--calcite-color-foreground-1)}.swatch--no-color line{stroke:var(--calcite-color-status-danger)}.checker{fill:#cacaca}:host([hidden]){display:none}[hidden]{display:none}";export{v as calcite_color_picker_hex_input,F as calcite_color_picker_swatch}
17
+ const k="swatch",I="swatch--no-color",z="checker",T=4,j=8,F=class{constructor(i){t(this,i),this.active=!1,this.color=void 0,this.scale="m"}handleColorChange(t){this.internalColor=t?h(t):null}componentWillLoad(){this.handleColorChange(this.color)}render(){const t=!this.internalColor;return s("svg",{key:"b29377be8ce0518f7b0f3691dcb1dda08890dd94",class:{[k]:!0,[I]:t},xmlns:"http://www.w3.org/2000/svg"},this.renderSwatch())}renderSwatch(){const{active:t,el:i,internalColor:e}=this,h=t?"100%":"0",a={height:"100%",rx:h,stroke:"light"===y(i)?"rgba(0, 0, 0, 0.3)":"rgba(255, 255, 255, 0.15)","stroke-width":"2",width:"100%"};if(!e)return s(n,null,s("clipPath",{id:"shape"},s("rect",{height:"100%",rx:h,width:"100%"})),s("rect",{"clip-path":`inset(0 round ${h})`,rx:h,...a}),s("line",{"clip-path":"url(#shape)","stroke-width":"3",x1:"100%",x2:"0",y1:"0",y2:"100%"}));const l=e.alpha(),r=u(e),o=u(e,l<1);return s(n,null,s("title",null,o),s("defs",null,s("pattern",{height:j,id:"checker",patternUnits:"userSpaceOnUse",width:j,x:"0",y:"0"},s("rect",{class:z,height:T,width:T,x:"0",y:"0"}),s("rect",{class:z,height:T,width:T,x:T,y:T}))),s("rect",{fill:"url(#checker)",height:"100%",rx:h,width:"100%"}),s("rect",{fill:r,style:{"clip-path":l<1?"polygon(100% 0, 0 0, 0 100%)":`inset(0 round ${h})`},...a}),l<1?s("rect",{fill:o,key:"opacity-fill",style:{"clip-path":"polygon(100% 0, 100% 100%, 0 100%)"},...a}):null)}get el(){return e(this)}static get watchers(){return{color:["handleColorChange"]}}};F.style=":host{position:relative;display:inline-flex}:host([scale=s]){block-size:1.25rem;inline-size:1.25rem}:host([scale=m]){block-size:1.5rem;inline-size:1.5rem}:host([scale=l]){block-size:2rem;inline-size:2rem}.swatch{overflow:hidden;block-size:inherit;inline-size:inherit}.swatch rect{transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.swatch--no-color rect{fill:var(--calcite-color-foreground-1)}.swatch--no-color line{stroke:var(--calcite-color-status-danger)}.checker{fill:#cacaca}:host([hidden]){display:none}[hidden]{display:none}";export{v as calcite_color_picker_hex_input,F as calcite_color_picker_swatch}
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as i,h as e,g as s}from"./p-6eb37ed2.js";import{n as a}from"./p-64a34d92.js";import{i as c,c as o,d as h}from"./p-304cef31.js";import{u as n,c as r,s as l,d}from"./p-1017609e.js";import{a as u,p as b,i as p,b as m,g as f,c as k,d as v,e as w,h as g,j as y,m as x}from"./p-f6f2018a.js";import{g as S}from"./p-27d462c0.js";import{c as D,s as $,a as I}from"./p-3e828614.js";import{d as z,g as A}from"./p-d9e930c8.js";import"./p-c25e8c35.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1c249530.js";import"./p-4b9b7778.js";
6
+ import{r as t,c as i,h as e,g as s}from"./p-6eb37ed2.js";import{n as a}from"./p-64a34d92.js";import{i as c,c as o,d as h}from"./p-42552409.js";import{u as n,c as r,s as l,d}from"./p-6e3f1d71.js";import{a as u,p as b,i as p,b as m,g as f,c as k,d as v,e as w,h as g,j as y,m as x}from"./p-abc30e04.js";import{g as S}from"./p-27d462c0.js";import{c as D,s as $,a as I}from"./p-3e828614.js";import{d as z,g as A}from"./p-d9e930c8.js";import"./p-441f1992.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1c249530.js";import"./p-4b9b7778.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
@@ -0,0 +1,11 @@
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{d as o}from"./p-6eb37ed2.js";import{p as n}from"./p-441f1992.js";
7
+ /*!
8
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
10
+ * v2.12.2
11
+ */const p=o;function r(o){return"opened"in o?o.opened:o.open}function t(o){p((()=>{o.transitionEl&&n(o.transitionEl,o.openTransitionProp,(()=>{r(o)?o.onBeforeOpen():o.onBeforeClose()}),(()=>{r(o)?o.onOpen():o.onClose()}))}))}export{t as o}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as e,f as t,h as s,H as i,g as a}from"./p-6eb37ed2.js";import{h as o,d as h,e as n}from"./p-c25e8c35.js";import{s as r,a as c,c as l}from"./p-3e828614.js";import{c as d,d as p}from"./p-304cef31.js";import{u,c as f,s as m,d as g}from"./p-1017609e.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-1c249530.js";const b=class{constructor(t){e(this,t),this.menuItems=[],this.handleMenuSlotChange=e=>{this.menuItems=o(e),this.setMenuItemLayout(this.menuItems,this.layout)},this.label=void 0,this.layout="horizontal",this.messageOverrides=void 0,this.messages=void 0,this.defaultMessages=void 0,this.effectiveLocale=""}handleGlobalAttributesChanged(){t(this),this.setMenuItemLayout(this.menuItems,this.layout)}handleLayoutChange(e){this.setMenuItemLayout(this.menuItems,e)}onMessagesChange(){}effectiveLocaleChange(){u(this,this.effectiveLocale)}connectedCallback(){d(this),f(this)}async componentWillLoad(){r(this),await m(this)}componentDidLoad(){c(this)}disconnectedCallback(){p(this),g(this)}async setFocus(){await l(this),this.el.focus()}calciteInternalNavMenuItemKeyEvent(e){const t=e.target,s=e.detail.children,i=e.detail.event.key;e.stopPropagation(),"ArrowDown"===i?"vertical"===t.layout?h(this.menuItems,t,"next",!1):e.detail.isSubmenuOpen&&s[0].setFocus():"ArrowUp"===i?"vertical"===this.layout?h(this.menuItems,t,"previous",!1):e.detail.isSubmenuOpen&&s[s.length-1].setFocus():"ArrowRight"===i?"horizontal"===this.layout?h(this.menuItems,t,"next",!1):e.detail.isSubmenuOpen&&s[0].setFocus():"ArrowLeft"===i?"horizontal"===this.layout?h(this.menuItems,t,"previous",!1):e.detail.isSubmenuOpen&&this.focusParentElement(e.target):"Escape"===i&&this.focusParentElement(e.target),e.preventDefault()}focusParentElement(e){const t=e.parentElement;t&&(n(t),t.open=!1)}setMenuItemLayout(e,t){e.forEach((e=>{e.layout=t,"menubar"===this.getEffectiveRole()&&(e.isTopLevelItem=!0,e.topLevelMenuLayout=this.layout)}))}getEffectiveRole(){return this.el.getAttribute("role")||"menubar"}render(){return s(i,{key:"6d6065316ef082e9be968dce0b495e42da835655"},s("ul",{key:"6ec873b11665c3e3d5e2c019acd8ac60964119ec","aria-label":this.label,role:this.getEffectiveRole()},s("slot",{key:"9a5593e91faadc44b980f82d75c7cfa87cbb81ce",onSlotchange:this.handleMenuSlotChange})))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{role:["handleGlobalAttributesChanged"],layout:["handleLayoutChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};b.style=":host{display:flex}ul{margin:0px;display:inline-flex;block-size:100%;align-items:center;padding:0px}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}";export{b as calcite_menu}
6
+ import{r as t,f as e,h as s,H as i,g as a}from"./p-6eb37ed2.js";import{e as o,b as h,d as n}from"./p-441f1992.js";import{s as r,a as c,c as l}from"./p-3e828614.js";import{c as d,d as p}from"./p-42552409.js";import{u,c as f,s as m,d as b}from"./p-6e3f1d71.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-1c249530.js";const g=class{constructor(e){t(this,e),this.menuItems=[],this.handleMenuSlotChange=t=>{this.menuItems=o(t),this.setMenuItemLayout(this.menuItems,this.layout)},this.label=void 0,this.layout="horizontal",this.messageOverrides=void 0,this.messages=void 0,this.defaultMessages=void 0,this.effectiveLocale=""}handleGlobalAttributesChanged(){e(this),this.setMenuItemLayout(this.menuItems,this.layout)}handleLayoutChange(t){this.setMenuItemLayout(this.menuItems,t)}onMessagesChange(){}effectiveLocaleChange(){u(this,this.effectiveLocale)}connectedCallback(){d(this),f(this)}async componentWillLoad(){r(this),await m(this)}componentDidLoad(){c(this)}disconnectedCallback(){p(this),b(this)}async setFocus(){await l(this),this.el.focus()}calciteInternalNavMenuItemKeyEvent(t){const e=t.target,s=t.detail.children,i=t.detail.event.key;t.stopPropagation(),"ArrowDown"===i?"vertical"===e.layout?h(this.menuItems,e,"next",!1):t.detail.isSubmenuOpen&&s[0].setFocus():"ArrowUp"===i?"vertical"===this.layout?h(this.menuItems,e,"previous",!1):t.detail.isSubmenuOpen&&s[s.length-1].setFocus():"ArrowRight"===i?"horizontal"===this.layout?h(this.menuItems,e,"next",!1):t.detail.isSubmenuOpen&&s[0].setFocus():"ArrowLeft"===i?"horizontal"===this.layout?h(this.menuItems,e,"previous",!1):t.detail.isSubmenuOpen&&this.focusParentElement(t.target):"Escape"===i&&this.focusParentElement(t.target),t.preventDefault()}focusParentElement(t){const e=t.parentElement;e&&(n(e),e.open=!1)}setMenuItemLayout(t,e){t.forEach((t=>{t.layout=e,"menubar"===this.getEffectiveRole()&&(t.isTopLevelItem=!0,t.topLevelMenuLayout=this.layout)}))}getEffectiveRole(){return this.el.getAttribute("role")||"menubar"}render(){return s(i,{key:"6d6065316ef082e9be968dce0b495e42da835655"},s("ul",{key:"6ec873b11665c3e3d5e2c019acd8ac60964119ec","aria-label":this.label,role:this.getEffectiveRole()},s("slot",{key:"9a5593e91faadc44b980f82d75c7cfa87cbb81ce",onSlotchange:this.handleMenuSlotChange})))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{role:["handleGlobalAttributesChanged"],layout:["handleLayoutChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};g.style=":host{display:flex}ul{margin:0px;display:inline-flex;block-size:100%;align-items:center;padding:0px}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}";export{g as calcite_menu}
@@ -3,15 +3,15 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as e,c as t,h as i,H as o,g as n,a as s}from"./p-6eb37ed2.js";import{e as a,y as c,g as r,s as l,a as d,t as h,B as p}from"./p-c25e8c35.js";import{c as m,d as b}from"./p-f8d23498.js";import{c as u,d as g,u as f,I as k}from"./p-1ce2608d.js";import{C as v}from"./p-8bfa18b7.js";import{g as y}from"./p-27d462c0.js";import"./p-aaa56cbf.js";import"./p-1c249530.js";import"./p-4b9b7778.js";
6
+ import{r as e,c as t,h as i,H as n,g as o}from"./p-6eb37ed2.js";import{d as s,y as c,g as a,s as r,h as l,t as d,B as h}from"./p-441f1992.js";import{c as m,d as f}from"./p-f8d23498.js";import{c as b,d as p,u,I as k}from"./p-1ce2608d.js";import{C as v}from"./p-8bfa18b7.js";import{g}from"./p-27d462c0.js";import"./p-aaa56cbf.js";import"./p-1c249530.js";import"./p-4b9b7778.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
10
10
  * v2.12.2
11
- */function x(e){return"CALCITE-TREE-ITEM"===e?.tagName}const w=class{constructor(i){e(this,i),this.calciteTreeSelect=t(this,"calciteTreeSelect",6),this.keyDownHandler=e=>{if(this.child)return;const t=this.el,i=e.target;if(!x(i)||!this.el.contains(i)||!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End","Tab"].includes(e.key))return;const o=function(e){return Array.from(e.querySelectorAll("calcite-tree-item:not([disabled])")).filter((t=>{let i=t;for(;i!==e&&void 0!==i;){const e=i.parentElement;if(x(e)&&e.hasChildren&&!e.expanded)return!1;i=i.parentElement}return!0}))}(t);if("Tab"!==e.key){if("ArrowDown"===e.key){const t=o.indexOf(i),n=o[t+1];return n?.focus(),void e.preventDefault()}if("ArrowUp"===e.key){const t=o.indexOf(i),n=o[t-1];return n?.focus(),void e.preventDefault()}if("ArrowLeft"===e.key){if(i.hasChildren&&i.expanded)return i.expanded=!1,void e.preventDefault();const t=o.slice(0,o.indexOf(i)).reverse().find((e=>e.depth===i.depth-1));return t?.focus(),void e.preventDefault()}if("ArrowRight"!==e.key)if("Home"!==e.key)if("End"!==e.key);else{const t=o.pop();t&&(t.focus(),e.preventDefault())}else{const t=o.shift();t&&(t.focus(),e.preventDefault())}else if(!i.disabled&&i.hasChildren)if(i.expanded){const t=o.indexOf(i),n=o[t+1];n?.focus(),e.preventDefault()}else i.expanded=!0,e.preventDefault()}else o.forEach((e=>e.tabIndex=-1))},this.lines=!1,this.child=void 0,this.scale="m",this.selectionMode="single",this.selectedItems=[]}componentWillRender(){const e=this.el.parentElement?.closest("calcite-tree");this.lines=e?e.lines:this.lines,this.scale=e?e.scale:this.scale,this.selectionMode=e?e.selectionMode:this.selectionMode,this.child=!!e}render(){return i(o,{key:"bf35df5ec62af45c25800f0a911e0004ac9a0e8f","aria-multiselectable":this.child?void 0:("multiple"===this.selectionMode||"multichildren"===this.selectionMode).toString(),onKeyDown:this.keyDownHandler,role:this.child?void 0:"tree",tabIndex:this.getRootTabIndex()},i("slot",{key:"cff28234e6e4cc20dbeaf714667de2c2facabaf0"}))}onFocus(){if(!this.child){const e=this.el.querySelector("calcite-tree-item[selected]:not([disabled])")||this.el.querySelector("calcite-tree-item:not([disabled])");a(e)}}onFocusIn(e){(e.relatedTarget===this.el||!this.el.contains(e.relatedTarget))&&this.el.removeAttribute("tabindex")}onFocusOut(e){!this.el.contains(e.relatedTarget)&&(this.el.tabIndex=this.getRootTabIndex())}onInternalTreeItemSelect(e){if(this.child)return;const t=e.target,i=c(t.querySelectorAll("calcite-tree-item"));if(e.preventDefault(),e.stopPropagation(),"ancestors"===this.selectionMode)return void this.updateAncestorTree(e);const o="none"===this.selectionMode,n=null!==this.selectionMode&&(!t.hasChildren||t.hasChildren&&("children"===this.selectionMode||"multichildren"===this.selectionMode)),s="multichildren"===this.selectionMode&&t.hasChildren,a=!o&&e.detail.modifyCurrentSelection&&("multiple"===this.selectionMode||"multichildren"===this.selectionMode),r=!a&&(("single"===this.selectionMode||"multiple"===this.selectionMode)&&i.length<=0||"children"===this.selectionMode||"multichildren"===this.selectionMode||"single-persist"===this.selectionMode&&!t.hasChildren),l=["multiple","none","single","single-persist"].includes(this.selectionMode)&&t.hasChildren,d=[];n&&d.push(t),r&&c(this.el.querySelectorAll("calcite-tree-item[selected]")).forEach((e=>{d.includes(e)||(e.selected=!1)})),l&&["multiple","none","single","single-persist"].includes(this.selectionMode)&&(t.expanded=!t.expanded),s&&i.forEach((e=>{e.selected=!1,e.hasChildren&&(e.expanded=!1)})),a&&window.getSelection().removeAllRanges(),a&&t.selected?d.forEach((e=>{e.disabled||(e.selected=!1)})):o||d.forEach((e=>{e.disabled||(e.selected="single"!==this.selectionMode||!e.selected)})),this.selectedItems=o?[]:c(this.el.querySelectorAll("calcite-tree-item")).filter((e=>e.selected)),this.calciteTreeSelect.emit(),e.stopPropagation()}updateAncestorTree(e){const t=e.target,i=e.detail.updateItem;if(t.disabled||t.indeterminate&&!i)return;const o=[];let n=t.parentElement.closest("calcite-tree-item");for(;n;)o.push(n),n=n.parentElement.closest("calcite-tree-item");const s=Array.from(t.querySelectorAll("calcite-tree-item:not([disabled])")),a=s.filter((e=>!e.hasChildren)),r=s.filter((e=>e.hasChildren));let l;function d(e,t){const i=e.filter((e=>e.selected)),o=e.filter((e=>!e.selected));t.selected=i.length===e.length,t.indeterminate=i.length>0&&o.length>0}l=i?t.hasChildren?!(t.selected||t.indeterminate):!t.selected:t.selected,a.forEach((e=>{e.selected=l,e.indeterminate=!1})),r.reverse().forEach((e=>{d(Array.from(e.querySelectorAll(":scope > calcite-tree > calcite-tree-item")),e)})),i&&(t.hasChildren?d(s,t):(t.selected=l,t.indeterminate=!1)),o.forEach((e=>{const t=c(e.querySelectorAll("calcite-tree-item")),i=t.filter((e=>e.selected));if(0===i.length)return e.selected=!1,void(e.indeterminate=!1);const o=i.length<t.length;e.indeterminate=o,e.selected=!o})),this.selectedItems=c(this.el.querySelectorAll("calcite-tree-item")).filter((e=>e.selected)),i&&this.calciteTreeSelect.emit()}getRootTabIndex(){return this.child?-1:0}get el(){return n(this)}};w.style=":host{display:block}:host(:focus){outline:2px solid transparent;outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}";
11
+ */function x(e){return"CALCITE-TREE-ITEM"===e?.tagName}const y=class{constructor(i){e(this,i),this.calciteTreeSelect=t(this,"calciteTreeSelect",6),this.keyDownHandler=e=>{if(this.child)return;const t=this.el,i=e.target;if(!x(i)||!this.el.contains(i)||!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End","Tab"].includes(e.key))return;const n=function(e){return Array.from(e.querySelectorAll("calcite-tree-item:not([disabled])")).filter((t=>{let i=t;for(;i!==e&&void 0!==i;){const e=i.parentElement;if(x(e)&&e.hasChildren&&!e.expanded)return!1;i=i.parentElement}return!0}))}(t);if("Tab"!==e.key){if("ArrowDown"===e.key){const t=n.indexOf(i),o=n[t+1];return o?.focus(),void e.preventDefault()}if("ArrowUp"===e.key){const t=n.indexOf(i),o=n[t-1];return o?.focus(),void e.preventDefault()}if("ArrowLeft"===e.key){if(i.hasChildren&&i.expanded)return i.expanded=!1,void e.preventDefault();const t=n.slice(0,n.indexOf(i)).reverse().find((e=>e.depth===i.depth-1));return t?.focus(),void e.preventDefault()}if("ArrowRight"!==e.key)if("Home"!==e.key)if("End"!==e.key);else{const t=n.pop();t&&(t.focus(),e.preventDefault())}else{const t=n.shift();t&&(t.focus(),e.preventDefault())}else if(!i.disabled&&i.hasChildren)if(i.expanded){const t=n.indexOf(i),o=n[t+1];o?.focus(),e.preventDefault()}else i.expanded=!0,e.preventDefault()}else n.forEach((e=>e.tabIndex=-1))},this.lines=!1,this.child=void 0,this.scale="m",this.selectionMode="single",this.selectedItems=[]}componentWillRender(){const e=this.el.parentElement?.closest("calcite-tree");this.lines=e?e.lines:this.lines,this.scale=e?e.scale:this.scale,this.selectionMode=e?e.selectionMode:this.selectionMode,this.child=!!e}render(){return i(n,{key:"bf35df5ec62af45c25800f0a911e0004ac9a0e8f","aria-multiselectable":this.child?void 0:("multiple"===this.selectionMode||"multichildren"===this.selectionMode).toString(),onKeyDown:this.keyDownHandler,role:this.child?void 0:"tree",tabIndex:this.getRootTabIndex()},i("slot",{key:"cff28234e6e4cc20dbeaf714667de2c2facabaf0"}))}onFocus(){if(!this.child){const e=this.el.querySelector("calcite-tree-item[selected]:not([disabled])")||this.el.querySelector("calcite-tree-item:not([disabled])");s(e)}}onFocusIn(e){(e.relatedTarget===this.el||!this.el.contains(e.relatedTarget))&&this.el.removeAttribute("tabindex")}onFocusOut(e){!this.el.contains(e.relatedTarget)&&(this.el.tabIndex=this.getRootTabIndex())}onInternalTreeItemSelect(e){if(this.child)return;const t=e.target,i=c(t.querySelectorAll("calcite-tree-item"));if(e.preventDefault(),e.stopPropagation(),"ancestors"===this.selectionMode)return void this.updateAncestorTree(e);const n="none"===this.selectionMode,o=null!==this.selectionMode&&(!t.hasChildren||t.hasChildren&&("children"===this.selectionMode||"multichildren"===this.selectionMode)),s="multichildren"===this.selectionMode&&t.hasChildren,a=!n&&e.detail.modifyCurrentSelection&&("multiple"===this.selectionMode||"multichildren"===this.selectionMode),r=!a&&(("single"===this.selectionMode||"multiple"===this.selectionMode)&&i.length<=0||"children"===this.selectionMode||"multichildren"===this.selectionMode||"single-persist"===this.selectionMode&&!t.hasChildren),l=["multiple","none","single","single-persist"].includes(this.selectionMode)&&t.hasChildren,d=[];o&&d.push(t),r&&c(this.el.querySelectorAll("calcite-tree-item[selected]")).forEach((e=>{d.includes(e)||(e.selected=!1)})),l&&["multiple","none","single","single-persist"].includes(this.selectionMode)&&(t.expanded=!t.expanded),s&&i.forEach((e=>{e.selected=!1,e.hasChildren&&(e.expanded=!1)})),a&&window.getSelection().removeAllRanges(),a&&t.selected?d.forEach((e=>{e.disabled||(e.selected=!1)})):n||d.forEach((e=>{e.disabled||(e.selected="single"!==this.selectionMode||!e.selected)})),this.selectedItems=n?[]:c(this.el.querySelectorAll("calcite-tree-item")).filter((e=>e.selected)),this.calciteTreeSelect.emit(),e.stopPropagation()}updateAncestorTree(e){const t=e.target,i=e.detail.updateItem;if(t.disabled||t.indeterminate&&!i)return;const n=[];let o=t.parentElement.closest("calcite-tree-item");for(;o;)n.push(o),o=o.parentElement.closest("calcite-tree-item");const s=Array.from(t.querySelectorAll("calcite-tree-item:not([disabled])")),a=s.filter((e=>!e.hasChildren)),r=s.filter((e=>e.hasChildren));let l;function d(e,t){const i=e.filter((e=>e.selected)),n=e.filter((e=>!e.selected));t.selected=i.length===e.length,t.indeterminate=i.length>0&&n.length>0}l=i?t.hasChildren?!(t.selected||t.indeterminate):!t.selected:t.selected,a.forEach((e=>{e.selected=l,e.indeterminate=!1})),r.reverse().forEach((e=>{d(Array.from(e.querySelectorAll(":scope > calcite-tree > calcite-tree-item")),e)})),i&&(t.hasChildren?d(s,t):(t.selected=l,t.indeterminate=!1)),n.forEach((e=>{const t=c(e.querySelectorAll("calcite-tree-item")),i=t.filter((e=>e.selected));if(0===i.length)return e.selected=!1,void(e.indeterminate=!1);const n=i.length<t.length;e.indeterminate=n,e.selected=!n})),this.selectedItems=c(this.el.querySelectorAll("calcite-tree-item")).filter((e=>e.selected)),i&&this.calciteTreeSelect.emit()}getRootTabIndex(){return this.child?-1:0}get el(){return o(this)}};y.style=":host{display:block}:host(:focus){outline:2px solid transparent;outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}";
12
12
  /*!
13
13
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
14
14
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
15
15
  * v2.12.2
16
16
  */
17
- const z="bullet-point",A="checkmark",j="chevron",I="children-container",S="item--expanded",C="node-container",T="children",E="bullet-point",D="check",R=class{constructor(i){e(this,i),this.calciteInternalTreeItemSelect=t(this,"calciteInternalTreeItemSelect",6),this.iconClickHandler=e=>{e.stopPropagation(),this.expanded=!this.expanded},this.childrenClickHandler=e=>e.stopPropagation(),this.userChangedValue=!1,this.updateParentIsExpanded=(e,t)=>{r(e,T,{all:!0,selector:"calcite-tree-item"}).forEach((e=>e.parentExpanded=t))},this.actionsEndSlotChangeHandler=e=>{this.hasEndActions=l(e)},this.disabled=!1,this.label=void 0,this.expanded=!1,this.iconFlipRtl=void 0,this.iconStart=void 0,this.selected=!1,this.parentExpanded=!1,this.depth=-1,this.hasChildren=null,this.lines=void 0,this.scale=void 0,this.indeterminate=!1,this.selectionMode=void 0,this.hasEndActions=!1,this.updateAfterInitialRender=!1}expandedHandler(e){this.updateParentIsExpanded(this.el,e)}handleSelectedChange(e){"ancestors"!==this.selectionMode||this.userChangedValue||(e&&(this.indeterminate=!1),this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:!0,updateItem:!1}))}getSelectionMode(){this.isSelectionMultiLike="multiple"===this.selectionMode||"multichildren"===this.selectionMode}connectedCallback(){if(this.parentTreeItem=this.el.parentElement?.closest("calcite-tree-item"),this.parentTreeItem){const{expanded:e}=this.parentTreeItem;this.updateParentIsExpanded(this.parentTreeItem,e)}m(this),u(this)}disconnectedCallback(){b(this),g(this)}componentWillRender(){this.hasChildren=!!this.el.querySelector("calcite-tree"),this.depth=0;let e,t=this.el.closest("calcite-tree");if(t)for(this.selectionMode=t.selectionMode,this.scale=t.scale||"m",this.lines=t.lines;t&&(e=t.parentElement?.closest("calcite-tree"),e!==t);)t=e,this.depth=this.depth+1}componentWillLoad(){requestAnimationFrame((()=>this.updateAfterInitialRender=!0))}componentDidLoad(){this.updateAncestorTree()}componentDidRender(){f(this)}render(){const e="rtl"===d(this.el),t="single"===this.selectionMode||"children"===this.selectionMode||"single-persist"===this.selectionMode,n="multiple"===this.selectionMode||"multichildren"===this.selectionMode,s="none"===this.selectionMode&&!this.hasChildren,a=this.hasChildren&&this.indeterminate,c=this.hasChildren?i("calcite-icon",{class:{[j]:!0,[v.rtl]:e},"data-test-id":"icon",icon:"chevron-right",onClick:this.iconClickHandler,scale:y(this.scale)}):null,r=i("slot",{key:"default-slot"}),l="ancestors"===this.selectionMode?i("div",{class:"checkbox-container"},i("calcite-icon",{class:"checkbox",icon:this.selected?"check-square-f":a?"minus-square-f":"square",scale:y(this.scale)}),i("label",{class:"checkbox-label"},r)):null,p=t?E:n?D:s?"blank":null,m=p?i("calcite-icon",{class:{[z]:p===E,[A]:p===D,[v.rtl]:e},icon:p,scale:y(this.scale)}):null,b=!(this.parentExpanded||1===this.depth),u=this.updateAfterInitialRender&&this.expanded,{hasEndActions:g}=this,f=i("slot",{key:"actionsEndSlot",name:"actions-end",onSlotchange:this.actionsEndSlotChangeHandler}),x=i("calcite-icon",{key:"72784b82d479a4aa782b95bd198ded6f5e6e78a9",class:"icon-start",flipRtl:"start"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconStart,scale:y(this.scale)});return i(o,{key:"6671da841c7970480cc35c492ddcf0e486dc029f","aria-checked":"multiple"===this.selectionMode||"multichildren"===this.selectionMode||"ancestors"===this.selectionMode?h(this.selected):void 0,"aria-expanded":this.hasChildren?h(u):void 0,"aria-hidden":h(b),"aria-live":"polite","aria-selected":"single"===this.selectionMode||"children"===this.selectionMode||"single-persist"===this.selectionMode?h(this.selected):void 0,"calcite-hydrated-hidden":b,role:"treeitem",tabIndex:this.disabled?-1:0},i(k,{key:"152e8d19db10b36fe8727be17f082d773fb4cf09",disabled:this.disabled},i("div",{key:"8c8733c4b1baac1848ec46a3b8820d1dabf5ac43",class:{[S]:u}},i("div",{key:"6e3b101ca30ebe415a9733b6972c7dfae39df37f",class:"node-actions-container"},i("div",{key:"285fbcc2d1539313c63aeff3f1d8c511c0a5b865",class:{[C]:!0,[v.rtl]:e},"data-selection-mode":this.selectionMode,ref:e=>this.defaultSlotWrapper=e},c,m,this.iconStart?x:null,l||r),i("div",{key:"47ce5bcccc12bb85815706fdea4cf2c230fb9a44",class:"actions-end",hidden:!g,ref:e=>this.actionSlotWrapper=e},f)),i("div",{key:"3b307110b4ed213c3be5dcd923a05deafba1db5c",class:{[I]:!0,[v.rtl]:e},"data-test-id":"calcite-tree-children",onClick:this.childrenClickHandler,role:this.hasChildren?"group":void 0},i("slot",{key:"df26d502672e8ec2b946adcfe11e4115ae514887",name:T})))))}onClick(e){if(this.disabled||this.isActionEndEvent(e))return;const[t]=p(this.el,"a");t&&"a"!==e.composedPath()[0].tagName.toLowerCase()&&window.open(t.href,""===t.target?"_self":t.target),this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:"ancestors"===this.selectionMode||this.isSelectionMultiLike,updateItem:!0}),this.userChangedValue=!0}keyDownHandler(e){if(!this.isActionEndEvent(e)&&!e.defaultPrevented)switch(e.key){case" ":this.userChangedValue=!0,this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,updateItem:!0}),e.preventDefault();break;case"Enter":{const t=Array.from(this.el.children).find((e=>e.matches("a")));this.userChangedValue=!0,t?(t.click(),this.selected=!0):this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,updateItem:!0}),e.preventDefault()}}}isActionEndEvent(e){return e.composedPath().includes(this.actionSlotWrapper)}updateAncestorTree(){const e=this.parentTreeItem;if("ancestors"===this.selectionMode&&e)if(this.selected){const t=this.el.parentElement,i=Array.from(t?.children),o=i.filter((e=>e.selected));i.length===o.length?(e.selected=!0,e.indeterminate=!1):o.length>0&&(e.indeterminate=!0),Array.from(this.el.querySelectorAll("calcite-tree-item:not([disabled])")).forEach((e=>{e.selected=!0,e.indeterminate=!1}))}else this.indeterminate&&(this.parentTreeItem.indeterminate=!0)}get el(){return n(this)}static get watchers(){return{expanded:["expandedHandler"],selected:["handleSelectedChange"],selectionMode:["getSelectionMode"]}}};R.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;max-inline-size:100%;cursor:pointer;color:var(--calcite-color-text-3)}.node-actions-container{display:flex}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .node-actions-container{min-block-size:1.5rem}:host([scale=s]) .node-actions-container .node-container .checkbox,:host([scale=s]) .node-actions-container .node-container .checkmark,:host([scale=s]) .node-actions-container .node-container .bullet-point{margin-inline:0.25rem}:host([scale=s]) .node-actions-container .node-container .icon-start{margin-inline:0.75rem}:host([scale=s]) .node-actions-container .node-container .chevron{padding:0.25rem}:host([scale=m]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .node-actions-container{min-block-size:2rem}:host([scale=m]) .node-actions-container .node-container .checkbox,:host([scale=m]) .node-actions-container .node-container .checkmark,:host([scale=m]) .node-actions-container .node-container .bullet-point{margin-inline:0.5rem}:host([scale=m]) .node-actions-container .node-container .icon-start{margin-inline:0.75rem}:host([scale=m]) .node-actions-container .node-container .chevron{padding:0.5rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .node-actions-container{min-block-size:2.75rem}:host([scale=l]) .node-actions-container .node-container .checkbox,:host([scale=l]) .node-actions-container .node-container .checkmark,:host([scale=l]) .node-actions-container .node-container .bullet-point{margin-inline:0.75rem}:host([scale=l]) .node-actions-container .node-container .icon-start{margin-inline:0.75rem}:host([scale=l]) .node-actions-container .node-container .chevron{padding-inline:var(--calcite-size-md);padding-block:var(--calcite-size-sm-plus)}:host([lines]) .children-container::after{position:absolute;inset-block-start:0px;z-index:var(--calcite-z-index);inline-size:1px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:96%;content:"";background-color:var(--calcite-color-border-2)}:host(:not([lines])) .node-container::after{display:none}::slotted(*){min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none !important}::slotted(*):hover{text-decoration:none !important}::slotted(a){inline-size:100%;text-decoration-line:none}:host{outline:2px solid transparent;outline-offset:2px}:host .node-container{outline-color:transparent}:host:focus .node-container,:host:active .node-container{outline:2px solid var(--calcite-ui-focus-color, 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:not([disabled])) .node-container{outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-ui-focus-color, 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:not([disabled])) .checkbox{outline:2px solid transparent;outline-offset:2px}.actions-end{display:flex;flex-direction:row;align-items:center;align-self:stretch}.checkbox-container{display:flex;align-items:center}.checkbox{line-height:0;color:var(--calcite-color-border-input)}.checkbox-label{pointer-events:none;display:flex;align-items:center}.children-container{position:relative;block-size:0px;transform-origin:top;overflow:hidden;opacity:0;margin-inline-start:1.25rem;transform:scaleY(0);transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}.item--expanded>.children-container{overflow:visible;opacity:1;transform:none;block-size:auto}.node-container{position:relative;display:flex;min-inline-size:0px;flex-grow:1;align-items:center}.node-container .checkmark,.node-container .bullet-point{opacity:0;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-color-border-1)}.node-container:hover .checkmark,.node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark,:host([selected]) .node-container:hover .bullet-point,:host(:focus:not([disabled])) .node-container .checkmark,:host(:focus:not([disabled])) .node-container .bullet-point{opacity:1}:host([selected]) .node-container,:host([selected]) .node-container:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}:host([selected]) .node-container .bullet-point,:host([selected]) .node-container .checkmark,:host([selected]) .node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark{opacity:1;color:var(--calcite-color-brand)}:host([selection-mode=none]:not([has-children])):host([scale=s]) .node-container{padding-inline-start:0.5rem}:host([selection-mode=none]:not([has-children])):host([scale=m]) .node-container{padding-inline-start:1rem}:host([selection-mode=none]:not([has-children])):host([scale=l]) .node-container{padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=s]) .node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.25rem}:host(:not([has-children])):host([scale=m]) .node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=l]) .node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.75rem}:host([has-children]) .node-container[data-selection-mode=ancestors] .checkbox{margin-inline-start:0}:host([has-children]) .node-container .bullet-point,:host([has-children]) .node-container .checkmark{display:none}.chevron{position:relative;align-self:center;color:var(--calcite-color-text-3);transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;flex:0 0 auto;transform:rotate(0deg)}.calcite--rtl .chevron{transform:rotate(180deg)}.item--expanded .node-container>.chevron{transform:rotate(90deg)}:host([selected]) .checkmark,:host([selected]) .bullet-point{color:var(--calcite-color-brand)}:host([selected]) .checkbox{color:var(--calcite-color-brand)}:host([has-children][indeterminate]) .checkbox{color:var(--calcite-color-brand)}:host([hidden]){display:none}[hidden]{display:none}';const L=class{constructor(t){e(this,t),this.isPortal=!1,this.type="",this.typeKeywords=[]}get el(){return n(this)}render(){return i("div",{key:"b09dad770feb6278f79ffb9351e8907bfc9ab71c",title:this.type},i("img",{key:"58f68fa8835383382fa7d9bcf86f597e2557868b",class:"item-type-icon item-type-icon-margin",height:"16",src:this._getIconUrl(this.type,this.typeKeywords),width:"16"}))}_getIconUrl(e,t){const i=e&&e.toLowerCase()||"";let o=!1,n=!1,a=!1,c=!1,r=!1,l=!1,d="";return t=t||[],i.indexOf("service")>0||"feature collection"===i||"kml"===i||"wms"===i||"wmts"===i||"wfs"===i?(o=t.indexOf("Hosted Service")>-1,"feature service"===i||"feature collection"===i||"kml"===i||"wfs"===i?(c=t.indexOf("Table")>-1,n=t.indexOf("Route Layer")>-1,a=t.indexOf("Markup")>-1,r=-1!==t.indexOf("Spatiotemporal"),d=r&&c?"spatiotemporaltable":c?"table":n?"routelayer":a?"markup":r?"spatiotemporal":o?"featureshosted":"features"):"map service"===i||"wms"===i||"wmts"===i?(r=-1!==t.indexOf("Spatiotemporal"),l=-1!==t.indexOf("Relational"),d=r||l?"mapimages":o||t.indexOf("Tiled")>-1||"wmts"===i?"maptiles":"mapimages"):d="scene service"===i?t.indexOf("Line")>-1?"sceneweblayerline":t.indexOf("3DObject")>-1?"sceneweblayermultipatch":t.indexOf("Point")>-1?"sceneweblayerpoint":t.indexOf("IntegratedMesh")>-1?"sceneweblayermesh":t.indexOf("PointCloud")>-1?"sceneweblayerpointcloud":t.indexOf("Polygon")>-1?"sceneweblayerpolygon":t.indexOf("Building")>-1?"sceneweblayerbuilding":"sceneweblayer":"image service"===i?t.indexOf("Elevation 3D Layer")>-1?"elevationlayer":t.indexOf("Tiled Imagery")>-1?"tiledimagerylayer":"imagery":"stream service"===i?"streamlayer":"vector tile service"===i?"vectortile":"datastore catalog service"===i?"datastorecollection":"geocoding service"===i?"geocodeservice":"geoprocessing service"===i&&t.indexOf("Web Tool")>-1&&this.isPortal?"tool":"layers"):d="web map"===i||"cityengine web scene"===i?"maps":"web scene"===i?t.indexOf("ViewingMode-Local")>-1?"webscenelocal":"websceneglobal":"web mapping application"===i||"mobile application"===i||"application"===i||"operation view"===i||"desktop application"===i?"apps":"map document"===i||"map package"===i||"published map"===i||"scene document"===i||"globe document"===i||"basemap package"===i||"mobile basemap package"===i||"mobile map package"===i||"project package"===i||"project template"===i||"pro map"===i||"layout"===i||"layer"===i&&t.indexOf("ArcGIS Pro")>-1||"explorer map"===i&&t.indexOf("Explorer Document")?"mapsgray":"service definition"===i||"csv"===i||"shapefile"===i||"cad drawing"===i||"geojson"===i||"360 vr experience"===i||"netcdf"===i||"administrative report"===i?"datafiles":"explorer add in"===i||"desktop add in"===i||"windows viewer add in"===i||"windows viewer configuration"===i?"appsgray":"arcgis pro add in"===i||"arcgis pro configuration"===i?"addindesktop":"rule package"===i||"file geodatabase"===i||"sqlite geodatabase"===i||"csv collection"===i||"kml collection"===i||"windows mobile package"===i||"map template"===i||"desktop application template"===i||"gml"===i||"arcpad package"===i||"code sample"===i||"form"===i||"document link"===i||"operations dashboard add in"===i||"rules package"===i||"image"===i||"workflow manager package"===i||"explorer map"===i&&t.indexOf("Explorer Mapping Application")>-1||t.indexOf("Document")>-1?"datafilesgray":"network analysis service"===i||"geoprocessing service"===i||"geodata service"===i||"geometry service"===i||"geoprocessing package"===i||"locator package"===i||"geoprocessing sample"===i||"workflow manager service"===i?"toolsgray":"layer"===i||"layer package"===i||"explorer layer"===i?"layersgray":"scene package"===i?"scenepackage":"mobile scene package"===i?"mobilescenepackage":"tile package"===i||"compact tile package"===i?"tilepackage":"task file"===i?"taskfile":"report template"===i?"report-template":"statistical data collection"===i?"statisticaldatacollection":"insights workbook"===i?"workbook":"insights model"===i?"insightsmodel":"insights page"===i?"insightspage":"insights theme"===i?"insightstheme":"hub initiative"===i?"hubinitiative":"hub page"===i?"hubpage":"hub site application"===i?"hubsite":"hub event"===i?"hubevent":"relational database connection"===i?"relationaldatabaseconnection":"big data file share"===i?"datastorecollection":"image collection"===i?"imagecollection":"desktop style"===i?"desktopstyle":"style"===i?"style":"dashboard"===i?"dashboard":"raster function template"===i?"rasterprocessingtemplate":"vector tile package"===i?"vectortilepackage":"ortho mapping project"===i?"orthomappingproject":"ortho mapping template"===i?"orthomappingtemplate":"solution"===i?"solutions":"geopackage"===i?"geopackage":"deep learning package"===i?"deeplearningpackage":"real time analytic"===i?"realtimeanalytics":"big data analytic"===i?"bigdataanalytics":"feed"===i?"feed":"excalibur imagery project"===i?"excaliburimageryproject":"notebook"===i?"notebook":"storymap"===i?"storymap":"survey123 add in"===i?"survey123addin":"mission"===i?"mission":"mission report"===i?"missionreport":"quickcapture project"===i?"quickcaptureproject":"pro report"===i?"proreport":"urban model"===i?"urbanmodel":"web experience"===i?"experiencebuilder":"web experience template"===i?"webexperiencetemplate":"workflow"===i?"workflow":"kernel gateway connection"===i?"kernelgatewayconnection":"insights script"===i?"insightsscript":"hub initiative template"===i?"hubinitiativetemplate":"storymap theme"===i?"storymaptheme":"group"===i?"group":"maps",d?s("./item-icons/"+d+"16.png"):null}static get assetsDirs(){return["item-icons"]}};L.style=".item-type-icon{pointer-events:none;display:block;height:1rem;margin-top:0.15em !important;min-width:16px;fill:currentColor;transform:rotate(360deg)}.item-type-icon-margin{margin-inline-end:0.375rem}";export{w as calcite_tree,R as calcite_tree_item,L as solution_item_icon}
17
+ const z="bullet-point",w="checkmark",A="chevron",I="children-container",C="item--expanded",S="node-container",E="children",T="bullet-point",j="check",R=class{constructor(i){e(this,i),this.calciteInternalTreeItemSelect=t(this,"calciteInternalTreeItemSelect",6),this.iconClickHandler=e=>{e.stopPropagation(),this.expanded=!this.expanded},this.childrenClickHandler=e=>e.stopPropagation(),this.userChangedValue=!1,this.updateParentIsExpanded=(e,t)=>{a(e,E,{all:!0,selector:"calcite-tree-item"}).forEach((e=>e.parentExpanded=t))},this.actionsEndSlotChangeHandler=e=>{this.hasEndActions=r(e)},this.disabled=!1,this.label=void 0,this.expanded=!1,this.iconFlipRtl=void 0,this.iconStart=void 0,this.selected=!1,this.parentExpanded=!1,this.depth=-1,this.hasChildren=null,this.lines=void 0,this.scale=void 0,this.indeterminate=!1,this.selectionMode=void 0,this.hasEndActions=!1,this.updateAfterInitialRender=!1}expandedHandler(e){this.updateParentIsExpanded(this.el,e)}handleSelectedChange(e){"ancestors"!==this.selectionMode||this.userChangedValue||(e&&(this.indeterminate=!1),this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:!0,updateItem:!1}))}getSelectionMode(){this.isSelectionMultiLike="multiple"===this.selectionMode||"multichildren"===this.selectionMode}connectedCallback(){if(this.parentTreeItem=this.el.parentElement?.closest("calcite-tree-item"),this.parentTreeItem){const{expanded:e}=this.parentTreeItem;this.updateParentIsExpanded(this.parentTreeItem,e)}m(this),b(this)}disconnectedCallback(){f(this),p(this)}componentWillRender(){this.hasChildren=!!this.el.querySelector("calcite-tree"),this.depth=0;let e,t=this.el.closest("calcite-tree");if(t)for(this.selectionMode=t.selectionMode,this.scale=t.scale||"m",this.lines=t.lines;t&&(e=t.parentElement?.closest("calcite-tree"),e!==t);)t=e,this.depth=this.depth+1}componentWillLoad(){requestAnimationFrame((()=>this.updateAfterInitialRender=!0))}componentDidLoad(){this.updateAncestorTree()}componentDidRender(){u(this)}render(){const e="rtl"===l(this.el),t="single"===this.selectionMode||"children"===this.selectionMode||"single-persist"===this.selectionMode,o="multiple"===this.selectionMode||"multichildren"===this.selectionMode,s="none"===this.selectionMode&&!this.hasChildren,c=this.hasChildren&&this.indeterminate,a=this.hasChildren?i("calcite-icon",{class:{[A]:!0,[v.rtl]:e},"data-test-id":"icon",icon:"chevron-right",onClick:this.iconClickHandler,scale:g(this.scale)}):null,r=i("slot",{key:"default-slot"}),h="ancestors"===this.selectionMode?i("div",{class:"checkbox-container"},i("calcite-icon",{class:"checkbox",icon:this.selected?"check-square-f":c?"minus-square-f":"square",scale:g(this.scale)}),i("label",{class:"checkbox-label"},r)):null,m=t?T:o?j:s?"blank":null,f=m?i("calcite-icon",{class:{[z]:m===T,[w]:m===j,[v.rtl]:e},icon:m,scale:g(this.scale)}):null,b=!(this.parentExpanded||1===this.depth),p=this.updateAfterInitialRender&&this.expanded,{hasEndActions:u}=this,x=i("slot",{key:"actionsEndSlot",name:"actions-end",onSlotchange:this.actionsEndSlotChangeHandler}),y=i("calcite-icon",{key:"72784b82d479a4aa782b95bd198ded6f5e6e78a9",class:"icon-start",flipRtl:"start"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconStart,scale:g(this.scale)});return i(n,{key:"6671da841c7970480cc35c492ddcf0e486dc029f","aria-checked":"multiple"===this.selectionMode||"multichildren"===this.selectionMode||"ancestors"===this.selectionMode?d(this.selected):void 0,"aria-expanded":this.hasChildren?d(p):void 0,"aria-hidden":d(b),"aria-live":"polite","aria-selected":"single"===this.selectionMode||"children"===this.selectionMode||"single-persist"===this.selectionMode?d(this.selected):void 0,"calcite-hydrated-hidden":b,role:"treeitem",tabIndex:this.disabled?-1:0},i(k,{key:"152e8d19db10b36fe8727be17f082d773fb4cf09",disabled:this.disabled},i("div",{key:"8c8733c4b1baac1848ec46a3b8820d1dabf5ac43",class:{[C]:p}},i("div",{key:"6e3b101ca30ebe415a9733b6972c7dfae39df37f",class:"node-actions-container"},i("div",{key:"285fbcc2d1539313c63aeff3f1d8c511c0a5b865",class:{[S]:!0,[v.rtl]:e},"data-selection-mode":this.selectionMode,ref:e=>this.defaultSlotWrapper=e},a,f,this.iconStart?y:null,h||r),i("div",{key:"47ce5bcccc12bb85815706fdea4cf2c230fb9a44",class:"actions-end",hidden:!u,ref:e=>this.actionSlotWrapper=e},x)),i("div",{key:"3b307110b4ed213c3be5dcd923a05deafba1db5c",class:{[I]:!0,[v.rtl]:e},"data-test-id":"calcite-tree-children",onClick:this.childrenClickHandler,role:this.hasChildren?"group":void 0},i("slot",{key:"df26d502672e8ec2b946adcfe11e4115ae514887",name:E})))))}onClick(e){if(this.disabled||this.isActionEndEvent(e))return;const[t]=h(this.el,"a");t&&"a"!==e.composedPath()[0].tagName.toLowerCase()&&window.open(t.href,""===t.target?"_self":t.target),this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:"ancestors"===this.selectionMode||this.isSelectionMultiLike,updateItem:!0}),this.userChangedValue=!0}keyDownHandler(e){if(!this.isActionEndEvent(e)&&!e.defaultPrevented)switch(e.key){case" ":this.userChangedValue=!0,this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,updateItem:!0}),e.preventDefault();break;case"Enter":{const t=Array.from(this.el.children).find((e=>e.matches("a")));this.userChangedValue=!0,t?(t.click(),this.selected=!0):this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,updateItem:!0}),e.preventDefault()}}}isActionEndEvent(e){return e.composedPath().includes(this.actionSlotWrapper)}updateAncestorTree(){const e=this.parentTreeItem;if("ancestors"===this.selectionMode&&e)if(this.selected){const t=this.el.parentElement,i=Array.from(t?.children),n=i.filter((e=>e.selected));i.length===n.length?(e.selected=!0,e.indeterminate=!1):n.length>0&&(e.indeterminate=!0),Array.from(this.el.querySelectorAll("calcite-tree-item:not([disabled])")).forEach((e=>{e.selected=!0,e.indeterminate=!1}))}else this.indeterminate&&(this.parentTreeItem.indeterminate=!0)}get el(){return o(this)}static get watchers(){return{expanded:["expandedHandler"],selected:["handleSelectedChange"],selectionMode:["getSelectionMode"]}}};R.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;max-inline-size:100%;cursor:pointer;color:var(--calcite-color-text-3)}.node-actions-container{display:flex}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .node-actions-container{min-block-size:1.5rem}:host([scale=s]) .node-actions-container .node-container .checkbox,:host([scale=s]) .node-actions-container .node-container .checkmark,:host([scale=s]) .node-actions-container .node-container .bullet-point{margin-inline:0.25rem}:host([scale=s]) .node-actions-container .node-container .icon-start{margin-inline:0.75rem}:host([scale=s]) .node-actions-container .node-container .chevron{padding:0.25rem}:host([scale=m]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .node-actions-container{min-block-size:2rem}:host([scale=m]) .node-actions-container .node-container .checkbox,:host([scale=m]) .node-actions-container .node-container .checkmark,:host([scale=m]) .node-actions-container .node-container .bullet-point{margin-inline:0.5rem}:host([scale=m]) .node-actions-container .node-container .icon-start{margin-inline:0.75rem}:host([scale=m]) .node-actions-container .node-container .chevron{padding:0.5rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .node-actions-container{min-block-size:2.75rem}:host([scale=l]) .node-actions-container .node-container .checkbox,:host([scale=l]) .node-actions-container .node-container .checkmark,:host([scale=l]) .node-actions-container .node-container .bullet-point{margin-inline:0.75rem}:host([scale=l]) .node-actions-container .node-container .icon-start{margin-inline:0.75rem}:host([scale=l]) .node-actions-container .node-container .chevron{padding-inline:var(--calcite-size-md);padding-block:var(--calcite-size-sm-plus)}:host([lines]) .children-container::after{position:absolute;inset-block-start:0px;z-index:var(--calcite-z-index);inline-size:1px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:96%;content:"";background-color:var(--calcite-color-border-2)}:host(:not([lines])) .node-container::after{display:none}::slotted(*){min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none !important}::slotted(*):hover{text-decoration:none !important}::slotted(a){inline-size:100%;text-decoration-line:none}:host{outline:2px solid transparent;outline-offset:2px}:host .node-container{outline-color:transparent}:host:focus .node-container,:host:active .node-container{outline:2px solid var(--calcite-ui-focus-color, 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:not([disabled])) .node-container{outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-ui-focus-color, 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:not([disabled])) .checkbox{outline:2px solid transparent;outline-offset:2px}.actions-end{display:flex;flex-direction:row;align-items:center;align-self:stretch}.checkbox-container{display:flex;align-items:center}.checkbox{line-height:0;color:var(--calcite-color-border-input)}.checkbox-label{pointer-events:none;display:flex;align-items:center}.children-container{position:relative;block-size:0px;transform-origin:top;overflow:hidden;opacity:0;margin-inline-start:1.25rem;transform:scaleY(0);transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}.item--expanded>.children-container{overflow:visible;opacity:1;transform:none;block-size:auto}.node-container{position:relative;display:flex;min-inline-size:0px;flex-grow:1;align-items:center}.node-container .checkmark,.node-container .bullet-point{opacity:0;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-color-border-1)}.node-container:hover .checkmark,.node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark,:host([selected]) .node-container:hover .bullet-point,:host(:focus:not([disabled])) .node-container .checkmark,:host(:focus:not([disabled])) .node-container .bullet-point{opacity:1}:host([selected]) .node-container,:host([selected]) .node-container:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}:host([selected]) .node-container .bullet-point,:host([selected]) .node-container .checkmark,:host([selected]) .node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark{opacity:1;color:var(--calcite-color-brand)}:host([selection-mode=none]:not([has-children])):host([scale=s]) .node-container{padding-inline-start:0.5rem}:host([selection-mode=none]:not([has-children])):host([scale=m]) .node-container{padding-inline-start:1rem}:host([selection-mode=none]:not([has-children])):host([scale=l]) .node-container{padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=s]) .node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.25rem}:host(:not([has-children])):host([scale=m]) .node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=l]) .node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.75rem}:host([has-children]) .node-container[data-selection-mode=ancestors] .checkbox{margin-inline-start:0}:host([has-children]) .node-container .bullet-point,:host([has-children]) .node-container .checkmark{display:none}.chevron{position:relative;align-self:center;color:var(--calcite-color-text-3);transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;flex:0 0 auto;transform:rotate(0deg)}.calcite--rtl .chevron{transform:rotate(180deg)}.item--expanded .node-container>.chevron{transform:rotate(90deg)}:host([selected]) .checkmark,:host([selected]) .bullet-point{color:var(--calcite-color-brand)}:host([selected]) .checkbox{color:var(--calcite-color-brand)}:host([has-children][indeterminate]) .checkbox{color:var(--calcite-color-brand)}:host([hidden]){display:none}[hidden]{display:none}';export{y as calcite_tree,R as calcite_tree_item}
@@ -3,9 +3,9 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as e,c as t,h as o,g as i}from"./p-6eb37ed2.js";import{c as n,d as a}from"./p-f8d23498.js";import{z as s,g as c}from"./p-c25e8c35.js";import{s as l,a as r,c as d}from"./p-3e828614.js";import{c as h,d as p}from"./p-304cef31.js";import{c as g,d as m,s as f,u as b}from"./p-1017609e.js";import{K as k}from"./p-744d9575.js";import{o as u}from"./p-79f5a8be.js";import{g as v}from"./p-27d462c0.js";import"./p-1c249530.js";import"./p-4b9b7778.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-64a34d92.js";
6
+ import{r as t,c as e,h as o,g as i}from"./p-6eb37ed2.js";import{c as n,d as a}from"./p-f8d23498.js";import{z as s,g as c}from"./p-441f1992.js";import{s as l,a as r,c as d}from"./p-3e828614.js";import{c as h,d as p}from"./p-42552409.js";import{c as g,d as m,s as f,u as b}from"./p-6e3f1d71.js";import{K as k}from"./p-744d9575.js";import{o as u}from"./p-16261018.js";import{g as v}from"./p-27d462c0.js";import"./p-1c249530.js";import"./p-4b9b7778.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-64a34d92.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
10
10
  * v2.12.2
11
- */const x="actions-end",w=class{constructor(o){e(this,o),this.calciteNoticeBeforeClose=t(this,"calciteNoticeBeforeClose",6),this.calciteNoticeBeforeOpen=t(this,"calciteNoticeBeforeOpen",6),this.calciteNoticeClose=t(this,"calciteNoticeClose",6),this.calciteNoticeOpen=t(this,"calciteNoticeOpen",6),this.setTransitionEl=e=>{this.transitionEl=e},this.close=()=>{this.open=!1},this.openTransitionProp="opacity",this.open=!1,this.kind="brand",this.closable=!1,this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.width="auto",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}openHandler(){u(this)}onMessagesChange(){}updateRequestedIcon(){this.requestedIcon=s(k,this.icon,this.kind)}connectedCallback(){n(this),h(this),g(this)}disconnectedCallback(){a(this),p(this),m(this)}async componentWillLoad(){l(this),this.requestedIcon=s(k,this.icon,this.kind),await f(this),this.open&&u(this)}componentDidLoad(){r(this)}render(){const{el:e}=this,t=o("button",{key:"e1ec4828ecbafbba66480994b7ffe3afeb3c9753","aria-label":this.messages.close,class:"notice-close",onClick:this.close,ref:e=>this.closeButton=e},o("calcite-icon",{key:"de50d43c230545b200d47539dfbd5be5b73e52d0",icon:"x",scale:v(this.scale)})),i=c(e,x);return o("div",{key:"c57ca2818fd2ad1982fd3a8ed6415d9128c600a7",class:"container",ref:this.setTransitionEl},this.requestedIcon?o("div",{class:"notice-icon"},o("calcite-icon",{flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:v(this.scale)})):null,o("div",{key:"21f12ae09a6a63ead2c992013f594770d13f8dbc",class:"notice-content"},o("slot",{key:"ed278d0ab08c60e492e019a362380e087a33f3fb",name:"title"}),o("slot",{key:"d442f6b53b5f6002c3bee92376405fc4bca2778c",name:"message"}),o("slot",{key:"5f3da8bf6b6a3b87aa45d417ebf514918b8b2b5b",name:"link"})),i?o("div",{class:"actions-end"},o("slot",{name:x})):null,this.closable?t:null)}async setFocus(){await d(this);const e=this.el.querySelector("calcite-link");if(this.closeButton||e)return e?e.setFocus():void(this.closeButton&&this.closeButton.focus())}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}effectiveLocaleChange(){b(this,this.effectiveLocale)}static get assetsDirs(){return["assets"]}get el(){return i(this)}static get watchers(){return{open:["openHandler"],messageOverrides:["onMessagesChange"],icon:["updateRequestedIcon"],kind:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}}};w.style=":host([scale=s]){--calcite-notice-spacing-token-small:0.5rem;--calcite-notice-spacing-token-large:0.75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:0.5rem}:host([scale=m]){--calcite-notice-spacing-token-small:0.75rem;--calcite-notice-spacing-token-large:1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small:1rem;--calcite-notice-spacing-token-large:1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width:auto}:host([width=half]){--calcite-notice-width:50%}:host([width=full]){--calcite-notice-width:100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;background-color:var(--calcite-color-foreground-1);opacity:0;max-block-size:0;transition-property:opacity, max-block-size;transition-duration:var(--calcite-animation-timing);text-align:start;border-inline-start:var(--calcite-border-width-md) solid;box-shadow:0 0 0 0 transparent}.notice-close{outline-color:transparent}.notice-close:focus{outline:2px solid var(--calcite-ui-focus-color, 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{display:flex}:host([open]) .container{pointer-events:auto;max-block-size:100%;align-items:center;opacity:1;--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)}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0px;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0px;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);margin-inline-end:var(--calcite-notice-spacing-token-small)}.notice-content{box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.notice-close:active{background-color:var(--calcite-color-foreground-3)}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-color:var(--calcite-color-brand)}:host([kind=brand]) .container .notice-icon{color:var(--calcite-color-brand)}:host([kind=info]) .container{border-color:var(--calcite-color-status-info)}:host([kind=info]) .container .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger]) .container{border-color:var(--calcite-color-status-danger)}:host([kind=danger]) .container .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success]) .container{border-color:var(--calcite-color-status-success)}:host([kind=success]) .container .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning]) .container{border-color:var(--calcite-color-status-warning)}:host([kind=warning]) .container .notice-icon{color:var(--calcite-color-status-warning)}:host([hidden]){display:none}[hidden]{display:none}";export{w as calcite_notice}
11
+ */const x="actions-end",w=class{constructor(o){t(this,o),this.calciteNoticeBeforeClose=e(this,"calciteNoticeBeforeClose",6),this.calciteNoticeBeforeOpen=e(this,"calciteNoticeBeforeOpen",6),this.calciteNoticeClose=e(this,"calciteNoticeClose",6),this.calciteNoticeOpen=e(this,"calciteNoticeOpen",6),this.setTransitionEl=t=>{this.transitionEl=t},this.close=()=>{this.open=!1},this.openTransitionProp="opacity",this.open=!1,this.kind="brand",this.closable=!1,this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.width="auto",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}openHandler(){u(this)}onMessagesChange(){}updateRequestedIcon(){this.requestedIcon=s(k,this.icon,this.kind)}connectedCallback(){n(this),h(this),g(this)}disconnectedCallback(){a(this),p(this),m(this)}async componentWillLoad(){l(this),this.requestedIcon=s(k,this.icon,this.kind),await f(this),this.open&&u(this)}componentDidLoad(){r(this)}render(){const{el:t}=this,e=o("button",{key:"e1ec4828ecbafbba66480994b7ffe3afeb3c9753","aria-label":this.messages.close,class:"notice-close",onClick:this.close,ref:t=>this.closeButton=t},o("calcite-icon",{key:"de50d43c230545b200d47539dfbd5be5b73e52d0",icon:"x",scale:v(this.scale)})),i=c(t,x);return o("div",{key:"c57ca2818fd2ad1982fd3a8ed6415d9128c600a7",class:"container",ref:this.setTransitionEl},this.requestedIcon?o("div",{class:"notice-icon"},o("calcite-icon",{flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:v(this.scale)})):null,o("div",{key:"21f12ae09a6a63ead2c992013f594770d13f8dbc",class:"notice-content"},o("slot",{key:"ed278d0ab08c60e492e019a362380e087a33f3fb",name:"title"}),o("slot",{key:"d442f6b53b5f6002c3bee92376405fc4bca2778c",name:"message"}),o("slot",{key:"5f3da8bf6b6a3b87aa45d417ebf514918b8b2b5b",name:"link"})),i?o("div",{class:"actions-end"},o("slot",{name:x})):null,this.closable?e:null)}async setFocus(){await d(this);const t=this.el.querySelector("calcite-link");if(this.closeButton||t)return t?t.setFocus():void(this.closeButton&&this.closeButton.focus())}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}effectiveLocaleChange(){b(this,this.effectiveLocale)}static get assetsDirs(){return["assets"]}get el(){return i(this)}static get watchers(){return{open:["openHandler"],messageOverrides:["onMessagesChange"],icon:["updateRequestedIcon"],kind:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}}};w.style=":host([scale=s]){--calcite-notice-spacing-token-small:0.5rem;--calcite-notice-spacing-token-large:0.75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:0.5rem}:host([scale=m]){--calcite-notice-spacing-token-small:0.75rem;--calcite-notice-spacing-token-large:1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small:1rem;--calcite-notice-spacing-token-large:1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width:auto}:host([width=half]){--calcite-notice-width:50%}:host([width=full]){--calcite-notice-width:100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;background-color:var(--calcite-color-foreground-1);opacity:0;max-block-size:0;transition-property:opacity, max-block-size;transition-duration:var(--calcite-animation-timing);text-align:start;border-inline-start:var(--calcite-border-width-md) solid;box-shadow:0 0 0 0 transparent}.notice-close{outline-color:transparent}.notice-close:focus{outline:2px solid var(--calcite-ui-focus-color, 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{display:flex}:host([open]) .container{pointer-events:auto;max-block-size:100%;align-items:center;opacity:1;--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)}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0px;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0px;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);margin-inline-end:var(--calcite-notice-spacing-token-small)}.notice-content{box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.notice-close:active{background-color:var(--calcite-color-foreground-3)}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-color:var(--calcite-color-brand)}:host([kind=brand]) .container .notice-icon{color:var(--calcite-color-brand)}:host([kind=info]) .container{border-color:var(--calcite-color-status-info)}:host([kind=info]) .container .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger]) .container{border-color:var(--calcite-color-status-danger)}:host([kind=danger]) .container .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success]) .container{border-color:var(--calcite-color-status-success)}:host([kind=success]) .container .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning]) .container{border-color:var(--calcite-color-status-warning)}:host([kind=warning]) .container .notice-icon{color:var(--calcite-color-status-warning)}:host([hidden]){display:none}[hidden]{display:none}";export{w as calcite_notice}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{d as e}from"./p-924ec704.js";import"./p-6eb37ed2.js";import"./p-66b01781.js";import"./p-c25e8c35.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-7c854814.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-304cef31.js";import"./p-1c249530.js";import"./p-c40b0ec5.js";import"./p-0ef9d36b.js";import"./p-f6f2018a.js";import"./p-d9e930c8.js";import"./p-1017609e.js";import"./p-ef67c743.js";import"./p-14f027b5.js";function r(e){return e>1&&e<5&&1!=~~(e/10)}function t(e,t,s,n){var m=e+" ";switch(s){case"s":return t||n?"pár sekund":"pár sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?m+(r(e)?"minuty":"minut"):m+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?m+(r(e)?"hodiny":"hodin"):m+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?m+(r(e)?"dny":"dní"):m+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":return t||n?m+(r(e)?"měsíce":"měsíců"):m+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?m+(r(e)?"roky":"let"):m+"lety"}}var s={name:"cs",weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),months:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),monthsShort:"led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"před %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t}};e.locale(s,null,!0);export{s as default}
6
+ import{d as e}from"./p-b3b042df.js";import"./p-6eb37ed2.js";import"./p-54fa7a94.js";import"./p-441f1992.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-fd730974.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-42552409.js";import"./p-1c249530.js";import"./p-4182a628.js";import"./p-0ef9d36b.js";import"./p-abc30e04.js";import"./p-d9e930c8.js";import"./p-6e3f1d71.js";import"./p-ef67c743.js";import"./p-14f027b5.js";function r(e){return e>1&&e<5&&1!=~~(e/10)}function t(e,t,s,n){var m=e+" ";switch(s){case"s":return t||n?"pár sekund":"pár sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?m+(r(e)?"minuty":"minut"):m+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?m+(r(e)?"hodiny":"hodin"):m+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?m+(r(e)?"dny":"dní"):m+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":return t||n?m+(r(e)?"měsíce":"měsíců"):m+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?m+(r(e)?"roky":"let"):m+"lety"}}var s={name:"cs",weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),months:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),monthsShort:"led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"před %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t}};e.locale(s,null,!0);export{s as default}