@esri/solutions-components 0.10.23 → 0.10.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (471) 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-action-pad_2.cjs.entry.js +2 -2
  3. package/dist/cjs/calcite-alert_5.cjs.entry.js +2 -2
  4. package/dist/cjs/calcite-block_5.cjs.entry.js +5 -7
  5. package/dist/cjs/{calcite-carousel.cjs.entry.js → calcite-carousel_2.cjs.entry.js} +52 -18
  6. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +6 -6
  7. package/dist/cjs/{calcite-tree_3.cjs.entry.js → calcite-tree_2.cjs.entry.js} +0 -317
  8. package/dist/cjs/card-manager_3.cjs.entry.js +4 -4
  9. package/dist/cjs/{downloadUtils-470f6a27.js → downloadUtils-17f08e5e.js} +235 -160
  10. package/dist/cjs/feature-list.cjs.entry.js +2 -2
  11. package/dist/cjs/{index.es-6387d8fb.js → index.es-2518dd41.js} +36 -47
  12. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +106 -0
  13. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +3 -3
  14. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
  15. package/dist/cjs/instant-apps-export-views.cjs.entry.js +1 -1
  16. package/dist/cjs/instant-apps-export.cjs.entry.js +1 -1
  17. package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
  18. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +8 -3
  19. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +1 -1
  20. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +2 -2
  21. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +7 -7
  22. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +1 -1
  23. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
  24. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +3 -3
  25. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +34 -14
  26. package/dist/cjs/instant-apps-measurement.cjs.entry.js +1 -1
  27. package/dist/cjs/instant-apps-popover.cjs.entry.js +1 -1
  28. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +1 -1
  29. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +1 -1
  30. package/dist/cjs/instant-apps-splash.cjs.entry.js +1 -1
  31. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +59 -29
  32. package/dist/cjs/loader.cjs.js +1 -1
  33. package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
  34. package/dist/cjs/{popupUtils-c38f840d.js → popupUtils-24306e6b.js} +1 -1
  35. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  36. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
  37. package/dist/cjs/solution-item-accordion.cjs.entry.js +233 -0
  38. package/dist/cjs/solution-item-icon.cjs.entry.js +328 -0
  39. package/dist/cjs/solutions-components.cjs.js +1 -1
  40. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  41. package/dist/cjs/{utils-9343bd5b.js → utils-62072741.js} +23 -0
  42. package/dist/collection/assets/t9n/solution-item-accordion/resources.json +3 -0
  43. package/dist/collection/assets/t9n/solution-item-accordion/resources_en.json +3 -0
  44. package/dist/collection/collection-manifest.json +2 -0
  45. package/dist/collection/components/layer-table/layer-table.js +3 -3
  46. package/dist/collection/components/solution-item-accordion/solution-item-accordion.css +23 -0
  47. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +287 -0
  48. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  49. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  50. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  51. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  52. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  53. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  54. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  55. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  56. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  57. package/dist/collection/demos/solution-item-accordion.html +345 -0
  58. package/dist/collection/utils/interfaces.ts +11 -0
  59. package/dist/{esm/calcite-accordion-item.entry.js → components/accordion-item.js} +47 -16
  60. package/dist/{esm/calcite-accordion.entry.js → components/accordion.js} +36 -10
  61. package/dist/components/calcite-accordion-item.js +1 -222
  62. package/dist/components/calcite-accordion.js +1 -110
  63. package/dist/components/calcite-carousel-item.js +1 -54
  64. package/dist/components/calcite-carousel.js +1 -517
  65. package/dist/{esm/calcite-carousel-item.entry.js → components/carousel-item.js} +28 -9
  66. package/dist/{esm/calcite-carousel.entry.js → components/carousel.js} +76 -19
  67. package/dist/components/downloadUtils.js +234 -159
  68. package/dist/components/index.es.js +35 -46
  69. package/dist/components/instant-apps-app-guide.js +184 -0
  70. package/dist/components/instant-apps-ckeditor-wrapper2.js +1 -1
  71. package/dist/components/instant-apps-control-panel.js +1 -1
  72. package/dist/components/instant-apps-export-views.js +1 -1
  73. package/dist/components/instant-apps-export.js +1 -1
  74. package/dist/components/instant-apps-filter-list2.js +3 -5
  75. package/dist/components/instant-apps-header2.js +1 -1
  76. package/dist/components/instant-apps-interactive-legend-classic2.js +8 -3
  77. package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +2 -2
  78. package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +2 -2
  79. package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +1 -1
  80. package/dist/components/instant-apps-interactive-legend-layer-element2.js +2 -2
  81. package/dist/components/instant-apps-interactive-legend-legend-element2.js +1 -1
  82. package/dist/components/instant-apps-interactive-legend-relationship2.js +2 -2
  83. package/dist/components/instant-apps-keyboard-shortcuts.js +1 -1
  84. package/dist/components/instant-apps-landing-page.js +1 -1
  85. package/dist/components/instant-apps-language-switcher.js +3 -3
  86. package/dist/components/instant-apps-language-translator-item2.js +1 -1
  87. package/dist/components/instant-apps-language-translator-search2.js +1 -1
  88. package/dist/components/instant-apps-language-translator2.js +33 -13
  89. package/dist/components/instant-apps-measurement-tool2.js +2 -2
  90. package/dist/components/instant-apps-measurement.js +1 -1
  91. package/dist/components/instant-apps-popover.js +1 -1
  92. package/dist/components/instant-apps-scoreboard.js +1 -1
  93. package/dist/components/instant-apps-sign-in2.js +1 -1
  94. package/dist/components/instant-apps-social-share2.js +2 -2
  95. package/dist/components/instant-apps-splash.js +1 -1
  96. package/dist/components/instant-apps-time-filter.js +59 -29
  97. package/dist/components/layer-table2.js +3 -3
  98. package/dist/components/solution-item-accordion.d.ts +11 -0
  99. package/dist/components/solution-item-accordion.js +336 -0
  100. package/dist/components/solution-item-details2.js +1 -1
  101. package/dist/components/solution-item-icon2.js +1 -1
  102. package/dist/components/solution-item-sharing2.js +1 -1
  103. package/dist/components/solution-organization-variables2.js +1 -1
  104. package/dist/components/solution-resource-item2.js +1 -1
  105. package/dist/components/solution-spatial-ref2.js +1 -1
  106. package/dist/components/solution-template-data2.js +1 -1
  107. package/dist/components/solution-variables2.js +1 -1
  108. package/dist/components/spatial-ref.js +1 -1
  109. package/dist/components/utils4.js +22 -1
  110. package/dist/esm/{ExpandToggle-b5147279.js → ExpandToggle-076b4360.js} +1 -1
  111. package/dist/esm/{ar-e0e64e78.js → ar-3e3c0d14.js} +8 -8
  112. package/dist/esm/{bg-d2d8dbe0.js → bg-a872736b.js} +8 -8
  113. package/dist/esm/{bs-d883901d.js → bs-fe545c28.js} +8 -8
  114. package/dist/esm/buffer-tools_3.entry.js +1 -1
  115. package/dist/esm/{ca-064729ad.js → ca-8a2abdaa.js} +8 -8
  116. package/dist/esm/calcite-accordion_2.entry.js +279 -0
  117. package/dist/esm/calcite-action-bar.entry.js +4 -4
  118. package/dist/esm/calcite-action-group.entry.js +3 -3
  119. package/dist/esm/calcite-action-menu_2.entry.js +3 -3
  120. package/dist/esm/calcite-action-pad_2.entry.js +6 -6
  121. package/dist/esm/calcite-action_2.entry.js +6 -6
  122. package/dist/esm/calcite-alert_5.entry.js +6 -6
  123. package/dist/esm/calcite-avatar.entry.js +1 -1
  124. package/dist/esm/calcite-block-section.entry.js +3 -3
  125. package/dist/esm/calcite-block_5.entry.js +14 -16
  126. package/dist/esm/calcite-button.entry.js +5 -5
  127. package/dist/esm/calcite-card-group.entry.js +1 -1
  128. package/dist/esm/calcite-card.entry.js +3 -3
  129. package/dist/esm/calcite-carousel_2.entry.js +500 -0
  130. package/dist/esm/calcite-checkbox.entry.js +3 -3
  131. package/dist/esm/calcite-chip-group.entry.js +1 -1
  132. package/dist/esm/calcite-chip_2.entry.js +4 -4
  133. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
  134. package/dist/esm/calcite-color-picker.entry.js +3 -3
  135. package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
  136. package/dist/esm/calcite-combobox_3.entry.js +8 -8
  137. package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
  138. package/dist/esm/calcite-dialog.entry.js +5 -5
  139. package/dist/esm/calcite-dropdown_2.entry.js +3 -3
  140. package/dist/esm/calcite-fab.entry.js +1 -1
  141. package/dist/esm/calcite-filter_5.entry.js +3 -3
  142. package/dist/esm/calcite-graph_2.entry.js +4 -4
  143. package/dist/esm/calcite-icon_2.entry.js +2 -2
  144. package/dist/esm/calcite-inline-editable.entry.js +4 -4
  145. package/dist/esm/calcite-input-number.entry.js +5 -5
  146. package/dist/esm/calcite-input-text.entry.js +5 -5
  147. package/dist/esm/{calcite-input-time-picker-66e7a9f3.js → calcite-input-time-picker-2fbabd28.js} +56 -56
  148. package/dist/esm/calcite-input-time-picker.entry.js +8 -8
  149. package/dist/esm/calcite-input-time-zone.entry.js +5 -5
  150. package/dist/esm/calcite-input_2.entry.js +5 -5
  151. package/dist/esm/calcite-label.entry.js +2 -2
  152. package/dist/esm/calcite-link.entry.js +1 -1
  153. package/dist/esm/calcite-menu-item.entry.js +3 -3
  154. package/dist/esm/calcite-menu.entry.js +3 -3
  155. package/dist/esm/calcite-meter.entry.js +3 -3
  156. package/dist/esm/calcite-modal_3.entry.js +5 -5
  157. package/dist/esm/calcite-navigation.entry.js +1 -1
  158. package/dist/esm/calcite-notice.entry.js +4 -4
  159. package/dist/esm/calcite-option_2.entry.js +3 -3
  160. package/dist/esm/calcite-pagination.entry.js +3 -3
  161. package/dist/esm/calcite-pick-list-group.entry.js +1 -1
  162. package/dist/esm/calcite-pick-list-item.entry.js +3 -3
  163. package/dist/esm/calcite-pick-list.entry.js +2 -2
  164. package/dist/esm/calcite-radio-button-group.entry.js +1 -1
  165. package/dist/esm/calcite-radio-button.entry.js +3 -3
  166. package/dist/esm/calcite-rating.entry.js +5 -5
  167. package/dist/esm/calcite-scrim.entry.js +3 -3
  168. package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
  169. package/dist/esm/calcite-sheet.entry.js +3 -3
  170. package/dist/esm/calcite-shell-center-row.entry.js +1 -1
  171. package/dist/esm/calcite-shell-panel_14.entry.js +10 -10
  172. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  173. package/dist/esm/calcite-stepper-item.entry.js +3 -3
  174. package/dist/esm/calcite-stepper.entry.js +3 -3
  175. package/dist/esm/calcite-switch.entry.js +3 -3
  176. package/dist/esm/calcite-table-cell_2.entry.js +3 -3
  177. package/dist/esm/calcite-table-row.entry.js +1 -1
  178. package/dist/esm/calcite-table.entry.js +3 -3
  179. package/dist/esm/calcite-text-area.entry.js +5 -5
  180. package/dist/esm/calcite-tile-group.entry.js +1 -1
  181. package/dist/esm/calcite-tile.entry.js +1 -1
  182. package/dist/esm/calcite-time-picker.entry.js +4 -4
  183. package/dist/esm/calcite-tip-manager.entry.js +3 -3
  184. package/dist/esm/calcite-tip.entry.js +3 -3
  185. package/dist/esm/calcite-tooltip.entry.js +3 -3
  186. package/dist/esm/{calcite-tree_3.entry.js → calcite-tree_2.entry.js} +3 -319
  187. package/dist/esm/card-manager_3.entry.js +4 -4
  188. package/dist/esm/{cs-3751e560.js → cs-f9bfb6dd.js} +8 -8
  189. package/dist/esm/{da-227f8ad5.js → da-0528de8d.js} +8 -8
  190. package/dist/esm/{date-87a67cb4.js → date-f0c83d13.js} +1 -1
  191. package/dist/esm/{de-at-66232b80.js → de-at-c7c45014.js} +8 -8
  192. package/dist/esm/{de-ch-1264ed4c.js → de-ch-e9338f1b.js} +8 -8
  193. package/dist/esm/{de-a5d2b25b.js → de-d149b983.js} +8 -8
  194. package/dist/esm/{dom-63d2d41c.js → dom-42a638f6.js} +1 -1
  195. package/dist/esm/{downloadUtils-d1f791c5.js → downloadUtils-4a34c86a.js} +235 -160
  196. package/dist/esm/{el-f5bf7ca3.js → el-d86fff8e.js} +8 -8
  197. package/dist/esm/{en-au-2ac8f62e.js → en-au-e722c119.js} +8 -8
  198. package/dist/esm/{en-ca-a1602b49.js → en-ca-8f38a3b8.js} +8 -8
  199. package/dist/esm/{en-gb-28354b2e.js → en-gb-24dd064c.js} +8 -8
  200. package/dist/esm/{es-feb7aad2.js → es-39a9e113.js} +8 -8
  201. package/dist/esm/{es-mx-5d64f899.js → es-mx-fa0cbd42.js} +8 -8
  202. package/dist/esm/{et-173d2f49.js → et-51eabe80.js} +8 -8
  203. package/dist/esm/feature-list.entry.js +2 -2
  204. package/dist/esm/{fi-ff9bb719.js → fi-64ca8666.js} +8 -8
  205. package/dist/esm/{floating-ui-c7ae81d9.js → floating-ui-a14930d0.js} +1 -1
  206. package/dist/esm/{focusTrapComponent-833b1234.js → focusTrapComponent-c1def619.js} +1 -1
  207. package/dist/esm/{form-08e1bcb7.js → form-46367137.js} +1 -1
  208. package/dist/esm/{fr-ch-491f1abe.js → fr-ch-6fe6a6e6.js} +8 -8
  209. package/dist/esm/{fr-e3af6835.js → fr-e20306bf.js} +8 -8
  210. package/dist/esm/{he-47aa8dde.js → he-32ec6cce.js} +8 -8
  211. package/dist/esm/{hi-1700df3e.js → hi-da2b085c.js} +8 -8
  212. package/dist/esm/{hr-68b828f5.js → hr-5a52222a.js} +8 -8
  213. package/dist/esm/{hu-df6a8f29.js → hu-d3bbacef.js} +8 -8
  214. package/dist/esm/{id-8091582d.js → id-dcdac250.js} +8 -8
  215. package/dist/esm/{index.es-decad494.js → index.es-5f44061b.js} +36 -47
  216. package/dist/esm/instant-apps-app-guide.entry.js +102 -0
  217. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +3 -3
  218. package/dist/esm/instant-apps-control-panel.entry.js +1 -1
  219. package/dist/esm/instant-apps-export-views.entry.js +1 -1
  220. package/dist/esm/instant-apps-export.entry.js +1 -1
  221. package/dist/esm/instant-apps-header.entry.js +1 -1
  222. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +8 -3
  223. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +1 -1
  224. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +2 -2
  225. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +7 -7
  226. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +1 -1
  227. package/dist/esm/instant-apps-landing-page.entry.js +1 -1
  228. package/dist/esm/instant-apps-language-switcher.entry.js +3 -3
  229. package/dist/esm/instant-apps-language-translator.entry.js +34 -14
  230. package/dist/esm/instant-apps-measurement.entry.js +1 -1
  231. package/dist/esm/instant-apps-popover.entry.js +1 -1
  232. package/dist/esm/instant-apps-scoreboard.entry.js +1 -1
  233. package/dist/esm/instant-apps-sign-in.entry.js +1 -1
  234. package/dist/esm/instant-apps-splash.entry.js +1 -1
  235. package/dist/esm/instant-apps-time-filter.entry.js +59 -29
  236. package/dist/esm/{it-1f5e149d.js → it-360f430f.js} +8 -8
  237. package/dist/esm/{it-ch-bf7fcac6.js → it-ch-0ec68776.js} +8 -8
  238. package/dist/esm/{ja-a5117166.js → ja-a95cae4c.js} +8 -8
  239. package/dist/esm/{ko-9d7a9e79.js → ko-f0edd78f.js} +8 -8
  240. package/dist/esm/{label-4c4e06d6.js → label-f2ec1100.js} +1 -1
  241. package/dist/esm/loader.js +1 -1
  242. package/dist/esm/{locale-4441c976.js → locale-a53a7bc6.js} +1 -1
  243. package/dist/esm/{lt-2e1c53de.js → lt-bff432da.js} +8 -8
  244. package/dist/esm/{lv-ca1ba866.js → lv-0c7edf32.js} +8 -8
  245. package/dist/esm/map-select-tools_3.entry.js +1 -1
  246. package/dist/esm/{mk-421d0d41.js → mk-876446b8.js} +8 -8
  247. package/dist/esm/{nb-5b103e32.js → nb-25537e87.js} +8 -8
  248. package/dist/esm/{nl-eac33461.js → nl-8be84da3.js} +8 -8
  249. package/dist/esm/{openCloseComponent-c8c8645b.js → openCloseComponent-9d44719e.js} +1 -1
  250. package/dist/esm/{pl-03531ccb.js → pl-8d4fe5a7.js} +8 -8
  251. package/dist/esm/{popupUtils-4e0a103f.js → popupUtils-3ccb86bd.js} +1 -1
  252. package/dist/esm/{pt-br-dee45728.js → pt-br-3015e62b.js} +8 -8
  253. package/dist/esm/{pt-b5d8bffc.js → pt-dcc887b4.js} +8 -8
  254. package/dist/esm/public-notification.entry.js +1 -1
  255. package/dist/esm/{ro-df6cb584.js → ro-b973c654.js} +8 -8
  256. package/dist/esm/{ru-e7c02faa.js → ru-59a7f10b.js} +8 -8
  257. package/dist/esm/{shared-list-render-cadae2eb.js → shared-list-render-097ee366.js} +1 -1
  258. package/dist/esm/{sk-cae387d2.js → sk-a00e5b97.js} +8 -8
  259. package/dist/esm/{sl-2892ad87.js → sl-55c8a748.js} +8 -8
  260. package/dist/esm/solution-contents_3.entry.js +1 -1
  261. package/dist/esm/solution-item-accordion.entry.js +229 -0
  262. package/dist/esm/solution-item-icon.entry.js +324 -0
  263. package/dist/esm/solutions-components.js +1 -1
  264. package/dist/esm/spatial-ref.entry.js +1 -1
  265. package/dist/esm/{sr-11e6839f.js → sr-e4fc3293.js} +8 -8
  266. package/dist/esm/{sv-fd5c6ca5.js → sv-f0782d2a.js} +8 -8
  267. package/dist/esm/{t9n-b7ea1a61.js → t9n-b33c486a.js} +1 -1
  268. package/dist/esm/{th-170cf6b1.js → th-d2abb499.js} +8 -8
  269. package/dist/esm/{time-a7f1020b.js → time-f99aceff.js} +1 -1
  270. package/dist/esm/{tr-1d6ca382.js → tr-512413e1.js} +8 -8
  271. package/dist/esm/{uk-35eec84e.js → uk-79fe44f1.js} +8 -8
  272. package/dist/esm/{utils-6493bff2.js → utils-6f13e31e.js} +22 -1
  273. package/dist/esm/{utils-62514064.js → utils-d67a6d71.js} +1 -1
  274. package/dist/esm/{vi-2713ee26.js → vi-53b51e7a.js} +8 -8
  275. package/dist/esm/{zh-cn-ed066014.js → zh-cn-7d19a53a.js} +8 -8
  276. package/dist/esm/{zh-hk-a118dced.js → zh-hk-4fb6c3eb.js} +8 -8
  277. package/dist/esm/{zh-tw-c9bbf220.js → zh-tw-6a5d2c2b.js} +8 -8
  278. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-app-guide/instant-apps-app-guide.css +75 -0
  279. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator.css +16 -0
  280. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources.json +3 -0
  281. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_en.json +3 -0
  282. package/dist/solutions-components/demos/solution-item-accordion.html +345 -0
  283. package/dist/solutions-components/p-022d51db.js +6 -0
  284. package/dist/solutions-components/{p-cd5a9034.entry.js → p-030e5077.entry.js} +1 -1
  285. package/dist/solutions-components/{p-92ba99ff.js → p-03f3cf77.js} +1 -1
  286. package/dist/solutions-components/{p-fb3e0eae.js → p-03ffbb1b.js} +1 -1
  287. package/dist/solutions-components/{p-ee9b7fab.js → p-0a1a9ff1.js} +1 -1
  288. package/dist/solutions-components/p-0a64be62.js +6 -0
  289. package/dist/solutions-components/{p-bb0f549a.js → p-0ded20f0.js} +1 -1
  290. package/dist/solutions-components/{p-f6f2018a.js → p-12be6545.js} +1 -1
  291. package/dist/solutions-components/{p-da80cfbc.entry.js → p-1692858b.entry.js} +1 -1
  292. package/dist/solutions-components/{p-c40b0ec5.js → p-174aa4da.js} +1 -1
  293. package/dist/solutions-components/{p-222e0445.entry.js → p-1826154b.entry.js} +1 -1
  294. package/dist/solutions-components/{p-8c6a301f.entry.js → p-18307307.entry.js} +2 -2
  295. package/dist/solutions-components/{p-c163b67f.js → p-1a047db6.js} +1 -1
  296. package/dist/solutions-components/{p-5067d77e.entry.js → p-1c5f17cb.entry.js} +1 -1
  297. package/dist/solutions-components/{p-01dae909.js → p-1df2d94d.js} +1 -1
  298. package/dist/solutions-components/{p-64bf4d2e.entry.js → p-216ae423.entry.js} +1 -1
  299. package/dist/solutions-components/{p-7586e1de.entry.js → p-219f0273.entry.js} +1 -1
  300. package/dist/solutions-components/{p-ae8ed06a.entry.js → p-283e344a.entry.js} +1 -1
  301. package/dist/solutions-components/{p-691cb5f4.js → p-290dee0b.js} +2 -2
  302. package/dist/solutions-components/{p-91b7a7dc.entry.js → p-2a059548.entry.js} +1 -1
  303. package/dist/solutions-components/{p-8da5aeea.entry.js → p-2bb9b365.entry.js} +1 -1
  304. package/dist/solutions-components/{p-7c854814.js → p-2caf1f94.js} +2 -2
  305. package/dist/solutions-components/{p-919e9de7.entry.js → p-2cb47eff.entry.js} +2 -2
  306. package/dist/solutions-components/{p-e5736093.entry.js → p-2d2b06db.entry.js} +1 -1
  307. package/dist/solutions-components/{p-de8121a4.js → p-2d2dcf8a.js} +1 -1
  308. package/dist/solutions-components/{p-9bc84681.js → p-2d5e428d.js} +1 -1
  309. package/dist/solutions-components/{p-508b2b7b.js → p-2e7d005f.js} +1 -1
  310. package/dist/solutions-components/{p-bc6cf10f.entry.js → p-3016bf77.entry.js} +1 -1
  311. package/dist/solutions-components/{p-08d1cc1f.js → p-3244e59a.js} +1 -1
  312. package/dist/solutions-components/{p-66b01781.js → p-365169c2.js} +2 -2
  313. package/dist/solutions-components/{p-245c35ce.js → p-372e4640.js} +1 -1
  314. package/dist/solutions-components/p-374d0fdc.entry.js +6 -0
  315. package/dist/solutions-components/p-39e9ae5c.entry.js +6 -0
  316. package/dist/solutions-components/p-3d6f8c9e.entry.js +29 -0
  317. package/dist/solutions-components/{p-458a3f01.entry.js → p-3de85f54.entry.js} +1 -1
  318. package/dist/solutions-components/{p-c7046172.entry.js → p-3e9a487b.entry.js} +2 -2
  319. package/dist/solutions-components/{p-7b2ef872.entry.js → p-42710186.entry.js} +1 -1
  320. package/dist/solutions-components/{p-c5facecd.entry.js → p-44270ade.entry.js} +1 -1
  321. package/dist/solutions-components/{p-d1cc620f.entry.js → p-47398e76.entry.js} +1 -1
  322. package/dist/solutions-components/{p-d784f756.entry.js → p-4881885b.entry.js} +3 -3
  323. package/dist/solutions-components/{p-5a76a4c8.entry.js → p-496b7a1f.entry.js} +1 -1
  324. package/dist/solutions-components/{p-9db30b19.entry.js → p-4aafcac7.entry.js} +1 -1
  325. package/dist/solutions-components/{p-2aa44a02.entry.js → p-4cfe3d80.entry.js} +2 -2
  326. package/dist/solutions-components/{p-cf9e6515.entry.js → p-4feaf7db.entry.js} +2 -2
  327. package/dist/solutions-components/{p-a37d1b17.entry.js → p-50323300.entry.js} +1 -1
  328. package/dist/solutions-components/{p-5f705984.js → p-50ab7903.js} +1 -1
  329. package/dist/solutions-components/{p-960a4993.entry.js → p-50c2d3e5.entry.js} +1 -1
  330. package/dist/solutions-components/{p-712873f0.js → p-50e2a33b.js} +1 -1
  331. package/dist/solutions-components/{p-54b7e680.js → p-51abfcb7.js} +1 -1
  332. package/dist/solutions-components/{p-25b5ffea.js → p-524a996f.js} +1 -1
  333. package/dist/solutions-components/{p-02ea30d1.entry.js → p-54879c84.entry.js} +1 -1
  334. package/dist/solutions-components/{p-23dd68de.entry.js → p-5550f101.entry.js} +1 -1
  335. package/dist/solutions-components/{p-040b6e44.entry.js → p-5714f5ca.entry.js} +1 -1
  336. package/dist/solutions-components/{p-52f19286.entry.js → p-57be85fb.entry.js} +1 -1
  337. package/dist/solutions-components/p-58d8ee47.js +6 -0
  338. package/dist/solutions-components/{p-0b6e5486.js → p-5959580d.js} +1 -1
  339. package/dist/solutions-components/{p-9524e5e4.js → p-59695ccc.js} +1 -1
  340. package/dist/solutions-components/{p-87f928a5.entry.js → p-59b3e946.entry.js} +2 -2
  341. package/dist/solutions-components/{p-6b0fa1eb.entry.js → p-5a997dc9.entry.js} +1 -1
  342. package/dist/solutions-components/{p-29a09798.js → p-5ba9df82.js} +2 -2
  343. package/dist/solutions-components/{p-9fa7a7ad.entry.js → p-5cef36d6.entry.js} +1 -1
  344. package/dist/solutions-components/{p-732bb88c.entry.js → p-5d398871.entry.js} +1 -1
  345. package/dist/solutions-components/{p-7fce703f.entry.js → p-5d58d70c.entry.js} +1 -1
  346. package/dist/solutions-components/{p-0e851a4b.js → p-62dadb51.js} +1 -1
  347. package/dist/solutions-components/{p-981ab7fc.entry.js → p-62ed6a7a.entry.js} +1 -1
  348. package/dist/solutions-components/{p-49bbe45e.js → p-63f9004a.js} +1 -1
  349. package/dist/solutions-components/{p-40f5df15.entry.js → p-64906bb5.entry.js} +2 -2
  350. package/dist/solutions-components/{p-7ae41cd8.js → p-65fe42ef.js} +1 -1
  351. package/dist/solutions-components/{p-c25e8c35.js → p-66cee72b.js} +1 -1
  352. package/dist/solutions-components/{p-a85fd786.entry.js → p-6b1d1546.entry.js} +1 -1
  353. package/dist/solutions-components/{p-0dc73313.js → p-6b21efce.js} +1 -1
  354. package/dist/solutions-components/{p-79f78acc.entry.js → p-6cf1225a.entry.js} +1 -1
  355. package/dist/solutions-components/{p-6c080ac7.entry.js → p-6d4db88b.entry.js} +8 -2
  356. package/dist/solutions-components/{p-b76ed1c7.entry.js → p-6d894d47.entry.js} +2 -2
  357. package/dist/solutions-components/{p-26a3ba5e.entry.js → p-6e0439fa.entry.js} +1 -1
  358. package/dist/solutions-components/p-6e118057.js +11 -0
  359. package/dist/solutions-components/{p-267ef1b8.entry.js → p-6f594492.entry.js} +2 -2
  360. package/dist/solutions-components/{p-30903105.entry.js → p-70f2898c.entry.js} +1 -1
  361. package/dist/solutions-components/p-72bce122.entry.js +6 -0
  362. package/dist/solutions-components/{p-67c34d05.entry.js → p-72ee63b0.entry.js} +1 -1
  363. package/dist/solutions-components/{p-e4ef6f49.js → p-754a5334.js} +1 -1
  364. package/dist/solutions-components/{p-2264e8d5.entry.js → p-76efd680.entry.js} +1 -1
  365. package/dist/solutions-components/{p-5a3cab12.entry.js → p-7758a533.entry.js} +1 -1
  366. package/dist/solutions-components/{p-cd6eee11.js → p-7a820f38.js} +1 -1
  367. package/dist/solutions-components/{p-bae65813.entry.js → p-7b122a6e.entry.js} +1 -1
  368. package/dist/solutions-components/{p-1a06bf01.js → p-7e762fa7.js} +1 -1
  369. package/dist/solutions-components/{p-004d601f.entry.js → p-7f147e8b.entry.js} +1 -1
  370. package/dist/solutions-components/{p-a79f4c52.entry.js → p-82185ebf.entry.js} +1 -1
  371. package/dist/solutions-components/{p-d47abf9b.entry.js → p-827037ce.entry.js} +1 -1
  372. package/dist/solutions-components/{p-cb07016a.entry.js → p-88c6ece3.entry.js} +2 -2
  373. package/dist/solutions-components/{p-94ae78d6.js → p-8a683cdc.js} +1 -1
  374. package/dist/solutions-components/{p-304cef31.js → p-8d453a3a.js} +3 -3
  375. package/dist/solutions-components/{p-886fbbe3.entry.js → p-8ef003ec.entry.js} +1 -1
  376. package/dist/solutions-components/p-8fb651e5.entry.js +6 -0
  377. package/dist/solutions-components/{p-b8ce880d.js → p-92008b90.js} +1 -1
  378. package/dist/solutions-components/{p-1490c752.js → p-926664d9.js} +1 -1
  379. package/dist/solutions-components/{p-4e7aa926.js → p-94397114.js} +1 -1
  380. package/dist/solutions-components/{p-b3e8da19.entry.js → p-94805d7f.entry.js} +1 -1
  381. package/dist/solutions-components/p-94c518ff.entry.js +6 -0
  382. package/dist/solutions-components/{p-936037e4.js → p-97aa6766.js} +1 -1
  383. package/dist/solutions-components/{p-8bb2c169.js → p-984ce9da.js} +1 -1
  384. package/dist/solutions-components/{p-9c5f4347.js → p-99e6cb74.js} +1 -1
  385. package/dist/solutions-components/{p-de3ee7a6.entry.js → p-9d12b3f1.entry.js} +1 -1
  386. package/dist/solutions-components/{p-4fe5e9c3.entry.js → p-9ee72dba.entry.js} +1 -1
  387. package/dist/solutions-components/{p-dfeb6a2e.entry.js → p-9f3aebd0.entry.js} +1 -1
  388. package/dist/solutions-components/{p-a5e64f6b.entry.js → p-a1093fee.entry.js} +1 -1
  389. package/dist/solutions-components/{p-8537518d.entry.js → p-a2a2c6a2.entry.js} +1 -1
  390. package/dist/solutions-components/{p-c4953b5e.entry.js → p-a2dbc38b.entry.js} +1 -1
  391. package/dist/solutions-components/{p-6319ca20.js → p-a4255b97.js} +1 -1
  392. package/dist/solutions-components/{p-b8f33145.js → p-a4e73041.js} +1 -1
  393. package/dist/solutions-components/{p-1017609e.js → p-a5fc6ab7.js} +2 -2
  394. package/dist/solutions-components/{p-d75ef009.entry.js → p-a60a2c8b.entry.js} +1 -1
  395. package/dist/solutions-components/{p-254f6e23.entry.js → p-a6a0df5c.entry.js} +1 -1
  396. package/dist/solutions-components/{p-33db098c.js → p-a7395caf.js} +1 -1
  397. package/dist/solutions-components/{p-eb2859d6.js → p-a7761371.js} +1 -1
  398. package/dist/solutions-components/{p-e74bc7b3.js → p-a8b70e9a.js} +1 -1
  399. package/dist/solutions-components/{p-fedbf657.entry.js → p-a8d83bc3.entry.js} +1 -1
  400. package/dist/solutions-components/p-aa36f70e.entry.js +6 -0
  401. package/dist/solutions-components/{p-c0d25be5.entry.js → p-ac7868a6.entry.js} +1 -1
  402. package/dist/solutions-components/{p-04294b8e.js → p-ac92679c.js} +1 -1
  403. package/dist/solutions-components/{p-e0ee0556.entry.js → p-ad441ffa.entry.js} +1 -1
  404. package/dist/solutions-components/{p-ac11cf8f.entry.js → p-add869b6.entry.js} +1 -1
  405. package/dist/solutions-components/{p-b96233e3.entry.js → p-af3e49d8.entry.js} +1 -1
  406. package/dist/solutions-components/{p-c7eaade6.entry.js → p-b310402f.entry.js} +1 -1
  407. package/dist/solutions-components/{p-996daf05.entry.js → p-b4d708cd.entry.js} +1 -1
  408. package/dist/solutions-components/{p-5f7c1e49.js → p-b7e63ac2.js} +1 -1
  409. package/dist/solutions-components/{p-a4e35c2d.entry.js → p-b9b2f7a9.entry.js} +1 -1
  410. package/dist/solutions-components/{p-3c1ecf85.entry.js → p-bb040eab.entry.js} +1 -1
  411. package/dist/solutions-components/{p-53b5a39e.js → p-bcc2d4ff.js} +1 -1
  412. package/dist/solutions-components/{p-66afdfdd.entry.js → p-bcce9d28.entry.js} +1 -1
  413. package/dist/solutions-components/{p-8fb06a85.entry.js → p-c60c5991.entry.js} +1 -1
  414. package/dist/solutions-components/{p-062f4457.js → p-c6ef8cca.js} +1 -1
  415. package/dist/solutions-components/{p-1ef6a1c2.entry.js → p-c718930a.entry.js} +1 -1
  416. package/dist/solutions-components/{p-270ead49.js → p-c94b0e1a.js} +1 -1
  417. package/dist/solutions-components/{p-5440c8dd.js → p-cba6953c.js} +1 -1
  418. package/dist/solutions-components/{p-976ad17d.entry.js → p-d00ca970.entry.js} +1 -1
  419. package/dist/solutions-components/p-d2033cfa.entry.js +6 -0
  420. package/dist/solutions-components/{p-ca6055a3.js → p-d2ee8b82.js} +1 -1
  421. package/dist/solutions-components/p-d4ab82e3.entry.js +17 -0
  422. package/dist/solutions-components/{p-798b9928.entry.js → p-d7711a84.entry.js} +1 -1
  423. package/dist/solutions-components/{p-4c179300.entry.js → p-d7871f0d.entry.js} +1 -1
  424. package/dist/solutions-components/{p-f7bc99fb.entry.js → p-dc264663.entry.js} +3 -3
  425. package/dist/solutions-components/{p-aa68a36e.entry.js → p-dcaae1e9.entry.js} +2 -2
  426. package/dist/solutions-components/{p-770a0e12.js → p-dcebc541.js} +1 -1
  427. package/dist/solutions-components/{p-9277a339.entry.js → p-de3719f2.entry.js} +1 -1
  428. package/dist/solutions-components/{p-74fbad1c.js → p-dec62e5d.js} +30 -31
  429. package/dist/solutions-components/{p-aa341d46.entry.js → p-e068dfb9.entry.js} +1 -1
  430. package/dist/solutions-components/p-e0b65115.js +11 -0
  431. package/dist/solutions-components/{p-550da58b.js → p-e0fd4006.js} +1 -1
  432. package/dist/solutions-components/{p-8614d1a0.entry.js → p-e26cf5f5.entry.js} +1 -1
  433. package/dist/solutions-components/{p-0d6b3f44.js → p-e6798e38.js} +1 -1
  434. package/dist/solutions-components/p-e8aa44e2.entry.js +6 -0
  435. package/dist/solutions-components/{p-19b466d0.js → p-ea8d2558.js} +1 -1
  436. package/dist/solutions-components/{p-fcd33b4f.js → p-ef187f1d.js} +1 -1
  437. package/dist/solutions-components/{p-b4d92441.entry.js → p-efca5cea.entry.js} +1 -1
  438. package/dist/solutions-components/{p-40175313.entry.js → p-f4360468.entry.js} +1 -1
  439. package/dist/solutions-components/{p-80f49acc.js → p-f4d7f757.js} +1 -1
  440. package/dist/solutions-components/{p-95c3b305.entry.js → p-f72fa647.entry.js} +1 -1
  441. package/dist/solutions-components/{p-347d9ce0.js → p-f7e45464.js} +1 -1
  442. package/dist/solutions-components/{p-990d8b4b.js → p-f7ffcd95.js} +1 -1
  443. package/dist/solutions-components/{p-9560a1fd.entry.js → p-fa7c50f8.entry.js} +1 -1
  444. package/dist/solutions-components/{p-707ee1d1.entry.js → p-fd9fb1ba.entry.js} +2 -2
  445. package/dist/solutions-components/{p-986ff43b.entry.js → p-fdb201ff.entry.js} +1 -1
  446. package/dist/solutions-components/{p-924ec704.js → p-fe0add26.js} +1 -1
  447. package/dist/solutions-components/{p-54a9017c.entry.js → p-ff105078.entry.js} +1 -1
  448. package/dist/solutions-components/{p-fa68f43a.entry.js → p-ff639390.entry.js} +1 -1
  449. package/dist/solutions-components/solutions-components.esm.js +1 -1
  450. package/dist/solutions-components/utils/interfaces.ts +11 -0
  451. package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +117 -0
  452. package/dist/types/components.d.ts +23 -2
  453. package/dist/types/preact.d.ts +4 -0
  454. package/dist/types/utils/interfaces.d.ts +10 -0
  455. package/package.json +7 -7
  456. package/dist/cjs/calcite-accordion.cjs.entry.js +0 -95
  457. package/dist/cjs/calcite-carousel-item.cjs.entry.js +0 -46
  458. package/dist/solutions-components/p-2007eaa4.entry.js +0 -6
  459. package/dist/solutions-components/p-23ce9afa.entry.js +0 -11
  460. package/dist/solutions-components/p-27a25ece.entry.js +0 -6
  461. package/dist/solutions-components/p-2d17790c.js +0 -6
  462. package/dist/solutions-components/p-2e06ec97.js +0 -6
  463. package/dist/solutions-components/p-3a47fde6.entry.js +0 -11
  464. package/dist/solutions-components/p-41c34a67.js +0 -6
  465. package/dist/solutions-components/p-79f5a8be.js +0 -11
  466. package/dist/solutions-components/p-93d8ef73.entry.js +0 -6
  467. package/dist/solutions-components/p-a0b62b46.entry.js +0 -6
  468. package/dist/solutions-components/p-aef41a6d.entry.js +0 -11
  469. package/dist/solutions-components/p-b8b78283.entry.js +0 -29
  470. package/dist/solutions-components/p-d36878db.js +0 -11
  471. package/dist/solutions-components/p-fd79adec.entry.js +0 -6
@@ -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 i,h as t,g as n,H as a}from"./p-6eb37ed2.js";import{l as s}from"./p-4cd4cb85.js";import{g as o}from"./p-3d0e9be4.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";const e="instant-apps-sign-in__entry-button",r=class{constructor(t){i(this,t),this.type="navigation",this.portal=void 0,this.oauthappid=void 0,this.openInPopup=void 0,this.landingPage=void 0,this.isSignedIn=void 0,this.user=void 0,this.titleText=void 0,this.subtitleText=void 0,this.descriptionText=void 0,this.closeLandingPage=void 0,this.signInDropdownItems=void 0,this.ready=!1,this.messages=void 0}async watchPortal(){await this.initSignIn()}async watchOauthappid(){await this.initSignIn()}async componentWillLoad(){o(this),await this.initSignIn()}render(){const i=this.ready?this.renderContent():null;return t(a,{key:"af813637b99889bb82ab99c21d2b2dce986f546a"},i)}renderContent(){return"landingPage"===this.type?this.renderLandingPageSignIn():this.renderSignInContainer()}renderSignInContainer(){return t("div",{class:"instant-apps-sign-in__container"},this.isSignedIn?this.renderSignInDropdown():this.renderSignInButton())}renderSignInDropdown(){var i,n,a,s,o,e,r,c;return t("calcite-dropdown",{placement:"bottom-end",scale:"navigation"===this.type?"m":"s"},"navigation"===this.type?t("calcite-navigation-user",{slot:"trigger",thumbnail:null===(i=this.user)||void 0===i?void 0:i.thumbnailUrl,"full-name":null===(n=this.user)||void 0===n?void 0:n.fullName,username:null===(a=this.user)||void 0===a?void 0:a.username,textDisabled:!0}):t("button",{slot:"trigger"},t("calcite-avatar",{thumbnail:null===(s=this.user)||void 0===s?void 0:s.thumbnailUrl,"full-name":null===(o=this.user)||void 0===o?void 0:o.fullName,username:null===(e=this.user)||void 0===e?void 0:e.username})),t("slot",{name:"sign-in-dropdown-top"}),t("calcite-dropdown-group",{"selection-mode":"none"},null===(r=this.signInDropdownItems)||void 0===r?void 0:r.map((i=>t("calcite-dropdown-item",{onClick:i.onClick},i.label))),t("calcite-dropdown-item",{onClick:this.signOut.bind(this)},null===(c=this.messages)||void 0===c?void 0:c.signOut)))}renderSignInButton(){var i;const n="navigation"===this.type?"transparent":"solid";return t("calcite-button",{class:"navigation"===this.type?"instant-apps-sign-in__sign-in-btn":"",onClick:this.signIn.bind(this),scale:"s","icon-start":"sign-in",appearance:n},null===(i=this.messages)||void 0===i?void 0:i.signIn)}renderLandingPageSignIn(){var i,n;return t("div",{class:"instant-apps-sign-in__entry-button-container"},t("calcite-button",{class:e,scale:"l",appearance:"outline-fill",width:"half",onClick:this.landingPageSignIn.bind(this)},null===(i=this.messages)||void 0===i?void 0:i.signIn),t("calcite-button",{class:e,scale:"l",appearance:"outline-fill",width:"half",onClick:this.guestOnClick.bind(this)},null===(n=this.messages)||void 0===n?void 0:n.continueAsGuest))}async initSignIn(){if(null==this.portal||null==this.oauthappid)return;const[i,t,n]=await s(["esri/identity/OAuthInfo","esri/identity/IdentityManager","esri/core/reactiveUtils"]);this.idManager=t,this.info=new i({appId:this.oauthappid,portalUrl:this.portal.url,flowType:"authorization-code",popup:this.openInPopup}),this.idManager.registerOAuthInfos([this.info]),this.isSignedIn=await this.checkSignInStatus(),this.ready=!0,await n.whenOnce((()=>this.portal.user)),this.user=this.portal.user,this.ready=!0}async signIn(){this.setSignInLocalStorage(),await this.idManager.getCredential(`${this.info.portalUrl}/sharing`,{oAuthPopupConfirmation:!1}),await this.checkSignInStatus()}signOut(){var i;null===(i=this.portal.credential)||void 0===i||i.destroy(),this.idManager.destroyCredentials(),this.portal.authMode="anonymous",this.portal.credential=null;const t=window.location.href;this.setSignInLocalStorage(),window.location.href=`${this.portal.restUrl}/oauth2/signout?client_id=${this.oauthappid}&redirect_uri=${t}`}async landingPageSignIn(){await this.signIn(),null!=this.closeLandingPage&&this.closeLandingPage()}guestOnClick(){this.isSignedIn?this.signOut():null!=this.closeLandingPage&&this.closeLandingPage()}async checkSignInStatus(){try{const i=await this.idManager.checkSignInStatus(`${this.info.portalUrl}/sharing`);return this.portal.credential=i,!0}catch(i){return this.portal.credential=null,!1}}setSignInLocalStorage(){const i=new Date;localStorage.setItem("signing-in",i.getTime().toString()),setTimeout((()=>{localStorage.removeItem("signing-in")}),2e3)}get el(){return n(this)}static get watchers(){return{portal:["watchPortal"],oauthappid:["watchOauthappid"]}}};r.style=":host{display:block;box-shadow:none !important}:host .instant-apps-sign-in__container{height:inherit;display:flex;align-items:center}:host .instant-apps-sign-in__container calcite-dropdown,:host .instant-apps-sign-in__container calcite-navigation-user{height:100%}:host .instant-apps-sign-in__container calcite-navigation-user{--calcite-color-foreground-2:rgba(0, 0, 0, 0.04);--calcite-color-foreground-3:rgba(0, 0, 0, 0.04)}:host .instant-apps-sign-in__container .instant-apps-sign-in__sign-in-btn{margin:10px}:host .instant-apps-sign-in__container calcite-dropdown[scale=m] calcite-dropdown-group{min-width:140px}:host .instant-apps-sign-in__container calcite-dropdown[scale=s] calcite-dropdown-group{min-width:100px}:host .instant-apps-sign-in__container button{height:32px;width:32px;padding:0;box-sizing:border-box;display:flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;appearance:none;-moz-appearance:none;-webkit-appearance:none;text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;border:none;border-radius:50%;background:#000}:host .instant-apps-sign-in__container button:hover calcite-avatar{opacity:0.7;transition:0.3s}:host .instant-apps-sign-in__landing-page{display:flex;flex-direction:column;justify-content:center;padding:40px;width:50%;min-height:30%;background:rgba(255, 255, 255, 0.8);color:#151515;text-align:center}:host .instant-apps-sign-in__landing-page h1{font-size:22px;margin:10px 0}:host .instant-apps-sign-in__landing-page h2{font-size:16px;margin:0 0 10px}:host .instant-apps-sign-in__landing-page p{font-size:16px;margin:0}:host .instant-apps-sign-in__entry-button{--calcite-color-brand:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-hover:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-press:var(--instant-apps-landing-page-entry-button-color)}@media screen and (max-width: 767px){:host{flex-direction:column;align-items:center}:host calcite-button{width:100%}:host .instant-apps-sign-in__entry-button-container{display:flex;flex-direction:column}}";export{r as instant_apps_sign_in}
6
+ import{r as i,h as t,g as n,H as a}from"./p-6eb37ed2.js";import{l as s}from"./p-4cd4cb85.js";import{g as o}from"./p-3d0e9be4.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";const e="instant-apps-sign-in__entry-button",r=class{constructor(t){i(this,t),this.type="navigation",this.portal=void 0,this.oauthappid=void 0,this.openInPopup=void 0,this.landingPage=void 0,this.isSignedIn=void 0,this.user=void 0,this.titleText=void 0,this.subtitleText=void 0,this.descriptionText=void 0,this.closeLandingPage=void 0,this.signInDropdownItems=void 0,this.ready=!1,this.messages=void 0}async watchPortal(){await this.initSignIn()}async watchOauthappid(){await this.initSignIn()}async componentWillLoad(){o(this),await this.initSignIn()}render(){const i=this.ready?this.renderContent():null;return t(a,{key:"af7ff807a996fd2dbbc647988fc24e5a122c4efe"},i)}renderContent(){return"landingPage"===this.type?this.renderLandingPageSignIn():this.renderSignInContainer()}renderSignInContainer(){return t("div",{class:"instant-apps-sign-in__container"},this.isSignedIn?this.renderSignInDropdown():this.renderSignInButton())}renderSignInDropdown(){var i,n,a,s,o,e,r,c;return t("calcite-dropdown",{placement:"bottom-end",scale:"navigation"===this.type?"m":"s"},"navigation"===this.type?t("calcite-navigation-user",{slot:"trigger",thumbnail:null===(i=this.user)||void 0===i?void 0:i.thumbnailUrl,"full-name":null===(n=this.user)||void 0===n?void 0:n.fullName,username:null===(a=this.user)||void 0===a?void 0:a.username,textDisabled:!0}):t("button",{slot:"trigger"},t("calcite-avatar",{thumbnail:null===(s=this.user)||void 0===s?void 0:s.thumbnailUrl,"full-name":null===(o=this.user)||void 0===o?void 0:o.fullName,username:null===(e=this.user)||void 0===e?void 0:e.username})),t("slot",{name:"sign-in-dropdown-top"}),t("calcite-dropdown-group",{"selection-mode":"none"},null===(r=this.signInDropdownItems)||void 0===r?void 0:r.map((i=>t("calcite-dropdown-item",{onClick:i.onClick},i.label))),t("calcite-dropdown-item",{onClick:this.signOut.bind(this)},null===(c=this.messages)||void 0===c?void 0:c.signOut)))}renderSignInButton(){var i;const n="navigation"===this.type?"transparent":"solid";return t("calcite-button",{class:"navigation"===this.type?"instant-apps-sign-in__sign-in-btn":"",onClick:this.signIn.bind(this),scale:"s","icon-start":"sign-in",appearance:n},null===(i=this.messages)||void 0===i?void 0:i.signIn)}renderLandingPageSignIn(){var i,n;return t("div",{class:"instant-apps-sign-in__entry-button-container"},t("calcite-button",{class:e,scale:"l",appearance:"outline-fill",width:"half",onClick:this.landingPageSignIn.bind(this)},null===(i=this.messages)||void 0===i?void 0:i.signIn),t("calcite-button",{class:e,scale:"l",appearance:"outline-fill",width:"half",onClick:this.guestOnClick.bind(this)},null===(n=this.messages)||void 0===n?void 0:n.continueAsGuest))}async initSignIn(){if(null==this.portal||null==this.oauthappid)return;const[i,t,n]=await s(["esri/identity/OAuthInfo","esri/identity/IdentityManager","esri/core/reactiveUtils"]);this.idManager=t,this.info=new i({appId:this.oauthappid,portalUrl:this.portal.url,flowType:"authorization-code",popup:this.openInPopup}),this.idManager.registerOAuthInfos([this.info]),this.isSignedIn=await this.checkSignInStatus(),this.ready=!0,await n.whenOnce((()=>this.portal.user)),this.user=this.portal.user,this.ready=!0}async signIn(){this.setSignInLocalStorage(),await this.idManager.getCredential(`${this.info.portalUrl}/sharing`,{oAuthPopupConfirmation:!1}),await this.checkSignInStatus()}signOut(){var i;null===(i=this.portal.credential)||void 0===i||i.destroy(),this.idManager.destroyCredentials(),this.portal.authMode="anonymous",this.portal.credential=null;const t=window.location.href;this.setSignInLocalStorage(),window.location.href=`${this.portal.restUrl}/oauth2/signout?client_id=${this.oauthappid}&redirect_uri=${t}`}async landingPageSignIn(){await this.signIn(),null!=this.closeLandingPage&&this.closeLandingPage()}guestOnClick(){this.isSignedIn?this.signOut():null!=this.closeLandingPage&&this.closeLandingPage()}async checkSignInStatus(){try{const i=await this.idManager.checkSignInStatus(`${this.info.portalUrl}/sharing`);return this.portal.credential=i,!0}catch(i){return this.portal.credential=null,!1}}setSignInLocalStorage(){const i=new Date;localStorage.setItem("signing-in",i.getTime().toString()),setTimeout((()=>{localStorage.removeItem("signing-in")}),2e3)}get el(){return n(this)}static get watchers(){return{portal:["watchPortal"],oauthappid:["watchOauthappid"]}}};r.style=":host{display:block;box-shadow:none !important}:host .instant-apps-sign-in__container{height:inherit;display:flex;align-items:center}:host .instant-apps-sign-in__container calcite-dropdown,:host .instant-apps-sign-in__container calcite-navigation-user{height:100%}:host .instant-apps-sign-in__container calcite-navigation-user{--calcite-color-foreground-2:rgba(0, 0, 0, 0.04);--calcite-color-foreground-3:rgba(0, 0, 0, 0.04)}:host .instant-apps-sign-in__container .instant-apps-sign-in__sign-in-btn{margin:10px}:host .instant-apps-sign-in__container calcite-dropdown[scale=m] calcite-dropdown-group{min-width:140px}:host .instant-apps-sign-in__container calcite-dropdown[scale=s] calcite-dropdown-group{min-width:100px}:host .instant-apps-sign-in__container button{height:32px;width:32px;padding:0;box-sizing:border-box;display:flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;appearance:none;-moz-appearance:none;-webkit-appearance:none;text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;border:none;border-radius:50%;background:#000}:host .instant-apps-sign-in__container button:hover calcite-avatar{opacity:0.7;transition:0.3s}:host .instant-apps-sign-in__landing-page{display:flex;flex-direction:column;justify-content:center;padding:40px;width:50%;min-height:30%;background:rgba(255, 255, 255, 0.8);color:#151515;text-align:center}:host .instant-apps-sign-in__landing-page h1{font-size:22px;margin:10px 0}:host .instant-apps-sign-in__landing-page h2{font-size:16px;margin:0 0 10px}:host .instant-apps-sign-in__landing-page p{font-size:16px;margin:0}:host .instant-apps-sign-in__entry-button{--calcite-color-brand:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-hover:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-press:var(--instant-apps-landing-page-entry-button-color)}@media screen and (max-width: 767px){:host{flex-direction:column;align-items:center}:host calcite-button{width:100%}:host .instant-apps-sign-in__entry-button-container{display:flex;flex-direction:column}}";export{r as instant_apps_sign_in}
@@ -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 r}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";var e={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(r){return r+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(r,e,t,p){return"néhány másodperc"+(p||e?"":"e")},m:function(r,e,t,p){return"egy perc"+(p||e?"":"e")},mm:function(r,e,t,p){return r+" perc"+(p||e?"":"e")},h:function(r,e,t,p){return"egy "+(p||e?"óra":"órája")},hh:function(r,e,t,p){return r+" "+(p||e?"óra":"órája")},d:function(r,e,t,p){return"egy "+(p||e?"nap":"napja")},dd:function(r,e,t,p){return r+" "+(p||e?"nap":"napja")},M:function(r,e,t,p){return"egy "+(p||e?"hónap":"hónapja")},MM:function(r,e,t,p){return r+" "+(p||e?"hónap":"hónapja")},y:function(r,e,t,p){return"egy "+(p||e?"év":"éve")},yy:function(r,e,t,p){return r+" "+(p||e?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};r.locale(e,null,!0);export{e as default}
6
+ import{d as r}from"./p-fe0add26.js";import"./p-6eb37ed2.js";import"./p-365169c2.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-2caf1f94.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-8d453a3a.js";import"./p-1c249530.js";import"./p-174aa4da.js";import"./p-0ef9d36b.js";import"./p-12be6545.js";import"./p-d9e930c8.js";import"./p-a5fc6ab7.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var e={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(r){return r+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(r,e,t,p){return"néhány másodperc"+(p||e?"":"e")},m:function(r,e,t,p){return"egy perc"+(p||e?"":"e")},mm:function(r,e,t,p){return r+" perc"+(p||e?"":"e")},h:function(r,e,t,p){return"egy "+(p||e?"óra":"órája")},hh:function(r,e,t,p){return r+" "+(p||e?"óra":"órája")},d:function(r,e,t,p){return"egy "+(p||e?"nap":"napja")},dd:function(r,e,t,p){return r+" "+(p||e?"nap":"napja")},M:function(r,e,t,p){return"egy "+(p||e?"hónap":"hónapja")},MM:function(r,e,t,p){return r+" "+(p||e?"hónap":"hónapja")},y:function(r,e,t,p){return"egy "+(p||e?"év":"éve")},yy:function(r,e,t,p){return r+" "+(p||e?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};r.locale(e,null,!0);export{e as default}
@@ -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";var r={name:"en-au",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};e.locale(r,null,!0);export{r as default}
6
+ import{d as a}from"./p-fe0add26.js";import"./p-6eb37ed2.js";import"./p-365169c2.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-2caf1f94.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-8d453a3a.js";import"./p-1c249530.js";import"./p-174aa4da.js";import"./p-0ef9d36b.js";import"./p-12be6545.js";import"./p-d9e930c8.js";import"./p-a5fc6ab7.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var e={name:"en-au",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(a){return a},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};a.locale(e,null,!0);export{e as default}
@@ -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 a}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";var r={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(a){return a+"."}};a.locale(r,null,!0);export{r as default}
6
+ import{d as a}from"./p-fe0add26.js";import"./p-6eb37ed2.js";import"./p-365169c2.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-2caf1f94.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-8d453a3a.js";import"./p-1c249530.js";import"./p-174aa4da.js";import"./p-0ef9d36b.js";import"./p-12be6545.js";import"./p-d9e930c8.js";import"./p-a5fc6ab7.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var r={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(a){return a+"."}};a.locale(r,null,!0);export{r as default}
@@ -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 e,c as t,h as a,H as i,g as n}from"./p-6eb37ed2.js";import{a as s,l as o,b as l}from"./p-7c854814.js";import"./p-c25e8c35.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-27d462c0.js";
6
+ import{r as e,c as t,h as a,H as i,g as n}from"./p-6eb37ed2.js";import{a as s,l as o,b as l}from"./p-2caf1f94.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-27d462c0.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,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,h as e,H as i,g as a}from"./p-6eb37ed2.js";import{g as n}from"./p-3d0e9be4.js";import"./p-4cd4cb85.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";class s{constructor(){this.pages=[]}addPage(t){this.pages=[...this.pages,t]}removePage(t){this.pages=this.pages.filter((e=>e!==t))}}const l=class{constructor(e){t(this,e),this._viewModel=new s,this.header=!0,this.data=void 0,this.messages=void 0,this.headerText=void 0}watchPropHandler(t){this._viewModel.pages=t,this._updateHeaderText()}connectedCallback(){var t,e,i,a;this._viewModel.pages=(null==this?void 0:this.data)||[],this.headerText=null!==(i=null===(e=null===(t=null==this?void 0:this.data)||void 0===t?void 0:t[0])||void 0===e?void 0:e.title)&&void 0!==i?i:null===(a=null==this?void 0:this.messages)||void 0===a?void 0:a.headerText}componentDidLoad(){n(this)}render(){return e(i,{key:"3c6bf465e2543e62f8e991a22a4f8b8420556285"},e("calcite-panel",{key:"15a145d4f930de4325716dcd8b73fdcbbe5fa31e",scale:"s"},this._renderAppGuideHeader(),e("calcite-carousel",{key:"8f962b828f76b8a68f19b71fb79d3f4c93420e38",onCalciteCarouselChange:()=>this._updateHeaderText(),ref:t=>this._carouselRef=t,"arrow-type":this._getArrowType()},this._renderAppGuidePages(this._viewModel.pages))))}_updateHeaderText(){var t;const{_viewModel:e,_carouselRef:i,messages:a}=this,n=Array.from(i.childNodes).indexOf(i.selectedItem),s=null==e?void 0:e.pages,l=null!==(t=null==s?void 0:s[n])&&void 0!==t?t:s[0];this.headerText=(null==l?void 0:l.title)||(null==a?void 0:a.headerText)}_getArrowType(){return this._viewModel.pages.length>2?"inline":"none"}_renderAppGuideHeader(){const{messages:t,header:i,headerText:a}=this;return i&&(null==t?void 0:t.headerText)?e("span",{slot:"header-content"},a||(null==t?void 0:t.headerText)," ",e("calcite-icon",{icon:"lightbulb",scale:"s"})):null}_renderAppGuidePages(t){return t.map(((t,i)=>{const{content:a,type:n}=t;return e("calcite-carousel-item",{key:`page_${i}`},e("div",{class:"instant-apps-app-guide__content-wrapper"},this._renderContentItems(a,n)))}))}_renderContentItems(t,i){return"list"===i?e("ol",{class:"instant-apps-app-guide__content-list"},t.map(((t,i)=>e("li",{key:`content-list-item-${i}`,class:"instant-apps-app-guide__content-list--item"},t)))):t.map(((t,i)=>e("p",{key:`content-paragraph-${i}`},t)))}get el(){return a(this)}static get watchers(){return{data:["watchPropHandler"]}}};l.style=":host{--instant-apps-app-guide-width:300px;--instant-apps-app-guide-height:400px;--instant-apps-app-guide-list-item-bubble-size:22px;width:var(--instant-apps-app-guide-width);height:var(--instant-apps-app-guide-height);display:block}:host calcite-panel{max-width:var(--instant-apps-app-guide-width);max-height:var(--instant-apps-app-guide-height);display:flex}:host calcite-carousel{flex:1;overflow:scroll;height:-moz-fit-content;height:fit-content;background-color:var(--calcite-color-foreground-1)}:host [slot=header-content]{display:flex;gap:var(--calcite-spacing-sm);padding-inline-start:0.25rem}:host .content-heading{font-weight:var(--calcite-font-weight-bold);display:flex;gap:var(--calcite-spacing-sm);line-height:var(--calcite-font-line-height-fixed-lg)}:host calcite-carousel-item{flex-grow:1;display:flex;flex-direction:column}:host .instant-apps-app-guide__content-wrapper{padding-block-start:0.5rem;padding-inline:0.5rem;flex-shrink:1;flex-grow:0}:host calcite-icon{--calcite-ui-icon-color:var(--calcite-color-brand)}:host .instant-apps-app-guide__content-list{counter-set:item-counter;margin-inline:0;padding-inline-start:var(--calcite-spacing-xxxl);padding-inline-end:var(--calcite-spacing-lg);position:relative}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item{counter-increment:item-counter;margin-block-start:var(--calcite-spacing-lg);display:flex;align-items:flex-start}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::before{content:counter(item-counter);background-color:var(--calcite-color-text-2);color:var(--calcite-color-text-inverse);line-height:var(--calcite-font-line-height-fixed-xl);width:var(--instant-apps-app-guide-list-item-bubble-size);left:0;border-radius:var(--calcite-corner-radius-pill);display:flex;justify-content:center;font-size:var(--calcite-font-size-sm);position:absolute;max-height:var(--instant-apps-app-guide-list-item-bubble-size)}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::marker{color:var(--calcite-color-transparent)}";export{l as instant_apps_app_guide}