@momentum-ui/web-components 2.7.33 → 2.7.35

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 (335) hide show
  1. package/dist/chunks/md-100.js +1 -1
  2. package/dist/chunks/md-101.js +1 -1
  3. package/dist/chunks/md-102.js +1 -1
  4. package/dist/chunks/md-103.js +1 -1
  5. package/dist/chunks/md-104.js +1 -1
  6. package/dist/chunks/md-105.js +1 -1
  7. package/dist/chunks/md-106.js +1 -1
  8. package/dist/chunks/md-107.js +1 -1
  9. package/dist/chunks/md-108.js +1 -1
  10. package/dist/chunks/md-109.js +1 -1
  11. package/dist/chunks/md-110.js +1 -1
  12. package/dist/chunks/md-111.js +1 -1
  13. package/dist/chunks/md-112.js +1 -1
  14. package/dist/chunks/md-113.js +1 -1
  15. package/dist/chunks/md-114.js +1 -1
  16. package/dist/chunks/md-115.js +1 -1
  17. package/dist/chunks/md-116.js +1 -1
  18. package/dist/chunks/md-117.js +1 -1
  19. package/dist/chunks/md-118.js +1 -1
  20. package/dist/chunks/md-119.js +1 -1
  21. package/dist/chunks/md-120.js +1 -1
  22. package/dist/chunks/md-121.js +1 -1
  23. package/dist/chunks/md-122.js +1 -1
  24. package/dist/chunks/md-123.js +1 -1
  25. package/dist/chunks/md-124.js +1 -1
  26. package/dist/chunks/md-125.js +1 -1
  27. package/dist/chunks/md-126.js +1 -1
  28. package/dist/chunks/md-127.js +1 -1
  29. package/dist/chunks/md-128.js +1 -1
  30. package/dist/chunks/md-129.js +1 -1
  31. package/dist/chunks/md-130.js +1 -1
  32. package/dist/chunks/md-131.js +1 -1
  33. package/dist/chunks/md-132.js +1 -1
  34. package/dist/chunks/md-133.js +1 -1
  35. package/dist/chunks/md-134.js +1 -1
  36. package/dist/chunks/md-135.js +1 -1
  37. package/dist/chunks/md-136.js +1 -1
  38. package/dist/chunks/md-137.js +1 -1
  39. package/dist/chunks/md-138.js +1 -1
  40. package/dist/chunks/md-139.js +1 -1
  41. package/dist/chunks/md-140.js +1 -1
  42. package/dist/chunks/md-141.js +1 -1
  43. package/dist/chunks/md-142.js +1 -1
  44. package/dist/chunks/md-143.js +1 -1
  45. package/dist/chunks/md-144.js +1 -1
  46. package/dist/chunks/md-145.js +1 -1
  47. package/dist/chunks/md-146.js +1 -1
  48. package/dist/chunks/md-147.js +1 -1
  49. package/dist/chunks/md-148.js +1 -1
  50. package/dist/chunks/md-149.js +1 -1
  51. package/dist/chunks/md-150.js +1 -1
  52. package/dist/chunks/md-151.js +1 -1
  53. package/dist/chunks/md-152.js +1 -1
  54. package/dist/chunks/md-153.js +1 -1
  55. package/dist/chunks/md-154.js +1 -1
  56. package/dist/chunks/md-155.js +1 -1
  57. package/dist/chunks/md-156.js +1 -1
  58. package/dist/chunks/md-157.js +1 -1
  59. package/dist/chunks/md-158.js +1 -1
  60. package/dist/chunks/md-159.js +1 -1
  61. package/dist/chunks/md-160.js +1 -1
  62. package/dist/chunks/md-161.js +1 -1
  63. package/dist/chunks/md-162.js +1 -1
  64. package/dist/chunks/md-163.js +1 -1
  65. package/dist/chunks/md-164.js +1 -1
  66. package/dist/chunks/md-165.js +1 -1
  67. package/dist/chunks/md-166.js +1 -1
  68. package/dist/chunks/md-167.js +1 -1
  69. package/dist/chunks/md-168.js +1 -1
  70. package/dist/chunks/md-169.js +1 -1
  71. package/dist/chunks/md-170.js +1 -1
  72. package/dist/chunks/md-171.js +1 -1
  73. package/dist/chunks/md-172.js +1 -1
  74. package/dist/chunks/md-173.js +1 -1
  75. package/dist/chunks/md-174.js +1 -1
  76. package/dist/chunks/md-175.js +1 -1
  77. package/dist/chunks/md-176.js +1 -1
  78. package/dist/chunks/md-177.js +1 -1
  79. package/dist/chunks/md-178.js +1 -1
  80. package/dist/chunks/md-179.js +1 -1
  81. package/dist/chunks/md-180.js +1 -1
  82. package/dist/chunks/md-181.js +1 -1
  83. package/dist/chunks/md-182.js +1 -1
  84. package/dist/chunks/md-183.js +1 -1
  85. package/dist/chunks/md-184.js +1 -1
  86. package/dist/chunks/md-185.js +1 -1
  87. package/dist/chunks/md-186.js +1 -1
  88. package/dist/chunks/md-187.js +1 -1
  89. package/dist/chunks/md-188.js +1 -1
  90. package/dist/chunks/md-189.js +1 -1
  91. package/dist/chunks/md-190.js +1 -1
  92. package/dist/chunks/md-191.js +1 -1
  93. package/dist/chunks/md-192.js +1 -1
  94. package/dist/chunks/md-193.js +1 -1
  95. package/dist/chunks/md-194.js +1 -1
  96. package/dist/chunks/md-195.js +1 -1
  97. package/dist/chunks/md-196.js +1 -1
  98. package/dist/chunks/md-197.js +1 -1
  99. package/dist/chunks/md-198.js +1 -1
  100. package/dist/chunks/md-199.js +1 -1
  101. package/dist/chunks/md-200.js +1 -1
  102. package/dist/chunks/md-201.js +1 -1
  103. package/dist/chunks/md-202.js +1 -1
  104. package/dist/chunks/md-203.js +1 -1
  105. package/dist/chunks/md-204.js +1 -1
  106. package/dist/chunks/md-205.js +1 -1
  107. package/dist/chunks/md-206.js +1 -1
  108. package/dist/chunks/md-207.js +1 -1
  109. package/dist/chunks/md-208.js +1 -1
  110. package/dist/chunks/md-209.js +1 -1
  111. package/dist/chunks/md-210.js +1 -1
  112. package/dist/chunks/md-211.js +1 -1
  113. package/dist/chunks/md-212.js +1 -1
  114. package/dist/chunks/md-213.js +1 -1
  115. package/dist/chunks/md-214.js +1 -1
  116. package/dist/chunks/md-215.js +1 -1
  117. package/dist/chunks/md-216.js +1 -1
  118. package/dist/chunks/md-217.js +1 -1
  119. package/dist/chunks/md-218.js +1 -1
  120. package/dist/chunks/md-219.js +1 -1
  121. package/dist/chunks/md-220.js +1 -1
  122. package/dist/chunks/md-221.js +1 -1
  123. package/dist/chunks/md-222.js +1 -1
  124. package/dist/chunks/md-223.js +1 -1
  125. package/dist/chunks/md-224.js +1 -1
  126. package/dist/chunks/md-225.js +1 -1
  127. package/dist/chunks/md-226.js +1 -1
  128. package/dist/chunks/md-227.js +1 -1
  129. package/dist/chunks/md-228.js +1 -1
  130. package/dist/chunks/md-229.js +1 -1
  131. package/dist/chunks/md-230.js +1 -1
  132. package/dist/chunks/md-231.js +1 -1
  133. package/dist/chunks/md-232.js +1 -1
  134. package/dist/chunks/md-233.js +1 -1
  135. package/dist/chunks/md-234.js +1 -1
  136. package/dist/chunks/md-235.js +1 -1
  137. package/dist/chunks/md-236.js +1 -1
  138. package/dist/chunks/md-237.js +1 -1
  139. package/dist/chunks/md-238.js +1 -1
  140. package/dist/chunks/md-239.js +1 -1
  141. package/dist/chunks/md-240.js +1 -1
  142. package/dist/chunks/md-241.js +1 -1
  143. package/dist/chunks/md-242.js +1 -1
  144. package/dist/chunks/md-243.js +1 -1
  145. package/dist/chunks/md-244.js +1 -1
  146. package/dist/chunks/md-245.js +1 -1
  147. package/dist/chunks/md-246.js +1 -1
  148. package/dist/chunks/md-247.js +1 -1
  149. package/dist/chunks/md-248.js +1 -1
  150. package/dist/chunks/md-249.js +1 -1
  151. package/dist/chunks/md-250.js +1 -1
  152. package/dist/chunks/md-251.js +1 -1
  153. package/dist/chunks/md-252.js +1 -1
  154. package/dist/chunks/md-253.js +1 -1
  155. package/dist/chunks/md-254.js +1 -1
  156. package/dist/chunks/md-255.js +1 -1
  157. package/dist/chunks/md-256.js +1 -1
  158. package/dist/chunks/md-257.js +1 -1
  159. package/dist/chunks/md-258.js +1 -1
  160. package/dist/chunks/md-259.js +1 -1
  161. package/dist/chunks/md-260.js +1 -1
  162. package/dist/chunks/md-261.js +1 -1
  163. package/dist/chunks/md-262.js +1 -1
  164. package/dist/chunks/md-263.js +1 -1
  165. package/dist/chunks/md-264.js +1 -1
  166. package/dist/chunks/md-265.js +1 -1
  167. package/dist/chunks/md-266.js +1 -1
  168. package/dist/chunks/md-267.js +1 -1
  169. package/dist/chunks/md-268.js +1 -1
  170. package/dist/chunks/md-269.js +1 -1
  171. package/dist/chunks/md-270.js +1 -1
  172. package/dist/chunks/md-271.js +1 -1
  173. package/dist/chunks/md-272.js +1 -1
  174. package/dist/chunks/md-273.js +1 -1
  175. package/dist/chunks/md-274.js +1 -1
  176. package/dist/chunks/md-275.js +1 -0
  177. package/dist/chunks/md-36.js +1 -1
  178. package/dist/chunks/md-43.js +1 -1
  179. package/dist/chunks/md-49.js +86 -13
  180. package/dist/chunks/md-50.js +13 -5
  181. package/dist/chunks/md-51.js +4 -67
  182. package/dist/chunks/md-52.js +64 -20
  183. package/dist/chunks/md-53.js +24 -14
  184. package/dist/chunks/md-54.js +14 -5
  185. package/dist/chunks/md-55.js +5 -39
  186. package/dist/chunks/md-56.js +38 -21
  187. package/dist/chunks/md-57.js +21 -4
  188. package/dist/chunks/md-58.js +5 -1
  189. package/dist/chunks/md-59.js +1 -22
  190. package/dist/chunks/md-60.js +22 -5
  191. package/dist/chunks/md-61.js +4 -14
  192. package/dist/chunks/md-62.js +14 -44
  193. package/dist/chunks/md-63.js +44 -29
  194. package/dist/chunks/md-64.js +29 -71
  195. package/dist/chunks/md-65.js +72 -19
  196. package/dist/chunks/md-66.js +19 -17
  197. package/dist/chunks/md-67.js +17 -22
  198. package/dist/chunks/md-68.js +21 -83
  199. package/dist/chunks/md-69.js +84 -7
  200. package/dist/chunks/md-70.js +7 -77
  201. package/dist/chunks/md-71.js +76 -71
  202. package/dist/chunks/md-72.js +72 -64
  203. package/dist/chunks/md-73.js +62 -14
  204. package/dist/chunks/md-74.js +15 -4
  205. package/dist/chunks/md-75.js +4 -29
  206. package/dist/chunks/md-76.js +30 -3
  207. package/dist/chunks/md-77.js +3 -179
  208. package/dist/chunks/md-78.js +177 -37
  209. package/dist/chunks/md-79.js +37 -84
  210. package/dist/chunks/md-80.js +79 -105
  211. package/dist/chunks/md-81.js +111 -11
  212. package/dist/chunks/md-82.js +11 -42
  213. package/dist/chunks/md-83.js +42 -25
  214. package/dist/chunks/md-84.js +26 -1
  215. package/dist/chunks/md-85.js +1 -1
  216. package/dist/chunks/md-86.js +1 -1
  217. package/dist/chunks/md-87.js +1 -1
  218. package/dist/chunks/md-88.js +1 -1
  219. package/dist/chunks/md-89.js +1 -1
  220. package/dist/chunks/md-90.js +1 -1
  221. package/dist/chunks/md-91.js +1 -1
  222. package/dist/chunks/md-92.js +1 -1
  223. package/dist/chunks/md-93.js +1 -1
  224. package/dist/chunks/md-94.js +1 -1
  225. package/dist/chunks/md-95.js +1 -1
  226. package/dist/chunks/md-96.js +1 -1
  227. package/dist/chunks/md-97.js +1 -1
  228. package/dist/chunks/md-98.js +1 -1
  229. package/dist/chunks/md-99.js +1 -1
  230. package/dist/comp/md-accordion-entry.js +1 -1
  231. package/dist/comp/md-accordion-item-entry.js +1 -1
  232. package/dist/comp/md-activity-button-entry.js +1 -1
  233. package/dist/comp/md-alert-banner-entry.js +1 -1
  234. package/dist/comp/md-alert-entry.js +1 -1
  235. package/dist/comp/md-audio-player-entry.js +1 -0
  236. package/dist/comp/md-audio-player.js +5 -0
  237. package/dist/comp/md-avatar-entry.js +1 -1
  238. package/dist/comp/md-badge-entry.js +1 -1
  239. package/dist/comp/md-breadcrumb-entry.js +1 -1
  240. package/dist/comp/md-breadcrumb.js +1 -1
  241. package/dist/comp/md-button-entry.js +1 -1
  242. package/dist/comp/md-button-group-entry.js +1 -1
  243. package/dist/comp/md-button-group.js +1 -1
  244. package/dist/comp/md-card-entry.js +1 -1
  245. package/dist/comp/md-card.js +1 -1
  246. package/dist/comp/md-chat-message-entry.js +1 -1
  247. package/dist/comp/md-chat-message.js +1 -1
  248. package/dist/comp/md-checkbox-entry.js +1 -1
  249. package/dist/comp/md-checkbox.js +1 -1
  250. package/dist/comp/md-checkboxgroup-entry.js +1 -1
  251. package/dist/comp/md-checkboxgroup.js +1 -1
  252. package/dist/comp/md-chip-entry.js +1 -1
  253. package/dist/comp/md-chip.js +1 -1
  254. package/dist/comp/md-coachmark-entry.js +1 -1
  255. package/dist/comp/md-coachmark.js +1 -1
  256. package/dist/comp/md-combobox-entry.js +1 -1
  257. package/dist/comp/md-composite-avatar-entry.js +1 -1
  258. package/dist/comp/md-composite-avatar.js +1 -1
  259. package/dist/comp/md-date-range-picker-entry.js +1 -1
  260. package/dist/comp/md-date-range-picker.js +1 -1
  261. package/dist/comp/md-date-time-picker-entry.js +1 -1
  262. package/dist/comp/md-date-time-picker.js +1 -1
  263. package/dist/comp/md-datepicker-calendar-entry.js +1 -1
  264. package/dist/comp/md-datepicker-day-entry.js +1 -1
  265. package/dist/comp/md-datepicker-entry.js +1 -1
  266. package/dist/comp/md-datepicker-month-entry.js +1 -1
  267. package/dist/comp/md-datepicker-week-entry.js +1 -1
  268. package/dist/comp/md-draggable-entry.js +1 -1
  269. package/dist/comp/md-draggable-item-entry.js +1 -1
  270. package/dist/comp/md-draggable-item.js +1 -1
  271. package/dist/comp/md-draggable.js +1 -1
  272. package/dist/comp/md-dropdown-entry.js +1 -1
  273. package/dist/comp/md-dropdown.js +1 -1
  274. package/dist/comp/md-editable-field-entry.js +1 -1
  275. package/dist/comp/md-editable-field.js +1 -1
  276. package/dist/comp/md-favorite-entry.js +1 -1
  277. package/dist/comp/md-floating-minimize-entry.js +1 -1
  278. package/dist/comp/md-floating-modal-entry.js +1 -1
  279. package/dist/comp/md-floating-modal.js +1 -1
  280. package/dist/comp/md-form-entry.js +1 -1
  281. package/dist/comp/md-form.js +1 -1
  282. package/dist/comp/md-help-text-entry.js +1 -1
  283. package/dist/comp/md-icon-entry.js +1 -1
  284. package/dist/comp/md-inpu.js +1 -1
  285. package/dist/comp/md-input-entry.js +1 -1
  286. package/dist/comp/md-input-file.js +1 -1
  287. package/dist/comp/md-label-entry.js +1 -1
  288. package/dist/comp/md-link-entry.js +1 -1
  289. package/dist/comp/md-link.js +1 -1
  290. package/dist/comp/md-list-entry.js +1 -1
  291. package/dist/comp/md-list-item-entry.js +1 -1
  292. package/dist/comp/md-loading-entry.js +1 -1
  293. package/dist/comp/md-meeting-alert-entry.js +1 -1
  294. package/dist/comp/md-meeting-alert.js +1 -1
  295. package/dist/comp/md-menu-entry.js +1 -1
  296. package/dist/comp/md-menu-item-entry.js +1 -1
  297. package/dist/comp/md-menu-overlay-entry.js +1 -1
  298. package/dist/comp/md-menu.js +1 -1
  299. package/dist/comp/md-modal-entry.js +1 -1
  300. package/dist/comp/md-modal.js +1 -1
  301. package/dist/comp/md-pagination-entry.js +1 -1
  302. package/dist/comp/md-pagination.js +1 -1
  303. package/dist/comp/md-phone-input-entry.js +1 -1
  304. package/dist/comp/md-phone-input.js +1 -1
  305. package/dist/comp/md-progress-bar-entry.js +1 -1
  306. package/dist/comp/md-radio-entry.js +1 -1
  307. package/dist/comp/md-radio.js +1 -1
  308. package/dist/comp/md-radiogroup-entry.js +1 -1
  309. package/dist/comp/md-radiogroup.js +1 -1
  310. package/dist/comp/md-slider-entry.js +1 -1
  311. package/dist/comp/md-slider.js +1 -1
  312. package/dist/comp/md-spinner-entry.js +1 -1
  313. package/dist/comp/md-tab-entry.js +1 -1
  314. package/dist/comp/md-tab-panel-entry.js +1 -1
  315. package/dist/comp/md-tab-panel.js +1 -1
  316. package/dist/comp/md-table-advanced-entry.js +1 -1
  317. package/dist/comp/md-table-advanced.js +1 -1
  318. package/dist/comp/md-table-entry.js +1 -1
  319. package/dist/comp/md-table.js +1 -1
  320. package/dist/comp/md-tabs-entry.js +1 -1
  321. package/dist/comp/md-tabs.js +1 -1
  322. package/dist/comp/md-task-item-entry.js +1 -1
  323. package/dist/comp/md-task-item.js +1 -1
  324. package/dist/comp/md-theme-entry.js +1 -1
  325. package/dist/comp/md-theme.js +1 -1
  326. package/dist/comp/md-timepicker-entry.js +1 -1
  327. package/dist/comp/md-timepicker.js +1 -1
  328. package/dist/comp/md-toggle-switch-entry.js +1 -1
  329. package/dist/comp/md-toggle-switch.js +1 -1
  330. package/dist/comp/md-tooltip-entry.js +1 -1
  331. package/dist/index-entry.js +2 -2
  332. package/dist/index.js +28 -27
  333. package/dist/types/components/audio-player/AudioPlayer.d.ts +97 -0
  334. package/dist/types/index.d.ts +1 -0
  335. package/package.json +1 -1
@@ -1,19 +1,72 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[65],{94:function(t,e,i){"use strict";i.r(e),i.d(e,"Form",(function(){return o}));var o,r=i(0),n=i(6),s=i(7),a=function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends(Object(s.e)(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}))}}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`
2
- <form
3
- class="md-form"
4
- role="form"
5
- name=${Object(n.ifDefined)(this.name||void 0)}
6
- rel=${Object(n.ifDefined)(this.rel||void 0)}
7
- action=${Object(n.ifDefined)(this.action||void 0)}
8
- accept-charset=${this.charset}
9
- enctype=${this.enctype}
10
- aria-label=${Object(n.ifDefined)(this.label||void 0)}
11
- ?novalidate=${this.novalidate}
12
- method=${this.method}
13
- target=${this.target}
14
- part="form"
15
- @submit=${this.handleFormSubmit}
16
- >
17
- <slot></slot>
18
- </form>
19
- `}};a([Object(r.property)({type:String})],e.prototype,"rel",void 0),a([Object(r.property)({type:String})],e.prototype,"name",void 0),a([Object(r.property)({type:String})],e.prototype,"action",void 0),a([Object(r.property)({type:String})],e.prototype,"label",void 0),a([Object(r.property)({type:String})],e.prototype,"method",void 0),a([Object(r.property)({type:String})],e.prototype,"target",void 0),a([Object(r.property)({type:String})],e.prototype,"enctype",void 0),a([Object(r.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),a([Object(r.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),a([Object(r.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),a([Object(r.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),a([Object(r.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),a([Object(r.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),a([Object(r.query)(".md-form")],e.prototype,"form",void 0),e=a([Object(s.f)("md-form")],e),t.ELEMENT=e}(o||(o={}))}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[65],{93:function(t,i,e){"use strict";e.r(i),e.d(i,"FloatingModal",(function(){return o}));e(17),e(15);var o,n=e(7),a=e(5),s=e(4),r=(e(44),e(45),e(46),e(20)),l=e.n(r),d=(e(47),e(0)),h=e(2),c=e(6),m=(e(74),e(61)),p=function(t,i,e,o){var n,a=arguments.length,s=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,o);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(s=(a<3?n(s):a>3?n(i,e,s):n(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s},u=function(t,i,e,o){return new(e||(e=Promise))((function(n,a){function s(t){try{l(o.next(t))}catch(t){a(t)}}function r(t){try{l(o.throw(t))}catch(t){a(t)}}function l(t){var i;t.done?n(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(s,r)}l((o=o.apply(t,i||[])).next())}))};!function(t){let i=class extends(Object(n.a)(Object(n.e)(d.LitElement))){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.aspectRatio=!1,this.fixed=!1,this.full=!1,this.closeAriaLabel="Close Modal",this.resizeAriaLabel="Resize Modal",this.minimizeAriaLabel="Minimize Modal",this.minimize=!1,this.minimizable=!1,this.containerRect=null,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.resizeMoveListener=t=>{const{target:i}=t;let e=parseFloat(i.getAttribute("data-x"))||0,o=parseFloat(i.getAttribute("data-y"))||0;i.style.setProperty("width",t.rect.width+"px","important"),i.style.setProperty("height",t.rect.height+"px","important");const{initialX:n,initialY:a}=this.getInitialPosition();e+=t.deltaRect.left+n,o+=t.deltaRect.top+a,this.setTargetPosition(i,e,o),this.applyInitialPosition=!1},this.resizeEndListener=()=>{this.setContainerRect()},this.getInitialPosition=()=>{var t,i;return this.applyInitialPosition&&this.position?{initialX:Number(null===(t=this.position)||void 0===t?void 0:t.x),initialY:Number(null===(i=this.position)||void 0===i?void 0:i.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:i}=t,{x:e,y:o}=this.getTransformValues(t);this.setTargetPosition(i,e,o),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[s.a,m.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,i,e,o;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(i=this.position)||void 0===i?void 0:i.x)||Number(null===(e=this.container)||void 0===e?void 0:e.getAttribute("data-y"))!==(null===(o=this.position)||void 0===o?void 0:o.y)}setInitialTargetPosition(){var t,i;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.position)||void 0===t?void 0:t.x),Number(null===(i=this.position)||void 0===i?void 0:i.y))}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),i=this.container.getAttribute("data-y");return t&&i?(this.dispatchEvent(new CustomEvent("floating-modal-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:i}}})),`translate(${t}px, ${i}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame(()=>u(this,void 0,void 0,(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()})))}setInteractInstance(){requestAnimationFrame(()=>{this.container&&l()(this.container).resizable({edges:{left:!0,right:!0,bottom:!0,top:!0},listeners:{end:this.resizeEndListener,move:this.resizeMoveListener},modifiers:this.aspectRatio?[l.a.modifiers.aspectRatio({ratio:"preserve",equalDelta:!0,modifiers:[l.a.modifiers.restrictSize({max:"parent"})]})]:void 0}).draggable({autoScroll:!0,allowFrom:this.header,ignoreFrom:this.body,listeners:{move:this.dragMoveListener,end:this.dragEndListener}})})}handleClose(t){this.show=!1,this.full=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleMinimize(t){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:i,dx:e,dy:o}=t,{initialX:n,initialY:a}=this.getInitialPosition();return{x:(parseFloat(i.getAttribute("data-x"))||0)+e+n,y:(parseFloat(i.getAttribute("data-y"))||0)+o+a}}setTargetPosition(t,i,e){t.style.transform=`translate(${i}px, ${e}px)`,t.setAttribute("data-x",""+i),t.setAttribute("data-y",""+e)}destroyInteractInstance(){this.container&&l.a.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`
2
+ ${this.show?d.html`
3
+ <div
4
+ class="md-floating ${this.fixed?"fixed":""} ${this.minimize?"hide":""}"
5
+ part="floating"
6
+ role="dialog"
7
+ aria-label=${Object(c.ifDefined)(this.label||void 0)}
8
+ aria-modal="true"
9
+ style=${Object(c.ifDefined)(this.containerRect?`width: ${this.full?"100% !important":this.containerRect.width+"px !important"};\n height: ${this.full?"100% !important":this.containerRect.height+"px !important"};\n top: ${this.full?"0 !important":""};\n left: ${this.full?"0 !important":""};\n bottom: ${this.full?"0 !important":""};\n right: ${this.full?"0 !important":""};\n ${this.full?"transform: none !important":""};\n ${this.full?"":`transform: ${this.position?`translate(${this.position.x}px, ${this.position.y}px)`:this.containerTransform} !important`};`:void 0)}
10
+ >
11
+ <div class="md-floating__header">
12
+ <div class="md-floating__header-text">
13
+ ${this.heading?d.html`
14
+ ${this.heading}
15
+ `:d.html`
16
+ ${!this.minimize&&this.headerSlot}
17
+ <slot name="header"></slot>
18
+ `}
19
+ </div>
20
+ ${this.minimizable?d.html`
21
+ <md-button
22
+ color="color-none"
23
+ class="md-floating__minimize"
24
+ aria-label="${this.minimizeAriaLabel}"
25
+ circle
26
+ @click=${this.handleMinimize}
27
+ >
28
+ <md-icon name="minus_16"></md-icon>
29
+ </md-button>`:h.nothing}
30
+
31
+ ${this.minimize?"":d.html` <md-button
32
+ color="color-none"
33
+ class="md-floating__resize"
34
+ aria-label="${this.resizeAriaLabel}"
35
+ circle
36
+ @click=${this.handleToggleExpandCollapse}
37
+ >
38
+ <md-icon name=${this.full?"minimize_16":"maximize_16"}></md-icon>
39
+ </md-button>`}
40
+
41
+ <md-button
42
+ color="color-none"
43
+ class="md-floating__close"
44
+ aria-label="${this.closeAriaLabel}"
45
+ circle
46
+ @click=${this.handleClose}
47
+ >
48
+ <md-icon name="cancel_16"></md-icon>
49
+ </md-button>
50
+ </div>
51
+ <div class="md-floating__body" part="floating-body">
52
+ <slot></slot>
53
+ </div>
54
+ </div>
55
+ ${this.minimizable?d.html`
56
+ <div class="md-floating-min-parent" part="minimize-floating" tabindex="-1">
57
+ <md-floating-modal-minimized
58
+ class="float-modal-min"
59
+ part="floating-minimized"
60
+ heading=${this.heading}
61
+ .minimize=${this.minimize}
62
+ .minPosition=${this.minPosition}
63
+ @floating-min-modal-minimize=${t=>this.handleMinimize(t)}
64
+ @floating-modal-close=${this.handleClose}
65
+ ?show=${this.show}
66
+ >
67
+ ${this.minimize&&this.headerSlot}
68
+ </md-floating-modal-minimized>
69
+ </div>`:h.nothing}
70
+
71
+ `:h.nothing}
72
+ `}};p([Object(d.property)({type:String})],i.prototype,"heading",void 0),p([Object(d.property)({type:String})],i.prototype,"label",void 0),p([Object(d.property)({type:Boolean,reflect:!0})],i.prototype,"show",void 0),p([Object(d.property)({type:Boolean,reflect:!0,attribute:"aspect-ratio"})],i.prototype,"aspectRatio",void 0),p([Object(d.property)({type:Boolean,reflect:!0,attribute:"fixed-strategy"})],i.prototype,"fixed",void 0),p([Object(d.property)({type:Boolean,reflect:!0,attribute:"full-screen"})],i.prototype,"full",void 0),p([Object(d.property)({type:String,attribute:"close-aria-label"})],i.prototype,"closeAriaLabel",void 0),p([Object(d.property)({type:String,attribute:"resize-aria-label"})],i.prototype,"resizeAriaLabel",void 0),p([Object(d.property)({type:String,attribute:"minimize-aria-label"})],i.prototype,"minimizeAriaLabel",void 0),p([Object(d.property)({type:Boolean,reflect:!0})],i.prototype,"minimize",void 0),p([Object(d.property)({type:Object})],i.prototype,"position",void 0),p([Object(d.property)({type:Object})],i.prototype,"minPosition",void 0),p([Object(d.property)({type:Boolean,reflect:!0})],i.prototype,"minimizable",void 0),p([Object(d.property)({type:Object})],i.prototype,"containerRect",void 0),p([Object(d.internalProperty)()],i.prototype,"dragOccured",void 0),p([Object(d.query)(".md-floating")],i.prototype,"container",void 0),p([Object(d.query)(".md-floating__body")],i.prototype,"body",void 0),p([Object(d.query)(".md-floating__header")],i.prototype,"header",void 0),p([Object(d.query)(".md-floating-min-parent")],i.prototype,"minimizedHeader",void 0),p([Object(d.query)('slot[name="header"]')],i.prototype,"headerSlot",void 0),i=p([Object(a.a)("md-floating-modal")],i),t.ELEMENT=i}(o||(o={}))}}]);
@@ -1,17 +1,19 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[66],{114:function(s,e,t){"use strict";t.r(e),t.d(e,"InputFile",(function(){return a}));t(17);var a,i=t(7),r=t(4),l=t(23),n=t.n(l),o=t(0),j=t(2),c=t(6),p=o.css`:host(md-input-file) md-button{margin:.25rem}:host(md-input-file) input[type=file]{display:none}`,u=function(s,e,t,a){var i,r=arguments.length,l=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(s,e,t,a);else for(var n=s.length-1;n>=0;n--)(i=s[n])&&(l=(r<3?i(l):r>3?i(e,t,l):i(e,t))||l);return r>3&&l&&Object.defineProperty(e,t,l),l},m=function(s,e,t,a){return new(t||(t=Promise))((function(i,r){function l(s){try{o(a.next(s))}catch(s){r(s)}}function n(s){try{o(a.throw(s))}catch(s){r(s)}}function o(s){var e;s.done?i(s.value):(e=s.value,e instanceof t?e:new t((function(s){s(e)}))).then(l,n)}o((a=a.apply(s,e||[])).next())}))};!function(s){let e=class extends o.LitElement{constructor(){super(...arguments),this.acceptLanguage="javascript",this.getLocalization="Input File",this.acceptTypes="",this.fileName=""}static get styles(){return[r.a,p]}triggerFileLoad(s){s.preventDefault(),this.input.click()}handleFile(s){return m(this,void 0,void 0,(function*(){s.preventDefault();const e=this.input.files;if(e&&0!==e.length)for(const s of e){let e="";this.fileName=s.name;try{e=yield this.readFile(s)}catch(s){e=""}}}))}readFile(s){return new Promise((e,t)=>{const a=new FileReader;a.onload=s=>{e(s.target.result)},a.onerror=s=>t(s),a.readAsText(s)})}importLanguage(s){return m(this,void 0,void 0,(function*(){try{const{default:e}=yield t(88)("./"+s);n.a.registerLanguage(""+s,e),this.setAcceptTypes()}catch(s){console.warn("Please set correct language name")}}))}getAllAcceptTypes(){const s=n.a.listLanguages();return s.length?s.map(s=>n.a.getLanguage(""+s).aliases).map(s=>s.map(s=>"."+s)).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(s){super.updated(s),s.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage)}render(){return o.html`
2
- <div class="md-input-file">
3
- <label for="file-input">
4
- <md-button color="blue" class="md-input-file-btn" @click=${this.triggerFileLoad}>
5
- ${this.getLocalization.trim()}
6
- </md-button>
7
- ${this.fileName.length?this.fileName:j.nothing}
8
- </label>
9
- <input
10
- type="file"
11
- id="file-input"
12
- name="file-input"
13
- accept=${Object(c.ifDefined)(this.acceptTypes||void 0)}
14
- @change=${s=>this.handleFile(s)}
15
- />
16
- </div>
17
- `}};u([Object(o.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),u([Object(o.property)({type:String})],e.prototype,"getLocalization",void 0),u([Object(o.query)("input[type='file']")],e.prototype,"input",void 0),u([Object(o.internalProperty)()],e.prototype,"acceptTypes",void 0),u([Object(o.internalProperty)()],e.prototype,"fileName",void 0),e=u([Object(i.f)("md-input-file")],e),s.ELEMENT=e}(a||(a={}))},88:function(s,e,t){var a={"./1c":[125,84],"./1c.js":[125,84],"./abnf":[126,85],"./abnf.js":[126,85],"./accesslog":[127,86],"./accesslog.js":[127,86],"./actionscript":[128,87],"./actionscript.js":[128,87],"./ada":[129,88],"./ada.js":[129,88],"./angelscript":[130,89],"./angelscript.js":[130,89],"./apache":[131,90],"./apache.js":[131,90],"./applescript":[132,91],"./applescript.js":[132,91],"./arcade":[133,92],"./arcade.js":[133,92],"./arduino":[134,93],"./arduino.js":[134,93],"./armasm":[135,94],"./armasm.js":[135,94],"./asciidoc":[136,95],"./asciidoc.js":[136,95],"./aspectj":[137,96],"./aspectj.js":[137,96],"./autohotkey":[138,97],"./autohotkey.js":[138,97],"./autoit":[139,98],"./autoit.js":[139,98],"./avrasm":[140,99],"./avrasm.js":[140,99],"./awk":[141,100],"./awk.js":[141,100],"./axapta":[142,101],"./axapta.js":[142,101],"./bash":[143,102],"./bash.js":[143,102],"./basic":[144,103],"./basic.js":[144,103],"./bnf":[145,104],"./bnf.js":[145,104],"./brainfuck":[146,105],"./brainfuck.js":[146,105],"./c":[148,107],"./c-like":[147,106],"./c-like.js":[147,106],"./c.js":[148,107],"./cal":[149,108],"./cal.js":[149,108],"./capnproto":[150,109],"./capnproto.js":[150,109],"./ceylon":[151,110],"./ceylon.js":[151,110],"./clean":[152,111],"./clean.js":[152,111],"./clojure":[154,113],"./clojure-repl":[153,112],"./clojure-repl.js":[153,112],"./clojure.js":[154,113],"./cmake":[155,114],"./cmake.js":[155,114],"./coffeescript":[156,115],"./coffeescript.js":[156,115],"./coq":[157,116],"./coq.js":[157,116],"./cos":[158,117],"./cos.js":[158,117],"./cpp":[159,118],"./cpp.js":[159,118],"./crmsh":[160,119],"./crmsh.js":[160,119],"./crystal":[161,120],"./crystal.js":[161,120],"./csharp":[162,121],"./csharp.js":[162,121],"./csp":[163,122],"./csp.js":[163,122],"./css":[164,123],"./css.js":[164,123],"./d":[165,124],"./d.js":[165,124],"./dart":[166,125],"./dart.js":[166,125],"./delphi":[167,126],"./delphi.js":[167,126],"./diff":[168,127],"./diff.js":[168,127],"./django":[169,128],"./django.js":[169,128],"./dns":[170,129],"./dns.js":[170,129],"./dockerfile":[171,130],"./dockerfile.js":[171,130],"./dos":[172,131],"./dos.js":[172,131],"./dsconfig":[173,132],"./dsconfig.js":[173,132],"./dts":[174,133],"./dts.js":[174,133],"./dust":[175,134],"./dust.js":[175,134],"./ebnf":[176,135],"./ebnf.js":[176,135],"./elixir":[177,136],"./elixir.js":[177,136],"./elm":[178,137],"./elm.js":[178,137],"./erb":[179,138],"./erb.js":[179,138],"./erlang":[181,140],"./erlang-repl":[180,139],"./erlang-repl.js":[180,139],"./erlang.js":[181,140],"./excel":[182,141],"./excel.js":[182,141],"./fix":[183,142],"./fix.js":[183,142],"./flix":[184,143],"./flix.js":[184,143],"./fortran":[185,144],"./fortran.js":[185,144],"./fsharp":[186,145],"./fsharp.js":[186,145],"./gams":[187,146],"./gams.js":[187,146],"./gauss":[188,147],"./gauss.js":[188,147],"./gcode":[189,148],"./gcode.js":[189,148],"./gherkin":[190,149],"./gherkin.js":[190,149],"./glsl":[191,150],"./glsl.js":[191,150],"./gml":[192,151],"./gml.js":[192,151],"./go":[193,152],"./go.js":[193,152],"./golo":[194,153],"./golo.js":[194,153],"./gradle":[195,154],"./gradle.js":[195,154],"./groovy":[196,155],"./groovy.js":[196,155],"./haml":[197,156],"./haml.js":[197,156],"./handlebars":[198,157],"./handlebars.js":[198,157],"./haskell":[199,158],"./haskell.js":[199,158],"./haxe":[200,159],"./haxe.js":[200,159],"./hsp":[201,160],"./hsp.js":[201,160],"./htmlbars":[202,161],"./htmlbars.js":[202,161],"./http":[203,162],"./http.js":[203,162],"./hy":[204,163],"./hy.js":[204,163],"./inform7":[205,164],"./inform7.js":[205,164],"./ini":[206,165],"./ini.js":[206,165],"./irpf90":[207,166],"./irpf90.js":[207,166],"./isbl":[208,167],"./isbl.js":[208,167],"./java":[209,168],"./java.js":[209,168],"./javascript":[210,169],"./javascript.js":[210,169],"./jboss-cli":[211,170],"./jboss-cli.js":[211,170],"./json":[212,171],"./json.js":[212,171],"./julia":[214,173],"./julia-repl":[213,172],"./julia-repl.js":[213,172],"./julia.js":[214,173],"./kotlin":[215,174],"./kotlin.js":[215,174],"./lasso":[216,175],"./lasso.js":[216,175],"./latex":[217,176],"./latex.js":[217,176],"./ldif":[218,177],"./ldif.js":[218,177],"./leaf":[219,178],"./leaf.js":[219,178],"./less":[220,179],"./less.js":[220,179],"./lisp":[221,180],"./lisp.js":[221,180],"./livecodeserver":[222,181],"./livecodeserver.js":[222,181],"./livescript":[223,182],"./livescript.js":[223,182],"./llvm":[224,183],"./llvm.js":[224,183],"./lsl":[225,184],"./lsl.js":[225,184],"./lua":[226,185],"./lua.js":[226,185],"./makefile":[227,186],"./makefile.js":[227,186],"./markdown":[228,187],"./markdown.js":[228,187],"./mathematica":[229,188],"./mathematica.js":[229,188],"./matlab":[230,189],"./matlab.js":[230,189],"./maxima":[231,190],"./maxima.js":[231,190],"./mel":[232,191],"./mel.js":[232,191],"./mercury":[233,192],"./mercury.js":[233,192],"./mipsasm":[234,193],"./mipsasm.js":[234,193],"./mizar":[235,194],"./mizar.js":[235,194],"./mojolicious":[236,195],"./mojolicious.js":[236,195],"./monkey":[237,196],"./monkey.js":[237,196],"./moonscript":[238,197],"./moonscript.js":[238,197],"./n1ql":[239,198],"./n1ql.js":[239,198],"./nginx":[240,199],"./nginx.js":[240,199],"./nim":[241,200],"./nim.js":[241,200],"./nix":[242,201],"./nix.js":[242,201],"./node-repl":[243,202],"./node-repl.js":[243,202],"./nsis":[244,203],"./nsis.js":[244,203],"./objectivec":[245,204],"./objectivec.js":[245,204],"./ocaml":[246,205],"./ocaml.js":[246,205],"./openscad":[247,206],"./openscad.js":[247,206],"./oxygene":[248,207],"./oxygene.js":[248,207],"./parser3":[249,208],"./parser3.js":[249,208],"./perl":[250,209],"./perl.js":[250,209],"./pf":[251,210],"./pf.js":[251,210],"./pgsql":[252,211],"./pgsql.js":[252,211],"./php":[254,213],"./php-template":[253,212],"./php-template.js":[253,212],"./php.js":[254,213],"./plaintext":[255,214],"./plaintext.js":[255,214],"./pony":[256,215],"./pony.js":[256,215],"./powershell":[257,216],"./powershell.js":[257,216],"./processing":[258,217],"./processing.js":[258,217],"./profile":[259,218],"./profile.js":[259,218],"./prolog":[260,219],"./prolog.js":[260,219],"./properties":[261,220],"./properties.js":[261,220],"./protobuf":[262,221],"./protobuf.js":[262,221],"./puppet":[263,222],"./puppet.js":[263,222],"./purebasic":[264,223],"./purebasic.js":[264,223],"./python":[266,225],"./python-repl":[265,224],"./python-repl.js":[265,224],"./python.js":[266,225],"./q":[267,226],"./q.js":[267,226],"./qml":[268,227],"./qml.js":[268,227],"./r":[269,228],"./r.js":[269,228],"./reasonml":[270,229],"./reasonml.js":[270,229],"./rib":[271,230],"./rib.js":[271,230],"./roboconf":[272,231],"./roboconf.js":[272,231],"./routeros":[273,232],"./routeros.js":[273,232],"./rsl":[274,233],"./rsl.js":[274,233],"./ruby":[275,234],"./ruby.js":[275,234],"./ruleslanguage":[276,235],"./ruleslanguage.js":[276,235],"./rust":[277,236],"./rust.js":[277,236],"./sas":[278,237],"./sas.js":[278,237],"./scala":[279,238],"./scala.js":[279,238],"./scheme":[280,239],"./scheme.js":[280,239],"./scilab":[281,240],"./scilab.js":[281,240],"./scss":[282,241],"./scss.js":[282,241],"./shell":[283,242],"./shell.js":[283,242],"./smali":[284,243],"./smali.js":[284,243],"./smalltalk":[285,244],"./smalltalk.js":[285,244],"./sml":[286,245],"./sml.js":[286,245],"./sqf":[287,246],"./sqf.js":[287,246],"./sql":[288,247],"./sql.js":[288,247],"./sql_more":[289,248],"./sql_more.js":[289,248],"./stan":[290,249],"./stan.js":[290,249],"./stata":[291,250],"./stata.js":[291,250],"./step21":[292,251],"./step21.js":[292,251],"./stylus":[293,252],"./stylus.js":[293,252],"./subunit":[294,253],"./subunit.js":[294,253],"./swift":[295,254],"./swift.js":[295,254],"./taggerscript":[296,255],"./taggerscript.js":[296,255],"./tap":[297,256],"./tap.js":[297,256],"./tcl":[298,257],"./tcl.js":[298,257],"./thrift":[299,258],"./thrift.js":[299,258],"./tp":[300,259],"./tp.js":[300,259],"./twig":[301,260],"./twig.js":[301,260],"./typescript":[302,261],"./typescript.js":[302,261],"./vala":[303,262],"./vala.js":[303,262],"./vbnet":[304,263],"./vbnet.js":[304,263],"./vbscript":[306,265],"./vbscript-html":[305,264],"./vbscript-html.js":[305,264],"./vbscript.js":[306,265],"./verilog":[307,266],"./verilog.js":[307,266],"./vhdl":[308,267],"./vhdl.js":[308,267],"./vim":[309,268],"./vim.js":[309,268],"./x86asm":[310,269],"./x86asm.js":[310,269],"./xl":[311,270],"./xl.js":[311,270],"./xml":[312,271],"./xml.js":[312,271],"./xquery":[313,272],"./xquery.js":[313,272],"./yaml":[314,273],"./yaml.js":[314,273],"./zephir":[315,274],"./zephir.js":[315,274]};function i(s){if(!t.o(a,s))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+s+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=a[s],i=e[0];return t.e(e[1]).then((function(){return t.t(i,7)}))}i.keys=function(){return Object.keys(a)},i.id=88,s.exports=i}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[66],{94:function(t,e,i){"use strict";i.r(e),i.d(e,"Form",(function(){return o}));var o,r=i(0),n=i(6),s=i(7),a=function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends(Object(s.e)(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}))}}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`
2
+ <form
3
+ class="md-form"
4
+ role="form"
5
+ name=${Object(n.ifDefined)(this.name||void 0)}
6
+ rel=${Object(n.ifDefined)(this.rel||void 0)}
7
+ action=${Object(n.ifDefined)(this.action||void 0)}
8
+ accept-charset=${this.charset}
9
+ enctype=${this.enctype}
10
+ aria-label=${Object(n.ifDefined)(this.label||void 0)}
11
+ ?novalidate=${this.novalidate}
12
+ method=${this.method}
13
+ target=${this.target}
14
+ part="form"
15
+ @submit=${this.handleFormSubmit}
16
+ >
17
+ <slot></slot>
18
+ </form>
19
+ `}};a([Object(r.property)({type:String})],e.prototype,"rel",void 0),a([Object(r.property)({type:String})],e.prototype,"name",void 0),a([Object(r.property)({type:String})],e.prototype,"action",void 0),a([Object(r.property)({type:String})],e.prototype,"label",void 0),a([Object(r.property)({type:String})],e.prototype,"method",void 0),a([Object(r.property)({type:String})],e.prototype,"target",void 0),a([Object(r.property)({type:String})],e.prototype,"enctype",void 0),a([Object(r.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),a([Object(r.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),a([Object(r.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),a([Object(r.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),a([Object(r.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),a([Object(r.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),a([Object(r.query)(".md-form")],e.prototype,"form",void 0),e=a([Object(s.f)("md-form")],e),t.ELEMENT=e}(o||(o={}))}}]);
@@ -1,22 +1,17 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[67],{115:function(e,n,i){"use strict";i.r(n),i.d(n,"linkTag",(function(){return c})),i.d(n,"linkColor",(function(){return s})),i.d(n,"Link",(function(){return k}));var l=i(4),t=i(5),r=i(0),o=i(3),d=r.css`.md-link{color:var(--link-default,#005e7d);border-radius:.25rem;cursor:pointer;display:inline-flex;font-size:var(--link-inline-font-size,14px);line-height:170%;width:fit-content}.md-link:hover{color:var(--link-hover,#005e7d)}.md-link:focus{box-shadow:0 0 0 2px var(--link-focus-outline,#007aa3);color:var(--link-focus,#005e7d)}.md-link.active{color:var(--link-pressed,#064157)}.md-link.disabled,.md-link.md-link--inline.disabled{color:var(--link-disabled,#b2b2b2)}.md-link.md-link--inline{color:var(--link-inline,#a12512)}.md-link.md-link--inline:hover{color:var(--link-inline-hover,#6e1d13)}.md-link.md-link--inline:focus{color:var(--link-inline-focus,#a12512)}.md-link.md-link--inline.active{color:var(--link-inline-pressed,#4a1812)}.md-link .md-link--blue{color:var(--link-blue,#00a0d1)}.md-link .md-link--blue:hover{color:var(--link-blue-hover,#007aa3)}.md-link .md-link--blue.active{color:var(--link-blue-active,#005e7d)}.md-link .md-link--red{color:var(--link-red,#f7644a)}.md-link .md-link--red:hover{color:var(--link-red-hover,#d4371c)}.md-link .md-link--red.active{color:var(--link-red-active,#a12512)}.md-link .md-link--green{color:var(--link-green,#00ab50)}.md-link .md-link--green:hover{color:var(--link-green-hover,#00853c)}.md-link .md-link--green.active{color:var(--link-green-active,#03612c)}.md-link .md-link--yellow{color:var(--link-yellow,#d97f00)}.md-link .md-link--yellow:hover{color:var(--link-yellow-hover,#a85f00)}.md-link .md-link--yellow.active{color:var(--link-yellow-active,#7d4705)}.md-link .md-link--orange{color:var(--link-orange,#f26b1d)}.md-link .md-link--orange:hover{color:var(--link-orange-hover,#c74f0e)}.md-link .md-link--orange.active{color:var(--link-orange-active,#914017)}.md-link:focus{outline:0}.md-link.disabled{pointer-events:none}.md-link--inline{font-size:var(--link-inline-font-size,14px);line-height:100%;text-decoration:underline}`,a=function(e,n,i,l){var t,r=arguments.length,o=r<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,i):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,i,l);else for(var d=e.length-1;d>=0;d--)(t=e[d])&&(o=(r<3?t(o):r>3?t(n,i,o):t(n,i))||o);return r>3&&o&&Object.defineProperty(n,i,o),o};const c=["a","div","span"],s=["","blue","red","green","yellow","orange"];var k;!function(e){let n=class extends r.LitElement{constructor(){super(...arguments),this.color="",this.disabled=!1,this.inline=!1,this.href="",this.tag="a",this.target="_self",this._tabIndex=0}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){const n=this._tabIndex;this._tabIndex=e,this.requestUpdate("tabIndex",n)}static get styles(){return[l.a,d]}render(){const e={["md-link--"+this.color]:this.color,"md-link--inline":this.inline,disabled:this.disabled};return r.html`
2
- ${(()=>{switch(this.tag){case"div":return r.html`
3
- <div class="md-link ${Object(o.classMap)(e)}" tabindex=${this.tabIndex} role="link" part="link">
4
- <slot></slot>
5
- </div>
6
- `;case"span":return r.html`
7
- <span class="md-link ${Object(o.classMap)(e)}" tabindex=${this.tabIndex} role="link" part="link">
8
- <slot></slot>
9
- </span>
10
- `;default:return r.html`
11
- <a
12
- class="md-link ${Object(o.classMap)(e)}"
13
- .target="${this.target}"
14
- href=${this.href}
15
- tabindex=${this.tabIndex}
16
- role="link"
17
- part="link"
18
- >
19
- <slot></slot>
20
- </a>
21
- `}})()}
22
- `}};a([Object(r.property)({type:String,attribute:!1})],n.prototype,"color",void 0),a([Object(r.property)({type:Boolean})],n.prototype,"disabled",void 0),a([Object(r.property)({type:Boolean})],n.prototype,"inline",void 0),a([Object(r.property)({type:String})],n.prototype,"href",void 0),a([Object(r.property)({type:String})],n.prototype,"tag",void 0),a([Object(r.property)({type:String})],n.prototype,"target",void 0),a([Object(r.property)({type:Number,attribute:"tab-index",reflect:!0})],n.prototype,"tabIndex",null),n=a([Object(t.a)("md-link")],n),e.ELEMENT=n}(k||(k={}))}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[67],{115:function(s,e,t){"use strict";t.r(e),t.d(e,"InputFile",(function(){return a}));t(17);var a,i=t(7),r=t(4),l=t(23),n=t.n(l),o=t(0),j=t(2),c=t(6),p=o.css`:host(md-input-file) md-button{margin:.25rem}:host(md-input-file) input[type=file]{display:none}`,u=function(s,e,t,a){var i,r=arguments.length,l=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(s,e,t,a);else for(var n=s.length-1;n>=0;n--)(i=s[n])&&(l=(r<3?i(l):r>3?i(e,t,l):i(e,t))||l);return r>3&&l&&Object.defineProperty(e,t,l),l},m=function(s,e,t,a){return new(t||(t=Promise))((function(i,r){function l(s){try{o(a.next(s))}catch(s){r(s)}}function n(s){try{o(a.throw(s))}catch(s){r(s)}}function o(s){var e;s.done?i(s.value):(e=s.value,e instanceof t?e:new t((function(s){s(e)}))).then(l,n)}o((a=a.apply(s,e||[])).next())}))};!function(s){let e=class extends o.LitElement{constructor(){super(...arguments),this.acceptLanguage="javascript",this.getLocalization="Input File",this.acceptTypes="",this.fileName=""}static get styles(){return[r.a,p]}triggerFileLoad(s){s.preventDefault(),this.input.click()}handleFile(s){return m(this,void 0,void 0,(function*(){s.preventDefault();const e=this.input.files;if(e&&0!==e.length)for(const s of e){let e="";this.fileName=s.name;try{e=yield this.readFile(s)}catch(s){e=""}}}))}readFile(s){return new Promise((e,t)=>{const a=new FileReader;a.onload=s=>{e(s.target.result)},a.onerror=s=>t(s),a.readAsText(s)})}importLanguage(s){return m(this,void 0,void 0,(function*(){try{const{default:e}=yield t(88)("./"+s);n.a.registerLanguage(""+s,e),this.setAcceptTypes()}catch(s){console.warn("Please set correct language name")}}))}getAllAcceptTypes(){const s=n.a.listLanguages();return s.length?s.map(s=>n.a.getLanguage(""+s).aliases).map(s=>s.map(s=>"."+s)).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(s){super.updated(s),s.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage)}render(){return o.html`
2
+ <div class="md-input-file">
3
+ <label for="file-input">
4
+ <md-button color="blue" class="md-input-file-btn" @click=${this.triggerFileLoad}>
5
+ ${this.getLocalization.trim()}
6
+ </md-button>
7
+ ${this.fileName.length?this.fileName:j.nothing}
8
+ </label>
9
+ <input
10
+ type="file"
11
+ id="file-input"
12
+ name="file-input"
13
+ accept=${Object(c.ifDefined)(this.acceptTypes||void 0)}
14
+ @change=${s=>this.handleFile(s)}
15
+ />
16
+ </div>
17
+ `}};u([Object(o.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),u([Object(o.property)({type:String})],e.prototype,"getLocalization",void 0),u([Object(o.query)("input[type='file']")],e.prototype,"input",void 0),u([Object(o.internalProperty)()],e.prototype,"acceptTypes",void 0),u([Object(o.internalProperty)()],e.prototype,"fileName",void 0),e=u([Object(i.f)("md-input-file")],e),s.ELEMENT=e}(a||(a={}))},88:function(s,e,t){var a={"./1c":[126,85],"./1c.js":[126,85],"./abnf":[127,86],"./abnf.js":[127,86],"./accesslog":[128,87],"./accesslog.js":[128,87],"./actionscript":[129,88],"./actionscript.js":[129,88],"./ada":[130,89],"./ada.js":[130,89],"./angelscript":[131,90],"./angelscript.js":[131,90],"./apache":[132,91],"./apache.js":[132,91],"./applescript":[133,92],"./applescript.js":[133,92],"./arcade":[134,93],"./arcade.js":[134,93],"./arduino":[135,94],"./arduino.js":[135,94],"./armasm":[136,95],"./armasm.js":[136,95],"./asciidoc":[137,96],"./asciidoc.js":[137,96],"./aspectj":[138,97],"./aspectj.js":[138,97],"./autohotkey":[139,98],"./autohotkey.js":[139,98],"./autoit":[140,99],"./autoit.js":[140,99],"./avrasm":[141,100],"./avrasm.js":[141,100],"./awk":[142,101],"./awk.js":[142,101],"./axapta":[143,102],"./axapta.js":[143,102],"./bash":[144,103],"./bash.js":[144,103],"./basic":[145,104],"./basic.js":[145,104],"./bnf":[146,105],"./bnf.js":[146,105],"./brainfuck":[147,106],"./brainfuck.js":[147,106],"./c":[149,108],"./c-like":[148,107],"./c-like.js":[148,107],"./c.js":[149,108],"./cal":[150,109],"./cal.js":[150,109],"./capnproto":[151,110],"./capnproto.js":[151,110],"./ceylon":[152,111],"./ceylon.js":[152,111],"./clean":[153,112],"./clean.js":[153,112],"./clojure":[155,114],"./clojure-repl":[154,113],"./clojure-repl.js":[154,113],"./clojure.js":[155,114],"./cmake":[156,115],"./cmake.js":[156,115],"./coffeescript":[157,116],"./coffeescript.js":[157,116],"./coq":[158,117],"./coq.js":[158,117],"./cos":[159,118],"./cos.js":[159,118],"./cpp":[160,119],"./cpp.js":[160,119],"./crmsh":[161,120],"./crmsh.js":[161,120],"./crystal":[162,121],"./crystal.js":[162,121],"./csharp":[163,122],"./csharp.js":[163,122],"./csp":[164,123],"./csp.js":[164,123],"./css":[165,124],"./css.js":[165,124],"./d":[166,125],"./d.js":[166,125],"./dart":[167,126],"./dart.js":[167,126],"./delphi":[168,127],"./delphi.js":[168,127],"./diff":[169,128],"./diff.js":[169,128],"./django":[170,129],"./django.js":[170,129],"./dns":[171,130],"./dns.js":[171,130],"./dockerfile":[172,131],"./dockerfile.js":[172,131],"./dos":[173,132],"./dos.js":[173,132],"./dsconfig":[174,133],"./dsconfig.js":[174,133],"./dts":[175,134],"./dts.js":[175,134],"./dust":[176,135],"./dust.js":[176,135],"./ebnf":[177,136],"./ebnf.js":[177,136],"./elixir":[178,137],"./elixir.js":[178,137],"./elm":[179,138],"./elm.js":[179,138],"./erb":[180,139],"./erb.js":[180,139],"./erlang":[182,141],"./erlang-repl":[181,140],"./erlang-repl.js":[181,140],"./erlang.js":[182,141],"./excel":[183,142],"./excel.js":[183,142],"./fix":[184,143],"./fix.js":[184,143],"./flix":[185,144],"./flix.js":[185,144],"./fortran":[186,145],"./fortran.js":[186,145],"./fsharp":[187,146],"./fsharp.js":[187,146],"./gams":[188,147],"./gams.js":[188,147],"./gauss":[189,148],"./gauss.js":[189,148],"./gcode":[190,149],"./gcode.js":[190,149],"./gherkin":[191,150],"./gherkin.js":[191,150],"./glsl":[192,151],"./glsl.js":[192,151],"./gml":[193,152],"./gml.js":[193,152],"./go":[194,153],"./go.js":[194,153],"./golo":[195,154],"./golo.js":[195,154],"./gradle":[196,155],"./gradle.js":[196,155],"./groovy":[197,156],"./groovy.js":[197,156],"./haml":[198,157],"./haml.js":[198,157],"./handlebars":[199,158],"./handlebars.js":[199,158],"./haskell":[200,159],"./haskell.js":[200,159],"./haxe":[201,160],"./haxe.js":[201,160],"./hsp":[202,161],"./hsp.js":[202,161],"./htmlbars":[203,162],"./htmlbars.js":[203,162],"./http":[204,163],"./http.js":[204,163],"./hy":[205,164],"./hy.js":[205,164],"./inform7":[206,165],"./inform7.js":[206,165],"./ini":[207,166],"./ini.js":[207,166],"./irpf90":[208,167],"./irpf90.js":[208,167],"./isbl":[209,168],"./isbl.js":[209,168],"./java":[210,169],"./java.js":[210,169],"./javascript":[211,170],"./javascript.js":[211,170],"./jboss-cli":[212,171],"./jboss-cli.js":[212,171],"./json":[213,172],"./json.js":[213,172],"./julia":[215,174],"./julia-repl":[214,173],"./julia-repl.js":[214,173],"./julia.js":[215,174],"./kotlin":[216,175],"./kotlin.js":[216,175],"./lasso":[217,176],"./lasso.js":[217,176],"./latex":[218,177],"./latex.js":[218,177],"./ldif":[219,178],"./ldif.js":[219,178],"./leaf":[220,179],"./leaf.js":[220,179],"./less":[221,180],"./less.js":[221,180],"./lisp":[222,181],"./lisp.js":[222,181],"./livecodeserver":[223,182],"./livecodeserver.js":[223,182],"./livescript":[224,183],"./livescript.js":[224,183],"./llvm":[225,184],"./llvm.js":[225,184],"./lsl":[226,185],"./lsl.js":[226,185],"./lua":[227,186],"./lua.js":[227,186],"./makefile":[228,187],"./makefile.js":[228,187],"./markdown":[229,188],"./markdown.js":[229,188],"./mathematica":[230,189],"./mathematica.js":[230,189],"./matlab":[231,190],"./matlab.js":[231,190],"./maxima":[232,191],"./maxima.js":[232,191],"./mel":[233,192],"./mel.js":[233,192],"./mercury":[234,193],"./mercury.js":[234,193],"./mipsasm":[235,194],"./mipsasm.js":[235,194],"./mizar":[236,195],"./mizar.js":[236,195],"./mojolicious":[237,196],"./mojolicious.js":[237,196],"./monkey":[238,197],"./monkey.js":[238,197],"./moonscript":[239,198],"./moonscript.js":[239,198],"./n1ql":[240,199],"./n1ql.js":[240,199],"./nginx":[241,200],"./nginx.js":[241,200],"./nim":[242,201],"./nim.js":[242,201],"./nix":[243,202],"./nix.js":[243,202],"./node-repl":[244,203],"./node-repl.js":[244,203],"./nsis":[245,204],"./nsis.js":[245,204],"./objectivec":[246,205],"./objectivec.js":[246,205],"./ocaml":[247,206],"./ocaml.js":[247,206],"./openscad":[248,207],"./openscad.js":[248,207],"./oxygene":[249,208],"./oxygene.js":[249,208],"./parser3":[250,209],"./parser3.js":[250,209],"./perl":[251,210],"./perl.js":[251,210],"./pf":[252,211],"./pf.js":[252,211],"./pgsql":[253,212],"./pgsql.js":[253,212],"./php":[255,214],"./php-template":[254,213],"./php-template.js":[254,213],"./php.js":[255,214],"./plaintext":[256,215],"./plaintext.js":[256,215],"./pony":[257,216],"./pony.js":[257,216],"./powershell":[258,217],"./powershell.js":[258,217],"./processing":[259,218],"./processing.js":[259,218],"./profile":[260,219],"./profile.js":[260,219],"./prolog":[261,220],"./prolog.js":[261,220],"./properties":[262,221],"./properties.js":[262,221],"./protobuf":[263,222],"./protobuf.js":[263,222],"./puppet":[264,223],"./puppet.js":[264,223],"./purebasic":[265,224],"./purebasic.js":[265,224],"./python":[267,226],"./python-repl":[266,225],"./python-repl.js":[266,225],"./python.js":[267,226],"./q":[268,227],"./q.js":[268,227],"./qml":[269,228],"./qml.js":[269,228],"./r":[270,229],"./r.js":[270,229],"./reasonml":[271,230],"./reasonml.js":[271,230],"./rib":[272,231],"./rib.js":[272,231],"./roboconf":[273,232],"./roboconf.js":[273,232],"./routeros":[274,233],"./routeros.js":[274,233],"./rsl":[275,234],"./rsl.js":[275,234],"./ruby":[276,235],"./ruby.js":[276,235],"./ruleslanguage":[277,236],"./ruleslanguage.js":[277,236],"./rust":[278,237],"./rust.js":[278,237],"./sas":[279,238],"./sas.js":[279,238],"./scala":[280,239],"./scala.js":[280,239],"./scheme":[281,240],"./scheme.js":[281,240],"./scilab":[282,241],"./scilab.js":[282,241],"./scss":[283,242],"./scss.js":[283,242],"./shell":[284,243],"./shell.js":[284,243],"./smali":[285,244],"./smali.js":[285,244],"./smalltalk":[286,245],"./smalltalk.js":[286,245],"./sml":[287,246],"./sml.js":[287,246],"./sqf":[288,247],"./sqf.js":[288,247],"./sql":[289,248],"./sql.js":[289,248],"./sql_more":[290,249],"./sql_more.js":[290,249],"./stan":[291,250],"./stan.js":[291,250],"./stata":[292,251],"./stata.js":[292,251],"./step21":[293,252],"./step21.js":[293,252],"./stylus":[294,253],"./stylus.js":[294,253],"./subunit":[295,254],"./subunit.js":[295,254],"./swift":[296,255],"./swift.js":[296,255],"./taggerscript":[297,256],"./taggerscript.js":[297,256],"./tap":[298,257],"./tap.js":[298,257],"./tcl":[299,258],"./tcl.js":[299,258],"./thrift":[300,259],"./thrift.js":[300,259],"./tp":[301,260],"./tp.js":[301,260],"./twig":[302,261],"./twig.js":[302,261],"./typescript":[303,262],"./typescript.js":[303,262],"./vala":[304,263],"./vala.js":[304,263],"./vbnet":[305,264],"./vbnet.js":[305,264],"./vbscript":[307,266],"./vbscript-html":[306,265],"./vbscript-html.js":[306,265],"./vbscript.js":[307,266],"./verilog":[308,267],"./verilog.js":[308,267],"./vhdl":[309,268],"./vhdl.js":[309,268],"./vim":[310,269],"./vim.js":[310,269],"./x86asm":[311,270],"./x86asm.js":[311,270],"./xl":[312,271],"./xl.js":[312,271],"./xml":[313,272],"./xml.js":[313,272],"./xquery":[314,273],"./xquery.js":[314,273],"./yaml":[315,274],"./yaml.js":[315,274],"./zephir":[316,275],"./zephir.js":[316,275]};function i(s){if(!t.o(a,s))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+s+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=a[s],i=e[0];return t.e(e[1]).then((function(){return t.t(i,7)}))}i.keys=function(){return Object.keys(a)},i.id=88,s.exports=i}}]);
@@ -1,84 +1,22 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[68],{102:function(t,e,r){"use strict";r.r(e),r.d(e,"MeetingAlertRole",(function(){return c})),r.d(e,"MeetingAlert",(function(){return p}));var o=r(1),l=r(4),a=r(5),i=r(0),n=r(2),d=(r(43),r(17),r(15),r(6));var m=i.css`.md-alert__container{position:fixed;z-index:9999}.md-alert__container--top-left{left:1em;top:1em}.md-alert__container--top-center{left:50%;top:1em;transform:translate(-50%)}.md-alert__container--top-right{right:1em;top:1em}.md-alert__container--bottom-left{bottom:1em;left:1em}.md-alert__container--bottom-center{bottom:1em;left:50%;transform:translate(-50%)}.md-alert__container--bottom-right{bottom:1em;right:1em}.md-alert__container--call{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;left:50%;top:50%;transform:translate(-50%,-50%)}.md-alert{align-content:space-between;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-left-radius:5px;border-bottom-right-radius:5px;background-color:#fff;border:1px solid rgba(0,0,0,.12);box-shadow:0 8px 16px 0 rgba(0,0,0,.08);justify-content:space-between;margin-bottom:.5rem;max-height:19.25rem;min-height:4.875rem;padding:.5rem .8125rem .5rem 1.0625rem;width:21.375rem}.md-alert__icon{font-family:momentum-ui-icons;font-size:2.75rem;line-height:0}.md-alert__icon::before{content:"\\f6e8";color:#00a0d1}.md-alert__content{display:flex;flex-basis:0%;flex-direction:column;flex-grow:2;padding-left:1rem;padding-right:.125rem}.md-alert__title{color:#00a0d1;font-size:1rem;line-height:1.5rem}.md-alert__message,.md-alert__status{font-family:"CiscoSansTT Light","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:.875rem;line-height:1.125rem}.md-alert__status{color:#03612c}.md-alert__message{color:#292929}.md-alert__message,.md-alert__title{max-width:10rem;word-wrap:break-word}.md-alert__button{margin-left:.5rem}.md-alert.md-alert--success .md-alert__icon::before{content:"\\f381";color:#00ab50}.md-alert.md-alert--success .md-alert__title{color:#00ab50}.md-alert.md-alert--warning .md-alert__icon::before{content:"\\fca3";color:#d97f00}.md-alert.md-alert--warning .md-alert__title{color:#d97f00}.md-alert.md-alert--error .md-alert__icon::before{content:"\\fca3";color:#f7644a}.md-alert.md-alert--error .md-alert__title{color:#f7644a}.md-alert.md-alert--meeting .md-alert__content{width:10rem}.md-alert.md-alert--meeting .md-alert__content--wide{width:13rem}.md-alert.md-alert--meeting .md-alert__message,.md-alert.md-alert--meeting .md-alert__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.md-alert.md-alert--meeting .md-alert__title{color:#000}.md-alert.md-alert--call{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;margin-right:.9375rem;max-height:31.25rem;min-height:17.625rem;padding:.75rem 1.0625rem 1.5625rem 1.0625rem;width:17.375rem}.md-alert.md-alert--call .md-alert__title{color:#000;font-size:.875rem;font-weight:700;line-height:1.375rem;padding-bottom:1.5rem}.md-alert.md-alert--call .md-alert__caller{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center}.md-alert.md-alert--call .md-alert__caller-title{font-size:1rem;font-weight:700;line-height:1.5rem;padding-top:.5rem}.md-alert.md-alert--call .md-alert__caller-subtitle{font-size:.875rem;line-height:1.375rem}.md-alert.md-alert--call .md-alert--call--buttons{padding-top:1.5rem}.md-alert.md-alert--call .md-alert--call--buttons .md-icon{fill:#fff}.md-alert.md-alert--call .md-list{padding-top:.75rem}.md-alert.md-alert--call .md-list .md-list-item{background-color:rgba(0,0,0,.04)}.md-alert.md-alert--call .md-list .md-list-item:hover{background-color:rgba(0,0,0,.04)}.md-alert.md-alert--call .md-list .md-list-item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.md-alert.md-alert--call .md-list .md-list-item-header{border-top-left-radius:8px;border-top-right-radius:8px;border-bottom:1px solid rgba(0,0,0,.08)}`,s=function(t,e,r,o){var l,a=arguments.length,i=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,o);else for(var n=t.length-1;n>=0;n--)(l=t[n])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i};const c=["alert","alertdialog","button","checkbox","dialog","link","option","status"];var p;!function(t){let e=class extends i.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.b.Escape&&this.handleClose(t),t.code===o.b.Enter||t.code===o.b.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 i.html`
2
- <style>
3
- ::slotted(img) {
4
- display: inline-block;
5
- vertical-align: middle;
6
- -ms-interpolation-mode: bicubic;
7
- height: auto;
8
- max-width: 100%;
9
- border-style: none;
10
- }
11
- ${this.userStyles}
12
- </style>
13
- `}static get styles(){return[l.a,m]}render(){const{attendees:t,message:e,onSnooze:r,role:o,src:l,status:a,title:m,closeAriaLabel:s,show:c,onKeyDown:p,snoozeAriaLabel:h}=this;return i.html`
14
- ${this.getStyles()}
15
- ${c?i.html`
16
- <div
17
- aria-label="Meeting Alert"
18
- class=${"md-alert md-alert--meeting"}
19
- @keydown=${t=>this.handleKeyDown(t)}
20
- role=${o}
21
- >
22
- <slot name="custom-avatar">
23
- ${t.length>=2?(t=>{const e="display: flex;width: 1.625rem;height: 1.625rem;font-size: .56875rem;line-height: .8125rem;";return i.html`
24
- <div class="md-composite-avatar md-composite-avatar--wc-override" style=${"position: relative; display: block;\n width: 2.5rem;\n height: 2.5rem;\n font-size: 0.875rem;\n line-height: 1.25rem;"}>
25
- <md-avatar
26
- slot="avatar"
27
- class="md-avatar"
28
- alt=${t[0].alt||t[0].title}
29
- src=${Object(d.ifDefined)(t[0].src?t[0].src:void 0)}
30
- title=${t[0].title}
31
- size="24"
32
- style=${e+"position: absolute;left: 0px;top: 0px;"}
33
- ></md-avatar>
34
- <md-avatar
35
- slot="avatar"
36
- class="md-avatar"
37
- alt=${t[1].alt||t[1].title}
38
- src=${Object(d.ifDefined)(t[1].src?t[1].src:void 0)}
39
- title=${t[1].title}
40
- size="24"
41
- style=${e+"position: absolute;right: 0px;bottom: 0px;"}
42
- ></md-avatar>
43
- </div>
44
- `})(t):i.html`
45
- <md-avatar title=${m} label="avatar" src=${l} tabindex="-1"></md-avatar>
46
- `}
47
- </slot>
48
- <div class=${"md-alert__content "+(r?"":" md-alert__content--wide")}>
49
- <div class="md-alert__title" title=${m}>
50
- ${m}
51
- </div>
52
- <div class="md-alert__status" title=${a}>
53
- ${a}
54
- </div>
55
- <div class="md-alert__message" title=${e}>
56
- ${e}
57
- </div>
58
- </div>
59
- ${r?i.html`
60
- <div class="md-alert__button">
61
- <md-button
62
- aria-label=${h}
63
- circle
64
- @click=${t=>{this.handleSnooze(t)}}
65
- .size=${40}
66
- >
67
- <md-icon name="icon-alarm_16"></md-icon>
68
- </md-button>
69
- </div>
70
- `:n.nothing}
71
- <slot name="custom-action">
72
- <md-button
73
- class="md-alert__button"
74
- ariaLabel=${s}
75
- circle
76
- @click=${t=>{this.handleClose(t)}}
77
- .size=${40}
78
- >
79
- <md-icon name="icon-cancel_16"></md-icon>
80
- </md-button>
81
- </slot>
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[68],{116:function(e,n,i){"use strict";i.r(n),i.d(n,"linkTag",(function(){return c})),i.d(n,"linkColor",(function(){return s})),i.d(n,"Link",(function(){return k}));var l=i(4),t=i(5),r=i(0),o=i(3),d=r.css`.md-link{color:var(--link-default,#005e7d);border-radius:.25rem;cursor:pointer;display:inline-flex;font-size:var(--link-inline-font-size,14px);line-height:170%;width:fit-content}.md-link:hover{color:var(--link-hover,#005e7d)}.md-link:focus{box-shadow:0 0 0 2px var(--link-focus-outline,#007aa3);color:var(--link-focus,#005e7d)}.md-link.active{color:var(--link-pressed,#064157)}.md-link.disabled,.md-link.md-link--inline.disabled{color:var(--link-disabled,#b2b2b2)}.md-link.md-link--inline{color:var(--link-inline,#a12512)}.md-link.md-link--inline:hover{color:var(--link-inline-hover,#6e1d13)}.md-link.md-link--inline:focus{color:var(--link-inline-focus,#a12512)}.md-link.md-link--inline.active{color:var(--link-inline-pressed,#4a1812)}.md-link .md-link--blue{color:var(--link-blue,#00a0d1)}.md-link .md-link--blue:hover{color:var(--link-blue-hover,#007aa3)}.md-link .md-link--blue.active{color:var(--link-blue-active,#005e7d)}.md-link .md-link--red{color:var(--link-red,#f7644a)}.md-link .md-link--red:hover{color:var(--link-red-hover,#d4371c)}.md-link .md-link--red.active{color:var(--link-red-active,#a12512)}.md-link .md-link--green{color:var(--link-green,#00ab50)}.md-link .md-link--green:hover{color:var(--link-green-hover,#00853c)}.md-link .md-link--green.active{color:var(--link-green-active,#03612c)}.md-link .md-link--yellow{color:var(--link-yellow,#d97f00)}.md-link .md-link--yellow:hover{color:var(--link-yellow-hover,#a85f00)}.md-link .md-link--yellow.active{color:var(--link-yellow-active,#7d4705)}.md-link .md-link--orange{color:var(--link-orange,#f26b1d)}.md-link .md-link--orange:hover{color:var(--link-orange-hover,#c74f0e)}.md-link .md-link--orange.active{color:var(--link-orange-active,#914017)}.md-link:focus{outline:0}.md-link.disabled{pointer-events:none}.md-link--inline{font-size:var(--link-inline-font-size,14px);line-height:100%;text-decoration:underline}`,a=function(e,n,i,l){var t,r=arguments.length,o=r<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,i):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,i,l);else for(var d=e.length-1;d>=0;d--)(t=e[d])&&(o=(r<3?t(o):r>3?t(n,i,o):t(n,i))||o);return r>3&&o&&Object.defineProperty(n,i,o),o};const c=["a","div","span"],s=["","blue","red","green","yellow","orange"];var k;!function(e){let n=class extends r.LitElement{constructor(){super(...arguments),this.color="",this.disabled=!1,this.inline=!1,this.href="",this.tag="a",this.target="_self",this._tabIndex=0}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){const n=this._tabIndex;this._tabIndex=e,this.requestUpdate("tabIndex",n)}static get styles(){return[l.a,d]}render(){const e={["md-link--"+this.color]:this.color,"md-link--inline":this.inline,disabled:this.disabled};return r.html`
2
+ ${(()=>{switch(this.tag){case"div":return r.html`
3
+ <div class="md-link ${Object(o.classMap)(e)}" tabindex=${this.tabIndex} role="link" part="link">
4
+ <slot></slot>
82
5
  </div>
83
- `:n.nothing}
84
- `}};s([Object(i.property)({type:Array})],e.prototype,"attendees",void 0),s([Object(i.property)({type:String})],e.prototype,"closeAriaLabel",void 0),s([Object(i.property)({attribute:!1})],e.prototype,"onKeyDown",void 0),s([Object(i.property)({attribute:!1})],e.prototype,"onSnooze",void 0),s([Object(i.property)({type:String})],e.prototype,"message",void 0),s([Object(i.property)({type:String})],e.prototype,"snoozeAriaLabel",void 0),s([Object(i.property)({type:String})],e.prototype,"role",void 0),s([Object(i.property)({type:Boolean})],e.prototype,"show",void 0),s([Object(i.property)({type:String})],e.prototype,"src",void 0),s([Object(i.property)({type:String})],e.prototype,"status",void 0),s([Object(i.property)({type:String})],e.prototype,"userStyles",void 0),s([Object(i.property)({type:String})],e.prototype,"title",void 0),e=s([Object(a.a)("md-meeting-alert")],e),t.ELEMENT=e}(p||(p={}))}}]);
6
+ `;case"span":return r.html`
7
+ <span class="md-link ${Object(o.classMap)(e)}" tabindex=${this.tabIndex} role="link" part="link">
8
+ <slot></slot>
9
+ </span>
10
+ `;default:return r.html`
11
+ <a
12
+ class="md-link ${Object(o.classMap)(e)}"
13
+ .target="${this.target}"
14
+ href=${this.href}
15
+ tabindex=${this.tabIndex}
16
+ role="link"
17
+ part="link"
18
+ >
19
+ <slot></slot>
20
+ </a>
21
+ `}})()}
22
+ `}};a([Object(r.property)({type:String,attribute:!1})],n.prototype,"color",void 0),a([Object(r.property)({type:Boolean})],n.prototype,"disabled",void 0),a([Object(r.property)({type:Boolean})],n.prototype,"inline",void 0),a([Object(r.property)({type:String})],n.prototype,"href",void 0),a([Object(r.property)({type:String})],n.prototype,"tag",void 0),a([Object(r.property)({type:String})],n.prototype,"target",void 0),a([Object(r.property)({type:Number,attribute:"tab-index",reflect:!0})],n.prototype,"tabIndex",null),n=a([Object(t.a)("md-link")],n),e.ELEMENT=n}(k||(k={}))}}]);
@@ -1,7 +1,84 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[69],{95:function(e,t,i){"use strict";i.r(t),i.d(t,"MORE_MENU_ITEM_COPY_ID_PREFIX",(function(){return I})),i.d(t,"Menu",(function(){return b}));var s=i(5),n=i(0),c=i(53),d=i(1),o=i(22),r=i(35),l=i(52),a=i(3),h=i(4),m=i(62),u=function(e,t,i,s){var n,c=arguments.length,d=c<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,i,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(d=(c<3?n(d):c>3?n(t,i,d):n(t,i))||d);return c>3&&d&&Object.defineProperty(t,i,d),d},p=function(e,t,i,s){return new(i||(i=Promise))((function(n,c){function d(e){try{r(s.next(e))}catch(e){c(e)}}function o(e){try{r(s.throw(e))}catch(e){c(e)}}function r(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(d,o)}r((s=s.apply(e,t||[])).next())}))};const I="more-menu-item-";var b;!function(e){let t=class extends(Object(r.a)(Object(l.a)(n.LitElement))){constructor(){super(...arguments),this.justified=!1,this.direction="horizontal",this.items=[],this.itemsHash={},this.itemsIdxHash={}}getNormalizedItemId(e){return e.replace(I,"")}static get styles(){return[h.a,m.a]}get slotItem(){return this.menuSlotElement}linkMenuItems(){return p(this,void 0,void 0,(function*(){const{items:e}=this;e.forEach((e,t)=>{const i=Object(o.nanoid)();e.setAttribute("id",i),e.setAttribute("aria-controls",i),e.selected=this.selected===t}),this.itemsHash=this.items.reduce((e,t)=>(e[t.id]=t,e),{}),this.itemsIdxHash=this.items.reduce((e,t,i)=>(e[t.id]=i,e),{})}))}setupMenuItems(){if(this.menuSlotElement){const e=this.menuSlotElement.assignedElements({flatten:!0});this.getChildrenFromTree({children:e},this.items)}}getChildrenFromTree(e,t){for(var i=0;i<e.children.length;i++){var s=e.children[i];s instanceof c.MenuItem.ELEMENT&&t.push(s),this.getChildrenFromTree(s,t)}}updateSelectedItem(e){const t=this.slotted.findIndex(e=>e.hasAttribute("selected"));t!==e&&(this.items&&[t,e].forEach(e=>{const t=this.items[e];t&&t.toggleAttribute("selected")}),this.dispatchEvent(new CustomEvent("selected-menu-item",{detail:{value:e},composed:!0,bubbles:!0})),this.changeSelectedItemIdx(e))}changeSelectedItemIdx(e){this.selected=e}handleItemClick(e){const{id:t}=e.detail,i=this.itemsHash[this.getNormalizedItemId(t)];if(i&&!i.disabled){const e=this.itemsIdxHash[i.id];-1!==e&&this.updateSelectedItem(e)}}handleItemKeydown(e){const{key:t,id:i}=e.detail;switch(t){case d.b.End:this.changeSelectedItemIdx(this.items.length-1);break;case d.b.Home:this.changeSelectedItemIdx(0);break;case d.b.ArrowLeft:case d.b.ArrowUp:0===this.selected?this.changeSelectedItemIdx(this.items.length-1):this.changeSelectedItemIdx(this.selected-1);break;case d.b.ArrowRight:case d.b.ArrowDown:this.selected===this.items.length-1?this.changeSelectedItemIdx(0):this.changeSelectedItemIdx(this.selected+1);break;case d.b.Enter:case d.b.Space:const e=this.slotted.findIndex(e=>e.id===i&&!e.disabled);-1!==e&&this.updateSelectedItem(e)}}connectedCallback(){super.connectedCallback(),this.addEventListener("menu-item-click",this.handleItemClick),this.addEventListener("menu-item-keydown",this.handleItemKeydown)}updated(e){const t=Object.create(null,{updated:{get:()=>super.updated}});return p(this,void 0,void 0,(function*(){t.updated.call(this,e),e.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 n.html`
2
- <nav class="md-menu ${Object(a.classMap)(this.menuClassMap)}">
3
- <ul class="md-menu-list">
4
- <slot></slot>
5
- </ul>
6
- </nav>
7
- `}};u([Object(n.property)({type:Boolean})],t.prototype,"justified",void 0),u([Object(n.property)({type:String})],t.prototype,"direction",void 0),u([Object(n.query)("slot")],t.prototype,"menuSlotElement",void 0),u([Object(n.query)("md-menu-overlay")],t.prototype,"menuSubElement",void 0),t=u([Object(s.a)("md-menu")],t),e.ELEMENT=t}(b||(b={}))}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[69],{102:function(t,e,r){"use strict";r.r(e),r.d(e,"MeetingAlertRole",(function(){return c})),r.d(e,"MeetingAlert",(function(){return p}));var o=r(1),l=r(4),a=r(5),i=r(0),n=r(2),d=(r(43),r(17),r(15),r(6));var m=i.css`.md-alert__container{position:fixed;z-index:9999}.md-alert__container--top-left{left:1em;top:1em}.md-alert__container--top-center{left:50%;top:1em;transform:translate(-50%)}.md-alert__container--top-right{right:1em;top:1em}.md-alert__container--bottom-left{bottom:1em;left:1em}.md-alert__container--bottom-center{bottom:1em;left:50%;transform:translate(-50%)}.md-alert__container--bottom-right{bottom:1em;right:1em}.md-alert__container--call{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;left:50%;top:50%;transform:translate(-50%,-50%)}.md-alert{align-content:space-between;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-left-radius:5px;border-bottom-right-radius:5px;background-color:#fff;border:1px solid rgba(0,0,0,.12);box-shadow:0 8px 16px 0 rgba(0,0,0,.08);justify-content:space-between;margin-bottom:.5rem;max-height:19.25rem;min-height:4.875rem;padding:.5rem .8125rem .5rem 1.0625rem;width:21.375rem}.md-alert__icon{font-family:momentum-ui-icons;font-size:2.75rem;line-height:0}.md-alert__icon::before{content:"\\f6e8";color:#00a0d1}.md-alert__content{display:flex;flex-basis:0%;flex-direction:column;flex-grow:2;padding-left:1rem;padding-right:.125rem}.md-alert__title{color:#00a0d1;font-size:1rem;line-height:1.5rem}.md-alert__message,.md-alert__status{font-family:"CiscoSansTT Light","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:.875rem;line-height:1.125rem}.md-alert__status{color:#03612c}.md-alert__message{color:#292929}.md-alert__message,.md-alert__title{max-width:10rem;word-wrap:break-word}.md-alert__button{margin-left:.5rem}.md-alert.md-alert--success .md-alert__icon::before{content:"\\f381";color:#00ab50}.md-alert.md-alert--success .md-alert__title{color:#00ab50}.md-alert.md-alert--warning .md-alert__icon::before{content:"\\fca3";color:#d97f00}.md-alert.md-alert--warning .md-alert__title{color:#d97f00}.md-alert.md-alert--error .md-alert__icon::before{content:"\\fca3";color:#f7644a}.md-alert.md-alert--error .md-alert__title{color:#f7644a}.md-alert.md-alert--meeting .md-alert__content{width:10rem}.md-alert.md-alert--meeting .md-alert__content--wide{width:13rem}.md-alert.md-alert--meeting .md-alert__message,.md-alert.md-alert--meeting .md-alert__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.md-alert.md-alert--meeting .md-alert__title{color:#000}.md-alert.md-alert--call{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center;margin-right:.9375rem;max-height:31.25rem;min-height:17.625rem;padding:.75rem 1.0625rem 1.5625rem 1.0625rem;width:17.375rem}.md-alert.md-alert--call .md-alert__title{color:#000;font-size:.875rem;font-weight:700;line-height:1.375rem;padding-bottom:1.5rem}.md-alert.md-alert--call .md-alert__caller{align-content:center;align-items:center;display:flex;flex-flow:column nowrap;justify-content:center}.md-alert.md-alert--call .md-alert__caller-title{font-size:1rem;font-weight:700;line-height:1.5rem;padding-top:.5rem}.md-alert.md-alert--call .md-alert__caller-subtitle{font-size:.875rem;line-height:1.375rem}.md-alert.md-alert--call .md-alert--call--buttons{padding-top:1.5rem}.md-alert.md-alert--call .md-alert--call--buttons .md-icon{fill:#fff}.md-alert.md-alert--call .md-list{padding-top:.75rem}.md-alert.md-alert--call .md-list .md-list-item{background-color:rgba(0,0,0,.04)}.md-alert.md-alert--call .md-list .md-list-item:hover{background-color:rgba(0,0,0,.04)}.md-alert.md-alert--call .md-list .md-list-item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.md-alert.md-alert--call .md-list .md-list-item-header{border-top-left-radius:8px;border-top-right-radius:8px;border-bottom:1px solid rgba(0,0,0,.08)}`,s=function(t,e,r,o){var l,a=arguments.length,i=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,o);else for(var n=t.length-1;n>=0;n--)(l=t[n])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i};const c=["alert","alertdialog","button","checkbox","dialog","link","option","status"];var p;!function(t){let e=class extends i.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.b.Escape&&this.handleClose(t),t.code===o.b.Enter||t.code===o.b.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 i.html`
2
+ <style>
3
+ ::slotted(img) {
4
+ display: inline-block;
5
+ vertical-align: middle;
6
+ -ms-interpolation-mode: bicubic;
7
+ height: auto;
8
+ max-width: 100%;
9
+ border-style: none;
10
+ }
11
+ ${this.userStyles}
12
+ </style>
13
+ `}static get styles(){return[l.a,m]}render(){const{attendees:t,message:e,onSnooze:r,role:o,src:l,status:a,title:m,closeAriaLabel:s,show:c,onKeyDown:p,snoozeAriaLabel:h}=this;return i.html`
14
+ ${this.getStyles()}
15
+ ${c?i.html`
16
+ <div
17
+ aria-label="Meeting Alert"
18
+ class=${"md-alert md-alert--meeting"}
19
+ @keydown=${t=>this.handleKeyDown(t)}
20
+ role=${o}
21
+ >
22
+ <slot name="custom-avatar">
23
+ ${t.length>=2?(t=>{const e="display: flex;width: 1.625rem;height: 1.625rem;font-size: .56875rem;line-height: .8125rem;";return i.html`
24
+ <div class="md-composite-avatar md-composite-avatar--wc-override" style=${"position: relative; display: block;\n width: 2.5rem;\n height: 2.5rem;\n font-size: 0.875rem;\n line-height: 1.25rem;"}>
25
+ <md-avatar
26
+ slot="avatar"
27
+ class="md-avatar"
28
+ alt=${t[0].alt||t[0].title}
29
+ src=${Object(d.ifDefined)(t[0].src?t[0].src:void 0)}
30
+ title=${t[0].title}
31
+ size="24"
32
+ style=${e+"position: absolute;left: 0px;top: 0px;"}
33
+ ></md-avatar>
34
+ <md-avatar
35
+ slot="avatar"
36
+ class="md-avatar"
37
+ alt=${t[1].alt||t[1].title}
38
+ src=${Object(d.ifDefined)(t[1].src?t[1].src:void 0)}
39
+ title=${t[1].title}
40
+ size="24"
41
+ style=${e+"position: absolute;right: 0px;bottom: 0px;"}
42
+ ></md-avatar>
43
+ </div>
44
+ `})(t):i.html`
45
+ <md-avatar title=${m} label="avatar" src=${l} tabindex="-1"></md-avatar>
46
+ `}
47
+ </slot>
48
+ <div class=${"md-alert__content "+(r?"":" md-alert__content--wide")}>
49
+ <div class="md-alert__title" title=${m}>
50
+ ${m}
51
+ </div>
52
+ <div class="md-alert__status" title=${a}>
53
+ ${a}
54
+ </div>
55
+ <div class="md-alert__message" title=${e}>
56
+ ${e}
57
+ </div>
58
+ </div>
59
+ ${r?i.html`
60
+ <div class="md-alert__button">
61
+ <md-button
62
+ aria-label=${h}
63
+ circle
64
+ @click=${t=>{this.handleSnooze(t)}}
65
+ .size=${40}
66
+ >
67
+ <md-icon name="icon-alarm_16"></md-icon>
68
+ </md-button>
69
+ </div>
70
+ `:n.nothing}
71
+ <slot name="custom-action">
72
+ <md-button
73
+ class="md-alert__button"
74
+ ariaLabel=${s}
75
+ circle
76
+ @click=${t=>{this.handleClose(t)}}
77
+ .size=${40}
78
+ >
79
+ <md-icon name="icon-cancel_16"></md-icon>
80
+ </md-button>
81
+ </slot>
82
+ </div>
83
+ `:n.nothing}
84
+ `}};s([Object(i.property)({type:Array})],e.prototype,"attendees",void 0),s([Object(i.property)({type:String})],e.prototype,"closeAriaLabel",void 0),s([Object(i.property)({attribute:!1})],e.prototype,"onKeyDown",void 0),s([Object(i.property)({attribute:!1})],e.prototype,"onSnooze",void 0),s([Object(i.property)({type:String})],e.prototype,"message",void 0),s([Object(i.property)({type:String})],e.prototype,"snoozeAriaLabel",void 0),s([Object(i.property)({type:String})],e.prototype,"role",void 0),s([Object(i.property)({type:Boolean})],e.prototype,"show",void 0),s([Object(i.property)({type:String})],e.prototype,"src",void 0),s([Object(i.property)({type:String})],e.prototype,"status",void 0),s([Object(i.property)({type:String})],e.prototype,"userStyles",void 0),s([Object(i.property)({type:String})],e.prototype,"title",void 0),e=s([Object(a.a)("md-meeting-alert")],e),t.ELEMENT=e}(p||(p={}))}}]);