@momentum-ui/web-components 2.24.1 → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/dist/{1598.js → 1013.js} +1 -1
  2. package/dist/109.js +3 -3
  3. package/dist/{2043.js → 1092.js} +1 -1
  4. package/dist/1200.js +4 -4
  5. package/dist/1323.js +5 -5
  6. package/dist/15.js +1 -0
  7. package/dist/{779.js → 1564.js} +1 -1
  8. package/dist/{9719.js → 1626.js} +1 -1
  9. package/dist/{1392.js → 1729.js} +1 -1
  10. package/dist/1990.js +2 -0
  11. package/dist/1990.js.LICENSE.txt +5 -0
  12. package/dist/{8841.js → 2056.js} +1 -1
  13. package/dist/{8728.js → 2093.js} +1 -1
  14. package/dist/2176.js +4 -4
  15. package/dist/{5467.js → 2186.js} +1 -1
  16. package/dist/{2798.js → 2201.js} +1 -1
  17. package/dist/2243.js +1 -1
  18. package/dist/{3663.js → 2314.js} +1 -1
  19. package/dist/2547.js +43 -40
  20. package/dist/2555.js +7 -7
  21. package/dist/2669.js +1 -0
  22. package/dist/2714.js +1 -0
  23. package/dist/{7251.js → 2848.js} +1 -1
  24. package/dist/2924.js +1 -0
  25. package/dist/2972.js +1 -1
  26. package/dist/300.js +1 -1
  27. package/dist/3135.js +1 -1
  28. package/dist/3192.js +3 -3
  29. package/dist/{2215.js → 3212.js} +1 -1
  30. package/dist/3625.js +1 -1
  31. package/dist/{1572.js → 3739.js} +1 -1
  32. package/dist/3852.js +1 -0
  33. package/dist/4313.js +1 -0
  34. package/dist/{4974.js → 4363.js} +1 -1
  35. package/dist/4371.js +2 -0
  36. package/dist/4371.js.LICENSE.txt +5 -0
  37. package/dist/4462.js +1 -0
  38. package/dist/4624.js +1 -1
  39. package/dist/{7330.js → 4659.js} +1 -1
  40. package/dist/4744.js +1 -0
  41. package/dist/4765.js +2 -0
  42. package/dist/4765.js.LICENSE.txt +5 -0
  43. package/dist/{3112.js → 4889.js} +1 -1
  44. package/dist/4935.js +2 -0
  45. package/dist/4935.js.LICENSE.txt +5 -0
  46. package/dist/5087.js +1 -0
  47. package/dist/510.js +1 -0
  48. package/dist/{6441.js → 5524.js} +1 -1
  49. package/dist/{4977.js → 5630.js} +1 -1
  50. package/dist/{1250.js → 5799.js} +1 -1
  51. package/dist/5809.js +1 -0
  52. package/dist/{6953.js → 5838.js} +1 -1
  53. package/dist/591.js +1 -1
  54. package/dist/6188.js +1 -0
  55. package/dist/622.js +1 -0
  56. package/dist/6273.js +10 -10
  57. package/dist/6396.js +3 -3
  58. package/dist/6408.js +35 -14
  59. package/dist/6633.js +1 -1
  60. package/dist/6683.js +2 -0
  61. package/dist/6683.js.LICENSE.txt +11 -0
  62. package/dist/674.js +1 -0
  63. package/dist/6752.js +2 -0
  64. package/dist/6752.js.LICENSE.txt +5 -0
  65. package/dist/6754.js +3 -3
  66. package/dist/{7092.js → 6765.js} +1 -1
  67. package/dist/679.js +63 -0
  68. package/dist/6798.js +4 -4
  69. package/dist/6865.js +1 -0
  70. package/dist/7119.js +8 -8
  71. package/dist/7228.js +2 -0
  72. package/dist/7228.js.LICENSE.txt +5 -0
  73. package/dist/{3553.js → 7292.js} +1 -1
  74. package/dist/754.js +1 -1
  75. package/dist/759.js +1 -0
  76. package/dist/768.js +1 -1
  77. package/dist/7814.js +2 -2
  78. package/dist/{6366.js → 7819.js} +1 -1
  79. package/dist/7833.js +1 -1
  80. package/dist/7919.js +1 -1
  81. package/dist/8028.js +12 -12
  82. package/dist/{8521.js → 8033.js} +1 -1
  83. package/dist/{8227.js → 8148.js} +1 -1
  84. package/dist/{9130.js → 8161.js} +1 -1
  85. package/dist/8171.js +5 -5
  86. package/dist/8210.js +1 -1
  87. package/dist/{8004.js → 8345.js} +1 -1
  88. package/dist/836.js +1 -0
  89. package/dist/8373.js +1 -1
  90. package/dist/8387.js +1 -1
  91. package/dist/{9618.js → 8391.js} +1 -1
  92. package/dist/8576.js +22 -0
  93. package/dist/{1869.js → 8588.js} +1 -1
  94. package/dist/{7875.js → 9238.js} +1 -1
  95. package/dist/{6795.js → 9270.js} +1 -1
  96. package/dist/{1705.js → 9312.js} +1 -1
  97. package/dist/9409.js +1 -0
  98. package/dist/{2984.js → 9425.js} +1 -1
  99. package/dist/{630.js → 9455.js} +1 -1
  100. package/dist/{2019.js → 9480.js} +1 -1
  101. package/dist/9609.js +2 -0
  102. package/dist/9609.js.LICENSE.txt +5 -0
  103. package/dist/{1107.js → 9654.js} +1 -1
  104. package/dist/984.js +2 -2
  105. package/dist/chunks/md-2278.js +1 -0
  106. package/dist/chunks/md-414.js +1 -1
  107. package/dist/chunks/{md-7292.js → md-4911.js} +1 -1
  108. package/dist/chunks/md-7040.js +1 -1
  109. package/dist/comp/md-accordion-entry.js +2 -2
  110. package/dist/comp/md-accordion-item-entry.js +4 -4
  111. package/dist/comp/md-accordion-item.js +1 -1
  112. package/dist/comp/md-accordion.js +1 -1
  113. package/dist/comp/md-activity-button-entry.js +2 -2
  114. package/dist/comp/md-activity-button.js +1 -1
  115. package/dist/comp/md-advance-list-entry.js +13 -10
  116. package/dist/comp/md-advance-list.js +1 -1
  117. package/dist/comp/md-alert-banner-entry.js +8 -8
  118. package/dist/comp/md-alert-banner.js +1 -1
  119. package/dist/comp/md-alert-entry.js +32 -32
  120. package/dist/comp/md-alert.js +1 -1
  121. package/dist/comp/md-audio-player-entry.js +9 -9
  122. package/dist/comp/md-audio-player.js +1 -1
  123. package/dist/comp/md-avatar-entry.js +11 -11
  124. package/dist/comp/md-avatar.js +1 -1
  125. package/dist/comp/md-badge-entry.js +6 -6
  126. package/dist/comp/md-badge.js +1 -1
  127. package/dist/comp/md-breadcrumb-entry.js +4 -4
  128. package/dist/comp/md-breadcrumb.js +1 -1
  129. package/dist/comp/md-button-entry.js +4 -4
  130. package/dist/comp/md-button-group-entry.js +2 -2
  131. package/dist/comp/md-button-group.js +1 -1
  132. package/dist/comp/md-button.js +1 -1
  133. package/dist/comp/md-card-ai-entry.js +9 -9
  134. package/dist/comp/md-card-ai.js +1 -1
  135. package/dist/comp/md-card-entry.js +12 -12
  136. package/dist/comp/md-card-v2-entry.js +7 -7
  137. package/dist/comp/md-card-v2.js +1 -1
  138. package/dist/comp/md-card.js +1 -1
  139. package/dist/comp/md-chat-message-entry.js +8 -8
  140. package/dist/comp/md-chat-message.js +1 -1
  141. package/dist/comp/md-checkbox-entry.js +2 -2
  142. package/dist/comp/md-checkbox.js +1 -1
  143. package/dist/comp/md-checkboxgroup-entry.js +2 -2
  144. package/dist/comp/md-checkboxgroup.js +1 -1
  145. package/dist/comp/md-chip-entry.js +13 -13
  146. package/dist/comp/md-chip.js +1 -1
  147. package/dist/comp/md-coachmark-entry.js +3 -3
  148. package/dist/comp/md-coachmark-popover-entry.js +7 -7
  149. package/dist/comp/md-coachmark-popover.js +1 -1
  150. package/dist/comp/md-coachmark.js +1 -1
  151. package/dist/comp/md-combobox-entry.js +43 -40
  152. package/dist/comp/md-combobox.js +1 -1
  153. package/dist/comp/md-composite-avatar-entry.js +3 -3
  154. package/dist/comp/md-composite-avatar.js +1 -1
  155. package/dist/comp/md-country-code-picker-entry.js +9 -9
  156. package/dist/comp/md-country-code-picker.js +1 -1
  157. package/dist/comp/md-date-range-picker-entry.js +1 -1
  158. package/dist/comp/md-date-range-picker.js +1 -1
  159. package/dist/comp/md-date-time-picker-entry.js +10 -10
  160. package/dist/comp/md-date-time-picker.js +1 -1
  161. package/dist/comp/md-datepicker-calendar-entry.js +2 -2
  162. package/dist/comp/md-datepicker-calendar.js +1 -1
  163. package/dist/comp/md-datepicker-day-entry.js +4 -4
  164. package/dist/comp/md-datepicker-day.js +1 -1
  165. package/dist/comp/md-datepicker-entry.js +9 -9
  166. package/dist/comp/md-datepicker-month-entry.js +2 -2
  167. package/dist/comp/md-datepicker-month.js +1 -1
  168. package/dist/comp/md-datepicker-week-entry.js +2 -2
  169. package/dist/comp/md-datepicker-week.js +1 -1
  170. package/dist/comp/md-datepicker.js +1 -1
  171. package/dist/comp/md-draggable-entry.js +2 -2
  172. package/dist/comp/md-draggable-item-entry.js +5 -5
  173. package/dist/comp/md-draggable-item.js +1 -1
  174. package/dist/comp/md-draggable.js +1 -1
  175. package/dist/comp/md-dropdown-entry.js +2 -2
  176. package/dist/comp/md-dropdown.js +1 -1
  177. package/dist/comp/md-editable-field-entry.js +10 -133
  178. package/dist/comp/md-editable-field.js +1 -1
  179. package/dist/comp/md-favorite-entry.js +4 -4
  180. package/dist/comp/md-favorite.js +1 -1
  181. package/dist/comp/md-floating-minimize-entry.js +3 -3
  182. package/dist/comp/md-floating-minimize.js +1 -1
  183. package/dist/comp/md-floating-modal-entry.js +11 -11
  184. package/dist/comp/md-floating-modal.js +1 -1
  185. package/dist/comp/md-form-entry.js +6 -6
  186. package/dist/comp/md-grabber-entry.js +5 -5
  187. package/dist/comp/md-grabber.js +1 -1
  188. package/dist/comp/md-help-text-entry.js +3 -3
  189. package/dist/comp/md-help-text.js +1 -1
  190. package/dist/comp/md-icon-entry.js +8 -8
  191. package/dist/comp/md-icon.js +1 -1
  192. package/dist/comp/md-inpu.js +1 -1
  193. package/dist/comp/md-input-entry.js +38 -17
  194. package/dist/comp/md-input-file.js +3 -3
  195. package/dist/comp/md-input.js +1 -1
  196. package/dist/comp/md-label-entry.js +3 -3
  197. package/dist/comp/md-label.js +1 -1
  198. package/dist/comp/md-link-entry.js +4 -4
  199. package/dist/comp/md-link.js +1 -1
  200. package/dist/comp/md-list-entry.js +3 -3
  201. package/dist/comp/md-list-item-entry.js +3 -3
  202. package/dist/comp/md-list-item.js +1 -1
  203. package/dist/comp/md-list.js +1 -1
  204. package/dist/comp/md-loading-entry.js +6 -6
  205. package/dist/comp/md-loading.js +1 -1
  206. package/dist/comp/md-meeting-alert-entry.js +10 -10
  207. package/dist/comp/md-meeting-alert.js +1 -1
  208. package/dist/comp/md-menu-entry.js +4 -4
  209. package/dist/comp/md-menu-item-entry.js +4 -4
  210. package/dist/comp/md-menu-item.js +1 -1
  211. package/dist/comp/md-menu-overlay-entry.js +5 -5
  212. package/dist/comp/md-menu-overlay.js +1 -1
  213. package/dist/comp/md-menu.js +1 -1
  214. package/dist/comp/md-modal-entry.js +17 -17
  215. package/dist/comp/md-modal.js +1 -1
  216. package/dist/comp/md-pagination-entry.js +6 -6
  217. package/dist/comp/md-pagination.js +1 -1
  218. package/dist/comp/md-phone-input-entry.js +11 -11
  219. package/dist/comp/md-phone-input.js +1 -1
  220. package/dist/comp/md-popover-entry.js +6 -6
  221. package/dist/comp/md-popover.js +1 -1
  222. package/dist/comp/md-presence-entry.js +3 -3
  223. package/dist/comp/md-presence.js +1 -1
  224. package/dist/comp/md-progress-bar-entry.js +3 -3
  225. package/dist/comp/md-progress-bar.js +1 -1
  226. package/dist/comp/md-radio-entry.js +2 -2
  227. package/dist/comp/md-radio.js +1 -1
  228. package/dist/comp/md-radiogroup-entry.js +2 -2
  229. package/dist/comp/md-radiogroup.js +1 -1
  230. package/dist/comp/md-slider-entry.js +6 -6
  231. package/dist/comp/md-slider.js +1 -1
  232. package/dist/comp/md-spinner-entry.js +3 -3
  233. package/dist/comp/md-spinner.js +1 -1
  234. package/dist/comp/md-tab-entry.js +4 -4
  235. package/dist/comp/md-tab-panel-entry.js +1 -1
  236. package/dist/comp/md-tab-panel.js +1 -1
  237. package/dist/comp/md-tab.js +1 -1
  238. package/dist/comp/md-table-advanced-entry.js +30 -32
  239. package/dist/comp/md-table-advanced.js +1 -1
  240. package/dist/comp/md-table-entry.js +3 -3
  241. package/dist/comp/md-table.js +1 -1
  242. package/dist/comp/md-tabs-entry.js +18 -18
  243. package/dist/comp/md-tabs.js +1 -1
  244. package/dist/comp/md-task-item-entry.js +24 -22
  245. package/dist/comp/md-task-item.js +1 -1
  246. package/dist/comp/md-theme-entry.js +2 -2
  247. package/dist/comp/md-theme.js +1 -1
  248. package/dist/comp/md-timepicker-entry.js +8 -8
  249. package/dist/comp/md-timepicker.js +1 -1
  250. package/dist/comp/md-toggle-switch-entry.js +8 -8
  251. package/dist/comp/md-toggle-switch.js +1 -1
  252. package/dist/comp/md-tooltip-entry.js +3 -3
  253. package/dist/comp/md-tooltip.js +1 -1
  254. package/dist/index-entry.js +534 -507
  255. package/dist/index.js +1 -1
  256. package/dist/types/components/accordion/Accordion.d.ts +3 -3
  257. package/dist/types/components/accordion/AccordionItem.d.ts +3 -3
  258. package/dist/types/components/activity-button/ActivityButton.d.ts +2 -2
  259. package/dist/types/components/advance-list/AdvanceList.d.ts +5 -4
  260. package/dist/types/components/alert/Alert.d.ts +3 -3
  261. package/dist/types/components/alert-banner/AlertBanner.d.ts +2 -2
  262. package/dist/types/components/audio-player/AudioPlayer.d.ts +3 -3
  263. package/dist/types/components/avatar/Avatar.d.ts +6 -6
  264. package/dist/types/components/avatar/CompositeAvatar.d.ts +3 -3
  265. package/dist/types/components/badge/Badge.d.ts +9 -8
  266. package/dist/types/components/badge/NotificationBadge.d.ts +1 -1
  267. package/dist/types/components/breadcrumb/Breadcrumb.d.ts +3 -3
  268. package/dist/types/components/button/Button.d.ts +10 -10
  269. package/dist/types/components/button-group/ButtonGroup.d.ts +3 -3
  270. package/dist/types/components/card/Card.d.ts +3 -3
  271. package/dist/types/components/card-ai/CardAi.d.ts +3 -3
  272. package/dist/types/components/card-v2/CardV2.d.ts +3 -3
  273. package/dist/types/components/chat-message/ChatMessage.d.ts +3 -3
  274. package/dist/types/components/checkbox/Checkbox.d.ts +3 -3
  275. package/dist/types/components/checkbox/CheckboxGroup.d.ts +3 -3
  276. package/dist/types/components/chip/Chip.d.ts +9 -9
  277. package/dist/types/components/coachmark/Coachmark.d.ts +5 -5
  278. package/dist/types/components/coachmark-popover/CoachmarkPopover.d.ts +3 -3
  279. package/dist/types/components/code-editor/CodeEditor.d.ts +3 -3
  280. package/dist/types/components/combobox/ComboBox.d.ts +22 -22
  281. package/dist/types/components/country-code-picker/CountryCodePicker.d.ts +5 -5
  282. package/dist/types/components/date-time-picker/DateTimePicker.d.ts +3 -3
  283. package/dist/types/components/datepicker/DatePicker.d.ts +6 -6
  284. package/dist/types/components/datepicker/datepicker-calendar/DatePickerCalendar.d.ts +7 -7
  285. package/dist/types/components/datepicker/datepicker-day/DatePickerDay.d.ts +3 -3
  286. package/dist/types/components/datepicker/datepicker-month/DatePickerMonth.d.ts +4 -4
  287. package/dist/types/components/datepicker/datepicker-week/DatePickerWeek.d.ts +5 -5
  288. package/dist/types/components/draggable/Draggable.d.ts +3 -3
  289. package/dist/types/components/draggable/DraggableItem.d.ts +3 -3
  290. package/dist/types/components/dropdown/Dropdown.d.ts +9 -9
  291. package/dist/types/components/editable-textfield/EditableTextfield.d.ts +3 -5
  292. package/dist/types/components/favorite/Favorite.d.ts +3 -4
  293. package/dist/types/components/floating-button-bar/FloatingButtonBar.d.ts +3 -4
  294. package/dist/types/components/floating-modal/FloatingMinimizedModal.d.ts +3 -3
  295. package/dist/types/components/floating-modal/FloatingModal.d.ts +3 -3
  296. package/dist/types/components/form/Form.d.ts +2 -2
  297. package/dist/types/components/grabber/Grabber.d.ts +3 -3
  298. package/dist/types/components/help-text/HelpText.d.ts +3 -3
  299. package/dist/types/components/icon/Icon.d.ts +6 -5
  300. package/dist/types/components/input/Input.d.ts +49 -11
  301. package/dist/types/components/input-file/InputFile.d.ts +3 -3
  302. package/dist/types/components/label/Label.d.ts +3 -3
  303. package/dist/types/components/link/Link.d.ts +3 -3
  304. package/dist/types/components/list/List.d.ts +3 -3
  305. package/dist/types/components/list/ListItem.d.ts +3 -3
  306. package/dist/types/components/loading/Loading.d.ts +3 -3
  307. package/dist/types/components/meeting-alert/CompositeAvatar.d.ts +1 -1
  308. package/dist/types/components/meeting-alert/MeetingAlert.d.ts +3 -3
  309. package/dist/types/components/menu/Menu.d.ts +4 -4
  310. package/dist/types/components/menu/MenuItem.d.ts +3 -3
  311. package/dist/types/components/menu-overlay/MenuOverlay.d.ts +3 -3
  312. package/dist/types/components/modal/Modal.d.ts +4 -4
  313. package/dist/types/components/pagination/Pagination.d.ts +3 -3
  314. package/dist/types/components/phone-input/PhoneInput.d.ts +3 -3
  315. package/dist/types/components/popover/Popover.d.ts +3 -3
  316. package/dist/types/components/presence/Presence.d.ts +3 -3
  317. package/dist/types/components/progress-bar/ProgressBar.d.ts +3 -3
  318. package/dist/types/components/radio/Radio.d.ts +3 -3
  319. package/dist/types/components/radio/RadioGroup.d.ts +3 -3
  320. package/dist/types/components/sass-stats/SassStats.d.ts +3 -3
  321. package/dist/types/components/slider/Slider.d.ts +3 -3
  322. package/dist/types/components/spinner/Spinner.d.ts +3 -3
  323. package/dist/types/components/table/Table.d.ts +3 -4
  324. package/dist/types/components/table-advanced/TableAdvanced.d.ts +7 -6
  325. package/dist/types/components/table-advanced/src/decorators.d.ts +0 -6
  326. package/dist/types/components/tabs/Tab.d.ts +4 -4
  327. package/dist/types/components/tabs/TabPanel.d.ts +3 -3
  328. package/dist/types/components/tabs/Tabs.d.ts +3 -3
  329. package/dist/types/components/taskitem/TaskItem.d.ts +4 -4
  330. package/dist/types/components/taskitem/TaskItem.utils.d.ts +7 -7
  331. package/dist/types/components/theme/Theme.d.ts +3 -3
  332. package/dist/types/components/timepicker/TimePicker.d.ts +5 -5
  333. package/dist/types/components/toggle-switch/ToggleSwitch.d.ts +4 -4
  334. package/dist/types/components/tooltip/Tooltip.d.ts +3 -3
  335. package/dist/types/internal-components/color-table/ColorTable.d.ts +4 -4
  336. package/dist/types/internal-components/color-table/utils.d.ts +1 -1
  337. package/dist/types/mixins/FocusMixin.d.ts +1 -1
  338. package/dist/types/mixins/FocusTrapMixin.d.ts +1 -1
  339. package/dist/types/mixins/ResizeMixin.d.ts +1 -1
  340. package/dist/types/mixins/RovingTabIndexMixin.d.ts +1 -1
  341. package/dist/types/mixins/SlottedMixin.d.ts +1 -1
  342. package/package.json +3 -4
  343. package/dist/3604.js +0 -1
  344. package/dist/3866.js +0 -1
  345. package/dist/4392.js +0 -1
  346. package/dist/4400.js +0 -1
  347. package/dist/573.js +0 -1
  348. package/dist/5801.js +0 -22
  349. package/dist/5830.js +0 -1
  350. package/dist/587.js +0 -1
  351. package/dist/6015.js +0 -1
  352. package/dist/6067.js +0 -1
  353. package/dist/6272.js +0 -1
  354. package/dist/6325.js +0 -1
  355. package/dist/6400.js +0 -1
  356. package/dist/6700.js +0 -1
  357. package/dist/6877.js +0 -1
  358. package/dist/6979.js +0 -1
  359. package/dist/76.js +0 -1
  360. package/dist/7997.js +0 -1
  361. package/dist/8612.js +0 -63
  362. package/dist/9217.js +0 -1
  363. package/dist/chunks/md-4659.js +0 -1
@@ -1,7 +1,7 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-virtualizer"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"),require("lit-html/directives/if-defined.js"),require("lit-html/directives/repeat"),require("luxon"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("@floating-ui/dom"),require("highlight.js/lib/core"),require("country-codes-list"),require("country-flags-svg"),require("lit-html/directives/repeat.js"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("libphonenumber-js"),require("lit-html/directives/template-content"),require("papaparse"),require("lit-html/directives/unsafe-html"),require("@popperjs/core/lib"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map","lit-html/directives/style-map","lit-html","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","lit-virtualizer","lit-html/directives/class-map.js","lit-html/directives/until.js","lit-html/directives/if-defined.js","lit-html/directives/repeat","luxon","@popperjs/core/lib/modifiers/arrow","@popperjs/core/lib/modifiers/flip","@popperjs/core/lib/modifiers/offset","@popperjs/core/lib/modifiers/preventOverflow","@popperjs/core/lib/popper-lite","@floating-ui/dom","highlight.js/lib/core","country-codes-list","country-flags-svg","lit-html/directives/repeat.js","sortablejs","dompurify","@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers","libphonenumber-js","lit-html/directives/template-content","papaparse","lit-html/directives/unsafe-html","@popperjs/core/lib"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-virtualizer"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"),require("lit-html/directives/if-defined.js"),require("lit-html/directives/repeat"),require("luxon"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("@floating-ui/dom"),require("highlight.js/lib/core"),require("country-codes-list"),require("country-flags-svg"),require("lit-html/directives/repeat.js"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("libphonenumber-js"),require("lit-html/directives/template-content"),require("papaparse"),require("lit-html/directives/unsafe-html"),require("@popperjs/core/lib")):e(t["lit-element"],t["lit-html/directives/class-map"],t["lit-html/directives/style-map"],t["lit-html"],t["lit-html/directives/if-defined"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.mobx,t["lit-virtualizer"],t["lit-html/directives/class-map.js"],t["lit-html/directives/until.js"],t["lit-html/directives/if-defined.js"],t["lit-html/directives/repeat"],t.luxon,t["@popperjs/core/lib/modifiers/arrow"],t["@popperjs/core/lib/modifiers/flip"],t["@popperjs/core/lib/modifiers/offset"],t["@popperjs/core/lib/modifiers/preventOverflow"],t["@popperjs/core/lib/popper-lite"],t["@floating-ui/dom"],t["highlight.js/lib/core"],t["country-codes-list"],t["country-flags-svg"],t["lit-html/directives/repeat.js"],t.sortablejs,t.dompurify,t["@interactjs/actions/drag"],t["@interactjs/actions/resize"],t["@interactjs/auto-start"],t["@interactjs/interact/index"],t["@interactjs/modifiers"],t["libphonenumber-js"],t["lit-html/directives/template-content"],t.papaparse,t["lit-html/directives/unsafe-html"],t["@popperjs/core/lib"]);for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(self,(t,e,i,o,s,r,n,a,l,d,h,c,p,u,m,y,b,v,g,f,w,C,x,S,E,$,T,A,k,I,L,O,M,D,P,R)=>(()=>{"use strict";var _,B,z,F,V,N={860:t=>{t.exports=O},1072:(t,e,i)=>{i.d(e,{Theme:()=>o});var o,s=i(77251),r=i(31890),n=i(4893),a=i(4863),l=i(41488),d=i(19130),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.darkTheme=!1,this.lumos=!1,this.activeTheme=d.dW,this.placement="bottom",this.popperInstance=null,this.activeTooltipTrigger=null,this.handleTooltipRemoved=()=>{this.hideVirtualTooltip(),this.activeTooltipTrigger=null}}setTheme(){return"momentum"===this.theme?this.darkTheme?d.Pm:d.f3:"lumos"===this.theme?this.darkTheme?d.Lu:d.dW:"momentumV2"===this.theme?this.darkTheme?d.Pm:d.f3:this.lumos?this.darkTheme?d.Lu:d.dW:this.darkTheme?d.Pm:d.f3}getStyleElement(){return document.createElement("style")}applyStyle(){const t=this.shadowRoot;if("adoptedStyleSheets"in document){const e=new CSSStyleSheet;e.replaceSync(this.activeTheme),t.adoptedStyleSheets=[e]}else{const e=this.getStyleElement();e.textContent=this.activeTheme.cssText,t.appendChild(e)}}removeChildFromVirtualPopper(){for(;this.virtualWrapper.firstElementChild;)this.virtualWrapper.firstElementChild.remove()}setInitStyleToVirtualReference(){const{style:t}=this.virtualReference;t.top="0",t.bottom="0",t.left="0",t.right="0",t.width="0",t.height="0",t.zIndex="-1"}setStyleToVirtualReference(t){const{style:e}=this.virtualReference,{top:i,bottom:o,left:s,right:r,width:n,height:a}=t;e.position="fixed",e.top=`${i}px`,e.bottom=`${o}px`,e.left=`${s}px`,e.right=`${r}px`,e.width=`${n}px`,e.height=`${a}px`,e.zIndex="-1"}setVirtualReferencePosition(t){const e=t.getBoundingClientRect();this.setStyleToVirtualReference(e)}initVirtualElements(t,e,i){const o=t.cloneNode(!0);this.virtualWrapper.hasChildNodes()&&this.removeChildFromVirtualPopper(),this.virtualWrapper.append(o),i&&this.setVirtualSlotContent(i),this.setVirtualReferencePosition(e)}setVirtualSlotContent(t){if(this.virtualTooltipContent){for(;this.virtualTooltipContent.firstElementChild;)this.virtualTooltipContent.firstElementChild.remove();t.forEach(t=>this.virtualTooltipContent.append(t))}}updated(t){super.updated(t),(t.has("lumos")||t.has("darkTheme")||t.has("theme"))&&this.dispatchEvent(new CustomEvent("theme-changed",{composed:!0,bubbles:!0,detail:{darkTheme:this.darkTheme,lumos:this.lumos,theme:this.theme}})),this.activeTheme=this.setTheme(),this.applyStyle()}handleVirtualTooltipCreate(t){t.stopPropagation();const{popper:e,placement:i,reference:o,slotContent:s}=t.detail;this.activeTooltipTrigger=o,this.placement=i,this.initVirtualElements(e,o,s),this.startContinuousPositionTracking(o),this.showVirtualTooltip()}startContinuousPositionTracking(t){this.stopContinuousPositionTracking();const e=()=>{this.activeTooltipTrigger===t&&this.popperInstance&&(this.setVirtualReferencePosition(t),this.popperInstance.update(),this.positionTrackingId=requestAnimationFrame(e))};this.positionTrackingId=requestAnimationFrame(e)}stopContinuousPositionTracking(){this.positionTrackingId&&(cancelAnimationFrame(this.positionTrackingId),this.positionTrackingId=void 0)}handleVirtualTooltipDestroy(t){t.stopPropagation(),this.hideVirtualTooltip(),this.activeTooltipTrigger===t.detail.reference&&(this.activeTooltipTrigger=null)}handleVirtualTooltipChangeMessage(t){var e;const{popper:i,reference:o}=t.detail;if(this.activeTooltipTrigger!==o)return;const s=i.querySelector(".md-tooltip__content"),r=this.virtualWrapper.querySelector(".md-tooltip__content");if(s&&r){const t=s.textContent,i=r.textContent;t&&i&&(r.textContent=t,null===(e=this.popperInstance)||void 0===e||e.update())}}handleVirtualTooltipSlotChange(t){const{slotContent:e}=t.detail;e&&this.setVirtualSlotContent(e)}destroyPopperInstance(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}createPopperInstance(t){if(this.virtualPopper){const e=8,i=4;this.popperInstance=(0,n.createPopper)(this.virtualReference,this.virtualPopper,{placement:t,modifiers:[...a.defaultModifiers,n.flip,n.offset,n.arrow,{name:"offset",options:{offset:({placement:t})=>{const o=e+i;return t.startsWith("left")||t.startsWith("right")||t.startsWith("top")||t.startsWith("bottom")?[0,o]:[8,8]}}},...this.virtualArrow?[{name:"arrow",options:{element:this.virtualArrow,padding:e}}]:[]]})}}get virtualPopper(){return this.shadowRoot.querySelector(".md-tooltip__popper")}get virtualArrow(){return this.shadowRoot.querySelector(".md-tooltip__arrow")}get virtualTooltipContent(){return this.shadowRoot.querySelector(".md-tooltip__content")}showVirtualTooltip(){this.virtualPopper&&(this.virtualPopper.toggleAttribute("data-show",!0),this.createPopperInstance(this.placement))}hideVirtualTooltip(){this.virtualPopper&&(this.virtualPopper.toggleAttribute("data-show",!1),this.destroyPopperInstance(),this.stopContinuousPositionTracking(),this.setInitStyleToVirtualReference())}setupEvents(){this.addEventListener("tooltip-create",this.handleVirtualTooltipCreate),this.addEventListener("tooltip-destroy",this.handleVirtualTooltipDestroy),this.addEventListener("tooltip-message",this.handleVirtualTooltipChangeMessage),this.addEventListener("tooltip-slot",this.handleVirtualTooltipSlotChange),document.addEventListener("tooltip-disconnected",this.handleTooltipRemoved,!0)}teardownEvents(){this.removeEventListener("tooltip-create",this.handleVirtualTooltipCreate),this.removeEventListener("tooltip-destroy",this.handleVirtualTooltipDestroy),this.removeEventListener("tooltip-message",this.handleVirtualTooltipChangeMessage),this.removeEventListener("tooltip-slot",this.handleVirtualTooltipSlotChange),document.removeEventListener("tooltip-disconnected",this.handleTooltipRemoved,!0)}disconnectedCallback(){super.disconnectedCallback(),this.stopContinuousPositionTracking(),this.teardownEvents()}firstUpdated(t){const e=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return i=this,o=void 0,r=function*(){e.firstUpdated.call(this,t),yield new Promise(t=>setTimeout(t,0)),this.setupEvents()},new((s=void 0)||(s=Promise))(function(t,e){function n(t){try{l(r.next(t))}catch(t){e(t)}}function a(t){try{l(r.throw(t))}catch(t){e(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof s?i:new s(function(t){t(i)})).then(n,a)}l((r=r.apply(i,o||[])).next())});var i,o,s,r}static get styles(){return[d.dW]}render(){return l.html`
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("@lit-labs/virtualizer"),require("lit/directives/until.js"),require("lit/directives/repeat.js"),require("luxon"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("@floating-ui/dom"),require("highlight.js/lib/core"),require("country-codes-list"),require("country-flags-svg"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("libphonenumber-js"),require("lit/directives/unsafe-html.js"),require("papaparse"),require("@popperjs/core/lib"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","@lit-labs/virtualizer","lit/directives/until.js","lit/directives/repeat.js","luxon","@popperjs/core/lib/modifiers/arrow","@popperjs/core/lib/modifiers/flip","@popperjs/core/lib/modifiers/offset","@popperjs/core/lib/modifiers/preventOverflow","@popperjs/core/lib/popper-lite","@floating-ui/dom","highlight.js/lib/core","country-codes-list","country-flags-svg","sortablejs","dompurify","@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers","libphonenumber-js","lit/directives/unsafe-html.js","papaparse","@popperjs/core/lib"],e);else{var i="object"==typeof exports?e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("@lit-labs/virtualizer"),require("lit/directives/until.js"),require("lit/directives/repeat.js"),require("luxon"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("@floating-ui/dom"),require("highlight.js/lib/core"),require("country-codes-list"),require("country-flags-svg"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("libphonenumber-js"),require("lit/directives/unsafe-html.js"),require("papaparse"),require("@popperjs/core/lib")):e(t.lit,t["lit/decorators.js"],t["lit/directives/class-map.js"],t["lit/directives/style-map.js"],t["lit/directives/if-defined.js"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.mobx,t["@lit-labs/virtualizer"],t["lit/directives/until.js"],t["lit/directives/repeat.js"],t.luxon,t["@popperjs/core/lib/modifiers/arrow"],t["@popperjs/core/lib/modifiers/flip"],t["@popperjs/core/lib/modifiers/offset"],t["@popperjs/core/lib/modifiers/preventOverflow"],t["@popperjs/core/lib/popper-lite"],t["@floating-ui/dom"],t["highlight.js/lib/core"],t["country-codes-list"],t["country-flags-svg"],t.sortablejs,t.dompurify,t["@interactjs/actions/drag"],t["@interactjs/actions/resize"],t["@interactjs/auto-start"],t["@interactjs/interact/index"],t["@interactjs/modifiers"],t["libphonenumber-js"],t["lit/directives/unsafe-html.js"],t.papaparse,t["@popperjs/core/lib"]);for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(self,(t,e,i,s,o,r,a,n,l,d,h,c,p,u,m,y,b,v,g,f,w,C,x,S,E,$,T,A,k,I,L,O)=>(()=>{"use strict";var M,D,P,R,_,B={860:t=>{t.exports=k},1072:(t,e,i)=>{i.d(e,{Theme:()=>s});var s,o=i(62848),r=i(31890),a=i(4893),n=i(4863),l=i(87161),d=i(70429),h=i(38161),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.darkTheme=!1,this.lumos=!1,this.activeTheme=h.dW,this.placement="bottom",this.popperInstance=null,this.activeTooltipTrigger=null,this.handleTooltipRemoved=()=>{this.hideVirtualTooltip(),this.activeTooltipTrigger=null}}setTheme(){return"momentum"===this.theme?this.darkTheme?h.Pm:h.f3:"lumos"===this.theme?this.darkTheme?h.Lu:h.dW:"momentumV2"===this.theme?this.darkTheme?h.Pm:h.f3:this.lumos?this.darkTheme?h.Lu:h.dW:this.darkTheme?h.Pm:h.f3}getStyleElement(){return document.createElement("style")}applyStyle(){const t=this.shadowRoot;if("adoptedStyleSheets"in document){const e=new CSSStyleSheet;e.replaceSync(this.activeTheme),t.adoptedStyleSheets=[e]}else{const e=this.getStyleElement();e.textContent=this.activeTheme.cssText,t.appendChild(e)}}removeChildFromVirtualPopper(){for(;this.virtualWrapper.firstElementChild;)this.virtualWrapper.firstElementChild.remove()}setInitStyleToVirtualReference(){const{style:t}=this.virtualReference;t.top="0",t.bottom="0",t.left="0",t.right="0",t.width="0",t.height="0",t.zIndex="-1"}setStyleToVirtualReference(t){const{style:e}=this.virtualReference,{top:i,bottom:s,left:o,right:r,width:a,height:n}=t;e.position="fixed",e.top=`${i}px`,e.bottom=`${s}px`,e.left=`${o}px`,e.right=`${r}px`,e.width=`${a}px`,e.height=`${n}px`,e.zIndex="-1"}setVirtualReferencePosition(t){const e=t.getBoundingClientRect();this.setStyleToVirtualReference(e)}initVirtualElements(t,e,i){const s=t.cloneNode(!0);this.virtualWrapper.hasChildNodes()&&this.removeChildFromVirtualPopper(),this.virtualWrapper.append(s),i&&this.setVirtualSlotContent(i),this.setVirtualReferencePosition(e)}setVirtualSlotContent(t){if(this.virtualTooltipContent){for(;this.virtualTooltipContent.firstElementChild;)this.virtualTooltipContent.firstElementChild.remove();t.forEach(t=>this.virtualTooltipContent.append(t))}}updated(t){super.updated(t),(t.has("lumos")||t.has("darkTheme")||t.has("theme"))&&this.dispatchEvent(new CustomEvent("theme-changed",{composed:!0,bubbles:!0,detail:{darkTheme:this.darkTheme,lumos:this.lumos,theme:this.theme}})),this.activeTheme=this.setTheme(),this.applyStyle()}handleVirtualTooltipCreate(t){t.stopPropagation();const{popper:e,placement:i,reference:s,slotContent:o}=t.detail;this.activeTooltipTrigger=s,this.placement=i,this.initVirtualElements(e,s,o),this.startContinuousPositionTracking(s),this.showVirtualTooltip()}startContinuousPositionTracking(t){this.stopContinuousPositionTracking();const e=()=>{this.activeTooltipTrigger===t&&this.popperInstance&&(this.setVirtualReferencePosition(t),this.popperInstance.update(),this.positionTrackingId=requestAnimationFrame(e))};this.positionTrackingId=requestAnimationFrame(e)}stopContinuousPositionTracking(){this.positionTrackingId&&(cancelAnimationFrame(this.positionTrackingId),this.positionTrackingId=void 0)}handleVirtualTooltipDestroy(t){t.stopPropagation(),this.hideVirtualTooltip(),this.activeTooltipTrigger===t.detail.reference&&(this.activeTooltipTrigger=null)}handleVirtualTooltipChangeMessage(t){var e;const{popper:i,reference:s}=t.detail;if(this.activeTooltipTrigger!==s)return;const o=i.querySelector(".md-tooltip__content"),r=this.virtualWrapper.querySelector(".md-tooltip__content");if(o&&r){const t=o.textContent,i=r.textContent;t&&i&&(r.textContent=t,null===(e=this.popperInstance)||void 0===e||e.update())}}handleVirtualTooltipSlotChange(t){const{slotContent:e}=t.detail;e&&this.setVirtualSlotContent(e)}destroyPopperInstance(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}createPopperInstance(t){if(this.virtualPopper){const e=8,i=4;this.popperInstance=(0,a.createPopper)(this.virtualReference,this.virtualPopper,{placement:t,modifiers:[...n.defaultModifiers,a.flip,a.offset,a.arrow,{name:"offset",options:{offset:({placement:t})=>{const s=e+i;return t.startsWith("left")||t.startsWith("right")||t.startsWith("top")||t.startsWith("bottom")?[0,s]:[8,8]}}},...this.virtualArrow?[{name:"arrow",options:{element:this.virtualArrow,padding:e}}]:[]]})}}get virtualPopper(){return this.shadowRoot.querySelector(".md-tooltip__popper")}get virtualArrow(){return this.shadowRoot.querySelector(".md-tooltip__arrow")}get virtualTooltipContent(){return this.shadowRoot.querySelector(".md-tooltip__content")}showVirtualTooltip(){this.virtualPopper&&(this.virtualPopper.toggleAttribute("data-show",!0),this.createPopperInstance(this.placement))}hideVirtualTooltip(){this.virtualPopper&&(this.virtualPopper.toggleAttribute("data-show",!1),this.destroyPopperInstance(),this.stopContinuousPositionTracking(),this.setInitStyleToVirtualReference())}setupEvents(){this.addEventListener("tooltip-create",this.handleVirtualTooltipCreate),this.addEventListener("tooltip-destroy",this.handleVirtualTooltipDestroy),this.addEventListener("tooltip-message",this.handleVirtualTooltipChangeMessage),this.addEventListener("tooltip-slot",this.handleVirtualTooltipSlotChange),document.addEventListener("tooltip-disconnected",this.handleTooltipRemoved,!0)}teardownEvents(){this.removeEventListener("tooltip-create",this.handleVirtualTooltipCreate),this.removeEventListener("tooltip-destroy",this.handleVirtualTooltipDestroy),this.removeEventListener("tooltip-message",this.handleVirtualTooltipChangeMessage),this.removeEventListener("tooltip-slot",this.handleVirtualTooltipSlotChange),document.removeEventListener("tooltip-disconnected",this.handleTooltipRemoved,!0)}disconnectedCallback(){super.disconnectedCallback(),this.stopContinuousPositionTracking(),this.teardownEvents()}firstUpdated(t){const e=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return i=this,s=void 0,r=function*(){e.firstUpdated.call(this,t),yield new Promise(t=>setTimeout(t,0)),this.setupEvents()},new((o=void 0)||(o=Promise))(function(t,e){function a(t){try{l(r.next(t))}catch(t){e(t)}}function n(t){try{l(r.throw(t))}catch(t){e(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(a,n)}l((r=r.apply(i,s||[])).next())});var i,s,o,r}static get styles(){return[h.dW]}render(){return l.html`
2
2
  <div class="theme-wrapper" part="theme-wrapper">
3
3
  <style>
4
- ${s.A} .theme-wrapper {
4
+ ${o.A} .theme-wrapper {
5
5
  width: 100%;
6
6
  }
7
7
  </style>
@@ -9,11 +9,11 @@
9
9
  <div class="md-tooltip" data-virtual-global-popper></div>
10
10
  <div data-virtual-global-reference aria-describedby="tooltip"></div>
11
11
  </div>
12
- `}};h([(0,l.property)({type:Boolean})],e.prototype,"darkTheme",void 0),h([(0,l.property)({type:Boolean})],e.prototype,"lumos",void 0),h([(0,l.property)({type:String})],e.prototype,"theme",void 0),h([(0,l.internalProperty)()],e.prototype,"activeTheme",void 0),h([(0,l.query)("[data-virtual-global-popper]")],e.prototype,"virtualWrapper",void 0),h([(0,l.query)("[data-virtual-global-reference]")],e.prototype,"virtualReference",void 0),e=h([(0,r.w)("md-theme")],e),t.ELEMENT=e}(o||(o={}))},2207:(t,e,i)=>{i.d(e,{CompositeAvatar:()=>o});var o,s=i(26272),r=i(31890),n=i(41488),a=i(23968),l=i(3553),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.size=0}static get styles(){return[s.A,l.A]}get avatarClassMap(){return{[`md-composite-avatar--${this.size}`]:!!this.size}}render(){return n.html`
13
- <div class="md-composite-avatar ${(0,a.classMap)(this.avatarClassMap)}">
12
+ `}};c([(0,d.property)({type:Boolean})],e.prototype,"darkTheme",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"lumos",void 0),c([(0,d.property)({type:String})],e.prototype,"theme",void 0),c([(0,d.state)()],e.prototype,"activeTheme",void 0),c([(0,d.query)("[data-virtual-global-popper]")],e.prototype,"virtualWrapper",void 0),c([(0,d.query)("[data-virtual-global-reference]")],e.prototype,"virtualReference",void 0),e=c([(0,r.w)("md-theme")],e),t.ELEMENT=e}(s||(s={}))},2207:(t,e,i)=>{i.d(e,{CompositeAvatar:()=>s});var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(7292),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.size=0}static get styles(){return[r.A,d.A]}get avatarClassMap(){return{[`md-composite-avatar--${this.size}`]:!!this.size}}render(){return a.html`
13
+ <div class="md-composite-avatar ${(0,l.classMap)(this.avatarClassMap)}">
14
14
  <slot></slot>
15
15
  </div>
16
- `}};d([(0,n.property)({type:Number})],e.prototype,"size",void 0),e=d([(0,r.w)("md-composite-avatar")],e),t.ELEMENT=e}(o||(o={}))},3001:(t,e,i)=>{i.d(e,{Io:()=>n.I,TS:()=>a.T,UM:()=>r.U,dY:()=>s.d,wW:()=>l.w,yC:()=>o.y}),i(18889);var o=i(32972),s=i(28373),r=i(70300),n=i(84624),a=i(68387),l=i(31890)},3288:t=>{t.exports=L},3527:t=>{t.exports=M},3664:(t,e,i)=>{i.d(e,{Checkbox:()=>o}),i(61200);var o,s=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(40333),h=i(18841),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.autofocus=!1,this._checked=!1,this._indeterminate=!1,this._disabled=!1,this.label="",this.tabIndex=0}get checked(){return this._checked}set checked(t){const e=this._checked;this._checked=t,this.indeterminate||this.setAttribute("aria-checked",`${t}`),this.requestUpdate("checked",e)}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=this._indeterminate;this._indeterminate=t,this.setAttribute("aria-checked","mixed"),this.requestUpdate("indeterminate",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}static get styles(){return[a.A,h.A]}toggleCheckbox(){this.checked=!this.checked}isCheckboxActive(){return this.disabled||this.indeterminate}handleClick(t){this.isCheckboxActive()?t.stopPropagation():(this.toggleCheckbox(),this.handleChange(t))}handleKeyDown(t){const{code:e}=t;e!==s.Uz.Space&&e!==s.Uz.Enter||(t.preventDefault(),this.isCheckboxActive()?t.stopPropagation():(this.toggleCheckbox(),this.handleChange(t)))}handleChange(t){this.dispatchEvent(new CustomEvent("checkbox-change",{bubbles:!0,composed:!0,detail:{sourceEvent:t,checked:this.checked}}))}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","checkbox"),this.label&&this.setAttribute("aria-label",this.label)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}update(t){super.update(t),t.has("indeterminate")&&(this.checked=!1)}updated(t){super.updated(t),t.has("indeterminate")&&(this.input.indeterminate=this.indeterminate)}get checkboxIconName(){return this.checked?"check-bold":this.indeterminate?"minus-bold":null}checkboxIconTemplate(){const t=this.checkboxIconName;return t?l.html`<md-icon name="${t}" iconSet="momentumDesign" size="16"></md-icon>`:d.nothing}checkboxBoxTemplate(){return l.html` <div part="checkbox-box" class="checkbox-box">${this.checkboxIconTemplate()}</div> `}render(){return l.html`
16
+ `}};h([(0,n.property)({type:Number})],e.prototype,"size",void 0),e=h([(0,o.w)("md-composite-avatar")],e),t.ELEMENT=e}(s||(s={}))},3001:(t,e,i)=>{i.d(e,{Io:()=>a.I,TS:()=>n.T,UM:()=>r.U,dY:()=>o.d,wW:()=>l.w,yC:()=>s.y}),i(18889);var s=i(32972),o=i(28373),r=i(70300),a=i(84624),n=i(68387),l=i(31890)},3288:t=>{t.exports=A},3664:(t,e,i)=>{i.d(e,{Checkbox:()=>s}),i(61200);var s,o=i(90195),r=i(3001),a=i(31890),n=i(4313),l=i(87161),d=i(70429),h=i(32056),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.autofocus=!1,this._checked=!1,this._indeterminate=!1,this._disabled=!1,this.label="",this.tabIndex=0}get checked(){return this._checked}set checked(t){const e=this._checked;this._checked=t,this.indeterminate||this.setAttribute("aria-checked",`${t}`),this.requestUpdate("checked",e)}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=this._indeterminate;this._indeterminate=t,this.setAttribute("aria-checked","mixed"),this.requestUpdate("indeterminate",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}static get styles(){return[n.A,h.A]}toggleCheckbox(){this.checked=!this.checked}isCheckboxActive(){return this.disabled||this.indeterminate}handleClick(t){this.isCheckboxActive()?t.stopPropagation():(this.toggleCheckbox(),this.handleChange(t))}handleKeyDown(t){const{code:e}=t;e!==o.Uz.Space&&e!==o.Uz.Enter||(t.preventDefault(),this.isCheckboxActive()?t.stopPropagation():(this.toggleCheckbox(),this.handleChange(t)))}handleChange(t){this.dispatchEvent(new CustomEvent("checkbox-change",{bubbles:!0,composed:!0,detail:{sourceEvent:t,checked:this.checked}}))}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","checkbox"),this.label&&this.setAttribute("aria-label",this.label)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}update(t){super.update(t),t.has("indeterminate")&&(this.checked=!1)}updated(t){super.updated(t),t.has("indeterminate")&&(this.input.indeterminate=this.indeterminate)}get checkboxIconName(){return this.checked?"check-bold":this.indeterminate?"minus-bold":null}checkboxIconTemplate(){const t=this.checkboxIconName;return t?l.html`<md-icon name="${t}" iconSet="momentumDesign" size="16"></md-icon>`:l.nothing}checkboxBoxTemplate(){return l.html` <div part="checkbox-box" class="checkbox-box">${this.checkboxIconTemplate()}</div> `}render(){return l.html`
17
17
  <input
18
18
  class="checkbox-input"
19
19
  type="checkbox"
@@ -27,7 +27,30 @@
27
27
  ${this.checkboxBoxTemplate()}
28
28
  <slot></slot>
29
29
  </label>
30
- `}};c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"checked",null),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"indeterminate",null),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),c([(0,l.property)({type:String})],e.prototype,"label",void 0),c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,l.query)(".checkbox-input")],e.prototype,"input",void 0),e=c([(0,n.w)("md-checkbox")],e),t.ELEMENT=e}(o||(o={}))},4863:t=>{t.exports=g},4893:t=>{t.exports=R},4928:(t,e,i)=>{i.d(e,{ComboBox:()=>o}),i(20109),i(61200);var o,s=i(90195),r=i(3001),n=i(31890),a=i(66677),l=i(26272),d=i(41488),h=i(40333),c=i(23968),p=i(97822),u=i(22818),m=i(8229),y=i(86635),b=i(97103),v=i(46795),g=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},f=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function n(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(n,a)}l((o=o.apply(t,e||[])).next())})};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this._focusedIndex=-1,this._focusedGroupIndex=-1,this.label="Options",this.options=[],this.customOptions=[],this.placeholder="",this.isMulti=!1,this.useVirtualScroll=!1,this.disabled=!1,this.ordered=!1,this.expanded=!1,this.groupExpandedList=[],this.searchItem=!1,this.compact=!1,this.noClearIcon=!1,this.selectWhenInFocus=!1,this.selectedOptions=[],this.visibleOptions=8,this.optionId="",this.optionValue="",this.isCustomContent=!1,this.searchable=!1,this.shape="none",this.value=[],this.inputValue="",this.allowCustomValue=!1,this.autofocus=!1,this.resultsTextLocalization="No Results",this.optionsTextLocalization="No Options",this.trimSpace=!1,this.invalid=!1,this.invalidText="",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForComboBox="",this.clearAriaLabel="Clear",this.arrowAriaLabel="Expand",this.clearIconHeight="auto",this.allTextLocalization="All",this.selectAllTextLocalization="Select All",this.selectedTextLocalization="Selected",this.allowSelectAll=!1,this.showCustomError=!1,this.showLoader=!1,this.showSelectedCount=!1,this.popupChevronAriaHidden="true",this.newMomentum=!1,this.showFilterIcon=!1,this.preventFilter=!1,this.isDropdownArrow=!1,this.comboboxId="",this.helpText="",this.messageArr=[],this.htmlId="",this.readOnly=!1,this.messageController=new e,this.isOptGroup=!1,this.isSelectAllChecked=!1,this.multiSelectedIndex=-1,this.multiSelected=[],this.customContent=[],this.notifySelectedChange=(0,a.sg)(t=>{this.dispatchEvent(new CustomEvent("change-selected",{composed:!0,bubbles:!0,detail:t}))},0),this.handleGroupFilter=t=>{const e=t.filter(t=>{if("string"!=typeof t&&"true"===t.isLabel)return t.groupName});return this.searchItem=!0,this.groupExpandedList=e.map(t=>{if("string"!=typeof t)return t.groupName}),t.filter(e=>"string"==typeof e||"true"!==e.isLabel||!!t.find(t=>{if("string"!=typeof e&&"string"!=typeof t)return e.groupName===t.groupName&&"false"===t.isLabel}))},this.notifyInputValueChanged=(0,a.sg)(t=>{this.dispatchEvent(new CustomEvent("combobox-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),this.focusedGroupIndex=0,requestAnimationFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})},250),this.handleOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||(this.setVisualListbox(!1),this.unselectedAllMultiTag()))}}get focusedIndex(){return this._focusedIndex}set focusedIndex(t){this.updateFocusedIndex(t)}updateFocusedIndex(t){var e;const i=this._focusedIndex;if(this.checkForVirtualScroll()){let i;i=this.allowSelectAll?0===t?"selectAll":this.getOptionId(this.filteredOptions[t-1]):this.getOptionId(this.filteredOptions[t]);const o=this.lists?null===(e=[...this.lists])||void 0===e?void 0:e.find(t=>0!==t.offsetHeight&&t.id===i):"";this.lists&&[...this.lists].forEach(t=>{t.toggleAttribute("focused",!1)}),o&&(null==o||o.toggleAttribute("focused",!0))}else if(this.lists){const e=this.lists[i];e&&e.toggleAttribute("focused",!1);const o=this.lists[t];o&&o.toggleAttribute("focused",!0)}this._focusedIndex=t,this.requestUpdate("focusedIndex",i)}get focusedGroupIndex(){return this._focusedGroupIndex}set focusedGroupIndex(t){const e=this._focusedGroupIndex;if(this.labels&&0!==this.labels.length){const i=this.labels[e];i&&i.toggleAttribute("focused",!1);const o=this.labels[t];o&&(o.toggleAttribute("focused",!0),o.focus())}this._focusedGroupIndex=t,this.requestUpdate("focusedGroupIndex",e)}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForComboBox=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForComboBox=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForComboBox=`ComboBox Element, ${this.filteredOptions.length} results found.`}firstUpdated(t){this.ariaLabelForComboBox=this.ariaLabel?this.ariaLabel:"ComboBox Element",super.firstUpdated(t),this.isCustomContent&&(this.optionId="id",this.optionValue="value",this.setOptionCustomContent()),this.setInitialValue()}updated(t){super.updated(t),t.has("expanded")&&(this.expanded?(this.resizeListbox(),this.checkSelectedOptions()):this.unCheckAllOptions()),t.has("focusedIndex")&&this.focusedIndex>=0&&(this.checkForVirtualScroll()||this.scrollToOption()),t.has("value")&&0===this.selectedOptions.length&&this.setInitialValue(),t.has("customOptions")&&this.isCustomContent&&(this.setOptionCustomContent(),this.resizeListbox()),t.has("showCustomError")&&this.resizeListbox(),t.has("showLoader")&&this.resizeListbox(),t.has("searchItem")&&this.resizeListbox()}handleFocusIn(t){var e;this.disabled&&!this.readOnly||(this.noClearIcon&&(requestAnimationFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1}),this.selectWhenInFocus&&this.input.select()),null===(e=super.handleFocusIn)||void 0===e||e.call(this,t)),this.dispatchEvent(new CustomEvent("combobox-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("combobox-focus-out",{composed:!0,bubbles:!0}))}findFilteredOption(t){return this.isOptionObject(t)?this.filteredOptions.findIndex(e=>this.getOptionId(e)===this.getOptionId(t)&&this.getOptionValue(e)===this.getOptionValue(t)):this.filteredOptions.indexOf(t)}setInitialValue(){var t;if(this.value.length)if(this.isMulti)this.value.forEach(t=>{-1!==this.findFilteredOption(t)&&this.setSelectedOption(t)});else{const e=this.value[0],i=this.findFilteredOption(e);-1!==i&&(this.setSelectedOption(e),this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedIndex=i,this.focusedGroupIndex=-1)}}isOptionObject(t){return"object"==typeof t&&null!==t}setOptionCustomContent(){if(this.isOptGroup){const t=[...this.querySelectorAll("optgroup")],e=[];for(const i of t){const t=i.getAttribute("label"),o=[...i.querySelectorAll("[slot]")];e.push({isLabel:"true",[this.optionValue]:t,groupName:t});for(const i of o){const o=i.getAttribute("aria-label"),s=i.getAttribute("display-value"),r=i.getAttribute("slot");o&&s&&e.push({[this.optionId]:o,[this.optionValue]:s,isLabel:"false",groupName:t,slot:r})}}this.options=e}else this.customContent=[...this.querySelectorAll("[slot]")],this.customContent&&this.customContent.length?this.options=this.customContent.map(t=>{const e=t.getAttribute("aria-label"),i=t.getAttribute("display-value");if(e&&i)return{[this.optionId]:e,[this.optionValue]:i}}):this.options=[]}getOptionValue(t){return this.isOptionObject(t)?t[this.optionValue]:t}getOptionGroupName(t){return null==t?void 0:t.groupName}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}getFocusedItem(t){if(t>=0)return this.filteredOptions[t]}setupEvents(){document.addEventListener("click",this.handleOutsideClick),this.addEventListener("remove-all-selected",this.removeAllSelected),this.addEventListener("selected-changed",this.selectedChange)}teardownEvents(){document.removeEventListener("click",this.handleOutsideClick),this.removeEventListener("remove-all-selected",this.removeAllSelected),this.removeEventListener("selected-changed",this.selectedChange)}setVisualListbox(t){this.expanded=t}setGroupList(t){this.groupExpandedList.includes(t)?(this.groupExpandedList.splice(this.groupExpandedList.indexOf(t),1),this.groupExpandedList=[...this.groupExpandedList]):this.searchItem?this.groupExpandedList.push(t):this.groupExpandedList=[t]}findSelectedOption(t){return this.optionId&&t?this.selectedOptions.findIndex(e=>e&&e[this.optionId]===t[this.optionId]):this.selectedOptions.indexOf(t)}findOptionIndex(t){const e=t.composedPath();if(this.checkForVirtualScroll()){let t="";return[...this.lists].forEach(i=>{e.includes(i)&&(t=i.id)}),this.filteredOptions.findIndex(e=>this.getOptionId(e)===t)}return[...this.lists].findIndex(t=>e.includes(t))}checkSelectedOptions(){if(this.checkForVirtualScroll()){const t=this.selectedOptions.map(t=>this.getOptionId(t)),e=[...this.lists].filter(t=>"selectAll"!==t.id);null==e||e.forEach(e=>{t.includes(e.id)?(this.isMulti&&(null==e||e.setAttribute("aria-checked","true")),null==e||e.setAttribute("aria-selected","true")):this.isMulti&&(null==e||e.setAttribute("aria-checked","false"))})}}unCheckAllOptions(){var t;this.checkForVirtualScroll()&&this.isMulti&&(null===(t=[...this.lists])||void 0===t||t.forEach(t=>{"selectAll"!==(null==t?void 0:t.id)&&(null==t||t.setAttribute("aria-checked","false"))}))}setSelectedOption(t){this.isMulti||(this.selectedOptions=[]);const e=this.findSelectedOption(t);if(-1!==e){const t=this.selectedOptions[e];this.selectedOptions.splice(e,1),this.notifySelectedChange({value:t,selected:this.selectedOptions})}else this.selectedOptions.push(t),this.notifySelectedChange({value:t,selected:this.selectedOptions});this.checkSelectedOptions(),this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()),this.requestUpdate()}filterOptions(t){if(this.preventFilter)return this.searchItem=!1,this.options;if(t&&t.length){const e=this.options.filter(e=>this.isOptGroup&&"string"!=typeof e&&"true"===e.isLabel?e:(this.isCustomContent?this.getOptionId(e):this.getOptionValue(e)).toLowerCase().includes(t.toLowerCase()));return this.isOptGroup?this.handleGroupFilter(e):e}return this.searchItem=!1,this.options}getListBoxVerticalPadding(){if(this.listBox){const t=window.getComputedStyle(this.listBox,null),e=parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"));if(!isNaN(e))return e+2}return 10}resizeListbox(){this.updateOnNextFrame(()=>{var t;let e=0,i=0,o=0;const s=this.getListBoxVerticalPadding();if(this.lists){const t=this.checkForVirtualScroll()?[...this.lists].filter(t=>0!==t.offsetHeight):[...this.lists];e=t.slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0),o=this.checkForVirtualScroll()&&this.allowSelectAll?t.slice(1,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0):t.slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)}if(this.labels&&(i=[...this.labels].slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)),this.listBox&&(this.listBox.style.maxHeight=`${e+i+s}px`),this.virtualizer&&(this.virtualizer.style.height=`${o+s}px`),this.showCustomError||this.showLoader){const e=null===(t=this.listBox)||void 0===t?void 0:t.querySelector("[slot]");this.listBox&&e&&(this.listBox.style.height=`${e.clientHeight+s}px`,this.listBox.style.maxHeight=`${e.clientHeight+s}px`)}})}setInputValue(t=""){this.input.value=t}updateOnNextFrame(t){requestAnimationFrame(t)}unCheckedAllOptions(){this.isMulti&&(this.lists.forEach((t,e)=>this.unCheckedOption(e)),this.isSelectAllChecked=!1)}unCheckedOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","false"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}checkAllOptions(){this.isMulti&&this.lists.forEach((t,e)=>this.checkOption(e))}checkOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","true"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}isSelectAllSelected(){return this.selectedOptions.length===this.options.length}setFocusOnHost(t){this.setFocus&&this.setFocus(t)}isOptionFocused(t){return this.focusedIndex===t}getAriaState(t){return this.isOptionFocused(t)}scrollToOption(){var t,e;let i=0;const{top:o,bottom:s}=this.listBox.getBoundingClientRect(),r=this.lists[this.focusedIndex],n=null===(t=this.lists[this.focusedIndex+1]||r)||void 0===t?void 0:t.getBoundingClientRect(),a=null===(e=this.lists[this.focusedIndex-1]||r)||void 0===e?void 0:e.getBoundingClientRect();(null==n?void 0:n.bottom)>s?i=n.bottom-s+2:(null==a?void 0:a.top)<o&&(i=a.top-o-2),this.updateOnNextFrame(()=>{this.listBox.scrollTop+=i})}getCustomContentName(t){const e=this.options.indexOf(t);if(this.isOptGroup){const t=this.options[e];if(t&&"string"!=typeof t)return t.slot}else if(-1!==e)return this.customContent[e].slot}setInputSelectionRange(t,e){this.input.setSelectionRange(t,e)}isOptionChecked(t){return-1!==this.findSelectedOption(t)?"true":"false"}getInputSelection(){return this.input.selectionStart}canMultiSelect(){return 0===this.getInputSelection()&&0!==this.selectedOptions.length&&this.isMulti}removeMultiTag(){this.selected&&this.multiSelected.forEach(t=>{const e=this.selected[t];e&&e.hasAttribute("selected")&&this.removeSelected(this.selectedOptions[t])})}unselectedAllMultiTag(){this.selected&&this.selected.forEach(t=>t.removeAttribute("selected")),this.multiSelectedIndex=-1}findLastMultiSelected(){return this.selected[this.multiSelectedIndex]}toggleMultiSelectedTag(t,e){t&&t.toggleAttribute("selected",e)}selectMultiTag(t){if(this.canMultiSelect()){if(!t){this.multiSelected=[];const t=this.findLastMultiSelected();this.toggleMultiSelectedTag(t,!1)}this.multiSelectedIndex<=0?this.multiSelectedIndex=this.selectedOptions.length-1:this.multiSelectedIndex--,this.multiSelected.push(this.multiSelectedIndex);const e=this.findLastMultiSelected();this.toggleMultiSelectedTag(e,!0)}}handleListClick(t){return f(this,void 0,void 0,function*(){this.dispatchEvent(new CustomEvent("selected-changed",{detail:{event:t}})),yield this.updateComplete,this.isMulti?this.setVisualListbox(!0):this.setVisualListbox(!1),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})})}handleSelectAll(){return f(this,void 0,void 0,function*(){this.isSelectAllChecked=!this.isSelectAllChecked,this.isSelectAllChecked?(this.selectedOptions=[...this.options],this.checkAllOptions()):(this.selectedOptions=[],this.unCheckedAllOptions()),yield this.updateComplete,this.setVisualListbox(!0),this.notifySelectedChange({selected:this.selectedOptions})})}handleInputKeyUp(t){switch(t.code){case s.Uz.Escape:break;case s.Uz.Backspace:this.setFocusOnHost(!0),this.setVisualListbox(!0),this.resizeListbox(),this.removeMultiTag();break;case s.Uz.ArrowLeft:this.isMulti&&(t.shiftKey?this.selectMultiTag(!0):this.selectMultiTag(!1));break;default:this.isMulti&&this.unselectedAllMultiTag()}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}removeAllSelected(){var t;this.focusedIndex=-1,this.focusedGroupIndex=-1,this.selectedOptions=[],this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.unCheckedAllOptions(),this.setSelectedAttribute(void 0),this.updateOnNextFrame(()=>{this.input.focus()}),this.notifySelectedChange({selected:this.selectedOptions})}removeSelected(t){const e=this.findSelectedOption(t),i=this.filteredOptions.indexOf(t);-1!==i&&this.unCheckedOption(i),-1!==e&&(this.selectedOptions.splice(e,1),this.requestUpdate()),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})}selectedChange(t){var e;const{event:i}=t.detail;let o=this.findOptionIndex(i);if(-1!==o){this.focusedIndex=this.allowSelectAll&&this.checkForVirtualScroll()?o+1:o,this.isMulti&&this.allowSelectAll&&!this.checkForVirtualScroll()&&(o-=1);const t=this.getFocusedItem(o);this.setSelectedAttribute(t),t&&(this.setSelectedOption(t),this.isMulti?this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()):(this.setInputValue(this.getOptionValue(t)),null===(e=this.input)||void 0===e||e.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(t))))}}setSelectedAttribute(t){var e;let i="";t&&(i=this.getOptionId(t)),null===(e=this.lists)||void 0===e||e.forEach((t,e)=>{(null==t?void 0:t.id)===i?null==t||t.setAttribute("selected","true"):null==t||t.setAttribute("selected","false")})}shouldChangeButton(){const t=this.input&&this.input.value.length>0&&!this.noClearIcon||this.isMulti&&this.selectedOptions.length&&!this.noClearIcon;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}setCustomValue(){this.optionId||this.optionValue||(this.options=[...this.options,this.inputValue],this.setSelectedOption(this.inputValue),this.isMulti||this.updateOnNextFrame(()=>{var t;this.focusedIndex=this.filteredOptions.length-1;const e=this.getFocusedItem(this.focusedIndex);e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))}),this.dispatchEvent(new CustomEvent("custom-value-add",{composed:!0,bubbles:!0,detail:{value:this.inputValue}}))),this.inputValue=""}handleGroupFocus(){this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.filteredGroupOptions.length>0&&-1===this.focusedGroupIndex&&(this.focusedGroupIndex=this.filteredGroupOptions.findIndex(t=>"string"!=typeof t&&t.groupName===this.groupExpandedList[0])),this.updateOnNextFrame(()=>{-1===this.focusedGroupIndex||!this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length-1||this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length?this.focusedGroupIndex=0:this.focusedGroupIndex++}),this.focusedIndex=-1}handleInputKeyDown(t){var e,i;switch(t.code){case s.Uz.Backspace:this.focusedIndex=-1;break;case s.Uz.Tab:case s.Uz.Enter:if(this.setFocusOnHost(!0),this.expanded&&this.updateOnNextFrame(()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);this.allowCustomValue&&this.input&&this.input.value.length&&-1===this.findFilteredOption(this.inputValue)?this.setCustomValue():(e&&(this.setSelectedAttribute(e),this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll())}),this.setVisualListbox(!1),t.code===s.Uz.Tab&&this.isMulti)return;break;case s.Uz.ArrowDown:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame(()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1});break;case s.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame(()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedGroupIndex=-1)});break;case s.Uz.ArrowLeft:case s.Uz.ArrowRight:t.stopPropagation();break;case s.Uz.Escape:this.setFocusOnHost(!0),this.expanded?(t.stopPropagation(),this.setVisualListbox(!1)):(this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(s.iw.AriaActivedescendant,""),this.focusedIndex=-1,this.focusedGroupIndex=-1,this.removeAllSelected(),this.setSelectedAttribute(void 0));break;case s.Uz.Home:this.setInputSelectionRange(0,0);break;case s.Uz.End:{const{length:t}=this.inputValue;this.setInputSelectionRange(t,t)}break;case s.Uz.Space:if(this.isMulti&&this.expanded){t.preventDefault();const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.setSelectedAttribute(e),this.showSelectedCount||(this.setInputValue(),null===(i=this.input)||void 0===i||i.setAttribute(s.iw.AriaActivedescendant,""))),0===this.focusedIndex&&this.allowSelectAll&&this.handleSelectAll()}this.expanded=!0}}handleGroupLabelKeyDown(t,e){switch(t.code){case s.Uz.Tab:this.handleGroupFocus();break;case s.Uz.Enter:case s.Uz.Space:-1!==this.focusedGroupIndex?this.toggleGroupListBox(t,e.value):(this.setFocusOnHost(!0),this.setVisualListbox(!1),this.updateOnNextFrame(()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1}))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll()}));break;case s.Uz.ArrowDown:if(0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame(()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1});break;case s.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame(()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(e)))});break;case s.Uz.Escape:this.focusedGroupIndex=-1,this.setVisualListbox(!1),this.setFocusOnHost(!0),this.input.focus();break;default:this.setVisualListbox(!0)}}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-combobox-listbox"))t.target.focus();else if("md-icon"===t.target.localName){const o=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(o){const t=o.querySelector(".md-combobox-listbox");(0,b.setTimeout)(()=>{t.focus()},10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus(),this.setGroupList(""),this.focusedGroupIndex=-1}}toggleGroupListBox(t,e){t.stopPropagation(),this.focusedGroupIndex=this.filteredGroupOptions.findIndex(t=>"string"!=typeof t&&t.groupName===e),this.setGroupList(e),this.resizeListbox()}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}connectedCallback(){super.connectedCallback(),this.setupEvents(),this.querySelector("optgroup")&&(this.isOptGroup=!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}static get styles(){return[l.A,v.A]}get listItemOptionMap(){return{"md-combobox-multiselect":this.isMulti,compact:this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}get filteredOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter(t=>!this.isOptGroup||("string"!=typeof t&&this.groupExpandedList.includes(this.getOptionGroupName(t))?"false"===t.isLabel:void 0))}get filteredGroupOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter(t=>!this.isOptGroup||("string"!=typeof t?"true"===t.isLabel:void 0))}get comboBoxTemplateClassMap(){return{[`md-combobox--${this.shape}`]:!!this.shape,"md-combobox-searchable":this.searchable,"md-combobox-has-leading-icon":this.searchable||this.showFilterIcon,"md-new-combobox":this.newMomentum,[`md-${this.messageType}`]:!!this.messageType,"md-combobox-readonly":this.readOnly,"md-combobox-compact":this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}searchIconTemplate(){return this.leadingIconTemplate("search-bold","search-icon")}filterIconTemplate(){return this.leadingIconTemplate("filter-bold","filter-icon")}leadingIconTemplate(t,e){return d.html`
30
+ `}};c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"checked",null),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"indeterminate",null),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),c([(0,d.property)({type:String})],e.prototype,"label",void 0),c([(0,d.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,d.query)(".checkbox-input")],e.prototype,"input",void 0),e=c([(0,a.w)("md-checkbox")],e),t.ELEMENT=e}(s||(s={}))},4863:t=>{t.exports=b},4893:t=>{t.exports=O},4928:(t,e,i)=>{i.d(e,{ComboBox:()=>s}),i(20109),i(61200);var s,o=i(90195),r=i(3001),a=i(31890),n=i(66677),l=i(4313),d=i(87161),h=i(70429),c=i(85125),p=i(20291),u=i(58175),m=i(10318),y=i(97103),b=i(79270),v=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},g=function(t,e,i,s){return new(i||(i=Promise))(function(o,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((s=s.apply(t,e||[])).next())})};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this._focusedIndex=-1,this._focusedGroupIndex=-1,this.label="Options",this.options=[],this.customOptions=[],this.placeholder="",this.isMulti=!1,this.useVirtualScroll=!1,this.disabled=!1,this.ordered=!1,this.expanded=!1,this.groupExpandedList=[],this.searchItem=!1,this.compact=!1,this.noClearIcon=!1,this.selectWhenInFocus=!1,this.selectedOptions=[],this.visibleOptions=8,this.optionId="",this.optionValue="",this.isCustomContent=!1,this.searchable=!1,this.shape="none",this.value=[],this.inputValue="",this.allowCustomValue=!1,this.autofocus=!1,this.resultsTextLocalization="No Results",this.optionsTextLocalization="No Options",this.trimSpace=!1,this.invalid=!1,this.invalidText="",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForComboBox="",this.clearAriaLabel="Clear",this.arrowAriaLabel="Expand",this.clearIconHeight="auto",this.allTextLocalization="All",this.selectAllTextLocalization="Select All",this.selectedTextLocalization="Selected",this.allowSelectAll=!1,this.showCustomError=!1,this.showLoader=!1,this.showSelectedCount=!1,this.popupChevronAriaHidden="true",this.newMomentum=!1,this.showFilterIcon=!1,this.preventFilter=!1,this.isDropdownArrow=!1,this.comboboxId="",this.helpText="",this.messageArr=[],this.htmlId="",this.readOnly=!1,this.messageController=new e,this.isOptGroup=!1,this.isSelectAllChecked=!1,this.multiSelectedIndex=-1,this.multiSelected=[],this.customContent=[],this.notifySelectedChange=(0,n.sg)(t=>{this.dispatchEvent(new CustomEvent("change-selected",{composed:!0,bubbles:!0,detail:t}))},0),this.handleGroupFilter=t=>{const e=t.filter(t=>{if("string"!=typeof t&&"true"===t.isLabel)return t.groupName});return this.searchItem=!0,this.groupExpandedList=e.map(t=>{if("string"!=typeof t)return t.groupName}),t.filter(e=>"string"==typeof e||"true"!==e.isLabel||!!t.find(t=>{if("string"!=typeof e&&"string"!=typeof t)return e.groupName===t.groupName&&"false"===t.isLabel}))},this.notifyInputValueChanged=(0,n.sg)(t=>{this.dispatchEvent(new CustomEvent("combobox-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),this.focusedGroupIndex=0,requestAnimationFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})},250),this.handleOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||(this.setVisualListbox(!1),this.unselectedAllMultiTag()))},this.renderItem=(t,e)=>{const i=this.allowSelectAll?e+2:e+1,s=this.allowSelectAll?this.options.length+1:this.options.length,o=this.checkForVirtualScroll()?`, ${i} of ${s}`:"";return d.html`
31
+ <div
32
+ id=${this.getOptionId(t)}
33
+ title="${this.getOptionValue(t)}"
34
+ part="combobox-option"
35
+ class="md-combobox-option"
36
+ aria-posinset=${i}
37
+ aria-setsize=${s}
38
+ role=${this.isMulti?"checkbox":"listitem"}
39
+ aria-label="${this.isCustomContent?this.getOptionId(t):this.getOptionValue(t)}${o}"
40
+ tabindex="-1"
41
+ @click=${this.handleListClick}
42
+ aria-checked=${(0,p.ifDefined)(this.isMulti?this.isOptionChecked.call(this,t):void 0)}
43
+ >
44
+ ${this.isMulti?d.html`
45
+ <span class="select-option" aria-hidden="true">
46
+ <md-icon name="check-bold" size="14" iconSet="momentumDesign"></md-icon>
47
+ </span>
48
+ `:d.nothing}
49
+ <span part="label" class="select-label" aria-hidden="true">
50
+ ${this.isCustomContent?this.getCustomContent(t):this.highlightingSearchedText(t)}
51
+ </span>
52
+ </div>
53
+ `}}get focusedIndex(){return this._focusedIndex}set focusedIndex(t){this.updateFocusedIndex(t)}updateFocusedIndex(t){var e,i,s,o;const r=this._focusedIndex;if(this.checkForVirtualScroll()){let r;r=this.allowSelectAll?0===t?"selectAll":this.getOptionId(this.filteredOptions[t-1]):this.getOptionId(this.filteredOptions[t]);const a=this.lists?null===(e=[...this.lists])||void 0===e?void 0:e.find(t=>0!==t.offsetHeight&&t.id===r):"";this.lists&&[...this.lists].forEach(t=>{t.toggleAttribute("focused",!1)}),a&&(null==a||a.toggleAttribute("focused",!0));const n=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector("lit-virtualizer");n&&(-1===t?null===(s=n.element(t))||void 0===s||s.scrollIntoView({block:"start"}):null===(o=n.element(t))||void 0===o||o.scrollIntoView({block:"center"}))}else if(this.lists){const e=this.lists[r];e&&e.toggleAttribute("focused",!1);const i=this.lists[t];i&&i.toggleAttribute("focused",!0)}this._focusedIndex=t,this.requestUpdate("focusedIndex",r)}get focusedGroupIndex(){return this._focusedGroupIndex}set focusedGroupIndex(t){const e=this._focusedGroupIndex;if(this.labels&&0!==this.labels.length){const i=this.labels[e];i&&i.toggleAttribute("focused",!1);const s=this.labels[t];s&&(s.toggleAttribute("focused",!0),s.focus())}this._focusedGroupIndex=t,this.requestUpdate("focusedGroupIndex",e)}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForComboBox=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForComboBox=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForComboBox=`ComboBox Element, ${this.filteredOptions.length} results found.`}firstUpdated(t){this.ariaLabelForComboBox=this.ariaLabel?this.ariaLabel:"ComboBox Element",super.firstUpdated(t),this.isCustomContent&&(this.optionId="id",this.optionValue="value",this.setOptionCustomContent()),this.setInitialValue()}updated(t){super.updated(t),t.has("expanded")&&(this.expanded?(this.resizeListbox(),this.checkSelectedOptions()):this.unCheckAllOptions()),t.has("focusedIndex")&&this.focusedIndex>=0&&(this.checkForVirtualScroll()||this.scrollToOption()),t.has("value")&&0===this.selectedOptions.length&&this.setInitialValue(),t.has("customOptions")&&this.isCustomContent&&(this.setOptionCustomContent(),this.resizeListbox()),t.has("showCustomError")&&this.resizeListbox(),t.has("showLoader")&&this.resizeListbox(),t.has("searchItem")&&this.resizeListbox()}handleFocusIn(t){var e;this.disabled&&!this.readOnly||(this.noClearIcon&&(requestAnimationFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1}),this.selectWhenInFocus&&this.input.select()),null===(e=super.handleFocusIn)||void 0===e||e.call(this,t)),this.dispatchEvent(new CustomEvent("combobox-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("combobox-focus-out",{composed:!0,bubbles:!0}))}findFilteredOption(t){return this.isOptionObject(t)?this.filteredOptions.findIndex(e=>this.getOptionId(e)===this.getOptionId(t)&&this.getOptionValue(e)===this.getOptionValue(t)):this.filteredOptions.indexOf(t)}setInitialValue(){var t;if(this.value.length)if(this.isMulti)this.value.forEach(t=>{-1!==this.findFilteredOption(t)&&this.setSelectedOption(t)});else{const e=this.value[0],i=this.findFilteredOption(e);-1!==i&&(this.setSelectedOption(e),this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedIndex=i,this.focusedGroupIndex=-1)}}isOptionObject(t){return"object"==typeof t&&null!==t}setOptionCustomContent(){if(this.isOptGroup){const t=[...this.querySelectorAll("optgroup")],e=[];for(const i of t){const t=i.getAttribute("label"),s=[...i.querySelectorAll("[slot]")];e.push({isLabel:"true",[this.optionValue]:t,groupName:t});for(const i of s){const s=i.getAttribute("aria-label"),o=i.getAttribute("display-value"),r=i.getAttribute("slot");s&&o&&e.push({[this.optionId]:s,[this.optionValue]:o,isLabel:"false",groupName:t,slot:r})}}this.options=e}else this.customContent=[...this.querySelectorAll("[slot]")],this.customContent&&this.customContent.length?this.options=this.customContent.map(t=>{const e=t.getAttribute("aria-label"),i=t.getAttribute("display-value");if(e&&i)return{[this.optionId]:e,[this.optionValue]:i}}):this.options=[]}getOptionValue(t){return this.isOptionObject(t)?t[this.optionValue]:t}getOptionGroupName(t){return null==t?void 0:t.groupName}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}getFocusedItem(t){if(t>=0)return this.filteredOptions[t]}setupEvents(){document.addEventListener("click",this.handleOutsideClick),this.addEventListener("remove-all-selected",this.removeAllSelected),this.addEventListener("selected-changed",this.selectedChange)}teardownEvents(){document.removeEventListener("click",this.handleOutsideClick),this.removeEventListener("remove-all-selected",this.removeAllSelected),this.removeEventListener("selected-changed",this.selectedChange)}setVisualListbox(t){this.expanded=t}setGroupList(t){this.groupExpandedList.includes(t)?(this.groupExpandedList.splice(this.groupExpandedList.indexOf(t),1),this.groupExpandedList=[...this.groupExpandedList]):this.searchItem?this.groupExpandedList.push(t):this.groupExpandedList=[t]}findSelectedOption(t){return this.optionId&&t?this.selectedOptions.findIndex(e=>e&&e[this.optionId]===t[this.optionId]):this.selectedOptions.indexOf(t)}findOptionIndex(t){const e=t.composedPath();if(this.checkForVirtualScroll()){let t="";return[...this.lists].forEach(i=>{e.includes(i)&&(t=i.id)}),this.filteredOptions.findIndex(e=>this.getOptionId(e)===t)}return[...this.lists].findIndex(t=>e.includes(t))}checkSelectedOptions(){if(this.checkForVirtualScroll()){const t=this.selectedOptions.map(t=>this.getOptionId(t)),e=[...this.lists].filter(t=>"selectAll"!==t.id);null==e||e.forEach(e=>{t.includes(e.id)?(this.isMulti&&(null==e||e.setAttribute("aria-checked","true")),null==e||e.setAttribute("aria-selected","true")):this.isMulti&&(null==e||e.setAttribute("aria-checked","false"))})}}unCheckAllOptions(){var t;this.checkForVirtualScroll()&&this.isMulti&&(null===(t=[...this.lists])||void 0===t||t.forEach(t=>{"selectAll"!==(null==t?void 0:t.id)&&(null==t||t.setAttribute("aria-checked","false"))}))}setSelectedOption(t){this.isMulti||(this.selectedOptions=[]);const e=this.findSelectedOption(t);if(-1!==e){const t=this.selectedOptions[e];this.selectedOptions.splice(e,1),this.notifySelectedChange({value:t,selected:this.selectedOptions})}else this.selectedOptions.push(t),this.notifySelectedChange({value:t,selected:this.selectedOptions});this.checkSelectedOptions(),this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()),this.requestUpdate()}filterOptions(t){if(this.preventFilter)return this.searchItem=!1,this.options;if(t&&t.length){const e=this.options.filter(e=>this.isOptGroup&&"string"!=typeof e&&"true"===e.isLabel?e:(this.isCustomContent?this.getOptionId(e):this.getOptionValue(e)).toLowerCase().includes(t.toLowerCase()));return this.isOptGroup?this.handleGroupFilter(e):e}return this.searchItem=!1,this.options}getListBoxVerticalPadding(){if(this.listBox){const t=window.getComputedStyle(this.listBox,null),e=parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"));if(!isNaN(e))return e+2}return 10}resizeListbox(){this.updateOnNextFrame(()=>{var t;let e=0,i=0,s=0;const o=this.getListBoxVerticalPadding();if(this.lists){const t=this.checkForVirtualScroll()?[...this.lists].filter(t=>0!==t.offsetHeight):[...this.lists];e=t.slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0),s=this.checkForVirtualScroll()&&this.allowSelectAll?t.slice(1,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0):t.slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)}if(this.labels&&(i=[...this.labels].slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)),this.listBox&&(this.listBox.style.maxHeight=`${e+i+o}px`),this.virtualizer&&(this.virtualizer.style.height=`${s+o}px`),this.showCustomError||this.showLoader){const e=null===(t=this.listBox)||void 0===t?void 0:t.querySelector("[slot]");this.listBox&&e&&(this.listBox.style.height=`${e.clientHeight+o}px`,this.listBox.style.maxHeight=`${e.clientHeight+o}px`)}})}setInputValue(t=""){this.input.value=t}updateOnNextFrame(t){requestAnimationFrame(t)}unCheckedAllOptions(){this.isMulti&&(this.lists.forEach((t,e)=>this.unCheckedOption(e)),this.isSelectAllChecked=!1)}unCheckedOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","false"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}checkAllOptions(){this.isMulti&&this.lists.forEach((t,e)=>this.checkOption(e))}checkOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","true"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}isSelectAllSelected(){return this.selectedOptions.length===this.options.length}setFocusOnHost(t){this.setFocus&&this.setFocus(t)}isOptionFocused(t){return this.focusedIndex===t}getAriaState(t){return this.isOptionFocused(t)}scrollToOption(){var t,e;let i=0;const{top:s,bottom:o}=this.listBox.getBoundingClientRect(),r=this.lists[this.focusedIndex],a=null===(t=this.lists[this.focusedIndex+1]||r)||void 0===t?void 0:t.getBoundingClientRect(),n=null===(e=this.lists[this.focusedIndex-1]||r)||void 0===e?void 0:e.getBoundingClientRect();(null==a?void 0:a.bottom)>o?i=a.bottom-o+2:(null==n?void 0:n.top)<s&&(i=n.top-s-2),this.updateOnNextFrame(()=>{this.listBox.scrollTop+=i})}getCustomContentName(t){const e=this.options.indexOf(t);if(this.isOptGroup){const t=this.options[e];if(t&&"string"!=typeof t)return t.slot}else if(-1!==e)return this.customContent[e].slot}setInputSelectionRange(t,e){this.input.setSelectionRange(t,e)}isOptionChecked(t){return-1!==this.findSelectedOption(t)?"true":"false"}getInputSelection(){return this.input.selectionStart}canMultiSelect(){return 0===this.getInputSelection()&&0!==this.selectedOptions.length&&this.isMulti}removeMultiTag(){this.selected&&this.multiSelected.forEach(t=>{const e=this.selected[t];e&&e.hasAttribute("selected")&&this.removeSelected(this.selectedOptions[t])})}unselectedAllMultiTag(){this.selected&&this.selected.forEach(t=>t.removeAttribute("selected")),this.multiSelectedIndex=-1}findLastMultiSelected(){return this.selected[this.multiSelectedIndex]}toggleMultiSelectedTag(t,e){t&&t.toggleAttribute("selected",e)}selectMultiTag(t){if(this.canMultiSelect()){if(!t){this.multiSelected=[];const t=this.findLastMultiSelected();this.toggleMultiSelectedTag(t,!1)}this.multiSelectedIndex<=0?this.multiSelectedIndex=this.selectedOptions.length-1:this.multiSelectedIndex--,this.multiSelected.push(this.multiSelectedIndex);const e=this.findLastMultiSelected();this.toggleMultiSelectedTag(e,!0)}}handleListClick(t){return g(this,void 0,void 0,function*(){this.dispatchEvent(new CustomEvent("selected-changed",{detail:{event:t}})),yield this.updateComplete,this.isMulti?this.setVisualListbox(!0):this.setVisualListbox(!1),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})})}handleSelectAll(){return g(this,void 0,void 0,function*(){this.isSelectAllChecked=!this.isSelectAllChecked,this.isSelectAllChecked?(this.selectedOptions=[...this.options],this.checkAllOptions()):(this.selectedOptions=[],this.unCheckedAllOptions()),yield this.updateComplete,this.setVisualListbox(!0),this.notifySelectedChange({selected:this.selectedOptions})})}handleInputKeyUp(t){switch(t.code){case o.Uz.Escape:break;case o.Uz.Backspace:this.setFocusOnHost(!0),this.setVisualListbox(!0),this.resizeListbox(),this.removeMultiTag();break;case o.Uz.ArrowLeft:this.isMulti&&(t.shiftKey?this.selectMultiTag(!0):this.selectMultiTag(!1));break;default:this.isMulti&&this.unselectedAllMultiTag()}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}removeAllSelected(){var t;this.focusedIndex=-1,this.focusedGroupIndex=-1,this.selectedOptions=[],this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.unCheckedAllOptions(),this.setSelectedAttribute(void 0),this.updateOnNextFrame(()=>{this.input.focus()}),this.notifySelectedChange({selected:this.selectedOptions})}removeSelected(t){const e=this.findSelectedOption(t),i=this.filteredOptions.indexOf(t);-1!==i&&this.unCheckedOption(i),-1!==e&&(this.selectedOptions.splice(e,1),this.requestUpdate()),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1})}selectedChange(t){var e;const{event:i}=t.detail;let s=this.findOptionIndex(i);if(-1!==s){this.focusedIndex=this.allowSelectAll&&this.checkForVirtualScroll()?s+1:s,this.isMulti&&this.allowSelectAll&&!this.checkForVirtualScroll()&&(s-=1);const t=this.getFocusedItem(s);this.setSelectedAttribute(t),t&&(this.setSelectedOption(t),this.isMulti?this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()):(this.setInputValue(this.getOptionValue(t)),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(t))))}}setSelectedAttribute(t){var e;let i="";t&&(i=this.getOptionId(t)),null===(e=this.lists)||void 0===e||e.forEach((t,e)=>{(null==t?void 0:t.id)===i?null==t||t.setAttribute("selected","true"):null==t||t.setAttribute("selected","false")})}shouldChangeButton(){const t=this.input&&this.input.value.length>0&&!this.noClearIcon||this.isMulti&&this.selectedOptions.length&&!this.noClearIcon;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}setCustomValue(){this.optionId||this.optionValue||(this.options=[...this.options,this.inputValue],this.setSelectedOption(this.inputValue),this.isMulti||this.updateOnNextFrame(()=>{var t;this.focusedIndex=this.filteredOptions.length-1;const e=this.getFocusedItem(this.focusedIndex);e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))}),this.dispatchEvent(new CustomEvent("custom-value-add",{composed:!0,bubbles:!0,detail:{value:this.inputValue}}))),this.inputValue=""}handleGroupFocus(){this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.filteredGroupOptions.length>0&&-1===this.focusedGroupIndex&&(this.focusedGroupIndex=this.filteredGroupOptions.findIndex(t=>"string"!=typeof t&&t.groupName===this.groupExpandedList[0])),this.updateOnNextFrame(()=>{-1===this.focusedGroupIndex||!this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length-1||this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length?this.focusedGroupIndex=0:this.focusedGroupIndex++}),this.focusedIndex=-1}handleInputKeyDown(t){var e,i;switch(t.code){case o.Uz.Backspace:this.focusedIndex=-1;break;case o.Uz.Tab:case o.Uz.Enter:if(this.setFocusOnHost(!0),this.expanded&&this.updateOnNextFrame(()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);this.allowCustomValue&&this.input&&this.input.value.length&&-1===this.findFilteredOption(this.inputValue)?this.setCustomValue():(e&&(this.setSelectedAttribute(e),this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll())}),this.setVisualListbox(!1),t.code===o.Uz.Tab&&this.isMulti)return;break;case o.Uz.ArrowDown:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame(()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1});break;case o.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame(()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedGroupIndex=-1)});break;case o.Uz.ArrowLeft:case o.Uz.ArrowRight:t.stopPropagation();break;case o.Uz.Escape:this.setFocusOnHost(!0),this.expanded?(t.stopPropagation(),this.setVisualListbox(!1)):(this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,""),this.focusedIndex=-1,this.focusedGroupIndex=-1,this.removeAllSelected(),this.setSelectedAttribute(void 0));break;case o.Uz.Home:this.setInputSelectionRange(0,0);break;case o.Uz.End:{const{length:t}=this.inputValue;this.setInputSelectionRange(t,t)}break;case o.Uz.Space:if(this.isMulti&&this.expanded){t.preventDefault();const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.setSelectedAttribute(e),this.showSelectedCount||(this.setInputValue(),null===(i=this.input)||void 0===i||i.setAttribute(o.iw.AriaActivedescendant,""))),0===this.focusedIndex&&this.allowSelectAll&&this.handleSelectAll()}this.expanded=!0}}handleGroupLabelKeyDown(t,e){switch(t.code){case o.Uz.Tab:this.handleGroupFocus();break;case o.Uz.Enter:case o.Uz.Space:-1!==this.focusedGroupIndex?this.toggleGroupListBox(t,e.value):(this.setFocusOnHost(!0),this.setVisualListbox(!1),this.updateOnNextFrame(()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.updateOnNextFrame(()=>{this.input.focus(),this.focusedGroupIndex=-1}))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll()}));break;case o.Uz.ArrowDown:if(0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame(()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1});break;case o.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame(()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))});break;case o.Uz.Escape:this.focusedGroupIndex=-1,this.setVisualListbox(!1),this.setFocusOnHost(!0),this.input.focus();break;default:this.setVisualListbox(!0)}}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-combobox-listbox"))t.target.focus();else if("md-icon"===t.target.localName){const s=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(s){const t=s.querySelector(".md-combobox-listbox");(0,y.setTimeout)(()=>{t.focus()},10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus(),this.setGroupList(""),this.focusedGroupIndex=-1}}toggleGroupListBox(t,e){t.stopPropagation(),this.focusedGroupIndex=this.filteredGroupOptions.findIndex(t=>"string"!=typeof t&&t.groupName===e),this.setGroupList(e),this.resizeListbox()}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}connectedCallback(){super.connectedCallback(),this.setupEvents(),this.querySelector("optgroup")&&(this.isOptGroup=!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}static get styles(){return[l.A,b.A]}get listItemOptionMap(){return{"md-combobox-multiselect":this.isMulti,compact:this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}get filteredOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter(t=>!this.isOptGroup||("string"!=typeof t&&this.groupExpandedList.includes(this.getOptionGroupName(t))?"false"===t.isLabel:void 0))}get filteredGroupOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter(t=>!this.isOptGroup||("string"!=typeof t?"true"===t.isLabel:void 0))}get comboBoxTemplateClassMap(){return{[`md-combobox--${this.shape}`]:!!this.shape,"md-combobox-searchable":this.searchable,"md-combobox-has-leading-icon":this.searchable||this.showFilterIcon,"md-new-combobox":this.newMomentum,[`md-${this.messageType}`]:!!this.messageType,"md-combobox-readonly":this.readOnly,"md-combobox-compact":this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}searchIconTemplate(){return this.leadingIconTemplate("search-bold","search-icon")}filterIconTemplate(){return this.leadingIconTemplate("filter-bold","filter-icon")}leadingIconTemplate(t,e){return d.html`
31
54
  <md-icon
32
55
  name=${t}
33
56
  class=${e}
@@ -114,7 +137,7 @@
114
137
 
115
138
  <span part="label" class="select-label" aria-hidden="true">${this.selectAllTextLocalization}</span>
116
139
  </div>
117
- `}getSelctedCount(){return 0===this.selectedOptions.length?h.nothing:this.isSelectAllSelected()?d.html` <span class="selected-count">${this.allTextLocalization}</span> `:d.html`
140
+ `}getSelctedCount(){return 0===this.selectedOptions.length?d.nothing:this.isSelectAllSelected()?d.html` <span class="selected-count">${this.allTextLocalization}</span> `:d.html`
118
141
  <span class="selected-count">${this.selectedOptions.length} ${this.selectedTextLocalization}</span>
119
142
  `}checkForVirtualScroll(){return this.useVirtualScroll&&!this.isOptGroup}rangeChanged(){this.updateFocusedIndex(this.focusedIndex),this.checkSelectedOptions(),this.resizeListbox()}getCustomErrorContent(){const t=this.querySelector("[slot]")||this.shadowRoot.querySelector("[slot]");return document.createRange().createContextualFragment(`${null==t?void 0:t.outerHTML}`)}getCustomContent(t){const e=this.getCustomContentName(t);if(this.isOptGroup){const t=[...this.querySelectorAll("[slot]")].find(t=>t.slot===e);return t?document.createRange().createContextualFragment(`${t.outerHTML}`):d.html``}return d.html` <slot name=${(0,p.ifDefined)(e)}></slot> `}renderGroupLabelHeader(t,e){return d.html`
120
143
  <div
@@ -131,36 +154,13 @@
131
154
  <span part="group-label">${t.value}</span>
132
155
  ${this.groupArrowButtonTemplate(t.value)}
133
156
  </div>
134
- `}renderWithoutVirtualScroll(){return(0,u.repeat)(this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue),t=>this.getOptionId(t),(t,e)=>"string"!=typeof t&&this.isOptGroup&&"true"===t.isLabel?this.renderGroupLabelHeader(t,e):!this.isOptGroup||this.groupExpandedList.includes(this.getOptionGroupName(t))?this.renderItem(t,e):void 0)}highlightingSearchedText(t){return(0,a.ws)(this.getOptionValue(t),this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).map(({text:t,matching:e})=>e?d.html` <span class="highlight-text" part="select-label">${t}</span> `:d.html` <span class="selected-label-text" part="select-label">${t}</span> `)}addStyle(){const t=!this.expanded||this.options.length&&0===this.filteredOptions.length&&this.inputValue&&this.allowCustomValue;return this.checkForVirtualScroll()?(0,m.styleMap)({visibility:t?"hidden":"visible","z-index":t?"-1":"99",overflow:"hidden"}):(0,m.styleMap)({display:t?"none":"block","z-index":"99",overflow:"auto"})}renderItem(t,e){const i=this.allowSelectAll?e+2:e+1,o=this.allowSelectAll?this.options.length+1:this.options.length,s=this.checkForVirtualScroll()?`, ${i} of ${o}`:"";return d.html`
135
- <div
136
- id=${this.getOptionId(t)}
137
- title="${this.getOptionValue(t)}"
138
- part="combobox-option"
139
- class="md-combobox-option"
140
- aria-posinset=${i}
141
- aria-setsize=${o}
142
- role=${this.isMulti?"checkbox":"listitem"}
143
- aria-label="${this.isCustomContent?this.getOptionId(t):this.getOptionValue(t)}${s}"
144
- tabindex="-1"
145
- @click=${this.handleListClick}
146
- aria-checked=${(0,p.ifDefined)(this.isMulti?this.isOptionChecked.call(this,t):void 0)}
147
- >
148
- ${this.isMulti?d.html`
149
- <span class="select-option" aria-hidden="true">
150
- <md-icon name="check-bold" size="14" iconSet="momentumDesign"></md-icon>
151
- </span>
152
- `:h.nothing}
153
- <span part="label" class="select-label" aria-hidden="true">
154
- ${this.isCustomContent?this.getCustomContent(t):this.highlightingSearchedText(t)}
155
- </span>
156
- </div>
157
- `}inputTitle(){return this.isMulti?this.selectedOptions.length>0?`${this.selectedOptions.length} ${this.selectedTextLocalization}`:this.placeholder:this.selectedOptions.length>0?this.getOptionValue(this.selectedOptions[0]):this.placeholder}helpTextTemplate(){return this.helpText?d.html`
157
+ `}renderWithoutVirtualScroll(){return(0,u.repeat)(this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue),t=>this.getOptionId(t),(t,e)=>"string"!=typeof t&&this.isOptGroup&&"true"===t.isLabel?this.renderGroupLabelHeader(t,e):!this.isOptGroup||this.groupExpandedList.includes(this.getOptionGroupName(t))?this.renderItem(t,e):void 0)}highlightingSearchedText(t){return(0,n.ws)(this.getOptionValue(t),this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).map(({text:t,matching:e})=>e?d.html` <span class="highlight-text" part="select-label">${t}</span> `:d.html` <span class="selected-label-text" part="select-label">${t}</span> `)}addStyle(){const t=!this.expanded||this.options.length&&0===this.filteredOptions.length&&this.inputValue&&this.allowCustomValue;return this.checkForVirtualScroll()?(0,m.styleMap)({visibility:t?"hidden":"visible","z-index":t?"-1":"99",overflow:"hidden"}):(0,m.styleMap)({display:t?"none":"block","z-index":"99",overflow:"auto"})}inputTitle(){return this.isMulti?this.selectedOptions.length>0?`${this.selectedOptions.length} ${this.selectedTextLocalization}`:this.placeholder:this.selectedOptions.length>0?this.getOptionValue(this.selectedOptions[0]):this.placeholder}helpTextTemplate(){return this.helpText?d.html`
158
158
  <md-help-text
159
159
  class="help-text ${(0,c.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
160
160
  .message=${this.helpText}
161
161
  style=${(0,m.styleMap)({width:"100%"})}
162
162
  ></md-help-text>
163
- `:h.nothing}messagesTemplate(){return this.messages&&this.messages.length?d.html`
163
+ `:d.nothing}messagesTemplate(){return this.messages&&this.messages.length?d.html`
164
164
  <div id="${this.htmlId}-message" part="message" class="md-combobox__messages">
165
165
  ${(0,u.repeat)(this.messages,(t,e)=>d.html`
166
166
  <md-help-text
@@ -171,12 +171,19 @@
171
171
  ></md-help-text>
172
172
  `)}
173
173
  </div>
174
- `:h.nothing}get newArrowButtonTemplate(){return d.html`<div class="md-combobox-right-arrow">${this.arrowButtonTemplate()}</div>`}get renderNewMomentumArrow(){return d.html` ${this.isDropdownArrow?this.arrowButtonTemplate():this.newArrowButtonTemplate} `}get renderTrailingInputControls(){const t=this.shouldChangeButton();return this.newMomentum?t&&this.isDropdownArrow?d.html`${this.clearButtonTemplate()}`:t?d.html`${this.clearButtonTemplate()} ${this.renderNewMomentumArrow}`:this.renderNewMomentumArrow:this.compact?d.html`${h.nothing}`:d.html`${t?this.clearButtonTemplate():this.arrowButtonTemplate()}`}render(){return d.html`
174
+ `:d.nothing}get newArrowButtonTemplate(){return d.html`<div class="md-combobox-right-arrow">${this.arrowButtonTemplate()}</div>`}get renderNewMomentumArrow(){return d.html` ${this.isDropdownArrow?this.arrowButtonTemplate():this.newArrowButtonTemplate} `}get renderTrailingInputControls(){const t=this.shouldChangeButton();return this.newMomentum?t&&this.isDropdownArrow?d.html`${this.clearButtonTemplate()}`:t?d.html`${this.clearButtonTemplate()} ${this.renderNewMomentumArrow}`:this.renderNewMomentumArrow:this.compact?d.html`${d.nothing}`:d.html`${t?this.clearButtonTemplate():this.arrowButtonTemplate()}`}get renderVirtualScroll(){return d.html`
175
+ <div class="virtual-scroll" @rangeChanged=${this.rangeChanged}>
176
+ <lit-virtualizer
177
+ .items=${this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue)}
178
+ .renderItem=${(t,e)=>this.renderItem(t,e)}
179
+ ></lit-virtualizer>
180
+ </div>
181
+ `}render(){return d.html`
175
182
  <div part="combobox" class="md-combobox md-combobox-list ${(0,c.classMap)(this.comboBoxTemplateClassMap)}">
176
183
  <div part="group" class="group ${(0,c.classMap)(this.listItemOptionMap)}">
177
- ${this.searchable?this.searchIconTemplate():this.showFilterIcon?this.filterIconTemplate():h.nothing}
184
+ ${this.searchable?this.searchIconTemplate():this.showFilterIcon?this.filterIconTemplate():d.nothing}
178
185
  <div class="md-combobox__multiwrap" part="multiwrap">
179
- ${this.isMulti?this.isMulti&&!this.showSelectedCount?(0,u.repeat)(this.selectedOptions,t=>this.selectedOptionTemplate(t)):this.getSelctedCount():h.nothing}
186
+ ${this.isMulti?this.isMulti&&!this.showSelectedCount?(0,u.repeat)(this.selectedOptions,t=>this.selectedOptionTemplate(t)):this.getSelctedCount():d.nothing}
180
187
  <input
181
188
  id=${(0,p.ifDefined)(this.comboboxId||void 0)}
182
189
  class="md-combobox-listbox"
@@ -219,22 +226,18 @@
219
226
  style=${this.addStyle()}
220
227
  role=${(0,p.ifDefined)(this.checkForVirtualScroll()?void 0:"list")}
221
228
  >
222
- ${this.isMulti&&this.allowSelectAll&&this.expanded?this.getSelectAllOption():h.nothing}
223
- ${this.checkForVirtualScroll()?0!==this.options.length&&this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).length>0?d.html`
224
- <div class="virtual-scroll" @rangechange=${this.rangeChanged}>
225
- ${(0,y.scroll)({items:this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue),renderItem:(t,e)=>this.renderItem(t,e||0),useShadowDOM:!1,scrollToIndex:{index:this.focusedIndex,position:-1===this.focusedIndex?"start":"center"}})}
226
- </div>
227
- `:h.nothing:this.renderWithoutVirtualScroll()}
229
+ ${this.isMulti&&this.allowSelectAll&&this.expanded?this.getSelectAllOption():d.nothing}
230
+ ${this.checkForVirtualScroll()?0!==this.options.length&&this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).length>0?this.renderVirtualScroll:d.nothing:this.renderWithoutVirtualScroll()}
228
231
  ${this.options.length&&0===this.filteredOptions.length&&this.inputValue&&!this.allowCustomValue?d.html`
229
232
  <div class="no-result md-combobox-option" role="option" aria-selected="false" tabindex="-1">
230
233
  ${this.resultsTextLocalization.trim()}
231
234
  </div>
232
- `:h.nothing}
235
+ `:d.nothing}
233
236
  ${0===this.options.length?d.html`
234
237
  <div class="no-result md-combobox-option" role="option" aria-selected="false" tabindex="-1">
235
238
  ${this.optionsTextLocalization.trim()}
236
239
  </div>
237
- `:h.nothing}
240
+ `:d.nothing}
238
241
  </div>
239
242
  `}
240
243
  </div>
@@ -242,30 +245,30 @@
242
245
  <div part="message" class="md-combobox-error ${(0,c.classMap)({"md-new-combobox-error":this.newMomentum})}">
243
246
  <md-help-text .message=${this.invalidText} messageType="error"></md-help-text>
244
247
  </div>
245
- `:h.nothing}
248
+ `:d.nothing}
246
249
  ${this.messagesTemplate()} ${this.helpTextTemplate()}
247
- `}};g([(0,d.property)({type:String})],i.prototype,"label",void 0),g([(0,d.property)({type:Array})],i.prototype,"options",void 0),g([(0,d.property)({type:Array,attribute:"custom-options"})],i.prototype,"customOptions",void 0),g([(0,d.property)({type:String})],i.prototype,"placeholder",void 0),g([(0,d.property)({type:Boolean,attribute:"is-multi"})],i.prototype,"isMulti",void 0),g([(0,d.property)({type:Boolean,attribute:"use-virtual-scroll"})],i.prototype,"useVirtualScroll",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"ordered",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"expanded",void 0),g([(0,d.property)({type:Array,reflect:!0})],i.prototype,"groupExpandedList",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchItem",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"compact",void 0),g([(0,d.property)({type:Boolean,attribute:"no-clear-icon"})],i.prototype,"noClearIcon",void 0),g([(0,d.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),g([(0,d.property)({type:Array})],i.prototype,"selectedOptions",void 0),g([(0,d.property)({type:Number,attribute:"visible-option",reflect:!0})],i.prototype,"visibleOptions",void 0),g([(0,d.property)({type:String,attribute:"option-id",reflect:!0})],i.prototype,"optionId",void 0),g([(0,d.property)({type:String,attribute:"option-value",reflect:!0})],i.prototype,"optionValue",void 0),g([(0,d.property)({type:Boolean,attribute:"with-custom-content"})],i.prototype,"isCustomContent",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchable",void 0),g([(0,d.property)({type:String})],i.prototype,"shape",void 0),g([(0,d.property)({type:Array})],i.prototype,"value",void 0),g([(0,d.property)({type:String,attribute:"input-value",reflect:!0})],i.prototype,"inputValue",void 0),g([(0,d.property)({type:Boolean,attribute:"allow-custom-value",reflect:!0})],i.prototype,"allowCustomValue",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),g([(0,d.property)({type:String,attribute:"no-results-i18n"})],i.prototype,"resultsTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"no-options-i18n"})],i.prototype,"optionsTextLocalization",void 0),g([(0,d.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],i.prototype,"trimSpace",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"invalid",void 0),g([(0,d.property)({type:String,reflect:!0,attribute:"invalid-text-i18n"})],i.prototype,"invalidText",void 0),g([(0,d.property)({type:String,reflect:!0})],i.prototype,"ariaLabel",void 0),g([(0,d.property)({type:String,attribute:"search-result-aria-label"})],i.prototype,"searchResultAriaLabel",void 0),g([(0,d.internalProperty)()],i.prototype,"ariaLabelForComboBox",void 0),g([(0,d.property)({type:String,attribute:"clear-aria-label"})],i.prototype,"clearAriaLabel",void 0),g([(0,d.property)({type:String,attribute:"arrow-aria-label"})],i.prototype,"arrowAriaLabel",void 0),g([(0,d.property)({type:String,attribute:"clear-icon-height"})],i.prototype,"clearIconHeight",void 0),g([(0,d.property)({type:String,attribute:"all-i18n"})],i.prototype,"allTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"select-all-i18n"})],i.prototype,"selectAllTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"selected-all-i18n"})],i.prototype,"selectedTextLocalization",void 0),g([(0,d.property)({type:Boolean,attribute:"allow-select-all",reflect:!0})],i.prototype,"allowSelectAll",void 0),g([(0,d.property)({type:Boolean,attribute:"show-custom-error",reflect:!0})],i.prototype,"showCustomError",void 0),g([(0,d.property)({type:Boolean,attribute:"show-loader",reflect:!0})],i.prototype,"showLoader",void 0),g([(0,d.property)({type:Boolean,attribute:"show-selected-count",reflect:!0})],i.prototype,"showSelectedCount",void 0),g([(0,d.property)({type:String,attribute:"popup-chevron-aria-hidden"})],i.prototype,"popupChevronAriaHidden",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"newMomentum",void 0),g([(0,d.property)({type:Boolean,attribute:"show-filter-icon"})],i.prototype,"showFilterIcon",void 0),g([(0,d.property)({type:Boolean,attribute:"prevent-filter"})],i.prototype,"preventFilter",void 0),g([(0,d.property)({type:Boolean,attribute:"is-dropdown-arrow"})],i.prototype,"isDropdownArrow",void 0),g([(0,d.property)({type:String})],i.prototype,"comboboxId",void 0),g([(0,d.property)({type:String})],i.prototype,"helpText",void 0),g([(0,d.property)({type:Array})],i.prototype,"messageArr",void 0),g([(0,d.property)({type:String})],i.prototype,"htmlId",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"readOnly",void 0),g([(0,d.internalProperty)()],i.prototype,"isOptGroup",void 0),g([(0,d.internalProperty)()],i.prototype,"isSelectAllChecked",void 0),g([(0,d.query)(".group")],i.prototype,"group",void 0),g([(0,d.query)(".md-combobox-listbox")],i.prototype,"input",void 0),g([(0,d.query)(".md-combobox-button")],i.prototype,"button",void 0),g([(0,d.query)("div#md-combobox-listbox")],i.prototype,"listBox",void 0),g([(0,d.query)(".virtual-scroll")],i.prototype,"virtualizer",void 0),g([(0,d.queryAll)("div.md-combobox-option")],i.prototype,"lists",void 0),g([(0,d.queryAll)(".group-label")],i.prototype,"labels",void 0),g([(0,d.queryAll)(".md-combobox-selected-item")],i.prototype,"selected",void 0),i=g([(0,n.w)("md-combobox")],i),t.ELEMENT=i}(o||(o={}))},5784:t=>{t.exports=f},6396:(t,e,i)=>{i.d(e,{Label:()=>o});var o,s=i(31890),r=i(26272),n=i(41488),a=i(17518),l=i(11598),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.label="",this.theme="",this.radioLabel=!1,this.checkboxLabel=!1,this.toggleSwitchLabel=!1,this.htmlFor="",this.active=!1,this.disabled=!1,this.indeterminate=!1,this.secondaryLabel=!1}static get styles(){return[r.A,l.A]}setFocus(){this.dispatchEvent(new CustomEvent("setFocus"))}get labelClassMap(){return{[`md-label--${this.theme}`]:!!this.theme,"md-radio__label":this.radioLabel,"md-checkbox__label":this.checkboxLabel,"md-secondary-label":this.secondaryLabel,active:this.active,disabled:this.disabled,indeterminate:this.indeterminate}}handleClick(){this.setFocus(),this.dispatchEvent(new CustomEvent("label-click",{composed:!0,bubbles:!0,detail:{htmlFor:this.htmlFor}}))}render(){return n.html`
250
+ `}};v([(0,h.property)({type:String})],i.prototype,"label",void 0),v([(0,h.property)({type:Array})],i.prototype,"options",void 0),v([(0,h.property)({type:Array,attribute:"custom-options"})],i.prototype,"customOptions",void 0),v([(0,h.property)({type:String})],i.prototype,"placeholder",void 0),v([(0,h.property)({type:Boolean,attribute:"is-multi"})],i.prototype,"isMulti",void 0),v([(0,h.property)({type:Boolean,attribute:"use-virtual-scroll"})],i.prototype,"useVirtualScroll",void 0),v([(0,h.property)({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0),v([(0,h.property)({type:Boolean,reflect:!0})],i.prototype,"ordered",void 0),v([(0,h.property)({type:Boolean,reflect:!0})],i.prototype,"expanded",void 0),v([(0,h.property)({type:Array,reflect:!0})],i.prototype,"groupExpandedList",void 0),v([(0,h.property)({type:Boolean,reflect:!0})],i.prototype,"searchItem",void 0),v([(0,h.property)({type:Boolean,reflect:!0})],i.prototype,"compact",void 0),v([(0,h.property)({type:Boolean,attribute:"no-clear-icon"})],i.prototype,"noClearIcon",void 0),v([(0,h.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),v([(0,h.property)({type:Array})],i.prototype,"selectedOptions",void 0),v([(0,h.property)({type:Number,attribute:"visible-option",reflect:!0})],i.prototype,"visibleOptions",void 0),v([(0,h.property)({type:String,attribute:"option-id",reflect:!0})],i.prototype,"optionId",void 0),v([(0,h.property)({type:String,attribute:"option-value",reflect:!0})],i.prototype,"optionValue",void 0),v([(0,h.property)({type:Boolean,attribute:"with-custom-content"})],i.prototype,"isCustomContent",void 0),v([(0,h.property)({type:Boolean,reflect:!0})],i.prototype,"searchable",void 0),v([(0,h.property)({type:String})],i.prototype,"shape",void 0),v([(0,h.property)({type:Array})],i.prototype,"value",void 0),v([(0,h.property)({type:String,attribute:"input-value",reflect:!0})],i.prototype,"inputValue",void 0),v([(0,h.property)({type:Boolean,attribute:"allow-custom-value",reflect:!0})],i.prototype,"allowCustomValue",void 0),v([(0,h.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),v([(0,h.property)({type:String,attribute:"no-results-i18n"})],i.prototype,"resultsTextLocalization",void 0),v([(0,h.property)({type:String,attribute:"no-options-i18n"})],i.prototype,"optionsTextLocalization",void 0),v([(0,h.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],i.prototype,"trimSpace",void 0),v([(0,h.property)({type:Boolean,reflect:!0})],i.prototype,"invalid",void 0),v([(0,h.property)({type:String,reflect:!0,attribute:"invalid-text-i18n"})],i.prototype,"invalidText",void 0),v([(0,h.property)({type:String,reflect:!0})],i.prototype,"ariaLabel",void 0),v([(0,h.property)({type:String,attribute:"search-result-aria-label"})],i.prototype,"searchResultAriaLabel",void 0),v([(0,h.state)()],i.prototype,"ariaLabelForComboBox",void 0),v([(0,h.property)({type:String,attribute:"clear-aria-label"})],i.prototype,"clearAriaLabel",void 0),v([(0,h.property)({type:String,attribute:"arrow-aria-label"})],i.prototype,"arrowAriaLabel",void 0),v([(0,h.property)({type:String,attribute:"clear-icon-height"})],i.prototype,"clearIconHeight",void 0),v([(0,h.property)({type:String,attribute:"all-i18n"})],i.prototype,"allTextLocalization",void 0),v([(0,h.property)({type:String,attribute:"select-all-i18n"})],i.prototype,"selectAllTextLocalization",void 0),v([(0,h.property)({type:String,attribute:"selected-all-i18n"})],i.prototype,"selectedTextLocalization",void 0),v([(0,h.property)({type:Boolean,attribute:"allow-select-all",reflect:!0})],i.prototype,"allowSelectAll",void 0),v([(0,h.property)({type:Boolean,attribute:"show-custom-error",reflect:!0})],i.prototype,"showCustomError",void 0),v([(0,h.property)({type:Boolean,attribute:"show-loader",reflect:!0})],i.prototype,"showLoader",void 0),v([(0,h.property)({type:Boolean,attribute:"show-selected-count",reflect:!0})],i.prototype,"showSelectedCount",void 0),v([(0,h.property)({type:String,attribute:"popup-chevron-aria-hidden"})],i.prototype,"popupChevronAriaHidden",void 0),v([(0,h.property)({type:Boolean,reflect:!0})],i.prototype,"newMomentum",void 0),v([(0,h.property)({type:Boolean,attribute:"show-filter-icon"})],i.prototype,"showFilterIcon",void 0),v([(0,h.property)({type:Boolean,attribute:"prevent-filter"})],i.prototype,"preventFilter",void 0),v([(0,h.property)({type:Boolean,attribute:"is-dropdown-arrow"})],i.prototype,"isDropdownArrow",void 0),v([(0,h.property)({type:String})],i.prototype,"comboboxId",void 0),v([(0,h.property)({type:String})],i.prototype,"helpText",void 0),v([(0,h.property)({type:Array})],i.prototype,"messageArr",void 0),v([(0,h.property)({type:String})],i.prototype,"htmlId",void 0),v([(0,h.property)({type:Boolean,reflect:!0})],i.prototype,"readOnly",void 0),v([(0,h.state)()],i.prototype,"isOptGroup",void 0),v([(0,h.state)()],i.prototype,"isSelectAllChecked",void 0),v([(0,h.query)(".group")],i.prototype,"group",void 0),v([(0,h.query)(".md-combobox-listbox")],i.prototype,"input",void 0),v([(0,h.query)(".md-combobox-button")],i.prototype,"button",void 0),v([(0,h.query)("div#md-combobox-listbox")],i.prototype,"listBox",void 0),v([(0,h.query)(".virtual-scroll")],i.prototype,"virtualizer",void 0),v([(0,h.queryAll)("div.md-combobox-option")],i.prototype,"lists",void 0),v([(0,h.queryAll)(".group-label")],i.prototype,"labels",void 0),v([(0,h.queryAll)(".md-combobox-selected-item")],i.prototype,"selected",void 0),i=v([(0,a.w)("md-combobox")],i),t.ELEMENT=i}(s||(s={}))},5784:t=>{t.exports=v},6396:(t,e,i)=>{i.d(e,{Label:()=>s});var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(31013),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.label="",this.theme="",this.radioLabel=!1,this.checkboxLabel=!1,this.toggleSwitchLabel=!1,this.htmlFor="",this.active=!1,this.disabled=!1,this.indeterminate=!1,this.secondaryLabel=!1}static get styles(){return[r.A,d.A]}setFocus(){this.dispatchEvent(new CustomEvent("setFocus"))}get labelClassMap(){return{[`md-label--${this.theme}`]:!!this.theme,"md-radio__label":this.radioLabel,"md-checkbox__label":this.checkboxLabel,"md-secondary-label":this.secondaryLabel,active:this.active,disabled:this.disabled,indeterminate:this.indeterminate}}handleClick(){this.setFocus(),this.dispatchEvent(new CustomEvent("label-click",{composed:!0,bubbles:!0,detail:{htmlFor:this.htmlFor}}))}render(){return a.html`
248
251
  <label
249
252
  @click="${()=>this.handleClick()}"
250
- class="md-label ${(0,a.classMap)(this.labelClassMap)}"
253
+ class="md-label ${(0,l.classMap)(this.labelClassMap)}"
251
254
  for="${this.htmlFor}"
252
255
  >
253
- ${this.label?n.html` <span>${this.label}</span> `:n.html` <slot></slot> `}
256
+ ${this.label?a.html` <span>${this.label}</span> `:a.html` <slot></slot> `}
254
257
  </label>
255
- `}};d([(0,n.property)({type:String})],e.prototype,"label",void 0),d([(0,n.property)({type:String})],e.prototype,"theme",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"radioLabel",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"checkboxLabel",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"toggleSwitchLabel",void 0),d([(0,n.property)({type:String})],e.prototype,"htmlFor",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"active",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"indeterminate",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"secondaryLabel",void 0),e=d([(0,s.w)("md-label")],e),t.ELEMENT=e}(o||(o={}))},6779:(t,e,i)=>{i.d(e,{AccordionItem:()=>o}),i(61200);var o,s=i(3001),r=i(31890),n=i(59164),a=i(26272),l=i(41488),d=i(97822),h=i(33866),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,s.yC)(l.LitElement)){constructor(){super(...arguments),this._expanded=!1,this._level=3,this.uniqueId=(0,n.O)("accordion-item"),this.label="",this.disabled=!1}get expanded(){return this._expanded}set expanded(t){const e=this._expanded;this._expanded=t,t?(this.notifyAccordionFocus(),this.notifyExpandedHeader()):this.notifyCollapsedHeader(),this.requestUpdate("expanded",e)}get level(){return this._level}set level(t){const e=this.level;t<1||t>6?(console.warn("Please set appropriate section heading level"),this._level=3):this._level=t,this.requestUpdate("level",e)}notifyExpandedHeader(){this.dispatchEvent(new CustomEvent("accordion-item-expanded",{composed:!0,bubbles:!0,detail:{id:this.uniqueId}}))}notifyCollapsedHeader(){this.dispatchEvent(new CustomEvent("accordion-item-collapsed",{composed:!0,bubbles:!0,detail:{id:this.uniqueId}}))}notifyAccordionFocus(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}firstUpdated(t){super.firstUpdated(t),this.setAttribute("id",this.uniqueId)}static get styles(){return[a.A,h.A]}handleMouseDown(t){this.disabled||this.dispatchEvent(new CustomEvent("accordion-item-click",{detail:{srcEvent:t},composed:!0,bubbles:!0}))}handleKeyDown(t){this.disabled||this.dispatchEvent(new CustomEvent("accordion-item-keydown",{detail:{srcEvent:t},bubbles:!0,composed:!0}))}render(){return l.html`
258
+ `}};h([(0,n.property)({type:String})],e.prototype,"label",void 0),h([(0,n.property)({type:String})],e.prototype,"theme",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"radioLabel",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"checkboxLabel",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"toggleSwitchLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"htmlFor",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"active",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"indeterminate",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"secondaryLabel",void 0),e=h([(0,o.w)("md-label")],e),t.ELEMENT=e}(s||(s={}))},6779:(t,e,i)=>{i.d(e,{AccordionItem:()=>s}),i(61200);var s,o=i(3001),r=i(31890),a=i(59164),n=i(4313),l=i(87161),d=i(70429),h=i(20291),c=i(9409),p=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,o.yC)(l.LitElement)){constructor(){super(...arguments),this._expanded=!1,this._level=3,this.uniqueId=(0,a.O)("accordion-item"),this.label="",this.disabled=!1}get expanded(){return this._expanded}set expanded(t){const e=this._expanded;this._expanded=t,t?(this.notifyAccordionFocus(),this.notifyExpandedHeader()):this.notifyCollapsedHeader(),this.requestUpdate("expanded",e)}get level(){return this._level}set level(t){const e=this.level;t<1||t>6?(console.warn("Please set appropriate section heading level"),this._level=3):this._level=t,this.requestUpdate("level",e)}notifyExpandedHeader(){this.dispatchEvent(new CustomEvent("accordion-item-expanded",{composed:!0,bubbles:!0,detail:{id:this.uniqueId}}))}notifyCollapsedHeader(){this.dispatchEvent(new CustomEvent("accordion-item-collapsed",{composed:!0,bubbles:!0,detail:{id:this.uniqueId}}))}notifyAccordionFocus(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}firstUpdated(t){super.firstUpdated(t),this.setAttribute("id",this.uniqueId)}static get styles(){return[n.A,c.A]}handleMouseDown(t){this.disabled||this.dispatchEvent(new CustomEvent("accordion-item-click",{detail:{srcEvent:t},composed:!0,bubbles:!0}))}handleKeyDown(t){this.disabled||this.dispatchEvent(new CustomEvent("accordion-item-keydown",{detail:{srcEvent:t},bubbles:!0,composed:!0}))}render(){return l.html`
256
259
  <div class="md-accordion-item">
257
260
  <div role="heading" aria-level=${this.level} class="md-accordion-header" part="accordion-header">
258
261
  <button
259
262
  type="button"
260
263
  aria-expanded=${this.expanded}
261
264
  class="md-accordion-expander"
262
- aria-label=${(0,d.ifDefined)(this.label||void 0)}
265
+ aria-label=${(0,h.ifDefined)(this.label||void 0)}
263
266
  aria-controls="panel-${this.uniqueId}"
264
267
  aria-disabled=${this.disabled}
265
268
  ?disabled=${this.disabled}
266
269
  id="header-${this.uniqueId}"
267
270
  part="accordion-button"
268
- tabindex=${(0,d.ifDefined)(this.disabled?-1:void 0)}
271
+ tabindex=${(0,h.ifDefined)(this.disabled?-1:void 0)}
269
272
  @mousedown=${this.handleMouseDown}
270
273
  @keydown=${this.handleKeyDown}
271
274
  >
@@ -285,7 +288,7 @@
285
288
  <slot></slot>
286
289
  </div>
287
290
  </div>
288
- `}};c([(0,l.property)({type:String})],e.prototype,"label",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",null),c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"level",null),c([(0,l.query)(".md-accordion-expander")],e.prototype,"header",void 0),e=c([(0,r.w)("md-accordion-item")],e),t.ELEMENT=e}(o||(o={}))},6963:t=>{t.exports=S},8229:t=>{t.exports=i},10654:(t,e,i)=>{i.d(e,{Card:()=>o}),i(96798),i(99850),i(61200),i(68490),i(66245),i(11323),i(83192);var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(22818),d=i(90195),h=i(70630),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.title="title",this.subtitle="",this.id="",this.info="",this.infoAriaLabel="Card Info",this.menuAriaLabel="Card Menu",this.menuOptions=[]}static get styles(){return[r.A,h.A]}handleCardClick(){this.dispatchEvent(new CustomEvent("card-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardKeyDown(t){t.code!==d.Uz.Enter&&t.code!==d.Uz.Space||this.dispatchEvent(new CustomEvent("card-keydown",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardMenuEvent(t,e){t.stopPropagation();const i=e.toLowerCase();this.dispatchEvent(new CustomEvent("card-menu-click",{detail:{id:this.id,type:i},bubbles:!0,composed:!0}))}handleCardMenuKeyDown(t,e){t.preventDefault(),this.dispatchEvent(new CustomEvent("card-menu-keydown",{detail:{id:this.id,type:e.toLowerCase(),keyCode:t.code},bubbles:!0,composed:!0}))}render(){return n.html`
291
+ `}};p([(0,d.property)({type:String})],e.prototype,"label",void 0),p([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",null),p([(0,d.property)({type:Number,reflect:!0})],e.prototype,"level",null),p([(0,d.query)(".md-accordion-expander")],e.prototype,"header",void 0),e=p([(0,r.w)("md-accordion-item")],e),t.ELEMENT=e}(s||(s={}))},10318:t=>{t.exports=s},10654:(t,e,i)=>{i.d(e,{Card:()=>s}),i(96798),i(99850),i(61200),i(68490),i(66245),i(11323),i(83192);var s,o=i(31890),r=i(4313),a=i(87161),n=i(58175),l=i(90195),d=i(9455),h=i(70429),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.title="title",this.subtitle="",this.id="",this.info="",this.infoAriaLabel="Card Info",this.menuAriaLabel="Card Menu",this.menuOptions=[]}static get styles(){return[r.A,d.A]}handleCardClick(){this.dispatchEvent(new CustomEvent("card-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardKeyDown(t){t.code!==l.Uz.Enter&&t.code!==l.Uz.Space||this.dispatchEvent(new CustomEvent("card-keydown",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardMenuEvent(t,e){t.stopPropagation();const i=e.toLowerCase();this.dispatchEvent(new CustomEvent("card-menu-click",{detail:{id:this.id,type:i},bubbles:!0,composed:!0}))}handleCardMenuKeyDown(t,e){t.preventDefault(),this.dispatchEvent(new CustomEvent("card-menu-keydown",{detail:{id:this.id,type:e.toLowerCase(),keyCode:t.code},bubbles:!0,composed:!0}))}render(){return a.html`
289
292
  <div
290
293
  class="md-card"
291
294
  id="${this.id}"
@@ -305,7 +308,7 @@
305
308
  </slot>
306
309
  </div>
307
310
  <div class="md-card-header-actions">
308
- ${this.info?n.html`
311
+ ${this.info?a.html`
309
312
  <md-tooltip message="${this.info}" placement="bottom">
310
313
  <md-button
311
314
  ariaLabel="${this.infoAriaLabel}"
@@ -317,7 +320,7 @@
317
320
  </md-button>
318
321
  </md-tooltip>
319
322
  `:a.nothing}
320
- ${this.menuOptions.length?n.html`
323
+ ${this.menuOptions.length?a.html`
321
324
  <md-menu-overlay class="md-card-menu" placement="bottom-start">
322
325
  <md-button
323
326
  ariaLabel="${this.menuAriaLabel}"
@@ -330,7 +333,7 @@
330
333
  </md-button>
331
334
  <div class="md-card-menu-list-items" style="width: 100%;">
332
335
  <md-list>
333
- ${(0,l.repeat)(this.menuOptions,(t,e)=>n.html`
336
+ ${(0,n.repeat)(this.menuOptions,(t,e)=>a.html`
334
337
  <md-list-item
335
338
  class="${"menu-item-"+e}"
336
339
  slot="list-item"
@@ -352,14 +355,14 @@
352
355
  <slot name="footer"> </slot>
353
356
  </div>
354
357
  </div>
355
- `}};c([(0,n.property)({type:String})],e.prototype,"title",void 0),c([(0,n.property)({type:String})],e.prototype,"subtitle",void 0),c([(0,n.property)({type:String})],e.prototype,"id",void 0),c([(0,n.property)({type:String})],e.prototype,"info",void 0),c([(0,n.property)({type:String,attribute:"info-aria-label"})],e.prototype,"infoAriaLabel",void 0),c([(0,n.property)({type:String,attribute:"menu-aria-label"})],e.prototype,"menuAriaLabel",void 0),c([(0,n.property)({type:Array})],e.prototype,"menuOptions",void 0),e=c([(0,s.w)("md-card")],e),t.ELEMENT=e}(o||(o={}))},10984:(t,e,i)=>{i.d(e,{DatePickerWeek:()=>o}),i(16754);var o,s=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(14974),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.startOfWeekDay=(0,r.tB)(),this.viewAnchorMonth=(0,r.tB)().month,this.filterParams=void 0,this.datePickerProps=void 0,this.renderDays=()=>[0,1,2,3,4,5,6].map(t=>{const e=(0,r.fi)(this.startOfWeekDay,t);return a.html`
358
+ `}};c([(0,h.property)({type:String})],e.prototype,"title",void 0),c([(0,h.property)({type:String})],e.prototype,"subtitle",void 0),c([(0,h.property)({type:String})],e.prototype,"id",void 0),c([(0,h.property)({type:String})],e.prototype,"info",void 0),c([(0,h.property)({type:String,attribute:"info-aria-label"})],e.prototype,"infoAriaLabel",void 0),c([(0,h.property)({type:String,attribute:"menu-aria-label"})],e.prototype,"menuAriaLabel",void 0),c([(0,h.property)({type:Array})],e.prototype,"menuOptions",void 0),e=c([(0,o.w)("md-card")],e),t.ELEMENT=e}(s||(s={}))},10984:(t,e,i)=>{i.d(e,{DatePickerWeek:()=>s}),i(16754);var s,o=i(31890),r=i(81625),a=i(4313),n=i(87161),l=i(70429),d=i(34363),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.startOfWeekDay=(0,r.tB)(),this.viewAnchorMonth=(0,r.tB)().month,this.filterParams=void 0,this.datePickerProps=void 0,this.renderDays=()=>[0,1,2,3,4,5,6].map(t=>{const e=(0,r.fi)(this.startOfWeekDay,t);return n.html`
356
359
  <md-datepicker-day
357
360
  .viewAnchorMonth=${this.viewAnchorMonth}
358
361
  .day=${e}
359
362
  .filterParams=${this.filterParams}
360
363
  .datePickerProps=${this.datePickerProps}
361
364
  ></md-datepicker-day>
362
- `})}static get styles(){return[n.A,l.A]}render(){return a.html` <div class="md-datepicker__week">${this.renderDays()}</div> `}};d([(0,a.property)({attribute:!1})],e.prototype,"startOfWeekDay",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"viewAnchorMonth",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"filterParams",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),e=d([(0,s.w)("md-datepicker-week")],e),t.ELEMENT=e}(o||(o={}))},11323:(t,e,i)=>{i.d(e,{MenuOverlay:()=>s});var o,s,r=i(90195),n=i(31890),a=i(28373),l=i(66677),d=i(22962),h=i.n(d),c=i(84157),p=i.n(c),u=i(68250),m=i.n(u),y=i(69371),b=i.n(y),v=i(4863),g=i(41488),f=i(97822),w=i(16366),C=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},x=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function n(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(n,a)}l((o=o.apply(t,e||[])).next())})};!function(t){t.small="260px",t.large="370px"}(o||(o={})),function(t){let e=class extends((0,a.d)(g.LitElement)){constructor(){super(...arguments),this._isOpen=!1,this.size="large",this.maxHeight="",this.customWidth="",this.showArrow=!1,this.disabled=!1,this.placement="bottom",this.allowHoverToggle=!1,this.ariaRole="menu",this.ariaLabel="",this.isDatePicker=!1,this.overlayOffset=15,this.keepOpenOnWindowBlur=!1,this.positioningStrategy=void 0,this.popperInstance=null,this.triggerElement=null,this.updateActiveMenuOverlayOpened=e=>{var i;this===e.target&&(null===(i=t.ELEMENT.activeOverlay)||void 0===i||i.push(e.target))},this.updateActiveMenuOverlayClosed=e=>{var i,o;const s=t.ELEMENT.activeOverlay.indexOf(e.target);this===e.target&&-1!==s&&(t.ELEMENT.activeOverlay.splice(s,1),t.ELEMENT.activeOverlay.length>0?(null===(i=t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1])||void 0===i||i.setFocusableElements(),null===(o=t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1])||void 0===o||o.focusOnNestedTrigger(this.triggerElement)):this.setFocusableElements())},this.handleTriggerClick=()=>{this.toggleOverlay()},this.setOverlay=(0,l.sg)(t=>{this.disabled||(this.isOpen=t)},100),this.expandPopup=()=>{this.setOverlay(!0)},this.collapsePopup=()=>{this.setOverlay(!1)},this.handleOutsideOverlayKeydown=e=>x(this,void 0,void 0,function*(){let i=!1;const o=e.composedPath();o.length&&(i=!!o.find(t=>t===this),!i)||!this.overlayContainer||e.code!==r.Uz.Escape||(e.preventDefault(),(t.ELEMENT.activeOverlay.length>0?t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1]:void 0)===this&&(this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger()))}),this.handleTriggerKeyDown=t=>x(this,void 0,void 0,function*(){switch(t.code){case r.Uz.Space:case r.Uz.Enter:t.preventDefault(),this.toggleOverlay(),this.isOpen||(yield this.updateComplete,this.focusOnTrigger())}}),this.handleOutsideOverlayClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||this.preventClickOutside||(this.isOpen=!1))}}get isOpen(){return this._isOpen}set isOpen(t){const e=this._isOpen;this._isOpen=t,this.handleInstance(t),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",t),this.requestUpdate("isOpen",e)}renderMaxHeight(){return this.maxHeight?`max-height: ${this.maxHeight};`:"max-height: calc(100vh - 48px);"}renderOverflowY(){return this.isDatePicker?"overflow-y: visible;":"overflow-y: auto;"}renderWidth(){return this.customWidth?`width: ${this.customWidth};`:"small"===this.size?`width: ${o.small};`:`width: ${o.large};`}getStyles(){return g.html`
365
+ `})}static get styles(){return[a.A,d.A]}render(){return n.html` <div class="md-datepicker__week">${this.renderDays()}</div> `}};h([(0,l.property)({attribute:!1})],e.prototype,"startOfWeekDay",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"viewAnchorMonth",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"filterParams",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),e=h([(0,o.w)("md-datepicker-week")],e),t.ELEMENT=e}(s||(s={}))},11323:(t,e,i)=>{i.d(e,{MenuOverlay:()=>o});var s,o,r=i(90195),a=i(31890),n=i(28373),l=i(66677),d=i(22962),h=i.n(d),c=i(84157),p=i.n(c),u=i(68250),m=i.n(u),y=i(69371),b=i.n(y),v=i(4863),g=i(87161),f=i(70429),w=i(20291),C=i(47819),x=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},S=function(t,e,i,s){return new(i||(i=Promise))(function(o,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((s=s.apply(t,e||[])).next())})};!function(t){t.small="260px",t.large="370px"}(s||(s={})),function(t){let e=class extends((0,n.d)(g.LitElement)){constructor(){super(...arguments),this._isOpen=!1,this.size="large",this.maxHeight="",this.customWidth="",this.showArrow=!1,this.disabled=!1,this.placement="bottom",this.allowHoverToggle=!1,this.ariaRole="menu",this.ariaLabel="",this.isDatePicker=!1,this.overlayOffset=15,this.keepOpenOnWindowBlur=!1,this.positioningStrategy=void 0,this.popperInstance=null,this.triggerElement=null,this.updateActiveMenuOverlayOpened=e=>{var i;this===e.target&&(null===(i=t.ELEMENT.activeOverlay)||void 0===i||i.push(e.target))},this.updateActiveMenuOverlayClosed=e=>{var i,s;const o=t.ELEMENT.activeOverlay.indexOf(e.target);this===e.target&&-1!==o&&(t.ELEMENT.activeOverlay.splice(o,1),t.ELEMENT.activeOverlay.length>0?(null===(i=t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1])||void 0===i||i.setFocusableElements(),null===(s=t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1])||void 0===s||s.focusOnNestedTrigger(this.triggerElement)):this.setFocusableElements())},this.handleTriggerClick=()=>{this.toggleOverlay()},this.setOverlay=(0,l.sg)(t=>{this.disabled||(this.isOpen=t)},100),this.expandPopup=()=>{this.setOverlay(!0)},this.collapsePopup=()=>{this.setOverlay(!1)},this.handleOutsideOverlayKeydown=e=>S(this,void 0,void 0,function*(){let i=!1;const s=e.composedPath();s.length&&(i=!!s.find(t=>t===this),!i)||!this.overlayContainer||e.code!==r.Uz.Escape||(e.preventDefault(),(t.ELEMENT.activeOverlay.length>0?t.ELEMENT.activeOverlay[t.ELEMENT.activeOverlay.length-1]:void 0)===this&&(this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger()))}),this.handleTriggerKeyDown=t=>S(this,void 0,void 0,function*(){switch(t.code){case r.Uz.Space:case r.Uz.Enter:t.preventDefault(),this.toggleOverlay(),this.isOpen||(yield this.updateComplete,this.focusOnTrigger())}}),this.handleOutsideOverlayClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||this.preventClickOutside||(this.isOpen=!1))}}get isOpen(){return this._isOpen}set isOpen(t){const e=this._isOpen;this._isOpen=t,this.handleInstance(t),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",t),this.requestUpdate("isOpen",e)}renderMaxHeight(){return this.maxHeight?`max-height: ${this.maxHeight};`:"max-height: calc(100vh - 48px);"}renderOverflowY(){return this.isDatePicker?"overflow-y: visible;":"overflow-y: auto;"}renderWidth(){return this.customWidth?`width: ${this.customWidth};`:"small"===this.size?`width: ${s.small};`:`width: ${s.large};`}getStyles(){return g.html`
363
366
  <style>
364
367
  :host .md-menu-overlay .overlay-content {
365
368
  ${this.renderMaxHeight()};
@@ -367,7 +370,7 @@
367
370
  ${this.renderOverflowY()};
368
371
  }
369
372
  </style>
370
- `}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.updateComplete.then(()=>{this.handleTriggerSlotChange()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.removeTriggerEventListeners()}checkIsInputField(t){var e;return"md-input"===(null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.isOpen?(this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","true")):(this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","false")))}handleTriggerSlotChange(){this.removeTriggerEventListeners(),this.setupTriggerEventListeners(),this.updateTriggerElementAriaExpanded(),this.popperInstance&&this.destroy(),this.isOpen&&(this.create(),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",this.isOpen))}removeTriggerEventListeners(){this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}setupTriggerEventListeners(){if(this.trigger){if(this.triggerElement=this.trigger[0],!this.triggerElement)return;this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")}}update(t){super.update(t),t.has("isOpen")&&(this.isOpen?(this.activateFocusTrap(),document.addEventListener("menu-item-click",this.handleTriggerClick)):(this.deactivateFocusTrap(),document.removeEventListener("menu-item-click",this.handleTriggerClick))),t.has("showArrow")&&this.arrow&&this.arrow.toggleAttribute("data-show",this.showArrow)}updated(t){super.updated(t),t.has("isOpen")&&(this.isOpen?(this.dispatchMenuOpen(),requestAnimationFrame(()=>{document.addEventListener("click",this.handleOutsideOverlayClick)}),this.updateTriggerElementAriaExpanded()):(this.dispatchMenuClose(),document.removeEventListener("click",this.handleOutsideOverlayClick),this.updateTriggerElementAriaExpanded()))}dispatchMenuOpen(){this.dispatchEvent(new CustomEvent("menu-overlay-open",{composed:!0,bubbles:!0}))}dispatchMenuClose(){this.dispatchEvent(new CustomEvent("menu-overlay-close",{composed:!0,bubbles:!0}))}handleInstance(t){t?this.create():this.destroy()}create(){this.triggerElement&&(this.popperInstance=(0,v.createPopper)(this.triggerElement,this.overlayContainer,{onFirstUpdate:()=>x(this,void 0,void 0,function*(){var t;this.isOpen&&(null===(t=this.popperInstance)||void 0===t||t.update(),this.setFocusableElements(),yield this.updateComplete,this.focusInsideOverlay())}),placement:this.placement,strategy:this.positioningStrategy,modifiers:[...v.defaultModifiers,p(),m(),b(),h(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:t,reference:e})=>"left-end"===t||"right-end"===t?[e.height+e.y+3,14]:[0,this.overlayOffset]}},{name:"arrow",options:{element:this.arrow,padding:5}},{name:"computeStyles",options:{adaptive:!1}}]}))}destroy(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}toggleOverlay(){this.disabled||(this.isOpen=!this.isOpen)}focusOnTrigger(){requestAnimationFrame(()=>{var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.focusableElements[0].focus()})}focusInsideOverlay(){this.focusableElements&&(this.focusableElements.length>1?this.setInitialFocus(1):this.focusableElements.length&&this.setInitialFocus())}focusOnNestedTrigger(t){var e;null===(e=this.setFocusOnTrigger)||void 0===e||e.call(this,t)}handleWindowBlurEvent(){this._isOpen&&!this.keepOpenOnWindowBlur&&(this.isOpen=!1)}static get styles(){return[w.A]}render(){return g.html`
373
+ `}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.updateComplete.then(()=>{this.handleTriggerSlotChange()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.removeTriggerEventListeners()}checkIsInputField(t){var e;return"md-input"===(null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.isOpen?(this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","true")):(this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","false")))}handleTriggerSlotChange(){this.removeTriggerEventListeners(),this.setupTriggerEventListeners(),this.updateTriggerElementAriaExpanded(),this.popperInstance&&this.destroy(),this.isOpen&&(this.create(),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",this.isOpen))}removeTriggerEventListeners(){this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}setupTriggerEventListeners(){if(this.trigger){if(this.triggerElement=this.trigger[0],!this.triggerElement)return;this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")}}update(t){super.update(t),t.has("isOpen")&&(this.isOpen?(this.activateFocusTrap(),document.addEventListener("menu-item-click",this.handleTriggerClick)):(this.deactivateFocusTrap(),document.removeEventListener("menu-item-click",this.handleTriggerClick))),t.has("showArrow")&&this.arrow&&this.arrow.toggleAttribute("data-show",this.showArrow)}updated(t){super.updated(t),t.has("isOpen")&&(this.isOpen?(this.dispatchMenuOpen(),requestAnimationFrame(()=>{document.addEventListener("click",this.handleOutsideOverlayClick)}),this.updateTriggerElementAriaExpanded()):(this.dispatchMenuClose(),document.removeEventListener("click",this.handleOutsideOverlayClick),this.updateTriggerElementAriaExpanded()))}dispatchMenuOpen(){this.dispatchEvent(new CustomEvent("menu-overlay-open",{composed:!0,bubbles:!0}))}dispatchMenuClose(){this.dispatchEvent(new CustomEvent("menu-overlay-close",{composed:!0,bubbles:!0}))}handleInstance(t){t?this.create():this.destroy()}create(){this.triggerElement&&(this.popperInstance=(0,v.createPopper)(this.triggerElement,this.overlayContainer,{onFirstUpdate:()=>S(this,void 0,void 0,function*(){var t;this.isOpen&&(null===(t=this.popperInstance)||void 0===t||t.update(),this.setFocusableElements(),yield this.updateComplete,this.focusInsideOverlay())}),placement:this.placement,strategy:this.positioningStrategy,modifiers:[...v.defaultModifiers,p(),m(),b(),h(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:t,reference:e})=>"left-end"===t||"right-end"===t?[e.height+e.y+3,14]:[0,this.overlayOffset]}},{name:"arrow",options:{element:this.arrow,padding:5}},{name:"computeStyles",options:{adaptive:!1}}]}))}destroy(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}toggleOverlay(){this.disabled||(this.isOpen=!this.isOpen)}focusOnTrigger(){requestAnimationFrame(()=>{var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.focusableElements[0].focus()})}focusInsideOverlay(){this.focusableElements&&(this.focusableElements.length>1?this.setInitialFocus(1):this.focusableElements.length&&this.setInitialFocus())}focusOnNestedTrigger(t){var e;null===(e=this.setFocusOnTrigger)||void 0===e||e.call(this,t)}handleWindowBlurEvent(){this._isOpen&&!this.keepOpenOnWindowBlur&&(this.isOpen=!1)}static get styles(){return[C.A]}render(){return g.html`
371
374
  ${this.getStyles()}
372
375
  <div class="md-menu-overlay">
373
376
  <slot @slotchange="${this.handleTriggerSlotChange}" name="menu-trigger"></slot>
@@ -375,8 +378,8 @@
375
378
  part="overlay"
376
379
  class="overlay-container"
377
380
  role=${this.ariaRole}
378
- aria-modal=${(0,f.ifDefined)("dialog"===this.ariaRole?"true":void 0)}
379
- aria-label=${(0,f.ifDefined)(this.ariaLabel||void 0)}
381
+ aria-modal=${(0,w.ifDefined)("dialog"===this.ariaRole?"true":void 0)}
382
+ aria-label=${(0,w.ifDefined)(this.ariaLabel||void 0)}
380
383
  >
381
384
  <div id="arrow" class="overlay-arrow" data-popper-arrow></div>
382
385
  <div class="overlay-content" part="overlay-content">
@@ -384,14 +387,14 @@
384
387
  </div>
385
388
  </div>
386
389
  </div>
387
- `}};e.activeOverlay=[],C([(0,g.property)({type:Boolean,attribute:"is-open",reflect:!0})],e.prototype,"isOpen",null),C([(0,g.property)({type:String})],e.prototype,"size",void 0),C([(0,g.property)({type:String,attribute:"max-height"})],e.prototype,"maxHeight",void 0),C([(0,g.property)({type:String,attribute:"custom-width"})],e.prototype,"customWidth",void 0),C([(0,g.property)({type:Boolean,attribute:"show-arrow"})],e.prototype,"showArrow",void 0),C([(0,g.property)({type:Boolean})],e.prototype,"disabled",void 0),C([(0,g.property)({type:String})],e.prototype,"placement",void 0),C([(0,g.property)({type:Boolean,attribute:"allow-hover-toggle"})],e.prototype,"allowHoverToggle",void 0),C([(0,g.property)({type:String})],e.prototype,"ariaRole",void 0),C([(0,g.property)({type:String})],e.prototype,"ariaLabel",void 0),C([(0,g.property)({type:Boolean,attribute:"is-date-picker"})],e.prototype,"isDatePicker",void 0),C([(0,g.property)({type:Number,attribute:"overlay-offset"})],e.prototype,"overlayOffset",void 0),C([(0,g.property)({type:Boolean,attribute:"keep-open-on-window-blur"})],e.prototype,"keepOpenOnWindowBlur",void 0),C([(0,g.query)(".overlay-container")],e.prototype,"overlayContainer",void 0),C([(0,g.query)(".overlay-arrow")],e.prototype,"arrow",void 0),C([(0,g.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),C([(0,g.queryAssignedNodes)("menu-trigger",!0)],e.prototype,"trigger",void 0),e=C([(0,n.w)("md-menu-overlay")],e),t.ELEMENT=e}(s||(s={}))},12176:(t,e,i)=>{i.d(e,{Spinner:()=>o});var o,s=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(8229),d=i(46325),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.size=56,this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[r.A,d.A]}get spinnerStyleMap(){return{width:`${this.size}px`,height:`${this.size}px`}}firstUpdated(t){super.firstUpdated(t),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-spinner");if(!e)return;let i=null;const o=t=>{if(!this.isAnimating)return;i||(i=t);const s=t-i,r=s/1e3*360;e.style.transform=`rotate(${r}deg)`,s>=1e3&&(i=t),this.animationFrameId=requestAnimationFrame(o)};this.animationFrameId=requestAnimationFrame(o)}stopAnimation(){var t;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-spinner");e&&(e.style.transform="")}render(){return n.html`
390
+ `}};e.activeOverlay=[],x([(0,f.property)({type:Boolean,attribute:"is-open",reflect:!0})],e.prototype,"isOpen",null),x([(0,f.property)({type:String})],e.prototype,"size",void 0),x([(0,f.property)({type:String,attribute:"max-height"})],e.prototype,"maxHeight",void 0),x([(0,f.property)({type:String,attribute:"custom-width"})],e.prototype,"customWidth",void 0),x([(0,f.property)({type:Boolean,attribute:"show-arrow"})],e.prototype,"showArrow",void 0),x([(0,f.property)({type:Boolean})],e.prototype,"disabled",void 0),x([(0,f.property)({type:String})],e.prototype,"placement",void 0),x([(0,f.property)({type:Boolean,attribute:"allow-hover-toggle"})],e.prototype,"allowHoverToggle",void 0),x([(0,f.property)({type:String})],e.prototype,"ariaRole",void 0),x([(0,f.property)({type:String})],e.prototype,"ariaLabel",void 0),x([(0,f.property)({type:Boolean,attribute:"is-date-picker"})],e.prototype,"isDatePicker",void 0),x([(0,f.property)({type:Number,attribute:"overlay-offset"})],e.prototype,"overlayOffset",void 0),x([(0,f.property)({type:Boolean,attribute:"keep-open-on-window-blur"})],e.prototype,"keepOpenOnWindowBlur",void 0),x([(0,f.query)(".overlay-container")],e.prototype,"overlayContainer",void 0),x([(0,f.query)(".overlay-arrow")],e.prototype,"arrow",void 0),x([(0,f.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),x([(0,f.queryAssignedNodes)({slot:"menu-trigger",flatten:!0})],e.prototype,"trigger",void 0),e=x([(0,a.w)("md-menu-overlay")],e),t.ELEMENT=e}(o||(o={}))},12176:(t,e,i)=>{i.d(e,{Spinner:()=>s});var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(10318),h=i(20510),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.size=56,this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[r.A,h.A]}get spinnerStyleMap(){return{width:`${this.size}px`,height:`${this.size}px`}}firstUpdated(t){super.firstUpdated(t),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-spinner");if(!e)return;let i=null;const s=t=>{if(!this.isAnimating)return;i||(i=t);const o=t-i,r=o/1e3*360;e.style.transform=`rotate(${r}deg)`,o>=1e3&&(i=t),this.animationFrameId=requestAnimationFrame(s)};this.animationFrameId=requestAnimationFrame(s)}stopAnimation(){var t;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-spinner");e&&(e.style.transform="")}render(){return a.html`
388
391
  <i
389
- class="md-spinner ${(0,a.classMap)({large:this.size>=56})}"
392
+ class="md-spinner ${(0,l.classMap)({large:this.size>=56})}"
390
393
  part="spinner"
391
- style=${(0,l.styleMap)(this.spinnerStyleMap)}
394
+ style=${(0,d.styleMap)(this.spinnerStyleMap)}
392
395
  ></i>
393
- `}};h([(0,n.property)({type:Number,reflect:!0})],e.prototype,"size",void 0),e=h([(0,s.w)("md-spinner")],e),t.ELEMENT=e}(o||(o={}))},13060:t=>{t.exports=C},15300:(t,e,i)=>{i.d(e,{Presence:()=>o}),i(61200);var o,s=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(38923),d=i(76877),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.name="",this.size=48,this.title="",this.color="",this.presenceType="",this.newMomentum=!1,this.failurePresence=!1,this.avatarLinked=!1}static get styles(){return[r.A,d.A]}get presenceClassMap(){return{"avatar-presence-wrapper":this.avatarLinked}}render(){if(this.presenceType){const{presenceIcon:t,presenceColor:e}=(0,l.E)(this.presenceType,this.failurePresence,this.newMomentum);this.name=t,this.color=e}return n.html`
394
- <div class="${(0,a.classMap)(this.presenceClassMap)}" data-size=${this.size} data-icon-size=${this.size}>
396
+ `}};c([(0,n.property)({type:Number,reflect:!0})],e.prototype,"size",void 0),e=c([(0,o.w)("md-spinner")],e),t.ELEMENT=e}(s||(s={}))},13060:t=>{t.exports=f},15300:(t,e,i)=>{i.d(e,{Presence:()=>s}),i(61200);var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(38923),h=i(6188),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.name="",this.size=48,this.title="",this.color="",this.presenceType="",this.newMomentum=!1,this.failurePresence=!1,this.avatarLinked=!1}static get styles(){return[r.A,h.A]}get presenceClassMap(){return{"avatar-presence-wrapper":this.avatarLinked}}render(){if(this.presenceType){const{presenceIcon:t,presenceColor:e}=(0,d.E)(this.presenceType,this.failurePresence,this.newMomentum);this.name=t,this.color=e}return a.html`
397
+ <div class="${(0,l.classMap)(this.presenceClassMap)}" data-size=${this.size} data-icon-size=${this.size}>
395
398
  <md-icon
396
399
  name="${this.name}"
397
400
  color="${this.color}"
@@ -401,7 +404,7 @@
401
404
  >
402
405
  </md-icon>
403
406
  </div>
404
- `}};h([(0,n.property)({type:String})],e.prototype,"name",void 0),h([(0,n.property)({type:Number})],e.prototype,"size",void 0),h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"color",void 0),h([(0,n.property)({type:String,attribute:"presence-type"})],e.prototype,"presenceType",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"newMomentum",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"failurePresence",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"avatarLinked",void 0),e=h([(0,s.w)("md-presence")],e),t.ELEMENT=e}(o||(o={}))},15427:(t,e,i)=>{i.d(e,{M_:()=>n,UZ:()=>r,ZE:()=>s,su:()=>a,zY:()=>l,zj:()=>o});const o={24:24,32:32,36:36,40:40,48:48,64:64,72:72,88:88,124:124},s={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},r={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},n={PRIMARY:"primary",SECONDARY:"secondary"},a={SUCCESS:"success",WARNING:"warning",ERROR:"error"},l=(Object.assign(Object.assign({},n),a),{TYPE:s.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:n.PRIMARY,ICON_SIZE:12})},16643:(t,e,i)=>{i.d(e,{TAB_CROSS_WIDTH:()=>p,Tab:()=>u});var o=i(90195),s=i(3001),r=i(31890),n=i(26283),a=i(26272),l=i(41488),d=i(23968),h=i(30076),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const p=22;var u;!function(t){let e=class extends((0,s.yC)(l.LitElement)){constructor(){super(...arguments),this.tabIndex=-1,this.ariaLabel="",this.closable="",this.name="",this.isCrossVisible=!1,this.role="tab",this.type="line",this.newMomentum=!1,this.onlyIcon=!1,this.variant="ghost",this.visibleTab=!1,this.size=28,this._disabled=!1,this._selected=0===this.tabIndex,this.vertical=!1,this.viewportHidden=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,t?this.tabDisabled():this.tabEnabled(),this.requestUpdate("disabled",e)}tabDisabled(){-1!==this.tabIndex&&(this.tabIndex=-1),this.setAttribute("aria-disabled","true")}tabEnabled(){-1===this.tabIndex&&this.selected&&(this.tabIndex=0),this.removeAttribute("aria-disabled")}get selected(){return this._selected}set selected(t){const e=this._selected;this._selected=t,t?(this.setAttribute("aria-selected","true"),this.tabIndex=0,this.notifySelectedTab()):(this.tabIndex=-1,this.removeAttribute("aria-selected")),this.requestUpdate("selected",e)}static get styles(){return[a.A,h.A]}handleClick(t){t.preventDefault(),this.id&&this.dispatchEvent(new CustomEvent("tab-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleKeydown(t){if((0,n.o)(t.code)){if(this.disabled)return void t.preventDefault();this.handleClick(t)}}handleCrossKeydown(t){t.stopPropagation(),t.code===o.Uz.Enter&&this.handleCrossEventDispatch()}handleCrossClick(t){t.preventDefault(),!0!==this.disabled&&this.handleCrossEventDispatch()}handleCrossEventDispatch(){this.id&&("auto"===this.closable?this.dispatchEvent(new CustomEvent("tab-cross-click",{detail:{id:this.id},bubbles:!0,composed:!0})):"custom"===this.closable&&this.dispatchEvent(new CustomEvent("tab-close-click",{detail:{id:this.id,name:this.name},bubbles:!0,composed:!0})))}notifySelectedTab(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}update(t){super.update(t),t.has("disabled")&&this.disabled&&(this.selected=!1)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeydown)}firstUpdated(t){super.firstUpdated(t)}renderCrossButton(){return l.html`
407
+ `}};c([(0,n.property)({type:String})],e.prototype,"name",void 0),c([(0,n.property)({type:Number})],e.prototype,"size",void 0),c([(0,n.property)({type:String})],e.prototype,"title",void 0),c([(0,n.property)({type:String})],e.prototype,"color",void 0),c([(0,n.property)({type:String,attribute:"presence-type"})],e.prototype,"presenceType",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"newMomentum",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"failurePresence",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"avatarLinked",void 0),e=c([(0,o.w)("md-presence")],e),t.ELEMENT=e}(s||(s={}))},15427:(t,e,i)=>{i.d(e,{M_:()=>a,UZ:()=>r,ZE:()=>o,su:()=>n,zY:()=>l,zj:()=>s});const s={24:24,32:32,36:36,40:40,48:48,64:64,72:72,88:88,124:124},o={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},r={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},a={PRIMARY:"primary",SECONDARY:"secondary"},n={SUCCESS:"success",WARNING:"warning",ERROR:"error"},l=(Object.assign(Object.assign({},a),n),{TYPE:o.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:a.PRIMARY,ICON_SIZE:12})},16643:(t,e,i)=>{i.d(e,{TAB_CROSS_WIDTH:()=>u,Tab:()=>m});var s=i(90195),o=i(3001),r=i(31890),a=i(26283),n=i(4313),l=i(87161),d=i(70429),h=i(85125),c=i(2669),p=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const u=22;var m;!function(t){let e=class extends((0,o.yC)(l.LitElement)){constructor(){super(...arguments),this.tabIndex=-1,this.ariaLabel="",this.closable="",this.name="",this.isCrossVisible=!1,this.role="tab",this.type="line",this.newMomentum=!1,this.onlyIcon=!1,this.variant="ghost",this.visibleTab=!1,this.size=28,this._disabled=!1,this._selected=0===this.tabIndex,this.vertical=!1,this.viewportHidden=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,t?this.tabDisabled():this.tabEnabled(),this.requestUpdate("disabled",e)}tabDisabled(){-1!==this.tabIndex&&(this.tabIndex=-1),this.setAttribute("aria-disabled","true")}tabEnabled(){-1===this.tabIndex&&this.selected&&(this.tabIndex=0),this.removeAttribute("aria-disabled")}get selected(){return this._selected}set selected(t){const e=this._selected;this._selected=t,t?(this.setAttribute("aria-selected","true"),this.tabIndex=0,this.notifySelectedTab()):(this.tabIndex=-1,this.removeAttribute("aria-selected")),this.requestUpdate("selected",e)}static get styles(){return[n.A,c.A]}handleClick(t){t.preventDefault(),this.id&&this.dispatchEvent(new CustomEvent("tab-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleKeydown(t){if((0,a.o)(t.code)){if(this.disabled)return void t.preventDefault();this.handleClick(t)}}handleCrossKeydown(t){t.stopPropagation(),t.code===s.Uz.Enter&&this.handleCrossEventDispatch()}handleCrossClick(t){t.preventDefault(),!0!==this.disabled&&this.handleCrossEventDispatch()}handleCrossEventDispatch(){this.id&&("auto"===this.closable?this.dispatchEvent(new CustomEvent("tab-cross-click",{detail:{id:this.id},bubbles:!0,composed:!0})):"custom"===this.closable&&this.dispatchEvent(new CustomEvent("tab-close-click",{detail:{id:this.id,name:this.name},bubbles:!0,composed:!0})))}notifySelectedTab(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}update(t){super.update(t),t.has("disabled")&&this.disabled&&(this.selected=!1)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeydown)}firstUpdated(t){super.firstUpdated(t)}renderCrossButton(){return l.html`
405
408
  <md-button
406
409
  variant="ghost"
407
410
  size="size-none"
@@ -416,7 +419,7 @@
416
419
  `}render(){return l.html`
417
420
  <div
418
421
  part="tab"
419
- class="${(0,d.classMap)({disabled:this.disabled,"md-tab-content":!0,closable:""!==this.closable,pill:"pill"===this.type,rounded:"rounded"===this.type,line:"line"===this.type,primary:"primary"===this.variant,newMomentum:this.newMomentum,onlyIcon:this.onlyIcon})}"
422
+ class="${(0,h.classMap)({disabled:this.disabled,"md-tab-content":!0,closable:""!==this.closable,pill:"pill"===this.type,rounded:"rounded"===this.type,line:"line"===this.type,primary:"primary"===this.variant,newMomentum:this.newMomentum,onlyIcon:this.onlyIcon})}"
420
423
  >
421
424
  <slot class="tab-slot"></slot>
422
425
  ${this.isCrossVisible&&this.closable?this.renderCrossButton():""}
@@ -430,32 +433,32 @@
430
433
  @click=${t=>this.handleClick(t)}
431
434
  @keydown=${t=>this.handleKeydown(t)}
432
435
  ></button>
433
- `}};c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,l.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),c([(0,l.property)({type:String,attribute:"closable"})],e.prototype,"closable",void 0),c([(0,l.property)({type:String,attribute:"name"})],e.prototype,"name",void 0),c([(0,l.property)({type:Boolean,attribute:"cross-visible"})],e.prototype,"isCrossVisible",void 0),c([(0,l.property)({type:String,attribute:"role",reflect:!0})],e.prototype,"role",void 0),c([(0,l.property)({type:String,reflect:!0})],e.prototype,"type",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"newMomentum",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"onlyIcon",void 0),c([(0,l.property)({type:String})],e.prototype,"variant",void 0),c([(0,l.property)({type:Boolean,attribute:"visible-tab",reflect:!0})],e.prototype,"visibleTab",void 0),c([(0,l.property)({type:Number})],e.prototype,"size",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"vertical",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"viewportHidden",void 0),e=c([(0,r.w)("md-tab")],e),t.ELEMENT=e}(u||(u={}))},16754:(t,e,i)=>{i.d(e,{DatePickerDay:()=>o}),i(96798);var o,s=i(31890),r=i(81625),n=i(66677),a=i(26272),l=i(41488),d=i(23968),h=i(97822),c=i(14974),p=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.focused=!1,this.selected=!1,this.disabled=!1,this.day=(0,r.tB)(),this.viewAnchorMonth=void 0,this.filterParams=void 0,this.datePickerProps=void 0,this.isOutsideMonth=!1,this.isToday=!1,this.parentRangePicker=null,this.dateIsInRange=!1,this.handleClick=t=>{this.dispatchEvent(new CustomEvent("day-select",{bubbles:!0,composed:!0,detail:{date:this.day,sourceEvent:t}}))},this.isDateInRange=()=>{var t;const e=this.parentRangePicker,i=null==e?void 0:e.startDate,o=null==e?void 0:e.endDate;if(!i||!o)return!1;const s=(null===(t=this.day)||void 0===t?void 0:t.isValid)?this.day.toSQLDate():null;if(!s)return!1;const r=s>i&&s<o,n=s===i,a=s===o;return!this.isPrimarySelection()&&(r||n||a)},this.handleKeyDown=t=>{this.dispatchEvent(new CustomEvent("day-key-event",{bubbles:!0,composed:!0,detail:{date:this.day,sourceEvent:t}}))}}connectedCallback(){super.connectedCallback(),this.disabled=this.filterParams&&(0,r.t_)(this.day,this.filterParams)||!1,this.isOutsideMonth=this.day.month!==this.viewAnchorMonth,this.isToday=(0,r.ro)(this.day,(0,r.tB)()),this.selected=this.datePickerProps&&(0,r.ro)(this.datePickerProps.selected,this.day)||!1,this.focused=this.datePickerProps&&(0,r.ro)(this.datePickerProps.focused,this.day)||!1,this.parentRangePicker=(0,n.QZ)("md-date-range-picker",this)}updated(t){var e,i;super.updated(t),this.disabled=this.filterParams&&(0,r.t_)(this.day,this.filterParams)||!1,this.isOutsideMonth=this.day.month!==this.viewAnchorMonth,this.isToday=(0,r.ro)(this.day,(0,r.tB)()),this.selected=this.datePickerProps&&(0,r.ro)(this.datePickerProps.selected,this.day)||!1,this.focused=this.datePickerProps&&(0,r.ro)(this.datePickerProps.focused,this.day)||!1,this.focused&&this.button&&(null===(i=null===(e=this.button.shadowRoot)||void 0===e?void 0:e.querySelector("button"))||void 0===i||i.focus()),this.parentRangePicker&&(this.dateIsInRange=this.isDateInRange())}isPrimarySelection(){var t;return(null===(t=this.parentRangePicker)||void 0===t?void 0:t.startDate)&&void 0===this.parentRangePicker.endDate}isLeadingRangeEdge(){var t;return this===(null===(t=this.parentNode)||void 0===t?void 0:t.firstElementChild)}isEndingRangeEdge(){var t;return this===(null===(t=this.parentNode)||void 0===t?void 0:t.lastElementChild)}isStartDate(){var t;return(null===(t=this.parentRangePicker)||void 0===t?void 0:t.startDate)===this.day.toSQLDate()&&!this.isPrimarySelection()}isEndDate(){var t;return(null===(t=this.parentRangePicker)||void 0===t?void 0:t.endDate)===this.day.toSQLDate()}get getDayClassMap(){return{"md-datepicker__day--selected":this.selected,"md-datepicker__day--focus":this.focused,"md-datepicker__day--today":this.isToday,"md-datepicker__day--outside-month":this.isOutsideMonth,"md-datepicker__day--in-range":this.dateIsInRange,"md-datepicker__day--week-first":this.isLeadingRangeEdge(),"md-datepicker__day--week-last":this.isEndingRangeEdge(),"md-datepicker__day--start-date":this.isStartDate(),"md-datepicker__day--end-date":this.isEndDate()}}static get styles(){return[a.A,c.A]}render(){var t;const e=(0,r.WV)(this.day,(null===(t=this.datePickerProps)||void 0===t?void 0:t.locale)||"en").toFormat("D, dd MMMM yyyy");return l.html`
436
+ `}};p([(0,d.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),p([(0,d.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),p([(0,d.property)({type:String,attribute:"closable"})],e.prototype,"closable",void 0),p([(0,d.property)({type:String,attribute:"name"})],e.prototype,"name",void 0),p([(0,d.property)({type:Boolean,attribute:"cross-visible"})],e.prototype,"isCrossVisible",void 0),p([(0,d.property)({type:String,attribute:"role",reflect:!0})],e.prototype,"role",void 0),p([(0,d.property)({type:String,reflect:!0})],e.prototype,"type",void 0),p([(0,d.property)({type:Boolean})],e.prototype,"newMomentum",void 0),p([(0,d.property)({type:Boolean})],e.prototype,"onlyIcon",void 0),p([(0,d.property)({type:String})],e.prototype,"variant",void 0),p([(0,d.property)({type:Boolean,attribute:"visible-tab",reflect:!0})],e.prototype,"visibleTab",void 0),p([(0,d.property)({type:Number})],e.prototype,"size",void 0),p([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),p([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),p([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"vertical",void 0),p([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"viewportHidden",void 0),e=p([(0,r.w)("md-tab")],e),t.ELEMENT=e}(m||(m={}))},16754:(t,e,i)=>{i.d(e,{DatePickerDay:()=>s}),i(96798);var s,o=i(31890),r=i(81625),a=i(66677),n=i(4313),l=i(87161),d=i(70429),h=i(85125),c=i(20291),p=i(34363),u=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.focused=!1,this.selected=!1,this.disabled=!1,this.day=(0,r.tB)(),this.viewAnchorMonth=void 0,this.filterParams=void 0,this.datePickerProps=void 0,this.isOutsideMonth=!1,this.isToday=!1,this.parentRangePicker=null,this.dateIsInRange=!1,this.handleClick=t=>{this.dispatchEvent(new CustomEvent("day-select",{bubbles:!0,composed:!0,detail:{date:this.day,sourceEvent:t}}))},this.isDateInRange=()=>{var t;const e=this.parentRangePicker,i=null==e?void 0:e.startDate,s=null==e?void 0:e.endDate;if(!i||!s)return!1;const o=(null===(t=this.day)||void 0===t?void 0:t.isValid)?this.day.toSQLDate():null;if(!o)return!1;const r=o>i&&o<s,a=o===i,n=o===s;return!this.isPrimarySelection()&&(r||a||n)},this.handleKeyDown=t=>{this.dispatchEvent(new CustomEvent("day-key-event",{bubbles:!0,composed:!0,detail:{date:this.day,sourceEvent:t}}))}}connectedCallback(){super.connectedCallback(),this.disabled=this.filterParams&&(0,r.t_)(this.day,this.filterParams)||!1,this.isOutsideMonth=this.day.month!==this.viewAnchorMonth,this.isToday=(0,r.ro)(this.day,(0,r.tB)()),this.selected=this.datePickerProps&&(0,r.ro)(this.datePickerProps.selected,this.day)||!1,this.focused=this.datePickerProps&&(0,r.ro)(this.datePickerProps.focused,this.day)||!1,this.parentRangePicker=(0,a.QZ)("md-date-range-picker",this)}updated(t){var e,i;super.updated(t),this.disabled=this.filterParams&&(0,r.t_)(this.day,this.filterParams)||!1,this.isOutsideMonth=this.day.month!==this.viewAnchorMonth,this.isToday=(0,r.ro)(this.day,(0,r.tB)()),this.selected=this.datePickerProps&&(0,r.ro)(this.datePickerProps.selected,this.day)||!1,this.focused=this.datePickerProps&&(0,r.ro)(this.datePickerProps.focused,this.day)||!1,this.focused&&this.button&&(null===(i=null===(e=this.button.shadowRoot)||void 0===e?void 0:e.querySelector("button"))||void 0===i||i.focus()),this.parentRangePicker&&(this.dateIsInRange=this.isDateInRange())}isPrimarySelection(){var t;return(null===(t=this.parentRangePicker)||void 0===t?void 0:t.startDate)&&void 0===this.parentRangePicker.endDate}isLeadingRangeEdge(){var t;return this===(null===(t=this.parentNode)||void 0===t?void 0:t.firstElementChild)}isEndingRangeEdge(){var t;return this===(null===(t=this.parentNode)||void 0===t?void 0:t.lastElementChild)}isStartDate(){var t;return(null===(t=this.parentRangePicker)||void 0===t?void 0:t.startDate)===this.day.toSQLDate()&&!this.isPrimarySelection()}isEndDate(){var t;return(null===(t=this.parentRangePicker)||void 0===t?void 0:t.endDate)===this.day.toSQLDate()}get getDayClassMap(){return{"md-datepicker__day--selected":this.selected,"md-datepicker__day--focus":this.focused,"md-datepicker__day--today":this.isToday,"md-datepicker__day--outside-month":this.isOutsideMonth,"md-datepicker__day--in-range":this.dateIsInRange,"md-datepicker__day--week-first":this.isLeadingRangeEdge(),"md-datepicker__day--week-last":this.isEndingRangeEdge(),"md-datepicker__day--start-date":this.isStartDate(),"md-datepicker__day--end-date":this.isEndDate()}}static get styles(){return[n.A,p.A]}render(){var t;const e=(0,r.WV)(this.day,(null===(t=this.datePickerProps)||void 0===t?void 0:t.locale)||"en").toFormat("D, dd MMMM yyyy");return l.html`
434
437
  <md-button
435
438
  circle
436
439
  size=${32}
437
440
  color=${"color-none"}
438
441
  ?disabled=${this.disabled}
439
- class="md-datepicker__day ${(0,d.classMap)(this.getDayClassMap)}"
442
+ class="md-datepicker__day ${(0,h.classMap)(this.getDayClassMap)}"
440
443
  @click=${t=>{this.disabled||this.handleClick(t)}}
441
444
  @keydown=${t=>this.handleKeyDown(t)}
442
445
  ariaLabel=${`${e}`}
443
446
  title=${`${e}`}
444
- aria-selected=${(0,h.ifDefined)(this.selected)}
447
+ aria-selected=${(0,c.ifDefined)(this.selected)}
445
448
  tab-index=${this.focused?"0":"-1"}
446
449
  >
447
450
  ${this.day&&(0,r.pp)(this.day)}
448
451
  </md-button>
449
- `}};p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"focused",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,l.property)({attribute:!1})],e.prototype,"day",void 0),p([(0,l.property)({attribute:!1})],e.prototype,"viewAnchorMonth",void 0),p([(0,l.property)({attribute:!1})],e.prototype,"filterParams",void 0),p([(0,l.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),p([(0,l.internalProperty)()],e.prototype,"isOutsideMonth",void 0),p([(0,l.internalProperty)()],e.prototype,"isToday",void 0),p([(0,l.internalProperty)()],e.prototype,"parentRangePicker",void 0),p([(0,l.internalProperty)()],e.prototype,"dateIsInRange",void 0),p([(0,l.query)("md-button")],e.prototype,"button",void 0),e=p([(0,s.w)("md-datepicker-day")],e),t.ELEMENT=e}(o||(o={}))},17518:t=>{t.exports=d},17814:(t,e,i)=>{i.d(e,{DatePickerMonth:()=>o}),i(10984);var o,s=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(14974),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.day=(0,r.tB)(),this.filterParams=void 0,this.datePickerProps=void 0,this.renderWeeks=()=>{var t;let e=(0,r.mK)((0,r.Mw)(this.day),null===(t=this.datePickerProps)||void 0===t?void 0:t.weekStart);const i=[],o=(0,r.tj)(this.day);do{i.push(a.html`
452
+ `}};u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"focused",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),u([(0,d.property)({attribute:!1})],e.prototype,"day",void 0),u([(0,d.property)({attribute:!1})],e.prototype,"viewAnchorMonth",void 0),u([(0,d.property)({attribute:!1})],e.prototype,"filterParams",void 0),u([(0,d.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),u([(0,d.state)()],e.prototype,"isOutsideMonth",void 0),u([(0,d.state)()],e.prototype,"isToday",void 0),u([(0,d.state)()],e.prototype,"parentRangePicker",void 0),u([(0,d.state)()],e.prototype,"dateIsInRange",void 0),u([(0,d.query)("md-button")],e.prototype,"button",void 0),e=u([(0,o.w)("md-datepicker-day")],e),t.ELEMENT=e}(s||(s={}))},16968:t=>{t.exports=I},17814:(t,e,i)=>{i.d(e,{DatePickerMonth:()=>s}),i(10984);var s,o=i(31890),r=i(81625),a=i(4313),n=i(87161),l=i(70429),d=i(34363),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.day=(0,r.tB)(),this.filterParams=void 0,this.datePickerProps=void 0,this.renderWeeks=()=>{var t;let e=(0,r.mK)((0,r.Mw)(this.day),null===(t=this.datePickerProps)||void 0===t?void 0:t.weekStart);const i=[],s=(0,r.tj)(this.day);do{i.push(n.html`
450
453
  <md-datepicker-week
451
- .viewAnchorMonth=${o}
454
+ .viewAnchorMonth=${s}
452
455
  .startOfWeekDay=${e}
453
456
  .filterParams=${this.filterParams}
454
457
  .datePickerProps=${this.datePickerProps}
455
458
  ></md-datepicker-week>
456
- `),e=(0,r.J4)(e,1)}while((0,r.tF)(e,this.day)||i.length<6);return i}}static get styles(){return[n.A,l.A]}render(){return a.html` <div class="md-datepicker__month">${this.renderWeeks()}</div> `}};d([(0,a.property)({attribute:!1})],e.prototype,"day",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"filterParams",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),e=d([(0,s.w)("md-datepicker-month")],e),t.ELEMENT=e}(o||(o={}))},18224:(t,e,i)=>{i.d(e,{CountryCodePicker:()=>o}),i(4928);var o,s=i(31890),r=i(26272),n=i(13060),a=i(65875),l=i(41488),d=i(40333),h=i(23968),c=i(6963),p=i(96953),u=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.codePlaceholder="+1",this.countryCallingCode="",this.showFlags=!1,this.pill=!1,this.disabled=!1,this.ariaLabel="",this.clearAriaLabel="Clear Country Code",this.id="",this.newMomentum=!1,this.isDropdownArrow=!0,this.countryCode="US",this.codeList=[]}connectedCallback(){super.connectedCallback(),this.codeList=(0,n.customArray)({name:"{countryNameEn}",value:"{countryCallingCode}",code:"{countryCode}"}),""===this.id&&(this.id=`md-country-code-picker-${Math.random().toString(36).substring(2,6)}`)}getCountryFlag(t){return l.html`
459
+ `),e=(0,r.J4)(e,1)}while((0,r.tF)(e,this.day)||i.length<6);return i}}static get styles(){return[a.A,d.A]}render(){return n.html` <div class="md-datepicker__month">${this.renderWeeks()}</div> `}};h([(0,l.property)({attribute:!1})],e.prototype,"day",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"filterParams",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),e=h([(0,o.w)("md-datepicker-month")],e),t.ELEMENT=e}(s||(s={}))},18224:(t,e,i)=>{i.d(e,{CountryCodePicker:()=>s}),i(4928);var s,o=i(31890),r=i(4313),a=i(13060),n=i(65875),l=i(87161),d=i(36752),h=i(6683),c=i(64935),p=i(70429),u=i(75838),m=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.codePlaceholder="+1",this.countryCallingCode="",this.showFlags=!1,this.pill=!1,this.disabled=!1,this.ariaLabel="",this.clearAriaLabel="Clear Country Code",this.id="",this.newMomentum=!1,this.isDropdownArrow=!0,this.countryCode="US",this.codeList=[]}connectedCallback(){super.connectedCallback(),this.codeList=(0,a.customArray)({name:"{countryNameEn}",value:"{countryCallingCode}",code:"{countryCode}"}),""===this.id&&(this.id=`md-country-code-picker-${Math.random().toString(36).substring(2,6)}`)}getCountryFlag(t){return l.html`
457
460
  <span class="flag-svg-wrapper">
458
- <img src="${(0,a.findFlagUrlByIso2Code)(t)}" />
461
+ <img src="${(0,n.findFlagUrlByIso2Code)(t)}" />
459
462
  </span>
460
463
  `}countryCodeOptionTemplate(t,e){return l.html`
461
464
  <div
@@ -465,15 +468,15 @@
465
468
  slot=${e}
466
469
  aria-label="+${t.value}, ${t.name}, ${t.code}"
467
470
  >
468
- ${this.showFlags?this.getCountryFlag(t.code):d.nothing}
471
+ ${this.showFlags?this.getCountryFlag(t.code):d.s6}
469
472
  <span>${t.name}</span>
470
473
  <span>+${t.value}</span>
471
474
  </div>
472
- `}handleCountryChange(t){var e,i;t.detail.value&&(null===(e=t.detail.value)||void 0===e?void 0:e.id)?(this.countryCallingCode=t.detail.value.id,this.countryCode=null===(i=t.detail.value.id.split(",")[2])||void 0===i?void 0:i.trim()):(this.countryCode="US",this.countryCallingCode=""),this.dispatchEvent(new CustomEvent("country-code-changed",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get flagClassMap(){return{"new-momentum":this.newMomentum}}get containerClassMap(){return{"md-country-code-picker__container":!0,"show-flags":this.showFlags}}getFormatedCountryCallingCode(){var t;return{id:this.countryCallingCode,value:null===(t=this.countryCallingCode.split(",")[0])||void 0===t?void 0:t.trim()}}static get styles(){return[r.A,p.A]}render(){return l.html`
473
- <div class="${(0,h.classMap)(this.containerClassMap)}">
475
+ `}handleCountryChange(t){var e,i;t.detail.value&&(null===(e=t.detail.value)||void 0===e?void 0:e.id)?(this.countryCallingCode=t.detail.value.id,this.countryCode=null===(i=t.detail.value.id.split(",")[2])||void 0===i?void 0:i.trim()):(this.countryCode="US",this.countryCallingCode=""),this.dispatchEvent(new CustomEvent("country-code-changed",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get flagClassMap(){return{"new-momentum":this.newMomentum}}get containerClassMap(){return{"md-country-code-picker__container":!0,"show-flags":this.showFlags}}getFormatedCountryCallingCode(){var t;return{id:this.countryCallingCode,value:null===(t=this.countryCallingCode.split(",")[0])||void 0===t?void 0:t.trim()}}static get styles(){return[r.A,u.A]}render(){return l.html`
476
+ <div class="${(0,h.H)(this.containerClassMap)}">
474
477
  ${this.showFlags?l.html`
475
- <span class="flag-box ${(0,h.classMap)(this.flagClassMap)}">${this.getCountryFlag(this.countryCode)}</span>
476
- `:d.nothing}
478
+ <span class="flag-box ${(0,h.H)(this.flagClassMap)}">${this.getCountryFlag(this.countryCode)}</span>
479
+ `:d.s6}
477
480
  <md-combobox
478
481
  part="combobox"
479
482
  exportparts="group: combobox-group, combobox-options: options-container"
@@ -488,45 +491,45 @@
488
491
  ?is-dropdown-arrow=${this.isDropdownArrow}
489
492
  .clearAriaLabel="${this.clearAriaLabel}"
490
493
  >
491
- ${(0,c.repeat)(this.codeList,t=>t.name,(t,e)=>this.countryCodeOptionTemplate(t,e))}
494
+ ${(0,c.u)(this.codeList,t=>t.name,(t,e)=>this.countryCodeOptionTemplate(t,e))}
492
495
  </md-combobox>
493
496
  </div>
494
- `}};u([(0,l.property)({type:String,reflect:!0})],e.prototype,"codePlaceholder",void 0),u([(0,l.property)({type:String,attribute:"country-calling-code"})],e.prototype,"countryCallingCode",void 0),u([(0,l.property)({type:Boolean,attribute:"show-flags"})],e.prototype,"showFlags",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"pill",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),u([(0,l.property)({type:String})],e.prototype,"clearAriaLabel",void 0),u([(0,l.property)({type:String})],e.prototype,"id",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"newMomentum",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"isDropdownArrow",void 0),u([(0,l.internalProperty)()],e.prototype,"countryCode",void 0),u([(0,l.internalProperty)()],e.prototype,"codeList",void 0),u([(0,l.query)("md-combobox")],e.prototype,"combobox",void 0),e=u([(0,s.w)("md-country-code-picker")],e),t.ELEMENT=e}(o||(o={}))},19026:(t,e,i)=>{i.d(e,{Link:()=>o});var o,s=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(97822),d=i(73112),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.color="",this.ariaLabel="",this.ariaRole="link",this.disabled=!1,this.inline=!1,this.inlineStyle=void 0,this.inverted=void 0,this.href="",this.tag="a",this.target="_self",this.size=void 0,this._tabIndex=0}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[r.A,d.A]}render(){const t={[`md-link--${this.color}`]:this.color,"md-link--inline":this.inline,[`md-link--inline-style-${this.inlineStyle}`]:!!this.inlineStyle,[`${this.size}`]:!!this.size,inverted:!0===this.inverted,disabled:this.disabled};return n.html` ${(()=>{switch(this.tag){case"div":return n.html`
497
+ `}};m([(0,p.property)({type:String,reflect:!0})],e.prototype,"codePlaceholder",void 0),m([(0,p.property)({type:String,attribute:"country-calling-code"})],e.prototype,"countryCallingCode",void 0),m([(0,p.property)({type:Boolean,attribute:"show-flags"})],e.prototype,"showFlags",void 0),m([(0,p.property)({type:Boolean})],e.prototype,"pill",void 0),m([(0,p.property)({type:Boolean})],e.prototype,"disabled",void 0),m([(0,p.property)({type:String})],e.prototype,"ariaLabel",void 0),m([(0,p.property)({type:String})],e.prototype,"clearAriaLabel",void 0),m([(0,p.property)({type:String})],e.prototype,"id",void 0),m([(0,p.property)({type:Boolean})],e.prototype,"newMomentum",void 0),m([(0,p.property)({type:Boolean})],e.prototype,"isDropdownArrow",void 0),m([(0,p.state)()],e.prototype,"countryCode",void 0),m([(0,p.state)()],e.prototype,"codeList",void 0),m([(0,p.query)("md-combobox")],e.prototype,"combobox",void 0),e=m([(0,o.w)("md-country-code-picker")],e),t.ELEMENT=e}(s||(s={}))},19026:(t,e,i)=>{i.d(e,{Link:()=>s});var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(20291),h=i(24889),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.color="",this.ariaLabel="",this.ariaRole="link",this.disabled=!1,this.inline=!1,this.inlineStyle=void 0,this.inverted=void 0,this.href="",this.tag="a",this.target="_self",this.size=void 0,this._tabIndex=0}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[r.A,h.A]}render(){const t={[`md-link--${this.color}`]:this.color,"md-link--inline":this.inline,[`md-link--inline-style-${this.inlineStyle}`]:!!this.inlineStyle,[`${this.size}`]:!!this.size,inverted:!0===this.inverted,disabled:this.disabled};return a.html` ${(()=>{switch(this.tag){case"div":return a.html`
495
498
  <div
496
- class="md-link ${(0,a.classMap)(t)}"
499
+ class="md-link ${(0,l.classMap)(t)}"
497
500
  tabindex=${this.tabIndex}
498
- aria-label=${(0,l.ifDefined)(this.ariaLabel||void 0)}
499
- aria-disabled=${(0,l.ifDefined)(this.disabled||void 0)}
501
+ aria-label=${(0,d.ifDefined)(this.ariaLabel||void 0)}
502
+ aria-disabled=${(0,d.ifDefined)(this.disabled||void 0)}
500
503
  role=${this.ariaRole}
501
504
  part="link"
502
505
  >
503
506
  <slot></slot>
504
507
  </div>
505
- `;case"span":return n.html`
508
+ `;case"span":return a.html`
506
509
  <span
507
- class="md-link ${(0,a.classMap)(t)}"
510
+ class="md-link ${(0,l.classMap)(t)}"
508
511
  tabindex=${this.tabIndex}
509
- aria-label=${(0,l.ifDefined)(this.ariaLabel||void 0)}
510
- aria-disabled=${(0,l.ifDefined)(this.disabled||void 0)}
512
+ aria-label=${(0,d.ifDefined)(this.ariaLabel||void 0)}
513
+ aria-disabled=${(0,d.ifDefined)(this.disabled||void 0)}
511
514
  role=${this.ariaRole}
512
515
  part="link"
513
516
  >
514
517
  <slot></slot>
515
518
  </span>
516
- `;default:return n.html`
519
+ `;default:return a.html`
517
520
  <a
518
- class="md-link ${(0,a.classMap)(t)}"
521
+ class="md-link ${(0,l.classMap)(t)}"
519
522
  .target="${this.target}"
520
- href=${(0,l.ifDefined)(this.disabled?void 0:this.href)}
523
+ href=${(0,d.ifDefined)(this.disabled?void 0:this.href)}
521
524
  tabindex=${this.tabIndex}
522
- aria-label=${(0,l.ifDefined)(this.ariaLabel||void 0)}
523
- aria-disabled=${(0,l.ifDefined)(this.disabled||void 0)}
525
+ aria-label=${(0,d.ifDefined)(this.ariaLabel||void 0)}
526
+ aria-disabled=${(0,d.ifDefined)(this.disabled||void 0)}
524
527
  role=${this.ariaRole}
525
528
  part="link"
526
529
  >
527
530
  <slot></slot>
528
531
  </a>
529
- `}})()} `}};h([(0,n.property)({type:String,attribute:!1})],e.prototype,"color",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaRole",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inline",void 0),h([(0,n.property)({type:String,attribute:"inline-style"})],e.prototype,"inlineStyle",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inverted",void 0),h([(0,n.property)({type:String})],e.prototype,"href",void 0),h([(0,n.property)({type:String})],e.prototype,"tag",void 0),h([(0,n.property)({type:String})],e.prototype,"target",void 0),h([(0,n.property)({type:String})],e.prototype,"size",void 0),h([(0,n.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),e=h([(0,s.w)("md-link")],e),t.ELEMENT=e}(o||(o={}))},19239:t=>{t.exports=P},19479:(t,e,i)=>{i.d(e,{AlertBanner:()=>o}),i(96798),i(61200);var o,s=i(31890),r=i(26283),n=i(26272),a=i(41488),l=i(40333),d=i(17518),h=i(35467),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.type="",this.titleText="",this.message="",this.closable=!1,this.show=!1,this.closeAriaLabel="Close Banner",this.showBannerTypeIcon=!1,this.showRefreshButton=!1,this.alignment="center"}connectedCallback(){super.connectedCallback(),this.requestUpdate("show")}onHide(){this.show=!this.show,this.dispatchEvent(new CustomEvent("alertBanner-hide")),this.requestUpdate("show")}handleKeyDown(t){const{code:e}=t;(0,r.o)(e)&&this.onHide()}get isLeadingAlignment(){return"leading"===this.alignment}static get styles(){return[n.A,h.A]}getIconForType(){switch(this.type){case"error":return"error-legacy-bold";case"warning":return"warning-bold";case"success":return"check-circle-bold";default:return"info-circle-bold"}}get alertBannerClassMap(){return{"md-alert-banner":!0,[`md-alert-banner--${this.type}`]:this.type,"md-alert-banner--leading":this.isLeadingAlignment||this.titleText,closable:this.closable,"with-title":!!this.titleText}}get alertBannerTextClassMap(){return{"md-alert-banner__text":!0,"md-alert-banner__with-title":!!this.titleText,leading:this.isLeadingAlignment||this.titleText}}get alertBannerRightClassMap(){return{trailing:this.isLeadingAlignment||this.titleText}}get closeButtonTemplate(){const t=this.titleText?"close-div with-title":"close-div";return a.html`
532
+ `}})()} `}};c([(0,n.property)({type:String,attribute:!1})],e.prototype,"color",void 0),c([(0,n.property)({type:String})],e.prototype,"ariaLabel",void 0),c([(0,n.property)({type:String})],e.prototype,"ariaRole",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"inline",void 0),c([(0,n.property)({type:String,attribute:"inline-style"})],e.prototype,"inlineStyle",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"inverted",void 0),c([(0,n.property)({type:String})],e.prototype,"href",void 0),c([(0,n.property)({type:String})],e.prototype,"tag",void 0),c([(0,n.property)({type:String})],e.prototype,"target",void 0),c([(0,n.property)({type:String})],e.prototype,"size",void 0),c([(0,n.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),e=c([(0,o.w)("md-link")],e),t.ELEMENT=e}(s||(s={}))},19479:(t,e,i)=>{i.d(e,{AlertBanner:()=>s}),i(96798),i(61200);var s,o=i(31890),r=i(26283),a=i(4313),n=i(87161),l=i(70429),d=i(85125),h=i(52186),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.type="",this.titleText="",this.message="",this.closable=!1,this.show=!1,this.closeAriaLabel="Close Banner",this.showBannerTypeIcon=!1,this.showRefreshButton=!1,this.alignment="center"}connectedCallback(){super.connectedCallback(),this.requestUpdate("show")}onHide(){this.show=!this.show,this.dispatchEvent(new CustomEvent("alertBanner-hide")),this.requestUpdate("show")}handleKeyDown(t){const{code:e}=t;(0,r.o)(e)&&this.onHide()}get isLeadingAlignment(){return"leading"===this.alignment}static get styles(){return[a.A,h.A]}getIconForType(){switch(this.type){case"error":return"error-legacy-bold";case"warning":return"warning-bold";case"success":return"check-circle-bold";default:return"info-circle-bold"}}get alertBannerClassMap(){return{"md-alert-banner":!0,[`md-alert-banner--${this.type}`]:this.type,"md-alert-banner--leading":this.isLeadingAlignment||this.titleText,closable:this.closable,"with-title":!!this.titleText}}get alertBannerTextClassMap(){return{"md-alert-banner__text":!0,"md-alert-banner__with-title":!!this.titleText,leading:this.isLeadingAlignment||this.titleText}}get alertBannerRightClassMap(){return{trailing:this.isLeadingAlignment||this.titleText}}get closeButtonTemplate(){const t=this.titleText?"close-div with-title":"close-div";return n.html`
530
533
  <div class="${t}">
531
534
  <md-button
532
535
  class="md-alert-banner__close"
@@ -539,7 +542,7 @@
539
542
  <md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
540
543
  </md-button>
541
544
  </div>
542
- `}get titleTemplate(){return this.titleText?a.html`<div class="md-alert-banner__title">${this.titleText}</div>`:l.nothing}render(){const t=this.closable?a.html` ${this.closeButtonTemplate} `:null,e=this.showBannerTypeIcon||this.titleText?"with-icon":"",i=this.showBannerTypeIcon?a.html`
545
+ `}get titleTemplate(){return this.titleText?n.html`<div class="md-alert-banner__title">${this.titleText}</div>`:n.nothing}render(){const t=this.closable?n.html` ${this.closeButtonTemplate} `:null,e=this.showBannerTypeIcon||this.titleText?"with-icon":"",i=this.showBannerTypeIcon?n.html`
543
546
  <md-icon
544
547
  class=${(0,d.classMap)({"md-alert-banner__icon":!0,"with-title":!!this.titleText})}
545
548
  name="${this.getIconForType()}"
@@ -547,16 +550,16 @@
547
550
  size="20"
548
551
  >
549
552
  </md-icon>
550
- `:a.html`<slot name="left"></slot>`,o=this.titleText?"refresh-button-with-title":"refresh-button",s=this.showRefreshButton?a.html` <md-button
551
- class="${o}"
553
+ `:n.html`<slot name="left"></slot>`,s=this.titleText?"refresh-button-with-title":"refresh-button",o=this.showRefreshButton?n.html` <md-button
554
+ class="${s}"
552
555
  @click="${()=>this.dispatchEvent(new CustomEvent("alertBanner-refresh-button-click"))}"
553
556
  variant="ghostInheritTextColor"
554
557
  circle
555
558
  size="20"
556
559
  >
557
560
  <md-icon name="refresh-bold" iconSet="momentumDesign" size="16"></md-icon>
558
- </md-button>`:l.nothing;return this.titleText?a.html`
559
- ${this.show?a.html`
561
+ </md-button>`:n.nothing;return this.titleText?n.html`
562
+ ${this.show?n.html`
560
563
  <div class="${(0,d.classMap)(this.alertBannerClassMap)}" role="alert">
561
564
  <div class="${(0,d.classMap)(this.alertBannerTextClassMap)}">
562
565
  <div class="md-alert-banner__text-content ${e}">
@@ -566,7 +569,7 @@
566
569
  </div>
567
570
  <div class="md-alert-banner__top-right-centered">
568
571
  <div class="md-alert-banner__top-right-centered-content">
569
- ${s}
572
+ ${o}
570
573
  <div class="md-alert-banner__right ${(0,d.classMap)(this.alertBannerRightClassMap)}">
571
574
  <slot name="right"></slot>
572
575
  </div>
@@ -575,13 +578,13 @@
575
578
  </div>
576
579
  </div>
577
580
  `:null}
578
- `:a.html`
579
- ${this.show?a.html`
581
+ `:n.html`
582
+ ${this.show?n.html`
580
583
  <div class="${(0,d.classMap)(this.alertBannerClassMap)}" role="alert">
581
584
  <div class="${(0,d.classMap)(this.alertBannerTextClassMap)}">
582
585
  ${i}
583
586
  <slot><span>${this.message}</span></slot>
584
- ${s}
587
+ ${o}
585
588
  </div>
586
589
  <div class="md-alert-banner__right ${(0,d.classMap)(this.alertBannerRightClassMap)}">
587
590
  <slot name="right"></slot>
@@ -589,9 +592,9 @@
589
592
  ${t}
590
593
  </div>
591
594
  `:null}
592
- `}};c([(0,a.property)({type:String})],e.prototype,"type",void 0),c([(0,a.property)({type:String})],e.prototype,"titleText",void 0),c([(0,a.property)({type:String})],e.prototype,"message",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"closable",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"show",void 0),c([(0,a.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"showBannerTypeIcon",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"showRefreshButton",void 0),c([(0,a.property)({type:String})],e.prototype,"alignment",void 0),e=c([(0,s.w)("md-alert-banner")],e),t.ELEMENT=e}(o||(o={}))},20109:(t,e,i)=>{i.d(e,{HelpText:()=>o});var o,s=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(24977),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.message="",this.messageType=void 0,this.id="",this.ariaLive="off"}get inputMessageClassMap(){return{[`md-${this.messageType}`]:!!this.messageType}}static get styles(){return[r.A,l.A]}getIconName(){switch(this.messageType){case"success":return"check-circle-badge-filled";case"error":return"error-legacy-badge-filled";case"warning":return"warning-badge-filled";case"priority":return"info-badge-filled";default:return""}}render(){return n.html`
595
+ `}};c([(0,l.property)({type:String})],e.prototype,"type",void 0),c([(0,l.property)({type:String})],e.prototype,"titleText",void 0),c([(0,l.property)({type:String})],e.prototype,"message",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"closable",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"show",void 0),c([(0,l.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"showBannerTypeIcon",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"showRefreshButton",void 0),c([(0,l.property)({type:String})],e.prototype,"alignment",void 0),e=c([(0,o.w)("md-alert-banner")],e),t.ELEMENT=e}(s||(s={}))},20109:(t,e,i)=>{i.d(e,{HelpText:()=>s});var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(45630),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.message="",this.messageType=void 0,this.id="",this.ariaLive="off"}get inputMessageClassMap(){return{[`md-${this.messageType}`]:!!this.messageType}}static get styles(){return[r.A,d.A]}getIconName(){switch(this.messageType){case"success":return"check-circle-badge-filled";case"error":return"error-legacy-badge-filled";case"warning":return"warning-badge-filled";case"priority":return"info-badge-filled";default:return""}}render(){return a.html`
593
596
  <div
594
- class="md-input__message ${(0,a.classMap)(this.inputMessageClassMap)}"
597
+ class="md-input__message ${(0,l.classMap)(this.inputMessageClassMap)}"
595
598
  id=${this.id}
596
599
  aria-live=${this.ariaLive}
597
600
  role="alert"
@@ -599,18 +602,18 @@
599
602
  <md-icon name="${this.getIconName()}" size="14" iconSet="momentumDesign"></md-icon>
600
603
  <slot>${this.message}</slot>
601
604
  </div>
602
- `}};d([(0,n.property)({type:String})],e.prototype,"message",void 0),d([(0,n.property)({type:String})],e.prototype,"messageType",void 0),d([(0,n.property)({type:String})],e.prototype,"id",void 0),d([(0,n.property)({type:String})],e.prototype,"ariaLive",void 0),e=d([(0,s.w)("md-help-text")],e),t.ELEMENT=e}(o||(o={}))},20331:(t,e,i)=>{i.d(e,{ToggleSwitch:()=>p}),i(6396);var o=i(3001),s=i(26272),r=i(31890),n=i(41488),a=i(23968),l=i(20779),d=i(97822),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const c="md-toggle-switch__accessible-description";var p;!function(t){let e=class extends((0,o.yC)(n.LitElement)){constructor(){super(...arguments),this.htmlId="",this.label="toggle",this.description=void 0,this.checked=!1,this.disabled=!1,this.small=!1,this.smaller=!1,this.alignLabel="right",this.autofocus=!1}handleClick(){this.disabled||(this.checked=!this.checked)}get toggleSwitchClassMap(){return{"md-toggle-switch--small":this.small,"md-toggle-switch--smaller":this.smaller}}switchTemplate(){return"left"===this.alignLabel?n.html`
605
+ `}};h([(0,n.property)({type:String})],e.prototype,"message",void 0),h([(0,n.property)({type:String})],e.prototype,"messageType",void 0),h([(0,n.property)({type:String})],e.prototype,"id",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaLive",void 0),e=h([(0,o.w)("md-help-text")],e),t.ELEMENT=e}(s||(s={}))},20291:t=>{t.exports=o},20331:(t,e,i)=>{i.d(e,{ToggleSwitch:()=>u}),i(6396);var s=i(3001),o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(20291),h=i(1564),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const p="md-toggle-switch__accessible-description";var u;!function(t){let e=class extends((0,s.yC)(a.LitElement)){constructor(){super(...arguments),this.htmlId="",this.label="toggle",this.description=void 0,this.checked=!1,this.disabled=!1,this.small=!1,this.smaller=!1,this.alignLabel="right",this.autofocus=!1}handleClick(){this.disabled||(this.checked=!this.checked)}get toggleSwitchClassMap(){return{"md-toggle-switch--small":this.small,"md-toggle-switch--smaller":this.smaller}}switchTemplate(){return"left"===this.alignLabel?a.html`
603
606
  <slot></slot>
604
607
  <span
605
608
  class="md-toggle-switch__label__container md-toggle-switch__label__container__left"
606
609
  part="toggle-label"
607
610
  ></span>
608
- `:n.html`
611
+ `:a.html`
609
612
  <span class="md-toggle-switch__label__container" part="toggle-label"></span>
610
613
  <slot></slot>
611
- `}render(){return n.html`
614
+ `}render(){return a.html`
612
615
  <div
613
- class="md-input-container md-toggle-switch ${(0,a.classMap)(this.toggleSwitchClassMap)}"
616
+ class="md-input-container md-toggle-switch ${(0,l.classMap)(this.toggleSwitchClassMap)}"
614
617
  @click=${this.handleClick}
615
618
  >
616
619
  <input
@@ -623,24 +626,24 @@
623
626
  ?disabled=${this.disabled}
624
627
  ?autofocus=${this.autofocus}
625
628
  tabindex=${this.disabled?-1:0}
626
- aria-describedby=${(0,d.ifDefined)(this.description?c:void 0)}
629
+ aria-describedby=${(0,d.ifDefined)(this.description?p:void 0)}
627
630
  />
628
631
  <md-label .htmlFor=${this.htmlId} class="md-toggle-switch__label"> ${this.switchTemplate()} </md-label>
629
- ${this.description&&n.html`
630
- <div id=${c} class="md-toggle-switch__accessible-description">
632
+ ${this.description&&a.html`
633
+ <div id=${p} class="md-toggle-switch__accessible-description">
631
634
  ${this.description}
632
635
  </div>
633
636
  `}
634
637
  </div>
635
- `}static get styles(){return[s.A,l.A]}};h([(0,n.property)({type:String})],e.prototype,"htmlId",void 0),h([(0,n.property)({type:String})],e.prototype,"label",void 0),h([(0,n.property)({type:String})],e.prototype,"description",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"checked",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"small",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"smaller",void 0),h([(0,n.property)({type:String})],e.prototype,"alignLabel",void 0),h([(0,n.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),e=h([(0,r.w)("md-toggle-switch")],e),t.ELEMENT=e}(p||(p={}))},20727:t=>{t.exports=I},22818:t=>{t.exports=p},22962:t=>{t.exports=m},23026:(t,e,i)=>{i.d(e,{Pagination:()=>o}),i(96798),i(61200);var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(4392),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this._currentPage=1,this.hasDots=!1,this.onlyDots=!1,this.noNavigation=!1,this.totalPage=0,this.visiblePage=3}get currentPage(){return this._currentPage}set currentPage(t){const e=this._currentPage;this._currentPage=t,this.notifyPageChange(e,t),this.requestUpdate("currentPage",e)}static get styles(){return[r.A,l.A]}computePrevious(t){1!==t&&t!==this.currentPage&&(this.currentPage-=1)}computeNext(t){t<=this.totalPage&&t!==this.currentPage&&(this.currentPage+=1)}computeFirst(){this.currentPage>=1&&(this.currentPage=1)}computeLast(){this.currentPage>=1&&(this.currentPage=this.totalPage)}computeCurrent(t){this.currentPage=t}notifyPageChange(t,e){this.dispatchEvent(new CustomEvent("page-change",{composed:!0,bubbles:!0,detail:{oldPage:t,newPage:e}}))}get hasPreviousPage(){return this.currentPage<=1}get hasNextPage(){return this.currentPage>=this.totalPage}computePageList(t){if(this.totalPage>this.visiblePage&&t){const[t,e,i]=[this.currentPage-1,this.currentPage,this.currentPage+1];let o=[];if(e<=this.visiblePage-1)return o=[...Array(this.visiblePage)].map((t,e)=>1+e),o.push("..."),o.push(this.totalPage),o;if(this.totalPage-e<=this.visiblePage-2){o=[],o.push(1),o.push("...");const t=[...Array(this.visiblePage)].map((t,e)=>this.totalPage-this.visiblePage+1+e);return o.concat(t)}return[1,"...",t,e,i,"...",this.totalPage]}return[...Array(this.totalPage)].map((t,e)=>1+e)}pagesTemplate(t){return this.computePageList(t).map(t=>"..."===t?n.html` <li class="page-ellipsis">${t}</li> `:n.html`
638
+ `}static get styles(){return[r.A,h.A]}};c([(0,n.property)({type:String})],e.prototype,"htmlId",void 0),c([(0,n.property)({type:String})],e.prototype,"label",void 0),c([(0,n.property)({type:String})],e.prototype,"description",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"checked",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"small",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"smaller",void 0),c([(0,n.property)({type:String})],e.prototype,"alignLabel",void 0),c([(0,n.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),e=c([(0,o.w)("md-toggle-switch")],e),t.ELEMENT=e}(u||(u={}))},20727:t=>{t.exports=T},22962:t=>{t.exports=p},23026:(t,e,i)=>{i.d(e,{Pagination:()=>s}),i(96798),i(61200);var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(45809),d=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this._currentPage=1,this.hasDots=!1,this.onlyDots=!1,this.noNavigation=!1,this.totalPage=0,this.visiblePage=3}get currentPage(){return this._currentPage}set currentPage(t){const e=this._currentPage;this._currentPage=t,this.notifyPageChange(e,t),this.requestUpdate("currentPage",e)}static get styles(){return[r.A,l.A]}computePrevious(t){1!==t&&t!==this.currentPage&&(this.currentPage-=1)}computeNext(t){t<=this.totalPage&&t!==this.currentPage&&(this.currentPage+=1)}computeFirst(){this.currentPage>=1&&(this.currentPage=1)}computeLast(){this.currentPage>=1&&(this.currentPage=this.totalPage)}computeCurrent(t){this.currentPage=t}notifyPageChange(t,e){this.dispatchEvent(new CustomEvent("page-change",{composed:!0,bubbles:!0,detail:{oldPage:t,newPage:e}}))}get hasPreviousPage(){return this.currentPage<=1}get hasNextPage(){return this.currentPage>=this.totalPage}computePageList(t){if(this.totalPage>this.visiblePage&&t){const[t,e,i]=[this.currentPage-1,this.currentPage,this.currentPage+1];let s=[];if(e<=this.visiblePage-1)return s=[...Array(this.visiblePage)].map((t,e)=>1+e),s.push("..."),s.push(this.totalPage),s;if(this.totalPage-e<=this.visiblePage-2){s=[],s.push(1),s.push("...");const t=[...Array(this.visiblePage)].map((t,e)=>this.totalPage-this.visiblePage+1+e);return s.concat(t)}return[1,"...",t,e,i,"...",this.totalPage]}return[...Array(this.totalPage)].map((t,e)=>1+e)}pagesTemplate(t){return this.computePageList(t).map(t=>"..."===t?a.html` <li class="page-ellipsis">${t}</li> `:a.html`
636
639
  <li @click=${()=>this.computeCurrent(t)} aria-current=${t===this.currentPage}>
637
640
  ${t}
638
641
  </li>
639
- `)}dotsTemplate(t){return this.computePageList(t).map(t=>"..."===t?a.nothing:n.html`
642
+ `)}dotsTemplate(t){return this.computePageList(t).map(t=>"..."===t?a.nothing:a.html`
640
643
  <li @click=${()=>this.computeCurrent(t)} aria-current=${t===this.currentPage}></li>
641
- `)}render(){return n.html`
644
+ `)}render(){return a.html`
642
645
  <nav class="md-pagination" role="navigation" part="pagination">
643
- ${this.noNavigation?a.nothing:n.html`
646
+ ${this.noNavigation?a.nothing:a.html`
644
647
  <md-button
645
648
  class="md-pagination-nav"
646
649
  ariaLabel="First Page"
@@ -667,22 +670,22 @@
667
670
  </md-button>
668
671
  `}
669
672
  <div class="md-pagination-container">
670
- ${this.onlyDots?n.html`
673
+ ${this.onlyDots?a.html`
671
674
  <ul class="md-pagination-dots" part="pagination-only-dots">
672
675
  ${this.dotsTemplate(!1)}
673
676
  </ul>
674
- `:n.html`
677
+ `:a.html`
675
678
  <ul class="md-pagination-list" part=pagination-list">
676
679
  ${this.pagesTemplate(!0)}
677
680
  </ul>
678
681
  `}
679
- ${this.hasDots&&!this.onlyDots?n.html`
682
+ ${this.hasDots&&!this.onlyDots?a.html`
680
683
  <ul class="md-pagination-dots" part="pagination-dots">
681
684
  ${this.dotsTemplate(!0)}
682
685
  </ul>
683
686
  `:a.nothing}
684
687
  </div>
685
- ${this.noNavigation?a.nothing:n.html`
688
+ ${this.noNavigation?a.nothing:a.html`
686
689
  <md-button
687
690
  class="md-pagination-nav"
688
691
  ariaLabel="Previous Page"
@@ -709,15 +712,15 @@
709
712
  </md-button>
710
713
  `}
711
714
  </nav>
712
- `}};d([(0,n.property)({type:Boolean,attribute:"dots"})],e.prototype,"hasDots",void 0),d([(0,n.property)({type:Boolean,reflect:!0,attribute:"only-dots"})],e.prototype,"onlyDots",void 0),d([(0,n.property)({type:Boolean,reflect:!0,attribute:"no-navigation"})],e.prototype,"noNavigation",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"total-page"})],e.prototype,"totalPage",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"visible-page"})],e.prototype,"visiblePage",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"current-page"})],e.prototype,"currentPage",null),e=d([(0,s.w)("md-pagination")],e),t.ELEMENT=e}(o||(o={}))},23184:(t,e,i)=>{i.d(e,{Dropdown:()=>o}),i(61200);var o,s=i(90195),r=i(3001),n=i(66677),a=i(26272),l=i(41488),d=i(40333),h=i(17518),c=i(97822),p=i(22818),u=i(8229),m=i(70573),y=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},b=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function n(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(n,a)}l((o=o.apply(t,e||[])).next())})};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.title="Select...",this.options=[],this.optionId="",this.optionValue="",this.defaultOption="",this.disabled=!1,this.customTabIndex=0,this.allowUnselected=!1,this.visibleOptions=8,this.newMomentum=!1,this.compact=!1,this.searchable=!1,this.searchItem=!1,this.inputValue="",this.placeholder="Select...",this.readOnly=!1,this.autofocus=!1,this.leftIcon="",this.trimSpace=!1,this.resultsTextLocalization="No Results",this.pill=!1,this.helpText="",this.messageArr=[],this.htmlId="",this.clearAriaLabel="Clear",this.clearIconHeight="auto",this.arrowAriaLabel="Expand",this.popupChevronAriaHidden="true",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForDropdown="",this.renderOptions=[],this.selectedKey="",this.expanded=!1,this.focusedIndex=-1,this.messageController=new e,this.lastMaxHeight="",this.onOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||this.expanded&&this.collapse())},this.onKeyDown=t=>{switch(t.code){case s.Uz.Tab:this.expanded&&(t.stopPropagation(),this.collapse());break;case s.Uz.Space:case s.Uz.Enter:this.expanded?(this.select(),this.collapse()):this.expand();break;case s.Uz.ArrowDown:this.expanded?this.focusNext():this.expand();break;case s.Uz.ArrowUp:this.expanded?this.focusPrev():this.expand();break;case s.Uz.Home:this.expanded?this.focusFirst():this.expand();break;case s.Uz.End:this.expanded?this.focusLast():this.expand();break;case s.Uz.Escape||s.Uz.Backspace:this.expanded&&(t.stopPropagation(),this.collapse())}},this.notifyInputValueChanged=(0,n.sg)(t=>{this.dispatchEvent(new CustomEvent("dropdown-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),requestAnimationFrame(()=>{this.input.focus()})},250)}connectedCallback(){super.connectedCallback(),this.setupEvents()}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(t){super.firstUpdated(t),t.forEach((t,e)=>{if("defaultOption"===e&&this.defaultOption){const{key:t}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=t}}),this.searchable&&this.setInitialValue()}updated(t){super.updated(t),t.forEach((t,e)=>{if("options"===e&&this.updateRenderOptions(),"selectedKey"===e){const t=this.renderOptions.findIndex(t=>t.key===this.selectedKey);-1!==t&&(this.focusToIndex(t),this.searchable&&this.setInitialValue())}if("expanded"===e&&this.updateListDOM(),"focusedIndex"===e&&this.updateListDOM(),"defaultOption"===e&&this.defaultOption){const{key:t}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=t}})}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForDropdown=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForDropdown=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForDropdown=`Dropdown Element, ${this.filteredOptions.length} results found.`}setInitialValue(){var t;if(this.options.length){const e=this.renderOptions.find(t=>t.key===this.selectedKey),i=null==e?void 0:e.option;i&&(this.setInputValue(this.getOptionValue(i)),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,this.getOptionId(i)),this.notifyInputValueChanged(this.getOptionValue(i)),this.requestUpdate())}}getOptionValue(t){return this.isOptionObject(t)&&!this.optionValue?Object.values(t)[0]:this.isOptionObject(t)?t[this.optionValue]:t}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}isOptionObject(t){return"object"==typeof t&&null!==t}updateRenderOptions(){const t=[];this.focusReset();const e=this.options.reduce((e,i)=>{const{key:o,value:s}=this.getOptionKeyValuePair(i);return-1!==t.indexOf(o)?console.error(`Dropdown already have option key: "${o}". Ignoring `):o?(t.push(o),e.push({key:o,value:s,option:i})):console.error(`Dropdown key is not defined: "${o}". (value: "${s}"). Ignoring `),e},[]);this.allowUnselected&&e.unshift({key:"",value:this.title}),this.renderOptions=e}updateListDOM(){return b(this,void 0,void 0,function*(){this.expanded&&(yield this.resizeDropdownList(),yield this.scrollToIndex(this.focusedIndex))})}resizeDropdownList(){return b(this,void 0,void 0,function*(){yield new Promise(t=>requestAnimationFrame(()=>{if(this.optionsListItems)if(this.optionsListItems.length>this.visibleOptions){const t=`${[...this.optionsListItems].slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)}px`;this.lastMaxHeight!==t&&(this.optionsList.style.maxHeight=t,this.lastMaxHeight=t)}else{const t="auto";this.lastMaxHeight!==t&&(this.optionsList.style.maxHeight=t,this.lastMaxHeight=t)}t()}))})}handleFocusIn(t){var e;this.disabled&&this.readOnly||null===(e=super.handleFocusIn)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("dropdown-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("dropdown-focus-out",{composed:!0,bubbles:!0}))}static get styles(){return[a.A,m.A]}get filteredOptions(){const t=this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue;if(!t.trim())return this.renderOptions;const e=this.renderOptions.filter(e=>e.value.toLowerCase().includes(t.toLowerCase()));return 0===e.length?[{key:"no-result",value:"No Result",disabled:!0}]:e}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}setVisualListbox(t){this.expanded=t}updateOnNextFrame(t){requestAnimationFrame(t)}setInputValue(t=""){this.input.value=t}shouldChangeButton(){const t=this.input&&this.input.value.length>0;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-dropdown-input"))t.target.focus();else if("md-icon"===t.target.localName){const o=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(o){const t=o.querySelector(".md-dropdown-input");setTimeout(()=>{t.focus()},10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus()}}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}removeAllSelected(){var t;this.focusReset(),this.selectedKey="",this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(s.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.updateOnNextFrame(()=>{this.input.focus()}),this.dispatchEvent(new CustomEvent("dropdown-selection-removed",{composed:!0,bubbles:!0,detail:{}}))}setupEvents(){document.addEventListener("click",this.onOutsideClick),this.addEventListener("keydown",this.onKeyDown),this.addEventListener("remove-all-selected",this.removeAllSelected)}teardownEvents(){document.removeEventListener("click",this.onOutsideClick),this.removeEventListener("keydown",this.onKeyDown),this.removeEventListener("remove-all-selected",this.removeAllSelected)}expand(){this.expanded=!0;const t=-1!==this.focusedIndex?`combo-${this.focusedIndex}`:"";document.dispatchEvent(new CustomEvent("on-widget-update")),this.label.setAttribute("aria-activedescendant",t),this.optionsList&&this.optionsList.focus(),-1===this.focusedIndex&&this.focusNext()}collapse(){this.expanded=!1,this.searchable||this.label.setAttribute("aria-activedescendant","")}toggle(){this.expanded?this.collapse():this.expand()}select(){if(-1!==this.focusedIndex){const t=this.renderOptions[this.focusedIndex],e=t.key;e!==this.selectedKey&&(this.selectedKey=e,this.dispatchEvent(new CustomEvent("dropdown-selected",{composed:!0,bubbles:!0,detail:{option:t.option?t.option:t.key}})))}}onLabelClick(){this.label.focus(),this.toggle()}focusFirst(){this.renderOptions.length&&(this.focusedIndex=0)}focusLast(){this.renderOptions.length&&(this.focusedIndex=this.renderOptions.length-1)}focusNext(){this.renderOptions.length&&(-1!==this.focusedIndex&&this.focusedIndex<this.renderOptions.length-1?this.focusedIndex++:this.focusFirst())}focusPrev(){this.renderOptions.length&&(this.focusedIndex>0?this.focusedIndex--:this.focusLast())}focusToIndex(t){this.renderOptions.length&&t>=0&&t<=this.renderOptions.length-1&&(this.focusedIndex=t)}focusToIndexWithOption(t){const e=this.renderOptions.findIndex(e=>e.key===t.key);this.renderOptions.length&&e>=0&&e<=this.renderOptions.length-1&&(this.focusedIndex=e)}focusReset(){this.focusedIndex=-1}scrollToIndex(t){return b(this,void 0,void 0,function*(){yield new Promise(e=>{requestAnimationFrame(()=>{if(this.optionsListItems&&this.optionsListItems.length>this.visibleOptions&&t>=0&&this.optionsListItems.length>t){let e=0;const{top:i,bottom:o}=this.optionsList.getBoundingClientRect(),s=this.optionsListItems[t],r=this.optionsListItems[t+1]||s,n=this.optionsListItems[t-1]||s,a=r.getBoundingClientRect(),l=n.getBoundingClientRect();a.bottom>o?e=a.bottom-o+2:l.top<i&&(e=l.top-i-2),this.optionsList.scrollTop+=e}e()})})})}getOptionKeyValuePair(t){if("string"==typeof t)return{key:t.trim(),value:t};if(t&&"object"==typeof t){const e=Object.keys(t),i=Object.values(t);if(e.length){if(1===e.length||!this.optionId)return{key:e[0],value:i[0]};if(this.optionId)return{key:t[this.optionId],value:t[this.optionValue||this.optionId]}}}return{key:"undefined",value:"undefined"}}get labelTitle(){if(this.selectedKey){const t=this.renderOptions.find(t=>t.key===this.selectedKey);if(t)return t.value}return this.title}get dropDownClassMap(){return{"md-dropdown__expanded":this.expanded,[`md-${this.messageType}`]:!!this.messageType,"md-new-dropdown":this.newMomentum,"md-dropdown--pill":!0===this.pill}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}helpTextTemplate(){return this.helpText?d.html`
715
+ `}};d([(0,n.property)({type:Boolean,attribute:"dots"})],e.prototype,"hasDots",void 0),d([(0,n.property)({type:Boolean,reflect:!0,attribute:"only-dots"})],e.prototype,"onlyDots",void 0),d([(0,n.property)({type:Boolean,reflect:!0,attribute:"no-navigation"})],e.prototype,"noNavigation",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"total-page"})],e.prototype,"totalPage",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"visible-page"})],e.prototype,"visiblePage",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"current-page"})],e.prototype,"currentPage",null),e=d([(0,o.w)("md-pagination")],e),t.ELEMENT=e}(s||(s={}))},23184:(t,e,i)=>{i.d(e,{Dropdown:()=>s}),i(61200);var s,o=i(90195),r=i(3001),a=i(66677),n=i(4313),l=i(87161),d=i(70429),h=i(85125),c=i(20291),p=i(58175),u=i(10318),m=i(84744),y=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},b=function(t,e,i,s){return new(i||(i=Promise))(function(o,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((s=s.apply(t,e||[])).next())})};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.title="Select...",this.options=[],this.optionId="",this.optionValue="",this.defaultOption="",this.disabled=!1,this.customTabIndex=0,this.allowUnselected=!1,this.visibleOptions=8,this.newMomentum=!1,this.compact=!1,this.searchable=!1,this.searchItem=!1,this.inputValue="",this.placeholder="Select...",this.readOnly=!1,this.autofocus=!1,this.leftIcon="",this.trimSpace=!1,this.resultsTextLocalization="No Results",this.pill=!1,this.helpText="",this.messageArr=[],this.htmlId="",this.clearAriaLabel="Clear",this.clearIconHeight="auto",this.arrowAriaLabel="Expand",this.popupChevronAriaHidden="true",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForDropdown="",this.dropdownRenderOptions=[],this.selectedKey="",this.expanded=!1,this.focusedIndex=-1,this.messageController=new e,this.lastMaxHeight="",this.onOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||this.expanded&&this.collapse())},this.onKeyDown=t=>{switch(t.code){case o.Uz.Tab:this.expanded&&(t.stopPropagation(),this.collapse());break;case o.Uz.Space:case o.Uz.Enter:this.expanded?(this.select(),this.collapse()):this.expand();break;case o.Uz.ArrowDown:this.expanded?this.focusNext():this.expand();break;case o.Uz.ArrowUp:this.expanded?this.focusPrev():this.expand();break;case o.Uz.Home:this.expanded?this.focusFirst():this.expand();break;case o.Uz.End:this.expanded?this.focusLast():this.expand();break;case o.Uz.Escape||o.Uz.Backspace:this.expanded&&(t.stopPropagation(),this.collapse())}},this.notifyInputValueChanged=(0,a.sg)(t=>{this.dispatchEvent(new CustomEvent("dropdown-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),requestAnimationFrame(()=>{this.input.focus()})},250)}connectedCallback(){super.connectedCallback(),this.setupEvents()}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(t){super.firstUpdated(t),t.forEach((t,e)=>{if("defaultOption"===e&&this.defaultOption){const{key:t}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=t}}),this.searchable&&this.setInitialValue()}updated(t){super.updated(t),t.forEach((t,e)=>{if("options"===e&&this.updateRenderOptions(),"selectedKey"===e){const t=this.dropdownRenderOptions.findIndex(t=>t.key===this.selectedKey);-1!==t&&(this.focusToIndex(t),this.searchable&&this.setInitialValue())}if("expanded"===e&&this.updateListDOM(),"focusedIndex"===e&&this.updateListDOM(),"defaultOption"===e&&this.defaultOption){const{key:t}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=t}})}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForDropdown=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForDropdown=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForDropdown=`Dropdown Element, ${this.filteredOptions.length} results found.`}setInitialValue(){var t;if(this.options.length){const e=this.dropdownRenderOptions.find(t=>t.key===this.selectedKey),i=null==e?void 0:e.option;i&&(this.setInputValue(this.getOptionValue(i)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(i)),this.notifyInputValueChanged(this.getOptionValue(i)),this.requestUpdate())}}getOptionValue(t){return this.isOptionObject(t)&&!this.optionValue?Object.values(t)[0]:this.isOptionObject(t)?t[this.optionValue]:t}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}isOptionObject(t){return"object"==typeof t&&null!==t}updateRenderOptions(){const t=[];this.focusReset();const e=this.options.reduce((e,i)=>{const{key:s,value:o}=this.getOptionKeyValuePair(i);return-1!==t.indexOf(s)?console.error(`Dropdown already have option key: "${s}". Ignoring `):s?(t.push(s),e.push({key:s,value:o,option:i})):console.error(`Dropdown key is not defined: "${s}". (value: "${o}"). Ignoring `),e},[]);this.allowUnselected&&e.unshift({key:"",value:this.title}),this.dropdownRenderOptions=e}updateListDOM(){return b(this,void 0,void 0,function*(){this.expanded&&(yield this.resizeDropdownList(),yield this.scrollToIndex(this.focusedIndex))})}resizeDropdownList(){return b(this,void 0,void 0,function*(){yield new Promise(t=>requestAnimationFrame(()=>{if(this.optionsListItems)if(this.optionsListItems.length>this.visibleOptions){const t=`${[...this.optionsListItems].slice(0,this.visibleOptions).reduce((t,e)=>t+e.offsetHeight,0)}px`;this.lastMaxHeight!==t&&(this.optionsList.style.maxHeight=t,this.lastMaxHeight=t)}else{const t="auto";this.lastMaxHeight!==t&&(this.optionsList.style.maxHeight=t,this.lastMaxHeight=t)}t()}))})}handleFocusIn(t){var e;this.disabled&&this.readOnly||null===(e=super.handleFocusIn)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("dropdown-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("dropdown-focus-out",{composed:!0,bubbles:!0}))}static get styles(){return[n.A,m.A]}get filteredOptions(){const t=this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue;if(!t.trim())return this.dropdownRenderOptions;const e=this.dropdownRenderOptions.filter(e=>e.value.toLowerCase().includes(t.toLowerCase()));return 0===e.length?[{key:"no-result",value:"No Result",disabled:!0}]:e}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}setVisualListbox(t){this.expanded=t}updateOnNextFrame(t){requestAnimationFrame(t)}setInputValue(t=""){this.input.value=t}shouldChangeButton(){const t=this.input&&this.input.value.length>0;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-dropdown-input"))t.target.focus();else if("md-icon"===t.target.localName){const s=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(s){const t=s.querySelector(".md-dropdown-input");setTimeout(()=>{t.focus()},10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus()}}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}removeAllSelected(){var t;this.focusReset(),this.selectedKey="",this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.updateOnNextFrame(()=>{this.input.focus()}),this.dispatchEvent(new CustomEvent("dropdown-selection-removed",{composed:!0,bubbles:!0,detail:{}}))}setupEvents(){document.addEventListener("click",this.onOutsideClick),this.addEventListener("keydown",this.onKeyDown),this.addEventListener("remove-all-selected",this.removeAllSelected)}teardownEvents(){document.removeEventListener("click",this.onOutsideClick),this.removeEventListener("keydown",this.onKeyDown),this.removeEventListener("remove-all-selected",this.removeAllSelected)}expand(){this.expanded=!0;const t=-1!==this.focusedIndex?`combo-${this.focusedIndex}`:"";document.dispatchEvent(new CustomEvent("on-widget-update")),this.label.setAttribute("aria-activedescendant",t),this.optionsList&&this.optionsList.focus(),-1===this.focusedIndex&&this.focusNext()}collapse(){this.expanded=!1,this.searchable||this.label.setAttribute("aria-activedescendant","")}toggle(){this.expanded?this.collapse():this.expand()}select(){if(-1!==this.focusedIndex){const t=this.dropdownRenderOptions[this.focusedIndex],e=t.key;e!==this.selectedKey&&(this.selectedKey=e,this.dispatchEvent(new CustomEvent("dropdown-selected",{composed:!0,bubbles:!0,detail:{option:t.option?t.option:t.key}})))}}onLabelClick(){this.label.focus(),this.toggle()}focusFirst(){this.dropdownRenderOptions.length&&(this.focusedIndex=0)}focusLast(){this.dropdownRenderOptions.length&&(this.focusedIndex=this.dropdownRenderOptions.length-1)}focusNext(){this.dropdownRenderOptions.length&&(-1!==this.focusedIndex&&this.focusedIndex<this.dropdownRenderOptions.length-1?this.focusedIndex++:this.focusFirst())}focusPrev(){this.dropdownRenderOptions.length&&(this.focusedIndex>0?this.focusedIndex--:this.focusLast())}focusToIndex(t){this.dropdownRenderOptions.length&&t>=0&&t<=this.dropdownRenderOptions.length-1&&(this.focusedIndex=t)}focusToIndexWithOption(t){const e=this.dropdownRenderOptions.findIndex(e=>e.key===t.key);this.dropdownRenderOptions.length&&e>=0&&e<=this.dropdownRenderOptions.length-1&&(this.focusedIndex=e)}focusReset(){this.focusedIndex=-1}scrollToIndex(t){return b(this,void 0,void 0,function*(){yield new Promise(e=>{requestAnimationFrame(()=>{if(this.optionsListItems&&this.optionsListItems.length>this.visibleOptions&&t>=0&&this.optionsListItems.length>t){let e=0;const{top:i,bottom:s}=this.optionsList.getBoundingClientRect(),o=this.optionsListItems[t],r=this.optionsListItems[t+1]||o,a=this.optionsListItems[t-1]||o,n=r.getBoundingClientRect(),l=a.getBoundingClientRect();n.bottom>s?e=n.bottom-s+2:l.top<i&&(e=l.top-i-2),this.optionsList.scrollTop+=e}e()})})})}getOptionKeyValuePair(t){if("string"==typeof t)return{key:t.trim(),value:t};if(t&&"object"==typeof t){const e=Object.keys(t),i=Object.values(t);if(e.length){if(1===e.length||!this.optionId)return{key:e[0],value:i[0]};if(this.optionId)return{key:t[this.optionId],value:t[this.optionValue||this.optionId]}}}return{key:"undefined",value:"undefined"}}get labelTitle(){if(this.selectedKey){const t=this.dropdownRenderOptions.find(t=>t.key===this.selectedKey);if(t)return t.value}return this.title}get dropDownClassMap(){return{"md-dropdown__expanded":this.expanded,[`md-${this.messageType}`]:!!this.messageType,"md-new-dropdown":this.newMomentum,"md-dropdown--pill":!0===this.pill}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}helpTextTemplate(){return this.helpText?l.html`
713
716
  <md-help-text
714
717
  class="help-text ${(0,h.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
715
718
  .message=${this.helpText}
716
719
  style=${(0,u.styleMap)({width:"100%"})}
717
720
  ></md-help-text>
718
- `:d.nothing}messagesTemplate(){return this.messages&&this.messages.length?d.html`
721
+ `:l.nothing}messagesTemplate(){return this.messages&&this.messages.length?l.html`
719
722
  <div id="${this.htmlId}-message" part="message" class="md-dropbox__messages">
720
- ${(0,p.repeat)(this.messages,(t,e)=>d.html`
723
+ ${(0,p.repeat)(this.messages,(t,e)=>l.html`
721
724
  <md-help-text
722
725
  .message=${t}
723
726
  .id=${this.messageArr[e].id||""}
@@ -726,7 +729,7 @@
726
729
  ></md-help-text>
727
730
  `)}
728
731
  </div>
729
- `:d.nothing}iconTemplate(){return d.html`
732
+ `:l.nothing}iconTemplate(){return l.html`
730
733
  <md-icon
731
734
  class="md-dropdown-left-icon"
732
735
  name="${this.leftIcon}"
@@ -734,7 +737,7 @@
734
737
  iconSet="momentumDesign"
735
738
  @click=${this.toggleVisualListBox}
736
739
  ></md-icon>
737
- `}clearButtonTemplate(){return d.html`
740
+ `}clearButtonTemplate(){return l.html`
738
741
  <button
739
742
  type="button"
740
743
  class="md-dropdown-button clear"
@@ -753,7 +756,7 @@
753
756
  style="height: ${this.clearIconHeight};"
754
757
  ></md-icon>
755
758
  </button>
756
- `}arrowButtonTemplate(){return d.html`
759
+ `}arrowButtonTemplate(){return l.html`
757
760
  <button
758
761
  type="button"
759
762
  class="md-dropdown-button arrow-down"
@@ -768,11 +771,11 @@
768
771
  >
769
772
  <md-icon name="arrow-down-bold" size="16" iconSet="momentumDesign"></md-icon>
770
773
  </button>
771
- `}render(){return d.html`
774
+ `}render(){return l.html`
772
775
  <div class="md-dropdown ${(0,h.classMap)(this.dropDownClassMap)}" part="dropdown">
773
- ${this.searchable?d.html`
776
+ ${this.searchable?l.html`
774
777
  <div part="group" class="group" ?readonly=${this.readOnly}>
775
- ${this.leftIcon?this.iconTemplate():d.nothing}
778
+ ${this.leftIcon?this.iconTemplate():l.nothing}
776
779
  <input
777
780
  class="md-dropdown-input"
778
781
  type="text"
@@ -792,9 +795,9 @@
792
795
  @click=${this.toggleVisualListBox}
793
796
  @input=${this.handleInput}
794
797
  />
795
- ${this.compact||!this.searchable?d.nothing:this.shouldChangeButton()?this.clearButtonTemplate():this.arrowButtonTemplate()}
798
+ ${this.compact||!this.searchable?l.nothing:this.shouldChangeButton()?this.clearButtonTemplate():this.arrowButtonTemplate()}
796
799
  </div>
797
- `:d.html`
800
+ `:l.html`
798
801
  <label
799
802
  class="md-dropdown-label ${(0,h.classMap)({"md-new-dropdown-label":this.newMomentum})}"
800
803
  aria-expanded="${this.expanded}"
@@ -807,7 +810,7 @@
807
810
  role="combobox"
808
811
  tabindex="0"
809
812
  >
810
- ${this.leftIcon?d.html`<span class="md-dropdown-label--left-icon">${this.iconTemplate()}</span>`:d.nothing}
813
+ ${this.leftIcon?l.html`<span class="md-dropdown-label--left-icon">${this.iconTemplate()}</span>`:l.nothing}
811
814
  <span
812
815
  class="md-dropdown-label--text ${(0,h.classMap)({"md-new-dropdown-label--text":this.newMomentum})}"
813
816
  >
@@ -827,7 +830,7 @@
827
830
  part="dropdown-options"
828
831
  tabindex=${(0,c.ifDefined)(-1===this.customTabIndex?void 0:this.customTabIndex)}
829
832
  >
830
- ${this.filteredOptions.map((t,e)=>d.html`
833
+ ${this.filteredOptions.map((t,e)=>l.html`
831
834
  <li
832
835
  id="combo-${e}"
833
836
  class="md-dropdown-option"
@@ -849,7 +852,7 @@
849
852
  </ul>
850
853
  </div>
851
854
  ${this.messagesTemplate()} ${this.helpTextTemplate()}
852
- `}};y([(0,l.property)({type:String,attribute:"title"})],i.prototype,"title",void 0),y([(0,l.property)({type:Array})],i.prototype,"options",void 0),y([(0,l.property)({type:String,attribute:"option-id"})],i.prototype,"optionId",void 0),y([(0,l.property)({type:String,attribute:"option-value"})],i.prototype,"optionValue",void 0),y([(0,l.property)({type:Object})],i.prototype,"defaultOption",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0),y([(0,l.property)({type:Number,attribute:"custom-tab-index",reflect:!0})],i.prototype,"customTabIndex",void 0),y([(0,l.property)({type:Boolean,attribute:"allow-unselected",reflect:!0})],i.prototype,"allowUnselected",void 0),y([(0,l.property)({type:Number,attribute:"visible-option",reflect:!0})],i.prototype,"visibleOptions",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"compact",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"searchable",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"searchItem",void 0),y([(0,l.property)({type:String,attribute:"input-value",reflect:!0})],i.prototype,"inputValue",void 0),y([(0,l.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"readOnly",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,l.property)({type:String,attribute:"left-icon",reflect:!0})],i.prototype,"leftIcon",void 0),y([(0,l.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],i.prototype,"trimSpace",void 0),y([(0,l.property)({type:String,attribute:"no-results-i18n"})],i.prototype,"resultsTextLocalization",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"pill",void 0),y([(0,l.property)({type:String})],i.prototype,"helpText",void 0),y([(0,l.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,l.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,l.property)({type:String,attribute:"clear-aria-label"})],i.prototype,"clearAriaLabel",void 0),y([(0,l.property)({type:String,attribute:"clear-icon-height"})],i.prototype,"clearIconHeight",void 0),y([(0,l.property)({type:String,attribute:"arrow-aria-label"})],i.prototype,"arrowAriaLabel",void 0),y([(0,l.property)({type:String,attribute:"popup-chevron-aria-hidden"})],i.prototype,"popupChevronAriaHidden",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"ariaLabel",void 0),y([(0,l.property)({type:String,attribute:"search-result-aria-label"})],i.prototype,"searchResultAriaLabel",void 0),y([(0,l.internalProperty)()],i.prototype,"ariaLabelForDropdown",void 0),y([(0,l.internalProperty)()],i.prototype,"renderOptions",void 0),y([(0,l.internalProperty)()],i.prototype,"selectedKey",void 0),y([(0,l.internalProperty)()],i.prototype,"expanded",void 0),y([(0,l.internalProperty)()],i.prototype,"focusedIndex",void 0),y([(0,l.query)("label")],i.prototype,"label",void 0),y([(0,l.query)(".md-dropdown-input")],i.prototype,"input",void 0),y([(0,l.query)("ul.md-dropdown-list")],i.prototype,"optionsList",void 0),y([(0,l.queryAll)("li.md-dropdown-option")],i.prototype,"optionsListItems",void 0),i=y([(0,r.wW)("md-dropdown")],i),t.ELEMENT=i}(o||(o={}))},23779:(t,e,i)=>{i.d(e,{AudioPlayer:()=>u}),i(96798),i(61200),i(83192);var o=i(90195),s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(92984),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const c=[{value:.25,label:"0.25"},{value:.5,label:"0.50"},{value:.75,label:"0.75"},{value:1,label:"Normal"},{value:1.25,label:"1.25"},{value:1.5,label:"1.50"},{value:1.75,label:"1.75"},{value:2,label:"2"}],p={playBtn:{ariaLabel:"Play",tooltipText:"Play"},pauseBtn:{ariaLabel:"Pause",tooltipText:"Pause"},duration:{ariaLabel:"Duration:",tooltipText:"Duration"},timeline:{ariaLabel:"Audio Seekbar",tooltipText:"Audio Seekbar"},volumeBtn:{ariaLabel:"Mute / Unmute Audio",tooltipText:"Mute / Unmute"},volumeSlider:{ariaLabel:"Volume level",tooltipText:"Volume level"},playbackSpeedBtn:{ariaLabel:"Playback speed",tooltipText:"Playback speed"}};var u;!function(t){let e=class extends n.LitElement{constructor(){super(),this.src="",this.events=[],this.isPlaying=!1,this.isMuted=!1,this.duration=0,this.volume=100,this.currentTime=0,this.showSpeedPopup=!1,this.playbackSpeed=1,this.volumeExpanded=!1,this.bufferedRange=0,this.selectedPlaybackSpeed=this.playbackSpeed,this.currentlySelectingPlaybackSpeed=!1,this.onOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>"speed-btn"===t.id),e||(this.showSpeedPopup=!1))},this.handleKeyDown=t=>{const{code:e}=t;switch(e){case o.Uz.ArrowLeft:this.volumeExpanded?this.setVolumeKeydown(this.volume-.01):this.setTimeKeydown(this.currentTime-1);break;case o.Uz.ArrowRight:this.volumeExpanded?this.setVolumeKeydown(this.volume+.01):this.setTimeKeydown(this.currentTime+1);break;case o.Uz.ArrowUp:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const e=c.findIndex(t=>t.value===this.selectedPlaybackSpeed),i=Math.max(0,e-1);this.selectedPlaybackSpeed=c[i].value,t.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case o.Uz.ArrowDown:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const e=c.findIndex(t=>t.value===this.selectedPlaybackSpeed),i=Math.min(c.length-1,e+1);this.selectedPlaybackSpeed=c[i].value,t.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case o.Uz.Enter:this.showSpeedPopup&&(this.setPlaybackSpeed(this.selectedPlaybackSpeed),t.preventDefault())}},this.audio=new Audio,this.setAudioEventListeners(),this.labelMap=p}firstUpdated(t){super.firstUpdated(t),t.has("src")&&(this.audio.src=this.src)}updated(t){super.updated(t),t.has("src")&&(this.audio.src=this.src)}connectedCallback(){super.connectedCallback(),this.requestUpdate("src"),document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.handleKeyDown),this.audio.pause(),this.isPlaying=!1}setAudioEventListeners(){this.audio.onloadeddata=()=>{this.duration=this.audio.duration,this.audio.volume=.75},this.audio.onerror=()=>{this.audio.src&&this.dispatchEvent(new CustomEvent("playback-error",{composed:!0,bubbles:!0}))},this.audio.onended=()=>{this.audio.currentTime=0,this.isPlaying=!1},this.audio.ontimeupdate=()=>{this.currentTime=this.audio.currentTime},this.audio.onvolumechange=()=>{this.volume=this.audio.volume},this.audio.onprogress=()=>{this.audio.buffered.length>0&&(this.bufferedRange=this.audio.buffered.end(this.audio.buffered.length-1))}}togglePlay(){this.isPlaying=!this.isPlaying,this.isPlaying?(this.audio.play(),this.dispatchEvent(new CustomEvent("play-clicked",{composed:!0,bubbles:!0}))):this.audio.pause()}toTimecode(t){const e=Math.floor(t);return`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`}setTime(t){const e=this.getBarPercentage(t,"timeline"),i=Math.floor(e*this.duration);this.audio.currentTime=i}setVolumeElement(t){this.volumeElement="volume"===t.target.className?t.target:t.target.parentElement}handleVolumeChange(t){let e=!1;this.setVolumeElement(t),this.setVolume(t);const i=t=>{e||(e=!0),this.volumeExpanded?this.setVolume(t):s()},o=()=>{s()},s=()=>{e=!1,window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",o)};window.addEventListener("mousemove",i),window.addEventListener("mouseup",o),t.preventDefault()}getVolumeFromSlider(t){if(null===this.volumeElement)return 0;const e=this.volumeElement.getBoundingClientRect(),i=t.clientX-e.x;return Math.max(0,Math.min(1,i/e.width))}setVolume(t){const e=this.getVolumeFromSlider(t);this.audio.volume=e}getBarPercentage(t,e){const i=(t.target.className===e?t.target:t.target.parentElement).getBoundingClientRect();return(t.clientX-i.x)/i.width}toggleSoundMute(){this.isMuted=!this.isMuted,this.audio.muted=this.isMuted}toggleSpeedPopup(){this.showSpeedPopup=!this.showSpeedPopup}setTimeKeydown(t){t>this.duration?(this.currentTime=this.duration,this.audio.currentTime=this.duration):t<0?(this.currentTime=0,this.audio.currentTime=0):(this.currentTime=t,this.audio.currentTime=t)}setVolumeKeydown(t){t>1?(this.volume=1,this.audio.volume=1):t<0?(this.isMuted||this.toggleSoundMute(),this.volume=0,this.audio.volume=0):(this.isMuted&&this.toggleSoundMute(),this.volume=t,this.audio.volume=t)}get popupClassMap(){return{"popup-open":this.showSpeedPopup}}setPlaybackSpeed(t){this.playbackSpeed=t,this.selectedPlaybackSpeed=t,this.audio.playbackRate=this.playbackSpeed,this.showSpeedPopup=!1}toggleVolumeExpand(t){this.volumeExpanded=t}static get styles(){return[r.A,d.A]}render(){return n.html`
855
+ `}};y([(0,d.property)({type:String,attribute:"title"})],i.prototype,"title",void 0),y([(0,d.property)({type:Array})],i.prototype,"options",void 0),y([(0,d.property)({type:String,attribute:"option-id"})],i.prototype,"optionId",void 0),y([(0,d.property)({type:String,attribute:"option-value"})],i.prototype,"optionValue",void 0),y([(0,d.property)({type:Object})],i.prototype,"defaultOption",void 0),y([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0),y([(0,d.property)({type:Number,attribute:"custom-tab-index",reflect:!0})],i.prototype,"customTabIndex",void 0),y([(0,d.property)({type:Boolean,attribute:"allow-unselected",reflect:!0})],i.prototype,"allowUnselected",void 0),y([(0,d.property)({type:Number,attribute:"visible-option",reflect:!0})],i.prototype,"visibleOptions",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"compact",void 0),y([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchable",void 0),y([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchItem",void 0),y([(0,d.property)({type:String,attribute:"input-value",reflect:!0})],i.prototype,"inputValue",void 0),y([(0,d.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"readOnly",void 0),y([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,d.property)({type:String,attribute:"left-icon",reflect:!0})],i.prototype,"leftIcon",void 0),y([(0,d.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],i.prototype,"trimSpace",void 0),y([(0,d.property)({type:String,attribute:"no-results-i18n"})],i.prototype,"resultsTextLocalization",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"pill",void 0),y([(0,d.property)({type:String})],i.prototype,"helpText",void 0),y([(0,d.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,d.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,d.property)({type:String,attribute:"clear-aria-label"})],i.prototype,"clearAriaLabel",void 0),y([(0,d.property)({type:String,attribute:"clear-icon-height"})],i.prototype,"clearIconHeight",void 0),y([(0,d.property)({type:String,attribute:"arrow-aria-label"})],i.prototype,"arrowAriaLabel",void 0),y([(0,d.property)({type:String,attribute:"popup-chevron-aria-hidden"})],i.prototype,"popupChevronAriaHidden",void 0),y([(0,d.property)({type:String,reflect:!0})],i.prototype,"ariaLabel",void 0),y([(0,d.property)({type:String,attribute:"search-result-aria-label"})],i.prototype,"searchResultAriaLabel",void 0),y([(0,d.state)()],i.prototype,"ariaLabelForDropdown",void 0),y([(0,d.state)()],i.prototype,"dropdownRenderOptions",void 0),y([(0,d.state)()],i.prototype,"selectedKey",void 0),y([(0,d.state)()],i.prototype,"expanded",void 0),y([(0,d.state)()],i.prototype,"focusedIndex",void 0),y([(0,d.query)("label")],i.prototype,"label",void 0),y([(0,d.query)(".md-dropdown-input")],i.prototype,"input",void 0),y([(0,d.query)("ul.md-dropdown-list")],i.prototype,"optionsList",void 0),y([(0,d.queryAll)("li.md-dropdown-option")],i.prototype,"optionsListItems",void 0),i=y([(0,r.wW)("md-dropdown")],i),t.ELEMENT=i}(s||(s={}))},23779:(t,e,i)=>{i.d(e,{AudioPlayer:()=>u}),i(96798),i(61200),i(83192);var s=i(90195),o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(51806),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const c=[{value:.25,label:"0.25"},{value:.5,label:"0.50"},{value:.75,label:"0.75"},{value:1,label:"Normal"},{value:1.25,label:"1.25"},{value:1.5,label:"1.50"},{value:1.75,label:"1.75"},{value:2,label:"2"}],p={playBtn:{ariaLabel:"Play",tooltipText:"Play"},pauseBtn:{ariaLabel:"Pause",tooltipText:"Pause"},duration:{ariaLabel:"Duration:",tooltipText:"Duration"},timeline:{ariaLabel:"Audio Seekbar",tooltipText:"Audio Seekbar"},volumeBtn:{ariaLabel:"Mute / Unmute Audio",tooltipText:"Mute / Unmute"},volumeSlider:{ariaLabel:"Volume level",tooltipText:"Volume level"},playbackSpeedBtn:{ariaLabel:"Playback speed",tooltipText:"Playback speed"}};var u;!function(t){let e=class extends a.LitElement{constructor(){super(),this.src="",this.events=[],this.isPlaying=!1,this.isMuted=!1,this.duration=0,this.volume=100,this.currentTime=0,this.showSpeedPopup=!1,this.playbackSpeed=1,this.volumeExpanded=!1,this.bufferedRange=0,this.selectedPlaybackSpeed=this.playbackSpeed,this.currentlySelectingPlaybackSpeed=!1,this.onOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>"speed-btn"===t.id),e||(this.showSpeedPopup=!1))},this.handleKeyDown=t=>{const{code:e}=t;switch(e){case s.Uz.ArrowLeft:this.volumeExpanded?this.setVolumeKeydown(this.volume-.01):this.setTimeKeydown(this.currentTime-1);break;case s.Uz.ArrowRight:this.volumeExpanded?this.setVolumeKeydown(this.volume+.01):this.setTimeKeydown(this.currentTime+1);break;case s.Uz.ArrowUp:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const e=c.findIndex(t=>t.value===this.selectedPlaybackSpeed),i=Math.max(0,e-1);this.selectedPlaybackSpeed=c[i].value,t.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case s.Uz.ArrowDown:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const e=c.findIndex(t=>t.value===this.selectedPlaybackSpeed),i=Math.min(c.length-1,e+1);this.selectedPlaybackSpeed=c[i].value,t.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case s.Uz.Enter:this.showSpeedPopup&&(this.setPlaybackSpeed(this.selectedPlaybackSpeed),t.preventDefault())}},this.audio=new Audio,this.setAudioEventListeners(),this.labelMap=p}firstUpdated(t){super.firstUpdated(t),t.has("src")&&(this.audio.src=this.src)}updated(t){super.updated(t),t.has("src")&&(this.audio.src=this.src)}connectedCallback(){super.connectedCallback(),this.requestUpdate("src"),document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.handleKeyDown),this.audio.pause(),this.isPlaying=!1}setAudioEventListeners(){this.audio.onloadeddata=()=>{this.duration=this.audio.duration,this.audio.volume=.75},this.audio.onerror=()=>{this.audio.src&&this.dispatchEvent(new CustomEvent("playback-error",{composed:!0,bubbles:!0}))},this.audio.onended=()=>{this.audio.currentTime=0,this.isPlaying=!1},this.audio.ontimeupdate=()=>{this.currentTime=this.audio.currentTime},this.audio.onvolumechange=()=>{this.volume=this.audio.volume},this.audio.onprogress=()=>{this.audio.buffered.length>0&&(this.bufferedRange=this.audio.buffered.end(this.audio.buffered.length-1))}}togglePlay(){this.isPlaying=!this.isPlaying,this.isPlaying?(this.audio.play(),this.dispatchEvent(new CustomEvent("play-clicked",{composed:!0,bubbles:!0}))):this.audio.pause()}toTimecode(t){const e=Math.floor(t);return`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`}setTime(t){const e=this.getBarPercentage(t,"timeline"),i=Math.floor(e*this.duration);this.audio.currentTime=i}setVolumeElement(t){this.volumeElement="volume"===t.target.className?t.target:t.target.parentElement}handleVolumeChange(t){let e=!1;this.setVolumeElement(t),this.setVolume(t);const i=t=>{e||(e=!0),this.volumeExpanded?this.setVolume(t):o()},s=()=>{o()},o=()=>{e=!1,window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",s)};window.addEventListener("mousemove",i),window.addEventListener("mouseup",s),t.preventDefault()}getVolumeFromSlider(t){if(null===this.volumeElement)return 0;const e=this.volumeElement.getBoundingClientRect(),i=t.clientX-e.x;return Math.max(0,Math.min(1,i/e.width))}setVolume(t){const e=this.getVolumeFromSlider(t);this.audio.volume=e}getBarPercentage(t,e){const i=(t.target.className===e?t.target:t.target.parentElement).getBoundingClientRect();return(t.clientX-i.x)/i.width}toggleSoundMute(){this.isMuted=!this.isMuted,this.audio.muted=this.isMuted}toggleSpeedPopup(){this.showSpeedPopup=!this.showSpeedPopup}setTimeKeydown(t){t>this.duration?(this.currentTime=this.duration,this.audio.currentTime=this.duration):t<0?(this.currentTime=0,this.audio.currentTime=0):(this.currentTime=t,this.audio.currentTime=t)}setVolumeKeydown(t){t>1?(this.volume=1,this.audio.volume=1):t<0?(this.isMuted||this.toggleSoundMute(),this.volume=0,this.audio.volume=0):(this.isMuted&&this.toggleSoundMute(),this.volume=t,this.audio.volume=t)}get popupClassMap(){return{"popup-open":this.showSpeedPopup}}setPlaybackSpeed(t){this.playbackSpeed=t,this.selectedPlaybackSpeed=t,this.audio.playbackRate=this.playbackSpeed,this.showSpeedPopup=!1}toggleVolumeExpand(t){this.volumeExpanded=t}static get styles(){return[r.A,d.A]}render(){return a.html`
853
856
  <div class="md-audio-player">
854
857
  <div class="inner-container">
855
858
  <div class="play-container">
@@ -863,7 +866,7 @@
863
866
  @click="${this.togglePlay}"
864
867
  aria-label="${this.isPlaying?this.labelMap.pauseBtn.ariaLabel:this.labelMap.playBtn.ariaLabel}"
865
868
  >
866
- ${this.isPlaying?n.html` <md-icon slot="icon" name="pause-bold" size="16" iconSet="momentumDesign"></md-icon> `:n.html` <md-icon slot="icon" name="play-bold" size="16" iconSet="momentumDesign"></md-icon> `}
869
+ ${this.isPlaying?a.html` <md-icon slot="icon" name="pause-bold" size="16" iconSet="momentumDesign"></md-icon> `:a.html` <md-icon slot="icon" name="play-bold" size="16" iconSet="momentumDesign"></md-icon> `}
867
870
  </md-button>
868
871
  </md-tooltip>
869
872
  </div>
@@ -910,9 +913,9 @@
910
913
  aria-label="${this.labelMap.volumeBtn.ariaLabel}"
911
914
  @click="${this.toggleSoundMute}"
912
915
  >
913
- ${this.isMuted?n.html`
916
+ ${this.isMuted?a.html`
914
917
  <md-icon slot="icon" name="speaker-muted-bold" size="16" iconSet="momentumDesign"></md-icon>
915
- `:n.html` <md-icon slot="icon" name="speaker-bold" size="16" iconSet="momentumDesign"></md-icon> `}
918
+ `:a.html` <md-icon slot="icon" name="speaker-bold" size="16" iconSet="momentumDesign"></md-icon> `}
916
919
  </md-button>
917
920
  </md-tooltip>
918
921
  </div>
@@ -924,13 +927,13 @@
924
927
  </md-tooltip>
925
928
  <div class="speed-popup ${(0,l.classMap)(this.popupClassMap)}">
926
929
  <ul id="speed-popup-menu">
927
- ${c.map(t=>{const e=this.selectedPlaybackSpeed==t.value&&!this.currentlySelectingPlaybackSpeed;return n.html`
930
+ ${c.map(t=>{const e=this.selectedPlaybackSpeed==t.value&&!this.currentlySelectingPlaybackSpeed;return a.html`
928
931
  <li
929
932
  class=${e?"speed-popup-selected-speed":""}
930
933
  @click="${()=>this.setPlaybackSpeed(t.value)}"
931
934
  >
932
935
  <span>${t.label}</span>
933
- ${this.playbackSpeed==t.value?n.html`
936
+ ${this.playbackSpeed==t.value?a.html`
934
937
  <md-icon
935
938
  slot="icon"
936
939
  color="md-blue-60"
@@ -946,19 +949,19 @@
946
949
  </div>
947
950
  </div>
948
951
  </div>
949
- `}};h([(0,n.property)({type:String})],e.prototype,"src",void 0),h([(0,n.property)({type:Object})],e.prototype,"labelMap",void 0),h([(0,n.internalProperty)()],e.prototype,"events",void 0),h([(0,n.internalProperty)()],e.prototype,"audio",void 0),h([(0,n.internalProperty)()],e.prototype,"volumeElement",void 0),h([(0,n.internalProperty)()],e.prototype,"isPlaying",void 0),h([(0,n.internalProperty)()],e.prototype,"isMuted",void 0),h([(0,n.internalProperty)()],e.prototype,"duration",void 0),h([(0,n.internalProperty)()],e.prototype,"volume",void 0),h([(0,n.internalProperty)()],e.prototype,"currentTime",void 0),h([(0,n.internalProperty)()],e.prototype,"showSpeedPopup",void 0),h([(0,n.internalProperty)()],e.prototype,"playbackSpeed",void 0),h([(0,n.internalProperty)()],e.prototype,"volumeExpanded",void 0),h([(0,n.internalProperty)()],e.prototype,"bufferedRange",void 0),h([(0,n.internalProperty)()],e.prototype,"selectedPlaybackSpeed",void 0),h([(0,n.internalProperty)()],e.prototype,"currentlySelectingPlaybackSpeed",void 0),e=h([(0,s.w)("md-audio-player")],e),t.ELEMENT=e}(u||(u={}))},23968:t=>{t.exports=e},24627:(t,e,i)=>{i.d(e,{DraggableItem:()=>o});var o,s=i(3001),r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(6979),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,s.yC)(a.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.extended=!1,this.editable=!1}static get styles(){return[n.A,h.A]}get draggableItemClassMap(){return{extended:this.extended,default:!this.extended,disabled:this.disabled}}render(){return a.html`
952
+ `}};h([(0,n.property)({type:String})],e.prototype,"src",void 0),h([(0,n.property)({type:Object})],e.prototype,"labelMap",void 0),h([(0,n.state)()],e.prototype,"events",void 0),h([(0,n.state)()],e.prototype,"audio",void 0),h([(0,n.state)()],e.prototype,"volumeElement",void 0),h([(0,n.state)()],e.prototype,"isPlaying",void 0),h([(0,n.state)()],e.prototype,"isMuted",void 0),h([(0,n.state)()],e.prototype,"duration",void 0),h([(0,n.state)()],e.prototype,"volume",void 0),h([(0,n.state)()],e.prototype,"currentTime",void 0),h([(0,n.state)()],e.prototype,"showSpeedPopup",void 0),h([(0,n.state)()],e.prototype,"playbackSpeed",void 0),h([(0,n.state)()],e.prototype,"volumeExpanded",void 0),h([(0,n.state)()],e.prototype,"bufferedRange",void 0),h([(0,n.state)()],e.prototype,"selectedPlaybackSpeed",void 0),h([(0,n.state)()],e.prototype,"currentlySelectingPlaybackSpeed",void 0),e=h([(0,o.w)("md-audio-player")],e),t.ELEMENT=e}(u||(u={}))},24627:(t,e,i)=>{i.d(e,{DraggableItem:()=>s});var s,o=i(3001),r=i(31890),a=i(4313),n=i(87161),l=i(70429),d=i(85125),h=i(43852),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,o.yC)(n.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.extended=!1,this.editable=!1}static get styles(){return[a.A,h.A]}get draggableItemClassMap(){return{extended:this.extended,default:!this.extended,disabled:this.disabled}}render(){return n.html`
950
953
  <div
951
954
  class="md-draggable-item ${(0,d.classMap)(this.draggableItemClassMap)}"
952
955
  part="draggable-item"
953
956
  aria-disabled=${this.disabled}
954
957
  >
955
- ${this.extended&&this.editable?a.html` <md-icon name="dragger-vertical-bold" size="16" iconSet="momentumDesign"></md-icon> `:l.nothing}
958
+ ${this.extended&&this.editable?n.html` <md-icon name="dragger-vertical-bold" size="16" iconSet="momentumDesign"></md-icon> `:n.nothing}
956
959
  <slot></slot>
957
- ${this.extended?a.html` <slot name="extended"></slot> `:l.nothing}
960
+ ${this.extended?n.html` <slot name="extended"></slot> `:n.nothing}
958
961
  </div>
959
- `}};c([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),c([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"extended",void 0),c([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),e=c([(0,r.w)("md-draggable-item")],e),t.ELEMENT=e}(o||(o={}))},25428:(t,e,i)=>{i.d(e,{Slider:()=>o});var o,s=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(40333),h=i(97822),c=i(22818),p=i(8229),u=i(61869),m=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this._disabled=!1,this._now=0,this.min=0,this.max=100,this.hideValue=!1,this.text=0,this.label="slider",this.step=0,this.dragging=!1}get now(){return this._now}set now(t){const e=this._now;t<this.min||t>this.max?console.warn("Please select correct value"):(this._now=Math.round(t),this.requestUpdate("now",e))}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get pointerPosition(){const t=this.max-this.min;return(this.now-this.min)/t*100}get isRtl(){return"rtl"===getComputedStyle(this).direction}calculateHandlePosition(t){const{width:e,left:i}=this.getBoundingClientRect(),{clientX:o}=t;let s=(o-i)/e;return this.isRtl&&(s=1-s),this.min+(this.max-this.min)*s}moveSliderTo(t){this.disabled||(t>this.max?this.now=this.max:t<this.min?this.now=this.min:this.now=t)}trackMouseEvent(){if(!this.currentMouseEvent||!this.dragging)return;const t=this.calculateHandlePosition(this.currentMouseEvent),e=this.now;this.moveSliderTo(t),this.notifyChanging(e,this.now),requestAnimationFrame(()=>{this.trackMouseEvent()})}ticksTemplate(){const{min:t,max:e,step:i}=this,o=Math.round((e-t)/i),s=new Array(o+1).fill(0,0,o+1).map((e,o)=>t+o*i).filter(i=>i>=t&&i<=e);return l.html`
960
- <div class="md-slider__hashlabel">${(0,c.repeat)(s,t=>l.html` <div class="tick">${t}</div> `)}</div>
961
- `}displayValueTemplate(){return l.html` <span class="md-slider__value"> ${this.now} </span> `}notifyChanges(){this.dispatchEvent(new CustomEvent("slider-change",{bubbles:!0,composed:!0,detail:{value:this.now}}))}notifyChanging(t,e){t!==e&&this.dispatchEvent(new CustomEvent("slider-changing",{bubbles:!0,composed:!0,detail:{oldValue:t,newValue:e}}))}handleMouseDown(t){if(t.preventDefault(),this.disabled)return;const e=t=>{this.currentMouseEvent=t},i=t=>{this.focus(),this.currentMouseEvent=t,document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",i),requestAnimationFrame(()=>{this.dragging=!1,this.notifyChanges()})};document.addEventListener("mousemove",e),document.addEventListener("mouseup",i),this.focus(),this.dragging=!0,this.currentMouseEvent=t,requestAnimationFrame(()=>{this.trackMouseEvent()})}handleKeyDown(t){const{code:e}=t,i=this.now;switch(e){case s.Uz.ArrowLeft:this.moveSliderTo(this.now+(this.isRtl?1:-1));break;case s.Uz.ArrowRight:this.moveSliderTo(this.now+(this.isRtl?-1:1));break;case s.Uz.ArrowDown:this.moveSliderTo(this.now-1);break;case s.Uz.ArrowUp:this.moveSliderTo(this.now+1);break;case s.Uz.Home:this.moveSliderTo(this.min);break;case s.Uz.End:this.moveSliderTo(this.max)}this.notifyChanging(i,this.now);const o=()=>{document.removeEventListener("keyup",o),this.notifyChanges()};document.addEventListener("keyup",o)}get sliderPointerStyleMap(){return{"inset-inline-start":`${this.pointerPosition}%`}}get sliderSelectionStyleMap(){return{"inset-inline-end":`calc(100% - ${this.pointerPosition}%)`}}static get styles(){return[a.A,u.A]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("tabindex",this.disabled?"-1":"0")}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mousedown",this.handleMouseDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mousedown",this.handleMouseDown)}render(){return l.html`
962
+ `}};c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"extended",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),e=c([(0,r.w)("md-draggable-item")],e),t.ELEMENT=e}(s||(s={}))},25428:(t,e,i)=>{i.d(e,{Slider:()=>s});var s,o=i(90195),r=i(3001),a=i(31890),n=i(4313),l=i(87161),d=i(70429),h=i(20291),c=i(58175),p=i(10318),u=i(38588),m=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this._disabled=!1,this._now=0,this.min=0,this.max=100,this.hideValue=!1,this.text=0,this.label="slider",this.step=0,this.dragging=!1}get now(){return this._now}set now(t){const e=this._now;t<this.min||t>this.max?console.warn("Please select correct value"):(this._now=Math.round(t),this.requestUpdate("now",e))}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get pointerPosition(){const t=this.max-this.min;return(this.now-this.min)/t*100}get isRtl(){return"rtl"===getComputedStyle(this).direction}calculateHandlePosition(t){const{width:e,left:i}=this.getBoundingClientRect(),{clientX:s}=t;let o=(s-i)/e;return this.isRtl&&(o=1-o),this.min+(this.max-this.min)*o}moveSliderTo(t){this.disabled||(t>this.max?this.now=this.max:t<this.min?this.now=this.min:this.now=t)}trackMouseEvent(){if(!this.currentMouseEvent||!this.dragging)return;const t=this.calculateHandlePosition(this.currentMouseEvent),e=this.now;this.moveSliderTo(t),this.notifyChanging(e,this.now),requestAnimationFrame(()=>{this.trackMouseEvent()})}ticksTemplate(){const{min:t,max:e,step:i}=this,s=Math.round((e-t)/i),o=new Array(s+1).fill(0,0,s+1).map((e,s)=>t+s*i).filter(i=>i>=t&&i<=e);return l.html`
963
+ <div class="md-slider__hashlabel">${(0,c.repeat)(o,t=>l.html` <div class="tick">${t}</div> `)}</div>
964
+ `}displayValueTemplate(){return l.html` <span class="md-slider__value"> ${this.now} </span> `}notifyChanges(){this.dispatchEvent(new CustomEvent("slider-change",{bubbles:!0,composed:!0,detail:{value:this.now}}))}notifyChanging(t,e){t!==e&&this.dispatchEvent(new CustomEvent("slider-changing",{bubbles:!0,composed:!0,detail:{oldValue:t,newValue:e}}))}handleMouseDown(t){if(t.preventDefault(),this.disabled)return;const e=t=>{this.currentMouseEvent=t},i=t=>{this.focus(),this.currentMouseEvent=t,document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",i),requestAnimationFrame(()=>{this.dragging=!1,this.notifyChanges()})};document.addEventListener("mousemove",e),document.addEventListener("mouseup",i),this.focus(),this.dragging=!0,this.currentMouseEvent=t,requestAnimationFrame(()=>{this.trackMouseEvent()})}handleKeyDown(t){const{code:e}=t,i=this.now;switch(e){case o.Uz.ArrowLeft:this.moveSliderTo(this.now+(this.isRtl?1:-1));break;case o.Uz.ArrowRight:this.moveSliderTo(this.now+(this.isRtl?-1:1));break;case o.Uz.ArrowDown:this.moveSliderTo(this.now-1);break;case o.Uz.ArrowUp:this.moveSliderTo(this.now+1);break;case o.Uz.Home:this.moveSliderTo(this.min);break;case o.Uz.End:this.moveSliderTo(this.max)}this.notifyChanging(i,this.now);const s=()=>{document.removeEventListener("keyup",s),this.notifyChanges()};document.addEventListener("keyup",s)}get sliderPointerStyleMap(){return{"inset-inline-start":`${this.pointerPosition}%`}}get sliderSelectionStyleMap(){return{"inset-inline-end":`calc(100% - ${this.pointerPosition}%)`}}static get styles(){return[n.A,u.A]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("tabindex",this.disabled?"-1":"0")}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mousedown",this.handleMouseDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mousedown",this.handleMouseDown)}render(){return l.html`
962
965
  <div class="md-slider">
963
966
  <span class="md-slider__bar"></span>
964
967
  <span class="md-slider__selection" style=${(0,p.styleMap)(this.sliderSelectionStyleMap)}></span>
@@ -972,15 +975,9 @@
972
975
  aria-label=${(0,h.ifDefined)(this.label)}
973
976
  style=${(0,p.styleMap)(this.sliderPointerStyleMap)}
974
977
  ></span>
975
- ${this.step?this.ticksTemplate():d.nothing} ${this.hideValue?d.nothing:this.displayValueTemplate()}
978
+ ${this.step?this.ticksTemplate():l.nothing} ${this.hideValue?l.nothing:this.displayValueTemplate()}
976
979
  </div>
977
- `}};m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"min",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"max",void 0),m([(0,l.property)({type:Boolean,attribute:"hide-value"})],e.prototype,"hideValue",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"now",null),m([(0,l.property)({type:Number})],e.prototype,"text",void 0),m([(0,l.property)({type:String})],e.prototype,"label",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"step",void 0),m([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),m([(0,l.internalProperty)()],e.prototype,"dragging",void 0),e=m([(0,n.w)("md-slider")],e),t.ELEMENT=e}(o||(o={}))},28187:t=>{t.exports=D},28307:(t,e,i)=>{i.d(e,{AdvanceList:()=>o});var o,s=i(90195),r=i(31890),n=i(32972),a=i(26272),l=i(41488),d=i(86635),h=i(61705),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.prefixId="item-";let e=class extends((0,n.y)(l.LitElement)){constructor(){super(...arguments),this.items=[],this.isLoading=!1,this.isMulti=!1,this.groupOnMultiSelect=!1,this.value=[],this.ariaRoleList="listbox",this.ariaRoleListItem="option",this.ariaLabelList="",this.isError=!1,this.containerHeight="292px",this.lastSelectedIdByOrder="",this.selectAllItems=!1,this.focusReset=!1,this.disabledItems=[],this.totalRecords=0,this.isNonSelectable=!1,this.scrollIndex=-1,this.activeId="",this.selectedItemsIds=[],this.isUserNavigated=!1,this.handleKeyDown=e=>{var i;const{ArrowDown:o,ArrowUp:r,Tab:n,Space:a,Enter:l}=s.Uz,{code:d}=e,h=d===o,c=d===r,p=d===n,u=d===a,m=d===l;if(h||c){if(e.preventDefault(),this.isUserNavigated=!0,""===this.activeId&&this.value.length>0&&""!==this.value[0])return void(this.activeId=this.value[0]);if(""===this.activeId&&!c&&this.items.length>0)return void(this.activeId=this.items[0].id);const t=this.items.findIndex(t=>t.id===this.activeId);h?t<this.items.length-1&&!this.isNextElemenentStatusIndicator(t)&&(this.scrollIndex=t+1,this.activeId=this.items[this.scrollIndex].id):t>0&&(this.scrollIndex=t-1,this.activeId=this.items[this.scrollIndex].id)}else if(p)""===this.activeId&&this.value.length>0&&(this.activeId=this.value[0]);else if((u||m)&&(e.preventDefault(),this.activeId)){const e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(`#${t.prefixId}${this.activeId}`);e&&("true"===e.getAttribute("aria-disabled")||e.hasAttribute("disabled")||this.updateItemSelection(e))}},this.handleRangeChange=t=>{const{last:e}=t;this.updateSelectedState(),this.items.length<this.totalRecords&&e>=this.items.length-1&&!this.isLoading&&!this.isError&&this.dispatchEvent(new CustomEvent("load-more",{bubbles:!0,composed:!0})),this.isUserNavigated=!1}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick)}static get styles(){return[a.A,h.A]}getStyles(){return l.html`
978
- <style>
979
- :host .virtual-scroll {
980
- height: ${this.containerHeight};
981
- }
982
- </style>
983
- `}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),null===(t=this.listContainer)||void 0===t||t.removeEventListener("keydown",this.handleKeyDown)}firstUpdated(t){var e;super.firstUpdated(t),null===(e=this.listContainer)||void 0===e||e.addEventListener("keydown",this.handleKeyDown)}updated(t){super.updated(t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&this.requestUpdate().then(()=>{this.selectedItemsIds=this.value,this.updateSelectedState()}),t.has("selectAllItems")&&this.selectAllItems&&(this.selectedItemsIds=this.items.filter(t=>!this.disabledItems.includes(t.id)).map(t=>t.id),this.updateSelectedState(),this.notifySelectedChange()),t.has("focusReset")&&this.focusReset&&(this.activeId="")}setCheckboxAttributes(t,e){var i,o,s,r;!t||(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))&&"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?null===(r=e.querySelector("md-checkbox"))||void 0===r||r.removeAttribute("checked"):null===(s=e.querySelector("md-checkbox"))||void 0===s||s.setAttribute("checked","true")}updateWrapperAttributes(t,e){this.isMulti?this.setCheckboxAttributes(e,t):t.classList.toggle("selected",e),t.setAttribute("selected",e.toString()),t.setAttribute("aria-selected",e.toString()),t.setAttribute("tabindex",e?"0":"-1")}updateSelectedState(){var e;Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]).forEach(e=>{var i,o;const s=this.selectedItemsIds.some(i=>e.id===`${t.prefixId}${i}`);this.updateWrapperAttributes(e,s),this.groupOnMultiSelect&&this.value.length>0&&this.items.length!==this.value.length&&e.id===`${t.prefixId}${this.lastSelectedIdByOrder}`?e.classList.add("selected-border-bottom"):e.classList.remove("selected-border-bottom"),e.id===`${t.prefixId}${this.activeId}`?(e.setAttribute("tabindex","0"),e.focus()):e.setAttribute("tabindex","-1"),""==this.activeId&&e.id===`${t.prefixId}${this.value[0]}`&&e.setAttribute("tabindex","0"),(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))||"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?(e.setAttribute("disabled",""),e.setAttribute("aria-disabled","true")):(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled"))})}findClickedItem(t){var e;const i=Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]),o=t.composedPath(),s=i.find(t=>o.includes(t));if(s)return(null==s?void 0:s.hasAttribute("disabled"))||"true"===(null==s?void 0:s.getAttribute("aria-disabled"))?0:s}isNextElemenentStatusIndicator(t){return(this.isLoading||this.isError)&&t===this.items.length-2}updateItemForMultiSelect(t){const e=this.selectedItemsIds.indexOf(t);-1===e?(this.selectedItemsIds.push(this.activeId),this.selectedItemsIds.length===this.items.length-this.disabledItems.length&&(this.selectAllItems=!0)):(this.selectedItemsIds.splice(e,1),this.selectAllItems=!1)}updateItemSelection(t){t&&(this.activeId=t.id.substring(t.id.indexOf("-")+1),this.isMulti?this.updateItemForMultiSelect(this.activeId):this.selectedItemsIds=[this.activeId],this.updateSelectedState(),this.notifySelectedChange())}handleClick(t){t.preventDefault(),this.isUserNavigated=!1;const e=this.findClickedItem(t);e&&(this.scrollIndex=parseInt(e.getAttribute("index")||"0"),this.updateItemSelection(e))}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selectedItemsIds},bubbles:!0,composed:!0}))}renderItem(e,i){return"status-indicator"===e.id?l.html`
980
+ `}};m([(0,d.property)({type:Number,reflect:!0})],e.prototype,"min",void 0),m([(0,d.property)({type:Number,reflect:!0})],e.prototype,"max",void 0),m([(0,d.property)({type:Boolean,attribute:"hide-value"})],e.prototype,"hideValue",void 0),m([(0,d.property)({type:Number,reflect:!0})],e.prototype,"now",null),m([(0,d.property)({type:Number})],e.prototype,"text",void 0),m([(0,d.property)({type:String})],e.prototype,"label",void 0),m([(0,d.property)({type:Number,reflect:!0})],e.prototype,"step",void 0),m([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),m([(0,d.state)()],e.prototype,"dragging",void 0),e=m([(0,a.w)("md-slider")],e),t.ELEMENT=e}(s||(s={}))},28187:t=>{t.exports=L},28307:(t,e,i)=>{i.d(e,{AdvanceList:()=>s});var s,o=i(90195),r=i(31890),a=i(32972),n=i(4313),l=(i(83048),i(87161)),d=i(70429),h=i(89312),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){t.prefixId="item-";let e=class extends((0,a.y)(l.LitElement)){constructor(){super(...arguments),this.items=[],this.isLoading=!1,this.isMulti=!1,this.groupOnMultiSelect=!1,this.value=[],this.ariaRoleList="listbox",this.ariaRoleListItem="option",this.ariaLabelList="",this.isError=!1,this.containerHeight="292px",this.lastSelectedIdByOrder="",this.selectAllItems=!1,this.focusReset=!1,this.disabledItems=[],this.totalRecords=0,this.isNonSelectable=!1,this.scrollIndex=-1,this.activeId="",this.selectedItemsIds=[],this.isUserNavigated=!1,this.handleKeyDown=e=>{var i;const{ArrowDown:s,ArrowUp:r,Tab:a,Space:n,Enter:l}=o.Uz,{code:d}=e,h=d===s,c=d===r,p=d===a,u=d===n,m=d===l;if(h||c){if(e.preventDefault(),this.isUserNavigated=!0,""===this.activeId&&this.value.length>0&&""!==this.value[0])return void(this.activeId=this.value[0]);if(""===this.activeId&&!c&&this.items.length>0)return void(this.activeId=this.items[0].id);const t=this.items.findIndex(t=>t.id===this.activeId);h?t<this.items.length-1&&!this.isNextElemenentStatusIndicator(t)&&(this.scrollIndex=t+1,this.activeId=this.items[this.scrollIndex].id):t>0&&(this.scrollIndex=t-1,this.activeId=this.items[this.scrollIndex].id)}else if(p)""===this.activeId&&this.value.length>0&&(this.activeId=this.value[0]);else if((u||m)&&(e.preventDefault(),this.activeId)){const e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(`#${t.prefixId}${this.activeId}`);e&&("true"===e.getAttribute("aria-disabled")||e.hasAttribute("disabled")||this.updateItemSelection(e))}},this.handleRangeChange=t=>{const{last:e}=t;this.updateSelectedState(),this.items.length<this.totalRecords&&e>=this.items.length-1&&!this.isLoading&&!this.isError&&this.dispatchEvent(new CustomEvent("load-more",{bubbles:!0,composed:!0})),this.isUserNavigated=!1},this.renderItem=(e,i)=>"status-indicator"===e.id?l.html`
984
981
  <div class="default-wrapper-status-indicator" id="status-indicator">${e.template(e,i)}</div>
985
982
  `:l.html`
986
983
  <div
@@ -995,7 +992,13 @@
995
992
  >
996
993
  ${e.template(e,i)}
997
994
  </div>
998
- `}getActiveDescendant(){return this.activeId?`${t.prefixId}${this.activeId}`:this.value?`${t.prefixId}${this.value[0]}`:""}render(){return l.html`
995
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick)}static get styles(){return[n.A,h.A]}getStyles(){return l.html`
996
+ <style>
997
+ :host .virtual-scroll {
998
+ height: ${this.containerHeight};
999
+ }
1000
+ </style>
1001
+ `}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),null===(t=this.listContainer)||void 0===t||t.removeEventListener("keydown",this.handleKeyDown)}firstUpdated(t){var e;super.firstUpdated(t),null===(e=this.listContainer)||void 0===e||e.addEventListener("keydown",this.handleKeyDown)}updated(t){super.updated(t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&(this.requestUpdate(),this.updateComplete.then(()=>{this.selectedItemsIds=this.value,this.updateSelectedState()})),t.has("selectAllItems")&&this.selectAllItems&&(this.selectedItemsIds=this.items.filter(t=>!this.disabledItems.includes(t.id)).map(t=>t.id),this.updateSelectedState(),this.notifySelectedChange()),t.has("focusReset")&&this.focusReset&&(this.activeId="")}setCheckboxAttributes(t,e){var i,s,o,r;!t||(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))&&"true"===(null===(s=e.firstElementChild)||void 0===s?void 0:s.getAttribute("aria-disabled"))?null===(r=e.querySelector("md-checkbox"))||void 0===r||r.removeAttribute("checked"):null===(o=e.querySelector("md-checkbox"))||void 0===o||o.setAttribute("checked","true")}updateWrapperAttributes(t,e){this.isMulti?this.setCheckboxAttributes(e,t):t.classList.toggle("selected",e),t.setAttribute("selected",e.toString()),t.setAttribute("aria-selected",e.toString()),t.setAttribute("tabindex",e?"0":"-1")}updateSelectedState(){var e;Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]).forEach(e=>{var i,s;const o=this.selectedItemsIds.some(i=>e.id===`${t.prefixId}${i}`);this.updateWrapperAttributes(e,o),this.groupOnMultiSelect&&this.value.length>0&&this.items.length!==this.value.length&&e.id===`${t.prefixId}${this.lastSelectedIdByOrder}`?e.classList.add("selected-border-bottom"):e.classList.remove("selected-border-bottom"),e.id===`${t.prefixId}${this.activeId}`?(e.setAttribute("tabindex","0"),e.focus()):e.setAttribute("tabindex","-1"),""==this.activeId&&e.id===`${t.prefixId}${this.value[0]}`&&e.setAttribute("tabindex","0"),(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))||"true"===(null===(s=e.firstElementChild)||void 0===s?void 0:s.getAttribute("aria-disabled"))?(e.setAttribute("disabled",""),e.setAttribute("aria-disabled","true")):(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled"))})}findClickedItem(t){var e;const i=Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]),s=t.composedPath(),o=i.find(t=>s.includes(t));if(o)return(null==o?void 0:o.hasAttribute("disabled"))||"true"===(null==o?void 0:o.getAttribute("aria-disabled"))?0:o}isNextElemenentStatusIndicator(t){return(this.isLoading||this.isError)&&t===this.items.length-2}updateItemForMultiSelect(t){const e=this.selectedItemsIds.indexOf(t);-1===e?(this.selectedItemsIds.push(this.activeId),this.selectedItemsIds.length===this.items.length-this.disabledItems.length&&(this.selectAllItems=!0)):(this.selectedItemsIds.splice(e,1),this.selectAllItems=!1)}updateItemSelection(t){t&&(this.activeId=t.id.substring(t.id.indexOf("-")+1),this.isMulti?this.updateItemForMultiSelect(this.activeId):this.selectedItemsIds=[this.activeId],this.updateSelectedState(),this.notifySelectedChange())}handleClick(t){t.preventDefault(),this.isUserNavigated=!1;const e=this.findClickedItem(t);e&&(this.scrollIndex=parseInt(e.getAttribute("index")||"0"),this.updateItemSelection(e))}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selectedItemsIds},bubbles:!0,composed:!0}))}getActiveDescendant(){return this.activeId?`${t.prefixId}${this.activeId}`:this.value?`${t.prefixId}${this.value[0]}`:""}render(){return l.html`
999
1002
  ${this.getStyles()}
1000
1003
  <div
1001
1004
  class="md-advance-list-wrapper virtual-scroll"
@@ -1006,38 +1009,41 @@
1006
1009
  role=${this.ariaRoleList}
1007
1010
  @rangechange=${this.handleRangeChange}
1008
1011
  >
1009
- ${(0,d.scroll)({items:this.items,renderItem:(t,e)=>this.renderItem(t,e||0),useShadowDOM:!0,scrollToIndex:this.isUserNavigated?{index:this.scrollIndex,position:0===this.scrollIndex?"start":"center"}:void 0})}
1012
+ <lit-virtualizer
1013
+ .items=${this.items}
1014
+ .renderItem=${(t,e)=>this.renderItem(t,e)}
1015
+ ></lit-virtualizer>
1010
1016
  </div>
1011
- `}};c([(0,l.property)({type:Array})],e.prototype,"items",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"isLoading",void 0),c([(0,l.property)({type:Boolean,attribute:"is-multi"})],e.prototype,"isMulti",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"groupOnMultiSelect",void 0),c([(0,l.property)({type:Array})],e.prototype,"value",void 0),c([(0,l.property)({type:String})],e.prototype,"ariaRoleList",void 0),c([(0,l.property)({type:String})],e.prototype,"ariaRoleListItem",void 0),c([(0,l.property)({type:String})],e.prototype,"ariaLabelList",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"isError",void 0),c([(0,l.property)({type:String})],e.prototype,"containerHeight",void 0),c([(0,l.property)({type:String})],e.prototype,"lastSelectedIdByOrder",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"selectAllItems",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"focusReset",void 0),c([(0,l.property)({type:Array})],e.prototype,"disabledItems",void 0),c([(0,l.property)({type:Number})],e.prototype,"totalRecords",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"isNonSelectable",void 0),c([(0,l.queryAll)("div.default-wrapper")],e.prototype,"lists",void 0),c([(0,l.query)(".virtual-scroll")],e.prototype,"listContainer",void 0),c([(0,l.internalProperty)()],e.prototype,"scrollIndex",void 0),c([(0,l.internalProperty)()],e.prototype,"activeId",void 0),c([(0,l.internalProperty)()],e.prototype,"selectedItemsIds",void 0),c([(0,l.internalProperty)()],e.prototype,"isUserNavigated",void 0),e=c([(0,r.w)("md-advance-list")],e),t.ELEMENT=e}(o||(o={}))},29895:(t,e,i)=>{i.d(e,{CoachmarkPopover:()=>o}),i(96798),i(61200),i(71128);var o,s=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(40587),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.placement="bottom",this.triggerID="",this.headerIconName=void 0,this.header=void 0,this.message=void 0,this.show=!1,this.hideCloseButton=!1,this.href="",this.slotContent=null}static get styles(){return[r.A,l.A]}connectedCallback(){super.connectedCallback()}notifyCustomEvent(t){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:{placement:this.placement,triggerComponent:this.triggerComponent,popper:this.popper}}))}notifyCoachCreate(){this.notifyCustomEvent("coach-create")}notifyPrimaryButtonAction(){this.notifyCustomEvent("primary-button-action")}notifySecondaryButtonAction(){this.notifyCustomEvent("secondary-button-action")}notifyLinkAction(){this.notifyCustomEvent("link-action")}notifyCoachClose(){this.notifyCustomEvent("coachmark-close")}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}updated(t){super.updated(t),t.has("show")&&(this.show?this.notifyCoachCreate():this.notifyCoachClose())}coachmarkContentTemplate(){return n.html`
1017
+ `}};c([(0,d.property)({type:Array})],e.prototype,"items",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"isLoading",void 0),c([(0,d.property)({type:Boolean,attribute:"is-multi"})],e.prototype,"isMulti",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"groupOnMultiSelect",void 0),c([(0,d.property)({type:Array})],e.prototype,"value",void 0),c([(0,d.property)({type:String})],e.prototype,"ariaRoleList",void 0),c([(0,d.property)({type:String})],e.prototype,"ariaRoleListItem",void 0),c([(0,d.property)({type:String})],e.prototype,"ariaLabelList",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"isError",void 0),c([(0,d.property)({type:String})],e.prototype,"containerHeight",void 0),c([(0,d.property)({type:String})],e.prototype,"lastSelectedIdByOrder",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"selectAllItems",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"focusReset",void 0),c([(0,d.property)({type:Array})],e.prototype,"disabledItems",void 0),c([(0,d.property)({type:Number})],e.prototype,"totalRecords",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"isNonSelectable",void 0),c([(0,d.queryAll)("div.default-wrapper")],e.prototype,"lists",void 0),c([(0,d.query)(".virtual-scroll")],e.prototype,"listContainer",void 0),c([(0,d.state)()],e.prototype,"scrollIndex",void 0),c([(0,d.state)()],e.prototype,"activeId",void 0),c([(0,d.state)()],e.prototype,"selectedItemsIds",void 0),c([(0,d.state)()],e.prototype,"isUserNavigated",void 0),e=c([(0,r.w)("md-advance-list")],e),t.ELEMENT=e}(s||(s={}))},29895:(t,e,i)=>{i.d(e,{CoachmarkPopover:()=>s}),i(96798),i(61200),i(71128);var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(32924),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.placement="bottom",this.triggerID="",this.headerIconName=void 0,this.header=void 0,this.message=void 0,this.show=!1,this.hideCloseButton=!1,this.href="",this.slotContent=null}static get styles(){return[r.A,d.A]}connectedCallback(){super.connectedCallback()}notifyCustomEvent(t){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:{placement:this.placement,triggerComponent:this.triggerComponent,popper:this.popper}}))}notifyCoachCreate(){this.notifyCustomEvent("coach-create")}notifyPrimaryButtonAction(){this.notifyCustomEvent("primary-button-action")}notifySecondaryButtonAction(){this.notifyCustomEvent("secondary-button-action")}notifyLinkAction(){this.notifyCustomEvent("link-action")}notifyCoachClose(){this.notifyCustomEvent("coachmark-close")}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}updated(t){super.updated(t),t.has("show")&&(this.show?this.notifyCoachCreate():this.notifyCoachClose())}coachmarkContentTemplate(){return a.html`
1012
1018
  <div class="md-coachmark__content">
1013
- ${this.message?this.message:n.html` <slot name="coachmark-content" @slotchange=${this.handleSlotChange}></slot> `}
1019
+ ${this.message?this.message:a.html` <slot name="coachmark-content" @slotchange=${this.handleSlotChange}></slot> `}
1014
1020
  </div>
1015
- `}renderHeader(){return n.html`
1016
- <div class="header-container ${(0,a.classMap)({"hide-close":this.hideCloseButton})}">
1017
- ${this.headerIconName?n.html`<md-icon name=${this.headerIconName} size="16" iconSet="momentumDesign"></md-icon>`:""}
1018
- ${this.header?n.html`<span class="header-title">${this.header}</span>`:""}
1021
+ `}renderHeader(){return a.html`
1022
+ <div class="header-container ${(0,l.classMap)({"hide-close":this.hideCloseButton})}">
1023
+ ${this.headerIconName?a.html`<md-icon name=${this.headerIconName} size="16" iconSet="momentumDesign"></md-icon>`:""}
1024
+ ${this.header?a.html`<span class="header-title">${this.header}</span>`:""}
1019
1025
  </div>
1020
- `}renderBody(){return n.html` <div class="body-container">${this.coachmarkContentTemplate()}</div> `}renderFooter(){return n.html`
1026
+ `}renderBody(){return a.html` <div class="body-container">${this.coachmarkContentTemplate()}</div> `}renderFooter(){return a.html`
1021
1027
  <div class="footer-container">
1022
- ${this.primaryButton?n.html`<md-button
1028
+ ${this.primaryButton?a.html`<md-button
1023
1029
  variant="inverted-primary"
1024
1030
  size="28"
1025
1031
  @button-click=${()=>this.notifyPrimaryButtonAction()}
1026
1032
  >
1027
1033
  ${this.primaryButton}</md-button
1028
1034
  >`:""}
1029
- ${this.secondaryButton?n.html`<md-button
1035
+ ${this.secondaryButton?a.html`<md-button
1030
1036
  variant="inverted-secondary"
1031
1037
  size="28"
1032
1038
  @button-click=${()=>this.notifySecondaryButtonAction()}
1033
1039
  >
1034
1040
  ${this.secondaryButton}</md-button
1035
1041
  >`:""}
1036
- ${this.linkText?n.html`<a href=${this.href} @click=${()=>this.notifyLinkAction()} target="_blank" rel="noreferrer">
1042
+ ${this.linkText?a.html`<a href=${this.href} @click=${()=>this.notifyLinkAction()} target="_blank" rel="noreferrer">
1037
1043
  ${this.linkText}</a
1038
1044
  >`:""}
1039
1045
  </div>
1040
- `}render(){return n.html`
1046
+ `}render(){return a.html`
1041
1047
  <slot name="trigger"></slot>
1042
1048
  <md-popover
1043
1049
  class="md-coachmark"
@@ -1060,11 +1066,11 @@
1060
1066
  ${this.renderHeader()} ${this.renderBody()} ${this.renderFooter()}
1061
1067
  </div>
1062
1068
  </md-popover>
1063
- `}};d([(0,n.property)({type:String})],e.prototype,"placement",void 0),d([(0,n.property)({type:String,reflect:!0})],e.prototype,"triggerID",void 0),d([(0,n.property)({type:String})],e.prototype,"headerIconName",void 0),d([(0,n.property)({type:String})],e.prototype,"header",void 0),d([(0,n.property)({type:String})],e.prototype,"message",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"show",void 0),d([(0,n.property)({type:Boolean,reflect:!0,attribute:"hide-close-button"})],e.prototype,"hideCloseButton",void 0),d([(0,n.property)({type:String})],e.prototype,"primaryButton",void 0),d([(0,n.property)({type:String})],e.prototype,"secondaryButton",void 0),d([(0,n.property)({type:String})],e.prototype,"linkText",void 0),d([(0,n.property)({type:String})],e.prototype,"href",void 0),d([(0,n.query)(".md-coachmark__trigger-component")],e.prototype,"triggerComponent",void 0),d([(0,n.query)(".md-coachmark__popper")],e.prototype,"popper",void 0),e=d([(0,s.w)("md-coachmark-popover")],e),t.ELEMENT=e}(o||(o={}))},31347:t=>{t.exports=$},32022:t=>{t.exports=r},32217:(t,e,i)=>{i.d(e,{RadioGroup:()=>o});var o,s=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(76067),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.label="group",this.checked=-1,this.alignment="vertical",this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.requestUpdate("disabled",e)}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.label)}updated(t){super.updated(t),(t.has("slotted")||t.has("checked"))&&this.setFirstChecked()}get selectedRadioValue(){return this.slotted[this.selected].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("radio-change",{detail:{selected:this.selectedRadioValue},bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}setFirstChecked(){-1!==this.checked&&(this.selected=this.checked,this.setChecked(this.checked))}findRadioIndex(t){const e=t.composedPath();return this.slotted.findIndex(t=>e.includes(t))}findCheckedRadioIndex(){return this.slotted.findIndex(t=>t.checked)}setChecked(t){const e=this.findCheckedRadioIndex();-1!==e&&e!==t&&this.slotted[e]&&(this.slotted[e].checked=!1),this.slotted[t]&&(this.slotted[t].checked=!0)}switchRadioOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i,this.setChecked(i),this.notifySelectedChange())}isRadioDisabled(t){return this.slotted[t].disabled}handleClick(t){if(this.disabled)return!1;const e=this.findRadioIndex(t);-1!==e&&(this.isRadioDisabled(e)||(this.selected=e,this.setChecked(e),this.notifySelectedChange()))}handleKeyDown(t){if(this.disabled)return!1;const{code:e}=t;switch(e){case s.Uz.Enter:case s.Uz.Space:this.isRadioDisabled(this.selected)||(this.setChecked(this.selected),this.notifySelectedChange(),t.stopPropagation(),t.preventDefault());break;case s.Uz.ArrowUp:case s.Uz.ArrowLeft:0===this.selected?this.switchRadioOnArrowPress(this.slotted.length-1,-1):this.switchRadioOnArrowPress(this.selected-1,-1),t.stopPropagation(),t.preventDefault();break;case s.Uz.ArrowDown:case s.Uz.ArrowRight:this.selected===this.slotted.length-1?this.switchRadioOnArrowPress(0):this.switchRadioOnArrowPress(this.selected+1),t.stopPropagation(),t.preventDefault()}}get slotElement(){return this.radioSlot}static get styles(){return[a.A,d.A]}clearSelection(){const t=this.findCheckedRadioIndex();-1!=t&&(this.checked=-1,this.slotted[t].checked=!1)}render(){return l.html`
1069
+ `}};h([(0,n.property)({type:String})],e.prototype,"placement",void 0),h([(0,n.property)({type:String,reflect:!0})],e.prototype,"triggerID",void 0),h([(0,n.property)({type:String})],e.prototype,"headerIconName",void 0),h([(0,n.property)({type:String})],e.prototype,"header",void 0),h([(0,n.property)({type:String})],e.prototype,"message",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"show",void 0),h([(0,n.property)({type:Boolean,reflect:!0,attribute:"hide-close-button"})],e.prototype,"hideCloseButton",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryButton",void 0),h([(0,n.property)({type:String})],e.prototype,"secondaryButton",void 0),h([(0,n.property)({type:String})],e.prototype,"linkText",void 0),h([(0,n.property)({type:String})],e.prototype,"href",void 0),h([(0,n.query)(".md-coachmark__trigger-component")],e.prototype,"triggerComponent",void 0),h([(0,n.query)(".md-coachmark__popper")],e.prototype,"popper",void 0),e=h([(0,o.w)("md-coachmark-popover")],e),t.ELEMENT=e}(s||(s={}))},31347:t=>{t.exports=x},32022:t=>{t.exports=r},32217:(t,e,i)=>{i.d(e,{RadioGroup:()=>s});var s,o=i(90195),r=i(3001),a=i(31890),n=i(4313),l=i(87161),d=i(70429),h=i(60836),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.label="group",this.checked=-1,this.alignment="vertical",this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.requestUpdate("disabled",e)}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.label)}updated(t){super.updated(t),(t.has("slotted")||t.has("checked"))&&this.setFirstChecked()}get selectedRadioValue(){return this.slotted[this.selected].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("radio-change",{detail:{selected:this.selectedRadioValue},bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}setFirstChecked(){-1!==this.checked&&(this.selected=this.checked,this.setChecked(this.checked))}findRadioIndex(t){const e=t.composedPath();return this.slotted.findIndex(t=>e.includes(t))}findCheckedRadioIndex(){return this.slotted.findIndex(t=>t.checked)}setChecked(t){const e=this.findCheckedRadioIndex();-1!==e&&e!==t&&this.slotted[e]&&(this.slotted[e].checked=!1),this.slotted[t]&&(this.slotted[t].checked=!0)}switchRadioOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i,this.setChecked(i),this.notifySelectedChange())}isRadioDisabled(t){return this.slotted[t].disabled}handleClick(t){if(this.disabled)return!1;const e=this.findRadioIndex(t);-1!==e&&(this.isRadioDisabled(e)||(this.selected=e,this.setChecked(e),this.notifySelectedChange()))}handleKeyDown(t){if(this.disabled)return!1;const{code:e}=t;switch(e){case o.Uz.Enter:case o.Uz.Space:this.isRadioDisabled(this.selected)||(this.setChecked(this.selected),this.notifySelectedChange(),t.stopPropagation(),t.preventDefault());break;case o.Uz.ArrowUp:case o.Uz.ArrowLeft:0===this.selected?this.switchRadioOnArrowPress(this.slotted.length-1,-1):this.switchRadioOnArrowPress(this.selected-1,-1),t.stopPropagation(),t.preventDefault();break;case o.Uz.ArrowDown:case o.Uz.ArrowRight:this.selected===this.slotted.length-1?this.switchRadioOnArrowPress(0):this.switchRadioOnArrowPress(this.selected+1),t.stopPropagation(),t.preventDefault()}}get slotElement(){return this.radioSlot}static get styles(){return[n.A,h.A]}clearSelection(){const t=this.findCheckedRadioIndex();-1!=t&&(this.checked=-1,this.slotted[t].checked=!1)}render(){return l.html`
1064
1070
  <div class="radio-group-container" part="radio-group-container">
1065
1071
  <slot name="radio"></slot>
1066
1072
  </div>
1067
- `}};h([(0,l.property)({type:String,attribute:"group-label"})],e.prototype,"label",void 0),h([(0,l.property)({type:Number,reflect:!0})],e.prototype,"checked",void 0),h([(0,l.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),h([(0,l.query)("slot[name='radio']")],e.prototype,"radioSlot",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=h([(0,n.w)("md-radiogroup")],e),t.ELEMENT=e}(o||(o={}))},32252:(t,e,i)=>{i.d(e,{Modal:()=>o}),i(96798),i(61200);var o,s=i(90195),r=i(37719),n=i(3001),a=i(31890),l=i(26272),d=i(41488),h=i(40333),c=i(23968),p=i(97822),u=i(48521),m=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,n.dY)(d.LitElement)){constructor(){super(...arguments),this.show=!1,this.headerLabel="",this.headerMessage="",this.htmlId="",this.ariaLabel="modal",this.ariaLabelClose="Close Modal",this.ariaLabelCancel="Cancel Modal",this.ariaLabelSubmit="Submit Modal",this.ariaDescription="",this.showCloseButton=!1,this.backdropClickExit=!1,this.noExitOnEsc=!1,this.size="default",this.closeBtnName="",this.hideFooter=!1,this.hideHeader=!1,this.disableInitialFocus=!1,this.alignment=void 0,this.animating=!1,this.handleCloseOutside=t=>{t.code===s.Uz.Escape&&(t.preventDefault(),this.show&&!this.noExitOnEsc&&(this.show=!1))}}static get styles(){return[l.A,u.A]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleCloseOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleCloseOutside)}update(t){super.update(t),t.has("show")&&(this.show?this.modalFadeIn():!0===t.get("show")&&this.modalFadeOut())}get computedAlignment(){return void 0===this.alignment?r.themeManager.isMomentumV2Enabled?"leading":"center":this.alignment}notifyModalClose(){this.dispatchEvent(new CustomEvent("close-modal",{composed:!0,bubbles:!0}))}focusInsideModal(){var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.setInitialFocus()}handleKeyDown(t){t.code!==s.Uz.Enter&&t.code!==s.Uz.Space||this.show&&(this.show=!0)}transitionPromise(t){return new Promise(e=>{const i=()=>{t.removeEventListener("transitionend",i),this.activateFocusTrap(),this.setFocusableElements(),requestAnimationFrame(()=>{e()})},o=()=>{t.removeEventListener("transitioncancel",o),this.deactivateFocusTrap(),this.modalFadeOut(),e()};t.addEventListener("transitionend",i),t.addEventListener("transitioncancel",o),setTimeout(()=>{this.animating=!0},13)})}modalFadeIn(){return t=this,e=void 0,o=function*(){this.backDrop&&(yield this.transitionPromise(this.backDrop),this.disableInitialFocus||this.focusInsideModal())},new((i=void 0)||(i=Promise))(function(s,r){function n(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(n,a)}l((o=o.apply(t,e||[])).next())});var t,e,i,o}modalFadeOut(){this.animating=!1,this.deactivateFocusTrap(),this.notifyModalClose()}handleCloseBackdrop(){this.backdropClickExit&&(this.show=!1)}hideModal(){this.animating=!1,this.show=!1}topCloseBtnTemplate(){return d.html`
1073
+ `}};c([(0,d.property)({type:String,attribute:"group-label"})],e.prototype,"label",void 0),c([(0,d.property)({type:Number,reflect:!0})],e.prototype,"checked",void 0),c([(0,d.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),c([(0,d.query)("slot[name='radio']")],e.prototype,"radioSlot",void 0),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=c([(0,a.w)("md-radiogroup")],e),t.ELEMENT=e}(s||(s={}))},32252:(t,e,i)=>{i.d(e,{Modal:()=>s}),i(96798),i(61200);var s,o=i(90195),r=i(37719),a=i(3001),n=i(31890),l=i(4313),d=i(87161),h=i(70429),c=i(85125),p=i(20291),u=i(30414),m=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,a.dY)(d.LitElement)){constructor(){super(...arguments),this.show=!1,this.headerLabel="",this.headerMessage="",this.htmlId="",this.ariaLabel="modal",this.ariaLabelClose="Close Modal",this.ariaLabelCancel="Cancel Modal",this.ariaLabelSubmit="Submit Modal",this.ariaDescription="",this.showCloseButton=!1,this.backdropClickExit=!1,this.noExitOnEsc=!1,this.size="default",this.closeBtnName="",this.hideFooter=!1,this.hideHeader=!1,this.disableInitialFocus=!1,this.alignment=void 0,this.animating=!1,this.handleCloseOutside=t=>{t.code===o.Uz.Escape&&(t.preventDefault(),this.show&&!this.noExitOnEsc&&(this.show=!1))}}static get styles(){return[l.A,u.A]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleCloseOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleCloseOutside)}update(t){super.update(t),t.has("show")&&(this.show?this.modalFadeIn():!0===t.get("show")&&this.modalFadeOut())}get computedAlignment(){return void 0===this.alignment?r.themeManager.isMomentumV2Enabled?"leading":"center":this.alignment}notifyModalClose(){this.dispatchEvent(new CustomEvent("close-modal",{composed:!0,bubbles:!0}))}focusInsideModal(){var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.setInitialFocus()}handleKeyDown(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||this.show&&(this.show=!0)}transitionPromise(t){return new Promise(e=>{const i=()=>{t.removeEventListener("transitionend",i),this.activateFocusTrap(),this.setFocusableElements(),requestAnimationFrame(()=>{e()})},s=()=>{t.removeEventListener("transitioncancel",s),this.deactivateFocusTrap(),this.modalFadeOut(),e()};t.addEventListener("transitionend",i),t.addEventListener("transitioncancel",s),setTimeout(()=>{this.animating=!0},13)})}modalFadeIn(){return t=this,e=void 0,s=function*(){this.backDrop&&(yield this.transitionPromise(this.backDrop),this.disableInitialFocus||this.focusInsideModal())},new((i=void 0)||(i=Promise))(function(o,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((s=s.apply(t,e||[])).next())});var t,e,i,s}modalFadeOut(){this.animating=!1,this.deactivateFocusTrap(),this.notifyModalClose()}handleCloseBackdrop(){this.backdropClickExit&&(this.show=!1)}hideModal(){this.animating=!1,this.show=!1}topCloseBtnTemplate(){return d.html`
1068
1074
  ${this.showCloseButton?d.html`
1069
1075
  <md-button
1070
1076
  variant="ghost"
@@ -1077,7 +1083,7 @@
1077
1083
  >
1078
1084
  <md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
1079
1085
  </md-button>
1080
- `:h.nothing}
1086
+ `:d.nothing}
1081
1087
  `}handleFooterClick(){this.show=!1}headerTemplate(){return this.hideHeader?d.html`
1082
1088
  <div id="modal_header" part="modal-header" class="md-modal__header">
1083
1089
  <slot name="header"></slot>
@@ -1085,7 +1091,7 @@
1085
1091
  `:d.html`
1086
1092
  <div id="modal_header" part="modal-header" class="md-modal__header">
1087
1093
  <h2 class="md-modal__title">${this.headerLabel}</h2>
1088
- ${this.headerMessage?d.html` <span class="md-modal__message">${this.headerMessage}</span> `:h.nothing}
1094
+ ${this.headerMessage?d.html` <span class="md-modal__message">${this.headerMessage}</span> `:d.nothing}
1089
1095
  </div>
1090
1096
  `}footerTemplate(){return this.hideFooter?d.html`
1091
1097
  <div part="modal-footer" class="md-modal__footer">
@@ -1114,7 +1120,7 @@
1114
1120
  `}get modalBackDropClassMap(){return{in:this.show&&this.animating}}get modalContainerClassMap(){return{in:this.show,[`md-modal--${this.size}`]:!!this.size,[`md-modal--${this.computedAlignment}`]:!!this.computedAlignment}}render(){return d.html`
1115
1121
  ${this.show?d.html`
1116
1122
  <div part="modal-backdrop" class="md-modal__backdrop fade ${(0,c.classMap)(this.modalBackDropClassMap)}">
1117
- ${this.backdropClickExit?d.html` <div class="md-modal_overlay" @click="${this.handleCloseBackdrop}"></div> `:h.nothing}
1123
+ ${this.backdropClickExit?d.html` <div class="md-modal_overlay" @click="${this.handleCloseBackdrop}"></div> `:d.nothing}
1118
1124
 
1119
1125
  <div
1120
1126
  part="modal-container"
@@ -1135,18 +1141,96 @@
1135
1141
  </div>
1136
1142
  </div>
1137
1143
  </div>
1138
- `:h.nothing}
1139
- `}};m([(0,d.property)({type:Boolean})],e.prototype,"show",void 0),m([(0,d.property)({type:String})],e.prototype,"headerLabel",void 0),m([(0,d.property)({type:String})],e.prototype,"headerMessage",void 0),m([(0,d.property)({type:String})],e.prototype,"htmlId",void 0),m([(0,d.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),m([(0,d.property)({type:String})],e.prototype,"ariaLabelClose",void 0),m([(0,d.property)({type:String})],e.prototype,"ariaLabelCancel",void 0),m([(0,d.property)({type:String})],e.prototype,"ariaLabelSubmit",void 0),m([(0,d.property)({type:String})],e.prototype,"ariaDescription",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"showCloseButton",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"backdropClickExit",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"noExitOnEsc",void 0),m([(0,d.property)({type:String})],e.prototype,"size",void 0),m([(0,d.property)({type:String})],e.prototype,"closeBtnName",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"hideFooter",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"hideHeader",void 0),m([(0,d.property)({type:Boolean})],e.prototype,"disableInitialFocus",void 0),m([(0,d.property)({type:String})],e.prototype,"alignment",void 0),m([(0,d.internalProperty)()],e.prototype,"animating",void 0),m([(0,d.query)(".md-modal__backdrop")],e.prototype,"backDrop",void 0),e=m([(0,a.w)("md-modal")],e),t.ELEMENT=e}(o||(o={}))},33328:(t,e,i)=>{i.d(e,{Accordion:()=>o});var o,s=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(33866),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.TS)(l.LitElement)){constructor(){super(...arguments),this.multiple=!1,this.suppressContainerFocus=!1,this.handleAccordionItemFocus=()=>{this.toggleAttribute("focusable",!0)},this.handleAccordionItemBlur=()=>{this.toggleAttribute("focusable",!1)}}get slotItem(){return this.accordionItemSlotElement}filterSlotted(){return this.accordionItemSlotElement.assignedElements()}switchFocusedAccordionItem(t){const e=this.slotted.findIndex(t=>t.hasAttribute("focus-visible")),i=this.slotted.length;let o=e;for(o=(i+o+t)%i;this.slotted[o].disabled;)o=(i+o+t)%i;this.focusAccordionItem(this.slotted[o])}focusAccordionItem(t){t.hasAttribute("focus-visible")||requestAnimationFrame(()=>t.header.focus())}setActiveAccordionItem(t){this.multiple?t.expanded=!t.expanded:(this.slotted.forEach(e=>{const i=e;i.expanded&&!e.isEqualNode(t)&&(i.expanded=!1)}),t.expanded=!0)}setupExpandedAccordionItems(){this.multiple||this.slotted.filter(t=>t.expanded).forEach((t,e)=>{const i=t;i.expanded&&e>0&&(i.expanded=!1)})}setupFocusAccordionItems(){this.slotted.forEach(t=>{this.suppressContainerFocus||(t.addEventListener("focus",this.handleAccordionItemFocus),t.addEventListener("blur",this.handleAccordionItemBlur))})}removeFocusAccordionItems(){this.slotted.forEach(t=>{this.suppressContainerFocus||(t.removeEventListener("focus",this.handleAccordionItemFocus),t.removeEventListener("blur",this.handleAccordionItemBlur))})}handleKeyDown(t){const{srcEvent:e}=t.detail,{code:i}=e;switch(i){case s.Uz.Space:case s.Uz.Enter:{const{target:e}=t;e&&this.setActiveAccordionItem(e);break}case s.Uz.ArrowDown:this.switchFocusedAccordionItem(1);break;case s.Uz.ArrowUp:this.switchFocusedAccordionItem(-1);break;case s.Uz.Home:{const t=this.slotted[0];this.focusAccordionItem(t);break}case s.Uz.End:{const t=this.slotted[this.slotted.length-1];this.focusAccordionItem(t);break}}}handleClick(t){const{target:e}=t,i=this.slotted.find(t=>t.isSameNode(e));i&&this.setActiveAccordionItem(i)}updated(t){super.updated(t),t.has("slotted")&&(this.setupExpandedAccordionItems(),this.setupFocusAccordionItems())}connectedCallback(){super.connectedCallback(),this.addEventListener("accordion-item-keydown",this.handleKeyDown),this.addEventListener("accordion-item-click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("accordion-item-keydown",this.handleKeyDown),this.removeEventListener("accordion-item-click",this.handleClick),this.removeFocusAccordionItems()}static get styles(){return[a.A,d.A]}render(){return l.html`
1144
+ `:d.nothing}
1145
+ `}};m([(0,h.property)({type:Boolean})],e.prototype,"show",void 0),m([(0,h.property)({type:String})],e.prototype,"headerLabel",void 0),m([(0,h.property)({type:String})],e.prototype,"headerMessage",void 0),m([(0,h.property)({type:String})],e.prototype,"htmlId",void 0),m([(0,h.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),m([(0,h.property)({type:String})],e.prototype,"ariaLabelClose",void 0),m([(0,h.property)({type:String})],e.prototype,"ariaLabelCancel",void 0),m([(0,h.property)({type:String})],e.prototype,"ariaLabelSubmit",void 0),m([(0,h.property)({type:String})],e.prototype,"ariaDescription",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"showCloseButton",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"backdropClickExit",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"noExitOnEsc",void 0),m([(0,h.property)({type:String})],e.prototype,"size",void 0),m([(0,h.property)({type:String})],e.prototype,"closeBtnName",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"hideFooter",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"hideHeader",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"disableInitialFocus",void 0),m([(0,h.property)({type:String})],e.prototype,"alignment",void 0),m([(0,h.state)()],e.prototype,"animating",void 0),m([(0,h.query)(".md-modal__backdrop")],e.prototype,"backDrop",void 0),e=m([(0,n.w)("md-modal")],e),t.ELEMENT=e}(s||(s={}))},33328:(t,e,i)=>{i.d(e,{Accordion:()=>s});var s,o=i(90195),r=i(3001),a=i(31890),n=i(4313),l=i(87161),d=i(70429),h=i(9409),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.TS)(l.LitElement)){constructor(){super(...arguments),this.multiple=!1,this.suppressContainerFocus=!1,this.handleAccordionItemFocus=()=>{this.toggleAttribute("focusable",!0)},this.handleAccordionItemBlur=()=>{this.toggleAttribute("focusable",!1)}}get slotItem(){return this.accordionItemSlotElement}filterSlotted(){return this.accordionItemSlotElement.assignedElements()}switchFocusedAccordionItem(t){const e=this.slotted.findIndex(t=>t.hasAttribute("focus-visible")),i=this.slotted.length;let s=e;for(s=(i+s+t)%i;this.slotted[s].disabled;)s=(i+s+t)%i;this.focusAccordionItem(this.slotted[s])}focusAccordionItem(t){t.hasAttribute("focus-visible")||requestAnimationFrame(()=>t.header.focus())}setActiveAccordionItem(t){this.multiple?t.expanded=!t.expanded:(this.slotted.forEach(e=>{const i=e;i.expanded&&!e.isEqualNode(t)&&(i.expanded=!1)}),t.expanded=!0)}setupExpandedAccordionItems(){this.multiple||this.slotted.filter(t=>t.expanded).forEach((t,e)=>{const i=t;i.expanded&&e>0&&(i.expanded=!1)})}setupFocusAccordionItems(){this.slotted.forEach(t=>{this.suppressContainerFocus||(t.addEventListener("focus",this.handleAccordionItemFocus),t.addEventListener("blur",this.handleAccordionItemBlur))})}removeFocusAccordionItems(){this.slotted.forEach(t=>{this.suppressContainerFocus||(t.removeEventListener("focus",this.handleAccordionItemFocus),t.removeEventListener("blur",this.handleAccordionItemBlur))})}handleKeyDown(t){const{srcEvent:e}=t.detail,{code:i}=e;switch(i){case o.Uz.Space:case o.Uz.Enter:{const{target:e}=t;e&&this.setActiveAccordionItem(e);break}case o.Uz.ArrowDown:this.switchFocusedAccordionItem(1);break;case o.Uz.ArrowUp:this.switchFocusedAccordionItem(-1);break;case o.Uz.Home:{const t=this.slotted[0];this.focusAccordionItem(t);break}case o.Uz.End:{const t=this.slotted[this.slotted.length-1];this.focusAccordionItem(t);break}}}handleClick(t){const{target:e}=t,i=this.slotted.find(t=>t.isSameNode(e));i&&this.setActiveAccordionItem(i)}updated(t){super.updated(t),t.has("slotted")&&(this.setupExpandedAccordionItems(),this.setupFocusAccordionItems())}connectedCallback(){super.connectedCallback(),this.addEventListener("accordion-item-keydown",this.handleKeyDown),this.addEventListener("accordion-item-click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("accordion-item-keydown",this.handleKeyDown),this.removeEventListener("accordion-item-click",this.handleClick),this.removeFocusAccordionItems()}static get styles(){return[n.A,h.A]}render(){return l.html`
1140
1146
  <div class="md-accordion" part="accordion">
1141
1147
  <slot name="accordion-item"></slot>
1142
1148
  </div>
1143
- `}};h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"multiple",void 0),h([(0,l.property)({type:Boolean,attribute:"suppress-container-focus"})],e.prototype,"suppressContainerFocus",void 0),h([(0,l.query)('slot[name="accordion-item"]')],e.prototype,"accordionItemSlotElement",void 0),e=h([(0,n.w)("md-accordion")],e),t.ELEMENT=e}(o||(o={}))},37719:(t,e,i)=>{i.d(e,{ThemeManager:()=>s,registerThemeManagerGlobally:()=>n,themeManager:()=>r});var o=i(85314);class s{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(t){this.isDarkMode=!1,this.themeName="lumos",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,o.makeObservable)(this,{isDarkMode:o.observable,themeName:o.observable,isVisualRebrandEnabled:o.observable,isMomentumAvatarEnabled:o.observable,isMomentumV2Enabled:o.computed,setDarkMode:o.action,setThemeName:o.action,setVisualRebrandEnabled:o.action,setMomentumAvatar:o.action,update:o.action}),t&&this.update(t)}update(t){void 0!==t.isDarkMode&&(this.isDarkMode=t.isDarkMode),void 0!==t.themeName&&(this.themeName=t.themeName),void 0!==t.isVisualRebrandEnabled&&(this.isVisualRebrandEnabled=t.isVisualRebrandEnabled),void 0!==t.isMomentumAvatarEnabled&&(this.isMomentumAvatarEnabled=t.isMomentumAvatarEnabled)}setDarkMode(t){this.isDarkMode=t}setThemeName(t){this.themeName=t}setVisualRebrandEnabled(t){this.isVisualRebrandEnabled=t}setMomentumAvatar(t){this.isMomentumAvatarEnabled=t}}const r=new s;function n(t="MomentumUIThemeManager",e=r){"undefined"!=typeof globalThis&&(globalThis[t]=e),"undefined"!=typeof window&&(window[t]=e),void 0!==i.g&&(i.g[t]=e)}},37782:t=>{t.exports=h},38028:(t,e,i)=>{i.d(e,{Avatar:()=>o}),i(61200),i(69788),i(15300);var o,s=i(31890),r=i(26283),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(97822),c=i(8229),p=i(37782),u=i(38923),m=i(3553),y=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this._tabIndex=0,this.alt="",this.src="",this.label="",this.title="",this.color="",this.decrypting=!1,this.role="img",this.iconName="",this.failurePresence=!1,this.type="",this.newMomentum=!1,this.typing=!1,this.size=40,this.hasNotification=!1,this.clickable=!1,this.avatarStyle="default",this.state="rest",this.imageLoaded=!1,this.imageErrored=!1,this.presenceColor="",this.presenceIcon="",this.iconNameMap={"channel-chat":"chat-filled","channel-chat-outbound":"chat-outbound-filled","channel-social":"sms-message-filled","channel-sms-inbound":"sms-filled","channel-sms-outbound":"sms-outgoing-filled","channel-email-inbound":"email-filled","channel-email-outbound":"email-outgoing-filled","channel-call":"handset-filled","channel-call-inbound":"incoming-call-legacy-filled","channel-callback":"outgoing-call-legacy-filled","channel-headset":"headset-filled","channel-campaign":"campaign-management-bold","channel-emoji":"emoji-happy-filled","channel-webex":"webex-app-icon-color-container","channel-fb-messenger":"social-fbmessenger-color","channel-facebook":"social-facebook-color","channel-apple-chat":"apple-business-chat-color","channel-line":"social-line-color","channel-twitter-x":"social-x","channel-viber":"social-viber-color","channel-whats-app":"social-whatsapp-color","channel-we-chat":"social-wechat-color","channel-spam":"participant-unknown-bold","channel-monitoring":"monitoring-bold"}}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[n.A,m.A]}isPresenceType(t){return u.e.includes(t)}firstUpdated(){const t=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(t){const{presenceColor:e,presenceIcon:i}=(0,u.E)(t,this.failurePresence,this.newMomentum);this.presenceColor=e,this.presenceIcon=i}}updated(t){super.updated(t);const e=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(e&&(t.has("type")||t.has("presenceType")||t.has("newMomentum"))){const{presenceColor:t,presenceIcon:i}=(0,u.E)(e,this.failurePresence,this.newMomentum);this.presenceColor=t,this.presenceIcon=i}t.has("role")&&this.style.setProperty("--avatar-cursor","button"===this.role?"pointer":"default")}get avatarClassMap(){return Object.assign(Object.assign({},this.newMomentum&&"bot"!==this.type||!this.type?{}:{[`md-avatar--${this.type}`]:!0}),{[`md-avatar--${this.size}`]:!!this.size,[`md-avatar--${this.color}`]:!!this.color,active:"active"===this.state})}get avatarLetterClassMap(){return{"md-decrypting":this.decrypting,[`md-avatar--${this.color}`]:this.color,"new-momentum":this.newMomentum,active:"active"===this.state}}get avatarStyleMap(){return{[`md-avatar--${this.color}`]:this.color}}get pretifyTitle(){if(this.title.length){const t=this.title.trim().split(" ");return 1===t.length?t[0].charAt(0):t[0].charAt(0)+t[t.length-1].charAt(0)}return this.title}get chatIconName(){return"chat-filled"}getIconName(t){return this.iconNameMap[t]||""}get chatIconSize(){return this.iconSize}get presenceSize(){return this.size<=24?10.5:this.size<=32?14:this.size<=48?13.94:this.size<=64?18.58:this.size<=72?20.9:this.size<=88?25.55:36}get iconSize(){return 24===this.size?"16":28===this.size?"18":32===this.size?"20":36===this.size?"22":40===this.size?"24":48===this.size?"28":56===this.size?"32":64===this.size?"36":72===this.size?"40":Math.round(this.size/1.7).toString()}get renderIsTyping(){return"typing"===this.type||this.typing?a.html` <md-loading></md-loading> `:l.nothing}get avatarLetter(){return this.title?a.html`
1149
+ `}};c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"multiple",void 0),c([(0,d.property)({type:Boolean,attribute:"suppress-container-focus"})],e.prototype,"suppressContainerFocus",void 0),c([(0,d.query)('slot[name="accordion-item"]')],e.prototype,"accordionItemSlotElement",void 0),e=c([(0,a.w)("md-accordion")],e),t.ELEMENT=e}(s||(s={}))},34021:(t,e,i)=>{i.r(e),i.d(e,{Accordion:()=>s.Accordion,AccordionItem:()=>o.AccordionItem,ActivityButton:()=>r.ActivityButton,AdvanceList:()=>a.AdvanceList,Alert:()=>l.Alert,AlertBanner:()=>n.AlertBanner,AudioPlayer:()=>d.AudioPlayer,Avatar:()=>h.Avatar,AvatarType:()=>c,Badge:()=>u.Badge,Breadcrumb:()=>E.Breadcrumb,Button:()=>T.Button,ButtonGroup:()=>$.ButtonGroup,Card:()=>I.Card,CardAi:()=>A.CardAi,CardV2:()=>k.CardV2,ChatMessage:()=>L.ChatMessage,Checkbox:()=>O.Checkbox,CheckboxGroup:()=>M.CheckboxGroup,Chip:()=>D.Chip,Coachmark:()=>R.Coachmark,CoachmarkPopover:()=>P.CoachmarkPopover,CodeEditor:()=>V,ComboBox:()=>j.ComboBox,CompositeAvatar:()=>p.CompositeAvatar,CountryCodePicker:()=>U.CountryCodePicker,DatePicker:()=>W.DatePicker,DatePickerCalendar:()=>K.DatePickerCalendar,DatePickerDay:()=>G.DatePickerDay,DatePickerMonth:()=>Y.DatePickerMonth,DatePickerWeek:()=>X.DatePickerWeek,DateRangePicker:()=>q.DateRangePicker,DateTimePicker:()=>H.DateTimePicker,Draggable:()=>Z.Draggable,DraggableItem:()=>Q.DraggableItem,Dropdown:()=>J.Dropdown,EditableTextfield:()=>tt.EditableTextfield,Favorite:()=>et.Favorite,FloatingButtonBar:()=>at,FloatingMinimizedModal:()=>nt.FloatingMinimizedModal,FloatingModal:()=>lt.FloatingModal,Form:()=>mt.Form,FormArray:()=>pt,FormControl:()=>ht,FormGroup:()=>ct,Grabber:()=>yt.Grabber,HelpText:()=>bt.HelpText,Icon:()=>f.Icon,Input:()=>gt.Input,InputFile:()=>vt.InputFile,Label:()=>ft.Label,Link:()=>wt.Link,List:()=>Ct.List,ListItem:()=>xt.ListItem,Loading:()=>St.Loading,MeetingAlert:()=>Et.MeetingAlert,Menu:()=>Tt.Menu,MenuItem:()=>At.MenuItem,MenuOverlay:()=>$t.MenuOverlay,Modal:()=>kt.Modal,NotificationBadge:()=>S,Pagination:()=>It.Pagination,PhoneInput:()=>Lt.PhoneInput,Popover:()=>Ot.Popover,PopoverController:()=>Ot.PopoverController,Presence:()=>Mt.Presence,ProgressBar:()=>Dt.ProgressBar,Radio:()=>Pt.Radio,RadioGroup:()=>Rt.RadioGroup,Slider:()=>_t.Slider,Spinner:()=>Bt.Spinner,Tab:()=>Vt.Tab,TabPanel:()=>Nt.TabPanel,Table:()=>Ft.Table,TableAdvanced:()=>zt.TableAdvanced,Tabs:()=>jt.Tabs,TaskItem:()=>Ut.TaskItem,Theme:()=>qt.Theme,ThemeManager:()=>Gt.ThemeManager,TimePicker:()=>Ht.TimePicker,ToggleSwitch:()=>Wt.ToggleSwitch,Tooltip:()=>it.Tooltip,Validators:()=>ut,iconUrlManager:()=>Kt.O,registerThemeManagerGlobally:()=>Gt.registerThemeManagerGlobally,themeManager:()=>Gt.themeManager});var s=i(33328),o=i(6779),r=i(94891),a=i(28307),n=i(19479),l=i(74896),d=i(23779),h=i(38028);const c=["bot","group","self","typing",""];var p=i(2207),u=i(63704),m=i(3001),y=i(87161),b=i(6683),v=i(54765),g=i(70429),f=i(61200),w=i(15427);const C=y.css`:host{color:var(--badge-notification-primary-foreground-color);font-size:var(--font-size-body-small,.75rem);font-weight:var(--brand-font-weight-medium,500);line-height:var(--font-lineheight-body-small,1rem);font-family:var(--brand-font-medium);box-sizing:border-box;align-items:center;display:flex;height:fit-content;justify-content:center;width:fit-content}.md-notification-badge-overlay{outline:.0625rem solid var(--badge-notification-overlay-border-color)}.md-notification-badge-text{box-sizing:border-box;padding:0 .25rem;border-radius:6.25rem;min-width:1rem;display:flex;justify-content:center;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-dot{width:.75rem;height:.75rem;border-radius:50%;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-icon{padding:2px;size:1rem;border-radius:50%;box-sizing:border-box}.md-notification-badge-icon__primary{background-color:var(--badge-notification-primary-background-color);color:var(--badge-notification-primary-foreground-color)}.md-notification-badge-icon__success{background-color:var(--badge-notification-success-background-color);color:var(--badge-notification-success-foreground-color)}.md-notification-badge-icon__warning{background-color:var(--badge-notification-warning-background-color);color:var(--badge-notification-warning-foreground-color)}.md-notification-badge-icon__error{background-color:var(--badge-notification-error-background-color);color:var(--badge-notification-error-foreground-color)}.md-notification-badge-icon__secondary{background-color:var(--badge-notification-secondary-background-color);color:var(--badge-notification-secondary-foreground-color)}@media(forced-colors:active){.md-notification-badge-dot,.md-notification-badge-icon,.md-notification-badge-text{outline:.125rem solid}}`;var x=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};let S=class extends y.LitElement{constructor(){super(...arguments),this.variant=w.zY.VARIANT,this.maxCounter=w.zY.MAX_COUNTER,this.overlay=!1,this.ariaLabel=null}static get styles(){return[C]}getCounterText(t,e){return void 0===e||"number"!=typeof e||0===t?"":e>t?`${t}+`:t>w.zY.MAX_COUNTER_LIMIT||e>w.zY.MAX_COUNTER_LIMIT?`${w.zY.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t,e){return y.html`
1150
+ <md-icon
1151
+ class="md-notification-badge-icon ${(0,b.H)({"md-notification-badge-overlay":this.overlay,[`md-notification-badge-icon__${e}`]:!0})}"
1152
+ iconSet="momentumDesign"
1153
+ name="${(0,v.J)(t)}"
1154
+ size="${w.zY.ICON_SIZE}"
1155
+ ></md-icon>
1156
+ `}getBadgeDot(){return y.html`<div
1157
+ class="md-notification-badge-dot ${(0,b.H)({"md-notification-badge-overlay":this.overlay})}"
1158
+ ></div>`}getBadgeCounterText(){return y.html`
1159
+ <div class="md-notification-badge-text ${(0,b.H)({"md-notification-badge-overlay":this.overlay})}">
1160
+ ${this.getCounterText(this.maxCounter,this.counter)}
1161
+ </div>
1162
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(w.M_).includes(this.variant)&&(this.variant=w.zY.VARIANT);const{iconName:t,type:e,variant:i}=this;switch(e){case w.ZE.ICON:return this.getBadgeIcon(t||"",i);case w.ZE.COUNTER:return this.getBadgeCounterText();case w.ZE.SUCCESS:return this.getBadgeIcon(w.UZ.SUCCESS_ICON_NAME,w.su.SUCCESS);case w.ZE.WARNING:return this.getBadgeIcon(w.UZ.WARNING_ICON_NAME,w.su.WARNING);case w.ZE.ERROR:return this.getBadgeIcon(w.UZ.ERROR_ICON_NAME,w.su.ERROR);case w.ZE.DOT:default:return this.type=w.ZE.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};x([(0,g.property)({type:String,reflect:!0})],S.prototype,"type",void 0),x([(0,g.property)({type:String,reflect:!0})],S.prototype,"variant",void 0),x([(0,g.property)({type:Number})],S.prototype,"counter",void 0),x([(0,g.property)({type:Number,attribute:"max-counter",reflect:!0})],S.prototype,"maxCounter",void 0),x([(0,g.property)({type:Boolean})],S.prototype,"overlay",void 0),x([(0,g.property)({type:String,attribute:"icon-name"})],S.prototype,"iconName",void 0),x([(0,g.property)({type:String,attribute:"aria-label"})],S.prototype,"ariaLabel",void 0),S=x([(0,m.wW)("md-notification-badge")],S);var E=i(92992),$=i(45629),T=i(96798),A=i(64311),k=i(90827),I=i(10654),L=i(95281),O=i(3664),M=i(55294),D=i(60046),P=i(29895),R=i(46312),_=i(4313),B=i(45001),z=i.n(B);const F=y.css`:host(md-code-editor) .md-code-editor{background:#091e26;border-radius:.25rem;color:#fff;min-height:18.75rem;overflow:hidden}:host(md-code-editor) .md-code-editor-header{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;background:#092d3b;flex:0 0 auto;font-size:14px;padding:.625rem}:host(md-code-editor) .md-code-editor-name{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center}:host(md-code-editor) .md-code-editor md-badge::part(badge){border-radius:.25rem;height:1.25rem;margin-right:.625rem;padding:.25rem .375rem;text-transform:capitalize}:host(md-code-editor) .md-code-editor-copy{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;line-height:1}:host(md-code-editor) .md-code-editor-copy-btn::part(button){background:0 0;color:#00a0d1;margin-left:.625rem}:host(md-code-editor) .md-code-editor-copy-btn[disabled]{cursor:not-allowed;opacity:.5}:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-quote{color:#ffecc2}:host(md-code-editor) .hljs-deletion,:host(md-code-editor) .hljs-name,:host(md-code-editor) .hljs-regexp,:host(md-code-editor) .hljs-selector-class,:host(md-code-editor) .hljs-selector-id,:host(md-code-editor) .hljs-tag,:host(md-code-editor) .hljs-template-variable,:host(md-code-editor) .hljs-variable{color:#ff9d52}:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-type{color:#fc9d03}:host(md-code-editor) .hljs-attribute{color:#ebd460}:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol{color:#93c437}:host(md-code-editor) .hljs-section,:host(md-code-editor) .hljs-title{color:#22c7d6}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{color:#f0e3fc}:host(md-code-editor) .hljs{background:rgba(0,0,0,0);color:#dedede;display:block;overflow-x:auto;padding:.5em}:host(md-code-editor) .hljs-emphasis{font-style:italic}:host(md-code-editor) .hljs-strong{font-weight:700}@media screen and (forced-colors:active){:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-attribute,:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-quote,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol,:host(md-code-editor) .hljs-type{color:highlight}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{font-weight:700}}@media(forced-colors:active){:host(md-code-editor) .md-code-editor{outline:1px solid CanvasText}:host(md-code-editor) .md-code-editor-header{outline:1px solid CanvasText}}`;var V,N=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends y.LitElement{constructor(){super(...arguments),this.copyLocalization="cURL",this.copiedLocalization="Copied",this.method="get",this.acceptLanguage="javascript",this.url="javascript",this.disableCopyButton=!0,this.acceptTypes="",this.copied=!1}static get styles(){return[_.A,F]}handleSlotChange(){if(this.slotNodes&&this.slotNodes.length){const t=this.slotNodes.find(t=>"CODE"===t.tagName);if(t){const e=t.textContent;e&&this.highlightBlock(e)}}}handleUrlSlotChange(){if(this.copied=!1,this.slotUrl&&this.slotUrl.length){const t=this.slotUrl.find(t=>t);if(t){const e=t.textContent;e&&this.copyUrl(e)}}}highlightBlock(t){t&&(this.codeBlock.innerText=t),z().highlightElement(this.codeBlock)}copyUrl(t){this.codeUrl.innerText=t,this.disableCopyButton=!1}copyClipboard(){this.disableCopyButton||this.selectTarget(this.codeUrl)}copyText(){try{document.execCommand("copy"),this.copied=!0}catch(t){console.warn("Copy text failed"),this.copied=!1}}select(t){const e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),e&&(e.removeAllRanges(),e.addRange(i))}selectTarget(t){this.select(t),this.copyText()}importLanguage(t){return e=this,s=void 0,r=function*(){try{const{default:e}=yield i(29599)(`./${t}`);z().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}},new((o=void 0)||(o=Promise))(function(t,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function n(t){try{l(r.throw(t))}catch(t){i(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(a,n)}l((r=r.apply(e,s||[])).next())});var e,s,o,r}getAllAcceptTypes(){const t=z().listLanguages();return t.length?t.map(t=>z().getLanguage(`${t}`).aliases).map(t=>t.map(t=>`.${t}`)).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage),t.has("acceptTypes")&&this.highlightBlock()}render(){return y.html`
1163
+ <div class="md-code-editor" part="code-editor">
1164
+ <div class="md-code-editor-header">
1165
+ <div class="md-code-editor-name">
1166
+ <md-badge color="blue">
1167
+ <slot name="method" method=${this.method}></slot>
1168
+ </md-badge>
1169
+ <span class="md-code-editor-url">
1170
+ <slot name="code-url" @slotchange=${this.handleUrlSlotChange}>${this.url}</slot>
1171
+ </span>
1172
+ </div>
1173
+ <div class="md-code-editor-copy">
1174
+ <span>${this.copied?this.copiedLocalization.trim():this.copyLocalization.trim()}</span>
1175
+ <md-button
1176
+ circle
1177
+ size="20"
1178
+ ?disabled=${this.disableCopyButton}
1179
+ @click=${this.copyClipboard}
1180
+ class="md-code-editor-copy-btn"
1181
+ >
1182
+ <md-icon slot="icon" name="icon-copy_16"></md-icon>
1183
+ </md-button>
1184
+ </div>
1185
+ </div>
1186
+ <div class="md-code-editor-content">
1187
+ <pre class="md-code-editor-code-block">
1188
+ <slot name="code-block" @slotchange=${this.handleSlotChange}>
1189
+ <code class=${this.acceptLanguage}>
1190
+ </code>
1191
+ </slot>
1192
+ </pre>
1193
+ </div>
1194
+ </div>
1195
+ `}};N([(0,g.property)({type:String})],e.prototype,"copyLocalization",void 0),N([(0,g.property)({type:String})],e.prototype,"copiedLocalization",void 0),N([(0,g.property)({type:String})],e.prototype,"method",void 0),N([(0,g.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),N([(0,g.property)({type:String})],e.prototype,"url",void 0),N([(0,g.query)("input[type='file']")],e.prototype,"input",void 0),N([(0,g.query)(".md-code-editor-code-block")],e.prototype,"codeBlock",void 0),N([(0,g.query)(".md-code-editor-url")],e.prototype,"codeUrl",void 0),N([(0,g.state)()],e.prototype,"disableCopyButton",void 0),N([(0,g.state)()],e.prototype,"acceptTypes",void 0),N([(0,g.state)()],e.prototype,"copied",void 0),N([(0,g.queryAssignedNodes)({slot:"code-block"})],e.prototype,"slotNodes",void 0),N([(0,g.queryAssignedNodes)({slot:"code-url"})],e.prototype,"slotUrl",void 0),e=N([(0,m.wW)("md-code-editor")],e),t.ELEMENT=e}(V||(V={}));var j=i(4928),U=i(18224),q=i(69494),H=i(85416),W=i(38654),K=i(63208),G=i(16754),Y=i(17814),X=i(10984),Z=i(80072),Q=i(24627),J=i(23184),tt=i(50565),et=i(99850),it=i(83192),st=i(36752);const ot=y.css`:host{display:inline-flex;align-items:center;height:1.75rem;border-radius:1.5625rem;background-color:var(--floating-button-bar-bg-color);box-shadow:var(--md-elevation-1);padding:.25rem .5rem;gap:.5rem}.button{display:inline-flex;align-items:center;justify-content:center}.button.pill::part(button){font-size:.875rem;padding-left:.75rem;padding-right:.75rem}.cancel{color:var(--floating-button-bar-secondary-color)}.label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.label.primary{font-family:var(--brand-font-medium);color:var(--floating-button-bar-primary-color);flex:1;min-width:0;justify-content:center}.label.secondary{color:var(--floating-button-bar-secondary-color);padding-right:4px}.separator{width:1px;height:.75rem;background-color:var(--floating-button-bar-secondary-color)}md-tooltip::part(tooltip_reference){display:flex;align-items:center}`;var rt=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};let at=class extends y.LitElement{constructor(){super(...arguments),this.leadingLabel="",this.closeButtonAriaLabel="",this.showCloseButton=!0,this.actions=[]}static get styles(){return[ot]}onCancelButttonAction(){this.dispatchEvent(new CustomEvent("cancel-button-action",{composed:!0,bubbles:!0}))}get closeButtonTemplate(){return y.html`
1196
+ <md-tooltip
1197
+ message="${(0,v.J)(this.closeButtonAriaLabel)}"
1198
+ ?disabled=${!this.closeButtonAriaLabel}
1199
+ placement="top"
1200
+ >
1201
+ <md-button
1202
+ class="button cancel"
1203
+ circle
1204
+ size="20"
1205
+ variant="ghostInheritTextColor"
1206
+ ariaLabel=${(0,v.J)(this.closeButtonAriaLabel)}
1207
+ @button-click=${()=>this.onCancelButttonAction()}
1208
+ >
1209
+ <md-icon slot="icon" iconSet="momentumDesign" name="cancel-bold" size="16"></md-icon>
1210
+ </md-button>
1211
+ </md-tooltip>
1212
+ `}getPrimaryLabelTemplate(t){return y.html` <span class="label primary">${t}</span> `}getSecondaryLabelTemplate(t){return y.html` <span class="label secondary">${t}</span> `}get separatorTemplate(){return y.html` <div class="separator"></div> `}getIconTemplate(t){return y.html`${t.icon?y.html`<md-icon slot="icon" iconSet="momentumDesign" name=${t.icon} size="16"></md-icon>`:st.s6}`}getPillButtonTemplate(t){return y.html`
1213
+ <md-button class="button pill" size="24" variant="inverted-ghost" @button-click=${()=>t.action()}>
1214
+ ${this.getIconTemplate(t)} ${this.getPrimaryLabelTemplate(t.label)}
1215
+ </md-button>
1216
+ `}getCircleButtonTemplate(t){return y.html`
1217
+ <md-button class="button" circle size="24" variant="inverted-secondary" @button-click=${()=>t.action()}>
1218
+ ${this.getIconTemplate(t)}
1219
+ </md-button>
1220
+ `}getTooltipCircleButtonTemplate(t){return y.html`
1221
+ <md-tooltip message="${t.label}" placement="top"> ${this.getCircleButtonTemplate(t)} </md-tooltip>
1222
+ `}getActionAndLabelTemplate(t){var e;const i=null!==(e=t.iconAlign)&&void 0!==e?e:"right";return y.html`
1223
+ ${"left"===i?y.html`${this.getCircleButtonTemplate(t)} ${this.getPrimaryLabelTemplate(t.label)}`:y.html`${this.getPrimaryLabelTemplate(t.label)} ${this.getCircleButtonTemplate(t)}`}
1224
+ `}getActionTemplate(t){return t.isIconOnly?this.getTooltipCircleButtonTemplate(t):this.getPillButtonTemplate(t)}getActionGroupTemplate(t){return y.html` ${this.separatorTemplate} ${t.actions.map(t=>this.getActionTemplate(t))} `}render(){return y.html`
1225
+ ${this.showCloseButton?this.closeButtonTemplate:st.s6} ${this.getSecondaryLabelTemplate(this.leadingLabel)}
1226
+ ${this.actions.map(t=>this.getActionGroupTemplate(t))}
1227
+ `}};rt([(0,g.property)({type:String})],at.prototype,"leadingLabel",void 0),rt([(0,g.property)({type:String})],at.prototype,"closeButtonAriaLabel",void 0),rt([(0,g.property)({type:Boolean})],at.prototype,"showCloseButton",void 0),rt([(0,g.property)({type:Array})],at.prototype,"actions",void 0),at=rt([(0,g.customElement)("md-floating-button-bar")],at);var nt=i(58871),lt=i(73093);class dt{constructor(){this.listeners=new Set}onChange(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}emitChange(){for(const t of Array.from(this.listeners))t(this)}}class ht extends dt{constructor(t,e=[]){super(),this.validationErrors=[],this.touched=!1,this.currentValue=t,this.validators=e,this.validate()}get value(){return this.currentValue}markAsTouched(){this.touched=!0,this.validate()}get valid(){return 0===this.validationErrors.length}get errors(){return this.touched?this.validationErrors:[]}setValue(t){this.currentValue=t,this.markAsTouched()}validate(){this.emitChange(),this.validationErrors=this.validators.map(t=>t(this.currentValue)).filter(t=>null!==t)}}class ct extends dt{constructor(t){var e;super(),this.controls=t;for(const t of Object.keys(this.controls)){const i=this.controls[t];null===(e=i.onChange)||void 0===e||e.call(i,()=>this.emitChange())}}get(t){return this.controls[t]}get value(){const t={};for(const e in this.controls)t[e]=this.controls[e].value;return t}get valid(){return Object.values(this.controls).every(t=>t.valid)}validate(){for(const t of Object.values(this.controls))t.validate();this.emitChange()}markAllAsTouched(){Object.values(this.controls).forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}class pt extends dt{constructor(t){var e;super(),this.controls=t;for(const t of this.controls)null===(e=t.onChange)||void 0===e||e.call(t,()=>this.emitChange())}at(t){return this.controls[t]}push(t){var e;this.controls.push(t),null===(e=t.onChange)||void 0===e||e.call(t,()=>this.emitChange()),this.emitChange()}removeAt(t){this.controls.splice(t,1),this.emitChange()}get value(){return this.controls.map(t=>t.value)}get valid(){return this.controls.every(t=>t.valid)}get length(){return this.controls.length}getControls(){return this.controls}validate(){this.controls.forEach(t=>t.validate()),this.emitChange()}markAllAsTouched(){this.controls.forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}const ut={required:()=>t=>null==t||"string"==typeof t&&""===t.trim()?{type:"required"}:null,minLength:t=>e=>e.length<t?{type:"minLength",count:t}:null,maxLength:t=>e=>e.length>t?{type:"maxLength",count:t}:null};var mt=i(97866),yt=i(69112),bt=i(20109),vt=i(52619),gt=i(96408),ft=i(6396),wt=i(19026),Ct=i(68490),xt=i(66245),St=i(69788),Et=i(61997),$t=i(11323),Tt=i(84032),At=i(48171),kt=i(32252),It=i(23026),Lt=i(84205),Ot=i(71128),Mt=i(15300),Dt=i(58287),Pt=i(81144),Rt=i(32217),_t=i(25428),Bt=i(12176),zt=i(77935),Ft=i(40428),Vt=i(16643),Nt=i(97737),jt=i(50226),Ut=i(86610),qt=i(1072),Ht=i(49256),Wt=i(20331),Kt=i(81786),Gt=i(37719)},37719:(t,e,i)=>{i.d(e,{ThemeManager:()=>o,registerThemeManagerGlobally:()=>a,themeManager:()=>r});var s=i(85314);class o{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(t){this.isDarkMode=!1,this.themeName="lumos",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,s.makeObservable)(this,{isDarkMode:s.observable,themeName:s.observable,isVisualRebrandEnabled:s.observable,isMomentumAvatarEnabled:s.observable,isMomentumV2Enabled:s.computed,setDarkMode:s.action,setThemeName:s.action,setVisualRebrandEnabled:s.action,setMomentumAvatar:s.action,update:s.action}),t&&this.update(t)}update(t){void 0!==t.isDarkMode&&(this.isDarkMode=t.isDarkMode),void 0!==t.themeName&&(this.themeName=t.themeName),void 0!==t.isVisualRebrandEnabled&&(this.isVisualRebrandEnabled=t.isVisualRebrandEnabled),void 0!==t.isMomentumAvatarEnabled&&(this.isMomentumAvatarEnabled=t.isMomentumAvatarEnabled)}setDarkMode(t){this.isDarkMode=t}setThemeName(t){this.themeName=t}setVisualRebrandEnabled(t){this.isVisualRebrandEnabled=t}setMomentumAvatar(t){this.isMomentumAvatarEnabled=t}}const r=new o;function a(t="MomentumUIThemeManager",e=r){"undefined"!=typeof globalThis&&(globalThis[t]=e),"undefined"!=typeof window&&(window[t]=e),void 0!==i.g&&(i.g[t]=e)}},38028:(t,e,i)=>{i.d(e,{Avatar:()=>s}),i(61200),i(69788),i(15300);var s,o=i(31890),r=i(26283),a=i(4313),n=i(87161),l=i(70429),d=i(85125),h=i(20291),c=i(10318),p=i(89756),u=i(38923),m=i(7292),y=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this._tabIndex=0,this.alt="",this.src="",this.label="",this.title="",this.color="",this.decrypting=!1,this.role="img",this.iconName="",this.failurePresence=!1,this.type="",this.newMomentum=!1,this.typing=!1,this.size=40,this.hasNotification=!1,this.clickable=!1,this.avatarStyle="default",this.state="rest",this.imageLoaded=!1,this.imageErrored=!1,this.presenceColor="",this.presenceIcon="",this.iconNameMap={"channel-chat":"chat-filled","channel-chat-outbound":"chat-outbound-filled","channel-social":"sms-message-filled","channel-sms-inbound":"sms-filled","channel-sms-outbound":"sms-outgoing-filled","channel-email-inbound":"email-filled","channel-email-outbound":"email-outgoing-filled","channel-call":"handset-filled","channel-call-inbound":"incoming-call-legacy-filled","channel-callback":"outgoing-call-legacy-filled","channel-headset":"headset-filled","channel-campaign":"campaign-management-bold","channel-emoji":"emoji-happy-filled","channel-webex":"webex-app-icon-color-container","channel-fb-messenger":"social-fbmessenger-color","channel-facebook":"social-facebook-color","channel-apple-chat":"apple-business-chat-color","channel-line":"social-line-color","channel-twitter-x":"social-x","channel-viber":"social-viber-color","channel-whats-app":"social-whatsapp-color","channel-we-chat":"social-wechat-color","channel-spam":"participant-unknown-bold","channel-monitoring":"monitoring-bold"}}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[a.A,m.A]}isPresenceType(t){return u.e.includes(t)}firstUpdated(){const t=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(t){const{presenceColor:e,presenceIcon:i}=(0,u.E)(t,this.failurePresence,this.newMomentum);this.presenceColor=e,this.presenceIcon=i}}updated(t){super.updated(t);const e=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(e&&(t.has("type")||t.has("presenceType")||t.has("newMomentum"))){const{presenceColor:t,presenceIcon:i}=(0,u.E)(e,this.failurePresence,this.newMomentum);this.presenceColor=t,this.presenceIcon=i}t.has("role")&&this.style.setProperty("--avatar-cursor","button"===this.role?"pointer":"default")}get avatarClassMap(){return Object.assign(Object.assign({},this.newMomentum&&"bot"!==this.type||!this.type?{}:{[`md-avatar--${this.type}`]:!0}),{[`md-avatar--${this.size}`]:!!this.size,[`md-avatar--${this.color}`]:!!this.color,active:"active"===this.state})}get avatarLetterClassMap(){return{"md-decrypting":this.decrypting,[`md-avatar--${this.color}`]:this.color,"new-momentum":this.newMomentum,active:"active"===this.state}}get avatarStyleMap(){return{[`md-avatar--${this.color}`]:this.color}}get pretifyTitle(){if(this.title.length){const t=this.title.trim().split(" ");return 1===t.length?t[0].charAt(0):t[0].charAt(0)+t[t.length-1].charAt(0)}return this.title}get chatIconName(){return"chat-filled"}getIconName(t){return this.iconNameMap[t]||""}get chatIconSize(){return this.iconSize}get presenceSize(){return this.size<=24?10.5:this.size<=32?14:this.size<=48?13.94:this.size<=64?18.58:this.size<=72?20.9:this.size<=88?25.55:36}get iconSize(){return 24===this.size?"16":28===this.size?"18":32===this.size?"20":36===this.size?"22":40===this.size?"24":48===this.size?"28":56===this.size?"32":64===this.size?"36":72===this.size?"40":Math.round(this.size/1.7).toString()}get renderIsTyping(){return"typing"===this.type||this.typing?n.html` <md-loading></md-loading> `:n.nothing}get avatarLetter(){return this.title?n.html`
1144
1228
  <span class="md-avatar__letter ${(0,d.classMap)(this.avatarLetterClassMap)}">
1145
1229
  ${this.pretifyTitle}
1146
1230
  <slot></slot>
1147
1231
  ${this.renderIsTyping}
1148
1232
  </span>
1149
- `:l.nothing}get avatarIcon(){return a.html`
1233
+ `:n.nothing}get avatarIcon(){return n.html`
1150
1234
  <span class="md-avatar__icon ${(0,d.classMap)(this.avatarStyleMap)}">
1151
1235
  <md-icon
1152
1236
  .name=${this.iconName}
@@ -1154,9 +1238,9 @@
1154
1238
  .size=${this.newMomentum?this.iconSize:""}
1155
1239
  ></md-icon>
1156
1240
  </span>
1157
- `}get avatarImage(){return a.html`
1158
- ${(0,p.until)(this.loadImage().then(t=>(this.handleImageLoad(),a.html` ${t} `)).catch(()=>this.handleImageError()),a.html` ${this.iconName?this.avatarIcon:this.title?a.html` ${this.avatarLetter} `:l.nothing} `)}
1159
- `}loadImage(){return t=this,e=void 0,o=function*(){return new Promise((t,e)=>{const i=document.createElement("img");i.src=this.src,i.alt=this.alt,i.onload=()=>t(i),i.onerror=t=>e(t),i.classList.add("md-avatar__img"),i.classList.toggle("md-avatar__img--hidden",!this.imageLoaded)})},new((i=void 0)||(i=Promise))(function(s,r){function n(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(n,a)}l((o=o.apply(t,e||[])).next())});var t,e,i,o}handleImageLoad(){this.imageLoaded=!0}handleImageError(){this.imageErrored=!0}handleKeyDown(t){if(!this.clickable)return;const{code:e}=t;(0,r.o)(e)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleClick(t){var e;this.clickable&&(null===(e=this.clickFunction)||void 0===e||e.call(this),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})))}getBrandOrDesignIconSet(t){return new Set(["webex-app-icon-color-container","social-fbmessenger-color","social-facebook-color","apple-business-chat-color","social-line-color","social-viber-color","social-x","social-whatsapp-color","social-wechat-color"]).has(t)?"momentumBrandVisuals":"momentumDesign"}get avatarContent(){return this.src&&!this.imageErrored?this.avatarImage:this.iconName?this.avatarIcon:this.title?this.avatarLetter:l.nothing}renderPresence(){return this.newMomentum&&(this.presenceType||this.type)&&"self"!==this.type&&this.presenceIcon?a.html`
1241
+ `}get avatarImage(){return n.html`
1242
+ ${(0,p.until)(this.loadImage().then(t=>(this.handleImageLoad(),n.html` ${t} `)).catch(()=>this.handleImageError()),n.html` ${this.iconName?this.avatarIcon:this.title?n.html` ${this.avatarLetter} `:n.nothing} `)}
1243
+ `}loadImage(){return t=this,e=void 0,s=function*(){return new Promise((t,e)=>{const i=document.createElement("img");i.src=this.src,i.alt=this.alt,i.onload=()=>t(i),i.onerror=t=>e(t),i.classList.add("md-avatar__img"),i.classList.toggle("md-avatar__img--hidden",!this.imageLoaded)})},new((i=void 0)||(i=Promise))(function(o,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((s=s.apply(t,e||[])).next())});var t,e,i,s}handleImageLoad(){this.imageLoaded=!0}handleImageError(){this.imageErrored=!0}handleKeyDown(t){if(!this.clickable)return;const{code:e}=t;(0,r.o)(e)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleClick(t){var e;this.clickable&&(null===(e=this.clickFunction)||void 0===e||e.call(this),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})))}getBrandOrDesignIconSet(t){return new Set(["webex-app-icon-color-container","social-fbmessenger-color","social-facebook-color","apple-business-chat-color","social-line-color","social-viber-color","social-x","social-whatsapp-color","social-wechat-color"]).has(t)?"momentumBrandVisuals":"momentumDesign"}get avatarContent(){return this.src&&!this.imageErrored?this.avatarImage:this.iconName?this.avatarIcon:this.title?this.avatarLetter:n.nothing}renderPresence(){return this.newMomentum&&(this.presenceType||this.type)&&"self"!==this.type&&this.presenceIcon?n.html`
1160
1244
  <md-presence
1161
1245
  class="avatar-presence"
1162
1246
  name="${this.presenceIcon}"
@@ -1167,11 +1251,11 @@
1167
1251
  .avatarLinked=${!0}
1168
1252
  >
1169
1253
  </md-presence>
1170
- `:l.nothing}renderAvatarContent(){const t=this.getIconName(this.type);if("channel-custom"===this.type)return a.html`
1254
+ `:n.nothing}renderAvatarContent(){const t=this.getIconName(this.type);if("channel-custom"===this.type)return n.html`
1171
1255
  <span class="md-avatar__logo" data-channel-style=${this.avatarStyle} data-channel-state=${this.state}>
1172
1256
  <slot></slot>
1173
1257
  </span>
1174
- `;if(t){const e=this.getBrandOrDesignIconSet(t);return a.html`
1258
+ `;if(t){const e=this.getBrandOrDesignIconSet(t);return n.html`
1175
1259
  <span
1176
1260
  class="md-avatar__logo ${this.type}"
1177
1261
  data-channel-style=${this.avatarStyle}
@@ -1184,7 +1268,7 @@
1184
1268
  color="var(--icon-color-${this.type})"
1185
1269
  ></md-icon>
1186
1270
  </span>
1187
- `}return this.avatarContent}render(){return a.html`
1271
+ `}return this.avatarContent}render(){return n.html`
1188
1272
  <div
1189
1273
  part="avatar"
1190
1274
  class="md-avatar
@@ -1195,23 +1279,23 @@
1195
1279
  tabindex=${(0,h.ifDefined)(this.tabIndex||void 0)}
1196
1280
  aria-label=${(0,h.ifDefined)(this.label)}
1197
1281
  >
1198
- ${"self"===this.type?a.html`
1282
+ ${"self"===this.type?n.html`
1199
1283
  <span class="md-avatar__self" style=${(0,c.styleMap)(this.avatarStyleMap)}>
1200
1284
  <md-icon .name=${this.chatIconName} .iconSet=${"momentumDesign"} .size=${this.chatIconSize}></md-icon>
1201
1285
  </span>
1202
1286
  `:this.renderAvatarContent()}
1203
- ${this.hasNotification?a.html` <span class="md-avatar__notification-badge"></span> `:l.nothing}
1287
+ ${this.hasNotification?n.html` <span class="md-avatar__notification-badge"></span> `:n.nothing}
1204
1288
  ${this.renderPresence()}
1205
1289
  </div>
1206
- `}};y([(0,a.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,a.property)({type:String})],e.prototype,"alt",void 0),y([(0,a.property)({type:String})],e.prototype,"src",void 0),y([(0,a.property)({type:String})],e.prototype,"label",void 0),y([(0,a.property)({type:String})],e.prototype,"title",void 0),y([(0,a.property)({type:String})],e.prototype,"color",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"decrypting",void 0),y([(0,a.property)({type:String})],e.prototype,"role",void 0),y([(0,a.property)({type:String,attribute:"icon-name"})],e.prototype,"iconName",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"failurePresence",void 0),y([(0,a.property)({type:String})],e.prototype,"type",void 0),y([(0,a.property)({type:String,attribute:"presence-type"})],e.prototype,"presenceType",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"newMomentum",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"typing",void 0),y([(0,a.property)({type:Number})],e.prototype,"size",void 0),y([(0,a.property)({type:Boolean,attribute:"has-notification"})],e.prototype,"hasNotification",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"clickable",void 0),y([(0,a.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,a.property)({type:String,attribute:"avatar-style"})],e.prototype,"avatarStyle",void 0),y([(0,a.property)({type:String})],e.prototype,"state",void 0),y([(0,a.internalProperty)()],e.prototype,"imageLoaded",void 0),y([(0,a.internalProperty)()],e.prototype,"imageErrored",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceColor",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceIcon",void 0),e=y([(0,s.w)("md-avatar")],e),t.ELEMENT=e}(o||(o={}))},40333:t=>{t.exports=o},40428:(t,e,i)=>{i.d(e,{Table:()=>o}),i(61200);var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(17518),d=i(28187),h=i.n(d),c=i(43604),p=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.tabledata="",this.zebra=!1,this.clean=!1,this.sorting=!1,this.nodata="No data Loaded",this.stickheader=!1,this.label="Table",this.noBorders=!1,this.format="default",this.warning=[],this.errors=[],this.sort={columnName:"",sortting:!1},this.csvData=void 0,this.config={quoteChar:'"',escapeChar:'""',header:!1,preview:0,comments:!1,step:void 0,complete:void 0}}connectedCallback(){super.connectedCallback(),this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.requestUpdate("tabledata"),this.linkCellItems()}get rowItem(){return this.rowTable}linkCellItems(){const t=this.rowTable;null==t||t.forEach((t,e)=>{this.warning.forEach(i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===i.col&&(t.classList.add("warning"),t.insertAdjacentHTML("beforeend",'<md-icon name="warning-regular" size="24" iconSet="momentumDesign" color="var(--md-alert-warning-text-color)"></md-icon>'))})}),this.errors.forEach(i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===i.col&&(t.classList.add("error"),t.insertAdjacentHTML("beforeend",'<md-icon name="clear-bold" size="24" iconSet="momentumDesign" color="var(--md-alert-error-text-color)"></md-icon>'))})})})}sortTab(t,e){const i=t.target,o=Array.from(this.csvData),s=this.headerRow.indexOf(e);e!==this.sort.columnName||!0!==this.sort.sortting?(o.sort(function(t,e){const i=t[s].toLowerCase(),o=e[s].toLowerCase();return i>o?1:i<o?-1:0}),this.sort.sortting=!0,i.classList.remove("sortedZyx"),i.classList.add("sortedAbc")):(o.reverse(),this.sort.sortting=!1,i.classList.remove("sortedAbc"),i.classList.add("sortedZyx")),this.sort.columnName=e,this.csvData=o,this.requestUpdate("csvData")}update(t){super.update(t),t.has("tabledata")&&(this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.linkCellItems())}static get styles(){return[r.A,c.A]}get tableClassMap(){return{"md-table--clean":this.clean,"md-table--no-borders":this.noBorders,"md-table--stripped":this.zebra,"md-table--sorting":this.sorting}}getSortTemplate(t){return this.sort.columnName!==t?a.nothing:n.html`
1290
+ `}};y([(0,l.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,l.property)({type:String})],e.prototype,"alt",void 0),y([(0,l.property)({type:String})],e.prototype,"src",void 0),y([(0,l.property)({type:String})],e.prototype,"label",void 0),y([(0,l.property)({type:String})],e.prototype,"title",void 0),y([(0,l.property)({type:String})],e.prototype,"color",void 0),y([(0,l.property)({type:Boolean})],e.prototype,"decrypting",void 0),y([(0,l.property)({type:String})],e.prototype,"role",void 0),y([(0,l.property)({type:String,attribute:"icon-name"})],e.prototype,"iconName",void 0),y([(0,l.property)({type:Boolean})],e.prototype,"failurePresence",void 0),y([(0,l.property)({type:String})],e.prototype,"type",void 0),y([(0,l.property)({type:String,attribute:"presence-type"})],e.prototype,"presenceType",void 0),y([(0,l.property)({type:Boolean})],e.prototype,"newMomentum",void 0),y([(0,l.property)({type:Boolean})],e.prototype,"typing",void 0),y([(0,l.property)({type:Number})],e.prototype,"size",void 0),y([(0,l.property)({type:Boolean,attribute:"has-notification"})],e.prototype,"hasNotification",void 0),y([(0,l.property)({type:Boolean})],e.prototype,"clickable",void 0),y([(0,l.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,l.property)({type:String,attribute:"avatar-style"})],e.prototype,"avatarStyle",void 0),y([(0,l.property)({type:String})],e.prototype,"state",void 0),y([(0,l.state)()],e.prototype,"imageLoaded",void 0),y([(0,l.state)()],e.prototype,"imageErrored",void 0),y([(0,l.state)()],e.prototype,"presenceColor",void 0),y([(0,l.state)()],e.prototype,"presenceIcon",void 0),e=y([(0,o.w)("md-avatar")],e),t.ELEMENT=e}(s||(s={}))},40428:(t,e,i)=>{i.d(e,{Table:()=>s}),i(61200);var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(28187),h=i.n(d),c=i(70759),p=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.tabledata="",this.zebra=!1,this.clean=!1,this.sorting=!1,this.nodata="No data Loaded",this.stickheader=!1,this.label="Table",this.noBorders=!1,this.format="default",this.warning=[],this.errors=[],this.sort={columnName:"",sortting:!1},this.csvData=void 0,this.config={quoteChar:'"',escapeChar:'""',header:!1,preview:0,comments:!1,step:void 0,complete:void 0}}connectedCallback(){super.connectedCallback(),this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.requestUpdate("tabledata"),this.linkCellItems()}get rowItem(){return this.rowTable}linkCellItems(){const t=this.rowTable;null==t||t.forEach((t,e)=>{this.warning.forEach(i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===i.col&&(t.classList.add("warning"),t.insertAdjacentHTML("beforeend",'<md-icon name="warning-regular" size="24" iconSet="momentumDesign" color="var(--md-alert-warning-text-color)"></md-icon>'))})}),this.errors.forEach(i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===i.col&&(t.classList.add("error"),t.insertAdjacentHTML("beforeend",'<md-icon name="clear-bold" size="24" iconSet="momentumDesign" color="var(--md-alert-error-text-color)"></md-icon>'))})})})}sortTab(t,e){const i=t.target,s=Array.from(this.csvData),o=this.headerRow.indexOf(e);e!==this.sort.columnName||!0!==this.sort.sortting?(s.sort(function(t,e){const i=t[o].toLowerCase(),s=e[o].toLowerCase();return i>s?1:i<s?-1:0}),this.sort.sortting=!0,i.classList.remove("sortedZyx"),i.classList.add("sortedAbc")):(s.reverse(),this.sort.sortting=!1,i.classList.remove("sortedAbc"),i.classList.add("sortedZyx")),this.sort.columnName=e,this.csvData=s,this.requestUpdate("csvData")}update(t){super.update(t),t.has("tabledata")&&(this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.linkCellItems())}static get styles(){return[r.A,c.A]}get tableClassMap(){return{"md-table--clean":this.clean,"md-table--no-borders":this.noBorders,"md-table--stripped":this.zebra,"md-table--sorting":this.sorting}}getSortTemplate(t){return this.sort.columnName!==t?a.nothing:a.html`
1207
1291
  <md-icon
1208
1292
  name=${this.sort.sortting?"sort-descending-bold":"sort-ascending-bold"}
1209
1293
  iconSet="momentumDesign"
1210
1294
  size="16"
1211
1295
  ></md-icon>
1212
- `}render(){return n.html`
1213
- <div class=${`md-table-container ${this.stickheader?"md-table-container_stickly":a.nothing}`}>
1214
- ${0!=this.csvData.length?n.html`
1296
+ `}render(){return a.html`
1297
+ <div class=${"md-table-container "+(this.stickheader?"md-table-container_stickly":"")}>
1298
+ ${0!=this.csvData.length?a.html`
1215
1299
  <table
1216
1300
  class="md-table ${(0,l.classMap)(this.tableClassMap)}"
1217
1301
  tabindex="0"
@@ -1220,21 +1304,21 @@
1220
1304
  >
1221
1305
  <thead class="md-table__header" role="rowgroup" tabindex="0">
1222
1306
  <tr role="row">
1223
- ${this.headerRow.map(t=>n.html`
1307
+ ${this.headerRow.map(t=>a.html`
1224
1308
  <th role="columnheader">
1225
- ${this.sorting?n.html`
1309
+ ${this.sorting?a.html`
1226
1310
  <a @click=${e=>this.sortTab(e,t)}>
1227
1311
  ${t}${this.getSortTemplate(t)}
1228
1312
  </a>
1229
- `:n.html` ${t}`}
1313
+ `:a.html` ${t}`}
1230
1314
  </th>
1231
1315
  `)}
1232
1316
  </tr>
1233
1317
  </thead>
1234
1318
  <tbody class="md-table__body" role="rowgroup">
1235
- ${this.csvData.map((t,e)=>n.html`
1319
+ ${this.csvData.map((t,e)=>a.html`
1236
1320
  <tr tabindex="0" role="row" part=${0===e?"first-row":"row"}>
1237
- ${t.map((t,e)=>{const i="number"===this.format&&0!==e?Number(t).toLocaleString():t;return n.html`
1321
+ ${t.map((t,e)=>{const i="number"===this.format&&0!==e?Number(t).toLocaleString():t;return a.html`
1238
1322
  <td part=${0===e?"left-cell":"cell"} role="cell">
1239
1323
  <span>${i}</span>
1240
1324
  </td>
@@ -1243,26 +1327,26 @@
1243
1327
  `)}
1244
1328
  </tbody>
1245
1329
  </table>
1246
- `:n.html` <p>${this.nodata}</p> `}
1330
+ `:a.html` <p>${this.nodata}</p> `}
1247
1331
  </div>
1248
- `}};p([(0,n.property)({type:String})],e.prototype,"tabledata",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"zebra",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"clean",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"sorting",void 0),p([(0,n.property)({type:String})],e.prototype,"nodata",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"stickheader",void 0),p([(0,n.property)({type:String})],e.prototype,"label",void 0),p([(0,n.property)({type:Boolean,attribute:"no-borders"})],e.prototype,"noBorders",void 0),p([(0,n.property)({type:String})],e.prototype,"format",void 0),p([(0,n.property)({type:Array})],e.prototype,"warning",void 0),p([(0,n.property)({type:Array})],e.prototype,"errors",void 0),p([(0,n.internalProperty)()],e.prototype,"sort",void 0),p([(0,n.internalProperty)()],e.prototype,"csvData",void 0),p([(0,n.queryAll)('.md-table__body tr[role="row"]')],e.prototype,"rowTable",void 0),e=p([(0,s.w)("md-table")],e),t.ELEMENT=e}(o||(o={}))},41488:e=>{e.exports=t},41891:t=>{t.exports=E},45001:t=>{t.exports=w},45629:(t,e,i)=>{i.d(e,{ButtonGroup:()=>o});var o,s=i(90195),r=i(3001),n=i(26272),a=i(41488),l=i(71250),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.TS)((0,r.yC)(a.LitElement))){constructor(){super(...arguments),this.active=0,this.tabIndex=0,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get slotElement(){return this.buttonSlot}static get styles(){return[n.A,l.A]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","group")}setButtonTabIndex(){this.slotted.forEach(t=>t.tabIndex=-1)}updated(t){super.updated(t),t.has("slotted")&&(this.setButtonTabIndex(),this.setFirstActive())}get selectedBtnValue(){return this.slotted[this.active].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("button-group-change",{detail:{selected:this.selectedBtnValue},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}setSelected(t){var e,i;const o=this.findSelectedBtnIndex();-1!==o&&o!==t&&(null===(e=this.slotted[o])||void 0===e||e.toggleAttribute("selected",!1)),null===(i=this.slotted[t])||void 0===i||i.toggleAttribute("selected",!0)}setFirstActive(){-1===this.findSelectedBtnIndex()&&this.setSelected(this.active)}findBtnIndex(t){const e=t.composedPath();return this.slotted.findIndex(t=>e.includes(t))}findSelectedBtnIndex(){return this.slotted.findIndex(t=>t.hasAttribute("selected"))}isBtnDisabled(t){return this.slotted[t].disabled}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}switchBtnOnArrowPress(t,e=1){const i=this.getAvailableSelectedIndex(t,e);-1!==i&&(this.active=i,this.setSelected(i),this.notifySelectedChange())}getAvailableSelectedIndex(t,e=1){const i=this.slotted.length;for(let o=0,s=t;o<i;o+=1,s+=e){s<0?s=i-1:s>=i&&(s=0);const t=this.slotted[s];if(this.isFocusable(t))return s}return-1}isFocusable(t){return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")}handleClick(t){const e=this.findBtnIndex(t);-1!==e&&(this.isBtnDisabled(e)||(this.active=e,this.setSelected(e),this.notifySelectedChange()))}handleKeyDown(t){const{code:e}=t;switch(e){case s.Uz.Enter:case s.Uz.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case s.Uz.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case s.Uz.ArrowRight:this.active===this.slotted.length-1?this.switchBtnOnArrowPress(0):this.switchBtnOnArrowPress(this.active+1)}}render(){return a.html`
1332
+ `}};p([(0,n.property)({type:String})],e.prototype,"tabledata",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"zebra",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"clean",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"sorting",void 0),p([(0,n.property)({type:String})],e.prototype,"nodata",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"stickheader",void 0),p([(0,n.property)({type:String})],e.prototype,"label",void 0),p([(0,n.property)({type:Boolean,attribute:"no-borders"})],e.prototype,"noBorders",void 0),p([(0,n.property)({type:String})],e.prototype,"format",void 0),p([(0,n.property)({type:Array})],e.prototype,"warning",void 0),p([(0,n.property)({type:Array})],e.prototype,"errors",void 0),p([(0,n.state)()],e.prototype,"sort",void 0),p([(0,n.state)()],e.prototype,"csvData",void 0),p([(0,n.queryAll)('.md-table__body tr[role="row"]')],e.prototype,"rowTable",void 0),e=p([(0,o.w)("md-table")],e),t.ELEMENT=e}(s||(s={}))},41891:t=>{t.exports=C},45001:t=>{t.exports=g},45629:(t,e,i)=>{i.d(e,{ButtonGroup:()=>s});var s,o=i(90195),r=i(3001),a=i(4313),n=i(87161),l=i(70429),d=i(75799),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.TS)((0,r.yC)(n.LitElement))){constructor(){super(...arguments),this.active=0,this.tabIndex=0,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get slotElement(){return this.buttonSlot}static get styles(){return[a.A,d.A]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","group")}setButtonTabIndex(){this.slotted.forEach(t=>t.tabIndex=-1)}updated(t){super.updated(t),t.has("slotted")&&(this.setButtonTabIndex(),this.setFirstActive())}get selectedBtnValue(){return this.slotted[this.active].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("button-group-change",{detail:{selected:this.selectedBtnValue},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}setSelected(t){var e,i;const s=this.findSelectedBtnIndex();-1!==s&&s!==t&&(null===(e=this.slotted[s])||void 0===e||e.toggleAttribute("selected",!1)),null===(i=this.slotted[t])||void 0===i||i.toggleAttribute("selected",!0)}setFirstActive(){-1===this.findSelectedBtnIndex()&&this.setSelected(this.active)}findBtnIndex(t){const e=t.composedPath();return this.slotted.findIndex(t=>e.includes(t))}findSelectedBtnIndex(){return this.slotted.findIndex(t=>t.hasAttribute("selected"))}isBtnDisabled(t){return this.slotted[t].disabled}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}switchBtnOnArrowPress(t,e=1){const i=this.getAvailableSelectedIndex(t,e);-1!==i&&(this.active=i,this.setSelected(i),this.notifySelectedChange())}getAvailableSelectedIndex(t,e=1){const i=this.slotted.length;for(let s=0,o=t;s<i;s+=1,o+=e){o<0?o=i-1:o>=i&&(o=0);const t=this.slotted[o];if(this.isFocusable(t))return o}return-1}isFocusable(t){return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")}handleClick(t){const e=this.findBtnIndex(t);-1!==e&&(this.isBtnDisabled(e)||(this.active=e,this.setSelected(e),this.notifySelectedChange()))}handleKeyDown(t){const{code:e}=t;switch(e){case o.Uz.Enter:case o.Uz.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case o.Uz.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case o.Uz.ArrowRight:this.active===this.slotted.length-1?this.switchBtnOnArrowPress(0):this.switchBtnOnArrowPress(this.active+1)}}render(){return n.html`
1249
1333
  <div role="group" class="md-button-group" part="button-group">
1250
1334
  <slot name="button"></slot>
1251
1335
  </div>
1252
- `}};d([(0,a.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),d([(0,a.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),d([(0,a.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),d([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=d([(0,r.wW)("md-button-group")],e),t.ELEMENT=e}(o||(o={}))},46312:(t,e,i)=>{i.d(e,{Coachmark:()=>o}),i(96798);var o,s=i(3001),r=i(31890),n=i(66677),a=i(26272),l=i(41488),d=i(23968),h=i(82043),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,s.dY)(l.LitElement)){constructor(){super(...arguments),this.message="",this.actionname="Next",this.hidebutton=!1,this.placement="auto",this.show=!1,this.color="default",this.slotContent=null}connectedCallback(){super.connectedCallback()}notifyCoachCreate(){this.dispatchEvent(new CustomEvent("coach-create",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}coachAction(){this.dispatchEvent(new CustomEvent("coach-action",{bubbles:!0,composed:!0,detail:{popper:this.popper}}))}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}update(t){var e;super.update(t),t.has("show")&&this.show&&(this.setFocusableElements(),(null===(e=this.focusableElements)||void 0===e?void 0:e.length)&&this.focusableElements[0].focus())}get coachWrapClassMap(){return{"md-coachmark--active":!!this.show}}get coachClassMap(){return{[`md-coachmark__popper--${this.placement}`]:!!this.placement,[`md-coachmark__popper--${this.color}`]:!!this.color}}static get styles(){return[a.A,h.A]}coachmarkContentTemplate(){return l.html`
1336
+ `}};h([(0,l.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),h([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,l.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=h([(0,r.wW)("md-button-group")],e),t.ELEMENT=e}(s||(s={}))},46312:(t,e,i)=>{i.d(e,{Coachmark:()=>s}),i(96798);var s,o=i(3001),r=i(31890),a=i(66677),n=i(4313),l=i(87161),d=i(70429),h=i(85125),c=i(21092),p=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,o.dY)(l.LitElement)){constructor(){super(...arguments),this.message="",this.actionname="Next",this.hidebutton=!1,this.placement="auto",this.show=!1,this.color="default",this.slotContent=null}connectedCallback(){super.connectedCallback()}notifyCoachCreate(){this.dispatchEvent(new CustomEvent("coach-create",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}coachAction(){this.dispatchEvent(new CustomEvent("coach-action",{bubbles:!0,composed:!0,detail:{popper:this.popper}}))}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}update(t){var e;super.update(t),t.has("show")&&this.show&&(this.setFocusableElements(),(null===(e=this.focusableElements)||void 0===e?void 0:e.length)&&this.focusableElements[0].focus())}get coachWrapClassMap(){return{"md-coachmark--active":!!this.show}}get coachClassMap(){return{[`md-coachmark__popper--${this.placement}`]:!!this.placement,[`md-coachmark__popper--${this.color}`]:!!this.color}}static get styles(){return[n.A,c.A]}coachmarkContentTemplate(){return l.html`
1253
1337
  <div class="md-coachmark__content">
1254
1338
  ${this.message?this.message:l.html` <slot name="coachmark-content" @slotchange=${this.handleSlotChange}></slot> `}
1255
1339
  <div class="md-coachmark__action">
1256
1340
  ${this.hidebutton?l.html` <slot name="coachmark-action"></slot> `:l.html` <md-button variant="secondary" @button-click=${this.coachAction}>${this.actionname}</md-button> `}
1257
1341
  </div>
1258
1342
  </div>
1259
- `}wrappedCoachmarkContentTemplate(){const t=(0,n.QZ)("md-theme",this);return"momentumV2"===(null==t?void 0:t.theme)?l.html`
1343
+ `}wrappedCoachmarkContentTemplate(){const t=(0,a.QZ)("md-theme",this);return"momentumV2"===(null==t?void 0:t.theme)?l.html`
1260
1344
  <md-theme theme="momentumV2" ?darkTheme=${!t.darkTheme}>
1261
1345
  ${this.coachmarkContentTemplate()}
1262
1346
  </md-theme>
1263
1347
  `:this.coachmarkContentTemplate()}render(){return l.html`
1264
- <div class="md-coachmark ${(0,d.classMap)(this.coachWrapClassMap)}">
1265
- <div class="md-coachmark__popper ${(0,d.classMap)(this.coachClassMap)}" tabindex="0">
1348
+ <div class="md-coachmark ${(0,h.classMap)(this.coachWrapClassMap)}">
1349
+ <div class="md-coachmark__popper ${(0,h.classMap)(this.coachClassMap)}" tabindex="0">
1266
1350
  ${this.wrappedCoachmarkContentTemplate()}
1267
1351
  <div id="arrow" class="md-coachmark__arrow" data-popper-arrow></div>
1268
1352
  </div>
@@ -1270,8 +1354,8 @@
1270
1354
  <slot></slot>
1271
1355
  </div>
1272
1356
  </div>
1273
- `}};c([(0,l.property)({type:String})],e.prototype,"message",void 0),c([(0,l.property)({type:String})],e.prototype,"actionname",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"hidebutton",void 0),c([(0,l.property)({type:String})],e.prototype,"placement",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"show",void 0),c([(0,l.property)({type:String})],e.prototype,"color",void 0),c([(0,l.query)(".md-coachmark__popper")],e.prototype,"popper",void 0),c([(0,l.query)(".md-coachmark__reference")],e.prototype,"reference",void 0),e=c([(0,r.w)("md-coachmark")],e),t.ELEMENT=e}(o||(o={}))},49256:(t,e,i)=>{i.d(e,{TimePicker:()=>g}),i(4928),i(96408);var o=i(90195),s=i(31890),r=i(81625),n=i(74548),a=i(26272),l=i(41488),d=i(40333),h=i(23968),c=i(97822),p=i(65796),u=i(17875),m=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const y=[o.R5.HOUR,o.R5.MINUTE,o.R5.SECOND,o.R5.AM_PM],b=[o.R5.HOUR,o.R5.MINUTE,o.R5.SECOND],v={[o.R5.HOUR]:"HH",[o.R5.MINUTE]:"MM",[o.R5.SECOND]:"SS",[o.R5.AM_PM]:"AM"};var g;!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.twoDigitAutoTab=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=o.R5.SECOND,this.locale="en-US",this.value=null,this.showDefaultNowTime=!0,this.finalTwentyFourFormat=!1,this.timeObject=(0,r.tB)(),this.tabNext=!1,this.timeValue={[o.R5.HOUR]:"12",[o.R5.MINUTE]:"00",[o.R5.SECOND]:"00",[o.R5.AM_PM]:"AM"},this.timeValidity={[o.R5.HOUR]:!0,[o.R5.MINUTE]:!0,[o.R5.SECOND]:!0,[o.R5.AM_PM]:!0},this.addLeadingZeros=t=>{if(t){if(0===t.length)return"00";if(1===t.length)return`0${t}`}return t},this.formatAndValidate=(t,e)=>{if(t&&(this.updateValidity(t,e),this.timeValidity[e]))return this.addLeadingZeros(t)},this.getLocaleTimeFormat=t=>{const e=t.toFormat("tt"),[,i]=e.split(" ");return!i},this.updateTimeValues=()=>{let t;t=this.finalTwentyFourFormat?this.timeObject.toFormat("HH:mm:ss"):this.timeObject.toFormat("hh:mm:ss a");const[e,i]=t.split(" "),s=e.split(":");b.forEach(t=>{const e=this.formatAndValidate(s.shift(),t);e&&(t===o.R5.HOUR&&i&&(this.timeValue[o.R5.AM_PM]=i),this.timeValue[t]=e)})},this.updateValidity=(t,e)=>{let i=!0;if(!this.showDefaultNowTime&&!this.value&&!t)return void(this.timeValidity[e]=!0);const s=e=>{null===t.match(e)&&(i=!1)};switch(e){case o.R5.HOUR:this.finalTwentyFourFormat?s(new RegExp(n.b.twentyFourHourString)):s(new RegExp(n.b.hourString));break;case o.R5.MINUTE:case o.R5.SECOND:s(new RegExp(n.b.minuteSecondString));break;case o.R5.AM_PM:s(new RegExp(n.b.amPmString))}this.timeValidity[e]=i},this.to12HourFormat=(t,e)=>{if(!this.finalTwentyFourFormat&&this.timeValidity[o.R5.HOUR]&&this.timeValidity[o.R5.AM_PM]){let i=Number(e);return"PM"===t?i=12+i%12:i%=12,i}},this.isEntireTimeValid=()=>{const t=[o.R5.HOUR];this.timeSpecificity!==o.R5.MINUTE&&this.timeSpecificity!==o.R5.SECOND||t.push(o.R5.MINUTE),this.timeSpecificity===o.R5.SECOND&&t.push(o.R5.SECOND),this.finalTwentyFourFormat||t.push(o.R5.AM_PM);const e=t.every(t=>this.timeValidity[t]);return(this.showDefaultNowTime||this.value||t.every(t=>!!this.timeValue[t]))&&e},this.updateTimeUnit=t=>{var e,i;if(this.updateValidity(this.timeValue[t],t),this.showDefaultNowTime||this.value){if(this.timeObject&&this.timeValidity[t]){if(t!==o.R5.AM_PM)this.timeObject=null===(e=this.timeObject)||void 0===e?void 0:e.set({[t]:Number(this.timeValue[t])});else{const t=this.to12HourFormat(this.timeValue[o.R5.AM_PM],this.timeValue[o.R5.HOUR]);void 0!==t&&(this.timeObject=null===(i=this.timeObject)||void 0===i?void 0:i.set({hour:t}))}this.isEntireTimeValid()&&(this.value=this.timeObject.toISOTime({suppressMilliseconds:!0})||this.value,this.dispatchTimeChangeEvent())}}else{const t=this.timeValue[o.R5.HOUR]||"00",e=this.timeValue[o.R5.MINUTE]||"00",i=this.timeValue[o.R5.SECOND]||"00";try{let s=`${t}:${e}:${i}`;!this.finalTwentyFourFormat&&this.timeValue[o.R5.AM_PM]&&(s+=` ${this.timeValue[o.R5.AM_PM]}`),this.timeObject=p.DateTime.fromFormat(s,this.finalTwentyFourFormat?"HH:mm:ss":"hh:mm:ss a"),this.timeObject.isValid&&this.isEntireTimeValid()&&(this.value=this.timeObject.toISOTime({suppressMilliseconds:!0}),this.dispatchTimeChangeEvent())}catch(t){console.warn("Failed to construct time object:")}}},this.formatTimeUnit=t=>{if(1===this.timeValue[t].length)"0"!==this.timeValue[t]&&(this.timeValue[t]="0"+this.timeValue[t]);else if(this.timeValue[t].length>2&&"0"===this.timeValue[t][0]){const e=this.timeValue[t].substring(1);RegExp(n.b.noPrecedingZerosString).test(e)&&(this.timeValue[t]=e)}this.requestUpdate()},this.messageType=t=>t?"":"error",this.generateTimeBox=t=>{const e=(i=this.finalTwentyFourFormat,{[o.R5.HOUR]:{type:"number",min:i?0:1,max:i?23:12},[o.R5.MINUTE]:{type:"number",min:0,max:59},[o.R5.SECOND]:{type:"number",min:0,max:59},[o.R5.AM_PM]:{type:"text",min:void 0,max:void 0}})[t];var i;return l.html`
1274
- ${t===o.R5.MINUTE||t===o.R5.SECOND?l.html` <span class="colon-separator">:</span> `:d.nothing}
1357
+ `}};p([(0,d.property)({type:String})],e.prototype,"message",void 0),p([(0,d.property)({type:String})],e.prototype,"actionname",void 0),p([(0,d.property)({type:Boolean})],e.prototype,"hidebutton",void 0),p([(0,d.property)({type:String})],e.prototype,"placement",void 0),p([(0,d.property)({type:Boolean})],e.prototype,"show",void 0),p([(0,d.property)({type:String})],e.prototype,"color",void 0),p([(0,d.query)(".md-coachmark__popper")],e.prototype,"popper",void 0),p([(0,d.query)(".md-coachmark__reference")],e.prototype,"reference",void 0),e=p([(0,r.w)("md-coachmark")],e),t.ELEMENT=e}(s||(s={}))},49256:(t,e,i)=>{i.d(e,{TimePicker:()=>g}),i(4928),i(96408);var s=i(90195),o=i(31890),r=i(81625),a=i(74548),n=i(4313),l=i(87161),d=i(70429),h=i(85125),c=i(20291),p=i(65796),u=i(39238),m=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const y=[s.R5.HOUR,s.R5.MINUTE,s.R5.SECOND,s.R5.AM_PM],b=[s.R5.HOUR,s.R5.MINUTE,s.R5.SECOND],v={[s.R5.HOUR]:"HH",[s.R5.MINUTE]:"MM",[s.R5.SECOND]:"SS",[s.R5.AM_PM]:"AM"};var g;!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.twoDigitAutoTab=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=s.R5.SECOND,this.locale="en-US",this.value=null,this.showDefaultNowTime=!0,this.finalTwentyFourFormat=!1,this.timeObject=(0,r.tB)(),this.tabNext=!1,this.timeValue={[s.R5.HOUR]:"12",[s.R5.MINUTE]:"00",[s.R5.SECOND]:"00",[s.R5.AM_PM]:"AM"},this.timeValidity={[s.R5.HOUR]:!0,[s.R5.MINUTE]:!0,[s.R5.SECOND]:!0,[s.R5.AM_PM]:!0},this.addLeadingZeros=t=>{if(t){if(0===t.length)return"00";if(1===t.length)return`0${t}`}return t},this.formatAndValidate=(t,e)=>{if(t&&(this.updateValidity(t,e),this.timeValidity[e]))return this.addLeadingZeros(t)},this.getLocaleTimeFormat=t=>{const e=t.toFormat("tt"),[,i]=e.split(" ");return!i},this.updateTimeValues=()=>{let t;t=this.finalTwentyFourFormat?this.timeObject.toFormat("HH:mm:ss"):this.timeObject.toFormat("hh:mm:ss a");const[e,i]=t.split(" "),o=e.split(":");b.forEach(t=>{const e=this.formatAndValidate(o.shift(),t);e&&(t===s.R5.HOUR&&i&&(this.timeValue[s.R5.AM_PM]=i),this.timeValue[t]=e)})},this.updateValidity=(t,e)=>{let i=!0;if(!this.showDefaultNowTime&&!this.value&&!t)return void(this.timeValidity[e]=!0);const o=e=>{null===t.match(e)&&(i=!1)};switch(e){case s.R5.HOUR:this.finalTwentyFourFormat?o(new RegExp(a.b.twentyFourHourString)):o(new RegExp(a.b.hourString));break;case s.R5.MINUTE:case s.R5.SECOND:o(new RegExp(a.b.minuteSecondString));break;case s.R5.AM_PM:o(new RegExp(a.b.amPmString))}this.timeValidity[e]=i},this.to12HourFormat=(t,e)=>{if(!this.finalTwentyFourFormat&&this.timeValidity[s.R5.HOUR]&&this.timeValidity[s.R5.AM_PM]){let i=Number(e);return"PM"===t?i=12+i%12:i%=12,i}},this.isEntireTimeValid=()=>{const t=[s.R5.HOUR];this.timeSpecificity!==s.R5.MINUTE&&this.timeSpecificity!==s.R5.SECOND||t.push(s.R5.MINUTE),this.timeSpecificity===s.R5.SECOND&&t.push(s.R5.SECOND),this.finalTwentyFourFormat||t.push(s.R5.AM_PM);const e=t.every(t=>this.timeValidity[t]);return(this.showDefaultNowTime||this.value||t.every(t=>!!this.timeValue[t]))&&e},this.updateTimeUnit=t=>{var e,i;if(this.updateValidity(this.timeValue[t],t),this.showDefaultNowTime||this.value){if(this.timeObject&&this.timeValidity[t]){if(t!==s.R5.AM_PM)this.timeObject=null===(e=this.timeObject)||void 0===e?void 0:e.set({[t]:Number(this.timeValue[t])});else{const t=this.to12HourFormat(this.timeValue[s.R5.AM_PM],this.timeValue[s.R5.HOUR]);void 0!==t&&(this.timeObject=null===(i=this.timeObject)||void 0===i?void 0:i.set({hour:t}))}this.isEntireTimeValid()&&(this.value=this.timeObject.toISOTime({suppressMilliseconds:!0})||this.value,this.dispatchTimeChangeEvent())}}else{const t=this.timeValue[s.R5.HOUR]||"00",e=this.timeValue[s.R5.MINUTE]||"00",i=this.timeValue[s.R5.SECOND]||"00";try{let o=`${t}:${e}:${i}`;!this.finalTwentyFourFormat&&this.timeValue[s.R5.AM_PM]&&(o+=` ${this.timeValue[s.R5.AM_PM]}`),this.timeObject=p.DateTime.fromFormat(o,this.finalTwentyFourFormat?"HH:mm:ss":"hh:mm:ss a"),this.timeObject.isValid&&this.isEntireTimeValid()&&(this.value=this.timeObject.toISOTime({suppressMilliseconds:!0}),this.dispatchTimeChangeEvent())}catch(t){console.warn("Failed to construct time object:")}}},this.formatTimeUnit=t=>{if(1===this.timeValue[t].length)"0"!==this.timeValue[t]&&(this.timeValue[t]="0"+this.timeValue[t]);else if(this.timeValue[t].length>2&&"0"===this.timeValue[t][0]){const e=this.timeValue[t].substring(1);RegExp(a.b.noPrecedingZerosString).test(e)&&(this.timeValue[t]=e)}this.requestUpdate()},this.messageType=t=>t?"":"error",this.generateTimeBox=t=>{const e=(i=this.finalTwentyFourFormat,{[s.R5.HOUR]:{type:"number",min:i?0:1,max:i?23:12},[s.R5.MINUTE]:{type:"number",min:0,max:59},[s.R5.SECOND]:{type:"number",min:0,max:59},[s.R5.AM_PM]:{type:"text",min:void 0,max:void 0}})[t];var i;return l.html`
1358
+ ${t===s.R5.MINUTE||t===s.R5.SECOND?l.html` <span class="colon-separator">:</span> `:l.nothing}
1275
1359
  <md-input
1276
1360
  newMomentum
1277
1361
  select-when-in-focus
@@ -1297,35 +1381,35 @@
1297
1381
  select-when-in-focus
1298
1382
  class="amPm-combo-box"
1299
1383
  .options=${["AM","PM"]}
1300
- .value=${[this.timeValue[o.R5.AM_PM]]}
1384
+ .value=${[this.timeValue[s.R5.AM_PM]]}
1301
1385
  .preventFilter=${!0}
1302
1386
  is-dropdown-arrow
1303
1387
  no-clear-icon
1304
- .inputValue=${this.timeValue[o.R5.AM_PM]}
1305
- .ariaLabel=${this.timeValue[o.R5.AM_PM]}
1306
- @change-selected="${t=>this.handleTimeChange(t,o.R5.AM_PM)}"
1388
+ .inputValue=${this.timeValue[s.R5.AM_PM]}
1389
+ .ariaLabel=${this.timeValue[s.R5.AM_PM]}
1390
+ @change-selected="${t=>this.handleTimeChange(t,s.R5.AM_PM)}"
1307
1391
  >
1308
1392
  </md-combobox>
1309
- `}get timePickerClassMap(){return{"twenty-four-hour-format":this.finalTwentyFourFormat}}connectedCallback(){super.connectedCallback(),this.initializeTimeValues()}updated(t){super.updated(t),["value","locale","twentyFourHourFormat","showDefaultNowTime","timeSpecificity"].some(e=>t.has(e))&&this.initializeTimeValues()}initializeTimeValues(){if(this.showDefaultNowTime||this.value){const t=this.value||(0,r.tB)().toISOTime({suppressMilliseconds:!0});t&&this.updateValue(t)}else{const t=p.DateTime.now().setLocale(this.locale),e=this.getLocaleTimeFormat(t);this.finalTwentyFourFormat=this.twentyFourHourFormat||e;const i=this.timeSpecificity===o.R5.MINUTE||this.timeSpecificity===o.R5.SECOND,s=this.timeSpecificity===o.R5.SECOND;this.timeValue={[o.R5.HOUR]:"",[o.R5.MINUTE]:i?"":"00",[o.R5.SECOND]:s?"":"00",[o.R5.AM_PM]:"AM"}}}updateValue(t){const e=t||this.value;if(!e)return;this.timeObject=p.DateTime.fromISO(e,{locale:this.locale});const i=this.getLocaleTimeFormat(this.timeObject);this.finalTwentyFourFormat=this.twentyFourHourFormat||i,this.value=this.timeObject.toISOTime({suppressMilliseconds:!0}),this.updateTimeValues()}dispatchTimeChangeEvent(){this.dispatchEvent(new CustomEvent("time-selection-change",{bubbles:!0,composed:!0,detail:{time:this.value,data:this.timeObject,isValid:this.isEntireTimeValid()}}))}handleTimeChange(t,e){var i,s,r;this.timeValue[e]=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.value,this.requestUpdate(),this.formatTimeUnit(e);const n=this.timeValue[e];if(this.twoDigitAutoTab&&this.tabNext&&(e!==o.R5.AM_PM&&2===n.length&&"0"!==n[0]||"00"===n)){t.preventDefault();const e=null==t?void 0:t.target,i=null===(s=this.shadowRoot)||void 0===s?void 0:s.querySelectorAll("md-input, md-combobox");if(i){const t=Array.prototype.findIndex.call(i,t=>null==e?void 0:e.isEqualNode(t)),o=(t+1)%i.length;if(t<i.length-1){const t=null===(r=i[o].shadowRoot)||void 0===r?void 0:r.querySelector("input");null==t||t.focus()}}}else e===o.R5.AM_PM&&this.updateTimeUnit(e);t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-change`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`,isValid:this.timeValidity[e]}}))}handleTimeKeyDown(t,e){var i;const s=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.srcEvent;if(!s)return void console.warn("srcEvent is undefined");const{key:r}=s;r===o.Uz.ArrowDown||r===o.Uz.ArrowUp?this.tabNext=!1:this.tabNext=!0,this.timeValidity[e]=!0,this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-keydown`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`}}))}handleTimeBlur(t,e){"0"===this.timeValue[e]&&(this.timeValue[e]="00"),this.updateTimeUnit(e),this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-blur`,{bubbles:!0,composed:!0,detail:{srcEvent:t,time:this.value,isValid:this.timeValidity[e]}}))}static get styles(){return[a.A,u.A]}render(){return l.html`
1393
+ `}get timePickerClassMap(){return{"twenty-four-hour-format":this.finalTwentyFourFormat}}connectedCallback(){super.connectedCallback(),this.initializeTimeValues()}updated(t){super.updated(t),["value","locale","twentyFourHourFormat","showDefaultNowTime","timeSpecificity"].some(e=>t.has(e))&&this.initializeTimeValues()}initializeTimeValues(){if(this.showDefaultNowTime||this.value){const t=this.value||(0,r.tB)().toISOTime({suppressMilliseconds:!0});t&&this.updateValue(t)}else{const t=p.DateTime.now().setLocale(this.locale),e=this.getLocaleTimeFormat(t);this.finalTwentyFourFormat=this.twentyFourHourFormat||e;const i=this.timeSpecificity===s.R5.MINUTE||this.timeSpecificity===s.R5.SECOND,o=this.timeSpecificity===s.R5.SECOND;this.timeValue={[s.R5.HOUR]:"",[s.R5.MINUTE]:i?"":"00",[s.R5.SECOND]:o?"":"00",[s.R5.AM_PM]:"AM"}}}updateValue(t){const e=t||this.value;if(!e)return;this.timeObject=p.DateTime.fromISO(e,{locale:this.locale});const i=this.getLocaleTimeFormat(this.timeObject);this.finalTwentyFourFormat=this.twentyFourHourFormat||i,this.value=this.timeObject.toISOTime({suppressMilliseconds:!0}),this.updateTimeValues()}dispatchTimeChangeEvent(){this.dispatchEvent(new CustomEvent("time-selection-change",{bubbles:!0,composed:!0,detail:{time:this.value,data:this.timeObject,isValid:this.isEntireTimeValid()}}))}handleTimeChange(t,e){var i,o,r;this.timeValue[e]=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.value,this.requestUpdate(),this.formatTimeUnit(e);const a=this.timeValue[e];if(this.twoDigitAutoTab&&this.tabNext&&(e!==s.R5.AM_PM&&2===a.length&&"0"!==a[0]||"00"===a)){t.preventDefault();const e=null==t?void 0:t.target,i=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("md-input, md-combobox");if(i){const t=Array.prototype.findIndex.call(i,t=>null==e?void 0:e.isEqualNode(t)),s=(t+1)%i.length;if(t<i.length-1){const t=null===(r=i[s].shadowRoot)||void 0===r?void 0:r.querySelector("input");null==t||t.focus()}}}else e===s.R5.AM_PM&&this.updateTimeUnit(e);t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-change`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`,isValid:this.timeValidity[e]}}))}handleTimeKeyDown(t,e){var i;const o=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.srcEvent;if(!o)return void console.warn("srcEvent is undefined");const{key:r}=o;r===s.Uz.ArrowDown||r===s.Uz.ArrowUp?this.tabNext=!1:this.tabNext=!0,this.timeValidity[e]=!0,this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-keydown`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`}}))}handleTimeBlur(t,e){"0"===this.timeValue[e]&&(this.timeValue[e]="00"),this.updateTimeUnit(e),this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-blur`,{bubbles:!0,composed:!0,detail:{srcEvent:t,time:this.value,isValid:this.timeValidity[e]}}))}static get styles(){return[n.A,u.A]}render(){return l.html`
1310
1394
  <div class="md-timepicker ${(0,h.classMap)(this.timePickerClassMap)}">
1311
1395
  <div class="time-inputs-wrapper">
1312
- ${this.generateTimeBox(o.R5.HOUR)}
1313
- ${this.timeSpecificity===o.R5.HOUR?d.nothing:this.generateTimeBox(o.R5.MINUTE)}
1314
- ${this.timeSpecificity===o.R5.MINUTE||this.timeSpecificity===o.R5.HOUR?d.nothing:this.generateTimeBox(o.R5.SECOND)}
1315
- ${this.finalTwentyFourFormat?d.nothing:this.generateAmPmComboBox()}
1396
+ ${this.generateTimeBox(s.R5.HOUR)}
1397
+ ${this.timeSpecificity===s.R5.HOUR?l.nothing:this.generateTimeBox(s.R5.MINUTE)}
1398
+ ${this.timeSpecificity===s.R5.MINUTE||this.timeSpecificity===s.R5.HOUR?l.nothing:this.generateTimeBox(s.R5.SECOND)}
1399
+ ${this.finalTwentyFourFormat?l.nothing:this.generateAmPmComboBox()}
1316
1400
  </div>
1317
1401
  </div>
1318
- `}};m([(0,l.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),m([(0,l.property)({type:Boolean,attribute:"twenty-four-hour-format",reflect:!0})],e.prototype,"twentyFourHourFormat",void 0),m([(0,l.property)({type:String})],e.prototype,"timeSpecificity",void 0),m([(0,l.property)({type:String})],e.prototype,"locale",void 0),m([(0,l.property)({type:String,reflect:!0})],e.prototype,"value",void 0),m([(0,l.property)({type:Boolean,attribute:"show-default-now-time"})],e.prototype,"showDefaultNowTime",void 0),m([(0,l.internalProperty)()],e.prototype,"finalTwentyFourFormat",void 0),m([(0,l.internalProperty)()],e.prototype,"timeObject",void 0),m([(0,l.internalProperty)()],e.prototype,"tabNext",void 0),m([(0,l.internalProperty)()],e.prototype,"timeValue",void 0),m([(0,l.internalProperty)()],e.prototype,"timeValidity",void 0),e=m([(0,s.w)("md-timepicker")],e),t.ELEMENT=e}(g||(g={}))},50226:(t,e,i)=>{i.d(e,{Tabs:()=>O}),i(61200),i(11323),i(83192);var o=i(90195),s=i(3001),r=i(66677),n=i(59164),a=i(26272),l=i(41488),d=i(40333),h=i(23968),c=i(97822),p=i(22818),u=i(8229),m=i(19239),y=i(41891),b=i.n(y),v=i(97103),g=i(30076),f=i(16643),w=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},C=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function n(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(n,a)}l((o=o.apply(t,e||[])).next())})};const x="tab-more",S="more-menu-copy-",E="visibleToVisible",$="visibleToHidden",T="hiddenToVisible",A="hiddenToHidden",k="previous",I="next",L="fromMoreTabs";var O;!function(t){let e=class extends((0,s.UM)((0,s.Io)((0,s.TS)(l.LitElement)))){constructor(){super(...arguments),this.justified=!1,this.hugTabs=!1,this.overflowLabel="More Tabs",this.draggable=!1,this.direction="horizontal",this.moreItemsScrollLimit=Number.MAX_SAFE_INTEGER,this._selectedIndex=0,this.animation=100,this.ghostClass="",this.chosenClass="",this.forceFallback=!1,this.fallbackClass="",this.tabsId="",this.persistSelection=!1,this.compUniqueId="",this.type="line",this.newMomentum=!1,this.variant="ghost",this.scrollArrow=!1,this.leftArrowAriaLabel="Backward Button",this.rightArrowAriaLabel="Forward Button",this.size=28,this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1,this.isMoreTabMenuOpen=!1,this.isMoreTabMenuSelected=!1,this.isMoreTabMenuScrollable=!1,this.moreTabMenuOffsetWidth=0,this.moreTabMenuMaxHeight=null,this.tabsViewportDataList=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.noTabsVisible=!1,this.defaultTabsOrderArray=[],this.tabsOrderPrefsArray=[],this.isMoreTabTruncated=!1,this.showLeftArrow=!1,this.showRightArrow=!1,this.tabs=[],this.panels=[],this.tabsCopy=[],this.tabsHash={},this.tabsCopyHash={},this.tabsIdxHash={},this.tabsVisibleIdxHash={},this.tabsHiddenIdxHash={},this.visibleTabsSortableInstance=null,this.hiddenTabsSortableInstance=null,this.updateArrowsVisibility=()=>{this.tabsListElement&&requestAnimationFrame(()=>{const{scrollLeft:t,scrollWidth:e,clientWidth:i}=this.tabsListElement;this.showLeftArrow=t>0,this.showRightArrow=t+i<e-5})},this.handleOnDragEnd=t=>C(this,void 0,void 0,function*(){var e,i,o,s,r,n,a,l,d,h;t.stopPropagation();const c=t.oldIndex,p=t.newIndex,u=[...this.tabsFilteredAsVisibleList],m=[...this.tabsFilteredAsHiddenList],y=this.getDragDirection(t);if(void 0!==c&&void 0!==p){switch(y){case $:{null===(i=null===(e=this.hiddenTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t.item.id))||void 0===i||i.remove();const o=u[c],s=m.slice(-1)[0],r=p===this.tabsFilteredAsHiddenList.length?p-1:p;m.splice(r,0,o),m.pop();const n=u.filter(e=>e.id!==this.getNormalizedTabId(t.item.id));n.push(s),this.tabsFilteredAsVisibleList=[...n],this.tabsFilteredAsHiddenList=[...m];break}case E:{const t=u[c];u.splice(c,1),u.splice(p,0,t),this.tabsFilteredAsVisibleList=u,p===this.tabsFilteredAsVisibleList.length-1&&(null===(s=null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children[this.visibleTabsContainerElement.children.length-1])||void 0===s||s.remove());const e=this.visibleTabsContainerElement.children[c],i=this.visibleTabsContainerElement.children[p];if(!e||!i)return;null===(r=this.visibleTabsContainerElement)||void 0===r||r.replaceChild(i,e),null===(n=this.visibleTabsContainerElement)||void 0===n||n.insertBefore(e,i);break}case T:{null===(l=null===(a=this.visibleTabsContainerElement)||void 0===a?void 0:a.querySelector("#"+t.item.id))||void 0===l||l.remove();const e=m[c],i=u.slice(-1)[0];m.splice(c,1),m.splice(0,0,i);const o=p===this.tabsFilteredAsVisibleList.length?p-1:p;u.splice(o,0,e),u.pop(),this.tabsFilteredAsVisibleList=u,this.tabsFilteredAsHiddenList=m;break}case A:{const t=m[c];m.splice(c,1),m.splice(p,0,t),this.tabsFilteredAsHiddenList=m,p===this.tabsFilteredAsHiddenList.length-1&&(null===(h=null===(d=this.hiddenTabsContainerElement)||void 0===d?void 0:d.children[this.hiddenTabsContainerElement.children.length-1])||void 0===h||h.remove());break}}if(this.compUniqueId){const t=[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],e=t.findIndex(t=>t.selected);this.storeSelectedTabIndex(e),this.tabsOrderPrefsArray=t.map(t=>t.name),localStorage.setItem(this.compUniqueId,this.tabsOrderPrefsArray.join(","))}}})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;if(-1===t)return;const i=this._selectedIndex;this._selectedIndex=t,i!==t&&(null===(e=this.tabs)||void 0===e?void 0:e.length)&&this.updateSelectedTab(t)}get isRtl(){return"rtl"===getComputedStyle(this).direction}generateOptions(){return{group:"shared",animation:10,swapThreshold:1,draggable:"md-tab",direction:this.direction,forceFallback:this.forceFallback,fallbackClass:this.fallbackClass,ghostClass:this.ghostClass,chosenClass:this.chosenClass,onEnd:this.handleOnDragEnd}}get currentTabsLayout(){return"horizontal"!==this.direction||this.scrollArrow?this.tabs:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList]}getCopyTabId(t){var e;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(S))?`${S}${t.id}`:t.id}getAriaControlId(t){var e,i;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(S))?`${S}${t.id}`:"tab_panel_"+(null===(i=t.id)||void 0===i?void 0:i.substring(4))}getTabIndex(t){var e,i;return this.isMoreTabMenuVisible&&0===this.getCurrentIndex(null==t?void 0:t.id)&&this.selected>(null===(e=this.tabsFilteredAsVisibleList)||void 0===e?void 0:e.length)-1||(null===(i=this.tabsFilteredAsVisibleList[this.selected])||void 0===i?void 0:i.id)===t.id?0:-1}getNormalizedTabId(t){return t.replace(S,"")}static get styles(){return[a.A,g.A]}ensureTabsUpdateComplete(t){return C(this,void 0,void 0,function*(){const e=t.map(t=>void 0!==t.updateComplete?t.updateComplete:null).filter(t=>null!==t);e.length&&(yield Promise.all(e))})}measureTabsOffsetWidth(){return this.justified||"vertical"===this.direction?this.tabs.map(t=>{t.setAttribute("measuringrealwidth","");const e=t.closable?t.offsetWidth+f.TAB_CROSS_WIDTH:t.offsetWidth;return t.removeAttribute("measuringrealwidth"),e}):this.tabs.map(t=>t.closable?t.offsetWidth+f.TAB_CROSS_WIDTH:t.offsetWidth)}updateIsMoreTabTruncated(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-menu-overlay__overflow-label");if(e){const t=e.scrollWidth>e.clientWidth;this.isMoreTabTruncated!=t&&(this.isMoreTabTruncated=t)}}measureHiddenTabsCopiesOffsetHeight(){return this.tabsCopy.map(t=>t.offsetHeight)}manageOverflow(){return C(this,void 0,void 0,function*(){var t,e;if("vertical"!==this.direction&&!this.scrollArrow){let i;i=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length?[...this.tabs]:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],i.forEach(t=>{var e,i,o,s,r,n;if((null===(e=t.children)||void 0===e?void 0:e.length)&&0===(null===(o=null===(i=t.children[0])||void 0===i?void 0:i.children)||void 0===o?void 0:o.length)){const e=null===(r=null===(s=null==t?void 0:t.querySelector("slot"))||void 0===s?void 0:s.assignedNodes({flatten:!0})[0])||void 0===r?void 0:r.cloneNode(!0);e&&(e.classList.add("tab-content"),null===(n=null==t?void 0:t.children[0])||void 0===n||n.appendChild(e))}});const o=i.length;if(this.tabsListElement&&o){const s=(null===(t=this.tabsSettingsElement)||void 0===t?void 0:t.offsetWidth)?this.tabsListElement.offsetWidth-(null===(e=this.tabsSettingsElement)||void 0===e?void 0:e.offsetWidth):this.tabsListElement.offsetWidth;yield this.ensureTabsUpdateComplete(this.tabs);const r=this.measureTabsOffsetWidth(),n=i.reduce((t,e,i)=>t+r[i],0);if(n){yield this.setupMoreTab();let t=!0;s<n&&(t=!1);const e=[];let a=0;i.forEach((i,n)=>{a+=r[n];const l=!t&&a+(n<o-1?this.moreTabMenuOffsetWidth:0)>s;e.push({isTabInViewportHidden:l,tabOffsetWidth:r[n]})}),this.tabsViewportDataList=e,this.tabsViewportDataList.forEach((t,e)=>this.tabs[e].viewportHidden=t.isTabInViewportHidden),this.isMoreTabMenuVisible=!!this.tabsViewportDataList.find(t=>t.isTabInViewportHidden),this.tabsFilteredAsVisibleList=i.filter((t,e)=>!this.tabsViewportDataList[e].isTabInViewportHidden),this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabsFilteredAsHiddenList=i.filter((t,e)=>this.tabsViewportDataList[e].isTabInViewportHidden),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce((t,e,i)=>(t[e.id]=i,t),{})}}this.updateIsMoreTabMenuSelected();const s=this.tabsFilteredAsHiddenList.find(t=>!t.disabled);this.updateHiddenIdPositiveTabIndex(s)}})}updateIsMoreTabMenuSelected(){this.isMoreTabMenuSelected=!!this.tabsFilteredAsHiddenList.find(t=>t.selected)}updateHiddenIdPositiveTabIndex(t){this.tabHiddenIdPositiveTabIndex=t?t.id:void 0}sortTabsAndPanes(){if(!this.tabsOrderPrefsArray.length)return;const t=(t,e)=>{var i,o;const s=null!==(i=t.getAttribute("name"))&&void 0!==i?i:"",r=null!==(o=e.getAttribute("name"))&&void 0!==o?o:"";return this.tabsOrderPrefsArray.indexOf(s)-this.tabsOrderPrefsArray.indexOf(r)};this.tabs.sort(t),this.panels.sort(t)}linkPanelsAndTabs(){return C(this,void 0,void 0,function*(){this.sortTabsAndPanes();const{tabs:t,panels:e}=this;if(0===t.length||0===e.length)return void console.warn("The tabs or panels count should't be equal zero.");t.length!==e.length&&console.warn(`The amount of tabs (${t.length}) doesn't match the amount of panels (${e.length}).`);const i="vertical"===this.direction,o=this.selectedIndex<0?0:this.selectedIndex;t.forEach((t,s)=>{const r=(0,n.O)("tabs"),a="tab_"+r,l="tab_panel_"+r;t.setAttribute("id",a),t.setAttribute("aria-controls",l),t.selected=o===s,t.newMomentum=this.newMomentum,t.type=this.type,t.variant=this.variant,t.size=this.newMomentum?this.size:void 0,this.scrollArrow&&(t.visibleTab=!0),t.vertical!==i&&(t.vertical=i),t.viewportHidden&&(i||this.scrollArrow)&&(t.viewportHidden=!1);const d=e[s];d?(d.setAttribute("id",l),d.setAttribute("aria-labelledby",a),d.selected=o===s,t.disabled&&(d.hidden=!0,d.selected=!1)):t.disabled=!0});let s=o;for(;s<t.length&&t[s].disabled;)s++;s=s===t.length?0:s,t[s].selected=!0,e[s].selected=!0,this.tabsHash=this.tabs.reduce((t,e)=>(t[e.id]=e,t),{}),this.tabsIdxHash=this.tabs.reduce((t,e,i)=>(t[e.id]=i,t),{})})}get slotItem(){return this.tabSlotElement}filterSlotted(){return this.tabSlotElement.assignedElements()}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),this.manageOverflow(),this.updateIsMoreTabTruncated(),this.scrollArrow&&this.updateArrowsVisibility()}getDragDirection(t){return t.from===this.visibleTabsContainerElement&&t.to===this.hiddenTabsContainerElement?$:t.from===this.visibleTabsContainerElement&&t.to===this.visibleTabsContainerElement?E:t.from===this.hiddenTabsContainerElement&&t.to===this.visibleTabsContainerElement?T:t.from===this.hiddenTabsContainerElement&&t.to===this.hiddenTabsContainerElement?A:void 0}makeTabCopyFocus(t){t&&t.focus()}handleTabClick(t){const{id:e}=t.detail;this.handleNewSelectedTab(e)}handleNewSelectedTab(t,e=!0){const i=this.tabsHash[this.getNormalizedTabId(t)];if(i&&!i.disabled){const t=this.tabsIdxHash[i.id];-1!==t&&this.updateSelectedTab(t,e);{const t=this.tabsCopyHash[this.getCopyTabId(i)];t&&e&&this.makeTabCopyFocus(t),this.updateHiddenIdPositiveTabIndex(i)}}}handleTabCrossClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseEvent(t){var e,i;const o=this.tabsHash[this.getNormalizedTabId(t)];if(o&&!o.disabled&&("auto"===o.closable||"custom"===o.closable)){const o=this.tabsFilteredAsVisibleList.findIndex(e=>this.getNormalizedTabId(e.id)===this.getNormalizedTabId(t));this.tabsFilteredAsVisibleList=this.tabsFilteredAsVisibleList.filter(e=>this.getNormalizedTabId(e.id)!==this.getNormalizedTabId(t)),null===(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t))||void 0===i||i.remove(),0!==this.tabsFilteredAsHiddenList.length&&(this.tabsFilteredAsVisibleList.push(this.tabsFilteredAsHiddenList[0]),this.tabsFilteredAsHiddenList.splice(0,1)),0===this.tabsFilteredAsHiddenList.length&&(this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1),this.handleUpdatedSeletedTabAfterCross(o)}}handleUpdatedSeletedTabAfterCross(t){var e;let i=t;for(;i<this.tabsFilteredAsVisibleList.length&&(null===(e=this.tabsFilteredAsVisibleList[i])||void 0===e?void 0:e.disabled);)i++;if(void 0===this.tabsFilteredAsVisibleList[i]||t===this.tabsFilteredAsVisibleList.length)for(i=t-1;i>=0&&this.tabsFilteredAsVisibleList[i].disabled;)i--;if(-1!==i){const t=this.tabs.findIndex(t=>t.id===this.tabsFilteredAsVisibleList[i].id);this.updateSelectedTab(t)}else this.updateSelectedTab(i);this.noTabsVisible=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length,this.requestUpdate()}setSelectedAttribute(t,e,i=!1){e&&(e.selected=i),t&&(t.selected=i,i&&(this.isMoreTabMenuSelected=this.isTabInMoreMenu(t)),this.isTabInMoreMenu(t)&&(this.isMoreTabMenuSelected=!0))}isTabInMoreMenu(t){return void 0!==this.tabsFilteredAsHiddenList.find(e=>e.id===t.id)}updateSelectedTab(t,e=!0){const{tabs:i,panels:o}=this,s=this.tabs.findIndex(t=>t.hasAttribute("selected"));if(i&&o&&(this.setSelectedAttribute((0,r.Qx)(i,s),(0,r.Qx)(o,s),!1),this.setSelectedAttribute((0,r.Qx)(i,t),(0,r.Qx)(o,t),!0)),t>=0&&t<i.length){this.dispatchSelectedChangedEvent(t);const o=this.currentTabsLayout.findIndex(e=>e.id===i[t].id);this.changeSelectedTabIdx(o,e)}}dispatchSelectedChangedEvent(t){const e=this.currentTabsLayout,i=this.tabs[t].id,o=e.findIndex(t=>t.id===i),s=[];e.forEach(t=>{s.push(t.name)}),this.dispatchEvent(new CustomEvent("selected-changed",{detail:{value:o,tabsOrder:s},composed:!0,bubbles:!0}))}changeSelectedTabIdx(t,e=!0){this.requestUpdate(),this.selected=t,this.updateComplete.then(()=>{var i,o;if(t<this.tabsFilteredAsVisibleList.length){if(e){const t=null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[this.selected];null==t||t.focus()}}else{const t=this.selected-this.tabsFilteredAsVisibleList.length,i=null===(o=this.hiddenTabsContainerElement)||void 0===o?void 0:o.children[t];e&&this.moveFocusToTab(i);const s=this.tabsFilteredAsHiddenList[t];(null==s?void 0:s.disabled)||this.updateHiddenIdPositiveTabIndex(s)}}),this.updateIsMoreTabMenuSelected(),this.storeSelectedTabIndex(t)}storeSelectedTabIndex(t){this.persistSelection&&this.tabsId&&t>-1&&""!==this.tabsId.trim()&&sessionStorage.setItem(this.tabsId,`${t}`)}getCurrentIndex(t){var e,i,o;if(this.scrollArrow){const e=this.tabs.length;for(let i=0;i<e;i++)if(this.tabs[i].id===t)return i}const s=null!==(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children.length)&&void 0!==i?i:0;for(let e=0;e<s;e++)if((null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children[e].id)===t)return e;return this.tabsVisibleIdxHash[t]}moveFocusToAdjacentTab(t,e){var i,o,s;const r=this.getCurrentIndex(t),n=this.slotItem.assignedElements();let a=0;if(this.scrollArrow){e===k?a=0===r?n.length-1:r-1:e===I&&(a=r===n.length-1?0:r+1),this.moveFocusToTab(n[a]);const t=n[a],o=t.getBoundingClientRect(),s=null===(i=this.tabsListElement)||void 0===i?void 0:i.getBoundingClientRect();return s&&(o.left>=s.left&&o.right<=s.right&&o.top>=s.top&&o.bottom<=s.bottom||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})),this.updateArrowsVisibility(),void(0,v.setTimeout)(()=>this.moveFocusToTab(n[a]),0)}const l=null===(o=this.visibleTabsContainerElement)||void 0===o?void 0:o.children,d=null!==(s=null==l?void 0:l.length)&&void 0!==s?s:0;l&&0!==d&&(e===k?a=0===r?d-1:r-1:e===I?a=r===d-1?0:r+1:e===L&&(a=this.selected>=d?0:this.selected),this.moveFocusToTab(l[a]))}moveFocusToTab(t){(0,v.setTimeout)(()=>null==t?void 0:t.focus(),0)}handleOverlayClose(){(0,v.setTimeout)(()=>{this.menuOverlayElement&&(this.menuOverlayElement.isOpen=!1)},0)}dispatchKeydownEvent(t,e){e&&this.dispatchEvent(new CustomEvent("tab-keydown",{detail:{id:e,key:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,srcEvent:t},bubbles:!0,composed:!0}))}handleTabKeydown(t){var e,i,s,r,n,a,l;const d=t.target;if(t.target!=this&&!this.tabs.find(t=>t.id===(null==d?void 0:d.id)))return!1;let h;if((null===(e=t.composedPath())||void 0===e?void 0:e.length)>0?h=t.composedPath()[0].id:t.originalTarget&&(h=t.originalTarget.id),!h)return;const c=this.getNormalizedTabId(h);this.dispatchKeydownEvent(t,c);const p=t.code,{shiftKey:u}=t,m=!!this.isMoreTabMenuVisible&&c===x,y=m&&this.isMoreTabMenuVisible?this.moreTabMenuElement:this.tabsHash[this.getNormalizedTabId(c)],b=!this.isMoreTabMenuVisible||y&&this.tabsVisibleIdxHash[y.id]>-1,v=!!this.isMoreTabMenuVisible&&y&&this.tabsHiddenIdxHash[y.id]>-1,g=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length-1:this.tabs.length-1,f=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length:-1,w=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length+this.tabsFilteredAsHiddenList.length-1:-1;switch(p){case o.Uz.Tab:m&&!this.isMoreTabMenuOpen&&u&&(t.preventDefault(),this.moveFocusToAdjacentTab(h,L));break;case o.Uz.End:m||(b?(t.preventDefault(),this.moveFocusToTab(null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[(null===(s=this.tabsFilteredAsVisibleList)||void 0===s?void 0:s.length)-1])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(r=this.hiddenTabsContainerElement)||void 0===r?void 0:r.children[(null===(n=this.tabsFilteredAsHiddenList)||void 0===n?void 0:n.length)-1])));break;case o.Uz.Home:b?(t.preventDefault(),this.moveFocusToTab(null===(a=this.visibleTabsContainerElement)||void 0===a?void 0:a.children[0])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(l=this.hiddenTabsContainerElement)||void 0===l?void 0:l.children[0]));break;case o.Uz.ArrowLeft:m||(b||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,this.isRtl?I:k));break;case o.Uz.ArrowRight:m||(b||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,this.isRtl?k:I));break;case o.Uz.ArrowUp:if(m);else if(b&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(0===this.selected?g:this.selected-1);else if(v){t.preventDefault();const e=this.selected===f?w:this.selected-1;this.changeSelectedTabIdx(e)}break;case o.Uz.ArrowDown:if(m);else if(b&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(this.selected===g?0:this.selected+1);else if(v){t.preventDefault();const e=this.selected===w?f:this.selected+1;this.changeSelectedTabIdx(e)}break;case o.Uz.Enter:case o.Uz.NumpadEnter:case o.Uz.Space:if(m){const t=this.tabsFilteredAsHiddenList.filter(t=>!t.disabled),e=t.length?t.find(t=>t.selected)||t[0]:void 0;if(this.updateHiddenIdPositiveTabIndex(e),e){const t=this.tabsIdxHash[this.getNormalizedTabId(e.id)];-1!==t&&this.updateSelectedTab(t)}}else if(y&&!y.disabled){const e=this.tabsIdxHash[this.getNormalizedTabId(y.id)];-1!==e&&(t.preventDefault(),this.updateSelectedTab(e))}}}setupTabsEvents(){this.addEventListener("tab-click",this.handleTabClick),this.addEventListener("tab-cross-click",this.handleTabCrossClick),this.addEventListener("tab-close-click",this.handleTabCloseClick),this.addEventListener("keydown",this.handleTabKeydown),this.addEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}teardownTabsEvents(){this.removeEventListener("tab-click",this.handleTabClick),this.removeEventListener("tab-cross-click",this.handleTabCrossClick),this.removeEventListener("tab-close-click",this.handleTabCloseClick),this.removeEventListener("keydown",this.handleTabKeydown),this.removeEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}clearTabOrderPrefs(t){const{compUniqueId:e}=t.detail;e===this.compUniqueId&&(localStorage.removeItem(this.tabsId),sessionStorage.removeItem(this.tabsId),localStorage.removeItem(this.compUniqueId),this.tabsOrderPrefsArray=this.defaultTabsOrderArray,this.selected=0,this.initializeTabs(),this.dispatchSelectedChangedEvent(0))}setupPanelsAndTabs(){this.tabSlotElement&&(this.tabs=this.tabSlotElement.assignedElements()),this.panelSlotElement&&(this.panels=this.panelSlotElement.assignedElements()),this.defaultTabsOrderArray=this.tabs.map(t=>t.name)}setupMoreTab(){return C(this,void 0,void 0,function*(){"vertical"!==this.direction&&this.moreTabMenuElement&&!this.isMoreTabMenuMeasured&&(this.moreTabMenuElement.classList.add("md-menu-overlay__more_tab--measuring"),yield this.moreTabMenuElement.updateComplete,this.moreTabMenuElement.offsetWidth&&(this.moreTabMenuOffsetWidth=this.moreTabMenuElement.offsetWidth,this.isMoreTabMenuMeasured=!0),this.moreTabMenuElement.classList.remove("md-menu-overlay__more_tab--measuring"))})}initializeSortable(){this.visibleTabsContainerElement&&this.hiddenTabsContainerElement&&(this.visibleTabsSortableInstance=b().create(this.visibleTabsContainerElement,this.generateOptions()),this.hiddenTabsSortableInstance=b().create(this.hiddenTabsContainerElement,this.generateOptions()))}initializeTabs(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),this.manageOverflow(),this.requestUpdate()}connectedCallback(){var t;if(super.connectedCallback(),this.setupTabsEvents(),this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=localStorage.getItem(this.tabsId);this.selected=t&&parseInt(t)>-1?parseInt(t):this.selected}this.compUniqueId&&(this.tabsOrderPrefsArray=(null===(t=localStorage.getItem(this.compUniqueId))||void 0===t?void 0:t.split(","))||[])}selectTabFromStorage(){if(this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=sessionStorage.getItem(this.tabsId);let e=0;if(t){const i=parseInt(t);e=i>-1?i:this.selected}const i=this.currentTabsLayout;i.length&&i[e].id?(this._selectedIndex=e,this.handleNewSelectedTab(i[e].id,!1)):this.selected=e}}disconnectedCallback(){super.disconnectedCallback(),this.teardownTabsEvents()}firstUpdated(t){var e;super.firstUpdated(t),this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.selectTabFromStorage(),this.scrollArrow&&(this.updateArrowsVisibility(),null===(e=this.tabsListElement)||void 0===e||e.addEventListener("scroll",this.updateArrowsVisibility))}onDirectionChanged(){return C(this,void 0,void 0,function*(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),yield this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),"horizontal"===this.direction&&(yield this.manageOverflow()),this.selectTabFromStorage(),this.scrollArrow&&this.updateArrowsVisibility()})}updated(t){var e;if(super.updated(t),t.has("direction")&&t.get("direction")!==this.direction&&this.onDirectionChanged(),t.has("slotted")&&this.initializeTabs(),!this.draggable||this.visibleTabsSortableInstance||this.hiddenTabsSortableInstance||this.initializeSortable(),t.has("tabsFilteredAsHiddenList")&&(this.tabsCopy=Array.from((null===(e=this.tabsCopyHiddenListElements)||void 0===e?void 0:e.values())||[]),this.tabsCopyHash=this.tabsCopy.reduce((t,e)=>(t[e.id]=e,t),{})),(t.has("tabsFilteredAsVisibleList")||t.has("tabsFilteredAsHiddenList"))&&(this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce((t,e,i)=>(t[e.id]=i,t),{})),t.has("isMoreTabMenuOpen")&&this.isMoreTabMenuVisible){const e=t.get("isMoreTabMenuOpen");this.isMoreTabMenuOpen&&!e&&(this.moreItemsScrollLimit<this.tabsCopy.length?(this.isMoreTabMenuScrollable=!0,this.moreTabMenuMaxHeight=`${this.measureHiddenTabsCopiesOffsetHeight().slice(0,this.moreItemsScrollLimit).reduce((t,e)=>t+e,0)}px`):(this.isMoreTabMenuScrollable=!1,this.moreTabMenuMaxHeight=null))}t.has("tabsId")&&this.selectTabFromStorage(),t.has("selectedIndex")&&(this.selected=this.selectedIndex,this.updateSelectedTab(this.selectedIndex,!1)),t.has("overflowLabel")&&this.updateIsMoreTabTruncated(),t.has("scrollArrow")&&this.onDirectionChanged()}scrollTabs(t){if(!this.tabsListElement||"vertical"===this.direction)return;const e="left"===t?-100:100;this.tabsListElement.scrollBy({left:e,behavior:"smooth"}),(0,v.setTimeout)(()=>this.updateArrowsVisibility(),300)}get moreMenuButtonTemplate(){return l.html`
1402
+ `}};m([(0,d.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),m([(0,d.property)({type:Boolean,attribute:"twenty-four-hour-format",reflect:!0})],e.prototype,"twentyFourHourFormat",void 0),m([(0,d.property)({type:String})],e.prototype,"timeSpecificity",void 0),m([(0,d.property)({type:String})],e.prototype,"locale",void 0),m([(0,d.property)({type:String,reflect:!0})],e.prototype,"value",void 0),m([(0,d.property)({type:Boolean,attribute:"show-default-now-time"})],e.prototype,"showDefaultNowTime",void 0),m([(0,d.state)()],e.prototype,"finalTwentyFourFormat",void 0),m([(0,d.state)()],e.prototype,"timeObject",void 0),m([(0,d.state)()],e.prototype,"tabNext",void 0),m([(0,d.state)()],e.prototype,"timeValue",void 0),m([(0,d.state)()],e.prototype,"timeValidity",void 0),e=m([(0,o.w)("md-timepicker")],e),t.ELEMENT=e}(g||(g={}))},50226:(t,e,i)=>{i.d(e,{Tabs:()=>O}),i(61200),i(11323),i(83192);var s=i(90195),o=i(3001),r=i(66677),a=i(59164),n=i(4313),l=i(87161),d=i(54765),h=i(70429),c=i(85125),p=i(58175),u=i(10318),m=i(16968),y=i(41891),b=i.n(y),v=i(97103),g=i(2669),f=i(16643),w=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},C=function(t,e,i,s){return new(i||(i=Promise))(function(o,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((s=s.apply(t,e||[])).next())})};const x="tab-more",S="more-menu-copy-",E="visibleToVisible",$="visibleToHidden",T="hiddenToVisible",A="hiddenToHidden",k="previous",I="next",L="fromMoreTabs";var O;!function(t){let e=class extends((0,o.UM)((0,o.Io)((0,o.TS)(l.LitElement)))){constructor(){super(...arguments),this.justified=!1,this.hugTabs=!1,this.overflowLabel="More Tabs",this.draggable=!1,this.direction="horizontal",this.moreItemsScrollLimit=Number.MAX_SAFE_INTEGER,this._selectedIndex=0,this.animation=100,this.ghostClass="",this.chosenClass="",this.forceFallback=!1,this.fallbackClass="",this.tabsId="",this.persistSelection=!1,this.compUniqueId="",this.type="line",this.newMomentum=!1,this.variant="ghost",this.scrollArrow=!1,this.leftArrowAriaLabel="Backward Button",this.rightArrowAriaLabel="Forward Button",this.size=28,this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1,this.isMoreTabMenuOpen=!1,this.isMoreTabMenuSelected=!1,this.isMoreTabMenuScrollable=!1,this.moreTabMenuOffsetWidth=0,this.moreTabMenuMaxHeight=null,this.tabsViewportDataList=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.noTabsVisible=!1,this.defaultTabsOrderArray=[],this.tabsOrderPrefsArray=[],this.isMoreTabTruncated=!1,this.showLeftArrow=!1,this.showRightArrow=!1,this.tabs=[],this.panels=[],this.tabsCopy=[],this.tabsHash={},this.tabsCopyHash={},this.tabsIdxHash={},this.tabsVisibleIdxHash={},this.tabsHiddenIdxHash={},this.visibleTabsSortableInstance=null,this.hiddenTabsSortableInstance=null,this.updateArrowsVisibility=()=>{this.tabsListElement&&requestAnimationFrame(()=>{const{scrollLeft:t,scrollWidth:e,clientWidth:i}=this.tabsListElement;this.showLeftArrow=t>0,this.showRightArrow=t+i<e-5})},this.handleOnDragEnd=t=>C(this,void 0,void 0,function*(){var e,i,s,o,r,a,n,l,d,h;t.stopPropagation();const c=t.oldIndex,p=t.newIndex,u=[...this.tabsFilteredAsVisibleList],m=[...this.tabsFilteredAsHiddenList],y=this.getDragDirection(t);if(void 0!==c&&void 0!==p){switch(y){case $:{null===(i=null===(e=this.hiddenTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t.item.id))||void 0===i||i.remove();const s=u[c],o=m.slice(-1)[0],r=p===this.tabsFilteredAsHiddenList.length?p-1:p;m.splice(r,0,s),m.pop();const a=u.filter(e=>e.id!==this.getNormalizedTabId(t.item.id));a.push(o),this.tabsFilteredAsVisibleList=[...a],this.tabsFilteredAsHiddenList=[...m];break}case E:{const t=u[c];u.splice(c,1),u.splice(p,0,t),this.tabsFilteredAsVisibleList=u,p===this.tabsFilteredAsVisibleList.length-1&&(null===(o=null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children[this.visibleTabsContainerElement.children.length-1])||void 0===o||o.remove());const e=this.visibleTabsContainerElement.children[c],i=this.visibleTabsContainerElement.children[p];if(!e||!i)return;null===(r=this.visibleTabsContainerElement)||void 0===r||r.replaceChild(i,e),null===(a=this.visibleTabsContainerElement)||void 0===a||a.insertBefore(e,i);break}case T:{null===(l=null===(n=this.visibleTabsContainerElement)||void 0===n?void 0:n.querySelector("#"+t.item.id))||void 0===l||l.remove();const e=m[c],i=u.slice(-1)[0];m.splice(c,1),m.splice(0,0,i);const s=p===this.tabsFilteredAsVisibleList.length?p-1:p;u.splice(s,0,e),u.pop(),this.tabsFilteredAsVisibleList=u,this.tabsFilteredAsHiddenList=m;break}case A:{const t=m[c];m.splice(c,1),m.splice(p,0,t),this.tabsFilteredAsHiddenList=m,p===this.tabsFilteredAsHiddenList.length-1&&(null===(h=null===(d=this.hiddenTabsContainerElement)||void 0===d?void 0:d.children[this.hiddenTabsContainerElement.children.length-1])||void 0===h||h.remove());break}}if(this.compUniqueId){const t=[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],e=t.findIndex(t=>t.selected);this.storeSelectedTabIndex(e),this.tabsOrderPrefsArray=t.map(t=>t.name),localStorage.setItem(this.compUniqueId,this.tabsOrderPrefsArray.join(","))}}})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;if(-1===t)return;const i=this._selectedIndex;this._selectedIndex=t,i!==t&&(null===(e=this.tabs)||void 0===e?void 0:e.length)&&this.updateSelectedTab(t)}get isRtl(){return"rtl"===getComputedStyle(this).direction}generateOptions(){return{group:"shared",animation:10,swapThreshold:1,draggable:"md-tab",direction:this.direction,forceFallback:this.forceFallback,fallbackClass:this.fallbackClass,ghostClass:this.ghostClass,chosenClass:this.chosenClass,onEnd:this.handleOnDragEnd}}get currentTabsLayout(){return"horizontal"!==this.direction||this.scrollArrow?this.tabs:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList]}getCopyTabId(t){var e;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(S))?`${S}${t.id}`:t.id}getAriaControlId(t){var e,i;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(S))?`${S}${t.id}`:"tab_panel_"+(null===(i=t.id)||void 0===i?void 0:i.substring(4))}getTabIndex(t){var e,i;return this.isMoreTabMenuVisible&&0===this.getCurrentIndex(null==t?void 0:t.id)&&this.selected>(null===(e=this.tabsFilteredAsVisibleList)||void 0===e?void 0:e.length)-1||(null===(i=this.tabsFilteredAsVisibleList[this.selected])||void 0===i?void 0:i.id)===t.id?0:-1}getNormalizedTabId(t){return t.replace(S,"")}static get styles(){return[n.A,g.A]}ensureTabsUpdateComplete(t){return C(this,void 0,void 0,function*(){const e=t.map(t=>void 0!==t.updateComplete?t.updateComplete:null).filter(t=>null!==t);e.length&&(yield Promise.all(e))})}measureTabsOffsetWidth(){return this.justified||"vertical"===this.direction?this.tabs.map(t=>{t.setAttribute("measuringrealwidth","");const e=t.closable?t.offsetWidth+f.TAB_CROSS_WIDTH:t.offsetWidth;return t.removeAttribute("measuringrealwidth"),e}):this.tabs.map(t=>t.closable?t.offsetWidth+f.TAB_CROSS_WIDTH:t.offsetWidth)}updateIsMoreTabTruncated(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-menu-overlay__overflow-label");if(e){const t=e.scrollWidth>e.clientWidth;this.isMoreTabTruncated!=t&&(this.isMoreTabTruncated=t)}}measureHiddenTabsCopiesOffsetHeight(){return this.tabsCopy.map(t=>t.offsetHeight)}manageOverflow(){return C(this,void 0,void 0,function*(){var t,e;if("vertical"!==this.direction&&!this.scrollArrow){let i;i=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length?[...this.tabs]:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],i.forEach(t=>{var e,i,s,o,r,a;if((null===(e=t.children)||void 0===e?void 0:e.length)&&0===(null===(s=null===(i=t.children[0])||void 0===i?void 0:i.children)||void 0===s?void 0:s.length)){const e=null===(r=null===(o=null==t?void 0:t.querySelector("slot"))||void 0===o?void 0:o.assignedNodes({flatten:!0})[0])||void 0===r?void 0:r.cloneNode(!0);e&&(e.classList.add("tab-content"),null===(a=null==t?void 0:t.children[0])||void 0===a||a.appendChild(e))}});const s=i.length;if(this.tabsListElement&&s){const o=(null===(t=this.tabsSettingsElement)||void 0===t?void 0:t.offsetWidth)?this.tabsListElement.offsetWidth-(null===(e=this.tabsSettingsElement)||void 0===e?void 0:e.offsetWidth):this.tabsListElement.offsetWidth;yield this.ensureTabsUpdateComplete(this.tabs);const r=this.measureTabsOffsetWidth(),a=i.reduce((t,e,i)=>t+r[i],0);if(a){yield this.setupMoreTab();let t=!0;o<a&&(t=!1);const e=[];let n=0;i.forEach((i,a)=>{n+=r[a];const l=!t&&n+(a<s-1?this.moreTabMenuOffsetWidth:0)>o;e.push({isTabInViewportHidden:l,tabOffsetWidth:r[a]})}),this.tabsViewportDataList=e,this.tabsViewportDataList.forEach((t,e)=>this.tabs[e].viewportHidden=t.isTabInViewportHidden),this.isMoreTabMenuVisible=!!this.tabsViewportDataList.find(t=>t.isTabInViewportHidden),this.tabsFilteredAsVisibleList=i.filter((t,e)=>!this.tabsViewportDataList[e].isTabInViewportHidden),this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabsFilteredAsHiddenList=i.filter((t,e)=>this.tabsViewportDataList[e].isTabInViewportHidden),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce((t,e,i)=>(t[e.id]=i,t),{})}}this.updateIsMoreTabMenuSelected();const o=this.tabsFilteredAsHiddenList.find(t=>!t.disabled);this.updateHiddenIdPositiveTabIndex(o)}})}updateIsMoreTabMenuSelected(){this.isMoreTabMenuSelected=!!this.tabsFilteredAsHiddenList.find(t=>t.selected)}updateHiddenIdPositiveTabIndex(t){this.tabHiddenIdPositiveTabIndex=t?t.id:void 0}sortTabsAndPanes(){if(!this.tabsOrderPrefsArray.length)return;const t=(t,e)=>{var i,s;const o=null!==(i=t.getAttribute("name"))&&void 0!==i?i:"",r=null!==(s=e.getAttribute("name"))&&void 0!==s?s:"";return this.tabsOrderPrefsArray.indexOf(o)-this.tabsOrderPrefsArray.indexOf(r)};this.tabs.sort(t),this.panels.sort(t)}linkPanelsAndTabs(){return C(this,void 0,void 0,function*(){this.sortTabsAndPanes();const{tabs:t,panels:e}=this;if(0===t.length||0===e.length)return void console.warn("The tabs or panels count should't be equal zero.");t.length!==e.length&&console.warn(`The amount of tabs (${t.length}) doesn't match the amount of panels (${e.length}).`);const i="vertical"===this.direction,s=this.selectedIndex<0?0:this.selectedIndex;t.forEach((t,o)=>{const r=(0,a.O)("tabs"),n="tab_"+r,l="tab_panel_"+r;t.setAttribute("id",n),t.setAttribute("aria-controls",l),t.selected=s===o,t.newMomentum=this.newMomentum,t.type=this.type,t.variant=this.variant,t.size=this.newMomentum?this.size:void 0,this.scrollArrow&&(t.visibleTab=!0),t.vertical!==i&&(t.vertical=i),t.viewportHidden&&(i||this.scrollArrow)&&(t.viewportHidden=!1);const d=e[o];d?(d.setAttribute("id",l),d.setAttribute("aria-labelledby",n),d.selected=s===o,t.disabled&&(d.hidden=!0,d.selected=!1)):t.disabled=!0});let o=s;for(;o<t.length&&t[o].disabled;)o++;o=o===t.length?0:o,t[o].selected=!0,e[o].selected=!0,this.tabsHash=this.tabs.reduce((t,e)=>(t[e.id]=e,t),{}),this.tabsIdxHash=this.tabs.reduce((t,e,i)=>(t[e.id]=i,t),{})})}get slotItem(){return this.tabSlotElement}filterSlotted(){return this.tabSlotElement.assignedElements()}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),this.manageOverflow(),this.updateIsMoreTabTruncated(),this.scrollArrow&&this.updateArrowsVisibility()}getDragDirection(t){return t.from===this.visibleTabsContainerElement&&t.to===this.hiddenTabsContainerElement?$:t.from===this.visibleTabsContainerElement&&t.to===this.visibleTabsContainerElement?E:t.from===this.hiddenTabsContainerElement&&t.to===this.visibleTabsContainerElement?T:t.from===this.hiddenTabsContainerElement&&t.to===this.hiddenTabsContainerElement?A:void 0}makeTabCopyFocus(t){t&&t.focus()}handleTabClick(t){const{id:e}=t.detail;this.handleNewSelectedTab(e)}handleNewSelectedTab(t,e=!0){const i=this.tabsHash[this.getNormalizedTabId(t)];if(i&&!i.disabled){const t=this.tabsIdxHash[i.id];-1!==t&&this.updateSelectedTab(t,e);{const t=this.tabsCopyHash[this.getCopyTabId(i)];t&&e&&this.makeTabCopyFocus(t),this.updateHiddenIdPositiveTabIndex(i)}}}handleTabCrossClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseEvent(t){var e,i;const s=this.tabsHash[this.getNormalizedTabId(t)];if(s&&!s.disabled&&("auto"===s.closable||"custom"===s.closable)){const s=this.tabsFilteredAsVisibleList.findIndex(e=>this.getNormalizedTabId(e.id)===this.getNormalizedTabId(t));this.tabsFilteredAsVisibleList=this.tabsFilteredAsVisibleList.filter(e=>this.getNormalizedTabId(e.id)!==this.getNormalizedTabId(t)),null===(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t))||void 0===i||i.remove(),0!==this.tabsFilteredAsHiddenList.length&&(this.tabsFilteredAsVisibleList.push(this.tabsFilteredAsHiddenList[0]),this.tabsFilteredAsHiddenList.splice(0,1)),0===this.tabsFilteredAsHiddenList.length&&(this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1),this.handleUpdatedSeletedTabAfterCross(s)}}handleUpdatedSeletedTabAfterCross(t){var e;let i=t;for(;i<this.tabsFilteredAsVisibleList.length&&(null===(e=this.tabsFilteredAsVisibleList[i])||void 0===e?void 0:e.disabled);)i++;if(void 0===this.tabsFilteredAsVisibleList[i]||t===this.tabsFilteredAsVisibleList.length)for(i=t-1;i>=0&&this.tabsFilteredAsVisibleList[i].disabled;)i--;if(-1!==i){const t=this.tabs.findIndex(t=>t.id===this.tabsFilteredAsVisibleList[i].id);this.updateSelectedTab(t)}else this.updateSelectedTab(i);this.noTabsVisible=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length,this.requestUpdate()}setSelectedAttribute(t,e,i=!1){e&&(e.selected=i),t&&(t.selected=i,i&&(this.isMoreTabMenuSelected=this.isTabInMoreMenu(t)),this.isTabInMoreMenu(t)&&(this.isMoreTabMenuSelected=!0))}isTabInMoreMenu(t){return void 0!==this.tabsFilteredAsHiddenList.find(e=>e.id===t.id)}updateSelectedTab(t,e=!0){const{tabs:i,panels:s}=this,o=this.tabs.findIndex(t=>t.hasAttribute("selected"));if(i&&s&&(this.setSelectedAttribute((0,r.Qx)(i,o),(0,r.Qx)(s,o),!1),this.setSelectedAttribute((0,r.Qx)(i,t),(0,r.Qx)(s,t),!0)),t>=0&&t<i.length){this.dispatchSelectedChangedEvent(t);const s=this.currentTabsLayout.findIndex(e=>e.id===i[t].id);this.changeSelectedTabIdx(s,e)}}dispatchSelectedChangedEvent(t){const e=this.currentTabsLayout,i=this.tabs[t].id,s=e.findIndex(t=>t.id===i),o=[];e.forEach(t=>{o.push(t.name)}),this.dispatchEvent(new CustomEvent("selected-changed",{detail:{value:s,tabsOrder:o},composed:!0,bubbles:!0}))}changeSelectedTabIdx(t,e=!0){this.requestUpdate(),this.selected=t,this.updateComplete.then(()=>{var i,s;if(t<this.tabsFilteredAsVisibleList.length){if(e){const t=null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[this.selected];null==t||t.focus()}}else{const t=this.selected-this.tabsFilteredAsVisibleList.length,i=null===(s=this.hiddenTabsContainerElement)||void 0===s?void 0:s.children[t];e&&this.moveFocusToTab(i);const o=this.tabsFilteredAsHiddenList[t];(null==o?void 0:o.disabled)||this.updateHiddenIdPositiveTabIndex(o)}}),this.updateIsMoreTabMenuSelected(),this.storeSelectedTabIndex(t)}storeSelectedTabIndex(t){this.persistSelection&&this.tabsId&&t>-1&&""!==this.tabsId.trim()&&sessionStorage.setItem(this.tabsId,`${t}`)}getCurrentIndex(t){var e,i,s;if(this.scrollArrow){const e=this.tabs.length;for(let i=0;i<e;i++)if(this.tabs[i].id===t)return i}const o=null!==(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children.length)&&void 0!==i?i:0;for(let e=0;e<o;e++)if((null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children[e].id)===t)return e;return this.tabsVisibleIdxHash[t]}moveFocusToAdjacentTab(t,e){var i,s,o;const r=this.getCurrentIndex(t),a=this.slotItem.assignedElements();let n=0;if(this.scrollArrow){e===k?n=0===r?a.length-1:r-1:e===I&&(n=r===a.length-1?0:r+1),this.moveFocusToTab(a[n]);const t=a[n],s=t.getBoundingClientRect(),o=null===(i=this.tabsListElement)||void 0===i?void 0:i.getBoundingClientRect();return o&&(s.left>=o.left&&s.right<=o.right&&s.top>=o.top&&s.bottom<=o.bottom||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})),this.updateArrowsVisibility(),void(0,v.setTimeout)(()=>this.moveFocusToTab(a[n]),0)}const l=null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children,d=null!==(o=null==l?void 0:l.length)&&void 0!==o?o:0;l&&0!==d&&(e===k?n=0===r?d-1:r-1:e===I?n=r===d-1?0:r+1:e===L&&(n=this.selected>=d?0:this.selected),this.moveFocusToTab(l[n]))}moveFocusToTab(t){(0,v.setTimeout)(()=>null==t?void 0:t.focus(),0)}handleOverlayClose(){(0,v.setTimeout)(()=>{this.menuOverlayElement&&(this.menuOverlayElement.isOpen=!1)},0)}dispatchKeydownEvent(t,e){e&&this.dispatchEvent(new CustomEvent("tab-keydown",{detail:{id:e,key:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,srcEvent:t},bubbles:!0,composed:!0}))}handleTabKeydown(t){var e,i,o,r,a,n,l;const d=t.target;if(t.target!=this&&!this.tabs.find(t=>t.id===(null==d?void 0:d.id)))return!1;let h;if((null===(e=t.composedPath())||void 0===e?void 0:e.length)>0?h=t.composedPath()[0].id:t.originalTarget&&(h=t.originalTarget.id),!h)return;const c=this.getNormalizedTabId(h);this.dispatchKeydownEvent(t,c);const p=t.code,{shiftKey:u}=t,m=!!this.isMoreTabMenuVisible&&c===x,y=m&&this.isMoreTabMenuVisible?this.moreTabMenuElement:this.tabsHash[this.getNormalizedTabId(c)],b=!this.isMoreTabMenuVisible||y&&this.tabsVisibleIdxHash[y.id]>-1,v=!!this.isMoreTabMenuVisible&&y&&this.tabsHiddenIdxHash[y.id]>-1,g=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length-1:this.tabs.length-1,f=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length:-1,w=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length+this.tabsFilteredAsHiddenList.length-1:-1;switch(p){case s.Uz.Tab:m&&!this.isMoreTabMenuOpen&&u&&(t.preventDefault(),this.moveFocusToAdjacentTab(h,L));break;case s.Uz.End:m||(b?(t.preventDefault(),this.moveFocusToTab(null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[(null===(o=this.tabsFilteredAsVisibleList)||void 0===o?void 0:o.length)-1])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(r=this.hiddenTabsContainerElement)||void 0===r?void 0:r.children[(null===(a=this.tabsFilteredAsHiddenList)||void 0===a?void 0:a.length)-1])));break;case s.Uz.Home:b?(t.preventDefault(),this.moveFocusToTab(null===(n=this.visibleTabsContainerElement)||void 0===n?void 0:n.children[0])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(l=this.hiddenTabsContainerElement)||void 0===l?void 0:l.children[0]));break;case s.Uz.ArrowLeft:m||(b||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,this.isRtl?I:k));break;case s.Uz.ArrowRight:m||(b||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,this.isRtl?k:I));break;case s.Uz.ArrowUp:if(m);else if(b&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(0===this.selected?g:this.selected-1);else if(v){t.preventDefault();const e=this.selected===f?w:this.selected-1;this.changeSelectedTabIdx(e)}break;case s.Uz.ArrowDown:if(m);else if(b&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(this.selected===g?0:this.selected+1);else if(v){t.preventDefault();const e=this.selected===w?f:this.selected+1;this.changeSelectedTabIdx(e)}break;case s.Uz.Enter:case s.Uz.NumpadEnter:case s.Uz.Space:if(m){const t=this.tabsFilteredAsHiddenList.filter(t=>!t.disabled),e=t.length?t.find(t=>t.selected)||t[0]:void 0;if(this.updateHiddenIdPositiveTabIndex(e),e){const t=this.tabsIdxHash[this.getNormalizedTabId(e.id)];-1!==t&&this.updateSelectedTab(t)}}else if(y&&!y.disabled){const e=this.tabsIdxHash[this.getNormalizedTabId(y.id)];-1!==e&&(t.preventDefault(),this.updateSelectedTab(e))}}}setupTabsEvents(){this.addEventListener("tab-click",this.handleTabClick),this.addEventListener("tab-cross-click",this.handleTabCrossClick),this.addEventListener("tab-close-click",this.handleTabCloseClick),this.addEventListener("keydown",this.handleTabKeydown),this.addEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}teardownTabsEvents(){this.removeEventListener("tab-click",this.handleTabClick),this.removeEventListener("tab-cross-click",this.handleTabCrossClick),this.removeEventListener("tab-close-click",this.handleTabCloseClick),this.removeEventListener("keydown",this.handleTabKeydown),this.removeEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}clearTabOrderPrefs(t){const{compUniqueId:e}=t.detail;e===this.compUniqueId&&(localStorage.removeItem(this.tabsId),sessionStorage.removeItem(this.tabsId),localStorage.removeItem(this.compUniqueId),this.tabsOrderPrefsArray=this.defaultTabsOrderArray,this.selected=0,this.initializeTabs(),this.dispatchSelectedChangedEvent(0))}setupPanelsAndTabs(){this.tabSlotElement&&(this.tabs=this.tabSlotElement.assignedElements()),this.panelSlotElement&&(this.panels=this.panelSlotElement.assignedElements()),this.defaultTabsOrderArray=this.tabs.map(t=>t.name)}setupMoreTab(){return C(this,void 0,void 0,function*(){"vertical"!==this.direction&&this.moreTabMenuElement&&!this.isMoreTabMenuMeasured&&(this.moreTabMenuElement.classList.add("md-menu-overlay__more_tab--measuring"),yield this.moreTabMenuElement.updateComplete,this.moreTabMenuElement.offsetWidth&&(this.moreTabMenuOffsetWidth=this.moreTabMenuElement.offsetWidth,this.isMoreTabMenuMeasured=!0),this.moreTabMenuElement.classList.remove("md-menu-overlay__more_tab--measuring"))})}initializeSortable(){this.visibleTabsContainerElement&&this.hiddenTabsContainerElement&&(this.visibleTabsSortableInstance=b().create(this.visibleTabsContainerElement,this.generateOptions()),this.hiddenTabsSortableInstance=b().create(this.hiddenTabsContainerElement,this.generateOptions()))}initializeTabs(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),this.manageOverflow(),this.requestUpdate()}connectedCallback(){var t;if(super.connectedCallback(),this.setupTabsEvents(),this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=localStorage.getItem(this.tabsId);this.selected=t&&parseInt(t)>-1?parseInt(t):this.selected}this.compUniqueId&&(this.tabsOrderPrefsArray=(null===(t=localStorage.getItem(this.compUniqueId))||void 0===t?void 0:t.split(","))||[])}selectTabFromStorage(){if(this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=sessionStorage.getItem(this.tabsId);let e=0;if(t){const i=parseInt(t);e=i>-1?i:this.selected}const i=this.currentTabsLayout;i.length&&i[e].id?(this._selectedIndex=e,this.handleNewSelectedTab(i[e].id,!1)):this.selected=e}}disconnectedCallback(){super.disconnectedCallback(),this.teardownTabsEvents()}firstUpdated(t){var e;super.firstUpdated(t),this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.selectTabFromStorage(),this.scrollArrow&&(this.updateArrowsVisibility(),null===(e=this.tabsListElement)||void 0===e||e.addEventListener("scroll",this.updateArrowsVisibility))}onDirectionChanged(){return C(this,void 0,void 0,function*(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),yield this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),"horizontal"===this.direction&&(yield this.manageOverflow()),this.selectTabFromStorage(),this.scrollArrow&&this.updateArrowsVisibility()})}updated(t){var e;if(super.updated(t),t.has("direction")&&t.get("direction")!==this.direction&&this.onDirectionChanged(),t.has("slotted")&&this.initializeTabs(),!this.draggable||this.visibleTabsSortableInstance||this.hiddenTabsSortableInstance||this.initializeSortable(),t.has("tabsFilteredAsHiddenList")&&(this.tabsCopy=Array.from((null===(e=this.tabsCopyHiddenListElements)||void 0===e?void 0:e.values())||[]),this.tabsCopyHash=this.tabsCopy.reduce((t,e)=>(t[e.id]=e,t),{})),(t.has("tabsFilteredAsVisibleList")||t.has("tabsFilteredAsHiddenList"))&&(this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce((t,e,i)=>(t[e.id]=i,t),{}),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce((t,e,i)=>(t[e.id]=i,t),{})),t.has("isMoreTabMenuOpen")&&this.isMoreTabMenuVisible){const e=t.get("isMoreTabMenuOpen");this.isMoreTabMenuOpen&&!e&&(this.moreItemsScrollLimit<this.tabsCopy.length?(this.isMoreTabMenuScrollable=!0,this.moreTabMenuMaxHeight=`${this.measureHiddenTabsCopiesOffsetHeight().slice(0,this.moreItemsScrollLimit).reduce((t,e)=>t+e,0)}px`):(this.isMoreTabMenuScrollable=!1,this.moreTabMenuMaxHeight=null))}t.has("tabsId")&&this.selectTabFromStorage(),t.has("selectedIndex")&&(this.selected=this.selectedIndex,this.updateSelectedTab(this.selectedIndex,!1)),t.has("overflowLabel")&&this.updateIsMoreTabTruncated(),t.has("scrollArrow")&&this.onDirectionChanged()}scrollTabs(t){if(!this.tabsListElement||"vertical"===this.direction)return;const e="left"===t?-100:100;this.tabsListElement.scrollBy({left:e,behavior:"smooth"}),(0,v.setTimeout)(()=>this.updateArrowsVisibility(),300)}get moreMenuButtonTemplate(){return l.html`
1319
1403
  <md-tab
1320
1404
  slot="menu-trigger"
1321
1405
  id="${x}"
1322
- size="${(0,c.ifDefined)(this.newMomentum?this.size:void 0)}"
1406
+ size="${(0,d.J)(this.newMomentum?this.size:void 0)}"
1323
1407
  aria-label="${this.overflowLabel}"
1324
1408
  aria-haspopup="true"
1325
1409
  role="button"
1326
1410
  tabindex="${this.isMoreTabMenuVisible?0:-1}"
1327
1411
  ?selected=${!!this.isMoreTabMenuVisible&&this.isMoreTabMenuSelected}
1328
- class="md-menu-overlay__more_tab ${(0,h.classMap)({"md-menu-overlay__more_tab--hidden":!this.isMoreTabMenuVisible})}"
1412
+ class="md-menu-overlay__more_tab ${(0,c.classMap)({"md-menu-overlay__more_tab--hidden":!this.isMoreTabMenuVisible})}"
1329
1413
  ?newMomentum=${this.newMomentum}
1330
1414
  type=${this.type}
1331
1415
  variant=${this.variant}
@@ -1342,7 +1426,7 @@
1342
1426
  ></md-icon>
1343
1427
  </md-tab>
1344
1428
  `}get moreMenuListTemplate(){return l.html`
1345
- ${(0,p.repeat)(this.tabsFilteredAsHiddenList,()=>(0,n.O)("menuitem_tabs"),t=>l.html`
1429
+ ${(0,p.repeat)(this.tabsFilteredAsHiddenList,()=>(0,a.O)("menuitem_tabs"),t=>l.html`
1346
1430
  <md-tab
1347
1431
  slot="draggable-item"
1348
1432
  ?disabled=${t.disabled}
@@ -1362,11 +1446,11 @@
1362
1446
  ${(0,m.unsafeHTML)(t.innerHTML)}
1363
1447
  </md-tab>
1364
1448
  `)}
1365
- `}get moreMenuTemplate(){return"vertical"===this.direction?d.nothing:l.html`
1449
+ `}get moreMenuTemplate(){return"vertical"===this.direction?l.nothing:l.html`
1366
1450
  <md-menu-overlay
1367
1451
  custom-width="${"226px"}"
1368
1452
  max-height="${"288px"}"
1369
- class="md-menu-overlay__more ${(0,h.classMap)({"md-menu-overlay__more--hidden":this.isMoreTabMenuMeasured&&!this.isMoreTabMenuVisible})}"
1453
+ class="md-menu-overlay__more ${(0,c.classMap)({"md-menu-overlay__more--hidden":this.isMoreTabMenuMeasured&&!this.isMoreTabMenuVisible})}"
1370
1454
  placement="bottom-end"
1371
1455
  @menu-overlay-open="${()=>this.isMoreTabMenuOpen=!0}"
1372
1456
  @menu-overlay-close="${()=>this.isMoreTabMenuOpen=!1}"
@@ -1393,12 +1477,12 @@
1393
1477
  </md-button>`}get renderTabSlot(){return l.html`
1394
1478
  <slot
1395
1479
  name="tab"
1396
- class="${(0,h.classMap)({"visible-tabs-slot":"horizontal"===this.direction&&!this.scrollArrow})}"
1480
+ class="${(0,c.classMap)({"visible-tabs-slot":"horizontal"===this.direction&&!this.scrollArrow})}"
1397
1481
  ></slot>
1398
1482
  `}get renderTabsWithMoreMenu(){return l.html`
1399
1483
  <div
1400
1484
  id="visible-tabs-list"
1401
- class="visible-tabs-container ${(0,h.classMap)({"md-tab__justified":this.justified&&!this.isMoreTabMenuVisible,"md-tab__hug":this.hugTabs,"visible-new-tabs":this.newMomentum})}"
1485
+ class="visible-tabs-container ${(0,c.classMap)({"md-tab__justified":this.justified&&!this.isMoreTabMenuVisible,"md-tab__hug":this.hugTabs,"visible-new-tabs":this.newMomentum})}"
1402
1486
  >
1403
1487
  ${(0,p.repeat)(this.tabsFilteredAsVisibleList,(t,e)=>`${t.id}-${e}`,t=>l.html`
1404
1488
  <md-tab
@@ -1412,7 +1496,7 @@
1412
1496
  .isCrossVisible=${!0}
1413
1497
  tabIndex="${this.getTabIndex(t)}"
1414
1498
  .newMomentum=${this.newMomentum}
1415
- size="${(0,c.ifDefined)(this.newMomentum?this.size:void 0)}"
1499
+ size="${(0,d.J)(this.newMomentum?this.size:void 0)}"
1416
1500
  variant=${this.variant}
1417
1501
  type=${this.type}
1418
1502
  .onlyIcon="${t.onlyIcon}"
@@ -1425,142 +1509,64 @@
1425
1509
  ${this.moreMenuTemplate}
1426
1510
  `}render(){return l.html`
1427
1511
  <div class="md-tabs-wrapper" part="tabs-wrapper">
1428
- ${this.scrollArrow&&this.showLeftArrow?this.tabsButtonArrow(this.isRtl?"right":"left"):d.nothing}
1512
+ ${this.scrollArrow&&this.showLeftArrow?this.tabsButtonArrow(this.isRtl?"right":"left"):l.nothing}
1429
1513
  <div
1430
1514
  part="tabs-list"
1431
- class="md-tab__list ${(0,h.classMap)({"md-tab__justified":this.justified&&!this.isMoreTabMenuVisible,"md-tab__hug":this.hugTabs,"no-tabs-visible":this.noTabsVisible,"vertical-tab-list":"vertical"===this.direction,"tab-new-momentum":this.newMomentum})}"
1432
- size="${(0,c.ifDefined)(this.newMomentum?this.size:void 0)}"
1515
+ class="md-tab__list ${(0,c.classMap)({"md-tab__justified":this.justified&&!this.isMoreTabMenuVisible,"md-tab__hug":this.hugTabs,"no-tabs-visible":this.noTabsVisible,"vertical-tab-list":"vertical"===this.direction,"tab-new-momentum":this.newMomentum})}"
1516
+ size="${(0,d.J)(this.newMomentum?this.size:void 0)}"
1433
1517
  role="tablist"
1434
1518
  >
1435
1519
  ${this.renderTabSlot}
1436
- ${"horizontal"!==this.direction||this.scrollArrow?d.nothing:this.renderTabsWithMoreMenu}
1520
+ ${"horizontal"!==this.direction||this.scrollArrow?l.nothing:this.renderTabsWithMoreMenu}
1437
1521
  <div class="md-tabs__settings" part="md-tabs__settings">
1438
1522
  <slot name="settings"></slot>
1439
1523
  </div>
1440
1524
  </div>
1441
- ${this.scrollArrow&&this.showRightArrow?this.tabsButtonArrow(this.isRtl?"left":"right"):d.nothing}
1525
+ ${this.scrollArrow&&this.showRightArrow?this.tabsButtonArrow(this.isRtl?"left":"right"):l.nothing}
1442
1526
  </div>
1443
1527
  <div
1444
1528
  part="tabs-content"
1445
- class="md-tab__content ${(0,h.classMap)({"no-tabs-visible":this.noTabsVisible})}"
1529
+ class="md-tab__content ${(0,c.classMap)({"no-tabs-visible":this.noTabsVisible})}"
1446
1530
  >
1447
- <slot name="panel"></slot>
1531
+ <slot name="panel" @slotchange=${this.initializeTabs}></slot>
1448
1532
  </div>
1449
- `}};w([(0,l.property)({type:Boolean})],e.prototype,"justified",void 0),w([(0,l.property)({type:Boolean,attribute:"hug-tabs"})],e.prototype,"hugTabs",void 0),w([(0,l.property)({type:String})],e.prototype,"overflowLabel",void 0),w([(0,l.property)({type:Boolean,attribute:"draggable"})],e.prototype,"draggable",void 0),w([(0,l.property)({type:String,reflect:!0})],e.prototype,"direction",void 0),w([(0,l.property)({type:Number,attribute:"more-items-scroll-limit"})],e.prototype,"moreItemsScrollLimit",void 0),w([(0,l.property)({type:Number,reflect:!0,attribute:"selected-index"})],e.prototype,"selectedIndex",null),w([(0,l.property)({type:Number})],e.prototype,"animation",void 0),w([(0,l.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),w([(0,l.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),w([(0,l.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),w([(0,l.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),w([(0,l.property)({type:String,attribute:"tabs-id"})],e.prototype,"tabsId",void 0),w([(0,l.property)({type:Boolean,attribute:"persist-selection"})],e.prototype,"persistSelection",void 0),w([(0,l.property)({type:String,attribute:"comp-unique-id"})],e.prototype,"compUniqueId",void 0),w([(0,l.property)({type:String})],e.prototype,"type",void 0),w([(0,l.property)({type:Boolean})],e.prototype,"newMomentum",void 0),w([(0,l.property)({type:String})],e.prototype,"variant",void 0),w([(0,l.property)({type:Boolean,attribute:"scroll-arrow"})],e.prototype,"scrollArrow",void 0),w([(0,l.property)({type:String,attribute:"left-arrow-aria-label"})],e.prototype,"leftArrowAriaLabel",void 0),w([(0,l.property)({type:String,attribute:"right-arrow-aria-label"})],e.prototype,"rightArrowAriaLabel",void 0),w([(0,l.property)({type:Number})],e.prototype,"size",void 0),w([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuVisible",void 0),w([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuMeasured",void 0),w([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuOpen",void 0),w([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuSelected",void 0),w([(0,l.internalProperty)()],e.prototype,"isMoreTabMenuScrollable",void 0),w([(0,l.internalProperty)()],e.prototype,"moreTabMenuOffsetWidth",void 0),w([(0,l.internalProperty)()],e.prototype,"moreTabMenuMaxHeight",void 0),w([(0,l.internalProperty)()],e.prototype,"tabsViewportDataList",void 0),w([(0,l.internalProperty)()],e.prototype,"tabsFilteredAsVisibleList",void 0),w([(0,l.internalProperty)()],e.prototype,"tabsFilteredAsHiddenList",void 0),w([(0,l.internalProperty)()],e.prototype,"noTabsVisible",void 0),w([(0,l.internalProperty)()],e.prototype,"defaultTabsOrderArray",void 0),w([(0,l.internalProperty)()],e.prototype,"tabsOrderPrefsArray",void 0),w([(0,l.internalProperty)()],e.prototype,"isMoreTabTruncated",void 0),w([(0,l.internalProperty)()],e.prototype,"showLeftArrow",void 0),w([(0,l.internalProperty)()],e.prototype,"showRightArrow",void 0),w([(0,l.query)("slot[name='tab']")],e.prototype,"tabSlotElement",void 0),w([(0,l.query)("slot[name='panel']")],e.prototype,"panelSlotElement",void 0),w([(0,l.query)(".md-tab__list[part='tabs-list']")],e.prototype,"tabsListElement",void 0),w([(0,l.query)(".md-tabs__settings[part='md-tabs__settings']")],e.prototype,"tabsSettingsElement",void 0),w([(0,l.query)(".md-menu-overlay__more_tab")],e.prototype,"moreTabMenuElement",void 0),w([(0,l.query)("md-menu-overlay")],e.prototype,"menuOverlayElement",void 0),w([(0,l.query)(".md-tab__list[part='tabs-more-list']")],e.prototype,"tabsMoreListElement",void 0),w([(0,l.queryAll)(".md-menu-overlay__more_list md-tab")],e.prototype,"tabsCopyHiddenListElements",void 0),w([(0,l.query)("#visible-tabs-list")],e.prototype,"visibleTabsContainerElement",void 0),w([(0,l.query)("#tabs-more-list")],e.prototype,"hiddenTabsContainerElement",void 0),e=w([(0,s.wW)("md-tabs")],e),t.ELEMENT=e}(O||(O={}))},50565:(t,e,i)=>{i.d(e,{EditableTextfield:()=>o});var o,s=i(96408),r=i(31890),n=i(74548),a=i(26272),l=i(31347),d=i.n(l),h=i(41488),c=i(40333),p=i(23968),u=i(97822),m=i(18728),y=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends h.LitElement{constructor(){super(...arguments),this.alignment="left",this.disabled=!1,this.isEditing=!1,this.maxLines="",this.content="Click to edit text",this.message={type:"error",message:"That is not a valid input."},this.alert=!1,this.hideMessage=!1,this.pattern="",this.type=null,this.ariaLabel="editable field",this.ariaDescribedBy="",this.messageController=new s.Input.MessageController,this.reportValidity=()=>{this.dispatchEvent(new Event("invalid",{bubbles:!1,cancelable:!0,composed:!0}))},this.checkValidity=t=>{let e=!0;const i=i=>{null===t.match(i)&&(e=!1)};if(this.pattern)i(new RegExp(this.pattern));else if(t&&this.type)switch(this.type){case"integer":i(new RegExp(n.b.integerString));break;case"decimal":i(new RegExp(n.b.decimalString))}return e},this.handleFocus=()=>{this.disabled||(this.isEditing=!0,this.setRange())},this.handleKeydown=t=>{var e;const{key:i,code:o}=t;if(["Tab","Meta","Shift","Delete","Backspace","Arrow"].some(t=>o.includes(t)))return;("integer"===this.type&&i.includes(".")||("integer"===this.type||"decimal"===this.type)&&o.match("Space"))&&t.preventDefault();const s=(null===(e=this.editableField)||void 0===e?void 0:e.innerText.trim())+i;if(this.type)if(isNaN(Number(s)))t.preventDefault();else{if("integer"!==this.type||Number.isInteger(Number(s)))return;t.preventDefault()}},this.handleBlur=()=>{var t,e;this.isEditing=!1,this.maxLines.length>0&&(null===(t=this.editableField)||void 0===t||t.scrollTo(0,0)),this.content=(null===(e=this.editableField)||void 0===e?void 0:e.innerText.trim())||"",this.alert=!1,this.handleValidation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleFocus)}firstUpdated(t){super.firstUpdated(t),this.innerText&&this.innerText.length>0?this.content=this.innerText.trim():this.innerText=d().sanitize(this.content)}updated(t){super.updated(t),t.has("content")&&this.editableField&&(this.editableField.innerText=d().sanitize(this.content))}setRange(){var t;if(this.editableField){const e=document.createRange(),i=window.getSelection(),o=null===(t=this.editableField.childNodes[0].nodeValue)||void 0===t?void 0:t.length;if(e.setStart(this.editableField.childNodes[0],o||0),e.collapse(!0),!i||0!==i.toString().length)return;i.removeAllRanges(),i.addRange(e),this.maxLines.length>0&&(this.editableField.scrollTop=this.editableField.scrollHeight)}}handleValidation(){var t;(this.type||this.pattern)&&((null===(t=this.checkValidity)||void 0===t?void 0:t.call(this,this.content))||(this.reportValidity(),this.showAlert()))}showAlert(){this.alert=!0}static get styles(){return[a.A,m.A]}get overflowStyles(){return this.maxLines.length&&this.maxLines.length>0&&`max-height: ${2*parseInt(this.maxLines)}rem; -webkit-line-clamp: ${this.maxLines}; word-break: break-all;`}messagesTemplate(){var t,e,i;return this.alert?h.html`
1533
+ `}};w([(0,h.property)({type:Boolean})],e.prototype,"justified",void 0),w([(0,h.property)({type:Boolean,attribute:"hug-tabs"})],e.prototype,"hugTabs",void 0),w([(0,h.property)({type:String})],e.prototype,"overflowLabel",void 0),w([(0,h.property)({type:Boolean,attribute:"draggable"})],e.prototype,"draggable",void 0),w([(0,h.property)({type:String,reflect:!0})],e.prototype,"direction",void 0),w([(0,h.property)({type:Number,attribute:"more-items-scroll-limit"})],e.prototype,"moreItemsScrollLimit",void 0),w([(0,h.property)({type:Number,reflect:!0,attribute:"selected-index"})],e.prototype,"selectedIndex",null),w([(0,h.property)({type:Number})],e.prototype,"animation",void 0),w([(0,h.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),w([(0,h.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),w([(0,h.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),w([(0,h.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),w([(0,h.property)({type:String,attribute:"tabs-id"})],e.prototype,"tabsId",void 0),w([(0,h.property)({type:Boolean,attribute:"persist-selection"})],e.prototype,"persistSelection",void 0),w([(0,h.property)({type:String,attribute:"comp-unique-id"})],e.prototype,"compUniqueId",void 0),w([(0,h.property)({type:String})],e.prototype,"type",void 0),w([(0,h.property)({type:Boolean})],e.prototype,"newMomentum",void 0),w([(0,h.property)({type:String})],e.prototype,"variant",void 0),w([(0,h.property)({type:Boolean,attribute:"scroll-arrow"})],e.prototype,"scrollArrow",void 0),w([(0,h.property)({type:String,attribute:"left-arrow-aria-label"})],e.prototype,"leftArrowAriaLabel",void 0),w([(0,h.property)({type:String,attribute:"right-arrow-aria-label"})],e.prototype,"rightArrowAriaLabel",void 0),w([(0,h.property)({type:Number})],e.prototype,"size",void 0),w([(0,h.state)()],e.prototype,"isMoreTabMenuVisible",void 0),w([(0,h.state)()],e.prototype,"isMoreTabMenuMeasured",void 0),w([(0,h.state)()],e.prototype,"isMoreTabMenuOpen",void 0),w([(0,h.state)()],e.prototype,"isMoreTabMenuSelected",void 0),w([(0,h.state)()],e.prototype,"isMoreTabMenuScrollable",void 0),w([(0,h.state)()],e.prototype,"moreTabMenuOffsetWidth",void 0),w([(0,h.state)()],e.prototype,"moreTabMenuMaxHeight",void 0),w([(0,h.state)()],e.prototype,"tabsViewportDataList",void 0),w([(0,h.state)()],e.prototype,"tabsFilteredAsVisibleList",void 0),w([(0,h.state)()],e.prototype,"tabsFilteredAsHiddenList",void 0),w([(0,h.state)()],e.prototype,"noTabsVisible",void 0),w([(0,h.state)()],e.prototype,"defaultTabsOrderArray",void 0),w([(0,h.state)()],e.prototype,"tabsOrderPrefsArray",void 0),w([(0,h.state)()],e.prototype,"isMoreTabTruncated",void 0),w([(0,h.state)()],e.prototype,"showLeftArrow",void 0),w([(0,h.state)()],e.prototype,"showRightArrow",void 0),w([(0,h.query)("slot[name='tab']")],e.prototype,"tabSlotElement",void 0),w([(0,h.query)("slot[name='panel']")],e.prototype,"panelSlotElement",void 0),w([(0,h.query)(".md-tab__list[part='tabs-list']")],e.prototype,"tabsListElement",void 0),w([(0,h.query)(".md-tabs__settings[part='md-tabs__settings']")],e.prototype,"tabsSettingsElement",void 0),w([(0,h.query)(".md-menu-overlay__more_tab")],e.prototype,"moreTabMenuElement",void 0),w([(0,h.query)("md-menu-overlay")],e.prototype,"menuOverlayElement",void 0),w([(0,h.query)(".md-tab__list[part='tabs-more-list']")],e.prototype,"tabsMoreListElement",void 0),w([(0,h.queryAll)(".md-menu-overlay__more_list md-tab")],e.prototype,"tabsCopyHiddenListElements",void 0),w([(0,h.query)("#visible-tabs-list")],e.prototype,"visibleTabsContainerElement",void 0),w([(0,h.query)("#tabs-more-list")],e.prototype,"hiddenTabsContainerElement",void 0),e=w([(0,o.wW)("md-tabs")],e),t.ELEMENT=e}(O||(O={}))},50565:(t,e,i)=>{i.d(e,{EditableTextfield:()=>s}),i(96408);var s,o=i(31890),r=i(74548),a=i(4313),n=i(31347),l=i.n(n),d=i(87161),h=i(70429),c=i(85125),p=i(20291),u=i(32093),m=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends d.LitElement{constructor(){super(...arguments),this.alignment="left",this.disabled=!1,this.isEditing=!1,this.maxLines="",this.content="Click to edit text",this.message={type:"error",message:"That is not a valid input."},this.alert=!1,this.hideMessage=!1,this.pattern="",this.type=null,this.ariaLabel="editable field",this.ariaDescribedBy="",this.reportValidity=()=>{this.dispatchEvent(new Event("invalid",{bubbles:!1,cancelable:!0,composed:!0}))},this.checkValidity=t=>{let e=!0;const i=i=>{null===t.match(i)&&(e=!1)};if(this.pattern)i(new RegExp(this.pattern));else if(t&&this.type)switch(this.type){case"integer":i(new RegExp(r.b.integerString));break;case"decimal":i(new RegExp(r.b.decimalString))}return e},this.handleFocus=()=>{this.disabled||(this.isEditing=!0,this.setRange())},this.handleKeydown=t=>{var e,i;const{key:s,code:o}=t;if(!["Tab","Meta","Shift","Delete","Backspace","Arrow"].some(t=>o.includes(t)))if("integer"===this.type&&(s.includes(".")||"-"===s&&(null===(e=this.editableField)||void 0===e?void 0:e.innerText.includes("-"))))t.preventDefault();else if("integer"!==this.type&&"decimal"!==this.type||!o.match("Space")){if(this.type&&1===s.length){const e=((null===(i=this.editableField)||void 0===i?void 0:i.innerText.trim())||"")+s;("integer"!==this.type||/^-?\d*$/.test(e))&&("decimal"!==this.type||/^-?\d*\.?\d*$/.test(e))||t.preventDefault()}}else t.preventDefault()},this.handleBlur=()=>{var t,e,i;this.isEditing=!1,this.maxLines.length>0&&(null===(t=this.editableField)||void 0===t||t.scrollTo(0,0)),this.content=(null===(i=null===(e=this.editableField)||void 0===e?void 0:e.innerText)||void 0===i?void 0:i.trim())||"",this.alert=!1,this.handleValidation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleFocus)}firstUpdated(t){super.firstUpdated(t),this.innerText&&this.innerText.trim().length>0&&this.innerText.trim()!==this.content&&(this.content=this.innerText.trim())}setRange(){var t;if(this.editableField){const e=document.createRange(),i=window.getSelection(),s=this.editableField.childNodes[0];if(!s||s.nodeType!==Node.TEXT_NODE)return;const o=(null===(t=s.nodeValue)||void 0===t?void 0:t.length)||0;e.setStart(s,o),e.collapse(!0),i&&0===i.toString().length&&(i.removeAllRanges(),i.addRange(e)),this.maxLines.length>0&&(this.editableField.scrollTop=this.editableField.scrollHeight)}}handleValidation(){var t;(this.type||this.pattern)&&((null===(t=this.checkValidity)||void 0===t?void 0:t.call(this,this.content))||(this.reportValidity(),this.showAlert()))}showAlert(){this.alert=!0}static get styles(){return[a.A,u.A]}get overflowStyles(){return this.maxLines.length&&this.maxLines.length>0&&`max-height: ${2*parseInt(this.maxLines)}rem; -webkit-line-clamp: ${this.maxLines}; word-break: break-all;`}messagesTemplate(){var t,e,i;return this.alert?d.html`
1450
1534
  <div class="md-editable-textfield__messages" style="display: ${this.hideMessage?"none":"block"}">
1451
1535
  <md-help-text
1452
1536
  id="alert-message"
1453
1537
  role="alert"
1454
1538
  aria-live="assertive"
1455
1539
  .messageType=${null===(t=this.message)||void 0===t?void 0:t.type}
1456
- aria-errormessage=${(0,u.ifDefined)(null===(e=this.message)||void 0===e?void 0:e.message)}
1540
+ aria-errormessage=${(0,p.ifDefined)(null===(e=this.message)||void 0===e?void 0:e.message)}
1457
1541
  >
1458
1542
  ${null===(i=this.message)||void 0===i?void 0:i.message}
1459
1543
  </md-help-text>
1460
1544
  </div>
1461
- `:c.nothing}render(){var t;const e={[`md-editable-textfield--${this.alignment}`]:this.alignment,"md-editable-textfield--disabled":this.disabled,[`md-editable-textfield--${null===(t=this.message)||void 0===t?void 0:t.type}`]:this.alert&&!!this.message,"md-editable-textfield--textoverflow":this.maxLines.length>0&&!this.isEditing};return h.html`
1545
+ `:d.nothing}render(){var t;const e={[`md-editable-textfield--${this.alignment}`]:this.alignment,"md-editable-textfield--disabled":this.disabled,[`md-editable-textfield--${null===(t=this.message)||void 0===t?void 0:t.type}`]:this.alert&&!!this.message,"md-editable-textfield--textoverflow":this.maxLines.length>0&&!this.isEditing};return d.html`
1462
1546
  <div
1463
1547
  part="editable-textfield"
1464
1548
  style="${this.overflowStyles}"
1465
- class="md-editable-textfield ${(0,p.classMap)(e)}"
1466
- role=${(0,u.ifDefined)(this.disabled?void 0:"textbox")}
1549
+ class="md-editable-textfield ${(0,c.classMap)(e)}"
1550
+ role=${(0,p.ifDefined)(this.disabled?void 0:"textbox")}
1467
1551
  tabindex=${this.disabled?"-1":"0"}
1468
1552
  ?contenteditable=${this.isEditing}
1469
1553
  @focus=${this.handleFocus}
1470
1554
  @blur=${this.handleBlur}
1471
1555
  @keydown=${t=>{this.handleKeydown(t)}}
1472
- aria-invalid=${(0,u.ifDefined)(this.disabled?void 0:this.alert?"true":"false")}
1473
- aria-label=${(0,u.ifDefined)(this.disabled?void 0:this.ariaLabel)}
1474
- aria-describedby=${(0,u.ifDefined)(this.disabled?void 0:this.ariaDescribedBy)}
1556
+ aria-invalid=${(0,p.ifDefined)(this.disabled?void 0:this.alert?"true":"false")}
1557
+ aria-label=${(0,p.ifDefined)(this.disabled?void 0:this.ariaLabel)}
1558
+ aria-describedby=${(0,p.ifDefined)(this.disabled?void 0:this.ariaDescribedBy)}
1475
1559
  >
1476
- ${d().sanitize(this.content)}
1560
+ ${l().sanitize(this.content)}
1477
1561
  </div>
1478
1562
  ${this.messagesTemplate()}
1479
- `}};y([(0,h.property)({type:String})],e.prototype,"alignment",void 0),y([(0,h.property)({type:Boolean})],e.prototype,"disabled",void 0),y([(0,h.property)({type:Boolean})],e.prototype,"isEditing",void 0),y([(0,h.property)({type:String,attribute:"max-lines",reflect:!0})],e.prototype,"maxLines",void 0),y([(0,h.property)({type:String,reflect:!0})],e.prototype,"content",void 0),y([(0,h.property)({type:Object})],e.prototype,"message",void 0),y([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"alert",void 0),y([(0,h.property)({type:Boolean})],e.prototype,"hideMessage",void 0),y([(0,h.property)({type:String})],e.prototype,"pattern",void 0),y([(0,h.property)({type:String})],e.prototype,"type",void 0),y([(0,h.property)({type:String})],e.prototype,"ariaLabel",void 0),y([(0,h.property)({type:String,attribute:"aria-described-by"})],e.prototype,"ariaDescribedBy",void 0),y([(0,h.query)(".md-editable-textfield")],e.prototype,"editableField",void 0),e=y([(0,r.w)("md-editable-field")],e),t.ELEMENT=e}(o||(o={}))},51219:(t,e,i)=>{i.r(e),i.d(e,{Accordion:()=>o.Accordion,AccordionItem:()=>s.AccordionItem,ActivityButton:()=>r.ActivityButton,AdvanceList:()=>n.AdvanceList,Alert:()=>l.Alert,AlertBanner:()=>a.AlertBanner,AudioPlayer:()=>d.AudioPlayer,Avatar:()=>h.Avatar,AvatarType:()=>c,Badge:()=>u.Badge,Breadcrumb:()=>S.Breadcrumb,Button:()=>$.Button,ButtonGroup:()=>E.ButtonGroup,Card:()=>k.Card,CardAi:()=>T.CardAi,CardV2:()=>A.CardV2,ChatMessage:()=>I.ChatMessage,Checkbox:()=>L.Checkbox,CheckboxGroup:()=>O.CheckboxGroup,Chip:()=>M.Chip,Coachmark:()=>P.Coachmark,CoachmarkPopover:()=>D.CoachmarkPopover,CodeEditor:()=>F,ComboBox:()=>N.ComboBox,CompositeAvatar:()=>p.CompositeAvatar,CountryCodePicker:()=>j.CountryCodePicker,DatePicker:()=>H.DatePicker,DatePickerCalendar:()=>W.DatePickerCalendar,DatePickerDay:()=>K.DatePickerDay,DatePickerMonth:()=>G.DatePickerMonth,DatePickerWeek:()=>Y.DatePickerWeek,DateRangePicker:()=>U.DateRangePicker,DateTimePicker:()=>q.DateTimePicker,Draggable:()=>X.Draggable,DraggableItem:()=>Z.DraggableItem,Dropdown:()=>Q.Dropdown,EditableTextfield:()=>J.EditableTextfield,Favorite:()=>tt.Favorite,FloatingButtonBar:()=>nt,FloatingMinimizedModal:()=>at.FloatingMinimizedModal,FloatingModal:()=>lt.FloatingModal,Form:()=>mt.Form,FormArray:()=>pt,FormControl:()=>ht,FormGroup:()=>ct,Grabber:()=>yt.Grabber,HelpText:()=>bt.HelpText,Icon:()=>g.Icon,Input:()=>gt.Input,InputFile:()=>vt.InputFile,Label:()=>ft.Label,Link:()=>wt.Link,List:()=>Ct.List,ListItem:()=>xt.ListItem,Loading:()=>St.Loading,MeetingAlert:()=>Et.MeetingAlert,Menu:()=>Tt.Menu,MenuItem:()=>At.MenuItem,MenuOverlay:()=>$t.MenuOverlay,Modal:()=>kt.Modal,NotificationBadge:()=>x,Pagination:()=>It.Pagination,PhoneInput:()=>Lt.PhoneInput,Popover:()=>Ot.Popover,PopoverController:()=>Ot.PopoverController,Presence:()=>Mt.Presence,ProgressBar:()=>Dt.ProgressBar,Radio:()=>Pt.Radio,RadioGroup:()=>Rt.RadioGroup,Slider:()=>_t.Slider,Spinner:()=>Bt.Spinner,Tab:()=>Vt.Tab,TabPanel:()=>Nt.TabPanel,Table:()=>Ft.Table,TableAdvanced:()=>zt.TableAdvanced,Tabs:()=>jt.Tabs,TaskItem:()=>Ut.TaskItem,Theme:()=>qt.Theme,ThemeManager:()=>Gt.ThemeManager,TimePicker:()=>Ht.TimePicker,ToggleSwitch:()=>Wt.ToggleSwitch,Tooltip:()=>et.Tooltip,Validators:()=>ut,iconUrlManager:()=>Kt.O,registerThemeManagerGlobally:()=>Gt.registerThemeManagerGlobally,themeManager:()=>Gt.themeManager});var o=i(33328),s=i(6779),r=i(94891),n=i(28307),a=i(19479),l=i(74896),d=i(23779),h=i(38028);const c=["bot","group","self","typing",""];var p=i(2207),u=i(63704),m=i(3001),y=i(41488),b=i(17518),v=i(73679),g=i(61200),f=i(15427);const w=y.css`:host{color:var(--badge-notification-primary-foreground-color);font-size:var(--font-size-body-small,.75rem);font-weight:var(--brand-font-weight-medium,500);line-height:var(--font-lineheight-body-small,1rem);font-family:var(--brand-font-medium);box-sizing:border-box;align-items:center;display:flex;height:fit-content;justify-content:center;width:fit-content}.md-notification-badge-overlay{outline:.0625rem solid var(--badge-notification-overlay-border-color)}.md-notification-badge-text{box-sizing:border-box;padding:0 .25rem;border-radius:6.25rem;min-width:1rem;display:flex;justify-content:center;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-dot{width:.75rem;height:.75rem;border-radius:50%;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-icon{padding:2px;size:1rem;border-radius:50%;box-sizing:border-box}.md-notification-badge-icon__primary{background-color:var(--badge-notification-primary-background-color);color:var(--badge-notification-primary-foreground-color)}.md-notification-badge-icon__success{background-color:var(--badge-notification-success-background-color);color:var(--badge-notification-success-foreground-color)}.md-notification-badge-icon__warning{background-color:var(--badge-notification-warning-background-color);color:var(--badge-notification-warning-foreground-color)}.md-notification-badge-icon__error{background-color:var(--badge-notification-error-background-color);color:var(--badge-notification-error-foreground-color)}.md-notification-badge-icon__secondary{background-color:var(--badge-notification-secondary-background-color);color:var(--badge-notification-secondary-foreground-color)}@media(forced-colors:active){.md-notification-badge-dot,.md-notification-badge-icon,.md-notification-badge-text{outline:.125rem solid}}`;var C=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let x=class extends y.LitElement{constructor(){super(...arguments),this.variant=f.zY.VARIANT,this.maxCounter=f.zY.MAX_COUNTER,this.overlay=!1,this.ariaLabel=null}static get styles(){return[w]}getCounterText(t,e){return void 0===e||"number"!=typeof e||0===t?"":e>t?`${t}+`:t>f.zY.MAX_COUNTER_LIMIT||e>f.zY.MAX_COUNTER_LIMIT?`${f.zY.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t,e){return y.html`
1480
- <md-icon
1481
- class="md-notification-badge-icon ${(0,b.classMap)({"md-notification-badge-overlay":this.overlay,[`md-notification-badge-icon__${e}`]:!0})}"
1482
- iconSet="momentumDesign"
1483
- name="${(0,v.ifDefined)(t)}"
1484
- size="${f.zY.ICON_SIZE}"
1485
- ></md-icon>
1486
- `}getBadgeDot(){return y.html`<div
1487
- class="md-notification-badge-dot ${(0,b.classMap)({"md-notification-badge-overlay":this.overlay})}"
1488
- ></div>`}getBadgeCounterText(){return y.html`
1489
- <div class="md-notification-badge-text ${(0,b.classMap)({"md-notification-badge-overlay":this.overlay})}">
1490
- ${this.getCounterText(this.maxCounter,this.counter)}
1491
- </div>
1492
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(f.M_).includes(this.variant)&&(this.variant=f.zY.VARIANT);const{iconName:t,type:e,variant:i}=this;switch(e){case f.ZE.ICON:return this.getBadgeIcon(t||"",i);case f.ZE.COUNTER:return this.getBadgeCounterText();case f.ZE.SUCCESS:return this.getBadgeIcon(f.UZ.SUCCESS_ICON_NAME,f.su.SUCCESS);case f.ZE.WARNING:return this.getBadgeIcon(f.UZ.WARNING_ICON_NAME,f.su.WARNING);case f.ZE.ERROR:return this.getBadgeIcon(f.UZ.ERROR_ICON_NAME,f.su.ERROR);case f.ZE.DOT:default:return this.type=f.ZE.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};C([(0,y.property)({type:String,reflect:!0})],x.prototype,"type",void 0),C([(0,y.property)({type:String,reflect:!0})],x.prototype,"variant",void 0),C([(0,y.property)({type:Number})],x.prototype,"counter",void 0),C([(0,y.property)({type:Number,attribute:"max-counter",reflect:!0})],x.prototype,"maxCounter",void 0),C([(0,y.property)({type:Boolean})],x.prototype,"overlay",void 0),C([(0,y.property)({type:String,attribute:"icon-name"})],x.prototype,"iconName",void 0),C([(0,y.property)({type:String,attribute:"aria-label"})],x.prototype,"ariaLabel",void 0),x=C([(0,m.wW)("md-notification-badge")],x);var S=i(92992),E=i(45629),$=i(96798),T=i(64311),A=i(90827),k=i(10654),I=i(95281),L=i(3664),O=i(55294),M=i(60046),D=i(29895),P=i(46312),R=i(26272),_=i(45001),B=i.n(_);const z=y.css`:host(md-code-editor) .md-code-editor{background:#091e26;border-radius:.25rem;color:#fff;min-height:18.75rem;overflow:hidden}:host(md-code-editor) .md-code-editor-header{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;background:#092d3b;flex:0 0 auto;font-size:14px;padding:.625rem}:host(md-code-editor) .md-code-editor-name{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center}:host(md-code-editor) .md-code-editor md-badge::part(badge){border-radius:.25rem;height:1.25rem;margin-right:.625rem;padding:.25rem .375rem;text-transform:capitalize}:host(md-code-editor) .md-code-editor-copy{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;line-height:1}:host(md-code-editor) .md-code-editor-copy-btn::part(button){background:0 0;color:#00a0d1;margin-left:.625rem}:host(md-code-editor) .md-code-editor-copy-btn[disabled]{cursor:not-allowed;opacity:.5}:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-quote{color:#ffecc2}:host(md-code-editor) .hljs-deletion,:host(md-code-editor) .hljs-name,:host(md-code-editor) .hljs-regexp,:host(md-code-editor) .hljs-selector-class,:host(md-code-editor) .hljs-selector-id,:host(md-code-editor) .hljs-tag,:host(md-code-editor) .hljs-template-variable,:host(md-code-editor) .hljs-variable{color:#ff9d52}:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-type{color:#fc9d03}:host(md-code-editor) .hljs-attribute{color:#ebd460}:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol{color:#93c437}:host(md-code-editor) .hljs-section,:host(md-code-editor) .hljs-title{color:#22c7d6}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{color:#f0e3fc}:host(md-code-editor) .hljs{background:rgba(0,0,0,0);color:#dedede;display:block;overflow-x:auto;padding:.5em}:host(md-code-editor) .hljs-emphasis{font-style:italic}:host(md-code-editor) .hljs-strong{font-weight:700}@media screen and (forced-colors:active){:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-attribute,:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-quote,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol,:host(md-code-editor) .hljs-type{color:highlight}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{font-weight:700}}@media(forced-colors:active){:host(md-code-editor) .md-code-editor{outline:1px solid CanvasText}:host(md-code-editor) .md-code-editor-header{outline:1px solid CanvasText}}`;var F,V=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends y.LitElement{constructor(){super(...arguments),this.copyLocalization="cURL",this.copiedLocalization="Copied",this.method="get",this.acceptLanguage="javascript",this.url="javascript",this.disableCopyButton=!0,this.acceptTypes="",this.copied=!1}static get styles(){return[R.A,z]}handleSlotChange(){if(this.slotNodes&&this.slotNodes.length){const t=this.slotNodes.find(t=>"CODE"===t.tagName);if(t){const e=t.textContent;e&&this.highlightBlock(e)}}}handleUrlSlotChange(){if(this.copied=!1,this.slotUrl&&this.slotUrl.length){const t=this.slotUrl.find(t=>t);if(t){const e=t.textContent;e&&this.copyUrl(e)}}}highlightBlock(t){t&&(this.codeBlock.innerText=t),B().highlightElement(this.codeBlock)}copyUrl(t){this.codeUrl.innerText=t,this.disableCopyButton=!1}copyClipboard(){this.disableCopyButton||this.selectTarget(this.codeUrl)}copyText(){try{document.execCommand("copy"),this.copied=!0}catch(t){console.warn("Copy text failed"),this.copied=!1}}select(t){const e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),e&&(e.removeAllRanges(),e.addRange(i))}selectTarget(t){this.select(t),this.copyText()}importLanguage(t){return e=this,o=void 0,r=function*(){try{const{default:e}=yield i(29599)(`./${t}`);B().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}},new((s=void 0)||(s=Promise))(function(t,i){function n(t){try{l(r.next(t))}catch(t){i(t)}}function a(t){try{l(r.throw(t))}catch(t){i(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof s?i:new s(function(t){t(i)})).then(n,a)}l((r=r.apply(e,o||[])).next())});var e,o,s,r}getAllAcceptTypes(){const t=B().listLanguages();return t.length?t.map(t=>B().getLanguage(`${t}`).aliases).map(t=>t.map(t=>`.${t}`)).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage),t.has("acceptTypes")&&this.highlightBlock()}render(){return y.html`
1493
- <div class="md-code-editor" part="code-editor">
1494
- <div class="md-code-editor-header">
1495
- <div class="md-code-editor-name">
1496
- <md-badge color="blue">
1497
- <slot name="method" method=${this.method}></slot>
1498
- </md-badge>
1499
- <span class="md-code-editor-url">
1500
- <slot name="code-url" @slotchange=${this.handleUrlSlotChange}>${this.url}</slot>
1501
- </span>
1502
- </div>
1503
- <div class="md-code-editor-copy">
1504
- <span>${this.copied?this.copiedLocalization.trim():this.copyLocalization.trim()}</span>
1505
- <md-button
1506
- circle
1507
- size="20"
1508
- ?disabled=${this.disableCopyButton}
1509
- @click=${this.copyClipboard}
1510
- class="md-code-editor-copy-btn"
1511
- >
1512
- <md-icon slot="icon" name="icon-copy_16"></md-icon>
1513
- </md-button>
1514
- </div>
1515
- </div>
1516
- <div class="md-code-editor-content">
1517
- <pre class="md-code-editor-code-block">
1518
- <slot name="code-block" @slotchange=${this.handleSlotChange}>
1519
- <code class=${this.acceptLanguage}>
1520
- </code>
1521
- </slot>
1522
- </pre>
1523
- </div>
1524
- </div>
1525
- `}};V([(0,y.property)({type:String})],e.prototype,"copyLocalization",void 0),V([(0,y.property)({type:String})],e.prototype,"copiedLocalization",void 0),V([(0,y.property)({type:String})],e.prototype,"method",void 0),V([(0,y.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),V([(0,y.property)({type:String})],e.prototype,"url",void 0),V([(0,y.query)("input[type='file']")],e.prototype,"input",void 0),V([(0,y.query)(".md-code-editor-code-block")],e.prototype,"codeBlock",void 0),V([(0,y.query)(".md-code-editor-url")],e.prototype,"codeUrl",void 0),V([(0,y.internalProperty)()],e.prototype,"disableCopyButton",void 0),V([(0,y.internalProperty)()],e.prototype,"acceptTypes",void 0),V([(0,y.internalProperty)()],e.prototype,"copied",void 0),V([(0,y.queryAssignedNodes)("code-block")],e.prototype,"slotNodes",void 0),V([(0,y.queryAssignedNodes)("code-url")],e.prototype,"slotUrl",void 0),e=V([(0,m.wW)("md-code-editor")],e),t.ELEMENT=e}(F||(F={}));var N=i(4928),j=i(18224),U=i(69494),q=i(85416),H=i(38654),W=i(63208),K=i(16754),G=i(17814),Y=i(10984),X=i(80072),Z=i(24627),Q=i(23184),J=i(50565),tt=i(99850),et=i(83192),it=i(40333),ot=i(97822);const st=y.css`:host{display:inline-flex;align-items:center;height:1.75rem;border-radius:1.5625rem;background-color:var(--floating-button-bar-bg-color);box-shadow:var(--md-elevation-1);padding:.25rem .5rem;gap:.5rem}.button{display:inline-flex;align-items:center;justify-content:center}.button.pill::part(button){font-size:.875rem;padding-left:.75rem;padding-right:.75rem}.cancel{color:var(--floating-button-bar-secondary-color)}.label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.label.primary{font-family:var(--brand-font-medium);color:var(--floating-button-bar-primary-color);flex:1;min-width:0;justify-content:center}.label.secondary{color:var(--floating-button-bar-secondary-color);padding-right:4px}.separator{width:1px;height:.75rem;background-color:var(--floating-button-bar-secondary-color)}md-tooltip::part(tooltip_reference){display:flex;align-items:center}`;var rt=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let nt=class extends y.LitElement{constructor(){super(...arguments),this.leadingLabel="",this.closeButtonAriaLabel="",this.showCloseButton=!0,this.actions=[]}static get styles(){return[st]}onCancelButttonAction(){this.dispatchEvent(new CustomEvent("cancel-button-action",{composed:!0,bubbles:!0}))}get closeButtonTemplate(){return y.html`
1526
- <md-tooltip
1527
- message="${(0,ot.ifDefined)(this.closeButtonAriaLabel)}"
1528
- ?disabled=${!this.closeButtonAriaLabel}
1529
- placement="top"
1530
- >
1531
- <md-button
1532
- class="button cancel"
1533
- circle
1534
- size="20"
1535
- variant="ghostInheritTextColor"
1536
- ariaLabel=${(0,ot.ifDefined)(this.closeButtonAriaLabel)}
1537
- @button-click=${()=>this.onCancelButttonAction()}
1538
- >
1539
- <md-icon slot="icon" iconSet="momentumDesign" name="cancel-bold" size="16"></md-icon>
1540
- </md-button>
1541
- </md-tooltip>
1542
- `}getPrimaryLabelTemplate(t){return y.html` <span class="label primary">${t}</span> `}getSecondaryLabelTemplate(t){return y.html` <span class="label secondary">${t}</span> `}get separatorTemplate(){return y.html` <div class="separator"></div> `}getIconTemplate(t){return y.html`${t.icon?y.html`<md-icon slot="icon" iconSet="momentumDesign" name=${t.icon} size="16"></md-icon>`:it.nothing}`}getPillButtonTemplate(t){return y.html`
1543
- <md-button class="button pill" size="24" variant="inverted-ghost" @button-click=${()=>t.action()}>
1544
- ${this.getIconTemplate(t)} ${this.getPrimaryLabelTemplate(t.label)}
1545
- </md-button>
1546
- `}getCircleButtonTemplate(t){return y.html`
1547
- <md-button class="button" circle size="24" variant="inverted-secondary" @button-click=${()=>t.action()}>
1548
- ${this.getIconTemplate(t)}
1549
- </md-button>
1550
- `}getTooltipCircleButtonTemplate(t){return y.html`
1551
- <md-tooltip message="${t.label}" placement="top"> ${this.getCircleButtonTemplate(t)} </md-tooltip>
1552
- `}getActionAndLabelTemplate(t){var e;const i=null!==(e=t.iconAlign)&&void 0!==e?e:"right";return y.html`
1553
- ${"left"===i?y.html`${this.getCircleButtonTemplate(t)} ${this.getPrimaryLabelTemplate(t.label)}`:y.html`${this.getPrimaryLabelTemplate(t.label)} ${this.getCircleButtonTemplate(t)}`}
1554
- `}getActionTemplate(t){return t.isIconOnly?this.getTooltipCircleButtonTemplate(t):this.getPillButtonTemplate(t)}getActionGroupTemplate(t){return y.html` ${this.separatorTemplate} ${t.actions.map(t=>this.getActionTemplate(t))} `}render(){return y.html`
1555
- ${this.showCloseButton?this.closeButtonTemplate:it.nothing} ${this.getSecondaryLabelTemplate(this.leadingLabel)}
1556
- ${this.actions.map(t=>this.getActionGroupTemplate(t))}
1557
- `}};rt([(0,y.property)({type:String})],nt.prototype,"leadingLabel",void 0),rt([(0,y.property)({type:String})],nt.prototype,"closeButtonAriaLabel",void 0),rt([(0,y.property)({type:Boolean})],nt.prototype,"showCloseButton",void 0),rt([(0,y.property)({type:Array})],nt.prototype,"actions",void 0),nt=rt([(0,y.customElement)("md-floating-button-bar")],nt);var at=i(58871),lt=i(73093);class dt{constructor(){this.listeners=new Set}onChange(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}emitChange(){for(const t of Array.from(this.listeners))t(this)}}class ht extends dt{constructor(t,e=[]){super(),this.validationErrors=[],this.touched=!1,this.currentValue=t,this.validators=e,this.validate()}get value(){return this.currentValue}markAsTouched(){this.touched=!0,this.validate()}get valid(){return 0===this.validationErrors.length}get errors(){return this.touched?this.validationErrors:[]}setValue(t){this.currentValue=t,this.markAsTouched()}validate(){this.emitChange(),this.validationErrors=this.validators.map(t=>t(this.currentValue)).filter(t=>null!==t)}}class ct extends dt{constructor(t){var e;super(),this.controls=t;for(const t of Object.keys(this.controls)){const i=this.controls[t];null===(e=i.onChange)||void 0===e||e.call(i,()=>this.emitChange())}}get(t){return this.controls[t]}get value(){const t={};for(const e in this.controls)t[e]=this.controls[e].value;return t}get valid(){return Object.values(this.controls).every(t=>t.valid)}validate(){for(const t of Object.values(this.controls))t.validate();this.emitChange()}markAllAsTouched(){Object.values(this.controls).forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}class pt extends dt{constructor(t){var e;super(),this.controls=t;for(const t of this.controls)null===(e=t.onChange)||void 0===e||e.call(t,()=>this.emitChange())}at(t){return this.controls[t]}push(t){var e;this.controls.push(t),null===(e=t.onChange)||void 0===e||e.call(t,()=>this.emitChange()),this.emitChange()}removeAt(t){this.controls.splice(t,1),this.emitChange()}get value(){return this.controls.map(t=>t.value)}get valid(){return this.controls.every(t=>t.valid)}get length(){return this.controls.length}getControls(){return this.controls}validate(){this.controls.forEach(t=>t.validate()),this.emitChange()}markAllAsTouched(){this.controls.forEach(t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)})}}const ut={required:()=>t=>null==t||"string"==typeof t&&""===t.trim()?{type:"required"}:null,minLength:t=>e=>e.length<t?{type:"minLength",count:t}:null,maxLength:t=>e=>e.length>t?{type:"maxLength",count:t}:null};var mt=i(97866),yt=i(69112),bt=i(20109),vt=i(52619),gt=i(96408),ft=i(6396),wt=i(19026),Ct=i(68490),xt=i(66245),St=i(69788),Et=i(61997),$t=i(11323),Tt=i(84032),At=i(48171),kt=i(32252),It=i(23026),Lt=i(84205),Ot=i(71128),Mt=i(15300),Dt=i(58287),Pt=i(81144),Rt=i(32217),_t=i(25428),Bt=i(12176),zt=i(77935),Ft=i(40428),Vt=i(16643),Nt=i(97737),jt=i(50226),Ut=i(86610),qt=i(1072),Ht=i(49256),Wt=i(20331),Kt=i(81786),Gt=i(37719)},52619:(t,e,i)=>{i.d(e,{InputFile:()=>o}),i(96798);var o,s=i(3001),r=i(26272),n=i(45001),a=i.n(n),l=i(41488),d=i(40333),h=i(97822),c=i(45213),p=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},u=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function n(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(n,a)}l((o=o.apply(t,e||[])).next())})};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.acceptLanguage="javascript",this.getLocalization="Input File",this.acceptTypes="",this.fileName=""}static get styles(){return[r.A,c.A]}triggerFileLoad(t){t.preventDefault(),this.input.click()}handleFile(t){return u(this,void 0,void 0,function*(){t.preventDefault();const e=this.input.files;if(e&&0!==e.length)for(const t of e){this.fileName=t.name;try{yield this.readFile(t)}catch(t){console.error("Error reading file",t)}}})}readFile(t){return new Promise((e,i)=>{const o=new FileReader;o.onload=t=>{e(t.target.result)},o.onerror=t=>i(t),o.readAsText(t)})}importLanguage(t){return u(this,void 0,void 0,function*(){try{const{default:e}=yield i(29599)(`./${t}`);a().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}})}getAllAcceptTypes(){const t=a().listLanguages();return t.length?t.map(t=>a().getLanguage(`${t}`).aliases).map(t=>t.map(t=>`.${t}`)).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage)}render(){return l.html`
1563
+ `}};m([(0,h.property)({type:String})],e.prototype,"alignment",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"disabled",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"isEditing",void 0),m([(0,h.property)({type:String,attribute:"max-lines",reflect:!0})],e.prototype,"maxLines",void 0),m([(0,h.property)({type:String,reflect:!0})],e.prototype,"content",void 0),m([(0,h.property)({type:Object})],e.prototype,"message",void 0),m([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"alert",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"hideMessage",void 0),m([(0,h.property)({type:String})],e.prototype,"pattern",void 0),m([(0,h.property)({type:String})],e.prototype,"type",void 0),m([(0,h.property)({type:String})],e.prototype,"ariaLabel",void 0),m([(0,h.property)({type:String,attribute:"aria-described-by"})],e.prototype,"ariaDescribedBy",void 0),m([(0,h.query)(".md-editable-textfield")],e.prototype,"editableField",void 0),e=m([(0,o.w)("md-editable-field")],e),t.ELEMENT=e}(s||(s={}))},52619:(t,e,i)=>{i.d(e,{InputFile:()=>s}),i(96798);var s,o=i(3001),r=i(4313),a=i(45001),n=i.n(a),l=i(87161),d=i(70429),h=i(20291),c=i(65812),p=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},u=function(t,e,i,s){return new(i||(i=Promise))(function(o,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((s=s.apply(t,e||[])).next())})};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.acceptLanguage="javascript",this.getLocalization="Input File",this.acceptTypes="",this.fileName=""}static get styles(){return[r.A,c.A]}triggerFileLoad(t){t.preventDefault(),this.input.click()}handleFile(t){return u(this,void 0,void 0,function*(){t.preventDefault();const e=this.input.files;if(e&&0!==e.length)for(const t of e){this.fileName=t.name;try{yield this.readFile(t)}catch(t){console.error("Error reading file",t)}}})}readFile(t){return new Promise((e,i)=>{const s=new FileReader;s.onload=t=>{e(t.target.result)},s.onerror=t=>i(t),s.readAsText(t)})}importLanguage(t){return u(this,void 0,void 0,function*(){try{const{default:e}=yield i(29599)(`./${t}`);n().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}})}getAllAcceptTypes(){const t=n().listLanguages();return t.length?t.map(t=>n().getLanguage(`${t}`).aliases).map(t=>t.map(t=>`.${t}`)).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage)}render(){return l.html`
1558
1564
  <div class="md-input-file">
1559
1565
  <label for="file-input">
1560
1566
  <md-button color="blue" class="md-input-file-btn" @click=${this.triggerFileLoad}>
1561
1567
  ${this.getLocalization.trim()}
1562
1568
  </md-button>
1563
- ${this.fileName.length?this.fileName:d.nothing}
1569
+ ${this.fileName.length?this.fileName:l.nothing}
1564
1570
  </label>
1565
1571
  <input
1566
1572
  type="file"
@@ -1570,17 +1576,17 @@
1570
1576
  @change=${t=>this.handleFile(t)}
1571
1577
  />
1572
1578
  </div>
1573
- `}};p([(0,l.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),p([(0,l.property)({type:String})],e.prototype,"getLocalization",void 0),p([(0,l.query)("input[type='file']")],e.prototype,"input",void 0),p([(0,l.internalProperty)()],e.prototype,"acceptTypes",void 0),p([(0,l.internalProperty)()],e.prototype,"fileName",void 0),e=p([(0,s.wW)("md-input-file")],e),t.ELEMENT=e}(o||(o={}))},55294:(t,e,i)=>{i.d(e,{CheckboxGroup:()=>o});var o,s=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(18841),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.label="group",this.alignment="vertical"}static get styles(){return[a.A,d.A]}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown)}switchCheckboxOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i)}handleKeyDown(t){const{code:e}=t;switch(e){case s.Uz.ArrowUp:case s.Uz.ArrowLeft:t.stopPropagation(),0===this.selected?this.switchCheckboxOnArrowPress(this.slotted.length-1,-1):this.switchCheckboxOnArrowPress(this.selected-1,-1);break;case s.Uz.ArrowDown:case s.Uz.ArrowRight:t.stopPropagation(),this.selected===this.slotted.length-1?this.switchCheckboxOnArrowPress(0):this.switchCheckboxOnArrowPress(this.selected+1)}}get slotElement(){return this.checkboxSlot}render(){return l.html`
1579
+ `}};p([(0,d.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),p([(0,d.property)({type:String})],e.prototype,"getLocalization",void 0),p([(0,d.query)("input[type='file']")],e.prototype,"input",void 0),p([(0,d.state)()],e.prototype,"acceptTypes",void 0),p([(0,d.state)()],e.prototype,"fileName",void 0),e=p([(0,o.wW)("md-input-file")],e),t.ELEMENT=e}(s||(s={}))},55294:(t,e,i)=>{i.d(e,{CheckboxGroup:()=>s});var s,o=i(90195),r=i(3001),a=i(31890),n=i(4313),l=i(87161),d=i(70429),h=i(32056),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.label="group",this.alignment="vertical"}static get styles(){return[n.A,h.A]}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown)}switchCheckboxOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i)}handleKeyDown(t){const{code:e}=t;switch(e){case o.Uz.ArrowUp:case o.Uz.ArrowLeft:t.stopPropagation(),0===this.selected?this.switchCheckboxOnArrowPress(this.slotted.length-1,-1):this.switchCheckboxOnArrowPress(this.selected-1,-1);break;case o.Uz.ArrowDown:case o.Uz.ArrowRight:t.stopPropagation(),this.selected===this.slotted.length-1?this.switchCheckboxOnArrowPress(0):this.switchCheckboxOnArrowPress(this.selected+1)}}get slotElement(){return this.checkboxSlot}render(){return l.html`
1574
1580
  <div role="group" aria-labelledby="id-group-label">
1575
1581
  <slot name="checkbox"></slot>
1576
1582
  </div>
1577
- `}};h([(0,l.property)({type:String,attribute:"group-label"})],e.prototype,"label",void 0),h([(0,l.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),h([(0,l.query)("slot[name='checkbox']")],e.prototype,"checkboxSlot",void 0),e=h([(0,n.w)("md-checkboxgroup")],e),t.ELEMENT=e}(o||(o={}))},57346:t=>{t.exports=A},58088:t=>{t.exports=T},58287:(t,e,i)=>{i.d(e,{ProgressBar:()=>o});var o,s=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(31107),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.dynamic=!1,this.color="",this.label="",this.displayFormat="percentage",this.type="indeterminate",this.min=0,this.max=100,this.value=25,this.adjustedValue=0,this.valueFraction=0,this.meterWidth="100",this.getDisplayFormat=()=>"indeterminate"===this.type?(this.value=100,null):(this.adjustedValue=this.max-this.value<0?this.max:this.value,this.valueFraction=this.adjustedValue/this.max*100||0,this.meterWidth=this.valueFraction.toFixed(0)+"%","none"===this.displayFormat?null:"percentage"===this.displayFormat?this.meterWidth:`${this.adjustedValue} / ${this.max}`),this.getColor=()=>this.color?this.color:this.dynamic?this.valueFraction<25?"success":this.valueFraction<50?"info":this.valueFraction<75?"warning":"danger":void 0}connectedCallback(){super.connectedCallback(),this.requestUpdate("value")}static get styles(){return[r.A,l.A]}render(){const t={[`progress--${this.type}`]:this.type,[`progress--${this.color}`]:this.color};return n.html`
1583
+ `}};c([(0,d.property)({type:String,attribute:"group-label"})],e.prototype,"label",void 0),c([(0,d.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),c([(0,d.query)("slot[name='checkbox']")],e.prototype,"checkboxSlot",void 0),e=c([(0,a.w)("md-checkboxgroup")],e),t.ELEMENT=e}(s||(s={}))},57346:t=>{t.exports=E},58088:t=>{t.exports=S},58175:t=>{t.exports=h},58287:(t,e,i)=>{i.d(e,{ProgressBar:()=>s});var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(29654),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.dynamic=!1,this.color="",this.label="",this.displayFormat="percentage",this.type="indeterminate",this.min=0,this.max=100,this.value=25,this.adjustedValue=0,this.valueFraction=0,this.meterWidth="100",this.getDisplayFormat=()=>"indeterminate"===this.type?(this.value=100,null):(this.adjustedValue=this.max-this.value<0?this.max:this.value,this.valueFraction=this.adjustedValue/this.max*100||0,this.meterWidth=this.valueFraction.toFixed(0)+"%","none"===this.displayFormat?null:"percentage"===this.displayFormat?this.meterWidth:`${this.adjustedValue} / ${this.max}`),this.getColor=()=>this.color?this.color:this.dynamic?this.valueFraction<25?"success":this.valueFraction<50?"info":this.valueFraction<75?"warning":"danger":void 0}connectedCallback(){super.connectedCallback(),this.requestUpdate("value")}static get styles(){return[r.A,d.A]}render(){const t={[`progress--${this.type}`]:this.type,[`progress--${this.color}`]:this.color};return a.html`
1578
1584
  <span>
1579
1585
  <div class="progressbar-info" data-key="${this.min}">
1580
1586
  <span class="progressbar-label">${this.label}</span>
1581
1587
  <span class="progressbar-progress">${this.getDisplayFormat()}</span>
1582
1588
  </div>
1583
- <div class="progress ${(0,a.classMap)(t)}" data-key="${this.max}">
1589
+ <div class="progress ${(0,l.classMap)(t)}" data-key="${this.max}">
1584
1590
  <span
1585
1591
  class="meter"
1586
1592
  role="progressbar"
@@ -1594,7 +1600,7 @@
1594
1600
  </span>
1595
1601
  </div>
1596
1602
  </span>
1597
- `}};d([(0,n.property)({type:Boolean})],e.prototype,"dynamic",void 0),d([(0,n.property)({type:String})],e.prototype,"color",void 0),d([(0,n.property)({type:String})],e.prototype,"label",void 0),d([(0,n.property)({type:String})],e.prototype,"displayFormat",void 0),d([(0,n.property)({type:String})],e.prototype,"type",void 0),d([(0,n.property)({type:Number})],e.prototype,"min",void 0),d([(0,n.property)({type:Number})],e.prototype,"max",void 0),d([(0,n.property)({type:Number})],e.prototype,"value",void 0),d([(0,n.property)({type:Number})],e.prototype,"adjustedValue",void 0),d([(0,n.property)({type:Number})],e.prototype,"valueFraction",void 0),d([(0,n.property)({type:String})],e.prototype,"meterWidth",void 0),e=d([(0,s.w)("md-progress-bar")],e),t.ELEMENT=e}(o||(o={}))},58871:(t,e,i)=>{i.d(e,{FloatingMinimizedModal:()=>o}),i(96798),i(61200);var o,s=i(90195),r=i(3001),n=i(31890),a=i(66677),l=i(26272),d=(i(58088),i(57346),i(69e3),i(20727)),h=i.n(d),c=(i(3288),i(41488)),p=i(40333),u=i(97822),m=i(67330),y=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.yC)(c.LitElement)){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.closeAriaLabel="Close Modal",this.minimize=!1,this.maximizeIconAriaLabel="Maximize Modal",this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.minPosition?{initialX:Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.minPosition)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:o}=this.getTransformValues(t);this.setTargetPosition(e,i,o),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[l.A,m.A]}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",(0,a.sg)(()=>this.setInteractInstance(),250))}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance(),this.setFocusOnContainer()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("minPosition")&&!t.has("show")&&this.setInitialTargetPosition(),t.has("minimize")&&void 0!==t.get("minimize")&&this.setFocusOnContainer()}isNewPositionNotSame(){var t,e,i,o;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.minPosition)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(o=this.minPosition)||void 0===o?void 0:o.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),Number(null===(e=this.minPosition)||void 0===e?void 0:e.y))}setFocusOnContainer(){this.container&&(this.container.setAttribute("tabindex","0"),this.container.focus())}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-minimize-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame(()=>{return t=this,e=void 0,o=function*(){yield this.updateComplete,this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))(function(s,r){function n(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(n,a)}l((o=o.apply(t,e||[])).next())});var t,e,i,o})}setInteractInstance(){requestAnimationFrame(()=>{this.container&&h()(this.container).draggable({autoScroll:!0,allowFrom:this.header,listeners:{move:this.dragMoveListener,end:this.dragEndListener},modifiers:[h().modifiers.restrictRect({restriction:document.body.getBoundingClientRect(),endOnly:!0})]})})}handleKeyDown(t){t.code!==s.Uz.Enter&&t.code!==s.Uz.Space||this.handleMinimize(t)}handleKeyDownClose(t){t.code!==s.Uz.Enter&&t.code!==s.Uz.Space||this.handleClose(t)}handleClose(t){this.show=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),t.stopPropagation()}handleMinimize(t){t.preventDefault(),t.stopPropagation(),this.dragOccured||this.dispatchEvent(new CustomEvent("floating-min-modal-minimize",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.dragOccured=!1}getTransformValues(t){const{target:e,dx:i,dy:o}=t,{initialX:s,initialY:r}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+s,y:(parseFloat(e.getAttribute("data-y"))||0)+o+r}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&h().isSet(this.container)&&h()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance(),window.removeEventListener("resize",(0,a.sg)(()=>this.setInteractInstance(),250))}render(){return c.html`
1603
+ `}};h([(0,n.property)({type:Boolean})],e.prototype,"dynamic",void 0),h([(0,n.property)({type:String})],e.prototype,"color",void 0),h([(0,n.property)({type:String})],e.prototype,"label",void 0),h([(0,n.property)({type:String})],e.prototype,"displayFormat",void 0),h([(0,n.property)({type:String})],e.prototype,"type",void 0),h([(0,n.property)({type:Number})],e.prototype,"min",void 0),h([(0,n.property)({type:Number})],e.prototype,"max",void 0),h([(0,n.property)({type:Number})],e.prototype,"value",void 0),h([(0,n.property)({type:Number})],e.prototype,"adjustedValue",void 0),h([(0,n.property)({type:Number})],e.prototype,"valueFraction",void 0),h([(0,n.property)({type:String})],e.prototype,"meterWidth",void 0),e=h([(0,o.w)("md-progress-bar")],e),t.ELEMENT=e}(s||(s={}))},58871:(t,e,i)=>{i.d(e,{FloatingMinimizedModal:()=>s}),i(96798),i(61200);var s,o=i(90195),r=i(3001),a=i(31890),n=i(66677),l=i(4313),d=(i(58088),i(57346),i(69e3),i(20727)),h=i.n(d),c=(i(3288),i(87161)),p=i(70429),u=i(20291),m=i(34659),y=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.yC)(c.LitElement)){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.closeAriaLabel="Close Modal",this.minimize=!1,this.maximizeIconAriaLabel="Maximize Modal",this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.minPosition?{initialX:Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.minPosition)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:s}=this.getTransformValues(t);this.setTargetPosition(e,i,s),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[l.A,m.A]}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",(0,n.sg)(()=>this.setInteractInstance(),250))}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance(),this.setFocusOnContainer()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("minPosition")&&!t.has("show")&&this.setInitialTargetPosition(),t.has("minimize")&&void 0!==t.get("minimize")&&this.setFocusOnContainer()}isNewPositionNotSame(){var t,e,i,s;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.minPosition)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(s=this.minPosition)||void 0===s?void 0:s.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),Number(null===(e=this.minPosition)||void 0===e?void 0:e.y))}setFocusOnContainer(){this.container&&(this.container.setAttribute("tabindex","0"),this.container.focus())}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-minimize-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame(()=>{return t=this,e=void 0,s=function*(){yield this.updateComplete,this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))(function(o,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((s=s.apply(t,e||[])).next())});var t,e,i,s})}setInteractInstance(){requestAnimationFrame(()=>{this.container&&h()(this.container).draggable({autoScroll:!0,allowFrom:this.header,listeners:{move:this.dragMoveListener,end:this.dragEndListener},modifiers:[h().modifiers.restrictRect({restriction:document.body.getBoundingClientRect(),endOnly:!0})]})})}handleKeyDown(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||this.handleMinimize(t)}handleKeyDownClose(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||this.handleClose(t)}handleClose(t){this.show=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),t.stopPropagation()}handleMinimize(t){t.preventDefault(),t.stopPropagation(),this.dragOccured||this.dispatchEvent(new CustomEvent("floating-min-modal-minimize",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.dragOccured=!1}getTransformValues(t){const{target:e,dx:i,dy:s}=t,{initialX:o,initialY:r}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+o,y:(parseFloat(e.getAttribute("data-y"))||0)+s+r}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&h().isSet(this.container)&&h()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance(),window.removeEventListener("resize",(0,n.sg)(()=>this.setInteractInstance(),250))}render(){return c.html`
1598
1604
  ${this.show?c.html`
1599
1605
  <div
1600
1606
  class="md-floating ${this.minimize?"":"hide"} md-floating-minimize"
@@ -1633,8 +1639,8 @@
1633
1639
  </md-button>
1634
1640
  </div>
1635
1641
  </div>
1636
- `:p.nothing}
1637
- `}};y([(0,c.property)({type:String})],e.prototype,"heading",void 0),y([(0,c.property)({type:String})],e.prototype,"label",void 0),y([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),y([(0,c.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),y([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),y([(0,c.property)({type:String,attribute:"maximize-icon-aria-label"})],e.prototype,"maximizeIconAriaLabel",void 0),y([(0,c.property)({type:Object})],e.prototype,"minPosition",void 0),y([(0,c.query)(".md-floating")],e.prototype,"container",void 0),y([(0,c.query)(".md-floating__header")],e.prototype,"header",void 0),y([(0,c.internalProperty)()],e.prototype,"dragOccured",void 0),y([(0,c.internalProperty)()],e.prototype,"containerTransform",void 0),e=y([(0,n.w)("md-floating-modal-minimized")],e),t.ELEMENT=e}(o||(o={}))},60046:(t,e,i)=>{i.d(e,{Chip:()=>o}),i(58287),i(83192);var o,s=i(90195),r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(97822),c=i(49618),p=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.color="",this.bgColor="",this.textColor="",this.height="",this.icon="",this.iconColor="",this.iconSize="",this.role="group",this.id="",this.small=!1,this.readonly=!1,this.selected=!1,this.disabled=!1,this.determinateProgress=0,this.indeterminateProgress=!1,this.tooltipText="",this.tooltipPlacement="auto",this.iconSet="momentumUI",this.suppressDefaultMaxWidth=!1,this.decorative=!1,this.shouldTruncateValue=!0,this.value="",this.textOverflow=!1,this.renderedText="",this.MAX_LENGTH=18,this.PRE_TRUNC_CHARS=6,this.POST_TRUNC_CHARS=9,this.DOT_COUNT=3,this.selectionChange=t=>{this.dispatchEvent(new CustomEvent("chip-selected",{composed:!0,bubbles:!0,detail:{selected:t}}))},this.handleClear=t=>{this.dispatchEvent(new CustomEvent("chip-deleted",{composed:!0,bubbles:!0,detail:{id:t}}))},this.handleSelect=()=>{this.disabled||(this.selected=!0,this.selectionChange(!0))},this.handleDeSelect=()=>{this.selected=!1,this.selectionChange(!1)},this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:l.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:l.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:l.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height?a.html`
1642
+ `:c.nothing}
1643
+ `}};y([(0,p.property)({type:String})],e.prototype,"heading",void 0),y([(0,p.property)({type:String})],e.prototype,"label",void 0),y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),y([(0,p.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),y([(0,p.property)({type:String,attribute:"maximize-icon-aria-label"})],e.prototype,"maximizeIconAriaLabel",void 0),y([(0,p.property)({type:Object})],e.prototype,"minPosition",void 0),y([(0,p.query)(".md-floating")],e.prototype,"container",void 0),y([(0,p.query)(".md-floating__header")],e.prototype,"header",void 0),y([(0,p.state)()],e.prototype,"dragOccured",void 0),y([(0,p.state)()],e.prototype,"containerTransform",void 0),e=y([(0,a.w)("md-floating-modal-minimized")],e),t.ELEMENT=e}(s||(s={}))},60046:(t,e,i)=>{i.d(e,{Chip:()=>s}),i(58287),i(83192);var s,o=i(90195),r=i(31890),a=i(4313),n=i(87161),l=i(70429),d=i(85125),h=i(20291),c=i(58391),p=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.color="",this.bgColor="",this.textColor="",this.height="",this.icon="",this.iconColor="",this.iconSize="",this.role="group",this.id="",this.small=!1,this.readonly=!1,this.selected=!1,this.disabled=!1,this.determinateProgress=0,this.indeterminateProgress=!1,this.tooltipText="",this.tooltipPlacement="auto",this.iconSet="momentumUI",this.suppressDefaultMaxWidth=!1,this.decorative=!1,this.shouldTruncateValue=!0,this.value="",this.textOverflow=!1,this.renderedText="",this.MAX_LENGTH=18,this.PRE_TRUNC_CHARS=6,this.POST_TRUNC_CHARS=9,this.DOT_COUNT=3,this.selectionChange=t=>{this.dispatchEvent(new CustomEvent("chip-selected",{composed:!0,bubbles:!0,detail:{selected:t}}))},this.handleClear=t=>{this.dispatchEvent(new CustomEvent("chip-deleted",{composed:!0,bubbles:!0,detail:{id:t}}))},this.handleSelect=()=>{this.disabled||(this.selected=!0,this.selectionChange(!0))},this.handleDeSelect=()=>{this.selected=!1,this.selectionChange(!1)},this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:n.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:n.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:n.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height?n.html`
1638
1644
  <style>
1639
1645
  :host .md-chip {
1640
1646
  ${this.renderBgColor()};
@@ -1642,7 +1648,7 @@
1642
1648
  ${this.renderHeight()};
1643
1649
  }
1644
1650
  </style>
1645
- `:l.nothing}connectedCallback(){super.connectedCallback(),this.truncStringPortion(this.value),this.setAttribute("role",this.role)}updated(t){super.updated(t),this.truncStringPortion(this.value)}truncStringPortion(t,e=this.PRE_TRUNC_CHARS,i=this.POST_TRUNC_CHARS,o=this.DOT_COUNT){if(this.value.length>this.MAX_LENGTH&&this.shouldTruncateValue){let s="";s+=t.substring(0,e),s+=".".repeat(o),s+=t.substring(t.length-i,t.length),this.renderedText=s,this.textOverflow=!0}else this.renderedText=this.value}handleClick(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("md-tooltip");null==e||e.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:null==e?void 0:e.placement,reference:null==e?void 0:e.reference,popper:null==e?void 0:e.popper}})),this.dispatchEvent(new CustomEvent("chip-interaction",{composed:!0,bubbles:!0,detail:{id:this.id}}))}handleKeydown(t){switch(t.code){case s.Uz.Space:case s.Uz.Enter:this.handleSelect(),this.handleClick()}}static get styles(){return[n.A,c.A]}loadingTemplate(){return this.determinateProgress||this.indeterminateProgress?this.determinateProgress?a.html`
1651
+ `:n.nothing}connectedCallback(){super.connectedCallback(),this.truncStringPortion(this.value),this.setAttribute("role",this.role)}updated(t){super.updated(t),this.truncStringPortion(this.value)}truncStringPortion(t,e=this.PRE_TRUNC_CHARS,i=this.POST_TRUNC_CHARS,s=this.DOT_COUNT){if(this.value.length>this.MAX_LENGTH&&this.shouldTruncateValue){let o="";o+=t.substring(0,e),o+=".".repeat(s),o+=t.substring(t.length-i,t.length),this.renderedText=o,this.textOverflow=!0}else this.renderedText=this.value}handleClick(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("md-tooltip");null==e||e.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:null==e?void 0:e.placement,reference:null==e?void 0:e.reference,popper:null==e?void 0:e.popper}})),this.dispatchEvent(new CustomEvent("chip-interaction",{composed:!0,bubbles:!0,detail:{id:this.id}}))}handleKeydown(t){switch(t.code){case o.Uz.Space:case o.Uz.Enter:this.handleSelect(),this.handleClick()}}static get styles(){return[a.A,c.A]}loadingTemplate(){return this.determinateProgress||this.indeterminateProgress?this.determinateProgress?n.html`
1646
1652
  <md-progress-bar
1647
1653
  class="md-chip--loading"
1648
1654
  type="determinate"
@@ -1650,9 +1656,9 @@
1650
1656
  displayFormat="none"
1651
1657
  >
1652
1658
  </md-progress-bar>
1653
- `:a.html`
1659
+ `:n.html`
1654
1660
  <md-progress-bar class="md-chip--loading" type="indeterminate" displayFormat="none"></md-progress-bar>
1655
- `:l.nothing}iconTemplate(){const t=this.disabled?"":this.iconColor;return this.icon?a.html`
1661
+ `:n.nothing}iconTemplate(){const t=this.disabled?"":this.iconColor;return this.icon?n.html`
1656
1662
  <md-icon
1657
1663
  class="md-chip--icon"
1658
1664
  part="chip-icon"
@@ -1662,7 +1668,7 @@
1662
1668
  size="${(0,h.ifDefined)(this.iconSize)}"
1663
1669
  >
1664
1670
  </md-icon>
1665
- `:l.nothing}getToolTipContent(){return this.tooltipText&&this.textOverflow?this.value===this.tooltipText?this.tooltipText:`${this.value}, ${this.tooltipText}`:this.tooltipText?this.tooltipText:this.value}get textContentClassMap(){return{"md-chip--textcontent":!0,"md-chip--suppress-default-max-width":this.suppressDefaultMaxWidth}}get textContentTemplate(){return a.html`<span part="text-content" class=${(0,d.classMap)(this.textContentClassMap)}> ${this.renderedText}</span>`}render(){const t={"md-chip--small":this.small,"md-chip--disabled":this.disabled,[`md-chip--${this.color}`]:this.color,"suppress-max-width":this.suppressDefaultMaxWidth,"md-chip--interactive":!this.decorative},e=this.decorative?void 0:this.selected?"true":"false";return a.html`
1671
+ `:n.nothing}getToolTipContent(){return this.tooltipText&&this.textOverflow?this.value===this.tooltipText?this.tooltipText:`${this.value}, ${this.tooltipText}`:this.tooltipText?this.tooltipText:this.value}get textContentClassMap(){return{"md-chip--textcontent":!0,"md-chip--suppress-default-max-width":this.suppressDefaultMaxWidth}}get textContentTemplate(){return n.html`<span part="text-content" class=${(0,d.classMap)(this.textContentClassMap)}> ${this.renderedText}</span>`}render(){const t={"md-chip--small":this.small,"md-chip--disabled":this.disabled,[`md-chip--${this.color}`]:this.color,"suppress-max-width":this.suppressDefaultMaxWidth,"md-chip--interactive":!this.decorative},e=this.decorative?void 0:this.selected?"true":"false";return n.html`
1666
1672
  ${this.getStyles()}
1667
1673
  <md-tooltip
1668
1674
  ?disabled=${!this.tooltipText&&!this.textOverflow}
@@ -1681,11 +1687,11 @@
1681
1687
  >
1682
1688
  ${this.loadingTemplate()} ${this.iconTemplate()}
1683
1689
  <slot name="custom-left-content" part="chip-left"> </slot>
1684
- ${this.renderedText?this.textContentTemplate:l.nothing}
1690
+ ${this.renderedText?this.textContentTemplate:n.nothing}
1685
1691
  <slot name="custom-right-content" part="chip-right"> </slot>
1686
1692
  </span>
1687
1693
  </md-tooltip>
1688
- `}};p([(0,a.property)({type:String})],e.prototype,"color",void 0),p([(0,a.property)({type:String})],e.prototype,"bgColor",void 0),p([(0,a.property)({type:String})],e.prototype,"textColor",void 0),p([(0,a.property)({type:String})],e.prototype,"height",void 0),p([(0,a.property)({type:String})],e.prototype,"icon",void 0),p([(0,a.property)({type:String})],e.prototype,"iconColor",void 0),p([(0,a.property)({type:String})],e.prototype,"iconSize",void 0),p([(0,a.property)({type:String})],e.prototype,"role",void 0),p([(0,a.property)({type:String,reflect:!0})],e.prototype,"id",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"small",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"readonly",void 0),p([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,a.property)({type:Number})],e.prototype,"determinateProgress",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),p([(0,a.property)({type:String})],e.prototype,"tooltipText",void 0),p([(0,a.property)({type:String})],e.prototype,"tooltipPlacement",void 0),p([(0,a.property)({type:String})],e.prototype,"iconSet",void 0),p([(0,a.property)({type:Boolean,attribute:"suppress-default-max-width"})],e.prototype,"suppressDefaultMaxWidth",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"decorative",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"shouldTruncateValue",void 0),p([(0,a.property)({type:String,hasChanged:(t,e)=>t!==e})],e.prototype,"value",void 0),p([(0,a.internalProperty)({hasChanged:(t,e)=>t!==e})],e.prototype,"textOverflow",void 0),p([(0,a.internalProperty)()],e.prototype,"renderedText",void 0),e=p([(0,r.w)("md-chip")],e),t.ELEMENT=e}(o||(o={}))},60554:t=>{t.exports=n},61200:(t,e,i)=>{i.d(e,{Icon:()=>o}),i(96798);var o,s=i(31890),r=i(26272),n=i(32022),a=i.n(n),l=i(60554),d=i.n(l),h=i(41488),c=i(40333),p=i(23968),u=i(97822),m=i(8229),y=i(57955),b=i(66873),v=i(81786),g=i(9223),f=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){var e;let i=e=class extends h.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`)}}}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return e=this,i=void 0,s=function*(){var e,i;if(this.isSvgAlreadyLoaded(t))return;const o="momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet?yield(0,g.Jp)(this.computedSvgPath,t,"svg"):yield(0,g.D6)(t);o&&(this.svgIcon=o,null===(e=this.svgIcon)||void 0===e||e.setAttribute("class",`icon ${t}`),null===(i=this.svgIcon)||void 0===i||i.setAttribute("part","icon"),this.setSvgIconAttributes(),this.requestUpdate())},new((o=void 0)||(o=Promise))(function(t,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(n,a)}l((s=s.apply(e,i||[])).next())});var e,i,o,s}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get computedSvgPath(){return this.svgUrl?this.svgUrl:v.O.svgIconUrl}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:d()(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):a().includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[r.A,b.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return h.html`
1694
+ `}};p([(0,l.property)({type:String})],e.prototype,"color",void 0),p([(0,l.property)({type:String})],e.prototype,"bgColor",void 0),p([(0,l.property)({type:String})],e.prototype,"textColor",void 0),p([(0,l.property)({type:String})],e.prototype,"height",void 0),p([(0,l.property)({type:String})],e.prototype,"icon",void 0),p([(0,l.property)({type:String})],e.prototype,"iconColor",void 0),p([(0,l.property)({type:String})],e.prototype,"iconSize",void 0),p([(0,l.property)({type:String})],e.prototype,"role",void 0),p([(0,l.property)({type:String,reflect:!0})],e.prototype,"id",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"small",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"readonly",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Number})],e.prototype,"determinateProgress",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),p([(0,l.property)({type:String})],e.prototype,"tooltipText",void 0),p([(0,l.property)({type:String})],e.prototype,"tooltipPlacement",void 0),p([(0,l.property)({type:String})],e.prototype,"iconSet",void 0),p([(0,l.property)({type:Boolean,attribute:"suppress-default-max-width"})],e.prototype,"suppressDefaultMaxWidth",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"decorative",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"shouldTruncateValue",void 0),p([(0,l.property)({type:String,hasChanged:(t,e)=>t!==e})],e.prototype,"value",void 0),p([(0,l.state)({hasChanged:(t,e)=>t!==e})],e.prototype,"textOverflow",void 0),p([(0,l.state)()],e.prototype,"renderedText",void 0),e=p([(0,r.w)("md-chip")],e),t.ELEMENT=e}(s||(s={}))},60554:t=>{t.exports=a},61200:(t,e,i)=>{i.d(e,{Icon:()=>s}),i(96798);var s,o=i(31890),r=i(4313),a=i(32022),n=i.n(a),l=i(60554),d=i.n(l),h=i(87161),c=i(70429),p=i(85125),u=i(20291),m=i(10318),y=i(57955),b=i(24480),v=i(81786),g=i(9223),f=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){var e;let i=e=class extends h.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`)}}}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return e=this,i=void 0,o=function*(){var e,i;if(this.isSvgAlreadyLoaded(t))return;const s="momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet?yield(0,g.Jp)(this.computedSvgPath,t,"svg"):yield(0,g.D6)(t);s&&(this.svgIcon=s,null===(e=this.svgIcon)||void 0===e||e.setAttribute("class",`icon ${t}`),null===(i=this.svgIcon)||void 0===i||i.setAttribute("part","icon"),this.setSvgIconAttributes(),this.requestUpdate())},new((s=void 0)||(s=Promise))(function(t,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function n(t){try{l(o.throw(t))}catch(t){r(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof s?i:new s(function(t){t(i)})).then(a,n)}l((o=o.apply(e,i||[])).next())});var e,i,s,o}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get computedSvgPath(){return this.svgUrl?this.svgUrl:v.O.svgIconUrl}getIsMomentumDesignName(t){return t.endsWith("-filled")||t.endsWith("-light")||t.endsWith("-regular")||t.endsWith("-bold")}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;if("preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name))return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:d()(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):"preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name)?"":n().includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[r.A,b.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return h.html`
1689
1695
  <i
1690
1696
  part="icon"
1691
1697
  id=${this.id}
@@ -1708,9 +1714,9 @@
1708
1714
  aria-hidden=${(0,u.ifDefined)(null!==(t=this.ariaHidden)&&void 0!==t?t:void 0)}
1709
1715
  @click=${t=>this.handleIconClick(t)}
1710
1716
  >
1711
- ${this.svgIcon?this.svgIcon:c.nothing}
1717
+ ${this.svgIcon?this.svgIcon:h.nothing}
1712
1718
  </div>
1713
- `}};i.designLookup=new Map(Object.entries(y)),f([(0,h.property)({type:String})],i.prototype,"color",void 0),f([(0,h.property)({type:String})],i.prototype,"description",void 0),f([(0,h.property)({type:String})],i.prototype,"name",void 0),f([(0,h.property)({type:String})],i.prototype,"id",void 0),f([(0,h.property)({type:String})],i.prototype,"size",void 0),f([(0,h.property)({type:String})],i.prototype,"title",void 0),f([(0,h.property)({type:String})],i.prototype,"ariaHidden",void 0),f([(0,h.property)({type:String})],i.prototype,"type",void 0),f([(0,h.property)({type:Boolean})],i.prototype,"isActive",void 0),f([(0,h.property)({type:Boolean})],i.prototype,"isComboBoxIcon",void 0),f([(0,h.property)({type:Boolean})],i.prototype,"sizeOverrided",void 0),f([(0,h.property)({type:String})],i.prototype,"iconSet",void 0),f([(0,h.property)({type:String,attribute:"svg-url"})],i.prototype,"svgUrl",void 0),f([(0,h.internalProperty)()],i.prototype,"svgIcon",void 0),f([(0,h.property)({type:String})],i.prototype,"ariaLabel",null),i=e=f([(0,s.w)("md-icon")],i),t.ELEMENT=i}(o||(o={}))},61997:(t,e,i)=>{i.d(e,{MeetingAlert:()=>o}),i(38028),i(96798),i(61200);var o,s=i(90195),r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(48064),h=i(56338),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.attendees=[{title:"Attendee",src:null,alt:"Attendee"}],this.closeAriaLabel="close",this.onKeyDown=null,this.onSnooze=null,this.message="",this.snoozeAriaLabel="snooze",this.role="button",this.show=!1,this.src="",this.status="",this.userStyles="",this.title="",this._onSnooze=t=>{this.dispatchEvent(new CustomEvent("snooze",{composed:!0,detail:{srcEvent:t}}))},this._onClose=t=>{this.dispatchEvent(new CustomEvent("close",{composed:!0,detail:{srcEvent:t}}))},this.handleSnooze=t=>{this.onSnooze?this.onSnooze(t):this._onSnooze(t),t.stopPropagation()},this.handleClose=t=>{this._onClose(t),t.stopPropagation()},this.handleKeyDown=t=>{if(t.code===s.Uz.Escape&&this.handleClose(t),t.code===s.Uz.Enter||t.code===s.Uz.Space){switch(t.target.attributes.getNamedItem("aria-label").value){case"close":this.handleClose(t);break;case"snooze":this.handleSnooze(t)}t.preventDefault()}this.onKeyDown&&this.onKeyDown(t)}}getStyles(){return a.html`
1719
+ `}};i.designLookup=new Map(Object.entries(y)),f([(0,c.property)({type:String})],i.prototype,"color",void 0),f([(0,c.property)({type:String})],i.prototype,"description",void 0),f([(0,c.property)({type:String})],i.prototype,"name",void 0),f([(0,c.property)({type:String})],i.prototype,"id",void 0),f([(0,c.property)({type:String})],i.prototype,"size",void 0),f([(0,c.property)({type:String})],i.prototype,"title",void 0),f([(0,c.property)({type:String})],i.prototype,"ariaHidden",void 0),f([(0,c.property)({type:String})],i.prototype,"type",void 0),f([(0,c.property)({type:Boolean})],i.prototype,"isActive",void 0),f([(0,c.property)({type:Boolean})],i.prototype,"isComboBoxIcon",void 0),f([(0,c.property)({type:Boolean})],i.prototype,"sizeOverrided",void 0),f([(0,c.property)({type:String})],i.prototype,"iconSet",void 0),f([(0,c.property)({type:String,attribute:"svg-url"})],i.prototype,"svgUrl",void 0),f([(0,c.state)()],i.prototype,"svgIcon",void 0),f([(0,c.property)({type:String})],i.prototype,"ariaLabel",null),i=e=f([(0,o.w)("md-icon")],i),t.ELEMENT=i}(s||(s={}))},61997:(t,e,i)=>{i.d(e,{MeetingAlert:()=>s}),i(38028),i(96798),i(61200);var s,o=i(90195),r=i(31890),a=i(4313),n=i(87161),l=i(70429),d=i(48064),h=i(9297),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.attendees=[{title:"Attendee",src:null,alt:"Attendee"}],this.closeAriaLabel="close",this.onKeyDown=null,this.onSnooze=null,this.message="",this.snoozeAriaLabel="snooze",this.role="button",this.show=!1,this.src="",this.status="",this.userStyles="",this.title="",this._onSnooze=t=>{this.dispatchEvent(new CustomEvent("snooze",{composed:!0,detail:{srcEvent:t}}))},this._onClose=t=>{this.dispatchEvent(new CustomEvent("close",{composed:!0,detail:{srcEvent:t}}))},this.handleSnooze=t=>{this.onSnooze?this.onSnooze(t):this._onSnooze(t),t.stopPropagation()},this.handleClose=t=>{this._onClose(t),t.stopPropagation()},this.handleKeyDown=t=>{if(t.code===o.Uz.Escape&&this.handleClose(t),t.code===o.Uz.Enter||t.code===o.Uz.Space){switch(t.target.attributes.getNamedItem("aria-label").value){case"close":this.handleClose(t);break;case"snooze":this.handleSnooze(t)}t.preventDefault()}this.onKeyDown&&this.onKeyDown(t)}}getStyles(){return n.html`
1714
1720
  <style>
1715
1721
  ::slotted(img) {
1716
1722
  display: inline-block;
@@ -1722,26 +1728,26 @@
1722
1728
  }
1723
1729
  ${this.userStyles}
1724
1730
  </style>
1725
- `}static get styles(){return[n.A,h.A]}render(){const{attendees:t,message:e,onSnooze:i,role:o,src:s,status:r,title:n,closeAriaLabel:h,show:c,snoozeAriaLabel:p}=this;return a.html`
1731
+ `}static get styles(){return[a.A,h.A]}render(){const{attendees:t,message:e,onSnooze:i,role:s,src:o,status:r,title:a,closeAriaLabel:l,show:h,snoozeAriaLabel:c}=this;return n.html`
1726
1732
  ${this.getStyles()}
1727
- ${c?a.html`
1733
+ ${h?n.html`
1728
1734
  <div
1729
1735
  aria-label="Meeting Alert"
1730
1736
  class=${"md-alert md-alert--meeting"}
1731
1737
  @keydown=${t=>this.handleKeyDown(t)}
1732
- role=${o}
1738
+ role=${s}
1733
1739
  >
1734
- <slot name="custom-avatar"> ${t.length>=2?(0,d.o)(t):a.html` <md-avatar title=${n} label="avatar" src=${s} tabindex="-1"></md-avatar> `} </slot>
1740
+ <slot name="custom-avatar"> ${t.length>=2?(0,d.o)(t):n.html` <md-avatar title=${a} label="avatar" src=${o} tabindex="-1"></md-avatar> `} </slot>
1735
1741
  <div class=${"md-alert__content "+(i?"":" md-alert__content--wide")}>
1736
- <div class="md-alert__title" title=${n}>${n}</div>
1742
+ <div class="md-alert__title" title=${a}>${a}</div>
1737
1743
  <div class="md-alert__status" title=${r}>${r}</div>
1738
1744
  <div class="md-alert__message" title=${e}>${e}</div>
1739
1745
  </div>
1740
- ${i?a.html`
1746
+ ${i?n.html`
1741
1747
  <div class="md-alert__button">
1742
1748
  <md-button
1743
1749
  variant="secondary"
1744
- aria-label=${p}
1750
+ aria-label=${c}
1745
1751
  circle
1746
1752
  @click=${t=>{this.handleSnooze(t)}}
1747
1753
  .size=${40}
@@ -1749,12 +1755,12 @@
1749
1755
  <md-icon name="alarm-bold" size="16" iconSet="momentumDesign"></md-icon>
1750
1756
  </md-button>
1751
1757
  </div>
1752
- `:l.nothing}
1758
+ `:n.nothing}
1753
1759
  <slot name="custom-action">
1754
1760
  <md-button
1755
1761
  class="md-alert__button"
1756
1762
  variant="ghost"
1757
- ariaLabel=${h}
1763
+ ariaLabel=${l}
1758
1764
  circle
1759
1765
  @click=${t=>{this.handleClose(t)}}
1760
1766
  .size=${40}
@@ -1763,8 +1769,8 @@
1763
1769
  </md-button>
1764
1770
  </slot>
1765
1771
  </div>
1766
- `:l.nothing}
1767
- `}};c([(0,a.property)({type:Array})],e.prototype,"attendees",void 0),c([(0,a.property)({type:String})],e.prototype,"closeAriaLabel",void 0),c([(0,a.property)({attribute:!1})],e.prototype,"onKeyDown",void 0),c([(0,a.property)({attribute:!1})],e.prototype,"onSnooze",void 0),c([(0,a.property)({type:String})],e.prototype,"message",void 0),c([(0,a.property)({type:String})],e.prototype,"snoozeAriaLabel",void 0),c([(0,a.property)({type:String})],e.prototype,"role",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"show",void 0),c([(0,a.property)({type:String})],e.prototype,"src",void 0),c([(0,a.property)({type:String})],e.prototype,"status",void 0),c([(0,a.property)({type:String})],e.prototype,"userStyles",void 0),c([(0,a.property)({type:String})],e.prototype,"title",void 0),e=c([(0,r.w)("md-meeting-alert")],e),t.ELEMENT=e}(o||(o={}))},63208:(t,e,i)=>{i.d(e,{DatePickerCalendar:()=>o}),i(17814),i(61200);var o,s=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(14974),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.monthFormat="MMMM yyyy",this.filterParams=void 0,this.handleMonthChange=void 0,this.datePickerProps=void 0,this.shortDay=!1,this.viewAnchorDate=(0,r.tB)(),this.localeMonth=void 0,this.setDate=(t,e)=>{this.viewAnchorDate=t,null==e||e()},this.increaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,r.PS)(i,1),()=>e&&e(t,this.viewAnchorDate))},this.decreaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,r.SL)(i,1),()=>e&&e(t,this.viewAnchorDate))},this.renderMonthName=()=>a.html` <div class="md-datepicker__navigation--current-month" aria-live="polite">${this.localeMonth}</div> `,this.renderPreviousMonthButton=()=>{var t,e;const i=(null===(t=this.filterParams)||void 0===t?void 0:t.minDate)&&(0,r.PD)(this.viewAnchorDate,null===(e=this.filterParams)||void 0===e?void 0:e.minDate);return a.html`
1772
+ `:n.nothing}
1773
+ `}};c([(0,l.property)({type:Array})],e.prototype,"attendees",void 0),c([(0,l.property)({type:String})],e.prototype,"closeAriaLabel",void 0),c([(0,l.property)({attribute:!1})],e.prototype,"onKeyDown",void 0),c([(0,l.property)({attribute:!1})],e.prototype,"onSnooze",void 0),c([(0,l.property)({type:String})],e.prototype,"message",void 0),c([(0,l.property)({type:String})],e.prototype,"snoozeAriaLabel",void 0),c([(0,l.property)({type:String})],e.prototype,"role",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"show",void 0),c([(0,l.property)({type:String})],e.prototype,"src",void 0),c([(0,l.property)({type:String})],e.prototype,"status",void 0),c([(0,l.property)({type:String})],e.prototype,"userStyles",void 0),c([(0,l.property)({type:String})],e.prototype,"title",void 0),e=c([(0,r.w)("md-meeting-alert")],e),t.ELEMENT=e}(s||(s={}))},63208:(t,e,i)=>{i.d(e,{DatePickerCalendar:()=>s}),i(17814),i(61200);var s,o=i(31890),r=i(81625),a=i(4313),n=i(87161),l=i(70429),d=i(34363),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.monthFormat="MMMM yyyy",this.filterParams=void 0,this.handleMonthChange=void 0,this.datePickerProps=void 0,this.shortDay=!1,this.viewAnchorDate=(0,r.tB)(),this.localeMonth=void 0,this.setDate=(t,e)=>{this.viewAnchorDate=t,null==e||e()},this.increaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,r.PS)(i,1),()=>e&&e(t,this.viewAnchorDate))},this.decreaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,r.SL)(i,1),()=>e&&e(t,this.viewAnchorDate))},this.renderMonthName=()=>n.html` <div class="md-datepicker__navigation--current-month" aria-live="polite">${this.localeMonth}</div> `,this.renderPreviousMonthButton=()=>{var t,e;const i=(null===(t=this.filterParams)||void 0===t?void 0:t.minDate)&&(0,r.PD)(this.viewAnchorDate,null===(e=this.filterParams)||void 0===e?void 0:e.minDate);return n.html`
1768
1774
  <md-button
1769
1775
  variant="ghost"
1770
1776
  circle
@@ -1778,7 +1784,7 @@
1778
1784
  >
1779
1785
  <md-icon name="arrow-left-bold" size="16" iconSet="momentumDesign"></md-icon>
1780
1786
  </md-button>
1781
- `},this.renderNextMonthButton=()=>{var t,e;const i=(null===(t=this.filterParams)||void 0===t?void 0:t.maxDate)&&(0,r.FO)(this.viewAnchorDate,null===(e=this.filterParams)||void 0===e?void 0:e.maxDate);return a.html`
1787
+ `},this.renderNextMonthButton=()=>{var t,e;const i=(null===(t=this.filterParams)||void 0===t?void 0:t.maxDate)&&(0,r.FO)(this.viewAnchorDate,null===(e=this.filterParams)||void 0===e?void 0:e.maxDate);return n.html`
1782
1788
  <md-button
1783
1789
  variant="ghost"
1784
1790
  circle
@@ -1791,7 +1797,7 @@
1791
1797
  tabindex="-1"
1792
1798
  ><md-icon name="arrow-right-bold" size="16" iconSet="momentumDesign"></md-icon>
1793
1799
  </md-button>
1794
- `},this.header=()=>{var t;const e=(0,r.mK)(this.viewAnchorDate,null===(t=this.datePickerProps)||void 0===t?void 0:t.weekStart);return[].concat([0,1,2,3,4,5,6].map(t=>{var i;const o=(0,r.fi)((0,r.WV)(e,(null===(i=this.datePickerProps)||void 0===i?void 0:i.locale)||"en"),t),s=(0,r.XN)(o),n=this.getWeekDayName(s,o);return a.html` <div class="md-datepicker__day--name">${n}</div> `}))},this.renderMonth=()=>a.html`
1800
+ `},this.header=()=>{var t;const e=(0,r.mK)(this.viewAnchorDate,null===(t=this.datePickerProps)||void 0===t?void 0:t.weekStart);return[].concat([0,1,2,3,4,5,6].map(t=>{var i;const s=(0,r.fi)((0,r.WV)(e,(null===(i=this.datePickerProps)||void 0===i?void 0:i.locale)||"en"),t),o=(0,r.XN)(s),a=this.getWeekDayName(o,s);return n.html` <div class="md-datepicker__day--name">${a}</div> `}))},this.renderMonth=()=>n.html`
1795
1801
  <div class="md-datepicker__month-container">
1796
1802
  <div class="md-datepicker__header">
1797
1803
  <div class="md-datepicker__navigation">
@@ -1808,9 +1814,9 @@
1808
1814
  .datePickerProps=${this.datePickerProps}
1809
1815
  ></md-datepicker-month>
1810
1816
  </div>
1811
- `}connectedCallback(){var t,e,i;super.connectedCallback(),this.viewAnchorDate=(null===(t=this.datePickerProps)||void 0===t?void 0:t.focused)||(null===(e=this.datePickerProps)||void 0===e?void 0:e.selected)||(0,r.tB)(),this.localeMonth=(0,r.WV)(this.viewAnchorDate,(null===(i=this.datePickerProps)||void 0===i?void 0:i.locale)||"en").toFormat(this.monthFormat)}updated(t){var e,i,o,s,n;super.updated(t),t.has("datePickerProps")&&(null===(null===(e=this.datePickerProps)||void 0===e?void 0:e.selected.invalidReason)&&(this.viewAnchorDate=this.datePickerProps.selected||(0,r.tB)()),this.localeMonth=((null===(i=this.datePickerProps)||void 0===i?void 0:i.locale)?(0,r.WV)(this.viewAnchorDate,null===(o=this.datePickerProps)||void 0===o?void 0:o.locale):this.viewAnchorDate).toFormat(this.monthFormat)),t.has("viewAnchorDate")&&(this.localeMonth=((null===(s=this.datePickerProps)||void 0===s?void 0:s.locale)?(0,r.WV)(this.viewAnchorDate,null===(n=this.datePickerProps)||void 0===n?void 0:n.locale):this.viewAnchorDate).toFormat(this.monthFormat))}getWeekDayName(t,e){return this.shortDay?(0,r.XY)(t,e):(0,r.DY)(t,e)}static get styles(){return[n.A,l.A]}render(){return a.html`
1817
+ `}connectedCallback(){var t,e,i;super.connectedCallback(),this.viewAnchorDate=(null===(t=this.datePickerProps)||void 0===t?void 0:t.focused)||(null===(e=this.datePickerProps)||void 0===e?void 0:e.selected)||(0,r.tB)(),this.localeMonth=(0,r.WV)(this.viewAnchorDate,(null===(i=this.datePickerProps)||void 0===i?void 0:i.locale)||"en").toFormat(this.monthFormat)}updated(t){var e,i,s,o,a;super.updated(t),t.has("datePickerProps")&&(null===(null===(e=this.datePickerProps)||void 0===e?void 0:e.selected.invalidReason)&&(this.viewAnchorDate=this.datePickerProps.selected||(0,r.tB)()),this.localeMonth=((null===(i=this.datePickerProps)||void 0===i?void 0:i.locale)?(0,r.WV)(this.viewAnchorDate,null===(s=this.datePickerProps)||void 0===s?void 0:s.locale):this.viewAnchorDate).toFormat(this.monthFormat)),t.has("viewAnchorDate")&&(this.localeMonth=((null===(o=this.datePickerProps)||void 0===o?void 0:o.locale)?(0,r.WV)(this.viewAnchorDate,null===(a=this.datePickerProps)||void 0===a?void 0:a.locale):this.viewAnchorDate).toFormat(this.monthFormat))}getWeekDayName(t,e){return this.shortDay?(0,r.XY)(t,e):(0,r.DY)(t,e)}static get styles(){return[a.A,d.A]}render(){return n.html`
1812
1818
  <div class="md-datepicker__calendar" id="Datepicker-Calendar">${this.viewAnchorDate&&this.renderMonth()}</div>
1813
- `}};d([(0,a.property)({attribute:!1})],e.prototype,"monthFormat",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"filterParams",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"handleMonthChange",void 0),d([(0,a.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),d([(0,a.property)({type:Boolean,reflect:!0,attribute:"short-day"})],e.prototype,"shortDay",void 0),d([(0,a.internalProperty)()],e.prototype,"viewAnchorDate",void 0),d([(0,a.internalProperty)()],e.prototype,"localeMonth",void 0),e=d([(0,s.w)("md-datepicker-calendar")],e),t.ELEMENT=e}(o||(o={}))},63704:(t,e,i)=>{i.d(e,{Badge:()=>o});var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(97822),h=i(15427),c=i(92019),p=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.ariaLabel="",this.color="",this.bgColor="",this.textColor="",this.height="",this.width="",this.outlined=!1,this.compact=!1,this.circle=!1,this.circleSize=h.zj[40],this.small=!1,this.split=!1,this.disabled=!1,this.tabIndexing="",this.ariaHiddenSplits="",this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:a.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:a.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:a.nothing,this.renderWidth=()=>this.width?`width: ${this.width};`:a.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height||this.width?n.html`
1819
+ `}};h([(0,l.property)({attribute:!1})],e.prototype,"monthFormat",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"filterParams",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"handleMonthChange",void 0),h([(0,l.property)({attribute:!1})],e.prototype,"datePickerProps",void 0),h([(0,l.property)({type:Boolean,reflect:!0,attribute:"short-day"})],e.prototype,"shortDay",void 0),h([(0,l.state)()],e.prototype,"viewAnchorDate",void 0),h([(0,l.state)()],e.prototype,"localeMonth",void 0),e=h([(0,o.w)("md-datepicker-calendar")],e),t.ELEMENT=e}(s||(s={}))},63704:(t,e,i)=>{i.d(e,{Badge:()=>s});var s,o=i(31890),r=i(4313),a=i(87161),n=i(36752),l=i(70429),d=i(85125),h=i(20291),c=i(15427),p=i(49480),u=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.ariaLabel="",this.color="",this.bgColor="",this.textColor="",this.height="",this.width="",this.outlined=!1,this.compact=!1,this.circle=!1,this.circleSize=c.zj[40],this.small=!1,this.split=!1,this.disabled=!1,this.tabIndexing="",this.ariaHiddenSplits="",this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:n.s6,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:n.s6,this.renderHeight=()=>this.height?`height: ${this.height};`:n.s6,this.renderWidth=()=>this.width?`width: ${this.width};`:n.s6,this.getStyles=()=>this.bgColor||this.textColor||this.height||this.width?a.html`
1814
1820
  <style>
1815
1821
  :host .md-badge {
1816
1822
  ${this.renderBgColor()};
@@ -1819,30 +1825,30 @@
1819
1825
  ${this.renderWidth()};
1820
1826
  }
1821
1827
  </style>
1822
- `:a.nothing}static get styles(){return[r.A,c.A]}get computedAriaHiddenSplits(){return"true"===this.ariaHiddenSplits||"false"!==this.ariaHiddenSplits&&void 0}get computedTabIndex(){const t=parseInt(this.tabIndexing);return isNaN(t)?void 0:t}render(){const t={"md-badge--circle":this.circle,[`md-badge--circle-${this.circleSize}`]:this.circle,"md-badge--split":this.split,"md-badge--compact":this.compact,"md-badge--small":this.small||24===this.size,[`md-badge--size-${this.size}`]:!!this.size&&24!==this.size,"md-badge--outline":this.outlined,"md-badge--disabled":this.disabled,[`md-badge--${this.color}`]:!this.disabled&&this.color};return n.html`
1828
+ `:n.s6}static get styles(){return[r.A,p.A]}get computedAriaHiddenSplits(){return"true"===this.ariaHiddenSplits||"false"!==this.ariaHiddenSplits&&void 0}get computedTabIndex(){const t=parseInt(this.tabIndexing);return isNaN(t)?void 0:t}render(){const t={"md-badge--circle":this.circle,[`md-badge--circle-${this.circleSize}`]:this.circle,"md-badge--split":this.split,"md-badge--compact":this.compact,"md-badge--small":this.small||24===this.size,[`md-badge--size-${this.size}`]:!!this.size&&24!==this.size,"md-badge--outline":this.outlined,"md-badge--disabled":this.disabled,[`md-badge--${this.color}`]:!this.disabled&&this.color};return a.html`
1823
1829
  ${this.getStyles()}
1824
1830
  <span
1825
- tabindex=${(0,d.ifDefined)(this.computedTabIndex)}
1831
+ tabindex=${(0,h.ifDefined)(this.computedTabIndex)}
1826
1832
  part="badge"
1827
- class="md-badge ${(0,l.classMap)(t)}"
1833
+ class="md-badge ${(0,d.classMap)(t)}"
1828
1834
  aria-label=${this.ariaLabel}
1829
1835
  >
1830
- ${this.split?(()=>n.html`
1836
+ ${this.split?(()=>a.html`
1831
1837
  <slot
1832
- aria-hidden=${(0,d.ifDefined)(this.computedAriaHiddenSplits)}
1838
+ aria-hidden=${(0,h.ifDefined)(this.computedAriaHiddenSplits)}
1833
1839
  name="split-left"
1834
1840
  class="split split-left"
1835
1841
  ></slot>
1836
1842
  <span aria-hidden="true" class="split-separator"> | </span>
1837
1843
  <slot
1838
- aria-hidden=${(0,d.ifDefined)(this.computedAriaHiddenSplits)}
1844
+ aria-hidden=${(0,h.ifDefined)(this.computedAriaHiddenSplits)}
1839
1845
  name="split-right"
1840
1846
  class="split split-right"
1841
1847
  ></slot>
1842
- `)():a.nothing}
1848
+ `)():n.s6}
1843
1849
  <slot></slot>
1844
1850
  </span>
1845
- `}};p([(0,n.property)({type:String})],e.prototype,"ariaLabel",void 0),p([(0,n.property)({type:String})],e.prototype,"color",void 0),p([(0,n.property)({type:String})],e.prototype,"bgColor",void 0),p([(0,n.property)({type:String})],e.prototype,"textColor",void 0),p([(0,n.property)({type:String})],e.prototype,"height",void 0),p([(0,n.property)({type:String})],e.prototype,"width",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"outlined",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"compact",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"circle",void 0),p([(0,n.property)({type:Number,attribute:"circle-size"})],e.prototype,"circleSize",void 0),p([(0,n.property)({type:Number})],e.prototype,"size",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"small",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"split",void 0),p([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,n.property)({type:String})],e.prototype,"tabIndexing",void 0),p([(0,n.property)({type:String})],e.prototype,"ariaHiddenSplits",void 0),e=p([(0,s.w)("md-badge")],e),t.ELEMENT=e}(o||(o={}))},64311:(t,e,i)=>{i.d(e,{CardAi:()=>s}),i(96798),i(61200);var o,s,r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(17518),h=i(18227),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.USER_QUERY="user_query",t.RESPONSE="response"}(o||(o={})),function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.id="",this.title="",this.cardText="",this.timestamp="",this.summariseMoreVisible=!1,this.variant=o.RESPONSE,this.copyChecked=!1,this.thumbsUpChecked=!1,this.thumbsDownChecked=!1}static get styles(){return[n.A,h.A]}thumbsUpToggled(){this.thumbsDownChecked=!1,this.thumbsUpChecked=!this.thumbsUpChecked,this.dispatchEvent(new CustomEvent("thumbs-up-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}thumbsDownToggled(){this.thumbsUpChecked=!1,this.thumbsDownChecked=!this.thumbsDownChecked,this.dispatchEvent(new CustomEvent("thumbs-down-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}summariseMoreToggled(){this.dispatchEvent(new CustomEvent("summarise-more-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}copyToggled(){navigator.clipboard.writeText(this.cardText),this.copyChecked=!0,setTimeout(()=>{this.copyChecked=!1},2e3)}get bottomBorderRadiusClass(){return this.timestamp?"with-bottom-border-radius":"no-bottom-border-radius"}get cardTextClassMap(){return{"md-card-ai-card-body-user-query":this.variant===o.USER_QUERY,[`md-card-ai-card-body-response-${this.bottomBorderRadiusClass}`]:this.variant===o.RESPONSE}}renderHeader(){return this.variant===o.RESPONSE&&""!==this.title?a.html`
1851
+ `}};u([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),u([(0,l.property)({type:String})],e.prototype,"color",void 0),u([(0,l.property)({type:String})],e.prototype,"bgColor",void 0),u([(0,l.property)({type:String})],e.prototype,"textColor",void 0),u([(0,l.property)({type:String})],e.prototype,"height",void 0),u([(0,l.property)({type:String})],e.prototype,"width",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"outlined",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"compact",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"circle",void 0),u([(0,l.property)({type:Number,attribute:"circle-size"})],e.prototype,"circleSize",void 0),u([(0,l.property)({type:Number})],e.prototype,"size",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"small",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"split",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,l.property)({type:String})],e.prototype,"tabIndexing",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaHiddenSplits",void 0),e=u([(0,o.w)("md-badge")],e),t.ELEMENT=e}(s||(s={}))},64311:(t,e,i)=>{i.d(e,{CardAi:()=>o}),i(96798),i(61200);var s,o,r=i(31890),a=i(4313),n=i(87161),l=i(70429),d=i(85125),h=i(68148),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){t.USER_QUERY="user_query",t.RESPONSE="response"}(s||(s={})),function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.id="",this.title="",this.cardText="",this.timestamp="",this.summariseMoreVisible=!1,this.variant=s.RESPONSE,this.copyChecked=!1,this.thumbsUpChecked=!1,this.thumbsDownChecked=!1}static get styles(){return[a.A,h.A]}thumbsUpToggled(){this.thumbsDownChecked=!1,this.thumbsUpChecked=!this.thumbsUpChecked,this.dispatchEvent(new CustomEvent("thumbs-up-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}thumbsDownToggled(){this.thumbsUpChecked=!1,this.thumbsDownChecked=!this.thumbsDownChecked,this.dispatchEvent(new CustomEvent("thumbs-down-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}summariseMoreToggled(){this.dispatchEvent(new CustomEvent("summarise-more-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}copyToggled(){navigator.clipboard.writeText(this.cardText),this.copyChecked=!0,setTimeout(()=>{this.copyChecked=!1},2e3)}get bottomBorderRadiusClass(){return this.timestamp?"with-bottom-border-radius":"no-bottom-border-radius"}get cardTextClassMap(){return{"md-card-ai-card-body-user-query":this.variant===s.USER_QUERY,[`md-card-ai-card-body-response-${this.bottomBorderRadiusClass}`]:this.variant===s.RESPONSE}}renderHeader(){return this.variant===s.RESPONSE&&""!==this.title?n.html`
1846
1852
  <div class="md-card-ai-header">
1847
1853
  <slot name="card-header-aside">
1848
1854
  <md-icon name="cisco-ai-assistant-color-gradient" iconSet="momentumBrandVisuals"></md-icon>
@@ -1853,12 +1859,12 @@
1853
1859
  </slot>
1854
1860
  </div>
1855
1861
  </div>
1856
- `:l.nothing}renderCardText(){return""!==this.cardText?a.html`
1862
+ `:n.nothing}renderCardText(){return""!==this.cardText?n.html`
1857
1863
  <div class=${(0,d.classMap)(this.cardTextClassMap)}>
1858
1864
  <h3>${this.cardText}</h3>
1859
1865
  ${this.renderResponseCard()}
1860
1866
  </div>
1861
- `:l.nothing}renderThumbsUpButton(){const t=this.thumbsUpChecked?"secondary":"ghost",e=this.thumbsUpChecked?"This is helpful, selected":"This is helpful";return a.html`
1867
+ `:n.nothing}renderThumbsUpButton(){const t=this.thumbsUpChecked?"secondary":"ghost",e=this.thumbsUpChecked?"This is helpful, selected":"This is helpful";return n.html`
1862
1868
  <div class="md-card-ai-thumbs-up">
1863
1869
  <md-button
1864
1870
  circle
@@ -1870,7 +1876,7 @@
1870
1876
  <md-icon slot="icon" name="like-regular" iconSet="momentumDesign"></md-icon>
1871
1877
  </md-button>
1872
1878
  </div>
1873
- `}renderThumbsDownButton(){const t=this.thumbsDownChecked?"secondary":"ghost",e=this.thumbsDownChecked?"This is not helpful, selected":"This is not helpful";return a.html`
1879
+ `}renderThumbsDownButton(){const t=this.thumbsDownChecked?"secondary":"ghost",e=this.thumbsDownChecked?"This is not helpful, selected":"This is not helpful";return n.html`
1874
1880
  <div>
1875
1881
  <md-button
1876
1882
  circle
@@ -1882,7 +1888,7 @@
1882
1888
  <md-icon slot="icon" name="dislike-regular" iconSet="momentumDesign"></md-icon>
1883
1889
  </md-button>
1884
1890
  </div>
1885
- `}renderCopyButton(){const t=this.copyChecked?"secondary":"ghost",e=this.copyChecked?"Copied, selected":"Copy summary";return a.html`
1891
+ `}renderCopyButton(){const t=this.copyChecked?"secondary":"ghost",e=this.copyChecked?"Copied, selected":"Copy summary";return n.html`
1886
1892
  <div class="md-card-ai-copy-button-container">
1887
1893
  <md-button
1888
1894
  size="32"
@@ -1899,7 +1905,7 @@
1899
1905
  <span slot="text">${this.copyChecked?"Copied":"Copy"}</span>
1900
1906
  </md-button>
1901
1907
  </div>
1902
- `}renderResponseCard(){return this.variant===o.RESPONSE&&""!==this.timestamp?a.html`
1908
+ `}renderResponseCard(){return this.variant===s.RESPONSE&&""!==this.timestamp?n.html`
1903
1909
  <div class="md-card-ai-divider"></div>
1904
1910
  <div class="md-card-ai-time-wrapper">
1905
1911
  <time class="md-card-ai-time" aria-hidden="true" datetime=${this.timestamp}> ${this.timestamp} </time>
@@ -1907,34 +1913,34 @@
1907
1913
  <div class="md-card-ai-feedback">${this.renderThumbsUpButton()} ${this.renderThumbsDownButton()}</div>
1908
1914
  ${this.renderCopyButton()}
1909
1915
  </div>
1910
- `:l.nothing}renderFooter(){return this.variant===o.RESPONSE&&this.summariseMoreVisible?a.html`
1916
+ `:n.nothing}renderFooter(){return this.variant===s.RESPONSE&&this.summariseMoreVisible?n.html`
1911
1917
  <div class="md-card-ai-footer">
1912
1918
  <md-button size="32" variant="ghost" outline @click=${this.summariseMoreToggled}>
1913
1919
  <span slot="text">Summarise more</span>
1914
1920
  </md-button>
1915
1921
  </div>
1916
- `:l.nothing}render(){return a.html`
1922
+ `:n.nothing}render(){return n.html`
1917
1923
  <div class="md-card-ai" id="${this.id}" part="card" tabindex="0">
1918
1924
  ${this.renderHeader()}
1919
1925
  <div class="content-margin">${this.renderCardText()} ${this.renderFooter()}</div>
1920
1926
  </div>
1921
- `}};c([(0,a.property)({type:String})],e.prototype,"id",void 0),c([(0,a.property)({type:String})],e.prototype,"title",void 0),c([(0,a.property)({type:String})],e.prototype,"cardText",void 0),c([(0,a.property)({type:String})],e.prototype,"timestamp",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),c([(0,a.property)({type:String})],e.prototype,"variant",void 0),c([(0,a.internalProperty)()],e.prototype,"copyChecked",void 0),c([(0,a.internalProperty)()],e.prototype,"thumbsUpChecked",void 0),c([(0,a.internalProperty)()],e.prototype,"thumbsDownChecked",void 0),e=c([(0,r.w)("md-card-ai")],e),t.ELEMENT=e}(s||(s={}))},65796:t=>{t.exports=u},65875:t=>{t.exports=x},66245:(t,e,i)=>{i.d(e,{ListItem:()=>o});var o,s=i(3001),r=i(31890),n=i(26272),a=i(41488),l=i(23968),d=i(21392),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,s.yC)(a.LitElement)){constructor(){super(...arguments),this.role="option",this.tabIndex=-1,this.shape="rounded",this._disabled=!1,this._selected=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.requestUpdate("disabled",e)}get selected(){return this._selected}set selected(t){const e=this._selected;this._selected=t,this.requestUpdate("selected",e)}get listItemTemplateClassMap(){return{[`md-list-item--${this.shape}`]:!!this.shape}}static get styles(){return[n.A,d.A]}render(){return a.html`
1922
- <div class="md-list-item ${(0,l.classMap)(this.listItemTemplateClassMap)}" part="list-item">
1927
+ `}};c([(0,l.property)({type:String})],e.prototype,"id",void 0),c([(0,l.property)({type:String})],e.prototype,"title",void 0),c([(0,l.property)({type:String})],e.prototype,"cardText",void 0),c([(0,l.property)({type:String})],e.prototype,"timestamp",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),c([(0,l.property)({type:String})],e.prototype,"variant",void 0),c([(0,l.state)()],e.prototype,"copyChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsUpChecked",void 0),c([(0,l.state)()],e.prototype,"thumbsDownChecked",void 0),e=c([(0,r.w)("md-card-ai")],e),t.ELEMENT=e}(o||(o={}))},65796:t=>{t.exports=c},65875:t=>{t.exports=w},66245:(t,e,i)=>{i.d(e,{ListItem:()=>s});var s,o=i(3001),r=i(31890),a=i(4313),n=i(87161),l=i(70429),d=i(85125),h=i(91729),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,o.yC)(n.LitElement)){constructor(){super(...arguments),this.role="option",this.tabIndex=-1,this.shape="rounded",this._disabled=!1,this._selected=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.requestUpdate("disabled",e)}get selected(){return this._selected}set selected(t){const e=this._selected;this._selected=t,this.requestUpdate("selected",e)}get listItemTemplateClassMap(){return{[`md-list-item--${this.shape}`]:!!this.shape}}static get styles(){return[a.A,h.A]}render(){return n.html`
1928
+ <div class="md-list-item ${(0,d.classMap)(this.listItemTemplateClassMap)}" part="list-item">
1923
1929
  <slot></slot>
1924
1930
  </div>
1925
- `}};h([(0,a.property)({type:String,reflect:!0})],e.prototype,"role",void 0),h([(0,a.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,a.property)({type:String,reflect:!0})],e.prototype,"shape",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),e=h([(0,r.w)("md-list-item")],e),t.ELEMENT=e}(o||(o={}))},66677:(t,e,i)=>{i.d(e,{QZ:()=>r,Qx:()=>n,XI:()=>l,dw:()=>d,qi:()=>a,sg:()=>s,ws:()=>o});const o=(t,e)=>{const i=[];[e].forEach(e=>{i.push(...((t,e)=>{const i=e.length;if(0===i)return[];const o=[],s=t.toLowerCase(),r=e.toLowerCase();let n=0,a=s.indexOf(r,n);for(;a>-1;)n=a+i,o.push([a,n]),a=s.indexOf(r,a+1);return o})(t,e))});const o=(([...t])=>{if(!t.length)return[];t.sort((t,e)=>t[0]!==e[0]?t[0]-e[0]:t[1]-e[1]);const e=[];let i=t[0][0],o=t[0][1];return t.shift(),t.forEach(([t,s])=>{t>=o?(e.push([i,o]),i=t,o=s):s>o&&(o=s)}),e.push([i,o]),e})(i),s=[];let r=0;return o.forEach(([e,i])=>{r!==e&&s.push({range:[e,i],matching:!1,text:t.slice(r,e)}),s.push({range:[e,i],matching:!0,text:t.slice(e,i)}),r=i}),r!==t.length&&s.push({range:[r],matching:!1,text:t.slice(r)}),s};function s(t,e,i){let o;return function(...s){const r=this,n=i&&!o;clearTimeout(o),o=setTimeout(function(){o=null,i||t.apply(r,s)},e),n&&t.apply(r,s)}}function r(t,e){return function e(i){if(!i||i===document||i===window)return null;const o=i.closest(t);return null!=o?o:e(i.getRootNode().host)}(e)}function n(t,e){return e>=0&&e<t.length?t[e]:void 0}function a(t,e=document){var i;const o=e instanceof ShadowRoot||e instanceof Document?e.querySelector(t):null===(i=e.shadowRoot)||void 0===i?void 0:i.querySelector(t);if(o)return o;const s=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of s){const i=a(t,e);if(i)return i}return null}function l(t,e=document){if(e instanceof ShadowRoot||e instanceof Document){const i=e.getElementById(t);if(i)return i}const i=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of i){const i=l(t,e);if(i)return i}return null}function d(){var t;let e=document.activeElement;for(;null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement;)e=e.shadowRoot.activeElement;return e}},68250:t=>{t.exports=b},68490:(t,e,i)=>{i.d(e,{List:()=>o});var o,s=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(97822),h=i(21392),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.alignment="vertical",this.label="option",this.activated=-1,this._role="listbox"}firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-label",this.label)}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}isFocusable(t){return!t.hasAttribute("hidden")}connectedCallback(){super.connectedCallback(),this._role=this.getAttribute("role")||"listbox",this.removeAttribute("role"),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}findListItemIndex(t){const e=t.composedPath();return this.slotted.findIndex(t=>e.includes(t))}switchListItemOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i)}setActivated(t){-1!==t&&(this.activated=t,this.selected=t,this.setSelected(t))}findSelectedListItemIndex(){return this.slotted.findIndex(t=>t.selected)}setSelected(t){const e=this.findSelectedListItemIndex();-1!==e&&e!==t&&(this.slotted[e].selected=!1),this.slotted[t]&&(this.slotted[t].selected=!0)}updated(t){super.updated(t),t.has("slotted")&&this.setActivated(this.activated),t.has("activated")&&this.setActivated(this.activated),t.has("label")&&this.setAttribute("aria-label",this.label)}isListItemDisabled(t){var e;const i=this.slotted[t];return null===(e=null==i?void 0:i.disabled)||void 0===e||e}handleClick(t){const e=this.findListItemIndex(t);-1!==e&&(this.isListItemDisabled(e)||(this.setActivated(e),this.notifySelectedChange()))}shouldElementHandleKey(t,e){if(t.hasAttribute("data-handles-keys")||t.closest("[data-handles-keys]"))return!0;const i=t.tagName.toLowerCase(),o=t.nodeName.toLowerCase(),r="input"===o||"textarea"===o||"select"===o,n=t.getAttribute("role"),a=t.hasAttribute("contenteditable")||"false"===t.getAttribute("aria-readonly"),l=[s.Uz.ArrowUp,s.Uz.ArrowDown,s.Uz.ArrowLeft,s.Uz.ArrowRight],d=[s.Uz.Enter,s.Uz.Space];return l.includes(e)?r||a||"textbox"===n||"combobox"===n||"listbox"===n||"menu"===n||"slider"===n||"scrollbar"===n||"tablist"===n||i.startsWith("md-")&&("md-input"===i||"md-select"===i||"md-combobox"===i):d.includes(e)?"button"===n||"link"===n||"checkbox"===n||"radio"===n||"button"===i||"a"===i||"md-button"===i||"md-checkbox"===i||"md-radio"===i||r:(e===s.Uz.Home||e===s.Uz.End)&&(r||a||"textbox"===n||"md-input"===i)}handleKeyDown(t){const e=t.composedPath()[0];if(this.shouldElementHandleKey(e,t.code))return;const{code:i}=t;switch(i){case s.Uz.End:this.switchListItemOnArrowPress(this.slotted.length-1);break;case s.Uz.Home:this.switchListItemOnArrowPress(0);break;case s.Uz.ArrowUp:case s.Uz.ArrowLeft:t.preventDefault(),0===this.selected?this.switchListItemOnArrowPress(this.slotted.length-1,-1):this.switchListItemOnArrowPress(this.selected-1,-1);break;case s.Uz.ArrowDown:case s.Uz.ArrowRight:t.preventDefault(),this.selected===this.slotted.length-1?this.switchListItemOnArrowPress(0):this.switchListItemOnArrowPress(this.selected+1);break;case s.Uz.Enter:case s.Uz.Space:this.isListItemDisabled(this.selected)||(this.setActivated(this.selected),this.notifySelectedChange())}}get slotElement(){return this.listItemSlot}static get styles(){return[a.A,h.A]}render(){return l.html`
1926
- <ul role=${(0,d.ifDefined)("list"!==this._role?this._role:void 0)} class="md-list" part="list">
1931
+ `}};c([(0,l.property)({type:String,reflect:!0})],e.prototype,"role",void 0),c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,l.property)({type:String,reflect:!0})],e.prototype,"shape",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),e=c([(0,r.w)("md-list-item")],e),t.ELEMENT=e}(s||(s={}))},66677:(t,e,i)=>{i.d(e,{QZ:()=>r,Qx:()=>a,XI:()=>l,dw:()=>d,qi:()=>n,sg:()=>o,ws:()=>s});const s=(t,e)=>{const i=[];[e].forEach(e=>{i.push(...((t,e)=>{const i=e.length;if(0===i)return[];const s=[],o=t.toLowerCase(),r=e.toLowerCase();let a=0,n=o.indexOf(r,a);for(;n>-1;)a=n+i,s.push([n,a]),n=o.indexOf(r,n+1);return s})(t,e))});const s=(([...t])=>{if(!t.length)return[];t.sort((t,e)=>t[0]!==e[0]?t[0]-e[0]:t[1]-e[1]);const e=[];let i=t[0][0],s=t[0][1];return t.shift(),t.forEach(([t,o])=>{t>=s?(e.push([i,s]),i=t,s=o):o>s&&(s=o)}),e.push([i,s]),e})(i),o=[];let r=0;return s.forEach(([e,i])=>{r!==e&&o.push({range:[e,i],matching:!1,text:t.slice(r,e)}),o.push({range:[e,i],matching:!0,text:t.slice(e,i)}),r=i}),r!==t.length&&o.push({range:[r],matching:!1,text:t.slice(r)}),o};function o(t,e,i){let s;return function(...o){const r=this,a=i&&!s;clearTimeout(s),s=setTimeout(function(){s=null,i||t.apply(r,o)},e),a&&t.apply(r,o)}}function r(t,e){return function e(i){if(!i||i===document||i===window)return null;const s=i.closest(t);return null!=s?s:e(i.getRootNode().host)}(e)}function a(t,e){return e>=0&&e<t.length?t[e]:void 0}function n(t,e=document){var i;const s=e instanceof ShadowRoot||e instanceof Document?e.querySelector(t):null===(i=e.shadowRoot)||void 0===i?void 0:i.querySelector(t);if(s)return s;const o=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of o){const i=n(t,e);if(i)return i}return null}function l(t,e=document){if(e instanceof ShadowRoot||e instanceof Document){const i=e.getElementById(t);if(i)return i}const i=Array.from(e.querySelectorAll("*")).map(t=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null}).filter(t=>null!==t);for(const e of i){const i=l(t,e);if(i)return i}return null}function d(){var t;let e=document.activeElement;for(;null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement;)e=e.shadowRoot.activeElement;return e}},68250:t=>{t.exports=m},68490:(t,e,i)=>{i.d(e,{List:()=>s});var s,o=i(90195),r=i(3001),a=i(31890),n=i(4313),l=i(87161),d=i(70429),h=i(20291),c=i(91729),p=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.alignment="vertical",this.label="option",this.activated=-1,this._role="listbox"}firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-label",this.label)}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}isFocusable(t){return!t.hasAttribute("hidden")}connectedCallback(){super.connectedCallback(),this._role=this.getAttribute("role")||"listbox",this.removeAttribute("role"),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}findListItemIndex(t){const e=t.composedPath();return this.slotted.findIndex(t=>e.includes(t))}switchListItemOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i)}setActivated(t){-1!==t&&(this.activated=t,this.selected=t,this.setSelected(t))}findSelectedListItemIndex(){return this.slotted.findIndex(t=>t.selected)}setSelected(t){const e=this.findSelectedListItemIndex();-1!==e&&e!==t&&(this.slotted[e].selected=!1),this.slotted[t]&&(this.slotted[t].selected=!0)}updated(t){super.updated(t),t.has("slotted")&&this.setActivated(this.activated),t.has("activated")&&this.setActivated(this.activated),t.has("label")&&this.setAttribute("aria-label",this.label)}isListItemDisabled(t){var e;const i=this.slotted[t];return null===(e=null==i?void 0:i.disabled)||void 0===e||e}handleClick(t){const e=this.findListItemIndex(t);-1!==e&&(this.isListItemDisabled(e)||(this.setActivated(e),this.notifySelectedChange()))}shouldElementHandleKey(t,e){if(t.hasAttribute("data-handles-keys")||t.closest("[data-handles-keys]"))return!0;const i=t.tagName.toLowerCase(),s=t.nodeName.toLowerCase(),r="input"===s||"textarea"===s||"select"===s,a=t.getAttribute("role"),n=t.hasAttribute("contenteditable")||"false"===t.getAttribute("aria-readonly"),l=[o.Uz.ArrowUp,o.Uz.ArrowDown,o.Uz.ArrowLeft,o.Uz.ArrowRight],d=[o.Uz.Enter,o.Uz.Space];return l.includes(e)?r||n||"textbox"===a||"combobox"===a||"listbox"===a||"menu"===a||"slider"===a||"scrollbar"===a||"tablist"===a||i.startsWith("md-")&&("md-input"===i||"md-select"===i||"md-combobox"===i):d.includes(e)?"button"===a||"link"===a||"checkbox"===a||"radio"===a||"button"===i||"a"===i||"md-button"===i||"md-checkbox"===i||"md-radio"===i||r:(e===o.Uz.Home||e===o.Uz.End)&&(r||n||"textbox"===a||"md-input"===i)}handleKeyDown(t){const e=t.composedPath()[0];if(this.shouldElementHandleKey(e,t.code))return;const{code:i}=t;switch(i){case o.Uz.End:this.switchListItemOnArrowPress(this.slotted.length-1);break;case o.Uz.Home:this.switchListItemOnArrowPress(0);break;case o.Uz.ArrowUp:case o.Uz.ArrowLeft:t.preventDefault(),0===this.selected?this.switchListItemOnArrowPress(this.slotted.length-1,-1):this.switchListItemOnArrowPress(this.selected-1,-1);break;case o.Uz.ArrowDown:case o.Uz.ArrowRight:t.preventDefault(),this.selected===this.slotted.length-1?this.switchListItemOnArrowPress(0):this.switchListItemOnArrowPress(this.selected+1);break;case o.Uz.Enter:case o.Uz.Space:this.isListItemDisabled(this.selected)||(this.setActivated(this.selected),this.notifySelectedChange())}}get slotElement(){return this.listItemSlot}static get styles(){return[n.A,c.A]}render(){return l.html`
1932
+ <ul role=${(0,h.ifDefined)("list"!==this._role?this._role:void 0)} class="md-list" part="list">
1927
1933
  <slot name="list-item"></slot>
1928
1934
  </ul>
1929
- `}};c([(0,l.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),c([(0,l.property)({type:String})],e.prototype,"label",void 0),c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"activated",void 0),c([(0,l.query)("slot[name='list-item']")],e.prototype,"listItemSlot",void 0),e=c([(0,n.w)("md-list")],e),t.ELEMENT=e}(o||(o={}))},69e3:t=>{t.exports=k},69112:(t,e,i)=>{i.d(e,{Grabber:()=>o}),i(61200);var o,s=i(37719),r=i(3001),n=i(31890),a=i(26283),l=i(26272),d=i(41488),h=i(23968),c=i(97822),p=i(42215),u=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this.label="Expand",this.checkedLabel="Collapse",this.hovered=!1,this.disabled=!1,this.checked=!1,this.visible=!0,this.focused=!1,this.disableClickToggle=!1,this.alignment="leading",this.dragger=!1,this.shadow=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}static get styles(){return[l.A,p.A]}toggleGrabber(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("grabber-toggled",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}handleMouseDown(){this.disableClickToggle||this.toggleGrabber()}handleKeyDown(t){this.disableClickToggle||(0,a.o)(t.code)&&(t.preventDefault(),this.toggleGrabber())}handleMouseEnter(){this.hovered=!0,this.dispatchHoverEvent()}handleMouseLeave(){this.hovered=!1,this.dispatchHoverEvent()}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}dispatchHoverEvent(){this.dispatchEvent(new CustomEvent("grabber-hover-changed",{bubbles:!0,composed:!0,detail:{hovered:this.hovered}}))}get collapsed(){return!this.checked}get grabberClassMap(){return{"md-grabber--active":this.checked,"md-grabber--disabled":this.disabled,"md-grabber--dragger":this.dragger,[`md-grabber--${this.alignment}`]:this.alignment,visible:this.visible||this.focused,"md-grabber--rtl":this.isRtl}}get grabberContainerClassMap(){return{[`${this.alignment}`]:!0,shadow:this.shadow&&(this.visible||this.checked)}}get isRtl(){return"rtl"===getComputedStyle(this).direction}get iconName(){if(this.dragger)return"list-menu-bold";if("leading"===this.alignment||"trailing"===this.alignment){const t=this.isRtl?"arrow-right-bold":"arrow-left-bold",e=this.isRtl?"arrow-left-bold":"arrow-right-bold";return this.checked?t:e}return this.checked?"arrow-up-bold":"arrow-down-bold"}get iconSize(){return this.dragger||!1===s.themeManager.isMomentumV2Enabled?"10":"12"}render(){return d.html`
1930
- <div class="md-grabber__container ${(0,h.classMap)(this.grabberContainerClassMap)}">
1935
+ `}};p([(0,d.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),p([(0,d.property)({type:String})],e.prototype,"label",void 0),p([(0,d.property)({type:Number,reflect:!0})],e.prototype,"activated",void 0),p([(0,d.query)("slot[name='list-item']")],e.prototype,"listItemSlot",void 0),e=p([(0,a.w)("md-list")],e),t.ELEMENT=e}(s||(s={}))},69e3:t=>{t.exports=$},69112:(t,e,i)=>{i.d(e,{Grabber:()=>s}),i(61200);var s,o=i(37719),r=i(3001),a=i(31890),n=i(26283),l=i(4313),d=i(87161),h=i(70429),c=i(85125),p=i(20291),u=i(53212),m=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this.label="Expand",this.checkedLabel="Collapse",this.hovered=!1,this.disabled=!1,this.checked=!1,this.visible=!0,this.focused=!1,this.disableClickToggle=!1,this.alignment="leading",this.dragger=!1,this.shadow=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}static get styles(){return[l.A,u.A]}toggleGrabber(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("grabber-toggled",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}handleMouseDown(){this.disableClickToggle||this.toggleGrabber()}handleKeyDown(t){this.disableClickToggle||(0,n.o)(t.code)&&(t.preventDefault(),this.toggleGrabber())}handleMouseEnter(){this.hovered=!0,this.dispatchHoverEvent()}handleMouseLeave(){this.hovered=!1,this.dispatchHoverEvent()}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}dispatchHoverEvent(){this.dispatchEvent(new CustomEvent("grabber-hover-changed",{bubbles:!0,composed:!0,detail:{hovered:this.hovered}}))}get collapsed(){return!this.checked}get grabberClassMap(){return{"md-grabber--active":this.checked,"md-grabber--disabled":this.disabled,"md-grabber--dragger":this.dragger,[`md-grabber--${this.alignment}`]:this.alignment,visible:this.visible||this.focused,"md-grabber--rtl":this.isRtl}}get grabberContainerClassMap(){return{[`${this.alignment}`]:!0,shadow:this.shadow&&(this.visible||this.checked)}}get isRtl(){return"rtl"===getComputedStyle(this).direction}get iconName(){if(this.dragger)return"list-menu-bold";if("leading"===this.alignment||"trailing"===this.alignment){const t=this.isRtl?"arrow-right-bold":"arrow-left-bold",e=this.isRtl?"arrow-left-bold":"arrow-right-bold";return this.checked?t:e}return this.checked?"arrow-up-bold":"arrow-down-bold"}get iconSize(){return this.dragger||!1===o.themeManager.isMomentumV2Enabled?"10":"12"}render(){return d.html`
1936
+ <div class="md-grabber__container ${(0,c.classMap)(this.grabberContainerClassMap)}">
1931
1937
  <button
1932
- class="md-grabber ${(0,h.classMap)(this.grabberClassMap)}"
1938
+ class="md-grabber ${(0,c.classMap)(this.grabberClassMap)}"
1933
1939
  part="grabber"
1934
1940
  aria-pressed=${this.checked}
1935
1941
  ?disabled=${this.disabled}
1936
1942
  tabindex="0"
1937
- aria-label=${(0,c.ifDefined)(this.label.length?this.label:void 0)}
1943
+ aria-label=${(0,p.ifDefined)(this.label.length?this.label:void 0)}
1938
1944
  type="button"
1939
1945
  role="button"
1940
1946
  @click="${()=>this.handleMouseDown()}"
@@ -1947,29 +1953,29 @@
1947
1953
  <md-icon name="${this.iconName}" size="${this.iconSize}" iconSet="momentumDesign"></md-icon>
1948
1954
  </button>
1949
1955
  </div>
1950
- `}};u([(0,d.property)({type:String})],e.prototype,"label",void 0),u([(0,d.property)({type:String})],e.prototype,"checkedLabel",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"hovered",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"checked",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"visible",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"focused",void 0),u([(0,d.property)({type:Boolean,attribute:"disable-click-toggle"})],e.prototype,"disableClickToggle",void 0),u([(0,d.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"dragger",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"shadow",void 0),e=u([(0,n.w)("md-grabber")],e),t.ELEMENT=e}(o||(o={}))},69371:t=>{t.exports=v},69494:(t,e,i)=>{i.d(e,{DateRangePicker:()=>h});var o=i(31890),s=i(81625),r=i(41488),n=i(65796),a=i(38654),l=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const d=" - ";var h;!function(t){let e=class extends a.DatePicker.ELEMENT{constructor(){super(...arguments),this.startDate=void 0,this.endDate=void 0,this.updateValue=()=>{if(this.startDate&&this.endDate){const t=t=>this.useISOFormat?t:n.DateTime.fromISO(t).toLocaleString(n.DateTime.DATE_SHORT,{locale:this.locale}),e=t(this.startDate),i=t(this.endDate);this.value=`${e}${d}${i}`}},this.isValueValid=()=>{var t,e;if(!this.validateDate)return!0;const i=null!==(e=null===(t=this.value)||void 0===t?void 0:t.split(d))&&void 0!==e?e:[];return 2===i.length&&this.validateDateString(i[0])&&this.validateDateString(i[1])},this.getDefaultAriaLabel=()=>{if(this.startDate&&this.endDate){const t=n.DateTime.fromISO(this.startDate),e=n.DateTime.fromISO(this.endDate);if(t.isValid&&e.isValid)return`Choose Date Range, currently selected range is ${t.toLocaleString(n.DateTime.DATE_FULL)} to ${e.toLocaleString(n.DateTime.DATE_FULL)}`}return"Choose Date Range"}}connectedCallback(){super.connectedCallback(),super.render(),this.addEventListener("date-pre-selection-change",this.handleDateSelection),this.updateValue()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("date-pre-selection-change",this.handleDateSelection)}updated(t){super.updated(t),!t.has("startDate")&&!t.has("endDate")||t.has("focusedDate")||this.updateValue()}getPlaceHolderString(){if(this.placeholder)return this.placeholder;if(this.useISOFormat)return`YYYY-MM-DD${d}YYYY-MM-DD`;const t=(0,s.gq)(this.locale).toUpperCase();return`${t}${d}${t}`}setSelected(){}dateToSqlTranslate(t){return t.toSQLDate()}onApplyClick(){this.emitDateRange(),this.updateValue(),this.shouldCloseOnSelect&&this.setOpen(!1)}handleDateSelection(t){var e;const i=t.detail.data;i&&(this.selectedDate=i,this.focusedDate=i,this.startDate?this.endDate?(this.startDate=this.dateToSqlTranslate(i),this.endDate=void 0):i<n.DateTime.fromISO(this.startDate)?(this.endDate=this.startDate,this.startDate=this.dateToSqlTranslate(i)):this.endDate=this.dateToSqlTranslate(i):this.startDate=this.dateToSqlTranslate(i),(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)||(this.emitDateRange(),this.updateValue()))}emitDateRange(){if(!this.startDate||!this.endDate)return;const t=new CustomEvent("date-range-change",{detail:{startDate:this.startDate,endDate:this.endDate}});this.dispatchEvent(t)}};l([(0,r.property)({type:String,attribute:"start-date",reflect:!0})],e.prototype,"startDate",void 0),l([(0,r.property)({type:String,attribute:"end-date",reflect:!0})],e.prototype,"endDate",void 0),e=l([(0,o.w)("md-date-range-picker")],e),t.ELEMENT=e}(h||(h={}))},69788:(t,e,i)=>{i.d(e,{Loading:()=>o});var o,s=i(31890),r=i(26272),n=i(41488),a=i(17518),l=i(76700),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.size="",this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[r.A,l.A]}firstUpdated(t){super.firstUpdated(t),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".md-loading__icon");if(!e)return;let i=null;const o=1400,s=t=>{if(!this.isAnimating)return;i||(i=t);const r=(t-i)%o;e.forEach((t,e)=>{const i=(r-200*e+o)%o;let s=0,n=.1;if(i<280){const t=.1+i/280*.9;s=t,n=t}else if(i<1400){const t=Math.min((i-280)/1120*2,1);s=Math.max(1-.9*t,.9),n=Math.max(1-.9*t,.2)}t.style.transform=`scale(${s})`,t.style.opacity=`${n}`}),this.animationFrameId=requestAnimationFrame(s)};this.animationFrameId=requestAnimationFrame(s)}stopAnimation(){var t;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".md-loading__icon");e&&e.forEach(t=>{t.style.transform="scale(0, 0)",t.style.opacity="0.1"})}get loadingClassMap(){return{[`md-loading--${this.size}`]:!!this.size}}get loadingIconClassMap(){return{"md-loading__icon":!0}}render(){return n.html`
1951
- <div class="md-loading ${(0,a.classMap)(this.loadingClassMap)}">
1952
- <span class=${(0,a.classMap)(this.loadingIconClassMap)}></span>
1953
- <span class=${(0,a.classMap)(this.loadingIconClassMap)}></span>
1954
- <span class=${(0,a.classMap)(this.loadingIconClassMap)}></span>
1956
+ `}};m([(0,h.property)({type:String})],e.prototype,"label",void 0),m([(0,h.property)({type:String})],e.prototype,"checkedLabel",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"hovered",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"disabled",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"checked",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"visible",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"focused",void 0),m([(0,h.property)({type:Boolean,attribute:"disable-click-toggle"})],e.prototype,"disableClickToggle",void 0),m([(0,h.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"dragger",void 0),m([(0,h.property)({type:Boolean})],e.prototype,"shadow",void 0),e=m([(0,a.w)("md-grabber")],e),t.ELEMENT=e}(s||(s={}))},69371:t=>{t.exports=y},69494:(t,e,i)=>{i.d(e,{DateRangePicker:()=>h});var s=i(31890),o=i(81625),r=i(70429),a=i(65796),n=i(38654),l=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const d=" - ";var h;!function(t){let e=class extends n.DatePicker.ELEMENT{constructor(){super(...arguments),this.startDate=void 0,this.endDate=void 0,this.updateValue=()=>{if(this.startDate&&this.endDate){const t=t=>this.useISOFormat?t:a.DateTime.fromISO(t).toLocaleString(a.DateTime.DATE_SHORT,{locale:this.locale}),e=t(this.startDate),i=t(this.endDate);this.value=`${e}${d}${i}`}},this.isValueValid=()=>{var t,e;if(!this.validateDate)return!0;const i=null!==(e=null===(t=this.value)||void 0===t?void 0:t.split(d))&&void 0!==e?e:[];return 2===i.length&&this.validateDateString(i[0])&&this.validateDateString(i[1])},this.getDefaultAriaLabel=()=>{if(this.startDate&&this.endDate){const t=a.DateTime.fromISO(this.startDate),e=a.DateTime.fromISO(this.endDate);if(t.isValid&&e.isValid)return`Choose Date Range, currently selected range is ${t.toLocaleString(a.DateTime.DATE_FULL)} to ${e.toLocaleString(a.DateTime.DATE_FULL)}`}return"Choose Date Range"}}connectedCallback(){super.connectedCallback(),super.render(),this.addEventListener("date-pre-selection-change",this.handleDateSelection),this.updateValue()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("date-pre-selection-change",this.handleDateSelection)}updated(t){super.updated(t),!t.has("startDate")&&!t.has("endDate")||t.has("focusedDate")||this.updateValue()}getPlaceHolderString(){if(this.placeholder)return this.placeholder;if(this.useISOFormat)return`YYYY-MM-DD${d}YYYY-MM-DD`;const t=(0,o.gq)(this.locale).toUpperCase();return`${t}${d}${t}`}setSelected(){}dateToSqlTranslate(t){return t.toSQLDate()}onApplyClick(){this.emitDateRange(),this.updateValue(),this.shouldCloseOnSelect&&this.setOpen(!1)}handleDateSelection(t){var e;const i=t.detail.data;i&&(this.selectedDate=i,this.focusedDate=i,this.startDate?this.endDate?(this.startDate=this.dateToSqlTranslate(i),this.endDate=void 0):i<a.DateTime.fromISO(this.startDate)?(this.endDate=this.startDate,this.startDate=this.dateToSqlTranslate(i)):this.endDate=this.dateToSqlTranslate(i):this.startDate=this.dateToSqlTranslate(i),(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)||(this.emitDateRange(),this.updateValue()))}emitDateRange(){if(!this.startDate||!this.endDate)return;const t=new CustomEvent("date-range-change",{detail:{startDate:this.startDate,endDate:this.endDate}});this.dispatchEvent(t)}};l([(0,r.property)({type:String,attribute:"start-date",reflect:!0})],e.prototype,"startDate",void 0),l([(0,r.property)({type:String,attribute:"end-date",reflect:!0})],e.prototype,"endDate",void 0),e=l([(0,s.w)("md-date-range-picker")],e),t.ELEMENT=e}(h||(h={}))},69788:(t,e,i)=>{i.d(e,{Loading:()=>s});var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(20015),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.size="",this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[r.A,d.A]}firstUpdated(t){super.firstUpdated(t),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".md-loading__icon");if(!e)return;let i=null;const s=1400,o=t=>{if(!this.isAnimating)return;i||(i=t);const r=(t-i)%s;e.forEach((t,e)=>{const i=(r-200*e+s)%s;let o=0,a=.1;if(i<280){const t=.1+i/280*.9;o=t,a=t}else if(i<1400){const t=Math.min((i-280)/1120*2,1);o=Math.max(1-.9*t,.9),a=Math.max(1-.9*t,.2)}t.style.transform=`scale(${o})`,t.style.opacity=`${a}`}),this.animationFrameId=requestAnimationFrame(o)};this.animationFrameId=requestAnimationFrame(o)}stopAnimation(){var t;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".md-loading__icon");e&&e.forEach(t=>{t.style.transform="scale(0, 0)",t.style.opacity="0.1"})}get loadingClassMap(){return{[`md-loading--${this.size}`]:!!this.size}}get loadingIconClassMap(){return{"md-loading__icon":!0}}render(){return a.html`
1957
+ <div class="md-loading ${(0,l.classMap)(this.loadingClassMap)}">
1958
+ <span class=${(0,l.classMap)(this.loadingIconClassMap)}></span>
1959
+ <span class=${(0,l.classMap)(this.loadingIconClassMap)}></span>
1960
+ <span class=${(0,l.classMap)(this.loadingIconClassMap)}></span>
1955
1961
  </div>
1956
- `}};d([(0,n.property)({type:String})],e.prototype,"size",void 0),e=d([(0,s.w)("md-loading")],e),t.ELEMENT=e}(o||(o={}))},71128:(t,e,i)=>{i.d(e,{Popover:()=>g,PopoverController:()=>v}),i(96798),i(61200);var o=i(31890),s=i(28373),r=i(66677),n=i(5784),a=i(41488),l=i(40333),d=i(73679),h=i(68419),c=i(36365),p=i(3998),u=i(33759),m=i(50325),y=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},b=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function n(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(n,a)}l((o=o.apply(t,e||[])).next())})};class v{show(t){}hide(){}toggle(){}isVisible(){return!1}}let g=class extends((0,s.d)(a.LitElement)){set controller(t){t?(t.show=(t=!1)=>this.showPopover(t),t.hide=()=>this.hidePopover(),t.toggle=()=>this.togglePopoverVisible(),t.isVisible=()=>this.visible,this._controller=t):this._controller=null}get controller(){return this._controller}constructor(){super(),this.id="",this.triggerID="",this.trigger=h.zY.TRIGGER,this.placement=h.zY.PLACEMENT,this.strategy=h.zY.STRATEGY,this.color=h.zY.COLOR,this.visible=h.zY.VISIBLE,this.offset=h.zY.OFFSET,this.focusTrap=h.zY.FOCUS_TRAP,this.preventScroll=h.zY.PREVENT_SCROLL,this.showArrow=h.zY.ARROW,this.closeButton=h.zY.CLOSE_BUTTON,this.interactive=h.zY.INTERACTIVE,this.delay=h.zY.DELAY,this.hideOnEscape=h.zY.HIDE_ON_ESCAPE,this.hideOnBlur=h.zY.HIDE_ON_BLUR,this.hideOnWindowBlur=h.zY.HIDE_ON_WINDOW_BLUR,this.hideOnOutsideClick=h.zY.HIDE_ON_CLICK_OUTSIDE,this.focusBackToTrigger=h.zY.FOCUS_BACK,this.backdrop=h.zY.BACKDROP,this.flip=h.zY.FLIP,this.size=h.zY.SIZE,this.zIndex=h.zY.Z_INDEX,this.appendTo="",this.closeButtonAriaLabel=null,this.role=h.zY.ROLE,this.ariaLabelledby=null,this.ariaDescribedby=null,this.disableAriaExpanded=h.zY.DISABLE_ARIA_EXPANDED,this.animationFrame=h.zY.ANIMATION_FRAME,this._controller=null,this.arrowElement=null,this.triggerElement=null,this.hoverTimer=null,this.isTriggerClicked=!1,this.openDelay=0,this.closeDelay=0,this.backdropElement=null,this.useLegacyFindFocusable=()=>!1,this.cleanupAutoUpdate=null,this.previousActiveElement=null,this.onOutsidePopoverClick=t=>{const e=t.composedPath();this.triggerElement&&e.includes(this.triggerElement)||e.includes(this)||p.S.shouldDeferToTopForOutsideClick(this)||this.hideThisPopover()},this.hideThisPopover=()=>{setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1,this.utils.handleAppendTo(!1)},this.closeDelay)},this.onEscapeKeydown=t=>{this.visible&&"Escape"===t.code&&(t.preventDefault(),this.hidePopover())},this.onPopoverFocusOut=t=>{const e=t.relatedTarget;!e||this.isElementInPopover(e)?e||setTimeout(()=>{const t=(0,r.dw)();this.isElementInPopover(t)||this.hidePopover()},0):this.hidePopover()},this.handleWindowBlurEvent=()=>{this.visible&&this.hidePopover()},this.startCloseDelay=()=>{if(this.interactive){if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}else this.hidePopover()},this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)},this.showPopover=(t=!1)=>{this.cancelCloseDelay(),t&&this.openDelay>0?setTimeout(()=>{this.utils.handleAppendTo(!0),this.visible=!0},this.openDelay):(this.utils.handleAppendTo(!0),this.visible=!0)},this.hidePopover=()=>{p.S.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1,this.utils.handleAppendTo(!1)},this.closeDelay)},this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)},this.onMouseEnterTrigger=()=>{this.trigger.includes("mouseenter")&&(this.visible||(this.previousActiveElement=(0,r.dw)()),this.showPopover(!0))},this.onFocusInTrigger=()=>{this.trigger.includes("focusin")&&this.showPopover(!1)},this.onTriggerClick=t=>{this.trigger.includes("mouseenter")&&this.isMouseOverTrigger(t)||this.togglePopoverVisible()},this.utils=new u.h(this),this.preventClickOutside=!0}firstUpdated(t){const e=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return b(this,void 0,void 0,function*(){e.firstUpdated.call(this,t),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,c.T.onCreatedPopover(this),this.visible&&(this.utils.handleAppendTo(!0),this.positionPopover(),yield this.handleCreatePopoverFirstUpdate())})}disconnectedCallback(){const t=Object.create(null,{disconnectedCallback:{get:()=>super.disconnectedCallback}});return b(this,void 0,void 0,function*(){t.disconnectedCallback.call(this),this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null),this._controller=null,this.previousActiveElement=null,this.removeEventListeners(),c.T.onDestroyedPopover(this),p.S.remove(this)})}setupTriggerListener(){if(!this.triggerID)return;const t=this.getRootNode();if(this.triggerElement=(0,r.qi)(`[id="${this.triggerID}"]`,t),!this.triggerElement){const e=null==t?void 0:t.host;if(e){const t=e.querySelector("[slot]");(null==t?void 0:t.id)===this.triggerID&&(this.triggerElement=t)}}if(this.triggerElement){if("mouseenter"===this.trigger&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.onTriggerClick),this.trigger.includes("mouseenter")){const t=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.onMouseEnterTrigger),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),null==t||t.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.onFocusInTrigger),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;const t=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.onTriggerClick),this.triggerElement.removeEventListener("mouseenter",this.onMouseEnterTrigger),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.onFocusInTrigger),this.triggerElement.removeEventListener("focusout",this.hidePopover),null==t||t.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}updated(t){const e=Object.create(null,{updated:{get:()=>super.updated}});return b(this,void 0,void 0,function*(){if(e.updated.call(this,t),t.has("visible")){const e=t.get("visible")||!1;yield this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}if(t.has("placement")&&this.setAttribute("placement",Object.values(h.ME).includes(this.placement)?this.placement:h.zY.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("trigger")){const t=this.trigger.split(" ").filter(t=>Object.values(h.tr).includes(t));this.setAttribute("trigger",t.length>0?this.trigger:h.zY.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}t.has("triggerID")&&(this.removeEventListeners(),this.setupTriggerListener(),this.utils.setupAccessibility()),t.has("color")&&this.setAttribute("color",Object.values(h.o$).includes(this.color)?this.color:h.zY.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.setupAccessibility(),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("interactive")&&this.utils.updateAriaHasPopupAttribute()})}isElementInPopover(t){return!!t&&(!!this.contains(t)||(0,r.QZ)("md-popover",t)===this)}isOpenUpdated(t,e){const i=Object.create(null,{preventScroll:{get:()=>super.preventScroll,set:t=>super.preventScroll=t}});return b(this,void 0,void 0,function*(){var o,s,r,n;if(t!==e&&this.triggerElement)if(e)p.S.peek()!==this&&p.S.push(this),i.preventScroll=this.preventScroll,this.focusTrap&&(null===(o=this.activateFocusTrap)||void 0===o||o.call(this)),this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),yield this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),"click"===this.trigger&&(this.triggerElement.style.pointerEvents="none")),this.hideOnWindowBlur&&window.addEventListener("blur",this.handleWindowBlurEvent),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),c.T.onShowPopover(this);else{if(this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null),p.S.removeItem(this),this.backdropElement&&(null===(s=this.backdropElement)||void 0===s||s.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),"click"===this.trigger&&(this.triggerElement.style.pointerEvents="")),this.hideOnWindowBlur&&window.removeEventListener("blur",this.handleWindowBlurEvent),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),null===(r=this.deactivateFocusTrap)||void 0===r||r.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){const t=this.triggerElement.getAttribute("aria-haspopup");"dialog"!==t&&"alertdialog"!==t||this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&(this.previousActiveElement instanceof HTMLElement?this.previousActiveElement.focus():null===(n=this.setFocusOnDeepestNestedElement)||void 0===n||n.call(this,this.triggerElement)),this.previousActiveElement=null,c.T.onHidePopover(this)}})}isRectOverTrigger(t,e){if(this.triggerElement&&"undefined"!=typeof window&&"undefined"!=typeof document){const i=this.triggerElement.getBoundingClientRect();return t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return!1}isMouseOverTrigger(t){const{clientX:e,clientY:i}=t instanceof MouseEvent?t:{clientX:0,clientY:0};return this.isRectOverTrigger(e,i)}handleCreatePopoverFirstUpdate(){return b(this,void 0,void 0,function*(){var t,e;this.visible&&this.interactive&&(null===(t=this.setFocusableElements)||void 0===t||t.call(this),yield this.updateComplete,null===(e=this.setInitialFocus)||void 0===e||e.call(this))})}positionPopover(){if(!this.triggerElement)return;this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null);const t=[(0,n.shift)()];let e=this.offset;if(this.flip&&t.push((0,n.flip)()),this.size){const e=this.renderRoot.querySelector('[part="popover-content"]');t.push((0,n.size)({apply({availableHeight:t}){e&&Object.assign(e.style,{maxHeight:`${t}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){const i=this.arrowElement.offsetHeight;e=Math.sqrt(2*i**2)/2+this.offset,t.push((0,n.arrow)({element:this.arrowElement,padding:12}))}t.push((0,n.offset)(e)),this.cleanupAutoUpdate=(0,n.autoUpdate)(this.triggerElement,this,()=>b(this,void 0,void 0,function*(){if(!this.triggerElement)return;const{x:e,y:i,middlewareData:o,placement:s}=yield(0,n.computePosition)(this.triggerElement,this,{placement:this.placement,middleware:t,strategy:this.strategy});this.utils.updatePopoverStyle(e,i),o.arrow&&this.arrowElement&&this.utils.updateArrowStyle(o.arrow,s),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(s)}),{animationFrame:this.animationFrame})}render(){return a.html`
1962
+ `}};h([(0,n.property)({type:String})],e.prototype,"size",void 0),e=h([(0,o.w)("md-loading")],e),t.ELEMENT=e}(s||(s={}))},70429:t=>{t.exports=e},71128:(t,e,i)=>{i.d(e,{Popover:()=>f,PopoverController:()=>g}),i(96798),i(61200);var s=i(31890),o=i(28373),r=i(66677),a=i(5784),n=i(87161),l=i(36752),d=i(54765),h=i(70429),c=i(68419),p=i(36365),u=i(3998),m=i(33759),y=i(86210),b=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},v=function(t,e,i,s){return new(i||(i=Promise))(function(o,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((s=s.apply(t,e||[])).next())})};class g{show(t){}hide(){}toggle(){}isVisible(){return!1}}let f=class extends((0,o.d)(n.LitElement)){set controller(t){t?(t.show=(t=!1)=>this.showPopover(t),t.hide=()=>this.hidePopover(),t.toggle=()=>this.togglePopoverVisible(),t.isVisible=()=>this.visible,this._controller=t):this._controller=null}get controller(){return this._controller}constructor(){super(),this.id="",this.triggerID="",this.trigger=c.zY.TRIGGER,this.placement=c.zY.PLACEMENT,this.strategy=c.zY.STRATEGY,this.color=c.zY.COLOR,this.visible=c.zY.VISIBLE,this.offset=c.zY.OFFSET,this.focusTrap=c.zY.FOCUS_TRAP,this.preventScroll=c.zY.PREVENT_SCROLL,this.showArrow=c.zY.ARROW,this.closeButton=c.zY.CLOSE_BUTTON,this.interactive=c.zY.INTERACTIVE,this.delay=c.zY.DELAY,this.hideOnEscape=c.zY.HIDE_ON_ESCAPE,this.hideOnBlur=c.zY.HIDE_ON_BLUR,this.hideOnWindowBlur=c.zY.HIDE_ON_WINDOW_BLUR,this.hideOnOutsideClick=c.zY.HIDE_ON_CLICK_OUTSIDE,this.focusBackToTrigger=c.zY.FOCUS_BACK,this.backdrop=c.zY.BACKDROP,this.flip=c.zY.FLIP,this.size=c.zY.SIZE,this.zIndex=c.zY.Z_INDEX,this.appendTo="",this.closeButtonAriaLabel=null,this.role=c.zY.ROLE,this.ariaLabelledby=null,this.ariaDescribedby=null,this.disableAriaExpanded=c.zY.DISABLE_ARIA_EXPANDED,this.animationFrame=c.zY.ANIMATION_FRAME,this._controller=null,this.arrowElement=null,this.triggerElement=null,this.hoverTimer=null,this.isTriggerClicked=!1,this.openDelay=0,this.closeDelay=0,this.backdropElement=null,this.useLegacyFindFocusable=()=>!1,this.cleanupAutoUpdate=null,this.previousActiveElement=null,this.onOutsidePopoverClick=t=>{const e=t.composedPath();this.triggerElement&&e.includes(this.triggerElement)||e.includes(this)||u.S.shouldDeferToTopForOutsideClick(this)||this.hideThisPopover()},this.hideThisPopover=()=>{setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1,this.utils.handleAppendTo(!1)},this.closeDelay)},this.onEscapeKeydown=t=>{this.visible&&"Escape"===t.code&&(t.preventDefault(),this.hidePopover())},this.onPopoverFocusOut=t=>{const e=t.relatedTarget;!e||this.isElementInPopover(e)?e||setTimeout(()=>{const t=(0,r.dw)();this.isElementInPopover(t)||this.hidePopover()},0):this.hidePopover()},this.handleWindowBlurEvent=()=>{this.visible&&this.hidePopover()},this.startCloseDelay=()=>{if(this.interactive){if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}else this.hidePopover()},this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)},this.showPopover=(t=!1)=>{this.cancelCloseDelay(),t&&this.openDelay>0?setTimeout(()=>{this.utils.handleAppendTo(!0),this.visible=!0},this.openDelay):(this.utils.handleAppendTo(!0),this.visible=!0)},this.hidePopover=()=>{u.S.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1,this.utils.handleAppendTo(!1)},this.closeDelay)},this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)},this.onMouseEnterTrigger=()=>{this.trigger.includes("mouseenter")&&(this.visible||(this.previousActiveElement=(0,r.dw)()),this.showPopover(!0))},this.onFocusInTrigger=()=>{this.trigger.includes("focusin")&&this.showPopover(!1)},this.onTriggerClick=t=>{this.trigger.includes("mouseenter")&&this.isMouseOverTrigger(t)||this.togglePopoverVisible()},this.utils=new m.h(this),this.preventClickOutside=!0}firstUpdated(t){const e=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return v(this,void 0,void 0,function*(){e.firstUpdated.call(this,t),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,p.T.onCreatedPopover(this),this.visible&&(this.utils.handleAppendTo(!0),this.positionPopover(),yield this.handleCreatePopoverFirstUpdate())})}disconnectedCallback(){const t=Object.create(null,{disconnectedCallback:{get:()=>super.disconnectedCallback}});return v(this,void 0,void 0,function*(){t.disconnectedCallback.call(this),this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null),this._controller=null,this.previousActiveElement=null,this.removeEventListeners(),p.T.onDestroyedPopover(this),u.S.remove(this)})}setupTriggerListener(){if(!this.triggerID)return;const t=this.getRootNode();if(this.triggerElement=(0,r.qi)(`[id="${this.triggerID}"]`,t),!this.triggerElement){const e=null==t?void 0:t.host;if(e){const t=e.querySelector("[slot]");(null==t?void 0:t.id)===this.triggerID&&(this.triggerElement=t)}}if(this.triggerElement){if("mouseenter"===this.trigger&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.onTriggerClick),this.trigger.includes("mouseenter")){const t=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.onMouseEnterTrigger),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),null==t||t.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.onFocusInTrigger),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;const t=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.onTriggerClick),this.triggerElement.removeEventListener("mouseenter",this.onMouseEnterTrigger),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.onFocusInTrigger),this.triggerElement.removeEventListener("focusout",this.hidePopover),null==t||t.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}updated(t){const e=Object.create(null,{updated:{get:()=>super.updated}});return v(this,void 0,void 0,function*(){if(e.updated.call(this,t),t.has("visible")){const e=t.get("visible")||!1;yield this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}if(t.has("placement")&&this.setAttribute("placement",Object.values(c.ME).includes(this.placement)?this.placement:c.zY.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("trigger")){const t=this.trigger.split(" ").filter(t=>Object.values(c.tr).includes(t));this.setAttribute("trigger",t.length>0?this.trigger:c.zY.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}t.has("triggerID")&&(this.removeEventListeners(),this.setupTriggerListener(),this.utils.setupAccessibility()),t.has("color")&&this.setAttribute("color",Object.values(c.o$).includes(this.color)?this.color:c.zY.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.setupAccessibility(),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("interactive")&&this.utils.updateAriaHasPopupAttribute()})}isElementInPopover(t){return!!t&&(!!this.contains(t)||(0,r.QZ)("md-popover",t)===this)}isOpenUpdated(t,e){const i=Object.create(null,{preventScroll:{get:()=>super.preventScroll,set:t=>super.preventScroll=t}});return v(this,void 0,void 0,function*(){var s,o,r,a;if(t!==e&&this.triggerElement)if(e)u.S.peek()!==this&&u.S.push(this),i.preventScroll=this.preventScroll,this.focusTrap&&(null===(s=this.activateFocusTrap)||void 0===s||s.call(this)),this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),yield this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),"click"===this.trigger&&(this.triggerElement.style.pointerEvents="none")),this.hideOnWindowBlur&&window.addEventListener("blur",this.handleWindowBlurEvent),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),p.T.onShowPopover(this);else{if(this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null),u.S.removeItem(this),this.backdropElement&&(null===(o=this.backdropElement)||void 0===o||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),"click"===this.trigger&&(this.triggerElement.style.pointerEvents="")),this.hideOnWindowBlur&&window.removeEventListener("blur",this.handleWindowBlurEvent),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),null===(r=this.deactivateFocusTrap)||void 0===r||r.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){const t=this.triggerElement.getAttribute("aria-haspopup");"dialog"!==t&&"alertdialog"!==t||this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&(this.previousActiveElement instanceof HTMLElement?this.previousActiveElement.focus():null===(a=this.setFocusOnDeepestNestedElement)||void 0===a||a.call(this,this.triggerElement)),this.previousActiveElement=null,p.T.onHidePopover(this)}})}isRectOverTrigger(t,e){if(this.triggerElement&&"undefined"!=typeof window&&"undefined"!=typeof document){const i=this.triggerElement.getBoundingClientRect();return t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return!1}isMouseOverTrigger(t){const{clientX:e,clientY:i}=t instanceof MouseEvent?t:{clientX:0,clientY:0};return this.isRectOverTrigger(e,i)}handleCreatePopoverFirstUpdate(){return v(this,void 0,void 0,function*(){var t,e;this.visible&&this.interactive&&(null===(t=this.setFocusableElements)||void 0===t||t.call(this),yield this.updateComplete,null===(e=this.setInitialFocus)||void 0===e||e.call(this))})}positionPopover(){if(!this.triggerElement)return;this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null);const t=[(0,a.shift)()];let e=this.offset;if(this.flip&&t.push((0,a.flip)()),this.size){const e=this.renderRoot.querySelector('[part="popover-content"]');t.push((0,a.size)({apply({availableHeight:t}){e&&Object.assign(e.style,{maxHeight:`${t}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){const i=this.arrowElement.offsetHeight;e=Math.sqrt(2*i**2)/2+this.offset,t.push((0,a.arrow)({element:this.arrowElement,padding:12}))}t.push((0,a.offset)(e)),this.cleanupAutoUpdate=(0,a.autoUpdate)(this.triggerElement,this,()=>v(this,void 0,void 0,function*(){if(!this.triggerElement)return;const{x:e,y:i,middlewareData:s,placement:o}=yield(0,a.computePosition)(this.triggerElement,this,{placement:this.placement,middleware:t,strategy:this.strategy});this.utils.updatePopoverStyle(e,i),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,o),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(o)}),{animationFrame:this.animationFrame})}render(){return n.html`
1957
1963
  <div class="popover-hover-bridge"></div>
1958
- ${this.closeButton?a.html` <md-button
1964
+ ${this.closeButton?n.html` <md-button
1959
1965
  class="popover-close"
1960
1966
  hasRemoveStyle
1961
1967
  size="20"
1962
1968
  circle
1963
- ariaLabel=${(0,d.ifDefined)(this.closeButtonAriaLabel)||""}
1969
+ ariaLabel=${(0,d.J)(this.closeButtonAriaLabel)||""}
1964
1970
  @button-click="${this.hidePopover}"
1965
1971
  >
1966
1972
  <md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
1967
- </md-button>`:l.nothing}
1968
- ${this.showArrow?a.html`<div class="popover-arrow"></div>`:l.nothing}
1973
+ </md-button>`:l.s6}
1974
+ ${this.showArrow?n.html`<div class="popover-arrow"></div>`:l.s6}
1969
1975
  <div part="popover-content">
1970
1976
  <slot></slot>
1971
1977
  </div>
1972
- `}static get styles(){return[m.A]}};y([(0,a.property)({type:String,reflect:!0})],g.prototype,"id",void 0),y([(0,a.property)({type:String,reflect:!0})],g.prototype,"triggerID",void 0),y([(0,a.property)({type:String,reflect:!0})],g.prototype,"trigger",void 0),y([(0,a.property)({type:String,reflect:!0})],g.prototype,"placement",void 0),y([(0,a.property)({type:String,reflect:!0})],g.prototype,"strategy",void 0),y([(0,a.property)({type:String,reflect:!0})],g.prototype,"color",void 0),y([(0,a.property)({type:Boolean,reflect:!0})],g.prototype,"visible",void 0),y([(0,a.property)({type:Number,reflect:!0})],g.prototype,"offset",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"focus-trap"})],g.prototype,"focusTrap",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],g.prototype,"preventScroll",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"show-arrow"})],g.prototype,"showArrow",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"close-button"})],g.prototype,"closeButton",void 0),y([(0,a.property)({type:Boolean,reflect:!0})],g.prototype,"interactive",void 0),y([(0,a.property)({type:String,reflect:!0})],g.prototype,"delay",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],g.prototype,"hideOnEscape",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],g.prototype,"hideOnBlur",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"hide-on-window-blur"})],g.prototype,"hideOnWindowBlur",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],g.prototype,"hideOnOutsideClick",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],g.prototype,"focusBackToTrigger",void 0),y([(0,a.property)({type:Boolean,reflect:!0})],g.prototype,"backdrop",void 0),y([(0,a.property)({type:Boolean,reflect:!0})],g.prototype,"flip",void 0),y([(0,a.property)({type:Boolean,reflect:!0})],g.prototype,"size",void 0),y([(0,a.property)({type:Number,reflect:!0,attribute:"z-index"})],g.prototype,"zIndex",void 0),y([(0,a.property)({type:String,reflect:!0,attribute:"append-to"})],g.prototype,"appendTo",void 0),y([(0,a.property)({type:String,attribute:"close-button-aria-label",reflect:!0})],g.prototype,"closeButtonAriaLabel",void 0),y([(0,a.property)({type:String,reflect:!0})],g.prototype,"role",void 0),y([(0,a.property)({type:String,reflect:!0,attribute:"aria-labelledby"})],g.prototype,"ariaLabelledby",void 0),y([(0,a.property)({type:String,reflect:!0,attribute:"aria-describedby"})],g.prototype,"ariaDescribedby",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],g.prototype,"disableAriaExpanded",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"animation-frame"})],g.prototype,"animationFrame",void 0),y([(0,a.property)({type:Object,attribute:!1})],g.prototype,"controller",null),g=y([(0,o.w)("md-popover")],g)},73093:(t,e,i)=>{i.d(e,{FloatingModal:()=>o}),i(96798),i(61200);var o,s=i(3001),r=i(31890),n=i(26272),a=(i(58088),i(57346),i(69e3),i(20727)),l=i.n(a),d=(i(3288),i(41488)),h=i(40333),c=i(97822),p=(i(58871),i(67330)),u=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,s.yC)((0,s.TS)(d.LitElement))){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.aspectRatio=!1,this.centered=!1,this.fixed=!1,this.full=!1,this.closeAriaLabel="Close Modal",this.resizeAriaLabel="Resize Modal",this.maximizeScreenLabel="Maximize Modal",this.minimizeAriaLabel="Minimize Modal",this.maximizable=!0,this.resizable=!0,this.minimize=!1,this.minimizable=!1,this.containerRect=null,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.resizeMoveListener=t=>{const{target:e}=t;let i=parseFloat(e.getAttribute("data-x"))||0,o=parseFloat(e.getAttribute("data-y"))||0;e.style.setProperty("width",`${t.rect.width}px`,"important"),e.style.setProperty("height",`${t.rect.height}px`,"important");const{initialX:s,initialY:r}=this.getInitialPosition();i+=t.deltaRect.left+s,o+=t.deltaRect.top+r,this.setTargetPosition(e,i,o),this.applyInitialPosition=!1},this.resizeEndListener=()=>{this.setContainerRect()},this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.position?{initialX:Number(null===(t=this.position)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.position)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:o}=this.getTransformValues(t);this.setTargetPosition(e,i,o),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[n.A,p.A]}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("position")&&!t.has("show")&&this.setInitialTargetPosition()}isNewPositionNotSame(){var t,e,i,o;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.position)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(o=this.position)||void 0===o?void 0:o.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.position)||void 0===t?void 0:t.x),Number(null===(e=this.position)||void 0===e?void 0:e.y))}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame(()=>{return t=this,e=void 0,o=function*(){yield this.updateComplete,this.containerRect=this.container.getBoundingClientRect(),this.dispatchEvent(new CustomEvent("floating-modal-resize",{composed:!0,bubbles:!0,detail:{size:this.containerRect}})),this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))(function(s,r){function n(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(n,a)}l((o=o.apply(t,e||[])).next())});var t,e,i,o})}setInteractInstance(){requestAnimationFrame(()=>{this.container&&(l()(this.container).draggable({autoScroll:!0,allowFrom:this.header,ignoreFrom:this.body,listeners:{move:this.dragMoveListener,end:this.dragEndListener}}),this.resizable&&l()(this.container).resizable({edges:{left:!0,right:!0,bottom:!0,top:!0},listeners:{end:this.resizeEndListener,move:this.resizeMoveListener},modifiers:this.aspectRatio?[l().modifiers.aspectRatio({ratio:"preserve",equalDelta:!0,modifiers:[l().modifiers.restrictSize({max:"parent"})]})]:void 0}))})}handleClose(t){this.show=!1,this.full=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleMinimize(){this.minimizable&&(this.dragOccured||(this.minimize=!this.minimize,this.dispatchEvent(new CustomEvent("floating-modal-minimize",{composed:!0,bubbles:!0,detail:{minimize:this.minimize}}))),this.dragOccured=!1)}handleToggleExpandCollapse(){this.full=!this.full}getTransformValues(t){const{target:e,dx:i,dy:o}=t,{initialX:s,initialY:r}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+s,y:(parseFloat(e.getAttribute("data-y"))||0)+o+r}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&l().isSet(this.container)&&l()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance()}renderedCallback(){this.containerTransform=this.position?`translate(${this.position.x}px, ${this.position.y}px)`:""}render(){return d.html`
1978
+ `}static get styles(){return[y.A]}};b([(0,h.property)({type:String,reflect:!0})],f.prototype,"id",void 0),b([(0,h.property)({type:String,reflect:!0})],f.prototype,"triggerID",void 0),b([(0,h.property)({type:String,reflect:!0})],f.prototype,"trigger",void 0),b([(0,h.property)({type:String,reflect:!0})],f.prototype,"placement",void 0),b([(0,h.property)({type:String,reflect:!0})],f.prototype,"strategy",void 0),b([(0,h.property)({type:String,reflect:!0})],f.prototype,"color",void 0),b([(0,h.property)({type:Boolean,reflect:!0})],f.prototype,"visible",void 0),b([(0,h.property)({type:Number,reflect:!0})],f.prototype,"offset",void 0),b([(0,h.property)({type:Boolean,reflect:!0,attribute:"focus-trap"})],f.prototype,"focusTrap",void 0),b([(0,h.property)({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],f.prototype,"preventScroll",void 0),b([(0,h.property)({type:Boolean,reflect:!0,attribute:"show-arrow"})],f.prototype,"showArrow",void 0),b([(0,h.property)({type:Boolean,reflect:!0,attribute:"close-button"})],f.prototype,"closeButton",void 0),b([(0,h.property)({type:Boolean,reflect:!0})],f.prototype,"interactive",void 0),b([(0,h.property)({type:String,reflect:!0})],f.prototype,"delay",void 0),b([(0,h.property)({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],f.prototype,"hideOnEscape",void 0),b([(0,h.property)({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],f.prototype,"hideOnBlur",void 0),b([(0,h.property)({type:Boolean,reflect:!0,attribute:"hide-on-window-blur"})],f.prototype,"hideOnWindowBlur",void 0),b([(0,h.property)({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],f.prototype,"hideOnOutsideClick",void 0),b([(0,h.property)({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],f.prototype,"focusBackToTrigger",void 0),b([(0,h.property)({type:Boolean,reflect:!0})],f.prototype,"backdrop",void 0),b([(0,h.property)({type:Boolean,reflect:!0})],f.prototype,"flip",void 0),b([(0,h.property)({type:Boolean,reflect:!0})],f.prototype,"size",void 0),b([(0,h.property)({type:Number,reflect:!0,attribute:"z-index"})],f.prototype,"zIndex",void 0),b([(0,h.property)({type:String,reflect:!0,attribute:"append-to"})],f.prototype,"appendTo",void 0),b([(0,h.property)({type:String,attribute:"close-button-aria-label",reflect:!0})],f.prototype,"closeButtonAriaLabel",void 0),b([(0,h.property)({type:String,reflect:!0})],f.prototype,"role",void 0),b([(0,h.property)({type:String,reflect:!0,attribute:"aria-labelledby"})],f.prototype,"ariaLabelledby",void 0),b([(0,h.property)({type:String,reflect:!0,attribute:"aria-describedby"})],f.prototype,"ariaDescribedby",void 0),b([(0,h.property)({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],f.prototype,"disableAriaExpanded",void 0),b([(0,h.property)({type:Boolean,reflect:!0,attribute:"animation-frame"})],f.prototype,"animationFrame",void 0),b([(0,h.property)({type:Object,attribute:!1})],f.prototype,"controller",null),f=b([(0,s.w)("md-popover")],f)},73093:(t,e,i)=>{i.d(e,{FloatingModal:()=>s}),i(96798),i(61200);var s,o=i(3001),r=i(31890),a=i(4313),n=(i(58088),i(57346),i(69e3),i(20727)),l=i.n(n),d=(i(3288),i(87161)),h=i(70429),c=i(20291),p=(i(58871),i(34659)),u=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,o.yC)((0,o.TS)(d.LitElement))){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.aspectRatio=!1,this.centered=!1,this.fixed=!1,this.full=!1,this.closeAriaLabel="Close Modal",this.resizeAriaLabel="Resize Modal",this.maximizeScreenLabel="Maximize Modal",this.minimizeAriaLabel="Minimize Modal",this.maximizable=!0,this.resizable=!0,this.minimize=!1,this.minimizable=!1,this.containerRect=null,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.resizeMoveListener=t=>{const{target:e}=t;let i=parseFloat(e.getAttribute("data-x"))||0,s=parseFloat(e.getAttribute("data-y"))||0;e.style.setProperty("width",`${t.rect.width}px`,"important"),e.style.setProperty("height",`${t.rect.height}px`,"important");const{initialX:o,initialY:r}=this.getInitialPosition();i+=t.deltaRect.left+o,s+=t.deltaRect.top+r,this.setTargetPosition(e,i,s),this.applyInitialPosition=!1},this.resizeEndListener=()=>{this.setContainerRect()},this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.position?{initialX:Number(null===(t=this.position)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.position)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:s}=this.getTransformValues(t);this.setTargetPosition(e,i,s),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[a.A,p.A]}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("position")&&!t.has("show")&&this.setInitialTargetPosition()}isNewPositionNotSame(){var t,e,i,s;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.position)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(s=this.position)||void 0===s?void 0:s.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.position)||void 0===t?void 0:t.x),Number(null===(e=this.position)||void 0===e?void 0:e.y))}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame(()=>{return t=this,e=void 0,s=function*(){yield this.updateComplete,this.containerRect=this.container.getBoundingClientRect(),this.dispatchEvent(new CustomEvent("floating-modal-resize",{composed:!0,bubbles:!0,detail:{size:this.containerRect}})),this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))(function(o,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((s=s.apply(t,e||[])).next())});var t,e,i,s})}setInteractInstance(){requestAnimationFrame(()=>{this.container&&(l()(this.container).draggable({autoScroll:!0,allowFrom:this.header,ignoreFrom:this.body,listeners:{move:this.dragMoveListener,end:this.dragEndListener}}),this.resizable&&l()(this.container).resizable({edges:{left:!0,right:!0,bottom:!0,top:!0},listeners:{end:this.resizeEndListener,move:this.resizeMoveListener},modifiers:this.aspectRatio?[l().modifiers.aspectRatio({ratio:"preserve",equalDelta:!0,modifiers:[l().modifiers.restrictSize({max:"parent"})]})]:void 0}))})}handleClose(t){this.show=!1,this.full=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleMinimize(){this.minimizable&&(this.dragOccured||(this.minimize=!this.minimize,this.dispatchEvent(new CustomEvent("floating-modal-minimize",{composed:!0,bubbles:!0,detail:{minimize:this.minimize}}))),this.dragOccured=!1)}handleToggleExpandCollapse(){this.full=!this.full}getTransformValues(t){const{target:e,dx:i,dy:s}=t,{initialX:o,initialY:r}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+o,y:(parseFloat(e.getAttribute("data-y"))||0)+s+r}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&l().isSet(this.container)&&l()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance()}renderedCallback(){this.containerTransform=this.position?`translate(${this.position.x}px, ${this.position.y}px)`:""}render(){return d.html`
1973
1979
  ${this.show?d.html`
1974
1980
  <div
1975
1981
  class="md-floating ${this.fixed?"fixed":""} ${this.minimize?"hide":""}"
@@ -1994,7 +2000,7 @@
1994
2000
  @click=${this.handleMinimize}
1995
2001
  >
1996
2002
  <md-icon name="minus-bold" size="16" iconSet="momentumDesign"></md-icon>
1997
- </md-button>`:h.nothing}
2003
+ </md-button>`:d.nothing}
1998
2004
  ${!this.minimize&&this.maximizable?d.html` <md-button
1999
2005
  color="color-none"
2000
2006
  class="md-floating__resize"
@@ -2038,54 +2044,54 @@
2038
2044
  >
2039
2045
  ${this.minimize&&this.headerSlot}
2040
2046
  </md-floating-modal-minimized>
2041
- </div>`:h.nothing}
2042
- `:h.nothing}
2043
- `}};u([(0,d.property)({type:String})],e.prototype,"heading",void 0),u([(0,d.property)({type:String})],e.prototype,"label",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),u([(0,d.property)({type:Boolean,reflect:!0,attribute:"aspect-ratio"})],e.prototype,"aspectRatio",void 0),u([(0,d.property)({type:Boolean,reflect:!0,attribute:"centered"})],e.prototype,"centered",void 0),u([(0,d.property)({type:Boolean,reflect:!0,attribute:"fixed-strategy"})],e.prototype,"fixed",void 0),u([(0,d.property)({type:Boolean,reflect:!0,attribute:"full-screen"})],e.prototype,"full",void 0),u([(0,d.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),u([(0,d.property)({type:String,attribute:"resize-aria-label"})],e.prototype,"resizeAriaLabel",void 0),u([(0,d.property)({type:String,attribute:"maximize-aria-label"})],e.prototype,"maximizeScreenLabel",void 0),u([(0,d.property)({type:String,attribute:"minimize-aria-label"})],e.prototype,"minimizeAriaLabel",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"maximizable",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"resizable",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),u([(0,d.property)({type:Object})],e.prototype,"position",void 0),u([(0,d.property)({type:Object})],e.prototype,"minPosition",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"minimizable",void 0),u([(0,d.property)({type:Object})],e.prototype,"containerRect",void 0),u([(0,d.internalProperty)()],e.prototype,"dragOccured",void 0),u([(0,d.query)(".md-floating")],e.prototype,"container",void 0),u([(0,d.query)(".md-floating__body")],e.prototype,"body",void 0),u([(0,d.query)(".md-floating__header")],e.prototype,"header",void 0),u([(0,d.query)(".md-floating-min-parent")],e.prototype,"minimizedHeader",void 0),u([(0,d.query)('slot[name="header"]')],e.prototype,"headerSlot",void 0),e=u([(0,r.w)("md-floating-modal")],e),t.ELEMENT=e}(o||(o={}))},73679:t=>{t.exports=c},74896:(t,e,i)=>{i.d(e,{Alert:()=>o}),i(61200),i(19026);var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(62798),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.closable=!1,this.message="",this.show=!1,this.internalClose=!0,this.title="",this.btnlabel="Close",this.type="default",this.inline=!1,this.newMomentum=!1,this.primaryButton="",this.primaryButtonVariant="primary",this.primaryButtonColor="",this.secondaryButton="",this.link=!1,this.showMore=!1,this.href="",this.hasFooterSlotContent=!1,this.renderIconTemplate=()=>{switch(this.type){case"error":return n.html`
2047
+ </div>`:d.nothing}
2048
+ `:d.nothing}
2049
+ `}};u([(0,h.property)({type:String})],e.prototype,"heading",void 0),u([(0,h.property)({type:String})],e.prototype,"label",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),u([(0,h.property)({type:Boolean,reflect:!0,attribute:"aspect-ratio"})],e.prototype,"aspectRatio",void 0),u([(0,h.property)({type:Boolean,reflect:!0,attribute:"centered"})],e.prototype,"centered",void 0),u([(0,h.property)({type:Boolean,reflect:!0,attribute:"fixed-strategy"})],e.prototype,"fixed",void 0),u([(0,h.property)({type:Boolean,reflect:!0,attribute:"full-screen"})],e.prototype,"full",void 0),u([(0,h.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),u([(0,h.property)({type:String,attribute:"resize-aria-label"})],e.prototype,"resizeAriaLabel",void 0),u([(0,h.property)({type:String,attribute:"maximize-aria-label"})],e.prototype,"maximizeScreenLabel",void 0),u([(0,h.property)({type:String,attribute:"minimize-aria-label"})],e.prototype,"minimizeAriaLabel",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"maximizable",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"resizable",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),u([(0,h.property)({type:Object})],e.prototype,"position",void 0),u([(0,h.property)({type:Object})],e.prototype,"minPosition",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"minimizable",void 0),u([(0,h.property)({type:Object})],e.prototype,"containerRect",void 0),u([(0,h.state)()],e.prototype,"dragOccured",void 0),u([(0,h.query)(".md-floating")],e.prototype,"container",void 0),u([(0,h.query)(".md-floating__body")],e.prototype,"body",void 0),u([(0,h.query)(".md-floating__header")],e.prototype,"header",void 0),u([(0,h.query)(".md-floating-min-parent")],e.prototype,"minimizedHeader",void 0),u([(0,h.query)('slot[name="header"]')],e.prototype,"headerSlot",void 0),e=u([(0,r.w)("md-floating-modal")],e),t.ELEMENT=e}(s||(s={}))},74896:(t,e,i)=>{i.d(e,{Alert:()=>s}),i(61200),i(19026);var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(32201),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.closable=!1,this.message="",this.show=!1,this.internalClose=!0,this.title="",this.btnlabel="Close",this.type="default",this.inline=!1,this.newMomentum=!1,this.primaryButton="",this.primaryButtonVariant="primary",this.primaryButtonColor="",this.secondaryButton="",this.link=!1,this.showMore=!1,this.href="",this.hasFooterSlotContent=!1,this.renderIconTemplate=()=>{switch(this.type){case"error":return a.html`
2044
2050
  <md-icon
2045
2051
  name="error-legacy-bold"
2046
2052
  size="${this.newMomentum?24:32}"
2047
2053
  iconSet="momentumDesign"
2048
2054
  color="var(--md-alert-error-text-color, red)"
2049
2055
  ></md-icon>
2050
- `;case"info":return n.html`
2056
+ `;case"info":return a.html`
2051
2057
  <md-icon
2052
2058
  name="info-circle-bold"
2053
2059
  size="${this.newMomentum?24:32}"
2054
2060
  iconSet="momentumDesign"
2055
2061
  color="var(--md-alert-info-text-color, blue)"
2056
2062
  ></md-icon>
2057
- `;case"success":return n.html`
2063
+ `;case"success":return a.html`
2058
2064
  <md-icon
2059
2065
  name="check-circle-bold"
2060
2066
  size="${this.newMomentum?24:32}"
2061
2067
  iconSet="momentumDesign"
2062
2068
  color="var(--md-alert-success-text-color, green)"
2063
2069
  ></md-icon>
2064
- `;case"warn":case"warning":return n.html`
2070
+ `;case"warn":case"warning":return a.html`
2065
2071
  <md-icon
2066
2072
  name="warning-bold"
2067
2073
  size="${this.newMomentum?24:32}"
2068
2074
  iconSet="momentumDesign"
2069
2075
  color="var(--md-alert-warning-text-color, orange)"
2070
2076
  ></md-icon>
2071
- `;case"message":return n.html`
2077
+ `;case"message":return a.html`
2072
2078
  <md-icon
2073
2079
  name="chat-bold"
2074
2080
  size="${this.newMomentum?24:32}"
2075
2081
  iconSet="momentumDesign"
2076
2082
  color="var(--alert-title-text-color)"
2077
2083
  ></md-icon>
2078
- `;case"loading":return n.html`<md-spinner size="24"></md-spinner>`;default:return n.html` <slot name="alert-icon"></slot> `}}}connectedCallback(){super.connectedCallback(),this.updateFooterSlotInUse()}close(){this.dispatchEvent(new CustomEvent("alert-close",{composed:!0,bubbles:!0})),this.internalClose&&(this.show=!1)}static get styles(){return[r.A,d.A]}get alertClassMap(){return{[`md-alert--${this.type}`]:!!this.type,"md-alert__inline":this.inline}}get slottedFooterClassMap(){return{"is-empty":!this.hasFooterSlotContent}}legacyRender(){return n.html`
2084
+ `;case"loading":return a.html`<md-spinner size="24"></md-spinner>`;default:return a.html` <slot name="alert-icon"></slot> `}}}connectedCallback(){super.connectedCallback(),this.updateFooterSlotInUse()}close(){this.dispatchEvent(new CustomEvent("alert-close",{composed:!0,bubbles:!0})),this.internalClose&&(this.show=!1)}static get styles(){return[r.A,d.A]}get alertClassMap(){return{[`md-alert--${this.type}`]:!!this.type,"md-alert__inline":this.inline}}get slottedFooterClassMap(){return{"is-empty":!this.hasFooterSlotContent}}legacyRender(){return a.html`
2079
2085
  <div role="alert" aria-live="polite" part="alert" class="md-alert ${(0,l.classMap)(this.alertClassMap)}">
2080
2086
  <div class="md-alert__icon aria-hidden=true">${this.renderIconTemplate()}</div>
2081
2087
  <div part="content" class="md-alert__content">
2082
- ${this.title&&""!==this.title?n.html` <div class="md-alert__title" role="heading" aria-level="1">${this.title}</div> `:a.nothing}
2088
+ ${this.title&&""!==this.title?a.html` <div class="md-alert__title" role="heading" aria-level="1">${this.title}</div> `:a.nothing}
2083
2089
  <div class="md-alert__message">
2084
2090
  ${this.message}
2085
2091
  <slot name="alert-body"></slot>
2086
2092
  </div>
2087
2093
  </div>
2088
- ${this.closable?n.html`
2094
+ ${this.closable?a.html`
2089
2095
  <div class="md-alert__button">
2090
2096
  <md-button
2091
2097
  ariaLabel="${this.btnlabel}"
@@ -2097,15 +2103,15 @@
2097
2103
  <md-icon slot="icon" name="cancel-bold" size="18" iconSet="momentumDesign"></md-icon>
2098
2104
  </md-button>
2099
2105
  </div>
2100
- `:n.html`
2106
+ `:a.html`
2101
2107
  <div class="md-alert__footer">
2102
2108
  <slot name="alert-footer"></slot>
2103
2109
  </div>
2104
2110
  `}
2105
2111
  </div>
2106
- `}renderNewAlertDefaultFooter(){return n.html`
2112
+ `}renderNewAlertDefaultFooter(){return a.html`
2107
2113
  <div class="md-new-alert__footer">
2108
- ${this.link?n.html`
2114
+ ${this.link?a.html`
2109
2115
  <md-link href="${this.href}">
2110
2116
  <span class="md-new-alert__link"
2111
2117
  >Link
@@ -2119,10 +2125,10 @@
2119
2125
  </span>
2120
2126
  </md-link>
2121
2127
  `:a.nothing}
2122
- ${this.secondaryButton?n.html` <md-button variant="secondary" .clickFunction="${this.secondaryButtonClickFunction}">
2128
+ ${this.secondaryButton?a.html` <md-button variant="secondary" .clickFunction="${this.secondaryButtonClickFunction}">
2123
2129
  ${this.secondaryButton}
2124
2130
  </md-button>`:a.nothing}
2125
- ${this.primaryButton?n.html`<md-button
2131
+ ${this.primaryButton?a.html`<md-button
2126
2132
  variant=${this.primaryButtonVariant}
2127
2133
  color=${this.primaryButtonColor}
2128
2134
  .clickFunction="${this.primaryButtonClickFunction}"
@@ -2130,21 +2136,21 @@
2130
2136
  ${this.primaryButton}
2131
2137
  </md-button>`:a.nothing}
2132
2138
  </div>
2133
- `}handleSlotContentChange(t){this.updateFooterSlotInUse()}updateFooterSlotInUse(){var t;this.hasFooterSlotContent=(null===(t=this.alertFooterSlot)||void 0===t?void 0:t.assignedNodes().length)>0}renderSlottedFooter(){return n.html` <div class="md-new-alert__footer ${(0,l.classMap)(this.slottedFooterClassMap)}">
2139
+ `}handleSlotContentChange(t){this.updateFooterSlotInUse()}updateFooterSlotInUse(){var t;this.hasFooterSlotContent=(null===(t=this.alertFooterSlot)||void 0===t?void 0:t.assignedNodes().length)>0}renderSlottedFooter(){return a.html` <div class="md-new-alert__footer ${(0,l.classMap)(this.slottedFooterClassMap)}">
2134
2140
  <slot name="alert-footer" @slotchange=${this.handleSlotContentChange}></slot>
2135
- </div>`}newRender(){return n.html`
2141
+ </div>`}newRender(){return a.html`
2136
2142
  <div role="alert" aria-live="polite" part="alert" class="md-new-alert ${(0,l.classMap)(this.alertClassMap)}">
2137
2143
  <div class="md-new-alert__body">
2138
2144
  <div class="md-new-alert__icon aria-hidden=true">${this.renderIconTemplate()}</div>
2139
2145
  <div part="content" class="md-new-alert__content">
2140
- ${this.title&&""!==this.title?n.html` <div class="md-new-alert__title" role="heading" aria-level="1">${this.title}</div> `:a.nothing}
2146
+ ${this.title&&""!==this.title?a.html` <div class="md-new-alert__title" role="heading" aria-level="1">${this.title}</div> `:a.nothing}
2141
2147
  <div class="md-new-alert__message" title="${this.message}">
2142
2148
  ${this.message}
2143
2149
  <slot name="alert-body"></slot>
2144
- ${this.showMore?n.html`<md-link href=${this.href} inline>Show more...</md-link>`:a.nothing}
2150
+ ${this.showMore?a.html`<md-link href=${this.href} inline>Show more...</md-link>`:a.nothing}
2145
2151
  </div>
2146
2152
  </div>
2147
- ${this.closable?n.html`
2153
+ ${this.closable?a.html`
2148
2154
  <div class="md-new-alert__button">
2149
2155
  <md-button
2150
2156
  ariaLabel="${this.btnlabel}"
@@ -2160,16 +2166,16 @@
2160
2166
  </div>
2161
2167
  ${this.primaryButton||this.secondaryButton||this.link?this.renderNewAlertDefaultFooter():this.renderSlottedFooter()}
2162
2168
  </div>
2163
- `}get alertRender(){return this.newMomentum?this.newRender():this.legacyRender()}render(){return n.html` ${this.show?this.alertRender:a.nothing} `}};h([(0,n.property)({type:Boolean})],e.prototype,"closable",void 0),h([(0,n.property)({type:String})],e.prototype,"message",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"show",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"internalClose",void 0),h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"btnlabel",void 0),h([(0,n.property)({type:String})],e.prototype,"type",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inline",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"newMomentum",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryButton",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryButtonVariant",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryButtonColor",void 0),h([(0,n.property)()],e.prototype,"primaryButtonClickFunction",void 0),h([(0,n.property)({type:String})],e.prototype,"secondaryButton",void 0),h([(0,n.property)()],e.prototype,"secondaryButtonClickFunction",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"link",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"showMore",void 0),h([(0,n.property)({type:String})],e.prototype,"href",void 0),h([(0,n.query)('slot[name="alert-footer"]')],e.prototype,"alertFooterSlot",void 0),h([(0,n.internalProperty)()],e.prototype,"hasFooterSlotContent",void 0),e=h([(0,s.w)("md-alert")],e),t.ELEMENT=e}(o||(o={}))},77935:(t,e,i)=>{i.d(e,{TableAdvanced:()=>g}),i(96798),i(61200),i(11323);var o=i(31890),s=i(28373),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(97822),h=i(3527),c=i(28187),p=i.n(c),u=i(87421),m=i(56076),y=i(21796),b=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const v=document.createElement("img");var g;v.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",function(t){let e=class extends((0,s.d)(n.LitElement)){constructor(){super(...arguments),this.isRowFocusable="true",this.error="",this.COLS=[],this.ROWS=[],this.updCols=()=>this.requestUpdate("COLS"),this.updRows=()=>this.requestUpdate("ROWS"),this.dragRow=-1,this.dropRow=-1,this.drops=[],this.dragRowElem=null,this.dragCol=-1,this.dropCol=-1,this.isResizing=!1,this.isSelectable=!1,this.selected={},this.expandedRowIdx={},this.dragover=t=>t.preventDefault(),this.eX=0,this.onResize=(t,e)=>{var i;if(-1!=this.dragCol||-1!=this.dragRow)return;this.isResizing=!0;const o=t.target;null===(i=t.dataTransfer)||void 0===i||i.setDragImage(v,0,0);const s=this.COLS.map(t=>this.shadowRoot.querySelector(`th.col-index-${t.index}`));this.COLS.forEach((t,e)=>t.width=s[e].offsetWidth+"px"),this.updCols();const r=t.x;this.eX=t.x;let n=-1,a=-1,l=-1;const d=this.COLS[e.index-1],h=s[e.index],c=s[e.index-1],p=h.offsetWidth,u=c.offsetWidth,m=()=>{const t=this.eX;if(n!=t&&0!=t){n=t;const i=n-r;a=p-i,l=u+i,e.width=a+"px",d.width=l+"px",this.updCols()}},y=t=>this.eX=t.x,b=()=>{this.isResizing=!1,o.removeEventListener("drag",m),o.removeEventListener("dragend",b),document.removeEventListener("dragover",y)};o.addEventListener("drag",m),o.addEventListener("dragend",b),document.addEventListener("dragover",y)}}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("dragover",this.dragover)}connectedCallback(){super.connectedCallback(),document.addEventListener("dragover",this.dragover),this.updateTableConfig(),this.updateTableData(),this.populateTable()}update(t){super.update(t),t.has("data")&&(this.updateTableData(),this.updateDataInTable())}updateTableData(){if("string"==typeof this.data)try{this.tableData=JSON.parse(this.data)}catch(t){console.error("[INVALID_JSON_FORMAT] Please recheck the config json")}else this.tableData=Object.assign({},this.data)}updateTableConfig(){if("string"==typeof this.config)try{this.tableConfig=JSON.parse(this.config)}catch(t){console.error("[INVALID_JSON_FORMAT] Please recheck the data json")}else this.tableConfig=Object.assign({},this.config)}populateColumns(){var t;let e=0;const i=(t,i)=>{var o,s,r,n;const a=t.filters||(null===(s=null===(o=this.tableConfig.default)||void 0===o?void 0:o.col)||void 0===s?void 0:s.filters),l=a?"forString"==a?y.d.optionsString:"forNumber"==a?y.d.optionsNumber:a.length?a:null:null;this.COLS.push({options:Object.assign({},t),index:e++,group:i,sort:"default",sorter:t.sorter||(null===(n=null===(r=this.tableConfig.default)||void 0===r?void 0:r.col)||void 0===n?void 0:n.sorter),isCollapsable:this.tableConfig.cols.collapse==t.id,filter:l?{list:l,selectedIndex:0,input:"",active:!1,menuVisible:!1}:void 0})};this.tableConfig.cols.define.forEach(t=>{"children"in t?t.children.forEach(e=>i(e,{name:t.groupName,length:t.children.length})):i(t)}),this.isSelectable=!!this.tableConfig.rows&&"none"!=(null===(t=this.tableConfig.rows)||void 0===t?void 0:t.selectable)}populateData(){const t=this.COLS.length;if("csv"in this.tableData){const t=p().parse(this.tableData.csv,{skipEmptyLines:!0,transform:t=>t.trim()});if(t.errors)return void(this.error="PARSE ERROR:\n"+JSON.stringify(t.errors,null,2));{const e=t.data;this.ROWS=e.map(t=>t.map(t=>({text:t})))}}else if("list2d"in this.tableData)this.ROWS=this.tableData.list2d.map(t=>t.map(t=>({text:t})));else{for(;this.tableData.list.length>t;)this.ROWS.push(this.tableData.list.splice(0,t).map(t=>({text:t})));0!=this.tableData.list.length&&this.ROWS.push(this.tableData.list.map(t=>({text:t})))}0!=this.ROWS.length||(this.error="DATA ERROR: Data is empty")}validateData(){const t=this.COLS.length;this.ROWS.reduce((t,e)=>t+e.length,0)%t==0?this.ROWS.forEach((e,i)=>{const o=e.length;o!=t&&(this.error=`DATA ERROR: Total number of cols (=${t}) and data[${i}] length (=${o}) mismatch`)}):this.error=this.error="DATA ERROR: Data length mismatch. You must provide (numberOfRows * numberOfColumns) amount of data values."}populateTemplate(){const t=this.tableConfig.cellTemplates,e=Object.keys(t||{});t&&e.length&&this.ROWS.forEach((e,i)=>{e.forEach((e,o)=>{for(const s in t){const r=e.text.indexOf(s);if(-1!=r){const n=t[s],a=this.querySelector(`#${n.templateName}`);if(null==a){console.warn(`cellTemplates["${s}"]: Missing '${n.templateName}' template.`);continue}let l=e.text.replace(s,"");n.contentCb&&(l=n.contentCb({col:o,row:i,content:l,insertIndex:r})),this.ROWS[i][o]={text:l,template:{template:a,templateCb:n.templateCb,insertIndex:"replace"==n.contentUse?-1:r}};break}}})})}setDefaultFilterAndSort(){var t,e;const i=null===(t=this.tableConfig.default)||void 0===t?void 0:t.sort;if(i){const t=this.COLS.find(t=>t.options.id==i.colId);t?this.sort(t,i.order):console.warn(`Cant find ${i.colId} col - for sorting`)}const o=null===(e=this.tableConfig.default)||void 0===e?void 0:e.filter;if(o){const t=this.COLS.find(t=>t.options.id==o.colId);t?t.filter?(t.filter.selectedIndex=o.selectedIndex,t.filter.input=o.input,this.updCols(),this.filter(t)):console.warn(`Cant find filters on ${o.colId} col`):console.warn(`Cant find ${o.colId} col - for filtering`)}}populateTable(){this.populateColumns(),this.populateData(),this.validateData(),this.setDefaultFilterAndSort(),this.populateTemplate()}updateDataInTable(){this.populateData(),this.validateData(),this.populateTemplate()}onDropRow(){this.dragRow!=this.dropRow&&this.drops.push([this.dragRow,this.dropRow]),this.dragRow=-1,this.dropRow=-1,this.dragRowElem&&(this.dragRowElem.setAttribute("draggable","false"),this.dragRowElem=null)}onDropCol(){if(this.dragCol!=this.dropCol){const t=this.COLS[this.dragCol],e=this.COLS[this.dropCol],i=t.group,o=e.group,s=t.index,r=e.index;t.group=o,e.group=i,t.index=r,e.index=s,this.COLS[this.dragCol]=e,this.COLS[this.dropCol]=t,this.ROWS.forEach(t=>{const e=t[this.dragCol],i=t[this.dropCol];t[this.dragCol]=i,t[this.dropCol]=e}),this.updCols(),this.updRows()}this.dragCol=-1,this.dropCol=-1}sort(t,e){t.sorter&&(this.clearSelection(),this.drops=[],this.COLS.forEach(i=>{i.options.id==t.options.id?i.sort=e||("default"==i.sort?"ascending":"ascending"==i.sort?"descending":"default"):i.sort="default"}),this.updCols(),this.requestUpdate(),this["md-table-advanced-change"].emit({type:"sort",order:t.sort}))}filter(t){if(!t.filter)return;this.clearSelection(),this.drops=[];const e=t.filter.input.trim(),i=t.filter.list[t.filter.selectedIndex];t.filter.active=!!e,this.requestUpdate(),e?this["md-table-advanced-change"].emit({type:"filter-on",filter:i,input:e}):this["md-table-advanced-change"].emit({type:"filter-off",filter:t.filter.list[t.filter.selectedIndex]})}selectRow(t){var e;const i=t.row.idx,o=Object.prototype.hasOwnProperty.call(this.selected,i);"multiple"==(null===(e=this.tableConfig.rows)||void 0===e?void 0:e.selectable)?(t.metaKey?o?delete this.selected[i]:this.selected[i]=!0:t.shiftKey||(this.selected={[i]:!0}),this["md-table-advanced-change"].emit({type:"multi-select",rows:Object.keys(this.selected).map(t=>+t)})):o?this.clearSelection():(this.selected={[i]:!0},this["md-table-advanced-change"].emit({type:"select",index:i})),this.requestUpdate("selected")}clearSelection(){this.selected={},this.requestUpdate("selected")}collapseToggle(t,e){t.stopPropagation(),this.expandedRowIdx[e]?(delete this.expandedRowIdx[e],this["md-table-advanced-change"].emit({type:"collapse",row:e})):(this.expandedRowIdx[e]=!0,this["md-table-advanced-change"].emit({type:"expand",row:e})),this.clearSelection(),this.requestUpdate()}render(){if(this.error)return n.html` <div>${this.error}</div> `;const{head:t}=this.tableConfig,e=(0,l.classMap)({"sticky-header":!!this.tableConfig.isStickyHeader});return n.html`
2169
+ `}get alertRender(){return this.newMomentum?this.newRender():this.legacyRender()}render(){return a.html` ${this.show?this.alertRender:a.nothing} `}};h([(0,n.property)({type:Boolean})],e.prototype,"closable",void 0),h([(0,n.property)({type:String})],e.prototype,"message",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"show",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"internalClose",void 0),h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"btnlabel",void 0),h([(0,n.property)({type:String})],e.prototype,"type",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inline",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"newMomentum",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryButton",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryButtonVariant",void 0),h([(0,n.property)({type:String})],e.prototype,"primaryButtonColor",void 0),h([(0,n.property)()],e.prototype,"primaryButtonClickFunction",void 0),h([(0,n.property)({type:String})],e.prototype,"secondaryButton",void 0),h([(0,n.property)()],e.prototype,"secondaryButtonClickFunction",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"link",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"showMore",void 0),h([(0,n.property)({type:String})],e.prototype,"href",void 0),h([(0,n.query)('slot[name="alert-footer"]')],e.prototype,"alertFooterSlot",void 0),h([(0,n.state)()],e.prototype,"hasFooterSlotContent",void 0),e=h([(0,o.w)("md-alert")],e),t.ELEMENT=e}(s||(s={}))},77935:(t,e,i)=>{i.d(e,{TableAdvanced:()=>g}),i(96798),i(61200),i(11323);var s=i(31890),o=i(28373),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(20291),h=i(16968),c=i(28187),p=i.n(c),u=i(32932),m=i(56076),y=i(21796),b=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const v=document.createElement("img");var g;v.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",function(t){let e=class extends((0,o.d)(a.LitElement)){constructor(){super(...arguments),this.isRowFocusable="true",this.error="",this.COLS=[],this.ROWS=[],this.updCols=()=>this.requestUpdate("COLS"),this.updRows=()=>this.requestUpdate("ROWS"),this.dragRow=-1,this.dropRow=-1,this.drops=[],this.dragRowElem=null,this.dragCol=-1,this.dropCol=-1,this.isResizing=!1,this.isSelectable=!1,this.selected={},this.expandedRowIdx={},this.dragover=t=>t.preventDefault(),this.eX=0,this.onResize=(t,e)=>{var i;if(-1!=this.dragCol||-1!=this.dragRow)return;this.isResizing=!0;const s=t.target;null===(i=t.dataTransfer)||void 0===i||i.setDragImage(v,0,0);const o=this.COLS.map(t=>this.shadowRoot.querySelector(`th.col-index-${t.index}`));this.COLS.forEach((t,e)=>t.width=o[e].offsetWidth+"px"),this.updCols();const r=t.x;this.eX=t.x;let a=-1,n=-1,l=-1;const d=this.COLS[e.index-1],h=o[e.index],c=o[e.index-1],p=h.offsetWidth,u=c.offsetWidth,m=()=>{const t=this.eX;if(a!=t&&0!=t){a=t;const i=a-r;n=p-i,l=u+i,e.width=n+"px",d.width=l+"px",this.updCols()}},y=t=>this.eX=t.x,b=()=>{this.isResizing=!1,s.removeEventListener("drag",m),s.removeEventListener("dragend",b),document.removeEventListener("dragover",y)};s.addEventListener("drag",m),s.addEventListener("dragend",b),document.addEventListener("dragover",y)}}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("dragover",this.dragover)}connectedCallback(){super.connectedCallback(),document.addEventListener("dragover",this.dragover),this.updateTableConfig(),this.updateTableData(),this.populateTable()}update(t){super.update(t),t.has("data")&&(this.updateTableData(),this.updateDataInTable())}updateTableData(){if("string"==typeof this.data)try{this.tableData=JSON.parse(this.data)}catch(t){console.error("[INVALID_JSON_FORMAT] Please recheck the config json")}else this.tableData=Object.assign({},this.data)}updateTableConfig(){if("string"==typeof this.config)try{this.tableConfig=JSON.parse(this.config)}catch(t){console.error("[INVALID_JSON_FORMAT] Please recheck the data json")}else this.tableConfig=Object.assign({},this.config)}populateColumns(){var t;let e=0;const i=(t,i)=>{var s,o,r,a;const n=t.filters||(null===(o=null===(s=this.tableConfig.default)||void 0===s?void 0:s.col)||void 0===o?void 0:o.filters),l=n?"forString"==n?y.d.optionsString:"forNumber"==n?y.d.optionsNumber:n.length?n:null:null;this.COLS.push({options:Object.assign({},t),index:e++,group:i,sort:"default",sorter:t.sorter||(null===(a=null===(r=this.tableConfig.default)||void 0===r?void 0:r.col)||void 0===a?void 0:a.sorter),isCollapsable:this.tableConfig.cols.collapse==t.id,filter:l?{list:l,selectedIndex:0,input:"",active:!1,menuVisible:!1}:void 0})};this.tableConfig.cols.define.forEach(t=>{"children"in t?t.children.forEach(e=>i(e,{name:t.groupName,length:t.children.length})):i(t)}),this.isSelectable=!!this.tableConfig.rows&&"none"!=(null===(t=this.tableConfig.rows)||void 0===t?void 0:t.selectable)}populateData(){const t=this.COLS.length;if("csv"in this.tableData){const t=p().parse(this.tableData.csv,{skipEmptyLines:!0,transform:t=>t.trim()});if(t.errors)return void(this.error="PARSE ERROR:\n"+JSON.stringify(t.errors,null,2));{const e=t.data;this.ROWS=e.map(t=>t.map(t=>({text:t})))}}else if("list2d"in this.tableData)this.ROWS=this.tableData.list2d.map(t=>t.map(t=>({text:t})));else{for(;this.tableData.list.length>t;)this.ROWS.push(this.tableData.list.splice(0,t).map(t=>({text:t})));0!=this.tableData.list.length&&this.ROWS.push(this.tableData.list.map(t=>({text:t})))}0!=this.ROWS.length||(this.error="DATA ERROR: Data is empty")}validateData(){const t=this.COLS.length;this.ROWS.reduce((t,e)=>t+e.length,0)%t==0?this.ROWS.forEach((e,i)=>{const s=e.length;s!=t&&(this.error=`DATA ERROR: Total number of cols (=${t}) and data[${i}] length (=${s}) mismatch`)}):this.error=this.error="DATA ERROR: Data length mismatch. You must provide (numberOfRows * numberOfColumns) amount of data values."}populateTemplate(){const t=this.tableConfig.cellTemplates,e=Object.keys(t||{});t&&e.length&&this.ROWS.forEach((e,i)=>{e.forEach((e,s)=>{for(const o in t){const r=e.text.indexOf(o);if(-1!=r){const a=t[o],n=this.querySelector(`#${a.templateName}`);if(null==n){console.warn(`cellTemplates["${o}"]: Missing '${a.templateName}' template.`);continue}let l=e.text.replace(o,"");a.contentCb&&(l=a.contentCb({col:s,row:i,content:l,insertIndex:r})),this.ROWS[i][s]={text:l,template:{template:n,templateCb:a.templateCb,insertIndex:"replace"==a.contentUse?-1:r}};break}}})})}setDefaultFilterAndSort(){var t,e;const i=null===(t=this.tableConfig.default)||void 0===t?void 0:t.sort;if(i){const t=this.COLS.find(t=>t.options.id==i.colId);t?this.sort(t,i.order):console.warn(`Cant find ${i.colId} col - for sorting`)}const s=null===(e=this.tableConfig.default)||void 0===e?void 0:e.filter;if(s){const t=this.COLS.find(t=>t.options.id==s.colId);t?t.filter?(t.filter.selectedIndex=s.selectedIndex,t.filter.input=s.input,this.updCols(),this.filter(t)):console.warn(`Cant find filters on ${s.colId} col`):console.warn(`Cant find ${s.colId} col - for filtering`)}}populateTable(){this.populateColumns(),this.populateData(),this.validateData(),this.setDefaultFilterAndSort(),this.populateTemplate()}updateDataInTable(){this.populateData(),this.validateData(),this.populateTemplate()}onDropRow(){this.dragRow!=this.dropRow&&this.drops.push([this.dragRow,this.dropRow]),this.dragRow=-1,this.dropRow=-1,this.dragRowElem&&(this.dragRowElem.setAttribute("draggable","false"),this.dragRowElem=null)}onDropCol(){if(this.dragCol!=this.dropCol){const t=this.COLS[this.dragCol],e=this.COLS[this.dropCol],i=t.group,s=e.group,o=t.index,r=e.index;t.group=s,e.group=i,t.index=r,e.index=o,this.COLS[this.dragCol]=e,this.COLS[this.dropCol]=t,this.ROWS.forEach(t=>{const e=t[this.dragCol],i=t[this.dropCol];t[this.dragCol]=i,t[this.dropCol]=e}),this.updCols(),this.updRows()}this.dragCol=-1,this.dropCol=-1}sort(t,e){t.sorter&&(this.clearSelection(),this.drops=[],this.COLS.forEach(i=>{i.options.id==t.options.id?i.sort=e||("default"==i.sort?"ascending":"ascending"==i.sort?"descending":"default"):i.sort="default"}),this.updCols(),this.requestUpdate(),this["md-table-advanced-change"].emit({type:"sort",order:t.sort}))}filter(t){if(!t.filter)return;this.clearSelection(),this.drops=[];const e=t.filter.input.trim(),i=t.filter.list[t.filter.selectedIndex];t.filter.active=!!e,this.requestUpdate(),e?this["md-table-advanced-change"].emit({type:"filter-on",filter:i,input:e}):this["md-table-advanced-change"].emit({type:"filter-off",filter:t.filter.list[t.filter.selectedIndex]})}selectRow(t){var e;const i=t.row.idx,s=Object.prototype.hasOwnProperty.call(this.selected,i);"multiple"==(null===(e=this.tableConfig.rows)||void 0===e?void 0:e.selectable)?(t.metaKey?s?delete this.selected[i]:this.selected[i]=!0:t.shiftKey||(this.selected={[i]:!0}),this["md-table-advanced-change"].emit({type:"multi-select",rows:Object.keys(this.selected).map(t=>+t)})):s?this.clearSelection():(this.selected={[i]:!0},this["md-table-advanced-change"].emit({type:"select",index:i})),this.requestUpdate("selected")}clearSelection(){this.selected={},this.requestUpdate("selected")}collapseToggle(t,e){t.stopPropagation(),this.expandedRowIdx[e]?(delete this.expandedRowIdx[e],this["md-table-advanced-change"].emit({type:"collapse",row:e})):(this.expandedRowIdx[e]=!0,this["md-table-advanced-change"].emit({type:"expand",row:e})),this.clearSelection(),this.requestUpdate()}render(){if(this.error)return a.html` <div>${this.error}</div> `;const{head:t}=this.tableConfig,e=(0,l.classMap)({"sticky-header":!!this.tableConfig.isStickyHeader});return a.html`
2164
2170
  <div class="md-table-advanced">
2165
2171
  <slot></slot>
2166
2172
  <table class=${e} summary=${(0,d.ifDefined)(null==t?void 0:t.summary)}>
2167
- ${(null==t?void 0:t.caption)?n.html`
2173
+ ${(null==t?void 0:t.caption)?a.html`
2168
2174
  <caption>
2169
2175
  ${null==t?void 0:t.caption}
2170
- ${(null==t?void 0:t.tableDescription)?n.html` <span style="position: absolute; top: -30em">${null==t?void 0:t.tableDescription}</span> `:a.nothing}
2176
+ ${(null==t?void 0:t.tableDescription)?a.html` <span style="position: absolute; top: -30em">${null==t?void 0:t.tableDescription}</span> `:a.nothing}
2171
2177
  </caption>
2172
- `:(null==t?void 0:t.tableDescription)?n.html`
2178
+ `:(null==t?void 0:t.tableDescription)?a.html`
2173
2179
  <caption>
2174
2180
  <span style="position: absolute; top: -30em">${null==t?void 0:t.tableDescription}</span>
2175
2181
  </caption>
@@ -2177,10 +2183,10 @@
2177
2183
  ${this.renderHead()} ${this.renderBody()}
2178
2184
  </table>
2179
2185
  </div>
2180
- `}ariaSortOrder(t){return"ascending"===t||"descending"===t?t:"none"}renderHead(){let t=a.nothing;const e=this.COLS.reduce((t,e)=>!!e.group||t,!1);if(e){let e="";t=n.html`
2181
- ${this.COLS.map(t=>t.group?e!=t.group.name?(e=t.group.name,n.html` <colgroup span=${t.group.length}></colgroup> `):void 0:n.html` <col /> `)}
2186
+ `}ariaSortOrder(t){return"ascending"===t||"descending"===t?t:"none"}renderHead(){let t=a.nothing;const e=this.COLS.reduce((t,e)=>!!e.group||t,!1);if(e){let e="";t=a.html`
2187
+ ${this.COLS.map(t=>t.group?e!=t.group.name?(e=t.group.name,a.html` <colgroup span=${t.group.length}></colgroup> `):void 0:a.html` <col /> `)}
2182
2188
  <tr tabindex="0">
2183
- ${this.COLS.map(t=>t.group?e!=t.group.name?(e=t.group.name,n.html`
2189
+ ${this.COLS.map(t=>t.group?e!=t.group.name?(e=t.group.name,a.html`
2184
2190
  <th colspan=${t.group.length} scope="colgroup" title="${t.group.name}">
2185
2191
  <div class="head-inner-cell">
2186
2192
  <span>${t.group.name}</span>
@@ -2189,15 +2195,15 @@
2189
2195
  </th>
2190
2196
  `):void 0:this.renderCol(t,2))}
2191
2197
  </tr>
2192
- `}const i=n.html`
2198
+ `}const i=a.html`
2193
2199
  <tr tabindex="0">
2194
2200
  ${this.COLS.map(t=>e?t.group?this.renderCol(t):void 0:this.renderCol(t))}
2195
2201
  </tr>
2196
- `;return n.html`
2202
+ `;return a.html`
2197
2203
  <thead>
2198
2204
  ${t} ${i}
2199
2205
  </thead>
2200
- `}sortIconTemplate(t){return"ascending"===t?n.html`<md-icon name="sort-descending-bold" size="16" iconSet="momentumDesign"></md-icon>`:"descending"===t?n.html`<md-icon name="sort-ascending-bold" size="16" iconSet="momentumDesign"></md-icon>`:n.html`<md-icon name="unsorted-bold" size="16" iconSet="momentumDesign"></md-icon>`}renderCol(t,e){var i,o;const s=null===(o=null===(i=t.filter)||void 0===i?void 0:i.list[t.filter.selectedIndex])||void 0===o?void 0:o.input,r=(0,l.classMap)({ascending:"ascending"==t.sort,descending:"descending"==t.sort});return n.html`
2206
+ `}sortIconTemplate(t){return"ascending"===t?a.html`<md-icon name="sort-descending-bold" size="16" iconSet="momentumDesign"></md-icon>`:"descending"===t?a.html`<md-icon name="sort-ascending-bold" size="16" iconSet="momentumDesign"></md-icon>`:a.html`<md-icon name="unsorted-bold" size="16" iconSet="momentumDesign"></md-icon>`}renderCol(t,e){var i,s;const o=null===(s=null===(i=t.filter)||void 0===i?void 0:i.list[t.filter.selectedIndex])||void 0===s?void 0:s.input,r=(0,l.classMap)({ascending:"ascending"==t.sort,descending:"descending"==t.sort});return a.html`
2201
2207
  <th
2202
2208
  rowspan=${(0,d.ifDefined)(e)}
2203
2209
  width=${(0,d.ifDefined)(t.width?t.width:t.options.width)}
@@ -2212,16 +2218,16 @@
2212
2218
 
2213
2219
  <div class="head-inner-cell">
2214
2220
  <!-- SORT -->
2215
- ${t.sorter?n.html`
2221
+ ${t.sorter?a.html`
2216
2222
  <button class="sortable ${r}" @click=${()=>this.sort(t)}>
2217
2223
  ${t.options.title} ${this.sortIconTemplate(t.sort)}
2218
2224
  </button>
2219
- `:n.html` <span>${t.options.title}</span> `}
2225
+ `:a.html` <span>${t.options.title}</span> `}
2220
2226
 
2221
2227
  <!-- FILTER -->
2222
- ${t.filter?n.html`
2228
+ ${t.filter?a.html`
2223
2229
  <div class="filter-wrap">
2224
- ${t.filter.active?n.html`
2230
+ ${t.filter.active?a.html`
2225
2231
  <md-icon
2226
2232
  class="filter-active"
2227
2233
  name="filter-bold"
@@ -2238,15 +2244,15 @@
2238
2244
  name="filter-type"
2239
2245
  @change=${e=>{t.filter.selectedIndex=e.target.value,this.updCols(),this.filter(t)}}
2240
2246
  >
2241
- ${t.filter.list.map((e,i)=>n.html`
2247
+ ${t.filter.list.map((e,i)=>a.html`
2242
2248
  <option value=${i} ?selected=${t.filter.selectedIndex==i}>${e.label}</option>
2243
2249
  `)}
2244
2250
  </select>
2245
2251
  <input
2246
2252
  type="text"
2247
- placeholder=${s.placeholder}
2248
- maxlength=${(0,d.ifDefined)(s.maxlength)}
2249
- pattern=${(0,d.ifDefined)(s.pattern)}
2253
+ placeholder=${o.placeholder}
2254
+ maxlength=${(0,d.ifDefined)(o.maxlength)}
2255
+ pattern=${(0,d.ifDefined)(o.pattern)}
2250
2256
  .value=${t.filter.input}
2251
2257
  @input=${e=>{t.filter.input=e.target.value,this.updCols(),this.filter(t)}}
2252
2258
  />
@@ -2259,7 +2265,7 @@
2259
2265
  ${this.renderColResize(t)}
2260
2266
  </div>
2261
2267
  </th>
2262
- `}renderColDrag(t){return this.tableConfig.cols.isDraggable?n.html`
2268
+ `}renderColDrag(t){return this.tableConfig.cols.isDraggable?a.html`
2263
2269
  <div
2264
2270
  draggable="true"
2265
2271
  class="drag-area-col ${(0,l.classMap)({drag:-1!=this.dragCol,over:this.dropCol==t.index&&this.dropCol!=this.dragCol})}"
@@ -2267,36 +2273,34 @@
2267
2273
  @dragenter=${()=>{this.isResizing||-1!=this.dragRow||(this.dropCol=t.index)}}
2268
2274
  @dragend=${()=>this.onDropCol()}
2269
2275
  ></div>
2270
- `:a.nothing}renderColResize(t){return this.tableConfig.cols.isResizable?n.html`
2271
- ${t.index>0?n.html`
2276
+ `:a.nothing}renderColResize(t){return this.tableConfig.cols.isResizable?a.html`
2277
+ ${t.index>0?a.html`
2272
2278
  <div class="resize" draggable="true" @dragstart=${e=>this.onResize(e,t)}></div>
2273
2279
  `:a.nothing}
2274
- `:a.nothing}renderBody(){let t=this.ROWS.map((t,e)=>({cells:t,idx:e,idxDrag:e,collapse:"none",first:0===e,isGhost:!1,children:[]}));const e=this.COLS.length;t=t.filter(t=>{var i;for(let o=0;o<e;o++){const e=this.COLS[o];if((null===(i=e.filter)||void 0===i?void 0:i.active)&&!e.filter.list[e.filter.selectedIndex].predicate(t.cells[o].text,e.filter.input))return!1}return!0});const i=this.COLS.find(t=>"default"!=t.sort);if(i){const e=this.ROWS.map((t,e)=>({v:t[i.index].text,i:e})),o="ascending"==i.sort?1:-1;let s=[];if("byNumber"==i.sorter)s=e.sort((t,e)=>1==o?+t.v-+e.v:+e.v-+t.v);else if("byString"==i.sorter)s=e.sort((t,e)=>t.v==e.v?0:t.v>e.v?o:-o);else if("function"==typeof i.sorter){const t=i.sorter;s=e.sort((e,i)=>t(e.v,i.v,o))}t=s.map(e=>t[e.i])}const o=this.COLS.find(t=>t.isCollapsable);if(o){const e=o.index,i=t.reduce((t,i)=>{const o=i.cells[e].text,s=t.find(t=>t.key==o);return s?(i.collapse="child",s.children.push(i)):t.push({key:o,root:i,children:[]}),t},[]);t=[],i.forEach(e=>{t.push(e.root),e.root.collapse=0==e.children.length?"none":this.expandedRowIdx[e.root.idx]?"expanded":"collapsed",e.root.children=e.children})}return this.drops.forEach(({0:e,1:i})=>{t.splice(i,0,t.splice(e,1)[0])}),t.forEach((t,e)=>t.idxDrag=e),-1!=this.dragRow&&(t[this.dragRow].isGhost=!0,-1!=this.dropRow&&t.splice(this.dropRow,0,t.splice(this.dragRow,1)[0])),n.html`
2280
+ `:a.nothing}renderBody(){let t=this.ROWS.map((t,e)=>({cells:t,idx:e,idxDrag:e,collapse:"none",first:0===e,isGhost:!1,children:[]}));const e=this.COLS.length;t=t.filter(t=>{var i;for(let s=0;s<e;s++){const e=this.COLS[s];if((null===(i=e.filter)||void 0===i?void 0:i.active)&&!e.filter.list[e.filter.selectedIndex].predicate(t.cells[s].text,e.filter.input))return!1}return!0});const i=this.COLS.find(t=>"default"!=t.sort);if(i){const e=this.ROWS.map((t,e)=>({v:t[i.index].text,i:e})),s="ascending"==i.sort?1:-1;let o=[];if("byNumber"==i.sorter)o=e.sort((t,e)=>1==s?+t.v-+e.v:+e.v-+t.v);else if("byString"==i.sorter)o=e.sort((t,e)=>t.v==e.v?0:t.v>e.v?s:-s);else if("function"==typeof i.sorter){const t=i.sorter;o=e.sort((e,i)=>t(e.v,i.v,s))}t=o.map(e=>t[e.i])}const s=this.COLS.find(t=>t.isCollapsable);if(s){const e=s.index,i=t.reduce((t,i)=>{const s=i.cells[e].text,o=t.find(t=>t.key==s);return o?(i.collapse="child",o.children.push(i)):t.push({key:s,root:i,children:[]}),t},[]);t=[],i.forEach(e=>{t.push(e.root),e.root.collapse=0==e.children.length?"none":this.expandedRowIdx[e.root.idx]?"expanded":"collapsed",e.root.children=e.children})}return this.drops.forEach(({0:e,1:i})=>{t.splice(i,0,t.splice(e,1)[0])}),t.forEach((t,e)=>t.idxDrag=e),-1!=this.dragRow&&(t[this.dragRow].isGhost=!0,-1!=this.dropRow&&t.splice(this.dropRow,0,t.splice(this.dragRow,1)[0])),a.html`
2275
2281
  <tbody>
2276
- ${t.map(e=>{const i=t.length,o=e.children.length>0&&"expanded"==e.collapse&&!e.isGhost;return n.html`
2277
- ${this.renderRow(e,i)} ${o?e.children.map(t=>this.renderRow(t,i)):a.nothing}
2282
+ ${t.map(e=>{const i=t.length,s=e.children.length>0&&"expanded"==e.collapse&&!e.isGhost;return a.html`
2283
+ ${this.renderRow(e,i)} ${s?e.children.map(t=>this.renderRow(t,i)):a.nothing}
2278
2284
  `})}
2279
2285
  </tbody>
2280
- `}renderRow(t,e){const i=Object.prototype.hasOwnProperty.call(this.selected,t.idx),o=(0,l.classMap)({selected:i,selectable:this.isSelectable&&!i,ghost:t.isGhost});return n.html`
2286
+ `}processTemplate(t){const e=document.importNode(t.content,!0);return Array.from(e.childNodes).map(t=>t.nodeType===Node.ELEMENT_NODE?t.outerHTML:t.nodeType===Node.TEXT_NODE&&t.textContent||"").join("")}processTemplateCallback(t){const e=document.importNode(t.template.content,!0);return t.cb({content:t.content,row:t.row,col:t.col,insertIndex:t.insertIndex,fragment:e}),Array.from(e.childNodes).map(t=>t.nodeType===Node.ELEMENT_NODE?t.outerHTML:t.nodeType===Node.TEXT_NODE&&t.textContent||"").join("")}renderRow(t,e){const i=Object.prototype.hasOwnProperty.call(this.selected,t.idx),s=(0,l.classMap)({selected:i,selectable:this.isSelectable&&!i,ghost:t.isGhost});return a.html`
2281
2287
  <tr
2282
- class=${o}
2288
+ class=${s}
2283
2289
  tabindex=${(0,d.ifDefined)("true"===this.isRowFocusable?"0":void 0)}
2284
2290
  part=${t.first?"first-row":"row"}
2285
2291
  @click=${({shiftKey:e,metaKey:i})=>{this.isSelectable&&this.selectRow({row:t,shiftKey:e,metaKey:i})}}
2286
2292
  >
2287
- ${t.cells.map((i,o)=>{var s;const r=this.COLS[o];let l=i.text;const d=i.template;d&&(l=d.templateCb?n.html`
2288
- ${(0,m.qQ)({cb:d.templateCb,insertIndex:d.insertIndex,template:d.template,content:i.text,row:t.idx,col:o})}
2289
- `:n.html` ${(0,h.templateContent)(d.template)} `,-1!=d.insertIndex&&(l=n.html`
2290
- ${d.insertIndex>0?i.text.substring(0,d.insertIndex):a.nothing} ${l}
2291
- ${d.insertIndex<i.text.length-1?i.text.substring(d.insertIndex):a.nothing}
2292
- `));const c=(null===(s=this.tableConfig.rows)||void 0===s?void 0:s.isDraggable)&&"child"!=t.collapse,p=c&&-1!=this.dragRow&&this.dragRow!=t.idxDrag,u=c&&0==o,y=n.html`
2293
+ ${t.cells.map((i,s)=>{var o;const r=this.COLS[s];let n=i.text;const l=i.template;l&&(n=l.templateCb?a.html`${(0,h.unsafeHTML)(this.processTemplateCallback({cb:l.templateCb,insertIndex:l.insertIndex,template:l.template,content:i.text,row:t.idx,col:s}))}`:a.html`${(0,h.unsafeHTML)(this.processTemplate(l.template))}`,-1!=l.insertIndex&&(n=a.html`
2294
+ ${l.insertIndex>0?i.text.substring(0,l.insertIndex):a.nothing} ${n}
2295
+ ${l.insertIndex<i.text.length-1?i.text.substring(l.insertIndex):a.nothing}
2296
+ `));const d=(null===(o=this.tableConfig.rows)||void 0===o?void 0:o.isDraggable)&&"child"!=t.collapse,c=d&&-1!=this.dragRow&&this.dragRow!=t.idxDrag,p=d&&0==s,u=a.html`
2293
2297
  <div
2294
2298
  class="inner-cell"
2295
2299
  draggable="false"
2296
2300
  @dragstart=${()=>{this.isResizing||-1!=this.dragCol||(this.dragRow=t.idxDrag)}}
2297
2301
  @dragend=${()=>this.onDropRow()}
2298
2302
  >
2299
- ${p?n.html`
2303
+ ${c?a.html`
2300
2304
  <div
2301
2305
  class="drag-area top"
2302
2306
  @dragenter=${()=>{if(0==this.dragRow){const e=t.idxDrag-1;this.dropRow=e>=0?e:0}else this.dropRow=t.idxDrag}}
@@ -2306,7 +2310,7 @@
2306
2310
  @dragenter=${()=>{if(0==this.dragRow)this.dropRow=t.idxDrag;else{const i=t.idxDrag+1;this.dropRow=i<e?i:e-1}}}
2307
2311
  ></div>
2308
2312
  `:a.nothing}
2309
- ${u?n.html`
2313
+ ${p?a.html`
2310
2314
  <md-icon
2311
2315
  class="drag-handle"
2312
2316
  @mousedown=${t=>{this.isResizing||-1!=this.dragCol||(this.dragRowElem=t.target.parentNode,this.dragRowElem.setAttribute("draggable","true"))}}
@@ -2316,22 +2320,22 @@
2316
2320
  >
2317
2321
  </md-icon>
2318
2322
  `:a.nothing}
2319
- ${r.isCollapsable?n.html`
2320
- ${"expanded"==t.collapse||"collapsed"==t.collapse?n.html`
2323
+ ${r.isCollapsable?a.html`
2324
+ ${"expanded"==t.collapse||"collapsed"==t.collapse?a.html`
2321
2325
  <button class="row-collapsible" @click=${e=>this.collapseToggle(e,t.idx)}>
2322
- ${"collapsed"==t.collapse?n.html` <md-icon name="plus-bold" size="12" iconSet="momentumDesign"></md-icon> `:n.html` <md-icon name="minus-bold" size="12" iconSet="momentumDesign"></md-icon> `}
2326
+ ${"collapsed"==t.collapse?a.html` <md-icon name="plus-bold" size="12" iconSet="momentumDesign"></md-icon> `:a.html` <md-icon name="minus-bold" size="12" iconSet="momentumDesign"></md-icon> `}
2323
2327
  </button>
2324
2328
  `:a.nothing}
2325
- <span>${"child"==t.collapse?a.nothing:l}</span>
2326
- `:n.html` <span>${l}</span> `}
2329
+ <span>${"child"==t.collapse?a.nothing:n}</span>
2330
+ `:a.html` <span>${n}</span> `}
2327
2331
  </div>
2328
- `;return r.options.isHeader?n.html` <th part="cell-ishead" scope="row" title="${i.text}">${y}</th> `:n.html` <td part=${0===o?"first-cell":"cell"} title="${i.text}">${y}</td> `})}
2332
+ `;return r.options.isHeader?a.html` <th part="cell-ishead" scope="row" title="${i.text}">${u}</th> `:a.html` <td part=${0===s?"first-cell":"cell"} title="${i.text}">${u}</td> `})}
2329
2333
  </tr>
2330
- `}static get styles(){return[r.A,u.A]}};b([(0,n.property)({attribute:"config"})],e.prototype,"config",void 0),b([(0,n.property)({attribute:"data"})],e.prototype,"data",void 0),b([(0,n.property)({type:String})],e.prototype,"isRowFocusable",void 0),b([(0,m.Wj)()],e.prototype,"md-table-advanced-change",void 0),b([(0,n.internalProperty)()],e.prototype,"tableConfig",void 0),b([(0,n.internalProperty)()],e.prototype,"tableData",void 0),b([(0,n.internalProperty)()],e.prototype,"error",void 0),b([(0,n.internalProperty)()],e.prototype,"COLS",void 0),b([(0,n.internalProperty)()],e.prototype,"ROWS",void 0),b([(0,n.internalProperty)()],e.prototype,"dragRow",void 0),b([(0,n.internalProperty)()],e.prototype,"dropRow",void 0),b([(0,n.internalProperty)()],e.prototype,"drops",void 0),b([(0,n.internalProperty)()],e.prototype,"dragCol",void 0),b([(0,n.internalProperty)()],e.prototype,"dropCol",void 0),b([(0,n.queryAll)("tr[tabindex]")],e.prototype,"tableRaws",void 0),b([(0,m.sg)(500)],e.prototype,"filter",null),e=b([(0,o.w)("md-table-advanced")],e),t.ELEMENT=e}(g||(g={}))},80072:(t,e,i)=>{i.d(e,{Draggable:()=>o});var o,s=i(41488),r=i(41891),n=i.n(r),a=i(26272),l=i(6979),d=i(66677),h=i(3001),c=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,h.TS)(s.LitElement)){constructor(){super(...arguments),this.delay=0,this.animation=0,this.handle="",this.filter="",this.easing="",this.direction="vertical",this.group=null,this.draggableItems="md-draggable-item",this.ghostClass="",this.chosenClass="",this.dragClass="",this.fallbackClass="",this.swapThreshold=1,this.touchStartThreshold=0,this.forceFallback=!1,this.sort=!1,this.disabled=!1,this.editable=!1,this.sortableInstance=null,this.handleOnChange=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-change",t)},this.handleOnClone=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-clone",t)},this.handleOnUnchoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-unchoose",t)},this.handleOnRemove=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-remove",t)},this.handleOnAdd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-add",t)},this.handleOnChoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-choose",t)},this.handleOnEnd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-end",t)},this.handleOnMove=(0,d.sg)(t=>{t.stopPropagation(),this.dispatchDragEvent("drag-move",t)},100),this.handleOnStart=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-start",t)}}static get styles(){return[a.A,l.A]}get slotElement(){return this.draggableSlot}generateOptions(){return Object.assign(Object.assign({},this.group&&{group:this.group}),{disabled:this.disabled,animation:this.animation,sort:this.sort,delay:this.delay,handle:this.handle,easing:this.easing,filter:this.filter,swapThreshold:this.swapThreshold,touchStartThreshold:this.touchStartThreshold,draggable:this.draggableItems,direction:this.direction,ghostClass:this.ghostClass,chosenClass:this.chosenClass,dragClass:this.dragClass,fallbackClass:this.fallbackClass,forceFallback:this.forceFallback,onStart:this.handleOnStart,onMove:this.handleOnMove,onEnd:this.handleOnEnd,onChoose:this.handleOnChoose,onAdd:this.handleOnAdd,onRemove:this.handleOnRemove,onUnchoose:this.handleOnUnchoose,onClone:this.handleOnClone,onChange:this.handleOnChange})}initializeSortable(){this.sortableInstance||(this.sortableInstance=n().create(this,this.generateOptions()))}dispatchDragEvent(t,e){this.dispatchEvent(new CustomEvent(t,{composed:!0,bubbles:!0,detail:{srcEvent:e}}))}cleanupSortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}connectedCallback(){super.connectedCallback(),this.initializeSortable()}disconnectedCallback(){super.disconnectedCallback(),this.cleanupSortable()}setSortableOption(t,e){this.sortableInstance&&void 0!==this.sortableInstance.option(t)&&this.sortableInstance.option(t,e)}updateSortableInstance(t){for(const e of t.keys()){const t=this[e];this.setSortableOption(e,t)}}updated(t){super.updated(t),this.updateSortableInstance(t)}slottedChanged(){this.initializeSortable()}render(){return s.html`
2334
+ `}static get styles(){return[r.A,u.A]}};b([(0,n.property)({attribute:"config"})],e.prototype,"config",void 0),b([(0,n.property)({attribute:"data"})],e.prototype,"data",void 0),b([(0,n.property)({type:String})],e.prototype,"isRowFocusable",void 0),b([(0,m.Wj)()],e.prototype,"md-table-advanced-change",void 0),b([(0,n.state)()],e.prototype,"tableConfig",void 0),b([(0,n.state)()],e.prototype,"tableData",void 0),b([(0,n.state)()],e.prototype,"error",void 0),b([(0,n.state)()],e.prototype,"COLS",void 0),b([(0,n.state)()],e.prototype,"ROWS",void 0),b([(0,n.state)()],e.prototype,"dragRow",void 0),b([(0,n.state)()],e.prototype,"dropRow",void 0),b([(0,n.state)()],e.prototype,"drops",void 0),b([(0,n.state)()],e.prototype,"dragCol",void 0),b([(0,n.state)()],e.prototype,"dropCol",void 0),b([(0,n.queryAll)("tr[tabindex]")],e.prototype,"tableRaws",void 0),b([(0,m.sg)(500)],e.prototype,"filter",null),e=b([(0,s.w)("md-table-advanced")],e),t.ELEMENT=e}(g||(g={}))},80072:(t,e,i)=>{i.d(e,{Draggable:()=>s});var s,o=i(3001),r=i(66677),a=i(4313),n=i(87161),l=i(70429),d=i(41891),h=i.n(d),c=i(43852),p=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,o.TS)(n.LitElement)){constructor(){super(...arguments),this.delay=0,this.animation=0,this.handle="",this.filter="",this.easing="",this.direction="vertical",this.group=null,this.draggableItems="md-draggable-item",this.ghostClass="",this.chosenClass="",this.dragClass="",this.fallbackClass="",this.swapThreshold=1,this.touchStartThreshold=0,this.forceFallback=!1,this.sort=!1,this.disabled=!1,this.editable=!1,this.sortableInstance=null,this.handleOnChange=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-change",t)},this.handleOnClone=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-clone",t)},this.handleOnUnchoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-unchoose",t)},this.handleOnRemove=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-remove",t)},this.handleOnAdd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-add",t)},this.handleOnChoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-choose",t)},this.handleOnEnd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-end",t)},this.handleOnMove=(0,r.sg)(t=>{t.stopPropagation(),this.dispatchDragEvent("drag-move",t)},100),this.handleOnStart=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-start",t)}}static get styles(){return[a.A,c.A]}get slotElement(){return this.draggableSlot}generateOptions(){return Object.assign(Object.assign({},this.group&&{group:this.group}),{disabled:this.disabled,animation:this.animation,sort:this.sort,delay:this.delay,handle:this.handle,easing:this.easing,filter:this.filter,swapThreshold:this.swapThreshold,touchStartThreshold:this.touchStartThreshold,draggable:this.draggableItems,direction:this.direction,ghostClass:this.ghostClass,chosenClass:this.chosenClass,dragClass:this.dragClass,fallbackClass:this.fallbackClass,forceFallback:this.forceFallback,onStart:this.handleOnStart,onMove:this.handleOnMove,onEnd:this.handleOnEnd,onChoose:this.handleOnChoose,onAdd:this.handleOnAdd,onRemove:this.handleOnRemove,onUnchoose:this.handleOnUnchoose,onClone:this.handleOnClone,onChange:this.handleOnChange})}initializeSortable(){this.sortableInstance||(this.sortableInstance=h().create(this,this.generateOptions()))}dispatchDragEvent(t,e){this.dispatchEvent(new CustomEvent(t,{composed:!0,bubbles:!0,detail:{srcEvent:e}}))}cleanupSortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}connectedCallback(){super.connectedCallback(),this.initializeSortable()}disconnectedCallback(){super.disconnectedCallback(),this.cleanupSortable()}setSortableOption(t,e){this.sortableInstance&&void 0!==this.sortableInstance.option(t)&&this.sortableInstance.option(t,e)}updateSortableInstance(t){for(const e of t.keys()){const t=this[e];this.setSortableOption(e,t)}}updated(t){super.updated(t),this.updateSortableInstance(t)}slottedChanged(){this.initializeSortable()}render(){return n.html`
2331
2335
  <div class="md-draggable" part="draggable" aria-disabled=${this.disabled}>
2332
2336
  <slot name="draggable-item"></slot>
2333
2337
  </div>
2334
- `}};c([(0,s.property)({type:Number})],e.prototype,"delay",void 0),c([(0,s.property)({type:Number})],e.prototype,"animation",void 0),c([(0,s.property)({type:String})],e.prototype,"handle",void 0),c([(0,s.property)({type:String})],e.prototype,"filter",void 0),c([(0,s.property)({type:String})],e.prototype,"easing",void 0),c([(0,s.property)({type:String})],e.prototype,"direction",void 0),c([(0,s.property)({type:Object})],e.prototype,"group",void 0),c([(0,s.property)({type:String,attribute:"draggable-items"})],e.prototype,"draggableItems",void 0),c([(0,s.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),c([(0,s.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),c([(0,s.property)({type:String,attribute:"drag-class"})],e.prototype,"dragClass",void 0),c([(0,s.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),c([(0,s.property)({type:Number,attribute:"swap-threshold"})],e.prototype,"swapThreshold",void 0),c([(0,s.property)({type:Number,attribute:"touch-start-threshold"})],e.prototype,"touchStartThreshold",void 0),c([(0,s.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),c([(0,s.property)({type:Boolean,reflect:!0})],e.prototype,"sort",void 0),c([(0,s.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),c([(0,s.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),c([(0,s.query)("slot[name='draggable-item']")],e.prototype,"draggableSlot",void 0),e=c([(0,h.wW)("md-draggable")],e),t.ELEMENT=e}(o||(o={}))},81144:(t,e,i)=>{i.d(e,{Radio:()=>o});var o,s=i(3001),r=i(31890),n=i(26272),a=i(41488),l=i(97822),d=i(76067),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,s.yC)(a.LitElement)){constructor(){super(...arguments),this.tabIndex=-1,this.label="",this.value="",this.ariaLabel="",this.autofocus=!1,this._disabled=!1,this.checked=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get inputAriaLabel(){var t,e,i;if(null===(t=this.ariaLabel)||void 0===t?void 0:t.length)return this.ariaLabel;if(null===(e=this.label)||void 0===e?void 0:e.length)return this.label;const o=null===(i=this.textContent)||void 0===i?void 0:i.trim();return(null==o?void 0:o.length)?o:void 0}static get styles(){return[n.A,d.A]}render(){return a.html`
2338
+ `}};p([(0,l.property)({type:Number})],e.prototype,"delay",void 0),p([(0,l.property)({type:Number})],e.prototype,"animation",void 0),p([(0,l.property)({type:String})],e.prototype,"handle",void 0),p([(0,l.property)({type:String})],e.prototype,"filter",void 0),p([(0,l.property)({type:String})],e.prototype,"easing",void 0),p([(0,l.property)({type:String})],e.prototype,"direction",void 0),p([(0,l.property)({type:Object})],e.prototype,"group",void 0),p([(0,l.property)({type:String,attribute:"draggable-items"})],e.prototype,"draggableItems",void 0),p([(0,l.property)({type:String,attribute:"ghost-class"})],e.prototype,"ghostClass",void 0),p([(0,l.property)({type:String,attribute:"chosen-class"})],e.prototype,"chosenClass",void 0),p([(0,l.property)({type:String,attribute:"drag-class"})],e.prototype,"dragClass",void 0),p([(0,l.property)({type:String,attribute:"fallback-class"})],e.prototype,"fallbackClass",void 0),p([(0,l.property)({type:Number,attribute:"swap-threshold"})],e.prototype,"swapThreshold",void 0),p([(0,l.property)({type:Number,attribute:"touch-start-threshold"})],e.prototype,"touchStartThreshold",void 0),p([(0,l.property)({type:Boolean,attribute:"force-fallback"})],e.prototype,"forceFallback",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"sort",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"editable",void 0),p([(0,l.query)("slot[name='draggable-item']")],e.prototype,"draggableSlot",void 0),e=p([(0,o.wW)("md-draggable")],e),t.ELEMENT=e}(s||(s={}))},81144:(t,e,i)=>{i.d(e,{Radio:()=>s});var s,o=i(3001),r=i(31890),a=i(4313),n=i(87161),l=i(70429),d=i(20291),h=i(60836),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,o.yC)(n.LitElement)){constructor(){super(...arguments),this.tabIndex=-1,this.label="",this.value="",this.ariaLabel="",this.autofocus=!1,this._disabled=!1,this.checked=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get inputAriaLabel(){var t,e,i;if(null===(t=this.ariaLabel)||void 0===t?void 0:t.length)return this.ariaLabel;if(null===(e=this.label)||void 0===e?void 0:e.length)return this.label;const s=null===(i=this.textContent)||void 0===i?void 0:i.trim();return(null==s?void 0:s.length)?s:void 0}static get styles(){return[a.A,h.A]}render(){return n.html`
2335
2339
  <div class="md-radio-wrapper" part="radio-wrapper">
2336
2340
  <div class="md-radio-icon"></div>
2337
2341
  <input
@@ -2339,7 +2343,7 @@
2339
2343
  part="radio-input"
2340
2344
  type="radio"
2341
2345
  role="radio"
2342
- aria-label=${(0,l.ifDefined)(this.inputAriaLabel)}
2346
+ aria-label=${(0,d.ifDefined)(this.inputAriaLabel)}
2343
2347
  aria-checked=${this.checked?"true":"false"}
2344
2348
  .value=${this.value}
2345
2349
  ?checked=${this.checked}
@@ -2352,8 +2356,8 @@
2352
2356
  <slot></slot>
2353
2357
  </label>
2354
2358
  </div>
2355
- `}};h([(0,a.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,a.property)({type:String})],e.prototype,"label",void 0),h([(0,a.property)({type:String})],e.prototype,"value",void 0),h([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"checked",void 0),e=h([(0,r.w)("md-radio")],e),t.ELEMENT=e}(o||(o={}))},83192:(t,e,i)=>{i.d(e,{Tooltip:()=>o});var o,s=i(90195),r=i(3001),n=i(31890),a=i(66677),l=i(26272),d=i(41488),h=i(23968),c=i(77251),p=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.UM)((0,r.yC)(d.LitElement))){constructor(){super(...arguments),this.message="",this.placement="auto",this.disabled=!1,this.opened=!1,this.slotToTooltip=!1,this.slotContent=null,this._keyDownListener=t=>{this.handleKeyDown(t)},this._wheelListener=t=>{this.opened&&this.notifyTooltipDestroy()}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this._keyDownListener),window.addEventListener("wheel",this._wheelListener,{passive:!0})}disconnectedCallback(){this.notifyTooltipDisconnected(),super.disconnectedCallback(),document.removeEventListener("keydown",this._keyDownListener),window.removeEventListener("wheel",this._wheelListener)}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),(0,a.sg)(()=>{this.slotToTooltip&&(this.disabled=this.reference&&!this.isContentTruncated(this.reference))},100)()}handleFocusIn(t){super.handleFocusIn&&super.handleFocusIn(t),this.notifyTooltipCreate()}handleFocusOut(t){super.handleFocusOut&&super.handleFocusOut(t),this.notifyTooltipDestroy()}openTooltip(){this.dispatchEvent(new CustomEvent("tooltip-create",{bubbles:!0,composed:!0,detail:Object.assign({placement:this.placement,reference:this.reference,popper:this.popper},!this.message&&{slotContent:this.slotContent})}))}notifyTooltipDisconnected(){document.dispatchEvent(new CustomEvent("tooltip-disconnected",{bubbles:!0,composed:!0,detail:{}}))}closeTooltip(){this.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeMessage(){this.dispatchEvent(new CustomEvent("tooltip-message",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeSlotContent(t){this.dispatchEvent(new CustomEvent("tooltip-slot",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper,slotContent:t}}))}notifyTooltipCreate(){this.disabled||(this.opened=!0)}notifyTooltipDestroy(){this.disabled||(this.opened=!1)}handleKeyDown(t){t.code===s.Uz.Escape&&this.notifyTooltipDestroy()}handleSlotContentChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent&&this.changeSlotContent(t),this.slotContent=t)}}updated(t){super.updated(t),t.has("opened")&&(this.opened?this.openTooltip():this.closeTooltip()),t.has("message")&&this.changeMessage(),t.has("disabled")&&this.opened&&(this.opened=!1)}handleSlotChanged(t){const e=t.target;if(this.slotToTooltip&&e){const t=e.assignedNodes({flatten:!0}).map(t=>t.textContent).join(" ").trim();this.message=t,this.disabled=this.reference&&!this.isContentTruncated(this.reference)}}isContentTruncated(t){return t.scrollWidth>t.clientWidth}get tooltipClassMap(){return{"md-tooltip--disabled":this.disabled}}render(){return d.html`
2356
- <div class="md-tooltip ${(0,h.classMap)(this.tooltipClassMap)}">
2359
+ `}};c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,l.property)({type:String})],e.prototype,"label",void 0),c([(0,l.property)({type:String})],e.prototype,"value",void 0),c([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"checked",void 0),e=c([(0,r.w)("md-radio")],e),t.ELEMENT=e}(s||(s={}))},83048:t=>{t.exports=l},83192:(t,e,i)=>{i.d(e,{Tooltip:()=>s});var s,o=i(90195),r=i(3001),a=i(31890),n=i(66677),l=i(4313),d=i(87161),h=i(70429),c=i(85125),p=i(62848),u=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.UM)((0,r.yC)(d.LitElement))){constructor(){super(...arguments),this.message="",this.placement="auto",this.disabled=!1,this.opened=!1,this.slotToTooltip=!1,this.slotContent=null,this._keyDownListener=t=>{this.handleKeyDown(t)},this._wheelListener=t=>{this.opened&&this.notifyTooltipDestroy()}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this._keyDownListener),window.addEventListener("wheel",this._wheelListener,{passive:!0})}disconnectedCallback(){this.notifyTooltipDisconnected(),super.disconnectedCallback(),document.removeEventListener("keydown",this._keyDownListener),window.removeEventListener("wheel",this._wheelListener)}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),(0,n.sg)(()=>{this.slotToTooltip&&(this.disabled=this.reference&&!this.isContentTruncated(this.reference))},100)()}handleFocusIn(t){super.handleFocusIn&&super.handleFocusIn(t),this.notifyTooltipCreate()}handleFocusOut(t){super.handleFocusOut&&super.handleFocusOut(t),this.notifyTooltipDestroy()}openTooltip(){this.dispatchEvent(new CustomEvent("tooltip-create",{bubbles:!0,composed:!0,detail:Object.assign({placement:this.placement,reference:this.reference,popper:this.popper},!this.message&&{slotContent:this.slotContent})}))}notifyTooltipDisconnected(){document.dispatchEvent(new CustomEvent("tooltip-disconnected",{bubbles:!0,composed:!0,detail:{}}))}closeTooltip(){this.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeMessage(){this.dispatchEvent(new CustomEvent("tooltip-message",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeSlotContent(t){this.dispatchEvent(new CustomEvent("tooltip-slot",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper,slotContent:t}}))}notifyTooltipCreate(){this.disabled||(this.opened=!0)}notifyTooltipDestroy(){this.disabled||(this.opened=!1)}handleKeyDown(t){t.code===o.Uz.Escape&&this.notifyTooltipDestroy()}handleSlotContentChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent&&this.changeSlotContent(t),this.slotContent=t)}}updated(t){super.updated(t),t.has("opened")&&(this.opened?this.openTooltip():this.closeTooltip()),t.has("message")&&this.changeMessage(),t.has("disabled")&&this.opened&&(this.opened=!1)}handleSlotChanged(t){const e=t.target;if(this.slotToTooltip&&e){const t=e.assignedNodes({flatten:!0}).map(t=>t.textContent).join(" ").trim();this.message=t,this.disabled=this.reference&&!this.isContentTruncated(this.reference)}}isContentTruncated(t){return t.scrollWidth>t.clientWidth}get tooltipClassMap(){return{"md-tooltip--disabled":this.disabled}}render(){return d.html`
2360
+ <div class="md-tooltip ${(0,c.classMap)(this.tooltipClassMap)}">
2357
2361
  <div class="md-tooltip__popper" role="tooltip" part="tooltip-popper">
2358
2362
  <div id="md-tooltip__content" class="md-tooltip__content" part="tooltip-content">
2359
2363
  ${this.message||d.html` <slot name="tooltip-content" @slotchange=${this.handleSlotContentChange}></slot> `}
@@ -2373,14 +2377,14 @@
2373
2377
  <slot @slotchange=${this.handleSlotChanged}></slot>
2374
2378
  </div>
2375
2379
  </div>
2376
- `}static get styles(){return[l.A,c.A]}};p([(0,d.property)({type:String})],e.prototype,"message",void 0),p([(0,d.property)({type:String,reflect:!0})],e.prototype,"placement",void 0),p([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"opened",void 0),p([(0,d.property)({type:Boolean,reflect:!0,attribute:"slot-to-tooltip"})],e.prototype,"slotToTooltip",void 0),p([(0,d.query)(".md-tooltip__popper")],e.prototype,"popper",void 0),p([(0,d.query)(".md-tooltip__reference")],e.prototype,"reference",void 0),e=p([(0,n.w)("md-tooltip")],e),t.ELEMENT=e}(o||(o={}))},84032:(t,e,i)=>{i.d(e,{Menu:()=>o});var o,s=i(90195),r=i(31890),n=i(84624),a=i(68387),l=i(59164),d=i(26272),h=i(41488),c=i(23968),p=i(48171),u=i(49719),m=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},y=function(t,e,i,o){return new(i||(i=Promise))(function(s,r){function n(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(n,a)}l((o=o.apply(t,e||[])).next())})};!function(t){let e=class extends((0,a.T)((0,n.I)(h.LitElement))){constructor(){super(...arguments),this.justified=!1,this.direction="horizontal",this.items=[],this.itemsHash={},this.itemsIdxHash={}}getNormalizedItemId(t){return t.replace("more-menu-item-","")}static get styles(){return[d.A,u.A]}get slotItem(){return this.menuSlotElement}linkMenuItems(){return y(this,void 0,void 0,function*(){const{items:t}=this;t.forEach((t,e)=>{const i=(0,l.O)("menu");t.setAttribute("id",i),t.setAttribute("aria-controls",i),t.selected=this.selected===e}),this.itemsHash=this.items.reduce((t,e)=>(t[e.id]=e,t),{}),this.itemsIdxHash=this.items.reduce((t,e,i)=>(t[e.id]=i,t),{})})}setupMenuItems(){if(this.menuSlotElement){const t=this.menuSlotElement.assignedElements({flatten:!0});this.getChildrenFromTree({children:t},this.items)}}getChildrenFromTree(t,e){t.children.forEach(t=>{t instanceof p.MenuItem.ELEMENT&&e.push(t),this.getChildrenFromTree({children:Array.from(t.children)},e)})}updateSelectedItem(t){const e=this.slotted.findIndex(t=>t.hasAttribute("selected"));e!==t&&(this.items&&[e,t].forEach(t=>{const e=this.items[t];null==e||e.toggleAttribute("selected")}),this.dispatchEvent(new CustomEvent("selected-menu-item",{detail:{value:t},composed:!0,bubbles:!0})),this.changeSelectedItemIdx(t))}changeSelectedItemIdx(t){this.selected=t}handleItemClick(t){const{id:e}=t.detail,i=this.itemsHash[this.getNormalizedItemId(e)];if(i&&!i.disabled){const t=this.itemsIdxHash[i.id];-1!==t&&this.updateSelectedItem(t)}}handleItemKeydown(t){const{key:e,id:i}=t.detail;switch(e){case s.Uz.End:this.changeSelectedItemIdx(this.items.length-1);break;case s.Uz.Home:this.changeSelectedItemIdx(0);break;case s.Uz.ArrowLeft:case s.Uz.ArrowUp:0===this.selected?this.changeSelectedItemIdx(this.items.length-1):this.changeSelectedItemIdx(this.selected-1);break;case s.Uz.ArrowRight:case s.Uz.ArrowDown:this.selected===this.items.length-1?this.changeSelectedItemIdx(0):this.changeSelectedItemIdx(this.selected+1);break;case s.Uz.Enter:case s.Uz.Space:const t=this.slotted.findIndex(t=>t.id===i&&!t.disabled);-1!==t&&this.updateSelectedItem(t)}}connectedCallback(){super.connectedCallback(),this.addEventListener("menu-item-click",this.handleItemClick),this.addEventListener("menu-item-keydown",this.handleItemKeydown)}updated(t){const e=Object.create(null,{updated:{get:()=>super.updated}});return y(this,void 0,void 0,function*(){e.updated.call(this,t),t.has("slotted")&&(this.setupMenuItems(),this.linkMenuItems())})}disconnectedCallback(){super.connectedCallback(),this.removeEventListener("menu-item-click",this.handleItemClick),this.removeEventListener("menu-item-keydown",this.handleItemKeydown)}get menuClassMap(){return{[`md-menu--${this.direction}`]:this.direction,justified:this.justified}}render(){return h.html`
2377
- <nav class="md-menu ${(0,c.classMap)(this.menuClassMap)}">
2380
+ `}static get styles(){return[l.A,p.A]}};u([(0,h.property)({type:String})],e.prototype,"message",void 0),u([(0,h.property)({type:String,reflect:!0})],e.prototype,"placement",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),u([(0,h.property)({type:Boolean,reflect:!0})],e.prototype,"opened",void 0),u([(0,h.property)({type:Boolean,reflect:!0,attribute:"slot-to-tooltip"})],e.prototype,"slotToTooltip",void 0),u([(0,h.query)(".md-tooltip__popper")],e.prototype,"popper",void 0),u([(0,h.query)(".md-tooltip__reference")],e.prototype,"reference",void 0),e=u([(0,a.w)("md-tooltip")],e),t.ELEMENT=e}(s||(s={}))},84032:(t,e,i)=>{i.d(e,{Menu:()=>s});var s,o=i(90195),r=i(31890),a=i(84624),n=i(68387),l=i(59164),d=i(4313),h=i(87161),c=i(70429),p=i(85125),u=i(48171),m=i(81626),y=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,n.T)((0,a.I)(h.LitElement))){constructor(){super(...arguments),this.justified=!1,this.direction="horizontal",this.items=[],this.itemsHash={},this.itemsIdxHash={}}getNormalizedItemId(t){return t.replace("more-menu-item-","")}static get styles(){return[d.A,m.A]}get slotItem(){return this.menuSlotElement}linkMenuItems(){return t=this,e=void 0,s=function*(){const{items:t}=this;t.forEach((t,e)=>{const i=(0,l.O)("menu");t.setAttribute("id",i),t.setAttribute("aria-controls",i),t.selected=this.selected===e}),this.itemsHash=this.items.reduce((t,e)=>(t[e.id]=e,t),{}),this.itemsIdxHash=this.items.reduce((t,e,i)=>(t[e.id]=i,t),{})},new((i=void 0)||(i=Promise))(function(o,r){function a(t){try{l(s.next(t))}catch(t){r(t)}}function n(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,n)}l((s=s.apply(t,e||[])).next())});var t,e,i,s}setupMenuItems(){if(this.menuSlotElement){const t=this.menuSlotElement.assignedElements({flatten:!0});this.getChildrenFromTree({children:t},this.items)}}getChildrenFromTree(t,e){t.children.forEach(t=>{t instanceof u.MenuItem.ELEMENT&&e.push(t),this.getChildrenFromTree({children:Array.from(t.children)},e)})}updateSelectedItem(t){const e=this.slotted.findIndex(t=>t.hasAttribute("selected"));e!==t&&(this.items&&[e,t].forEach(t=>{const e=this.items[t];null==e||e.toggleAttribute("selected")}),this.dispatchEvent(new CustomEvent("selected-menu-item",{detail:{value:t},composed:!0,bubbles:!0})),this.changeSelectedItemIdx(t))}changeSelectedItemIdx(t){this.selected=t}handleItemClick(t){const{id:e}=t.detail,i=this.itemsHash[this.getNormalizedItemId(e)];if(i&&!i.disabled){const t=this.itemsIdxHash[i.id];-1!==t&&this.updateSelectedItem(t)}}handleItemKeydown(t){const{key:e,id:i}=t.detail;switch(e){case o.Uz.End:this.changeSelectedItemIdx(this.items.length-1);break;case o.Uz.Home:this.changeSelectedItemIdx(0);break;case o.Uz.ArrowLeft:case o.Uz.ArrowUp:0===this.selected?this.changeSelectedItemIdx(this.items.length-1):this.changeSelectedItemIdx(this.selected-1);break;case o.Uz.ArrowRight:case o.Uz.ArrowDown:this.selected===this.items.length-1?this.changeSelectedItemIdx(0):this.changeSelectedItemIdx(this.selected+1);break;case o.Uz.Enter:case o.Uz.Space:const t=this.slotted.findIndex(t=>t.id===i&&!t.disabled);-1!==t&&this.updateSelectedItem(t)}}connectedCallback(){super.connectedCallback(),this.addEventListener("menu-item-click",this.handleItemClick),this.addEventListener("menu-item-keydown",this.handleItemKeydown)}disconnectedCallback(){super.connectedCallback(),this.removeEventListener("menu-item-click",this.handleItemClick),this.removeEventListener("menu-item-keydown",this.handleItemKeydown)}onSlotChange(){this.setupMenuItems(),this.linkMenuItems()}get menuClassMap(){return{[`md-menu--${this.direction}`]:this.direction,justified:this.justified}}render(){return h.html`
2381
+ <nav class="md-menu ${(0,p.classMap)(this.menuClassMap)}">
2378
2382
  <ul class="md-menu-list">
2379
- <slot></slot>
2383
+ <slot @slotchange=${this.onSlotChange}></slot>
2380
2384
  </ul>
2381
2385
  </nav>
2382
- `}};m([(0,h.property)({type:Boolean})],e.prototype,"justified",void 0),m([(0,h.property)({type:String})],e.prototype,"direction",void 0),m([(0,h.query)("slot")],e.prototype,"menuSlotElement",void 0),m([(0,h.query)("md-menu-overlay")],e.prototype,"menuSubElement",void 0),e=m([(0,r.w)("md-menu")],e),t.ELEMENT=e}(o||(o={}))},84157:t=>{t.exports=y},84205:(t,e,i)=>{i.d(e,{PhoneInput:()=>o}),i(4928),i(18224),i(96408);var o,s=i(31890),r=i(860),n=i(41488),a=i(23968),l=i(77833),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.codePlaceholder="+1",this.numberPlaceholder="Enter Phone Number",this.countryCallingCode="",this.showFlags=!1,this.pill=!1,this.disabled=!1,this.value="",this.errorMessage="",this.showErrorMessage=!1,this.countryCodeAriaLabel="",this.dialNumberAriaLabel="",this.clearAriaLabel="Clear Input",this.clearCountryCodeAriaLabel="Clear Country Code",this.id="",this.newMomentum=!1,this.countryCode="US",this.formattedValue="",this.isValid=!0}get isRtl(){try{if(!this.isConnected)return!1;const t=getComputedStyle(this);return"rtl"===(null==t?void 0:t.direction)}catch(t){return!1}}connectedCallback(){super.connectedCallback(),""===this.id&&(this.id=`md-phone-input-${Math.random().toString(36).substring(2,6)}`),this.validateInput(this.value)}validateNumber(){this.isValid=!this.value||(0,r.isValidNumberForRegion)(this.value,this.countryCode)}handleCountryChange(t){var e,i;const o=t.detail.srcEvent;o.detail.value&&(null===(e=o.detail.value)||void 0===e?void 0:e.id)?(this.countryCallingCode=o.detail.value.id,this.countryCode=null===(i=o.detail.value.id.split(",")[2])||void 0===i?void 0:i.trim()):(this.countryCode="US",this.countryCallingCode=""),this.validateNumber(),this.dispatchEvent(new CustomEvent("countrycode-change",{bubbles:!0,composed:!0,detail:{srcEvent:o,isValid:this.isValid}}))}handlePhoneChange(t){this.value=t.detail.value,t.stopPropagation(),this.dispatchEvent(new CustomEvent("phoneinput-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}handleKeydown(t){this.isValid=!0,t.stopPropagation(),this.dispatchEvent(new CustomEvent("phoneinput-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}handleBlur(t){this.validateInput(this.value),this.validateNumber(),t.stopPropagation(),this.removeCountryCode(),this.dispatchEvent(new CustomEvent("phoneinput-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}removeCountryCode(){var t;const e=null===(t=this.countryCallingCode.split(",")[0])||void 0===t?void 0:t.trim();if(this.value.startsWith(e)){const t=this.value.slice(e.length).replace(/^-/,"");this.value=t}}validateInput(t){this.formattedValue=new r.AsYouType(this.countryCode).input(t)}get flagClassMap(){return{"new-momentum":this.newMomentum}}get containerClassMap(){return{"md-phone-input__container":!0,rtl:this.isRtl}}static get styles(){return[l.A]}render(){return n.html`
2383
- <div class=${(0,a.classMap)(this.containerClassMap)}>
2386
+ `}};y([(0,c.property)({type:Boolean})],e.prototype,"justified",void 0),y([(0,c.property)({type:String})],e.prototype,"direction",void 0),y([(0,c.query)("slot")],e.prototype,"menuSlotElement",void 0),y([(0,c.query)("md-menu-overlay")],e.prototype,"menuSubElement",void 0),e=y([(0,r.w)("md-menu")],e),t.ELEMENT=e}(s||(s={}))},84157:t=>{t.exports=u},84205:(t,e,i)=>{i.d(e,{PhoneInput:()=>s}),i(4928),i(18224),i(96408);var s,o=i(31890),r=i(860),a=i(87161),n=i(70429),l=i(85125),d=i(52714),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.codePlaceholder="+1",this.numberPlaceholder="Enter Phone Number",this.countryCallingCode="",this.showFlags=!1,this.pill=!1,this.disabled=!1,this.value="",this.errorMessage="",this.showErrorMessage=!1,this.countryCodeAriaLabel="",this.dialNumberAriaLabel="",this.clearAriaLabel="Clear Input",this.clearCountryCodeAriaLabel="Clear Country Code",this.id="",this.newMomentum=!1,this.countryCode="US",this.formattedValue="",this.isValid=!0}get isRtl(){try{if(!this.isConnected)return!1;const t=getComputedStyle(this);return"rtl"===(null==t?void 0:t.direction)}catch(t){return!1}}connectedCallback(){super.connectedCallback(),""===this.id&&(this.id=`md-phone-input-${Math.random().toString(36).substring(2,6)}`),this.validateInput(this.value)}validateNumber(){this.isValid=!this.value||(0,r.isValidNumberForRegion)(this.value,this.countryCode)}handleCountryChange(t){var e,i;const s=t.detail.srcEvent;s.detail.value&&(null===(e=s.detail.value)||void 0===e?void 0:e.id)?(this.countryCallingCode=s.detail.value.id,this.countryCode=null===(i=s.detail.value.id.split(",")[2])||void 0===i?void 0:i.trim()):(this.countryCode="US",this.countryCallingCode=""),this.validateNumber(),this.dispatchEvent(new CustomEvent("countrycode-change",{bubbles:!0,composed:!0,detail:{srcEvent:s,isValid:this.isValid}}))}handlePhoneChange(t){this.value=t.detail.value,t.stopPropagation(),this.dispatchEvent(new CustomEvent("phoneinput-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}handleKeydown(t){this.isValid=!0,t.stopPropagation(),this.dispatchEvent(new CustomEvent("phoneinput-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}handleBlur(t){this.validateInput(this.value),this.validateNumber(),t.stopPropagation(),this.removeCountryCode(),this.dispatchEvent(new CustomEvent("phoneinput-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}removeCountryCode(){var t;const e=null===(t=this.countryCallingCode.split(",")[0])||void 0===t?void 0:t.trim();if(this.value.startsWith(e)){const t=this.value.slice(e.length).replace(/^-/,"");this.value=t}}validateInput(t){this.formattedValue=new r.AsYouType(this.countryCode).input(t)}get flagClassMap(){return{"new-momentum":this.newMomentum}}get containerClassMap(){return{"md-phone-input__container":!0,rtl:this.isRtl}}static get styles(){return[d.A]}render(){return a.html`
2387
+ <div class=${(0,l.classMap)(this.containerClassMap)}>
2384
2388
  <md-country-code-picker
2385
2389
  part="md-country-code-picker"
2386
2390
  exportparts="option: option"
@@ -2415,21 +2419,21 @@
2415
2419
  .messageArr="${!this.isValid||this.showErrorMessage?[{type:"error",id:this.id,ariaLive:"polite",message:this.errorMessage}]:[]}"
2416
2420
  ></md-input>
2417
2421
  </div>
2418
- `}};d([(0,n.property)({type:String,reflect:!0})],e.prototype,"codePlaceholder",void 0),d([(0,n.property)({type:String})],e.prototype,"numberPlaceholder",void 0),d([(0,n.property)({type:String,attribute:"country-calling-code"})],e.prototype,"countryCallingCode",void 0),d([(0,n.property)({type:Boolean,attribute:"show-flags"})],e.prototype,"showFlags",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"pill",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),d([(0,n.property)({type:String})],e.prototype,"value",void 0),d([(0,n.property)({type:String})],e.prototype,"errorMessage",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"showErrorMessage",void 0),d([(0,n.property)({type:String})],e.prototype,"countryCodeAriaLabel",void 0),d([(0,n.property)({type:String})],e.prototype,"dialNumberAriaLabel",void 0),d([(0,n.property)({type:String})],e.prototype,"clearAriaLabel",void 0),d([(0,n.property)({type:String})],e.prototype,"clearCountryCodeAriaLabel",void 0),d([(0,n.property)({type:String})],e.prototype,"id",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"newMomentum",void 0),d([(0,n.internalProperty)()],e.prototype,"countryCode",void 0),d([(0,n.internalProperty)()],e.prototype,"formattedValue",void 0),d([(0,n.internalProperty)()],e.prototype,"isValid",void 0),e=d([(0,s.w)("md-phone-input")],e),t.ELEMENT=e}(o||(o={}))},85314:t=>{t.exports=a},85416:(t,e,i)=>{i.d(e,{DateTimePicker:()=>o}),i(96408),i(11323);var o,s=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(97822),d=i(65796),h=i(90195),c=i(33663),p=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.weekStartDays=["Sunday","Monday"];let e=class extends a.LitElement{constructor(){super(...arguments),this.maxDate=void 0,this.minDate=void 0,this.weekStart="Sunday",this.ariaLabel="",this.twoDigitAutoTab=!1,this.shouldCloseOnSelect=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=h.R5.SECOND,this.dateValue=void 0,this.timeValue="00:00:00-08:00",this.value=void 0,this.disableDateValidation=!1,this.locale=void 0,this.placeholder=void 0,this.useISOFormat=!0,this.disabled=!1,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.compactInput=void 0,this.controlButtons=void 0,this.fullDateTime=void 0,this.selectedTimeObject=void 0,this.selectedDateObject=(0,r.tB)(),this.handleDateChange=t=>{var e,i;this.selectedDateObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.dateValue=null===(i=this.selectedDateObject)||void 0===i?void 0:i.toISODate(),this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleTimeChange=t=>{var e,i,o;this.selectedTimeObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.timeValue=null===(i=this.selectedTimeObject)||void 0===i?void 0:i.startOf("second").toISOTime({suppressMilliseconds:!0}),(null===(o=this.controlButtons)||void 0===o?void 0:o.apply)||this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleDateTimeInputChange=t=>{var e;this.value=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.value},this.parseValueForVisuals=t=>{t&&(this.dateValue=t.split("T")[0],this.timeValue=t.split("T")[1])},this.updateDateTimeObject=()=>{this.value?this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}):this.fullDateTime=d.DateTime.fromISO("",{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-time-change",{bubbles:!0,composed:!0,detail:{dateTimeString:this.value,dateTime:this.fullDateTime,locale:this.locale,twentyFourHourFormat:this.twentyFourHourFormat}}))},this.combineDateAndTimeValues=(t,e)=>{t&&(this.value=e?`${t}T${e}`:t)}}firstUpdated(t){var e;if(super.firstUpdated(t),!this.value&&this.showDefaultNowDate){const t=null===(e=this.selectedDateObject)||void 0===e?void 0:e.toISODate();this.combineDateAndTimeValues(t,this.timeValue)}}updated(t){var e;super.updated(t),t.has("value")&&(this.value&&this.parseValueForVisuals(this.value),this.updateDateTimeObject()),this.dateValue&&this.timeValue&&!(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)&&(t.has("dateValue")||t.has("timeValue"))&&this.combineDateAndTimeValues(this.dateValue,this.timeValue),this.value&&t.has("locale")&&(this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}))}get placeholderValue(){return this.placeholder?this.placeholder:"YYYY-MM-DDTHH:MM:SS-HH:MM"}static get styles(){return[n.A,c.A]}get displayValue(){if(!this.useISOFormat&&this.fullDateTime&&this.fullDateTime.isValid)return this.fullDateTime.toLocaleString(d.DateTime.DATETIME_MED,{locale:this.locale})}render(){var t;return a.html`
2422
+ `}};h([(0,n.property)({type:String,reflect:!0})],e.prototype,"codePlaceholder",void 0),h([(0,n.property)({type:String})],e.prototype,"numberPlaceholder",void 0),h([(0,n.property)({type:String,attribute:"country-calling-code"})],e.prototype,"countryCallingCode",void 0),h([(0,n.property)({type:Boolean,attribute:"show-flags"})],e.prototype,"showFlags",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"pill",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,n.property)({type:String})],e.prototype,"value",void 0),h([(0,n.property)({type:String})],e.prototype,"errorMessage",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"showErrorMessage",void 0),h([(0,n.property)({type:String})],e.prototype,"countryCodeAriaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"dialNumberAriaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"clearAriaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"clearCountryCodeAriaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"id",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"newMomentum",void 0),h([(0,n.state)()],e.prototype,"countryCode",void 0),h([(0,n.state)()],e.prototype,"formattedValue",void 0),h([(0,n.state)()],e.prototype,"isValid",void 0),e=h([(0,o.w)("md-phone-input")],e),t.ELEMENT=e}(s||(s={}))},85125:t=>{t.exports=i},85314:t=>{t.exports=n},85416:(t,e,i)=>{i.d(e,{DateTimePicker:()=>s}),i(96408),i(11323);var s,o=i(31890),r=i(81625),a=i(4313),n=i(87161),l=i(70429),d=i(20291),h=i(65796),c=i(90195),p=i(72314),u=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){t.weekStartDays=["Sunday","Monday"];let e=class extends n.LitElement{constructor(){super(...arguments),this.maxDate=void 0,this.minDate=void 0,this.weekStart="Sunday",this.ariaLabel="",this.twoDigitAutoTab=!1,this.shouldCloseOnSelect=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=c.R5.SECOND,this.dateValue=void 0,this.timeValue="00:00:00-08:00",this.value=void 0,this.disableDateValidation=!1,this.locale=void 0,this.placeholder=void 0,this.useISOFormat=!0,this.disabled=!1,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.compactInput=void 0,this.controlButtons=void 0,this.fullDateTime=void 0,this.selectedTimeObject=void 0,this.selectedDateObject=(0,r.tB)(),this.handleDateChange=t=>{var e,i;this.selectedDateObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.dateValue=null===(i=this.selectedDateObject)||void 0===i?void 0:i.toISODate(),this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleTimeChange=t=>{var e,i,s;this.selectedTimeObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.timeValue=null===(i=this.selectedTimeObject)||void 0===i?void 0:i.startOf("second").toISOTime({suppressMilliseconds:!0}),(null===(s=this.controlButtons)||void 0===s?void 0:s.apply)||this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleDateTimeInputChange=t=>{var e;this.value=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.value},this.parseValueForVisuals=t=>{t&&(this.dateValue=t.split("T")[0],this.timeValue=t.split("T")[1])},this.updateDateTimeObject=()=>{this.value?this.fullDateTime=h.DateTime.fromISO(this.value,{locale:this.locale}):this.fullDateTime=h.DateTime.fromISO("",{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-time-change",{bubbles:!0,composed:!0,detail:{dateTimeString:this.value,dateTime:this.fullDateTime,locale:this.locale,twentyFourHourFormat:this.twentyFourHourFormat}}))},this.combineDateAndTimeValues=(t,e)=>{t&&(this.value=e?`${t}T${e}`:t)}}firstUpdated(t){var e;if(super.firstUpdated(t),!this.value&&this.showDefaultNowDate){const t=null===(e=this.selectedDateObject)||void 0===e?void 0:e.toISODate();this.combineDateAndTimeValues(t,this.timeValue)}}updated(t){var e;super.updated(t),t.has("value")&&(this.value&&this.parseValueForVisuals(this.value),this.updateDateTimeObject()),this.dateValue&&this.timeValue&&!(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)&&(t.has("dateValue")||t.has("timeValue"))&&this.combineDateAndTimeValues(this.dateValue,this.timeValue),this.value&&t.has("locale")&&(this.fullDateTime=h.DateTime.fromISO(this.value,{locale:this.locale}))}get placeholderValue(){return this.placeholder?this.placeholder:"YYYY-MM-DDTHH:MM:SS-HH:MM"}static get styles(){return[a.A,p.A]}get displayValue(){if(!this.useISOFormat&&this.fullDateTime&&this.fullDateTime.isValid)return this.fullDateTime.toLocaleString(h.DateTime.DATETIME_MED,{locale:this.locale})}render(){var t;return n.html`
2419
2423
  <md-datepicker
2420
2424
  includes-time
2421
2425
  ?disabled=${this.disabled}
2422
- ariaLabel=${(0,l.ifDefined)(this.ariaLabel||void 0)}
2426
+ ariaLabel=${(0,d.ifDefined)(this.ariaLabel||void 0)}
2423
2427
  .positioningStrategy=${this.positioningStrategy}
2424
- minDate=${(0,l.ifDefined)(this.minDate)}
2425
- maxDate=${(0,l.ifDefined)(this.maxDate)}
2426
- value=${(0,l.ifDefined)(this.value)}
2427
- displayValue=${(0,l.ifDefined)(this.displayValue)}
2428
+ minDate=${(0,d.ifDefined)(this.minDate)}
2429
+ maxDate=${(0,d.ifDefined)(this.maxDate)}
2430
+ value=${(0,d.ifDefined)(this.value)}
2431
+ displayValue=${(0,d.ifDefined)(this.displayValue)}
2428
2432
  .disableUserTextInput=${!this.useISOFormat}
2429
2433
  .showDefaultNowDate=${this.showDefaultNowDate}
2430
2434
  weekStart=${this.weekStart}
2431
2435
  placeholder=${this.placeholderValue}
2432
- locale=${(0,l.ifDefined)(this.locale)}
2436
+ locale=${(0,d.ifDefined)(this.locale)}
2433
2437
  .controlButtons=${this.controlButtons}
2434
2438
  .shouldCloseOnSelect=${this.shouldCloseOnSelect}
2435
2439
  @date-selection-change=${this.handleDateChange}
@@ -2444,48 +2448,50 @@
2444
2448
  ?two-digit-auto-tab=${this.twoDigitAutoTab}
2445
2449
  ?twenty-four-hour-format=${this.twentyFourHourFormat}
2446
2450
  timeSpecificity=${this.timeSpecificity}
2447
- locale=${(0,l.ifDefined)(this.locale)}
2448
- value=${(0,l.ifDefined)(null!==(t=this.timeValue)&&void 0!==t?t:void 0)}>
2451
+ locale=${(0,d.ifDefined)(this.locale)}
2452
+ value=${(0,d.ifDefined)(null!==(t=this.timeValue)&&void 0!==t?t:void 0)}>
2449
2453
  </md-timepicker>
2450
2454
  </div>
2451
2455
  </md-datepicker>
2452
2456
  </div>
2453
- `}};p([(0,a.property)({type:String})],e.prototype,"maxDate",void 0),p([(0,a.property)({type:String})],e.prototype,"minDate",void 0),p([(0,a.property)({type:String})],e.prototype,"weekStart",void 0),p([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),p([(0,a.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),p([(0,a.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),p([(0,a.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),p([(0,a.property)({type:String})],e.prototype,"timeSpecificity",void 0),p([(0,a.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),p([(0,a.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),p([(0,a.property)({type:String,reflect:!0})],e.prototype,"value",void 0),p([(0,a.property)({type:Boolean,attribute:"disable-date-validation"})],e.prototype,"disableDateValidation",void 0),p([(0,a.property)({type:String})],e.prototype,"locale",void 0),p([(0,a.property)({type:String,attribute:"placeholder"})],e.prototype,"placeholder",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"useISOFormat",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,a.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),p([(0,a.property)({type:Boolean,attribute:"show-default-now-date"})],e.prototype,"showDefaultNowDate",void 0),p([(0,a.property)({type:Boolean,attribute:"compact-input"})],e.prototype,"compactInput",void 0),p([(0,a.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),p([(0,a.internalProperty)()],e.prototype,"fullDateTime",void 0),p([(0,a.internalProperty)()],e.prototype,"selectedTimeObject",void 0),p([(0,a.internalProperty)()],e.prototype,"selectedDateObject",void 0),p([(0,a.query)("md-datepicker")],e.prototype,"datePicker",void 0),p([(0,a.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=p([(0,s.w)("md-date-time-picker")],e),t.ELEMENT=e}(o||(o={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>o}),i(38028),i(63704),i(61200);var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(31465),h=i(5657),c=i(50182),p=i(97822),u=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.mediaType=d.r.TELEPHONY,this.status="",this.popovertitle="",this.queue="",this.queueTimeLabel="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.disabled=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.isRestyle=!1,this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.additionEmptyMargin=!1}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}getAriaLabel(){var t,e,i,o;if(this.customAriaLabel)return this.customAriaLabel;let s=this.queue;if(!s){const i=this.querySelector('[slot="queue"]');if(i){s=null!==(e=null===(t=i.textContent)||void 0===t?void 0:t.trim())&&void 0!==e?e:i.innerText.trim();const o=/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/.exec(s);if(o){const[,t=0,e,i]=o.map(Number);(new Date).setHours(t,e,i),s=s.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${e} minutes ${i} seconds`)}}}const r=this.querySelector('[slot="queue-time"]');let n=this.queueTimeLabel;return r&&(n+=`${null!==(o=null===(i=r.textContent)||void 0===i?void 0:i.trim())&&void 0!==o?o:r.innerText.trim()}`),`${this.mediaType} ${this.status} ${this.popovertitle} ${this.itemTitle} ${s} ${n} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,c.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}handleAdditionSlotChange(){var t;const e=(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-taskitem__addition")).getBoundingClientRect();this.additionEmptyMargin=0===e.width&&0===e.height}render(){return n.html`
2457
+ `}};u([(0,l.property)({type:String})],e.prototype,"maxDate",void 0),u([(0,l.property)({type:String})],e.prototype,"minDate",void 0),u([(0,l.property)({type:String})],e.prototype,"weekStart",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),u([(0,l.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),u([(0,l.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),u([(0,l.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),u([(0,l.property)({type:String})],e.prototype,"timeSpecificity",void 0),u([(0,l.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),u([(0,l.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),u([(0,l.property)({type:String,reflect:!0})],e.prototype,"value",void 0),u([(0,l.property)({type:Boolean,attribute:"disable-date-validation"})],e.prototype,"disableDateValidation",void 0),u([(0,l.property)({type:String})],e.prototype,"locale",void 0),u([(0,l.property)({type:String,attribute:"placeholder"})],e.prototype,"placeholder",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"useISOFormat",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,l.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),u([(0,l.property)({type:Boolean,attribute:"show-default-now-date"})],e.prototype,"showDefaultNowDate",void 0),u([(0,l.property)({type:Boolean,attribute:"compact-input"})],e.prototype,"compactInput",void 0),u([(0,l.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),u([(0,l.state)()],e.prototype,"fullDateTime",void 0),u([(0,l.state)()],e.prototype,"selectedTimeObject",void 0),u([(0,l.state)()],e.prototype,"selectedDateObject",void 0),u([(0,l.query)("md-datepicker")],e.prototype,"datePicker",void 0),u([(0,l.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=u([(0,o.w)("md-date-time-picker")],e),t.ELEMENT=e}(s||(s={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>s}),i(38028),i(63704),i(61200);var s,o=i(31890),r=i(4313),a=i(87161),n=i(54765),l=i(70429),d=i(85125),h=i(31465),c=i(5657),p=i(52339),u=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.mediaType=h.r.TELEPHONY,this.status="",this.popovertitle="",this.queue="",this.queueTimeLabel="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.disabled=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.isRestyle=!1,this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.additionEmptyMargin=!1}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}getAriaLabel(){var t,e,i,s;if(this.customAriaLabel)return this.customAriaLabel;let o=this.queue;if(!o){const i=this.querySelector('[slot="queue"]');if(i){o=null!==(e=null===(t=i.textContent)||void 0===t?void 0:t.trim())&&void 0!==e?e:i.innerText.trim();const s=/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/.exec(o);if(s){const[,t=0,e,i]=s.map(Number);(new Date).setHours(t,e,i),o=o.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${e} minutes ${i} seconds`)}}}const r=this.querySelector('[slot="queue-time"]');let a=this.queueTimeLabel;return r&&(a+=`${null!==(s=null===(i=r.textContent)||void 0===i?void 0:i.trim())&&void 0!==s?s:r.innerText.trim()}`),`${this.mediaType} ${this.status} ${this.popovertitle} ${this.itemTitle} ${o} ${a} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,p.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}handleAdditionSlotChange(){var t;const e=(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-taskitem__addition")).getBoundingClientRect();this.additionEmptyMargin=0===e.width&&0===e.height}render(){return a.html`
2454
2458
  <div
2455
2459
  part="task-item-container"
2456
- class="md-taskitem ${(0,l.classMap)({selected:this.selected})}"
2460
+ class="md-taskitem ${(0,d.classMap)({selected:this.selected})}"
2457
2461
  tabindex=${this.sanitizedTabIndexForContainer}
2458
2462
  aria-selected="${this.selected}"
2459
2463
  @click=${t=>this.handleClick(t)}
2460
2464
  @keydown=${t=>this.handleKeyDown(t)}
2461
2465
  aria-label=${this.getAriaLabel()}
2462
- aria-disabled=${(0,p.ifDefined)(this.disabled||void 0)}
2466
+ aria-disabled=${(0,n.J)(this.disabled||void 0)}
2463
2467
  >
2464
2468
  <div class="md-taskitem__mediatype">
2465
- ${(0,h.i0)(this.isRestyle,this.mediaType,this.selected,this.status,this.iconSrc)}
2466
- ${this.status&&!this.isRestyle?n.html` <span class=${`md-taskitem__status ${this.status}`}> ${(0,h.LG)(this.status)} </span> `:a.nothing}
2469
+ ${(0,c.i0)(this.isRestyle,this.mediaType,this.selected,this.status,this.iconSrc)}
2470
+ ${this.status&&!this.isRestyle?a.html` <span class=${`md-taskitem__status ${this.status}`}> ${(0,c.LG)(this.status)} </span> `:a.nothing}
2467
2471
  </div>
2468
2472
  <div class="md-taskitem__content" part="task-item-content">
2469
- ${this.popovertitle?n.html`
2473
+ ${this.popovertitle?a.html`
2470
2474
  <span class="md-taskitem__content_popover_title"
2471
2475
  ><md-tooltip placement="bottom" slot-to-tooltip>${this.popovertitle}</md-tooltip></span
2472
2476
  >
2473
2477
  `:a.nothing}
2474
- ${this.itemTitle?n.html`
2478
+ ${this.itemTitle?a.html`
2475
2479
  <span
2476
- class="md-taskitem__content_title ${(0,l.classMap)({mainTitle:!this.popovertitle,"display-only-title":this.displayOnlyTitle})}"
2480
+ class="md-taskitem__content_title ${(0,d.classMap)({mainTitle:!this.popovertitle,"display-only-title":this.displayOnlyTitle})}"
2477
2481
  ><md-tooltip placement="bottom" slot-to-tooltip>${this.itemTitle}</md-tooltip></span
2478
2482
  >
2479
- `:n.html` <span class="md-taskitem__content_popover_title popover-item-title"><slot name="title"></slot></span> `}
2483
+ `:a.html`
2484
+ <span class="md-taskitem__content_popover_title popover-item-title"><slot name="title"></slot></span>
2485
+ `}
2480
2486
  <div class="md-taskitem__content_inner">
2481
- ${this.displayOnlyTitle?a.nothing:n.html`
2487
+ ${this.displayOnlyTitle?a.nothing:a.html`
2482
2488
  <span class="md-taskitem__content_queue">
2483
2489
  <md-tooltip placement="bottom" slot-to-tooltip>
2484
- ${this.queue.length>0?this.queue:n.html` <slot name="queue"></slot> `}
2490
+ ${this.queue.length>0?this.queue:a.html` <slot name="queue"></slot> `}
2485
2491
  </md-tooltip>
2486
2492
  </span>
2487
2493
  `}
2488
- ${this.queueTimeLabel.length>0||this.querySelector('[slot="queue-time"]')?n.html`
2494
+ ${this.queueTimeLabel.length>0||this.querySelector('[slot="queue-time"]')?a.html`
2489
2495
  <span class="md-taskitem__content_queue_time">
2490
2496
  <div class="md-taskitem__content_queue_time_dot"></div>
2491
2497
  ${this.queueTimeLabel}
@@ -2493,21 +2499,21 @@
2493
2499
  </span>
2494
2500
  `:a.nothing}
2495
2501
  </div>
2496
- ${this.lastmessage?n.html`
2502
+ ${this.lastmessage?a.html`
2497
2503
  <span class="md-taskitem__content_chat">
2498
2504
  <span class="new-chat_massages">
2499
2505
  <md-tooltip placement="bottom" slot-to-tooltip> ${this.lastmessage} </md-tooltip></span
2500
2506
  >
2501
2507
  </span>
2502
2508
  `:a.nothing}
2503
- ${this.lastmessage?a.nothing:n.html` <slot name="lastmessage"></slot> `}
2509
+ ${this.lastmessage?a.nothing:a.html` <slot name="lastmessage"></slot> `}
2504
2510
  </div>
2505
- <div class="md-taskitem__addition ${(0,l.classMap)({empty_addition:this.additionEmptyMargin})}">
2511
+ <div class="md-taskitem__addition ${(0,d.classMap)({empty_addition:this.additionEmptyMargin})}">
2506
2512
  <slot @slotchange="${this.handleAdditionSlotChange}"></slot>
2507
- ${(0,h.Um)(this.quantity,this.isRestyle,this)}
2513
+ ${(0,c.Um)(this.quantity,this.isRestyle,this)}
2508
2514
  </div>
2509
2515
  </div>
2510
- `}};u([(0,n.property)({type:String})],e.prototype,"mediaType",void 0),u([(0,n.property)({type:String})],e.prototype,"status",void 0),u([(0,n.property)({type:String})],e.prototype,"popovertitle",void 0),u([(0,n.property)({type:String})],e.prototype,"queue",void 0),u([(0,n.property)({type:String,attribute:"queue-time-label"})],e.prototype,"queueTimeLabel",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"accepted",void 0),u([(0,n.property)({type:Boolean,attribute:"display-only-title"})],e.prototype,"displayOnlyTitle",void 0),u([(0,n.property)({type:Number})],e.prototype,"quantity",void 0),u([(0,n.property)({type:String})],e.prototype,"lastmessage",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"selected",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,n.property)({type:String})],e.prototype,"customAriaLabel",void 0),u([(0,n.property)({type:String})],e.prototype,"iconSrc",void 0),u([(0,n.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),u([(0,n.property)({type:Boolean,attribute:"is-restyle"})],e.prototype,"isRestyle",void 0),u([(0,n.property)({type:String,reflect:!0})],e.prototype,"title",null),u([(0,n.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),u([(0,n.internalProperty)()],e.prototype,"additionEmptyMargin",void 0),e=u([(0,s.w)("md-task-item")],e),t.ELEMENT=e}(o||(o={}))},86635:t=>{t.exports=l},90195:(t,e,i)=>{var o,s,r,n;i.d(e,{R5:()=>s,Uz:()=>o,iw:()=>n}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(o||(o={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(s||(s={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(n||(n={}))},90827:(t,e,i)=>{i.d(e,{CardV2:()=>u}),i(96798),i(61200),i(83192);var o=i(31890),s=i(26272),r=i(41488),n=i(40333),a=i(23968),l=i(65796),d=i(52759),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const c="hh:mm:ss";var p,u;!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(p||(p={})),function(t){let e=class extends r.LitElement{constructor(){super(...arguments),this.state=p.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.createdTime=0,this.active=!1,this.expandable=!1,this.expandAriaLabel="Expand for more details",this.renderedData=""}connectedCallback(){super.connectedCallback(),this.checkForExtraInfoSlot()}disconnectedCallback(){super.disconnectedCallback(),this.clearInterval()}clearInterval(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}static get styles(){return[s.A,d.A]}get isCardActive(){return this.state===p.ACTIVE}update(t){super.update(t),(t.has("active")||t.has("data")||t.has("createdTime"))&&this.calculateRenderedData()}expandCardToggled(){var t;this.state=this.isCardActive?p.DEFAULT:p.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isCardActive},bubbles:!0,composed:!0}))}checkForExtraInfoSlot(){var t;(null===(t=this.extraInfoSlot)||void 0===t?void 0:t.assignedNodes().length)>0?this.setAttribute("has-extra-info",""):this.removeAttribute("has-extra-info")}handleExtraInfoSlotChange(t){this.checkForExtraInfoSlot()}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===p.INACTIVE}}get footerExpandClassMap(){return{"md-card-v2-footer-expand":!0,hidden:!this.expandable}}get expandCardHandler(){return this.expandable?this.expandCardToggled:null}renderHeader(){return r.html`
2516
+ `}};u([(0,l.property)({type:String})],e.prototype,"mediaType",void 0),u([(0,l.property)({type:String})],e.prototype,"status",void 0),u([(0,l.property)({type:String})],e.prototype,"popovertitle",void 0),u([(0,l.property)({type:String})],e.prototype,"queue",void 0),u([(0,l.property)({type:String,attribute:"queue-time-label"})],e.prototype,"queueTimeLabel",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"accepted",void 0),u([(0,l.property)({type:Boolean,attribute:"display-only-title"})],e.prototype,"displayOnlyTitle",void 0),u([(0,l.property)({type:Number})],e.prototype,"quantity",void 0),u([(0,l.property)({type:String})],e.prototype,"lastmessage",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"selected",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,l.property)({type:String})],e.prototype,"customAriaLabel",void 0),u([(0,l.property)({type:String})],e.prototype,"iconSrc",void 0),u([(0,l.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),u([(0,l.property)({type:Boolean,attribute:"is-restyle"})],e.prototype,"isRestyle",void 0),u([(0,l.property)({type:String,reflect:!0})],e.prototype,"title",null),u([(0,l.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),u([(0,l.state)()],e.prototype,"additionEmptyMargin",void 0),e=u([(0,o.w)("md-task-item")],e),t.ELEMENT=e}(s||(s={}))},87161:e=>{e.exports=t},89756:t=>{t.exports=d},90195:(t,e,i)=>{var s,o,r,a;i.d(e,{R5:()=>o,Uz:()=>s,iw:()=>a}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(s||(s={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(o||(o={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(a||(a={}))},90827:(t,e,i)=>{i.d(e,{CardV2:()=>m}),i(96798),i(61200),i(83192);var s=i(31890),o=i(4313),r=i(87161),a=i(36752),n=i(6683),l=i(70429),d=i(65796),h=i(80622),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const p="hh:mm:ss";var u,m;!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(u||(u={})),function(t){let e=class extends r.LitElement{constructor(){super(...arguments),this.state=u.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.createdTime=0,this.active=!1,this.expandable=!1,this.expandAriaLabel="Expand for more details",this.renderedData=""}connectedCallback(){super.connectedCallback(),this.checkForExtraInfoSlot()}disconnectedCallback(){super.disconnectedCallback(),this.clearInterval()}clearInterval(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}static get styles(){return[o.A,h.A]}get isCardActive(){return this.state===u.ACTIVE}update(t){super.update(t),(t.has("active")||t.has("data")||t.has("createdTime"))&&this.calculateRenderedData()}expandCardToggled(){var t;this.state=this.isCardActive?u.DEFAULT:u.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isCardActive},bubbles:!0,composed:!0}))}checkForExtraInfoSlot(){var t;(null===(t=this.extraInfoSlot)||void 0===t?void 0:t.assignedNodes().length)>0?this.setAttribute("has-extra-info",""):this.removeAttribute("has-extra-info")}handleExtraInfoSlotChange(t){this.checkForExtraInfoSlot()}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===u.INACTIVE}}get footerExpandClassMap(){return{"md-card-v2-footer-expand":!0,hidden:!this.expandable}}get expandCardHandler(){return this.expandable?this.expandCardToggled:null}renderHeader(){return r.html`
2511
2517
  <div class="md-card-v2-header-title">
2512
2518
  <h3>${this.header}</h3>
2513
2519
  ${this.info?r.html`
@@ -2516,10 +2522,10 @@
2516
2522
  <md-icon slot="icon" name="info-badge-filled" iconSet="momentumDesign"></md-icon>
2517
2523
  </md-button>
2518
2524
  </md-tooltip>
2519
- `:n.nothing}
2525
+ `:a.s6}
2520
2526
  </div>
2521
2527
  `}renderExpandButton(){return r.html`
2522
- <div class="${(0,a.classMap)(this.footerExpandClassMap)}">
2528
+ <div class="${(0,n.H)(this.footerExpandClassMap)}">
2523
2529
  <md-button ariaLabel="${this.expandAriaLabel}" circle size="28">
2524
2530
  <md-icon
2525
2531
  slot="icon"
@@ -2536,10 +2542,10 @@
2536
2542
  </div>
2537
2543
  ${this.renderExpandButton()}
2538
2544
  </div>
2539
- `}calculateRenderedData(){this.clearInterval(),!this.active&&this.data?this.renderedData=this.data:this.active&&this.createdTime>0&&(this.renderedData=l.Duration.fromMillis(Date.now()-this.createdTime).toFormat(c),this.interval=window.setInterval(()=>{this.renderedData=l.Duration.fromMillis(Date.now()-this.createdTime).toFormat(c)},1e3))}render(){return r.html`
2540
- <div class="${(0,a.classMap)(this.cardClassMap)}" @click=${this.expandCardHandler}>
2545
+ `}calculateRenderedData(){this.clearInterval(),!this.active&&this.data?this.renderedData=this.data:this.active&&this.createdTime>0&&(this.renderedData=d.Duration.fromMillis(Date.now()-this.createdTime).toFormat(p),this.interval=window.setInterval(()=>{this.renderedData=d.Duration.fromMillis(Date.now()-this.createdTime).toFormat(p)},1e3))}render(){return r.html`
2546
+ <div class="${(0,n.H)(this.cardClassMap)}" @click=${this.expandCardHandler}>
2541
2547
  <div class="md-card-v2-header">${this.renderHeader()}</div>
2542
- <div class="${(0,a.classMap)(this.contentClassMap)}">
2548
+ <div class="${(0,n.H)(this.contentClassMap)}">
2543
2549
  <h2>${this.renderedData}</h2>
2544
2550
  <div class="md-card-v2-content-extra-info">
2545
2551
  <slot name="card-extra-info" @slotchange=${this.handleExtraInfoSlotChange}></slot>
@@ -2547,17 +2553,17 @@
2547
2553
  </div>
2548
2554
  ${this.renderFooter()}
2549
2555
  </div>
2550
- `}};h([(0,r.property)({type:String})],e.prototype,"state",void 0),h([(0,r.property)({type:String})],e.prototype,"identifier",void 0),h([(0,r.property)({type:String})],e.prototype,"header",void 0),h([(0,r.property)({type:String})],e.prototype,"info",void 0),h([(0,r.property)({type:String})],e.prototype,"data",void 0),h([(0,r.property)({type:Number})],e.prototype,"createdTime",void 0),h([(0,r.property)({type:Boolean})],e.prototype,"active",void 0),h([(0,r.property)({type:Boolean,reflect:!0})],e.prototype,"expandable",void 0),h([(0,r.property)({type:String,attribute:"expand-aria-label"})],e.prototype,"expandAriaLabel",void 0),h([(0,r.query)('slot[name="card-extra-info"]')],e.prototype,"extraInfoSlot",void 0),h([(0,r.internalProperty)()],e.prototype,"interval",void 0),h([(0,r.internalProperty)()],e.prototype,"renderedData",void 0),e=h([(0,o.w)("md-card-v2")],e),t.ELEMENT=e}(u||(u={}))},92992:(t,e,i)=>{i.d(e,{Breadcrumb:()=>o});var o,s=i(31890),r=i(26272),n=i(41488),a=i(97822),l=i(22818),d=i(46441),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.label="Breadcrumb",this.navCrumbs=[]}static get styles(){return[r.A,d.A]}setLastAnchorCurrent(){var t;(null===(t=this.anchors)||void 0===t?void 0:t.length)&&this.anchors[this.anchors.length-1].setAttribute("aria-current","page")}firstUpdated(t){super.firstUpdated(t),this.setLastAnchorCurrent()}update(t){super.update(t),t.has("navCrumbs")&&this.setLastAnchorCurrent()}handleClick(t){var e;const i=t.target;if(null===(e=this.anchors)||void 0===e?void 0:e.length){const t=Array.from(this.anchors).indexOf(i);-1!==t&&(this.navCrumbs=[...this.navCrumbs.splice(0,t+1)])}}render(){return n.html`
2551
- <nav aria-label="${(0,a.ifDefined)(this.label?this.label:void 0)}" class="md-breadcrumb">
2556
+ `}};c([(0,l.property)({type:String})],e.prototype,"state",void 0),c([(0,l.property)({type:String})],e.prototype,"identifier",void 0),c([(0,l.property)({type:String})],e.prototype,"header",void 0),c([(0,l.property)({type:String})],e.prototype,"info",void 0),c([(0,l.property)({type:String})],e.prototype,"data",void 0),c([(0,l.property)({type:Number})],e.prototype,"createdTime",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"active",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"expandable",void 0),c([(0,l.property)({type:String,attribute:"expand-aria-label"})],e.prototype,"expandAriaLabel",void 0),c([(0,l.query)('slot[name="card-extra-info"]')],e.prototype,"extraInfoSlot",void 0),c([(0,l.state)()],e.prototype,"interval",void 0),c([(0,l.state)()],e.prototype,"renderedData",void 0),e=c([(0,s.w)("md-card-v2")],e),t.ELEMENT=e}(m||(m={}))},92992:(t,e,i)=>{i.d(e,{Breadcrumb:()=>s});var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(20291),d=i(58175),h=i(85524),c=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.label="Breadcrumb",this.navCrumbs=[]}static get styles(){return[r.A,h.A]}setLastAnchorCurrent(){var t;(null===(t=this.anchors)||void 0===t?void 0:t.length)&&this.anchors[this.anchors.length-1].setAttribute("aria-current","page")}firstUpdated(t){super.firstUpdated(t),this.setLastAnchorCurrent()}update(t){super.update(t),t.has("navCrumbs")&&this.setLastAnchorCurrent()}handleClick(t){var e;const i=t.target;if(null===(e=this.anchors)||void 0===e?void 0:e.length){const t=Array.from(this.anchors).indexOf(i);-1!==t&&(this.navCrumbs=[...this.navCrumbs.splice(0,t+1)])}}render(){return a.html`
2557
+ <nav aria-label="${(0,l.ifDefined)(this.label?this.label:void 0)}" class="md-breadcrumb">
2552
2558
  <ul @click=${t=>this.handleClick(t)}>
2553
- ${(0,l.repeat)(this.navCrumbs,t=>t.link,t=>n.html`
2559
+ ${(0,d.repeat)(this.navCrumbs,t=>t.link,t=>a.html`
2554
2560
  <li>
2555
2561
  <a href="${t.link}"> ${t.label} </a>
2556
2562
  </li>
2557
2563
  `)}
2558
2564
  </ul>
2559
2565
  </nav>
2560
- `}};h([(0,n.property)({type:String,attribute:"aria-label"})],e.prototype,"label",void 0),h([(0,n.property)({type:Array,attribute:"nav-crumbs",reflect:!0})],e.prototype,"navCrumbs",void 0),h([(0,n.queryAll)("a[href]")],e.prototype,"anchors",void 0),e=h([(0,s.w)("md-breadcrumb")],e),t.ELEMENT=e}(o||(o={}))},94891:(t,e,i)=>{i.d(e,{ActivityButton:()=>d});var o=i(26272),s=i(31890),r=i(41488),n=(i(96798),i(61200),i(73940)),a=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const l=["chat","camera","contact-card","meetings","whiteboard","files","share-screen","tasks"];var d;!function(t){let e=class extends r.LitElement{constructor(){super(...arguments),this.ariaLabel="",this.disabled=!1,this.label="",this.size="68",this._type="chat"}get type(){return this._type}set type(t){const e=this.type;l.includes(t)?this._type=t:this._type="chat",this.requestUpdate("type",e)}get buttonToIconSizeMapping(){return{56:"24",68:"28",84:"36"}}get formatClass(){return{"md-activity":!0,[`md-activity__${this.type}`]:this.type}}static get styles(){return[o.A,n.A]}render(){return r.html`
2566
+ `}};c([(0,n.property)({type:String,attribute:"aria-label"})],e.prototype,"label",void 0),c([(0,n.property)({type:Array,attribute:"nav-crumbs",reflect:!0})],e.prototype,"navCrumbs",void 0),c([(0,n.queryAll)("a[href]")],e.prototype,"anchors",void 0),e=c([(0,o.w)("md-breadcrumb")],e),t.ELEMENT=e}(s||(s={}))},94891:(t,e,i)=>{i.d(e,{ActivityButton:()=>h}),i(96798),i(61200);var s=i(31890),o=i(4313),r=i(87161),a=i(70429),n=i(3643),l=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const d=["chat","camera","contact-card","meetings","whiteboard","files","share-screen","tasks"];var h;!function(t){let e=class extends r.LitElement{constructor(){super(...arguments),this.ariaLabel="",this.disabled=!1,this.label="",this.size="68",this._type="chat"}get type(){return this._type}set type(t){const e=this.type;d.includes(t)?this._type=t:this._type="chat",this.requestUpdate("type",e)}get buttonToIconSizeMapping(){return{56:"24",68:"28",84:"36"}}get formatClass(){return{"md-activity":!0,[`md-activity__${this.type}`]:this.type}}static get styles(){return[o.A,n.A]}render(){return r.html`
2561
2567
  <md-button
2562
2568
  aria-label=${this.ariaLabel}
2563
2569
  circle
@@ -2569,15 +2575,15 @@
2569
2575
  >
2570
2576
  <md-icon name=${`icon-${this.type}_${this.buttonToIconSizeMapping[this.size]}`}></md-icon>
2571
2577
  </md-button>
2572
- `}};a([(0,r.property)({type:String})],e.prototype,"ariaLabel",void 0),a([(0,r.property)({type:Boolean})],e.prototype,"disabled",void 0),a([(0,r.property)({type:String})],e.prototype,"label",void 0),a([(0,r.property)({type:String})],e.prototype,"size",void 0),a([(0,r.property)({type:String})],e.prototype,"type",null),e=a([(0,s.w)("md-activity-button")],e),t.ELEMENT=e}(d||(d={}))},95281:(t,e,i)=>{i.d(e,{ChatMessage:()=>o}),i(38028);var o,s=i(31890),r=i(26272),n=i(41488),a=i(97822),l=i(6400),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.title="",this.src="",this.time="",this.label="Avatar",this.status="",this.clickableTimestamp=!1,this.self=!1}get computedAvatarType(){return void 0!==this.avatarType?this.avatarType:this.self?"self":void 0}get computedYouLabel(){return this.selfLabel||"You"}get isSelfType(){return void 0===this.avatarType?this.self:"self"===this.avatarType}timeStampClicked(){this.dispatchEvent(new CustomEvent("timestamp-clicked",{bubbles:!0,composed:!0}))}static get styles(){return[r.A,l.A]}render(){return n.html`
2578
+ `}};l([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),l([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),l([(0,a.property)({type:String})],e.prototype,"label",void 0),l([(0,a.property)({type:String})],e.prototype,"size",void 0),l([(0,a.property)({type:String})],e.prototype,"type",null),e=l([(0,s.w)("md-activity-button")],e),t.ELEMENT=e}(h||(h={}))},95281:(t,e,i)=>{i.d(e,{ChatMessage:()=>s}),i(38028);var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(20291),d=i(67833),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.title="",this.src="",this.time="",this.label="Avatar",this.status="",this.clickableTimestamp=!1,this.self=!1}get computedAvatarType(){return void 0!==this.avatarType?this.avatarType:this.self?"self":void 0}get computedYouLabel(){return this.selfLabel||"You"}get isSelfType(){return void 0===this.avatarType?this.self:"self"===this.avatarType}timeStampClicked(){this.dispatchEvent(new CustomEvent("timestamp-clicked",{bubbles:!0,composed:!0}))}static get styles(){return[r.A,d.A]}render(){return a.html`
2573
2579
  <div class="md-chat-message">
2574
2580
  <md-avatar
2575
- type=${(0,a.ifDefined)(this.computedAvatarType)}
2581
+ type=${(0,l.ifDefined)(this.computedAvatarType)}
2576
2582
  title=${this.self?"self":this.title}
2577
2583
  label="${this.label}"
2578
- src=${(0,a.ifDefined)(this.self?void 0:this.src)}
2579
- color=${(0,a.ifDefined)(this.avatarColor)}
2580
- size=${(0,a.ifDefined)(this.avatarSize)}
2584
+ src=${(0,l.ifDefined)(this.self?void 0:this.src)}
2585
+ color=${(0,l.ifDefined)(this.avatarColor)}
2586
+ size=${(0,l.ifDefined)(this.avatarSize)}
2581
2587
  ></md-avatar>
2582
2588
 
2583
2589
  <div class="md-chat-message_content">
@@ -2585,8 +2591,8 @@
2585
2591
  <div class="md-chat-message_title">
2586
2592
  <span>${this.isSelfType?this.computedYouLabel:this.title}</span>
2587
2593
  </div>
2588
- ${this.clickableTimestamp?n.html`<md-link class="md-chat-message_time"
2589
- @click=${t=>{t.preventDefault(),this.timeStampClicked()}}>${this.time}</md-link>`:n.html`<div class="md-chat-message_time">${this.time}</div>`}
2594
+ ${this.clickableTimestamp?a.html`<md-link class="md-chat-message_time"
2595
+ @click=${t=>{t.preventDefault(),this.timeStampClicked()}}>${this.time}</md-link>`:a.html`<div class="md-chat-message_time">${this.time}</div>`}
2590
2596
  <div class="md-chat-message_status">${this.status}</div>
2591
2597
  <div class="md-chat-message_custom_content">
2592
2598
  <slot name="custom-content"></slot>
@@ -2597,7 +2603,7 @@
2597
2603
  </div>
2598
2604
  </div>
2599
2605
  </div>
2600
- `}};d([(0,n.property)({type:String})],e.prototype,"title",void 0),d([(0,n.property)({type:String})],e.prototype,"src",void 0),d([(0,n.property)({type:String})],e.prototype,"time",void 0),d([(0,n.property)({type:String})],e.prototype,"label",void 0),d([(0,n.property)({type:String})],e.prototype,"status",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"clickableTimestamp",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"self-label"})],e.prototype,"selfLabel",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"self",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"avatar-color"})],e.prototype,"avatarColor",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"avatar-type"})],e.prototype,"avatarType",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"avatar-size"})],e.prototype,"avatarSize",void 0),e=d([(0,s.w)("md-chat-message")],e),t.ELEMENT=e}(o||(o={}))},96408:(t,e,i)=>{i.d(e,{Input:()=>o}),i(20109),i(61200),i(6396),i(12176);var o,s=i(90195),r=i(31890),n=i(32972),a=i(26272),l=(i(32022),i(41488)),d=i(40333),h=i(23968),c=i(97822),p=i(22818),u=i(8229),m=i(21572),y=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,n.y)(l.LitElement)){constructor(){super(...arguments),this.ariaDescribedBy="",this.ariaInvalid="false",this.ariaLabel="input",this.autofocus=!1,this.auxiliaryContentPosition=null,this.clear=!1,this.clearAriaLabel="",this.compact=!1,this.containerSize="small-12",this.disabled=!1,this.id="",this.inputSize="",this.isFilled=!1,this.isLoading=!1,this.label="",this.helpText="",this.hideMessage=!1,this.htmlId="",this.role="",this.messageArr=[],this.min=void 0,this.max=void 0,this.maxLength=void 0,this.multi=!1,this.multiline=!1,this.name="",this.nestedLevel=0,this.placeholder="",this.readOnly=!1,this.required=!1,this.searchable=!1,this.secondaryLabel="",this.selectWhenInFocus=!1,this.shape="",this.type="text",this.value="",this.ariaControls="",this.ariaExpanded="",this.newMomentum=!1,this.disableUserTextInput=!1,this.isEditing=!1,this.hasRightSlotContent=!1,this.messageController=new e}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}select(){this.input.select()}handleOutsideClick(t){let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||(this.input.blur(),this.isEditing=!1))}handleKeyDown(t){this.dispatchEvent(new CustomEvent("input-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleFocus(t){this.disabled||(this.isEditing=!0,this.selectWhenInFocus&&this.select(),this.dispatchEvent(new CustomEvent("input-focus",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleMouseDown(t){this.disabled||(this.isEditing=!0,this.dispatchEvent(new CustomEvent("input-mousedown",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleChange(t){var e;this.value=t.target.value,null===(e=this.control)||void 0===e||e.setValue(this.value),this.dispatchEvent(new CustomEvent("input-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:this.value}}))}handleBlur(t){var e;null===(e=this.control)||void 0===e||e.markAsTouched(),this.isEditing=!1,this.dispatchEvent(new CustomEvent("input-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleClear(t){if("keydown"===t.type){const{code:e}=t;if(e!==s.Uz.Space&&e!==s.Uz.Enter)return;t.preventDefault(),t.stopPropagation()}else"click"===t.type&&(t.preventDefault(),t.stopPropagation());this.input.focus(),this.dispatchEvent(new CustomEvent("input-clear",{bubbles:!0,composed:!0,detail:{srcEvent:t}})),document.dispatchEvent(new CustomEvent("on-widget-update")),this.handleChange(t)}handleLabelClick(){this.input.focus()}handleRighSlotChange(){var t;this.hasRightSlotContent=(null===(t=this.inputSectionRightSlot)||void 0===t?void 0:t.assignedNodes().length)>0}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}get inputClassMap(){return{"md-input--filled":this.isFilled,colums:!!this.containerSize,[`${this.containerSize}`]:!!this.containerSize,"md-read-only":this.readOnly,"md-disabled":this.disabled,[`md-${this.messageType}`]:!!this.messageType,[`md-input--nested-${this.nestedLevel}`]:!!this.nestedLevel,"md-multi":this.multi,"md-new-momentum":this.newMomentum}}get inputWrapperClassMap(){return{columns:!!this.inputSize,[`${this.inputSize}`]:!!this.inputSize}}get inputTemplateClassMap(){return{"md-input--multiline":this.multiline,"md-input--multi":this.multi,[`md-input--${this.shape}`]:!!this.shape,"md-input--compact":this.compact,"md-input--before":"before"===this.auxiliaryContentPosition||this.searchable,"md-input--after":"after"===this.auxiliaryContentPosition,"md-active":this.isEditing,"md-focus":this.isEditing,"md-read-only":this.readOnly,"md-disable-user-text-input":this.disableUserTextInput,"md-disabled":this.disabled,"md-dirty":!!this.value,"md-has-right-icon":this.hasRightIcon}}get ariaExpandedValue(){return"true"===this.ariaExpanded||"false"===this.ariaExpanded?this.ariaExpanded:"undefined"}get hasRightIcon(){return!(!this.clear||this.disabled||!this.value||this.readOnly)||!this.compact&&this.hasRightSlotContent}inputTemplate(){var t;return this.multiline?l.html`
2606
+ `}};h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"src",void 0),h([(0,n.property)({type:String})],e.prototype,"time",void 0),h([(0,n.property)({type:String})],e.prototype,"label",void 0),h([(0,n.property)({type:String})],e.prototype,"status",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"clickableTimestamp",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"self-label"})],e.prototype,"selfLabel",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"self",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"avatar-color"})],e.prototype,"avatarColor",void 0),h([(0,n.property)({type:String,reflect:!0,attribute:"avatar-type"})],e.prototype,"avatarType",void 0),h([(0,n.property)({type:Number,reflect:!0,attribute:"avatar-size"})],e.prototype,"avatarSize",void 0),e=h([(0,o.w)("md-chat-message")],e),t.ELEMENT=e}(s||(s={}))},96408:(t,e,i)=>{i.d(e,{Input:()=>s}),i(20109),i(61200),i(6396),i(12176);var s,o=i(90195),r=i(31890),a=i(32972),n=i(4313),l=(i(32022),i(87161)),d=i(70429),h=i(85125),c=i(20291),p=i(58175),u=i(10318),m=i(13739),y=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){class e{determineMessageType(t){return t.reduce((t,e)=>"error"===e?t:e.type,"")}filterMessagesByType(t,e){return t.reduce((t,i)=>i.type===e?t.concat(i.message):t,[])}}t.MessageController=e;let i=class extends((0,a.y)(l.LitElement)){constructor(){super(...arguments),this.ariaDescribedBy="",this.ariaInvalid="false",this.ariaLabel="input",this.autofocus=!1,this.auxiliaryContentPosition=null,this.clear=!1,this.clearAriaLabel="",this.compact=!1,this.containerSize="small-12",this.disabled=!1,this.id="",this.inputSize="",this.isFilled=!1,this.isLoading=!1,this.label="",this.helpText="",this.hideMessage=!1,this.htmlId="",this.role="",this.messageArr=[],this.min=void 0,this.max=void 0,this.maxLength=void 0,this.multi=!1,this.multiline=!1,this.name="",this.nestedLevel=0,this.placeholder="",this.readOnly=!1,this.required=!1,this.searchable=!1,this.secondaryLabel="",this.selectWhenInFocus=!1,this.shape="",this.type="text",this.value="",this.ariaControls="",this.ariaExpanded="",this.newMomentum=!1,this.disableUserTextInput=!1,this.showDropdown=!1,this.dropdownExpanded=!1,this.dropdownAriaLabel="Show options",this.isEditing=!1,this.hasRightSlotContent=!1,this.messageController=new e}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}select(){this.input.select()}focus(){this.input.focus()}handleOutsideClick(t){let e=!1;const i=t.composedPath();i.length&&(e=!!i.find(t=>t===this),e||(this.input.blur(),this.isEditing=!1))}handleKeyDown(t){this.dispatchEvent(new CustomEvent("input-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleFocus(t){this.disabled||(this.isEditing=!0,this.selectWhenInFocus&&this.select(),this.dispatchEvent(new CustomEvent("input-focus",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleMouseDown(t){this.disabled||(this.isEditing=!0,this.dispatchEvent(new CustomEvent("input-mousedown",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleChange(t){var e;this.value=t.target.value,null===(e=this.control)||void 0===e||e.setValue(this.value),this.dispatchEvent(new CustomEvent("input-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:this.value}}))}handleBlur(t){var e;null===(e=this.control)||void 0===e||e.markAsTouched(),this.isEditing=!1,this.dispatchEvent(new CustomEvent("input-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleClear(t){if("keydown"===t.type){const{code:e}=t;if(e!==o.Uz.Space&&e!==o.Uz.Enter)return;t.preventDefault(),t.stopPropagation()}else"click"===t.type&&(t.preventDefault(),t.stopPropagation());this.input.focus(),this.dispatchEvent(new CustomEvent("input-clear",{bubbles:!0,composed:!0,detail:{srcEvent:t}})),document.dispatchEvent(new CustomEvent("on-widget-update")),this.handleChange(t)}handleLabelClick(){this.input.focus()}handleRighSlotChange(){var t;this.hasRightSlotContent=(null===(t=this.inputSectionRightSlot)||void 0===t?void 0:t.assignedNodes().length)>0}handleDropdownClick(t){t.preventDefault(),this.dropdownExpanded=!this.dropdownExpanded,this.dispatchEvent(new CustomEvent("input-dropdown-click",{bubbles:!0,composed:!0,detail:{srcEvent:t,expanded:this.dropdownExpanded}}))}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}get inputClassMap(){return{"md-input--filled":this.isFilled,colums:!!this.containerSize,[`${this.containerSize}`]:!!this.containerSize,"md-read-only":this.readOnly,"md-disabled":this.disabled,[`md-${this.messageType}`]:!!this.messageType,[`md-input--nested-${this.nestedLevel}`]:!!this.nestedLevel,"md-multi":this.multi,"md-new-momentum":this.newMomentum}}get inputWrapperClassMap(){return{columns:!!this.inputSize,[`${this.inputSize}`]:!!this.inputSize}}get inputTemplateClassMap(){return{"md-input--multiline":this.multiline,"md-input--multi":this.multi,[`md-input--${this.shape}`]:!!this.shape,"md-input--compact":this.compact,"md-input--before":"before"===this.auxiliaryContentPosition||this.searchable,"md-input--after":"after"===this.auxiliaryContentPosition,"md-active":this.isEditing,"md-focus":this.isEditing,"md-read-only":this.readOnly,"md-disable-user-text-input":this.disableUserTextInput,"md-disabled":this.disabled,"md-dirty":!!this.value,"md-has-right-icon":this.hasRightIcon}}get ariaExpandedValue(){return"true"===this.ariaExpanded||"false"===this.ariaExpanded?this.ariaExpanded:void 0}get hasRightIcon(){return!(!this.clear||this.disabled||!this.value||this.readOnly)||!!this.showDropdown||!this.compact&&this.hasRightSlotContent}inputTemplate(){var t;return this.multiline?l.html`
2601
2607
  <textarea
2602
2608
  part="input"
2603
2609
  class="md-input ${(0,h.classMap)(this.inputTemplateClassMap)}"
@@ -2648,6 +2654,7 @@
2648
2654
  min=${(0,c.ifDefined)(this.min)}
2649
2655
  max=${(0,c.ifDefined)(this.max)}
2650
2656
  maxlength=${(0,c.ifDefined)(this.maxLength)}
2657
+ aria-haspopup=${(0,c.ifDefined)(this.showDropdown?"true":void 0)}
2651
2658
  />
2652
2659
  `}inputLeftTemplate(){return this.searchable?l.html`
2653
2660
  <div class="md-input__before">
@@ -2657,7 +2664,7 @@
2657
2664
  <div class="md-input__before">
2658
2665
  <slot name="input-section"> </slot>
2659
2666
  </div>
2660
- `:d.nothing}get inputRightTemplateClassMap(){return{"md-input__after":!0,hidden:!this.hasRightIcon}}inputRightTemplate(){return this.clear&&!this.disabled&&this.value&&!this.readOnly?l.html`
2667
+ `:l.nothing}get inputRightTemplateClassMap(){return{"md-input__after":!0,hidden:!this.hasRightIcon}}inputRightTemplate(){return this.clear&&!this.disabled&&this.value&&!this.readOnly?l.html`
2661
2668
  <div class="md-input__after">
2662
2669
  <md-button
2663
2670
  hasRemoveStyle
@@ -2675,12 +2682,32 @@
2675
2682
  >
2676
2683
  </md-icon>
2677
2684
  </md-button>
2685
+ ${this.comboBoxButtonTemplate}
2678
2686
  </div>
2679
- `:this.compact?void 0:l.html`
2687
+ `:this.compact?this.showDropdown?l.html` <div class=${(0,h.classMap)(this.inputRightTemplateClassMap)}>${this.comboBoxButtonTemplate}</div> `:void 0:l.html`
2680
2688
  <div class=${(0,h.classMap)(this.inputRightTemplateClassMap)}>
2681
2689
  <slot name="input-section-right" @slotchange=${this.handleRighSlotChange}></slot>
2690
+ ${this.comboBoxButtonTemplate}
2682
2691
  </div>
2683
- `}secondaryLabelTemplate(){return this.secondaryLabel?l.html`
2692
+ `}get comboBoxButtonTemplate(){return this.showDropdown?l.html`
2693
+ <button
2694
+ class="md-input__dropdown-button"
2695
+ tabindex="-1"
2696
+ .ariaLabel=${this.dropdownAriaLabel}
2697
+ @click=${t=>this.handleDropdownClick(t)}
2698
+ @mousedown=${t=>t.preventDefault()}
2699
+ ?disabled=${this.disabled}
2700
+ >
2701
+ <md-icon
2702
+ class="md-input__dropdown-icon ${this.dropdownExpanded?"expanded":""}"
2703
+ name="arrow-down-bold"
2704
+ size="16"
2705
+ iconSet="momentumDesign"
2706
+ .ariaHidden=${"true"}
2707
+ >
2708
+ </md-icon>
2709
+ </button>
2710
+ `:l.nothing}secondaryLabelTemplate(){return this.secondaryLabel?l.html`
2684
2711
  <md-label
2685
2712
  class="md-input__secondary-label ${(0,h.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
2686
2713
  secondaryLabel
@@ -2688,31 +2715,31 @@
2688
2715
  .label=${this.secondaryLabel}
2689
2716
  @label-click="${()=>this.handleLabelClick()}"
2690
2717
  ></md-label>
2691
- `:d.nothing}helpTextTemplate(){return this.helpText?l.html`
2718
+ `:l.nothing}helpTextTemplate(){return this.helpText?l.html`
2692
2719
  <md-help-text
2693
2720
  class="help-text ${(0,h.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
2694
2721
  .message=${this.helpText}
2695
2722
  style=${(0,u.styleMap)({width:"100%"})}
2696
2723
  ></md-help-text>
2697
- `:d.nothing}messagesTemplate(){return!this.hideMessage&&this.messages&&this.messages.length?l.html`
2724
+ `:l.nothing}messagesTemplate(){return!this.hideMessage&&this.messages&&this.messages.length?l.html`
2698
2725
  <div id="${this.htmlId}-message" part="message" class="md-input__messages">
2699
- ${(0,p.repeat)(this.messages,(t,e)=>{var i,o;return l.html`
2726
+ ${(0,p.repeat)(this.messages,(t,e)=>{var i,s;return l.html`
2700
2727
  <md-help-text
2701
2728
  .message=${t}
2702
2729
  .id=${null!==(i=this.messageArr[e].id)&&void 0!==i?i:""}
2703
- .ariaLive=${null!==(o=this.messageArr[e].ariaLive)&&void 0!==o?o:"polite"}
2730
+ .ariaLive=${null!==(s=this.messageArr[e].ariaLive)&&void 0!==s?s:"polite"}
2704
2731
  .messageType=${this.messageType}
2705
2732
  ></md-help-text>
2706
2733
  `})}
2707
2734
  </div>
2708
- `:d.nothing}labelTemplate(){return this.label?l.html`
2735
+ `:l.nothing}labelTemplate(){return this.label?l.html`
2709
2736
  <md-label
2710
2737
  class="md-input__label ${(0,h.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
2711
2738
  .htmlFor=${this.htmlId}
2712
2739
  .label=${this.label}
2713
2740
  @label-click="${()=>this.handleLabelClick()}"
2714
2741
  ></md-label>
2715
- `:d.nothing}static get styles(){return[a.A,m.A]}render(){return l.html`
2742
+ `:l.nothing}static get styles(){return[n.A,m.A]}render(){return l.html`
2716
2743
  <div class="md-input-container ${(0,h.classMap)(this.inputClassMap)}" part="md-input-container">
2717
2744
  ${this.labelTemplate()}
2718
2745
  <div class="md-input__wrapper ${(0,h.classMap)(this.inputWrapperClassMap)}">
@@ -2720,14 +2747,14 @@
2720
2747
  </div>
2721
2748
  ${this.messagesTemplate()} ${this.secondaryLabelTemplate()} ${this.helpTextTemplate()}
2722
2749
  </div>
2723
- `}};y([(0,l.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaLabel",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,l.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"clear",void 0),y([(0,l.property)({type:String})],i.prototype,"clearAriaLabel",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"compact",void 0),y([(0,l.property)({type:String})],i.prototype,"containerSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"disabled",void 0),y([(0,l.property)({type:String})],i.prototype,"id",void 0),y([(0,l.property)({type:String})],i.prototype,"inputSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isFilled",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isLoading",void 0),y([(0,l.property)({type:String})],i.prototype,"label",void 0),y([(0,l.property)({type:String})],i.prototype,"helpText",void 0),y([(0,l.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),y([(0,l.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,l.property)({type:String})],i.prototype,"role",void 0),y([(0,l.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"min",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"max",void 0),y([(0,l.property)({type:Number})],i.prototype,"maxLength",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multi",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multiline",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"name",void 0),y([(0,l.property)({type:Number})],i.prototype,"nestedLevel",void 0),y([(0,l.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"readOnly",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"required",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"searchable",void 0),y([(0,l.property)({type:String})],i.prototype,"secondaryLabel",void 0),y([(0,l.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),y([(0,l.property)({type:String})],i.prototype,"shape",void 0),y([(0,l.property)({type:String})],i.prototype,"type",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"value",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaControls",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaExpanded",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,l.property)({type:Object})],i.prototype,"control",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"disableUserTextInput",void 0),y([(0,l.query)(".md-input")],i.prototype,"input",void 0),y([(0,l.internalProperty)()],i.prototype,"isEditing",void 0),y([(0,l.query)('slot[name="input-section-right"]')],i.prototype,"inputSectionRightSlot",void 0),y([(0,l.internalProperty)()],i.prototype,"hasRightSlotContent",void 0),i=y([(0,r.w)("md-input")],i),t.ELEMENT=i}(o||(o={}))},96798:(t,e,i)=>{i.d(e,{Button:()=>o});var o,s=i(73940),r=(i(12176),i(31890)),n=i(26283),a=i(26272),l=i(41488),d=i(40333),h=i(23968),c=i(97822),p=i(11740),u=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this._active=!1,this._tabIndex=0,this.ariaLabel="",this.ariaLabelledBy="",this.ariaLive="",this.ariaExpanded="",this.ariaHaspopup="false",this.ariaPressed="",this.circle=!1,this.rounded=!1,this.color="",this.containerLarge=!1,this.disabled=!1,this.href="",this.id="",this.value="",this.keyboardKey="",this.label="",this.loading=!1,this.outline=!1,this.hasRemoveStyle=!1,this.size="32",this.tag="button",this.type="button",this.role="button",this.variant="secondary",this.width="",this.maxWidth="",this.activityType="",this.iconActive=!1,this.isActive=!1,this.renderWidth=()=>this.width?`width: ${this.width};`:d.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:d.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return l.html`
2750
+ `}};y([(0,d.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),y([(0,d.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),y([(0,d.property)({type:String})],i.prototype,"ariaLabel",void 0),y([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,d.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"clear",void 0),y([(0,d.property)({type:String})],i.prototype,"clearAriaLabel",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"compact",void 0),y([(0,d.property)({type:String})],i.prototype,"containerSize",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"disabled",void 0),y([(0,d.property)({type:String})],i.prototype,"id",void 0),y([(0,d.property)({type:String})],i.prototype,"inputSize",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"isFilled",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"isLoading",void 0),y([(0,d.property)({type:String})],i.prototype,"label",void 0),y([(0,d.property)({type:String})],i.prototype,"helpText",void 0),y([(0,d.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),y([(0,d.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,d.property)({type:String})],i.prototype,"role",void 0),y([(0,d.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,d.property)({type:Number,reflect:!0})],i.prototype,"min",void 0),y([(0,d.property)({type:Number,reflect:!0})],i.prototype,"max",void 0),y([(0,d.property)({type:Number})],i.prototype,"maxLength",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"multi",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"multiline",void 0),y([(0,d.property)({type:String,reflect:!0})],i.prototype,"name",void 0),y([(0,d.property)({type:Number})],i.prototype,"nestedLevel",void 0),y([(0,d.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"readOnly",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"required",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"searchable",void 0),y([(0,d.property)({type:String})],i.prototype,"secondaryLabel",void 0),y([(0,d.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),y([(0,d.property)({type:String})],i.prototype,"shape",void 0),y([(0,d.property)({type:String})],i.prototype,"type",void 0),y([(0,d.property)({type:String,reflect:!0})],i.prototype,"value",void 0),y([(0,d.property)({type:String})],i.prototype,"ariaControls",void 0),y([(0,d.property)({type:String})],i.prototype,"ariaExpanded",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,d.property)({type:Object})],i.prototype,"control",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"disableUserTextInput",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"showDropdown",void 0),y([(0,d.property)({type:Boolean})],i.prototype,"dropdownExpanded",void 0),y([(0,d.property)({type:String})],i.prototype,"dropdownAriaLabel",void 0),y([(0,d.query)(".md-input")],i.prototype,"input",void 0),y([(0,d.state)()],i.prototype,"isEditing",void 0),y([(0,d.query)('slot[name="input-section-right"]')],i.prototype,"inputSectionRightSlot",void 0),y([(0,d.state)()],i.prototype,"hasRightSlotContent",void 0),i=y([(0,r.w)("md-input")],i),t.ELEMENT=i}(s||(s={}))},96798:(t,e,i)=>{i.d(e,{Button:()=>s});var s,o=i(3643),r=(i(12176),i(31890)),a=i(26283),n=i(4313),l=i(87161),d=i(70429),h=i(85125),c=i(20291),p=i(13017),u=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this._active=!1,this._tabIndex=0,this.ariaLabel="",this.ariaLabelledBy="",this.ariaLive="",this.ariaExpanded="",this.ariaHaspopup="false",this.ariaPressed="",this.circle=!1,this.rounded=!1,this.color="",this.containerLarge=!1,this.disabled=!1,this.href="",this.id="",this.value="",this.keyboardKey="",this.label="",this.loading=!1,this.outline=!1,this.hasRemoveStyle=!1,this.size="32",this.tag="button",this.type="button",this.role="button",this.variant="secondary",this.width="",this.maxWidth="",this.activityType="",this.iconActive=!1,this.isActive=!1,this.renderWidth=()=>this.width?`width: ${this.width};`:l.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:l.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return l.html`
2724
2751
  <style>
2725
2752
  :host .md-button--${this.size} {
2726
2753
  ${this.renderWidth()};
2727
2754
  ${this.renderMaxWidth()};
2728
2755
  }
2729
2756
  </style>
2730
- `},this.iconTemplate=()=>this.loading?l.html` <md-spinner size="16"></md-spinner> `:l.html` <slot name="icon"></slot> `,this.textTemplate=()=>this.circle&&this.hasIcon?d.nothing:l.html` <slot name="text"></slot> `}get active(){return this._active}set active(t){const e=this._active;this._active=t,this.requestUpdate("active",e)}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}handleKeyDown(t){if(this.disabled)return;const{code:e}=t;(0,n.o)(e)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleClick(t){var e;this.disabled||(null===(e=this.clickFunction)||void 0===e||e.call(this),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})))}static get styles(){return[a.A,p.A,s.A]}get buttonClassMap(){return{"md-button--circle":this.circle,"md-button--rounded":this.rounded,"md-button--none":this.hasRemoveStyle,"md-button--outline":this.outline,active:this.active&&!this.disabled,disabled:this.disabled&&!this.active,isActive:this.isActive,[`md-button--${this.size}`]:!this.hasRemoveStyle,[`md-button--${this.color}`]:!this.hasRemoveStyle&&!!this.color,[`md-activity__${this.activityType}`]:!!this.activityType,"md-activity":!!this.activityType,"md-button--icon":this.iconActive,"md-button--onlyicon":this.hasIcon&&!this.slottedText,"md-button--placeholder-text":!0===this.isPlaceholderText}}get slottedText(){var t;return null===(t=this.querySelector("[slot=text]"))||void 0===t?void 0:t.textContent}get hasIcon(){return null!==this.querySelector("[slot=icon]")||this.loading}childrenTemplate(){return l.html`
2757
+ `},this.iconTemplate=()=>this.loading?l.html` <md-spinner size="16"></md-spinner> `:l.html` <slot name="icon"></slot> `,this.textTemplate=()=>this.circle&&this.hasIcon?l.nothing:l.html` <slot name="text"></slot> `}get active(){return this._active}set active(t){const e=this._active;this._active=t,this.requestUpdate("active",e)}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}handleKeyDown(t){if(this.disabled)return;const{code:e}=t;(0,a.o)(e)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleClick(t){var e;this.disabled||(null===(e=this.clickFunction)||void 0===e||e.call(this),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})))}static get styles(){return[n.A,p.A,o.A]}get buttonClassMap(){return{"md-button--circle":this.circle,"md-button--rounded":this.rounded,"md-button--none":this.hasRemoveStyle,"md-button--outline":this.outline,active:this.active&&!this.disabled,disabled:this.disabled&&!this.active,isActive:this.isActive,[`md-button--${this.size}`]:!this.hasRemoveStyle,[`md-button--${this.color}`]:!this.hasRemoveStyle&&!!this.color,[`md-activity__${this.activityType}`]:!!this.activityType,"md-activity":!!this.activityType,"md-button--icon":this.iconActive,"md-button--onlyicon":this.hasIcon&&!this.slottedText,"md-button--placeholder-text":!0===this.isPlaceholderText}}get slottedText(){var t;return null===(t=this.querySelector("[slot=text]"))||void 0===t?void 0:t.textContent}get hasIcon(){return null!==this.querySelector("[slot=icon]")||this.loading}childrenTemplate(){return l.html`
2731
2758
  <span part="button-children" class="md-button__children">
2732
2759
  ${this.iconTemplate()} ${this.textTemplate()}
2733
2760
  <slot></slot>
@@ -2790,7 +2817,7 @@
2790
2817
  >
2791
2818
  ${this.childrenTemplate()}
2792
2819
  </a>
2793
- `:d.nothing}get buttonContainerClassMap(){return{"md-button__container":this.containerLarge,"md-button__container--small":!this.containerLarge}}render(){return l.html`
2820
+ `:l.nothing}get buttonContainerClassMap(){return{"md-button__container":this.containerLarge,"md-button__container--small":!this.containerLarge}}render(){return l.html`
2794
2821
  ${this.getStyles()}
2795
2822
  ${this.label?l.html`
2796
2823
  <div part="button-container" class=${(0,h.classMap)(this.buttonContainerClassMap)}>
@@ -2798,7 +2825,7 @@
2798
2825
  <div part="button-label" class="md-button__label">${this.label}</div>
2799
2826
  </div>
2800
2827
  `:l.html` ${this.buttonTemplate(this.tag)} `}
2801
- `}};u([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"active",null),u([(0,l.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),u([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaLabelledBy",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaLive",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaExpanded",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaHaspopup",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaPressed",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"circle",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"rounded",void 0),u([(0,l.property)({type:String})],e.prototype,"color",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"containerLarge",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,l.property)({type:String})],e.prototype,"href",void 0),u([(0,l.property)({type:String})],e.prototype,"id",void 0),u([(0,l.property)({type:String})],e.prototype,"value",void 0),u([(0,l.property)({type:String})],e.prototype,"keyboardKey",void 0),u([(0,l.property)({type:String})],e.prototype,"label",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"loading",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"outline",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"hasRemoveStyle",void 0),u([(0,l.property)({type:String})],e.prototype,"size",void 0),u([(0,l.property)({type:String})],e.prototype,"tag",void 0),u([(0,l.property)({type:String})],e.prototype,"type",void 0),u([(0,l.property)({type:String})],e.prototype,"role",void 0),u([(0,l.property)({type:String})],e.prototype,"variant",void 0),u([(0,l.property)({type:String})],e.prototype,"width",void 0),u([(0,l.property)({type:String})],e.prototype,"maxWidth",void 0),u([(0,l.property)({type:String})],e.prototype,"activityType",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"iconActive",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"isActive",void 0),u([(0,l.property)({type:String,attribute:"aria-describedby"})],e.prototype,"ariaDescribedBy",void 0),u([(0,l.property)({attribute:!1})],e.prototype,"clickFunction",void 0),u([(0,l.property)({type:Boolean,attribute:"is-placeholder-text"})],e.prototype,"isPlaceholderText",void 0),u([(0,l.query)(".md-button")],e.prototype,"button",void 0),e=u([(0,r.w)("md-button")],e),t.ELEMENT=e}(o||(o={}))},97737:(t,e,i)=>{i.d(e,{TabPanel:()=>o});var o,s=i(3001),r=i(31890),n=i(26272),a=i(41488),l=i(30076),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,s.yC)(a.LitElement)){constructor(){super(...arguments),this.selected=!1,this.name="",this.focusablePanel="true"}static get styles(){return[n.A,l.A]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tabpanel")}firstUpdated(t){super.firstUpdated(t),"true"===this.focusablePanel&&this.setAttribute("tabindex","0")}render(){return a.html` <slot></slot> `}};d([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),d([(0,a.property)({type:String,attribute:"name"})],e.prototype,"name",void 0),d([(0,a.property)({type:String,attribute:"focusable-panel"})],e.prototype,"focusablePanel",void 0),e=d([(0,r.w)("md-tab-panel")],e),t.ELEMENT=e}(o||(o={}))},97822:t=>{t.exports=s},97866:(t,e,i)=>{i.d(e,{Form:()=>o});var o,s=i(3001),r=i(41488),n=i(97822),a=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,s.TS)(r.LitElement)){constructor(){super(...arguments),this.rel="",this.name="",this.action="",this.label="",this.method="get",this.target="_self",this.enctype="application/x-www-form-urlencoded",this.novalidate=!1,this.charset="UTF-8",this.isvalid=!1,this.token="on",this.allowRedirect=!1,this.autofillname="input-name",this.formElement=[],this.handleSubmit=t=>{t.preventDefault(),this.validated()&&this.submitForm()},this.handleFormSubmit=t=>{this.allowRedirect||t.preventDefault(),this.dispatchEvent(new CustomEvent("form-submitted",{composed:!0,bubbles:!0}))}}get formMethod(){return"GET"===this.method?"get":"POST"===this.method?"post":this.method}isSubmittable(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement}isDisabled(t){return t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")}findSubmittable(t,e){const i=Array.from(t.children);for(const t of i)if(!this.isDisabled(t))if(this.isSubmittable(t)&&e.add(t),t.shadowRoot)this.findSubmittable(t.shadowRoot,e);else if("SLOT"===t.tagName){const i=t.assignedElements();if(i.length){const{parentElement:t}=i[0];t&&this.findSubmittable(t,e)}}else this.findSubmittable(t,e);return[...e]}validated(){return!!this.novalidate||this.isvalid}submitForm(){const{form:t}=this;t.requestSubmit?t.requestSubmit():t.submit()}get submitButton(){return this.querySelector("button[type='submit']")||this.querySelector("input[type='submit']")||this.querySelector("md-button[type='submit']")}disconnectedCallback(){super.disconnectedCallback(),this.cleanupWrappedForms(),this.teardownEvents()}deleteWrappedForm(t){t.removeEventListener("submit",this.handleFormSubmit)}cleanupWrappedForms(){const{formElement:t}=this;if(t.length)for(const e of t)this.deleteWrappedForm(e);this.formElement=[]}createWrappedForm(t){const e=document.createElement("form");e.addEventListener("submit",this.handleFormSubmit);const{parentNode:i}=t;t.autocomplete=this.token,t.id||(t.id=this.autofillname),t.name||(t.name=this.autofillname),i&&(this.formElement.push(e),i.insertBefore(e,t),e.append(t))}teardownEvents(){this.submitButton&&this.submitButton.removeEventListener("click",this.handleSubmit)}setupEvents(){this.submitButton&&this.submitButton.addEventListener("click",this.handleSubmit)}setupSubmittable(){const t=this.findSubmittable(this.form,new Set);if(t.length)for(const e of t)this.createWrappedForm(e)}slottedChanged(){this.setupSubmittable(),this.setupEvents()}render(){return r.html`
2828
+ `}};u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"active",null),u([(0,d.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),u([(0,d.property)({type:String})],e.prototype,"ariaLabel",void 0),u([(0,d.property)({type:String})],e.prototype,"ariaLabelledBy",void 0),u([(0,d.property)({type:String})],e.prototype,"ariaLive",void 0),u([(0,d.property)({type:String})],e.prototype,"ariaExpanded",void 0),u([(0,d.property)({type:String})],e.prototype,"ariaHaspopup",void 0),u([(0,d.property)({type:String})],e.prototype,"ariaPressed",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"circle",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"rounded",void 0),u([(0,d.property)({type:String})],e.prototype,"color",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"containerLarge",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,d.property)({type:String})],e.prototype,"href",void 0),u([(0,d.property)({type:String})],e.prototype,"id",void 0),u([(0,d.property)({type:String})],e.prototype,"value",void 0),u([(0,d.property)({type:String})],e.prototype,"keyboardKey",void 0),u([(0,d.property)({type:String})],e.prototype,"label",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"loading",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"outline",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"hasRemoveStyle",void 0),u([(0,d.property)({type:String})],e.prototype,"size",void 0),u([(0,d.property)({type:String})],e.prototype,"tag",void 0),u([(0,d.property)({type:String})],e.prototype,"type",void 0),u([(0,d.property)({type:String})],e.prototype,"role",void 0),u([(0,d.property)({type:String})],e.prototype,"variant",void 0),u([(0,d.property)({type:String})],e.prototype,"width",void 0),u([(0,d.property)({type:String})],e.prototype,"maxWidth",void 0),u([(0,d.property)({type:String})],e.prototype,"activityType",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"iconActive",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"isActive",void 0),u([(0,d.property)({type:String,attribute:"aria-describedby"})],e.prototype,"ariaDescribedBy",void 0),u([(0,d.property)({attribute:!1})],e.prototype,"clickFunction",void 0),u([(0,d.property)({type:Boolean,attribute:"is-placeholder-text"})],e.prototype,"isPlaceholderText",void 0),u([(0,d.query)(".md-button")],e.prototype,"button",void 0),e=u([(0,r.w)("md-button")],e),t.ELEMENT=e}(s||(s={}))},97737:(t,e,i)=>{i.d(e,{TabPanel:()=>s});var s,o=i(3001),r=i(31890),a=i(4313),n=i(87161),l=i(70429),d=i(2669),h=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,o.yC)(n.LitElement)){constructor(){super(...arguments),this.selected=!1,this.name="",this.focusablePanel="true"}static get styles(){return[a.A,d.A]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tabpanel")}firstUpdated(t){super.firstUpdated(t),"true"===this.focusablePanel&&this.setAttribute("tabindex","0")}render(){return n.html` <slot></slot> `}};h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),h([(0,l.property)({type:String,attribute:"name"})],e.prototype,"name",void 0),h([(0,l.property)({type:String,attribute:"focusable-panel"})],e.prototype,"focusablePanel",void 0),e=h([(0,r.w)("md-tab-panel")],e),t.ELEMENT=e}(s||(s={}))},97866:(t,e,i)=>{i.d(e,{Form:()=>s});var s,o=i(3001),r=i(87161),a=i(70429),n=i(20291),l=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,o.TS)(r.LitElement)){constructor(){super(...arguments),this.rel="",this.name="",this.action="",this.label="",this.method="get",this.target="_self",this.enctype="application/x-www-form-urlencoded",this.novalidate=!1,this.charset="UTF-8",this.isvalid=!1,this.token="on",this.allowRedirect=!1,this.autofillname="input-name",this.formElement=[],this.handleSubmit=t=>{t.preventDefault(),this.validated()&&this.submitForm()},this.handleFormSubmit=t=>{this.allowRedirect||t.preventDefault(),this.dispatchEvent(new CustomEvent("form-submitted",{composed:!0,bubbles:!0}))}}get formMethod(){return"GET"===this.method?"get":"POST"===this.method?"post":this.method}isSubmittable(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement}isDisabled(t){return t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")}findSubmittable(t,e){const i=Array.from(t.children);for(const t of i)if(!this.isDisabled(t))if(this.isSubmittable(t)&&e.add(t),t.shadowRoot)this.findSubmittable(t.shadowRoot,e);else if("SLOT"===t.tagName){const i=t.assignedElements();if(i.length){const{parentElement:t}=i[0];t&&this.findSubmittable(t,e)}}else this.findSubmittable(t,e);return[...e]}validated(){return!!this.novalidate||this.isvalid}submitForm(){const{form:t}=this;t.requestSubmit?t.requestSubmit():t.submit()}get submitButton(){return this.querySelector("button[type='submit']")||this.querySelector("input[type='submit']")||this.querySelector("md-button[type='submit']")}disconnectedCallback(){super.disconnectedCallback(),this.cleanupWrappedForms(),this.teardownEvents()}deleteWrappedForm(t){t.removeEventListener("submit",this.handleFormSubmit)}cleanupWrappedForms(){const{formElement:t}=this;if(t.length)for(const e of t)this.deleteWrappedForm(e);this.formElement=[]}createWrappedForm(t){const e=document.createElement("form");e.addEventListener("submit",this.handleFormSubmit);const{parentNode:i}=t;t.autocomplete=this.token,t.id||(t.id=this.autofillname),t.name||(t.name=this.autofillname),i&&(this.formElement.push(e),i.insertBefore(e,t),e.append(t))}teardownEvents(){this.submitButton&&this.submitButton.removeEventListener("click",this.handleSubmit)}setupEvents(){this.submitButton&&this.submitButton.addEventListener("click",this.handleSubmit)}setupSubmittable(){const t=this.findSubmittable(this.form,new Set);if(t.length)for(const e of t)this.createWrappedForm(e)}slottedChanged(){this.setupSubmittable(),this.setupEvents()}render(){return r.html`
2802
2829
  <form
2803
2830
  class="md-form"
2804
2831
  role="form"
@@ -2816,16 +2843,16 @@
2816
2843
  >
2817
2844
  <slot></slot>
2818
2845
  </form>
2819
- `}};a([(0,r.property)({type:String})],e.prototype,"rel",void 0),a([(0,r.property)({type:String})],e.prototype,"name",void 0),a([(0,r.property)({type:String})],e.prototype,"action",void 0),a([(0,r.property)({type:String})],e.prototype,"label",void 0),a([(0,r.property)({type:String})],e.prototype,"method",void 0),a([(0,r.property)({type:String})],e.prototype,"target",void 0),a([(0,r.property)({type:String})],e.prototype,"enctype",void 0),a([(0,r.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),a([(0,r.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),a([(0,r.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),a([(0,r.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),a([(0,r.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),a([(0,r.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),a([(0,r.query)(".md-form")],e.prototype,"form",void 0),e=a([(0,s.wW)("md-form")],e),t.ELEMENT=e}(o||(o={}))},99850:(t,e,i)=>{i.d(e,{Favorite:()=>o}),i(61200);var o,s=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(23968),h=i(97822),c=i(27092),p=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.value="Select favorite",this.id="",this.label="Favorite",this.customId=""}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleElectKeyDown),this.addEventListener("click",this.handleFavorite)}static get styles(){return[a.A,c.A]}handleFavorite(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-toggle",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}handleElectKeyDown(t){t.code!==s.Uz.Enter&&t.code!==s.Uz.Space||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-keydown",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleElectKeyDown),this.removeEventListener("click",this.handleFavorite)}get favoriteClassMap(){return{"md-favorite--active":this.checked,"md-favorite--disabled":this.disabled}}render(){return l.html`
2846
+ `}};l([(0,a.property)({type:String})],e.prototype,"rel",void 0),l([(0,a.property)({type:String})],e.prototype,"name",void 0),l([(0,a.property)({type:String})],e.prototype,"action",void 0),l([(0,a.property)({type:String})],e.prototype,"label",void 0),l([(0,a.property)({type:String})],e.prototype,"method",void 0),l([(0,a.property)({type:String})],e.prototype,"target",void 0),l([(0,a.property)({type:String})],e.prototype,"enctype",void 0),l([(0,a.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),l([(0,a.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),l([(0,a.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),l([(0,a.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),l([(0,a.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),l([(0,a.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),l([(0,a.query)(".md-form")],e.prototype,"form",void 0),e=l([(0,o.wW)("md-form")],e),t.ELEMENT=e}(s||(s={}))},99850:(t,e,i)=>{i.d(e,{Favorite:()=>s}),i(61200);var s,o=i(90195),r=i(3001),a=i(31890),n=i(4313),l=i(87161),d=i(70429),h=i(85125),c=i(20291),p=i(46765),u=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.value="Select favorite",this.id="",this.label="Favorite"}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleElectKeyDown),this.addEventListener("click",this.handleFavorite)}static get styles(){return[n.A,p.A]}handleFavorite(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-toggle",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}handleElectKeyDown(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-keydown",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleElectKeyDown),this.removeEventListener("click",this.handleFavorite)}get favoriteClassMap(){return{"md-favorite--active":this.checked,"md-favorite--disabled":this.disabled}}render(){return l.html`
2820
2847
  <label
2821
2848
  for="favorite-checkbox"
2822
2849
  id="${this.id}"
2823
- class="md-favorite ${(0,d.classMap)(this.favoriteClassMap)}"
2850
+ class="md-favorite ${(0,h.classMap)(this.favoriteClassMap)}"
2824
2851
  tabindex="0"
2825
2852
  >
2826
2853
  <input
2827
2854
  type="checkbox"
2828
- aria-label=${(0,h.ifDefined)(this.label.length?this.label:void 0)}
2855
+ aria-label=${(0,c.ifDefined)(this.label.length?this.label:void 0)}
2829
2856
  value=${this.value}
2830
2857
  ?checked=${this.checked}
2831
2858
  ?disabled=${this.disabled}
@@ -2838,4 +2865,4 @@
2838
2865
  size="16"
2839
2866
  ></md-icon>
2840
2867
  </label>
2841
- `}};p([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"checked",void 0),p([(0,l.property)({type:String})],e.prototype,"value",void 0),p([(0,l.property)({type:String})],e.prototype,"id",void 0),p([(0,l.property)({type:String})],e.prototype,"label",void 0),p([(0,l.internalProperty)()],e.prototype,"customId",void 0),e=p([(0,n.w)("md-favorite")],e),t.ELEMENT=e}(o||(o={}))}},j={};function U(t){var e=j[t];if(void 0!==e)return e.exports;var i=j[t]={exports:{}};return N[t].call(i.exports,i,i.exports,U),i.exports}U.m=N,_=[],U.O=(t,e,i,o)=>{if(!e){var s=1/0;for(l=0;l<_.length;l++){for(var[e,i,o]=_[l],r=!0,n=0;n<e.length;n++)(!1&o||s>=o)&&Object.keys(U.O).every(t=>U.O[t](e[n]))?e.splice(n--,1):(r=!1,o<s&&(s=o));if(r){_.splice(l--,1);var a=i();void 0!==a&&(t=a)}}return t}o=o||0;for(var l=_.length;l>0&&_[l-1][2]>o;l--)_[l]=_[l-1];_[l]=[e,i,o]},U.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return U.d(e,{a:e}),e},z=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,U.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);U.r(i);var o={};B=B||[null,z({}),z([]),z(z)];for(var s=2&e&&t;("object"==typeof s||"function"==typeof s)&&!~B.indexOf(s);s=z(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>t[e]);return o.default=()=>t,U.d(i,o),i},U.d=(t,e)=>{for(var i in e)U.o(e,i)&&!U.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},U.f={},U.e=t=>Promise.all(Object.keys(U.f).reduce((e,i)=>(U.f[i](t,e),e),[])),U.u=t=>"chunks/md-"+t+".js",U.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),U.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),F={},V="@momentum-ui/web-components:",U.l=(t,e,i,o)=>{if(F[t])F[t].push(e);else{var s,r;if(void 0!==i)for(var n=document.getElementsByTagName("script"),a=0;a<n.length;a++){var l=n[a];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==V+i){s=l;break}}s||(r=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,U.nc&&s.setAttribute("nonce",U.nc),s.setAttribute("data-webpack",V+i),s.src=t),F[t]=[e];var d=(e,i)=>{s.onerror=s.onload=null,clearTimeout(h);var o=F[t];if(delete F[t],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(t=>t(i)),e)return e(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),r&&document.head.appendChild(s)}},U.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},U.p="/",(()=>{var t={109:0,144:0,195:0,445:0,502:0,555:0,671:0,762:0,984:0,1037:0,1200:0,1266:0,1323:0,1439:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,2105:0,2139:0,2169:0,2176:0,2330:0,2434:0,2547:0,2555:0,2576:0,2779:0,2781:0,2909:0,3001:0,3079:0,3192:0,3413:0,3477:0,3539:0,3747:0,3820:0,3938:0,3943:0,4131:0,4139:0,4259:0,4545:0,4908:0,4928:0,4971:0,5156:0,5310:0,5369:0,5382:0,5427:0,5433:0,5517:0,6029:0,6060:0,6085:0,6132:0,6220:0,6396:0,6408:0,6433:0,6494:0,6587:0,6677:0,6724:0,6753:0,6754:0,6798:0,6834:0,6920:0,7119:0,7145:0,7219:0,7455:0,7684:0,7711:0,7719:0,7763:0,7814:0,7927:0,8028:0,8111:0,8115:0,8220:0,8334:0,8339:0,8442:0,8510:0,8654:0,8894:0,9058:0,9237:0};U.f.j=(e,i)=>{var o=U.o(t,e)?t[e]:void 0;if(0!==o)if(o)i.push(o[2]);else{var s=new Promise((i,s)=>o=t[e]=[i,s]);i.push(o[2]=s);var r=U.p+U.u(e),n=new Error;U.l(r,i=>{if(U.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var s=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;n.message="Loading chunk "+e+" failed.\n("+s+": "+r+")",n.name="ChunkLoadError",n.type=s,n.request=r,o[1](n)}},"chunk-"+e,e)}},U.O.j=e=>0===t[e];var e=(e,i)=>{var o,s,[r,n,a]=i,l=0;if(r.some(e=>0!==t[e])){for(o in n)U.o(n,o)&&(U.m[o]=n[o]);if(a)var d=a(U)}for(e&&e(i);l<r.length;l++)s=r[l],U.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return U.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var q=U.O(void 0,[6633,7103,1890,6272,6325,6283,9217,5830,8889,8210,4977,3135,1598,1572,6366,7251,4974,2243,7919,3553,6877,6700,8004,6795,8923,4548,76,1392,9164,2019,1625,6067,3625,8841,3112,3866,1107,6953,7330,7092,9719,6979,9130,6273,9618,8612,8521,4400,779,573,5801,2043,8171,2798,5467,2984,1869,2215,7997,4392,630,3604,8728,8227,1250,1705,7833,7875,6400,587,6441,6015,3663],()=>U(51219));return U.O(q)})());
2868
+ `}};u([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"checked",void 0),u([(0,d.property)({type:String})],e.prototype,"value",void 0),u([(0,d.property)({type:String})],e.prototype,"id",void 0),u([(0,d.property)({type:String})],e.prototype,"label",void 0),e=u([(0,a.w)("md-favorite")],e),t.ELEMENT=e}(s||(s={}))}},z={};function F(t){var e=z[t];if(void 0!==e)return e.exports;var i=z[t]={exports:{}};return B[t].call(i.exports,i,i.exports,F),i.exports}F.m=B,M=[],F.O=(t,e,i,s)=>{if(!e){var o=1/0;for(l=0;l<M.length;l++){for(var[e,i,s]=M[l],r=!0,a=0;a<e.length;a++)(!1&s||o>=s)&&Object.keys(F.O).every(t=>F.O[t](e[a]))?e.splice(a--,1):(r=!1,s<o&&(o=s));if(r){M.splice(l--,1);var n=i();void 0!==n&&(t=n)}}return t}s=s||0;for(var l=M.length;l>0&&M[l-1][2]>s;l--)M[l]=M[l-1];M[l]=[e,i,s]},F.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return F.d(e,{a:e}),e},P=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,F.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);F.r(i);var s={};D=D||[null,P({}),P([]),P(P)];for(var o=2&e&&t;("object"==typeof o||"function"==typeof o)&&!~D.indexOf(o);o=P(o))Object.getOwnPropertyNames(o).forEach(e=>s[e]=()=>t[e]);return s.default=()=>t,F.d(i,s),i},F.d=(t,e)=>{for(var i in e)F.o(e,i)&&!F.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},F.f={},F.e=t=>Promise.all(Object.keys(F.f).reduce((e,i)=>(F.f[i](t,e),e),[])),F.u=t=>"chunks/md-"+t+".js",F.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),F.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),R={},_="@momentum-ui/web-components:",F.l=(t,e,i,s)=>{if(R[t])R[t].push(e);else{var o,r;if(void 0!==i)for(var a=document.getElementsByTagName("script"),n=0;n<a.length;n++){var l=a[n];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==_+i){o=l;break}}o||(r=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,F.nc&&o.setAttribute("nonce",F.nc),o.setAttribute("data-webpack",_+i),o.src=t),R[t]=[e];var d=(e,i)=>{o.onerror=o.onload=null,clearTimeout(h);var s=R[t];if(delete R[t],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach(t=>t(i)),e)return e(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),r&&document.head.appendChild(o)}},F.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},F.p="/",(()=>{var t={109:0,144:0,195:0,445:0,502:0,555:0,671:0,762:0,984:0,1037:0,1200:0,1266:0,1323:0,1439:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,2105:0,2139:0,2169:0,2176:0,2330:0,2434:0,2547:0,2555:0,2576:0,2779:0,2781:0,2909:0,3001:0,3079:0,3192:0,3413:0,3477:0,3539:0,3747:0,3820:0,3938:0,3943:0,4131:0,4139:0,4259:0,4545:0,4908:0,4928:0,4971:0,5156:0,5310:0,5369:0,5382:0,5427:0,5433:0,5517:0,6029:0,6060:0,6085:0,6132:0,6220:0,6396:0,6408:0,6433:0,6494:0,6587:0,6677:0,6724:0,6753:0,6754:0,6798:0,6834:0,6920:0,7119:0,7145:0,7219:0,7455:0,7684:0,7711:0,7719:0,7763:0,7814:0,7927:0,8028:0,8111:0,8115:0,8220:0,8334:0,8339:0,8442:0,8510:0,8654:0,8894:0,9058:0,9237:0};F.f.j=(e,i)=>{var s=F.o(t,e)?t[e]:void 0;if(0!==s)if(s)i.push(s[2]);else{var o=new Promise((i,o)=>s=t[e]=[i,o]);i.push(s[2]=o);var r=F.p+F.u(e),a=new Error;F.l(r,i=>{if(F.o(t,e)&&(0!==(s=t[e])&&(t[e]=void 0),s)){var o=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",a.name="ChunkLoadError",a.type=o,a.request=r,s[1](a)}},"chunk-"+e,e)}},F.O.j=e=>0===t[e];var e=(e,i)=>{var s,o,[r,a,n]=i,l=0;if(r.some(e=>0!==t[e])){for(s in a)F.o(a,s)&&(F.m[s]=a[s]);if(n)var d=n(F)}for(e&&e(i);l<r.length;l++)o=r[l],F.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return F.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var V=F.O(void 0,[6633,4765,7103,6683,4935,7228,1890,4313,510,6283,5087,6865,8889,8210,5630,3135,1013,3739,7819,2848,4363,2243,7919,7292,6188,15,8345,9270,8923,4548,2669,1729,9164,9480,1625,836,3625,2056,4889,9409,9654,4659,5838,6765,1626,3852,8161,6273,8391,679,8033,1564,4462,4744,8576,1092,8171,2201,2186,9425,8588,3212,622,5809,9455,759,2093,8148,5799,9312,2714,9238,7833,2924,5524,674,2314],()=>F(34021));return F.O(V)})());