@covalent/components 9.0.0 → 9.1.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 (218) hide show
  1. package/{_commonjsHelpers-DjF3Plf2.mjs → _commonjsHelpers-HP5nalso.mjs} +2 -2
  2. package/action-ribbon.js +2 -2
  3. package/action-ribbon.mjs +24 -24
  4. package/alert.js +3 -3
  5. package/alert.mjs +4 -4
  6. package/app-shell.js +1 -1
  7. package/app-shell.mjs +6 -6
  8. package/async-directive-2AOdKBUW.mjs +66 -0
  9. package/async-directive-DZ3MjSIj.js +5 -0
  10. package/badge.js +1 -1
  11. package/badge.mjs +6 -6
  12. package/{base-element-aUDWLn36.js → base-element-5ZU-p99q.js} +1 -1
  13. package/{base-element-C-U4OfWx.mjs → base-element-CzNmpVoz.mjs} +1 -1
  14. package/button.js +1 -1
  15. package/button.mjs +24 -24
  16. package/card.js +1 -1
  17. package/card.mjs +12 -12
  18. package/check-list-item.js +7 -7
  19. package/check-list-item.mjs +31 -31
  20. package/checkbox.js +1 -1
  21. package/checkbox.mjs +9 -9
  22. package/{chip-C8L37ovG.mjs → chip-5QP7xPTY.mjs} +6 -6
  23. package/{chip-BsDYOEFW.js → chip-CitHXhY7.js} +1 -1
  24. package/chip-set.js +1 -1
  25. package/chip-set.mjs +114 -114
  26. package/chip.js +1 -1
  27. package/chip.mjs +2 -2
  28. package/circular-progress.js +4 -4
  29. package/circular-progress.mjs +10 -10
  30. package/class-map-BHl5MHd7.mjs +36 -0
  31. package/class-map-PsUYVqvf.js +5 -0
  32. package/{code-editor-CSH3MdBF.js → code-editor-CCUZsYkN.js} +135 -137
  33. package/{code-editor-Bshyfjyn.mjs → code-editor-JaW-06cH.mjs} +8151 -8113
  34. package/code-editor.js +1 -1
  35. package/code-editor.mjs +2 -2
  36. package/code-snippet.js +1 -1
  37. package/code-snippet.mjs +7 -7
  38. package/{dialog-BoNH4r3n.mjs → dialog-BVmWYLqR.mjs} +194 -194
  39. package/{dialog-LUOzoMeO.js → dialog-DzaPP3Vt.js} +9 -9
  40. package/dialog.js +1 -1
  41. package/dialog.mjs +2 -2
  42. package/{directive-oAbCiebi.mjs → directive-B76A7YXI.mjs} +4 -4
  43. package/directive-C_VV3qwo.js +5 -0
  44. package/directive-helpers-6HCt_-zj.mjs +11 -0
  45. package/directive-helpers-BnUMbYHh.js +5 -0
  46. package/drawer.js +1 -1
  47. package/drawer.mjs +2 -2
  48. package/empty-state.js +1 -1
  49. package/empty-state.mjs +7 -7
  50. package/{event-options-CNykeE2u.mjs → event-options-D44mpm5S.mjs} +1 -1
  51. package/{event-options-BH8ks-kz.js → event-options-IG-2g8HU.js} +1 -1
  52. package/expansion-panel-item.js +1 -1
  53. package/expansion-panel-item.mjs +4 -4
  54. package/expansion-panel.js +1 -1
  55. package/expansion-panel.mjs +1 -1
  56. package/focused-page.js +1 -1
  57. package/focused-page.mjs +8 -8
  58. package/form-element--PS8uSRI.js +5 -0
  59. package/form-element-Dn0Lerng.mjs +50 -0
  60. package/formfield.js +4 -4
  61. package/formfield.mjs +13 -13
  62. package/{foundation-qQ4jzaAu.mjs → foundation-BYhAXCW_.mjs} +17 -15
  63. package/{foundation-PL3XY-m_.mjs → foundation-D6JHa7Lg.mjs} +4 -4
  64. package/{foundation-pgmPu2iJ.js → foundation-aT_gy6X8.js} +1 -1
  65. package/{foundation-CySCCTUE.js → foundation-sIsx2I_x.js} +2 -2
  66. package/full-screen-dialog.js +2 -2
  67. package/full-screen-dialog.mjs +12 -12
  68. package/{html-DrhRpsz9.mjs → html-DhKW0KfF.mjs} +1 -1
  69. package/{html-DUGRoHaj.js → html-S7zzCKH0.js} +1 -1
  70. package/icon/_icon-list.d.ts +4 -0
  71. package/icon/_icon-list.d.ts.map +1 -0
  72. package/icon/icon-demo.d.ts +14 -0
  73. package/icon/icon-demo.d.ts.map +1 -0
  74. package/icon-button-toggle.js +5 -5
  75. package/icon-button-toggle.mjs +35 -35
  76. package/icon-button.js +2 -2
  77. package/icon-button.mjs +28 -28
  78. package/icon-check-toggle.js +1 -1
  79. package/icon-check-toggle.mjs +6 -6
  80. package/icon-lockup.js +5 -5
  81. package/icon-lockup.mjs +6 -6
  82. package/icon-radio-toggle.js +4 -4
  83. package/icon-radio-toggle.mjs +8 -8
  84. package/icon.js +1 -1
  85. package/icon.mjs +14 -14
  86. package/{if-defined-D8C6ewRn.js → if-defined-B7G84qob.js} +1 -1
  87. package/{if-defined-BsNkRMMG.mjs → if-defined-DN7whKwy.mjs} +1 -1
  88. package/index.d.ts +1 -0
  89. package/index.d.ts.map +1 -1
  90. package/index.js +10 -1
  91. package/index.mjs +450 -112
  92. package/{javascript-DKtDcqDi.mjs → javascript-BtkevR81.mjs} +1 -1
  93. package/{javascript-54eqLOAw.js → javascript-fH54qAGk.js} +1 -1
  94. package/linear-progress.js +7 -7
  95. package/linear-progress.mjs +17 -17
  96. package/{list-item-BZVW1fmJ.js → list-item-BQ6SDTvW.js} +1 -1
  97. package/{list-item-DCzzLVZh.mjs → list-item-DuBDCnZ-.mjs} +1 -1
  98. package/list-item.js +2 -2
  99. package/list-item.mjs +16 -16
  100. package/list.js +1 -1
  101. package/list.mjs +16 -16
  102. package/menu.js +2 -2
  103. package/menu.mjs +11 -11
  104. package/{mwc-checkbox.css-Cd0yCOHu.js → mwc-checkbox.css-BV3dyB4C.js} +1 -1
  105. package/{mwc-checkbox.css-MBOzkrQg.mjs → mwc-checkbox.css-CNoj0V14.mjs} +31 -31
  106. package/{mwc-drawer-base-Dgs9327G.mjs → mwc-drawer-base-A-4s_ZnE.mjs} +10 -10
  107. package/{mwc-drawer-base-D-48lqfn.js → mwc-drawer-base-DWczEPvb.js} +3 -3
  108. package/{mwc-icon-BZRds8SY.mjs → mwc-icon-DTCUplqR.mjs} +2 -2
  109. package/{mwc-icon-BumH81hp.js → mwc-icon-Xgr698ax.js} +1 -1
  110. package/{mwc-icon-button.css-DJMY7U7e.mjs → mwc-icon-button.css-DJiDOS0_.mjs} +1 -1
  111. package/{mwc-icon-button.css-BtgKBOl3.js → mwc-icon-button.css-DOVWWyjA.js} +1 -1
  112. package/{mwc-line-ripple-directive-zhm5Zc8i.mjs → mwc-line-ripple-directive-TO37-41n.mjs} +34 -34
  113. package/{mwc-line-ripple-directive-DvPWr3ER.js → mwc-line-ripple-directive-r80jluoU.js} +4 -4
  114. package/{mwc-list-item.css-CtRq5wSu.js → mwc-list-item.css-CO1JlA8e.js} +10 -10
  115. package/{mwc-list-item.css-g34xqhLC.mjs → mwc-list-item.css-Cg9onxQ-.mjs} +11 -11
  116. package/{mwc-list.css-DFOdJyFB.mjs → mwc-list.css-C_-DVEme.mjs} +102 -102
  117. package/{mwc-list.css-CaMJWsDp.js → mwc-list.css-Deg9oBaO.js} +1 -1
  118. package/{mwc-menu.css-pxcxlTrh.js → mwc-menu.css-Dvr-f3_T.js} +18 -18
  119. package/{mwc-menu.css-BEiPghgR.mjs → mwc-menu.css-qpZxKN-g.mjs} +306 -306
  120. package/{mwc-radio.css-XRx0vL1k.mjs → mwc-radio.css-BiHC1R8I.mjs} +11 -11
  121. package/{mwc-radio.css-CVMtIq-L.js → mwc-radio.css-DjO4Rn44.js} +1 -1
  122. package/{mwc-slider.css-WrkrmqkL.js → mwc-slider.css-DFOaS04S.js} +13 -13
  123. package/{mwc-slider.css-2Bqk43z7.mjs → mwc-slider.css-Deh1__Ar.mjs} +290 -279
  124. package/{mwc-tab.css-B9yQpkYf.mjs → mwc-tab.css-2UrPKkNg.mjs} +34 -34
  125. package/{mwc-tab.css-CgdXMZBB.js → mwc-tab.css-sq5suZKe.js} +11 -11
  126. package/{mwc-top-app-bar-base-B0EW9eNk.mjs → mwc-top-app-bar-base-BIZGhVtM.mjs} +40 -40
  127. package/{mwc-top-app-bar-base-CSXRBOiX.js → mwc-top-app-bar-base-DUdOcIjS.js} +7 -7
  128. package/nav-list-item.js +3 -3
  129. package/nav-list-item.mjs +18 -18
  130. package/notebook-cell.js +1 -1
  131. package/notebook-cell.mjs +25 -25
  132. package/package.json +6 -1
  133. package/{property-DYTC_2-m.js → property-BRKnMYJe.js} +1 -1
  134. package/{python-CEXbOLXn.mjs → python-BkZeja0y.mjs} +1 -1
  135. package/{python-CzGtlN7c.js → python-C2_KOh3o.js} +1 -1
  136. package/query-BvlE-gMJ.js +5 -0
  137. package/query-DSO61t36.mjs +15 -0
  138. package/query-assigned-elements-BQszEgac.js +31 -0
  139. package/query-assigned-elements-DhyCP_2z.mjs +591 -0
  140. package/query-assigned-nodes-9DFnkxV8.js +5 -0
  141. package/query-assigned-nodes-B-jCihdA.mjs +17 -0
  142. package/radio-list-item.js +5 -5
  143. package/radio-list-item.mjs +24 -24
  144. package/radio.js +1 -1
  145. package/radio.mjs +9 -9
  146. package/{ripple-handlers-i3WPEBiO.mjs → ripple-handlers-BAdg-fJB.mjs} +72 -72
  147. package/{ripple-handlers-CzfSBjWo.js → ripple-handlers-BDmOLx8c.js} +5 -5
  148. package/select.js +12 -12
  149. package/select.mjs +119 -118
  150. package/side-sheet.js +1 -1
  151. package/side-sheet.mjs +8 -8
  152. package/slider-range.js +7 -7
  153. package/slider-range.mjs +39 -39
  154. package/slider.js +1 -1
  155. package/slider.mjs +18 -18
  156. package/snackbar.js +8 -8
  157. package/snackbar.mjs +21 -21
  158. package/{state-DaD9o2aK.mjs → state-B_tK3mBm.mjs} +2 -2
  159. package/{state-C3HoXfoa.js → state-Csv4sdJA.js} +1 -1
  160. package/status-dialog.js +1 -1
  161. package/status-dialog.mjs +7 -7
  162. package/status-header-item.js +1 -1
  163. package/status-header-item.mjs +18 -18
  164. package/status-header.js +1 -1
  165. package/status-header.mjs +2 -2
  166. package/style-map-3QfsA_1O.js +5 -0
  167. package/style-map-QxIETvrs.mjs +42 -0
  168. package/switch.js +6 -6
  169. package/switch.mjs +40 -40
  170. package/tab-bar.js +5 -5
  171. package/tab-bar.mjs +93 -93
  172. package/tab.js +1 -1
  173. package/tab.mjs +5 -5
  174. package/text-lockup.js +1 -1
  175. package/text-lockup.mjs +11 -11
  176. package/textarea.js +6 -6
  177. package/textarea.mjs +22 -22
  178. package/{textfield-BwmiygD8.js → textfield-CO6CFCCn.js} +30 -30
  179. package/{textfield-C6sUZIeA.mjs → textfield-WSgoABZn.mjs} +103 -103
  180. package/textfield.js +2 -2
  181. package/textfield.mjs +9 -9
  182. package/toolbar.js +1 -1
  183. package/toolbar.mjs +2 -2
  184. package/tooltip.js +3 -3
  185. package/tooltip.mjs +56 -55
  186. package/{top-app-bar-4SA3DjLX.mjs → top-app-bar-BvXNELe9.mjs} +1 -1
  187. package/{top-app-bar-CGjBuyiD.js → top-app-bar-Cvp1aN42.js} +1 -1
  188. package/top-app-bar-fixed.js +8 -8
  189. package/top-app-bar-fixed.mjs +35 -35
  190. package/top-app-bar.js +1 -1
  191. package/top-app-bar.mjs +12 -12
  192. package/tree-list-item.js +1 -1
  193. package/tree-list-item.mjs +5 -5
  194. package/tree-list.js +1 -1
  195. package/tree-list.mjs +5 -5
  196. package/tslib.es6-CISSdiiH.mjs +75 -0
  197. package/{typescript-DotYReBq.mjs → typescript-BUN0g4m9.mjs} +1 -1
  198. package/{typescript-D_zVB3gH.js → typescript-DzngJr4U.js} +1 -1
  199. package/typography.js +1 -1
  200. package/typography.mjs +10 -10
  201. package/async-directive-Cx1B9M5C.mjs +0 -66
  202. package/async-directive-y3fBDDSk.js +0 -5
  203. package/class-map-C1SJpero.mjs +0 -36
  204. package/class-map-C8G1ALWK.js +0 -5
  205. package/directive-C7oCP5Bh.js +0 -5
  206. package/directive-helpers-CllkNDrI.mjs +0 -11
  207. package/directive-helpers-Duf3sfLn.js +0 -5
  208. package/form-element-CxSqbssX.mjs +0 -50
  209. package/form-element-DwqUbs65.js +0 -5
  210. package/query-BBDQWsft.mjs +0 -15
  211. package/query-BxDs8ftQ.js +0 -5
  212. package/query-assigned-elements-4CafVNR8.js +0 -31
  213. package/query-assigned-elements-DCt2xozt.mjs +0 -591
  214. package/query-assigned-nodes-B9zBfkh6.mjs +0 -17
  215. package/query-assigned-nodes-CckKHm2z.js +0 -5
  216. package/style-map-BJBXlSqn.js +0 -5
  217. package/style-map-CCsABR5m.mjs +0 -42
  218. package/tslib.es6-pPsSiLLK.mjs +0 -75
@@ -1,11 +1,11 @@
1
- import { x as _, i as S, r as D, e as O } from "./query-assigned-elements-DCt2xozt.mjs";
2
- import { a as F, b as x, _ as r } from "./tslib.es6-pPsSiLLK.mjs";
1
+ import { x as _, i as S, r as D, e as O } from "./query-assigned-elements-DhyCP_2z.mjs";
2
+ import { _ as F, a as x, b as r } from "./tslib.es6-CISSdiiH.mjs";
3
3
  import "./inert.esm-BJ7IrRxy.mjs";
4
- import { B as L } from "./base-element-C-U4OfWx.mjs";
5
- import { o as f } from "./observer-DQ8OfVDQ.mjs";
4
+ import { B as L } from "./base-element-CzNmpVoz.mjs";
5
+ import { o as h } from "./observer-DQ8OfVDQ.mjs";
6
6
  import { n as s } from "./property-DJzm_oB9.mjs";
7
- import { i as m } from "./query-BBDQWsft.mjs";
8
- import { o as E } from "./class-map-C1SJpero.mjs";
7
+ import { i as m } from "./query-DSO61t36.mjs";
8
+ import { o as E } from "./class-map-BHl5MHd7.mjs";
9
9
  import { a as T } from "./utils-Dr5MegQq.mjs";
10
10
  /**
11
11
  * @license
@@ -29,7 +29,7 @@ import { a as T } from "./utils-Dr5MegQq.mjs";
29
29
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30
30
  * THE SOFTWARE.
31
31
  */
32
- var a = {
32
+ var n = {
33
33
  CLOSING: "mdc-dialog--closing",
34
34
  OPEN: "mdc-dialog--open",
35
35
  OPENING: "mdc-dialog--opening",
@@ -62,7 +62,7 @@ var a = {
62
62
  // to prevent interactions with the content behind this scrim, and to capture
63
63
  // scrim clicks.
64
64
  SCRIM_HIDDEN: "mdc-dialog__scrim--hidden"
65
- }, g = {
65
+ }, u = {
66
66
  ACTION_ATTRIBUTE: "data-mdc-dialog-action",
67
67
  BUTTON_DEFAULT_ATTRIBUTE: "data-mdc-dialog-button-default",
68
68
  BUTTON_SELECTOR: ".mdc-dialog__button",
@@ -82,7 +82,7 @@ var a = {
82
82
  ".mdc-menu .mdc-deprecated-list-item"
83
83
  ].join(", "),
84
84
  SURFACE_SELECTOR: ".mdc-dialog__surface"
85
- }, v = {
85
+ }, y = {
86
86
  DIALOG_ANIMATION_CLOSE_TIME_MS: 75,
87
87
  DIALOG_ANIMATION_OPEN_TIME_MS: 150
88
88
  };
@@ -114,26 +114,26 @@ var I = (
114
114
  function o() {
115
115
  this.rafIDs = /* @__PURE__ */ new Map();
116
116
  }
117
- return o.prototype.request = function(t, e) {
117
+ return o.prototype.request = function(e, t) {
118
118
  var i = this;
119
- this.cancel(t);
120
- var n = requestAnimationFrame(function(c) {
121
- i.rafIDs.delete(t), e(c);
119
+ this.cancel(e);
120
+ var a = requestAnimationFrame(function(c) {
121
+ i.rafIDs.delete(e), t(c);
122
122
  });
123
- this.rafIDs.set(t, n);
124
- }, o.prototype.cancel = function(t) {
125
- var e = this.rafIDs.get(t);
126
- e && (cancelAnimationFrame(e), this.rafIDs.delete(t));
123
+ this.rafIDs.set(e, a);
124
+ }, o.prototype.cancel = function(e) {
125
+ var t = this.rafIDs.get(e);
126
+ t && (cancelAnimationFrame(t), this.rafIDs.delete(e));
127
127
  }, o.prototype.cancelAll = function() {
128
- var t = this;
129
- this.rafIDs.forEach(function(e, i) {
130
- t.cancel(i);
128
+ var e = this;
129
+ this.rafIDs.forEach(function(t, i) {
130
+ e.cancel(i);
131
131
  });
132
132
  }, o.prototype.getQueue = function() {
133
- var t = [];
134
- return this.rafIDs.forEach(function(e, i) {
135
- t.push(i);
136
- }), t;
133
+ var e = [];
134
+ return this.rafIDs.forEach(function(t, i) {
135
+ e.push(i);
136
+ }), e;
137
137
  }, o;
138
138
  }()
139
139
  );
@@ -162,8 +162,8 @@ var I = (
162
162
  var R = (
163
163
  /** @class */
164
164
  function() {
165
- function o(t) {
166
- t === void 0 && (t = {}), this.adapter = t;
165
+ function o(e) {
166
+ e === void 0 && (e = {}), this.adapter = e;
167
167
  }
168
168
  return Object.defineProperty(o, "cssClasses", {
169
169
  get: function() {
@@ -223,10 +223,10 @@ var p;
223
223
  var k = (
224
224
  /** @class */
225
225
  function(o) {
226
- F(t, o);
227
- function t(e) {
228
- var i = o.call(this, x(x({}, t.defaultAdapter), e)) || this;
229
- return i.dialogOpen = !1, i.isFullscreen = !1, i.animationFrame = 0, i.animationTimer = 0, i.escapeKeyAction = g.CLOSE_ACTION, i.scrimClickAction = g.CLOSE_ACTION, i.autoStackButtons = !0, i.areButtonsStacked = !1, i.suppressDefaultPressSelector = g.SUPPRESS_DEFAULT_PRESS_SELECTOR, i.animFrame = new I(), i.contentScrollHandler = function() {
226
+ F(e, o);
227
+ function e(t) {
228
+ var i = o.call(this, x(x({}, e.defaultAdapter), t)) || this;
229
+ return i.dialogOpen = !1, i.isFullscreen = !1, i.animationFrame = 0, i.animationTimer = 0, i.escapeKeyAction = u.CLOSE_ACTION, i.scrimClickAction = u.CLOSE_ACTION, i.autoStackButtons = !0, i.areButtonsStacked = !1, i.suppressDefaultPressSelector = u.SUPPRESS_DEFAULT_PRESS_SELECTOR, i.animFrame = new I(), i.contentScrollHandler = function() {
230
230
  i.handleScrollEvent();
231
231
  }, i.windowResizeHandler = function() {
232
232
  i.layout();
@@ -234,25 +234,25 @@ var k = (
234
234
  i.layout();
235
235
  }, i;
236
236
  }
237
- return Object.defineProperty(t, "cssClasses", {
237
+ return Object.defineProperty(e, "cssClasses", {
238
238
  get: function() {
239
- return a;
239
+ return n;
240
240
  },
241
241
  enumerable: !1,
242
242
  configurable: !0
243
- }), Object.defineProperty(t, "strings", {
243
+ }), Object.defineProperty(e, "strings", {
244
244
  get: function() {
245
- return g;
245
+ return u;
246
246
  },
247
247
  enumerable: !1,
248
248
  configurable: !0
249
- }), Object.defineProperty(t, "numbers", {
249
+ }), Object.defineProperty(e, "numbers", {
250
250
  get: function() {
251
- return v;
251
+ return y;
252
252
  },
253
253
  enumerable: !1,
254
254
  configurable: !0
255
- }), Object.defineProperty(t, "defaultAdapter", {
255
+ }), Object.defineProperty(e, "defaultAdapter", {
256
256
  get: function() {
257
257
  return {
258
258
  addBodyClass: function() {
@@ -315,99 +315,99 @@ var k = (
315
315
  },
316
316
  enumerable: !1,
317
317
  configurable: !0
318
- }), t.prototype.init = function() {
319
- this.adapter.hasClass(a.STACKED) && this.setAutoStackButtons(!1), this.isFullscreen = this.adapter.hasClass(a.FULLSCREEN);
320
- }, t.prototype.destroy = function() {
318
+ }), e.prototype.init = function() {
319
+ this.adapter.hasClass(n.STACKED) && this.setAutoStackButtons(!1), this.isFullscreen = this.adapter.hasClass(n.FULLSCREEN);
320
+ }, e.prototype.destroy = function() {
321
321
  this.animationTimer && (clearTimeout(this.animationTimer), this.handleAnimationTimerEnd()), this.isFullscreen && this.adapter.deregisterContentEventHandler("scroll", this.contentScrollHandler), this.animFrame.cancelAll(), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), this.adapter.deregisterWindowEventHandler("orientationchange", this.windowOrientationChangeHandler);
322
- }, t.prototype.open = function(e) {
322
+ }, e.prototype.open = function(t) {
323
323
  var i = this;
324
- this.dialogOpen = !0, this.adapter.notifyOpening(), this.adapter.addClass(a.OPENING), this.isFullscreen && this.adapter.registerContentEventHandler("scroll", this.contentScrollHandler), e && e.isAboveFullscreenDialog && this.adapter.addClass(a.SCRIM_HIDDEN), this.adapter.registerWindowEventHandler("resize", this.windowResizeHandler), this.adapter.registerWindowEventHandler("orientationchange", this.windowOrientationChangeHandler), this.runNextAnimationFrame(function() {
325
- i.adapter.addClass(a.OPEN), i.adapter.addBodyClass(a.SCROLL_LOCK), i.layout(), i.animationTimer = setTimeout(function() {
324
+ this.dialogOpen = !0, this.adapter.notifyOpening(), this.adapter.addClass(n.OPENING), this.isFullscreen && this.adapter.registerContentEventHandler("scroll", this.contentScrollHandler), t && t.isAboveFullscreenDialog && this.adapter.addClass(n.SCRIM_HIDDEN), this.adapter.registerWindowEventHandler("resize", this.windowResizeHandler), this.adapter.registerWindowEventHandler("orientationchange", this.windowOrientationChangeHandler), this.runNextAnimationFrame(function() {
325
+ i.adapter.addClass(n.OPEN), i.adapter.addBodyClass(n.SCROLL_LOCK), i.layout(), i.animationTimer = setTimeout(function() {
326
326
  i.handleAnimationTimerEnd(), i.adapter.trapFocus(i.adapter.getInitialFocusEl()), i.adapter.notifyOpened();
327
- }, v.DIALOG_ANIMATION_OPEN_TIME_MS);
327
+ }, y.DIALOG_ANIMATION_OPEN_TIME_MS);
328
328
  });
329
- }, t.prototype.close = function(e) {
329
+ }, e.prototype.close = function(t) {
330
330
  var i = this;
331
- e === void 0 && (e = ""), this.dialogOpen && (this.dialogOpen = !1, this.adapter.notifyClosing(e), this.adapter.addClass(a.CLOSING), this.adapter.removeClass(a.OPEN), this.adapter.removeBodyClass(a.SCROLL_LOCK), this.isFullscreen && this.adapter.deregisterContentEventHandler("scroll", this.contentScrollHandler), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), this.adapter.deregisterWindowEventHandler("orientationchange", this.windowOrientationChangeHandler), cancelAnimationFrame(this.animationFrame), this.animationFrame = 0, clearTimeout(this.animationTimer), this.animationTimer = setTimeout(function() {
332
- i.adapter.releaseFocus(), i.handleAnimationTimerEnd(), i.adapter.notifyClosed(e);
333
- }, v.DIALOG_ANIMATION_CLOSE_TIME_MS));
334
- }, t.prototype.showSurfaceScrim = function() {
335
- var e = this;
336
- this.adapter.addClass(a.SURFACE_SCRIM_SHOWING), this.runNextAnimationFrame(function() {
337
- e.adapter.addClass(a.SURFACE_SCRIM_SHOWN);
331
+ t === void 0 && (t = ""), this.dialogOpen && (this.dialogOpen = !1, this.adapter.notifyClosing(t), this.adapter.addClass(n.CLOSING), this.adapter.removeClass(n.OPEN), this.adapter.removeBodyClass(n.SCROLL_LOCK), this.isFullscreen && this.adapter.deregisterContentEventHandler("scroll", this.contentScrollHandler), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), this.adapter.deregisterWindowEventHandler("orientationchange", this.windowOrientationChangeHandler), cancelAnimationFrame(this.animationFrame), this.animationFrame = 0, clearTimeout(this.animationTimer), this.animationTimer = setTimeout(function() {
332
+ i.adapter.releaseFocus(), i.handleAnimationTimerEnd(), i.adapter.notifyClosed(t);
333
+ }, y.DIALOG_ANIMATION_CLOSE_TIME_MS));
334
+ }, e.prototype.showSurfaceScrim = function() {
335
+ var t = this;
336
+ this.adapter.addClass(n.SURFACE_SCRIM_SHOWING), this.runNextAnimationFrame(function() {
337
+ t.adapter.addClass(n.SURFACE_SCRIM_SHOWN);
338
338
  });
339
- }, t.prototype.hideSurfaceScrim = function() {
340
- this.adapter.removeClass(a.SURFACE_SCRIM_SHOWN), this.adapter.addClass(a.SURFACE_SCRIM_HIDING);
341
- }, t.prototype.handleSurfaceScrimTransitionEnd = function() {
342
- this.adapter.removeClass(a.SURFACE_SCRIM_HIDING), this.adapter.removeClass(a.SURFACE_SCRIM_SHOWING);
343
- }, t.prototype.isOpen = function() {
339
+ }, e.prototype.hideSurfaceScrim = function() {
340
+ this.adapter.removeClass(n.SURFACE_SCRIM_SHOWN), this.adapter.addClass(n.SURFACE_SCRIM_HIDING);
341
+ }, e.prototype.handleSurfaceScrimTransitionEnd = function() {
342
+ this.adapter.removeClass(n.SURFACE_SCRIM_HIDING), this.adapter.removeClass(n.SURFACE_SCRIM_SHOWING);
343
+ }, e.prototype.isOpen = function() {
344
344
  return this.dialogOpen;
345
- }, t.prototype.getEscapeKeyAction = function() {
345
+ }, e.prototype.getEscapeKeyAction = function() {
346
346
  return this.escapeKeyAction;
347
- }, t.prototype.setEscapeKeyAction = function(e) {
348
- this.escapeKeyAction = e;
349
- }, t.prototype.getScrimClickAction = function() {
347
+ }, e.prototype.setEscapeKeyAction = function(t) {
348
+ this.escapeKeyAction = t;
349
+ }, e.prototype.getScrimClickAction = function() {
350
350
  return this.scrimClickAction;
351
- }, t.prototype.setScrimClickAction = function(e) {
352
- this.scrimClickAction = e;
353
- }, t.prototype.getAutoStackButtons = function() {
351
+ }, e.prototype.setScrimClickAction = function(t) {
352
+ this.scrimClickAction = t;
353
+ }, e.prototype.getAutoStackButtons = function() {
354
354
  return this.autoStackButtons;
355
- }, t.prototype.setAutoStackButtons = function(e) {
356
- this.autoStackButtons = e;
357
- }, t.prototype.getSuppressDefaultPressSelector = function() {
355
+ }, e.prototype.setAutoStackButtons = function(t) {
356
+ this.autoStackButtons = t;
357
+ }, e.prototype.getSuppressDefaultPressSelector = function() {
358
358
  return this.suppressDefaultPressSelector;
359
- }, t.prototype.setSuppressDefaultPressSelector = function(e) {
360
- this.suppressDefaultPressSelector = e;
361
- }, t.prototype.layout = function() {
362
- var e = this;
359
+ }, e.prototype.setSuppressDefaultPressSelector = function(t) {
360
+ this.suppressDefaultPressSelector = t;
361
+ }, e.prototype.layout = function() {
362
+ var t = this;
363
363
  this.animFrame.request(p.POLL_LAYOUT_CHANGE, function() {
364
- e.layoutInternal();
364
+ t.layoutInternal();
365
365
  });
366
- }, t.prototype.handleClick = function(e) {
367
- var i = this.adapter.eventTargetMatches(e.target, g.SCRIM_SELECTOR);
366
+ }, e.prototype.handleClick = function(t) {
367
+ var i = this.adapter.eventTargetMatches(t.target, u.SCRIM_SELECTOR);
368
368
  if (i && this.scrimClickAction !== "")
369
369
  this.close(this.scrimClickAction);
370
370
  else {
371
- var n = this.adapter.getActionFromEvent(e);
372
- n && this.close(n);
371
+ var a = this.adapter.getActionFromEvent(t);
372
+ a && this.close(a);
373
373
  }
374
- }, t.prototype.handleKeydown = function(e) {
375
- var i = e.key === "Enter" || e.keyCode === 13;
374
+ }, e.prototype.handleKeydown = function(t) {
375
+ var i = t.key === "Enter" || t.keyCode === 13;
376
376
  if (i) {
377
- var n = this.adapter.getActionFromEvent(e);
378
- if (!n) {
379
- var c = e.composedPath ? e.composedPath()[0] : e.target, l = this.suppressDefaultPressSelector ? !this.adapter.eventTargetMatches(c, this.suppressDefaultPressSelector) : !0;
377
+ var a = this.adapter.getActionFromEvent(t);
378
+ if (!a) {
379
+ var c = t.composedPath ? t.composedPath()[0] : t.target, l = this.suppressDefaultPressSelector ? !this.adapter.eventTargetMatches(c, this.suppressDefaultPressSelector) : !0;
380
380
  i && l && this.adapter.clickDefaultButton();
381
381
  }
382
382
  }
383
- }, t.prototype.handleDocumentKeydown = function(e) {
384
- var i = e.key === "Escape" || e.keyCode === 27;
383
+ }, e.prototype.handleDocumentKeydown = function(t) {
384
+ var i = t.key === "Escape" || t.keyCode === 27;
385
385
  i && this.escapeKeyAction !== "" && this.close(this.escapeKeyAction);
386
- }, t.prototype.handleScrollEvent = function() {
387
- var e = this;
386
+ }, e.prototype.handleScrollEvent = function() {
387
+ var t = this;
388
388
  this.animFrame.request(p.POLL_SCROLL_POS, function() {
389
- e.toggleScrollDividerHeader(), e.toggleScrollDividerFooter();
389
+ t.toggleScrollDividerHeader(), t.toggleScrollDividerFooter();
390
390
  });
391
- }, t.prototype.layoutInternal = function() {
391
+ }, e.prototype.layoutInternal = function() {
392
392
  this.autoStackButtons && this.detectStackedButtons(), this.toggleScrollableClasses();
393
- }, t.prototype.handleAnimationTimerEnd = function() {
394
- this.animationTimer = 0, this.adapter.removeClass(a.OPENING), this.adapter.removeClass(a.CLOSING);
395
- }, t.prototype.runNextAnimationFrame = function(e) {
393
+ }, e.prototype.handleAnimationTimerEnd = function() {
394
+ this.animationTimer = 0, this.adapter.removeClass(n.OPENING), this.adapter.removeClass(n.CLOSING);
395
+ }, e.prototype.runNextAnimationFrame = function(t) {
396
396
  var i = this;
397
397
  cancelAnimationFrame(this.animationFrame), this.animationFrame = requestAnimationFrame(function() {
398
- i.animationFrame = 0, clearTimeout(i.animationTimer), i.animationTimer = setTimeout(e, 0);
398
+ i.animationFrame = 0, clearTimeout(i.animationTimer), i.animationTimer = setTimeout(t, 0);
399
399
  });
400
- }, t.prototype.detectStackedButtons = function() {
401
- this.adapter.removeClass(a.STACKED);
402
- var e = this.adapter.areButtonsStacked();
403
- e && this.adapter.addClass(a.STACKED), e !== this.areButtonsStacked && (this.adapter.reverseButtons(), this.areButtonsStacked = e);
404
- }, t.prototype.toggleScrollableClasses = function() {
405
- this.adapter.removeClass(a.SCROLLABLE), this.adapter.isContentScrollable() && (this.adapter.addClass(a.SCROLLABLE), this.isFullscreen && (this.toggleScrollDividerHeader(), this.toggleScrollDividerFooter()));
406
- }, t.prototype.toggleScrollDividerHeader = function() {
407
- this.adapter.isScrollableContentAtTop() ? this.adapter.hasClass(a.SCROLL_DIVIDER_HEADER) && this.adapter.removeClass(a.SCROLL_DIVIDER_HEADER) : this.adapter.addClass(a.SCROLL_DIVIDER_HEADER);
408
- }, t.prototype.toggleScrollDividerFooter = function() {
409
- this.adapter.isScrollableContentAtBottom() ? this.adapter.hasClass(a.SCROLL_DIVIDER_FOOTER) && this.adapter.removeClass(a.SCROLL_DIVIDER_FOOTER) : this.adapter.addClass(a.SCROLL_DIVIDER_FOOTER);
410
- }, t;
400
+ }, e.prototype.detectStackedButtons = function() {
401
+ this.adapter.removeClass(n.STACKED);
402
+ var t = this.adapter.areButtonsStacked();
403
+ t && this.adapter.addClass(n.STACKED), t !== this.areButtonsStacked && (this.adapter.reverseButtons(), this.areButtonsStacked = t);
404
+ }, e.prototype.toggleScrollableClasses = function() {
405
+ this.adapter.removeClass(n.SCROLLABLE), this.adapter.isContentScrollable() && (this.adapter.addClass(n.SCROLLABLE), this.isFullscreen && (this.toggleScrollDividerHeader(), this.toggleScrollDividerFooter()));
406
+ }, e.prototype.toggleScrollDividerHeader = function() {
407
+ this.adapter.isScrollableContentAtTop() ? this.adapter.hasClass(n.SCROLL_DIVIDER_HEADER) && this.adapter.removeClass(n.SCROLL_DIVIDER_HEADER) : this.adapter.addClass(n.SCROLL_DIVIDER_HEADER);
408
+ }, e.prototype.toggleScrollDividerFooter = function() {
409
+ this.adapter.isScrollableContentAtBottom() ? this.adapter.hasClass(n.SCROLL_DIVIDER_FOOTER) && this.adapter.removeClass(n.SCROLL_DIVIDER_FOOTER) : this.adapter.addClass(n.SCROLL_DIVIDER_FOOTER);
410
+ }, e;
411
411
  }(R)
412
412
  );
413
413
  /**
@@ -432,26 +432,26 @@ var k = (
432
432
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
433
433
  * THE SOFTWARE.
434
434
  */
435
- function u(o) {
435
+ function g(o) {
436
436
  return o === void 0 && (o = window), H(o) ? { passive: !0 } : !1;
437
437
  }
438
438
  function H(o) {
439
439
  o === void 0 && (o = window);
440
- var t = !1;
440
+ var e = !1;
441
441
  try {
442
- var e = {
442
+ var t = {
443
443
  // This function will be called when the browser
444
444
  // attempts to access the passive property.
445
445
  get passive() {
446
- return t = !0, !1;
446
+ return e = !0, !1;
447
447
  }
448
448
  }, i = function() {
449
449
  };
450
- o.document.addEventListener("test", i, e), o.document.removeEventListener("test", i, e);
450
+ o.document.addEventListener("test", i, t), o.document.removeEventListener("test", i, t);
451
451
  } catch {
452
- t = !1;
452
+ e = !1;
453
453
  }
454
- return t;
454
+ return e;
455
455
  }
456
456
  /**
457
457
  * @license
@@ -475,32 +475,32 @@ function H(o) {
475
475
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
476
476
  * THE SOFTWARE.
477
477
  */
478
- function N(o, t) {
478
+ function N(o, e) {
479
479
  if (o.closest)
480
- return o.closest(t);
481
- for (var e = o; e; ) {
482
- if (C(e, t))
483
- return e;
484
- e = e.parentElement;
480
+ return o.closest(e);
481
+ for (var t = o; t; ) {
482
+ if (C(t, e))
483
+ return t;
484
+ t = t.parentElement;
485
485
  }
486
486
  return null;
487
487
  }
488
- function C(o, t) {
489
- var e = o.matches || o.webkitMatchesSelector || o.msMatchesSelector;
490
- return e.call(o, t);
488
+ function C(o, e) {
489
+ var t = o.matches || o.webkitMatchesSelector || o.msMatchesSelector;
490
+ return t.call(o, e);
491
491
  }
492
492
  /**
493
493
  * @license
494
494
  * Copyright 2019 Google LLC
495
495
  * SPDX-License-Identifier: Apache-2.0
496
496
  */
497
- const y = document.$blockingElements;
497
+ const b = document.$blockingElements;
498
498
  class d extends L {
499
499
  constructor() {
500
500
  super(...arguments), this.hideActions = !1, this.stacked = !1, this.heading = "", this.scrimClickAction = "close", this.escapeKeyAction = "close", this.open = !1, this.defaultAction = "close", this.actionAttribute = "dialogAction", this.initialFocusAttribute = "dialogInitialFocus", this.initialSupressDefaultPressSelector = "", this.mdcFoundationClass = k, this.boundHandleClick = null, this.boundHandleKeydown = null, this.boundHandleDocumentKeydown = null;
501
501
  }
502
- set suppressDefaultPressSelector(t) {
503
- this.mdcFoundation ? this.mdcFoundation.setSuppressDefaultPressSelector(t) : this.initialSupressDefaultPressSelector = t;
502
+ set suppressDefaultPressSelector(e) {
503
+ this.mdcFoundation ? this.mdcFoundation.setSuppressDefaultPressSelector(e) : this.initialSupressDefaultPressSelector = e;
504
504
  }
505
505
  /**
506
506
  * @export
@@ -509,96 +509,96 @@ class d extends L {
509
509
  return this.mdcFoundation ? this.mdcFoundation.getSuppressDefaultPressSelector() : this.initialSupressDefaultPressSelector;
510
510
  }
511
511
  get primaryButton() {
512
- let t = this.primarySlot.assignedNodes();
513
- t = t.filter((i) => i instanceof HTMLElement);
514
- const e = t[0];
515
- return e || null;
512
+ let e = this.primarySlot.assignedNodes();
513
+ e = e.filter((i) => i instanceof HTMLElement);
514
+ const t = e[0];
515
+ return t || null;
516
516
  }
517
- emitNotification(t, e) {
518
- const i = { detail: e ? { action: e } : {} }, n = new CustomEvent(t, i);
519
- this.dispatchEvent(n);
517
+ emitNotification(e, t) {
518
+ const i = { detail: t ? { action: t } : {} }, a = new CustomEvent(e, i);
519
+ this.dispatchEvent(a);
520
520
  }
521
521
  getInitialFocusEl() {
522
- const t = `[${this.initialFocusAttribute}]`, e = this.querySelector(t);
523
- if (e)
524
- return e;
525
- const n = this.primarySlot.assignedNodes({ flatten: !0 }), c = this.searchNodeTreesForAttribute(n, this.initialFocusAttribute);
522
+ const e = `[${this.initialFocusAttribute}]`, t = this.querySelector(e);
523
+ if (t)
524
+ return t;
525
+ const a = this.primarySlot.assignedNodes({ flatten: !0 }), c = this.searchNodeTreesForAttribute(a, this.initialFocusAttribute);
526
526
  if (c)
527
527
  return c;
528
- const w = this.secondarySlot.assignedNodes({ flatten: !0 }), b = this.searchNodeTreesForAttribute(w, this.initialFocusAttribute);
529
- if (b)
530
- return b;
528
+ const w = this.secondarySlot.assignedNodes({ flatten: !0 }), v = this.searchNodeTreesForAttribute(w, this.initialFocusAttribute);
529
+ if (v)
530
+ return v;
531
531
  const A = this.contentSlot.assignedNodes({ flatten: !0 });
532
532
  return this.searchNodeTreesForAttribute(A, this.initialFocusAttribute);
533
533
  }
534
- searchNodeTreesForAttribute(t, e) {
535
- for (const i of t)
534
+ searchNodeTreesForAttribute(e, t) {
535
+ for (const i of e)
536
536
  if (i instanceof HTMLElement) {
537
- if (i.hasAttribute(e))
537
+ if (i.hasAttribute(t))
538
538
  return i;
539
539
  {
540
- const n = i.querySelector(`[${e}]`);
541
- if (n)
542
- return n;
540
+ const a = i.querySelector(`[${t}]`);
541
+ if (a)
542
+ return a;
543
543
  }
544
544
  }
545
545
  return null;
546
546
  }
547
547
  createAdapter() {
548
548
  return Object.assign(Object.assign({}, T(this.mdcRoot)), { addBodyClass: () => document.body.style.overflow = "hidden", removeBodyClass: () => document.body.style.overflow = "", areButtonsStacked: () => this.stacked, clickDefaultButton: () => {
549
- const t = this.primaryButton;
550
- t && t.click();
551
- }, eventTargetMatches: (t, e) => t ? C(t, e) : !1, getActionFromEvent: (t) => {
552
- if (!t.target)
549
+ const e = this.primaryButton;
550
+ e && e.click();
551
+ }, eventTargetMatches: (e, t) => e ? C(e, t) : !1, getActionFromEvent: (e) => {
552
+ if (!e.target)
553
553
  return "";
554
- const e = N(t.target, `[${this.actionAttribute}]`);
555
- return e && e.getAttribute(this.actionAttribute);
554
+ const t = N(e.target, `[${this.actionAttribute}]`);
555
+ return t && t.getAttribute(this.actionAttribute);
556
556
  }, getInitialFocusEl: () => this.getInitialFocusEl(), isContentScrollable: () => {
557
- const t = this.contentElement;
558
- return t ? t.scrollHeight > t.offsetHeight : !1;
559
- }, notifyClosed: (t) => this.emitNotification("closed", t), notifyClosing: (t) => {
560
- this.closingDueToDisconnect || (this.open = !1), this.emitNotification("closing", t);
557
+ const e = this.contentElement;
558
+ return e ? e.scrollHeight > e.offsetHeight : !1;
559
+ }, notifyClosed: (e) => this.emitNotification("closed", e), notifyClosing: (e) => {
560
+ this.closingDueToDisconnect || (this.open = !1), this.emitNotification("closing", e);
561
561
  }, notifyOpened: () => this.emitNotification("opened"), notifyOpening: () => {
562
562
  this.open = !0, this.emitNotification("opening");
563
563
  }, reverseButtons: () => {
564
564
  }, releaseFocus: () => {
565
- y.remove(this);
566
- }, trapFocus: (t) => {
567
- this.isConnected && (y.push(this), t && t.focus());
568
- }, registerContentEventHandler: (t, e) => {
569
- this.contentElement.addEventListener(t, e);
570
- }, deregisterContentEventHandler: (t, e) => {
571
- this.contentElement.removeEventListener(t, e);
565
+ b.remove(this);
566
+ }, trapFocus: (e) => {
567
+ this.isConnected && (b.push(this), e && e.focus());
568
+ }, registerContentEventHandler: (e, t) => {
569
+ this.contentElement.addEventListener(e, t);
570
+ }, deregisterContentEventHandler: (e, t) => {
571
+ this.contentElement.removeEventListener(e, t);
572
572
  }, isScrollableContentAtTop: () => {
573
- const t = this.contentElement;
574
- return t ? t.scrollTop === 0 : !1;
573
+ const e = this.contentElement;
574
+ return e ? e.scrollTop === 0 : !1;
575
575
  }, isScrollableContentAtBottom: () => {
576
- const t = this.contentElement;
577
- return t ? Math.ceil(t.scrollHeight - t.scrollTop) === t.clientHeight : !1;
578
- }, registerWindowEventHandler: (t, e) => {
579
- window.addEventListener(t, e, u());
580
- }, deregisterWindowEventHandler: (t, e) => {
581
- window.removeEventListener(t, e, u());
576
+ const e = this.contentElement;
577
+ return e ? Math.ceil(e.scrollHeight - e.scrollTop) === e.clientHeight : !1;
578
+ }, registerWindowEventHandler: (e, t) => {
579
+ window.addEventListener(e, t, g());
580
+ }, deregisterWindowEventHandler: (e, t) => {
581
+ window.removeEventListener(e, t, g());
582
582
  } });
583
583
  }
584
584
  render() {
585
- const t = {
586
- [a.STACKED]: this.stacked
585
+ const e = {
586
+ [n.STACKED]: this.stacked
587
587
  };
588
- let e = _``;
589
- this.heading && (e = this.renderHeading());
588
+ let t = _``;
589
+ this.heading && (t = this.renderHeading());
590
590
  const i = {
591
591
  "mdc-dialog__actions": !this.hideActions
592
592
  };
593
593
  return _`
594
- <div class="mdc-dialog ${E(t)}"
594
+ <div class="mdc-dialog ${E(e)}"
595
595
  role="alertdialog"
596
596
  aria-modal="true"
597
597
  aria-labelledby="title"
598
598
  aria-describedby="content">
599
599
  <div class="mdc-dialog__container">
600
600
  <div class="mdc-dialog__surface">
601
- ${e}
601
+ ${t}
602
602
  <div id="content" class="mdc-dialog__content">
603
603
  <slot id="contentSlot"></slot>
604
604
  </div>
@@ -633,28 +633,28 @@ class d extends L {
633
633
  super.connectedCallback(), this.open && this.mdcFoundation && !this.mdcFoundation.isOpen() && (this.setEventListeners(), this.mdcFoundation.open());
634
634
  }
635
635
  disconnectedCallback() {
636
- super.disconnectedCallback(), this.open && this.mdcFoundation && (this.removeEventListeners(), this.closingDueToDisconnect = !0, this.mdcFoundation.close(this.currentAction || this.defaultAction), this.closingDueToDisconnect = !1, this.currentAction = void 0, y.remove(this));
636
+ super.disconnectedCallback(), this.open && this.mdcFoundation && (this.removeEventListeners(), this.closingDueToDisconnect = !0, this.mdcFoundation.close(this.currentAction || this.defaultAction), this.closingDueToDisconnect = !1, this.currentAction = void 0, b.remove(this));
637
637
  }
638
638
  forceLayout() {
639
639
  this.mdcFoundation.layout();
640
640
  }
641
641
  focus() {
642
- const t = this.getInitialFocusEl();
643
- t && t.focus();
642
+ const e = this.getInitialFocusEl();
643
+ e && e.focus();
644
644
  }
645
645
  blur() {
646
646
  if (!this.shadowRoot)
647
647
  return;
648
- const t = this.shadowRoot.activeElement;
649
- if (t)
650
- t instanceof HTMLElement && t.blur();
648
+ const e = this.shadowRoot.activeElement;
649
+ if (e)
650
+ e instanceof HTMLElement && e.blur();
651
651
  else {
652
- const e = this.getRootNode(), i = e instanceof Document ? e.activeElement : null;
652
+ const t = this.getRootNode(), i = t instanceof Document ? t.activeElement : null;
653
653
  i instanceof HTMLElement && i.blur();
654
654
  }
655
655
  }
656
656
  setEventListeners() {
657
- this.boundHandleClick && this.mdcRoot.addEventListener("click", this.boundHandleClick), this.boundHandleKeydown && this.mdcRoot.addEventListener("keydown", this.boundHandleKeydown, u()), this.boundHandleDocumentKeydown && document.addEventListener("keydown", this.boundHandleDocumentKeydown, u());
657
+ this.boundHandleClick && this.mdcRoot.addEventListener("click", this.boundHandleClick), this.boundHandleKeydown && this.mdcRoot.addEventListener("keydown", this.boundHandleKeydown, g()), this.boundHandleDocumentKeydown && document.addEventListener("keydown", this.boundHandleDocumentKeydown, g());
658
658
  }
659
659
  removeEventListeners() {
660
660
  this.boundHandleClick && this.mdcRoot.removeEventListener("click", this.boundHandleClick), this.boundHandleKeydown && this.mdcRoot.removeEventListener("keydown", this.boundHandleKeydown), this.boundHandleDocumentKeydown && document.removeEventListener("keydown", this.boundHandleDocumentKeydown);
@@ -689,7 +689,7 @@ r([
689
689
  ], d.prototype, "hideActions", void 0);
690
690
  r([
691
691
  s({ type: Boolean }),
692
- f(function() {
692
+ h(function() {
693
693
  this.forceLayout();
694
694
  })
695
695
  ], d.prototype, "stacked", void 0);
@@ -698,19 +698,19 @@ r([
698
698
  ], d.prototype, "heading", void 0);
699
699
  r([
700
700
  s({ type: String }),
701
- f(function(o) {
701
+ h(function(o) {
702
702
  this.mdcFoundation.setScrimClickAction(o);
703
703
  })
704
704
  ], d.prototype, "scrimClickAction", void 0);
705
705
  r([
706
706
  s({ type: String }),
707
- f(function(o) {
707
+ h(function(o) {
708
708
  this.mdcFoundation.setEscapeKeyAction(o);
709
709
  })
710
710
  ], d.prototype, "escapeKeyAction", void 0);
711
711
  r([
712
712
  s({ type: Boolean, reflect: !0 }),
713
- f(function(o) {
713
+ h(function(o) {
714
714
  this.mdcFoundation && this.isConnected && (o ? (this.setEventListeners(), this.mdcFoundation.open()) : (this.removeEventListeners(), this.mdcFoundation.close(this.currentAction || this.defaultAction), this.currentAction = void 0));
715
715
  })
716
716
  ], d.prototype, "open", void 0);
@@ -729,20 +729,20 @@ r([
729
729
  * SPDX-LIcense-Identifier: Apache-2.0
730
730
  */
731
731
  const P = S`.mdc-dialog .mdc-dialog__surface{background-color:#fff;background-color:var(--mdc-theme-surface, #fff)}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(0,0,0,.32)}.mdc-dialog .mdc-dialog__surface-scrim{background-color:rgba(0,0,0,.32)}.mdc-dialog .mdc-dialog__title{color:rgba(0,0,0,.87)}.mdc-dialog .mdc-dialog__content{color:rgba(0,0,0,.6)}.mdc-dialog .mdc-dialog__close{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-dialog .mdc-dialog__close:hover .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close.mdc-ripple-surface--hover .mdc-icon-button__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded--background-focused .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):focus .mdc-icon-button__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded) .mdc-icon-button__ripple::after{transition:opacity 150ms linear}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):active .mdc-icon-button__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions,.mdc-dialog.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:rgba(0,0,0,.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:0}.mdc-dialog.mdc-dialog-scroll-divider-header.mdc-dialog--fullscreen .mdc-dialog__header{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12)}.mdc-dialog .mdc-dialog__surface{border-radius:4px;border-radius:var(--mdc-shape-medium, 4px)}.mdc-dialog__surface{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2),0px 24px 38px 3px rgba(0, 0, 0, 0.14),0px 9px 46px 8px rgba(0,0,0,.12)}.mdc-dialog__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.25rem;font-size:var(--mdc-typography-headline6-font-size, 1.25rem);line-height:2rem;line-height:var(--mdc-typography-headline6-line-height, 2rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit)}.mdc-dialog__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-body1-font-size, 1rem);line-height:1.5rem;line-height:var(--mdc-typography-body1-line-height, 1.5rem);font-weight:400;font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:0.03125em;letter-spacing:var(--mdc-typography-body1-letter-spacing, 0.03125em);text-decoration:inherit;text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body1-text-transform, inherit)}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:7;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(max-width: 600px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid transparent;display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid transparent}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid transparent}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1;z-index:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}#actions:not(.mdc-dialog__actions){display:none}.mdc-dialog__surface{box-shadow:var(--mdc-dialog-box-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}@media(min-width: 560px){.mdc-dialog .mdc-dialog__surface{max-width:560px;max-width:var(--mdc-dialog-max-width, 560px)}}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(0, 0, 0, 0.32);background-color:var(--mdc-dialog-scrim-color, rgba(0, 0, 0, 0.32))}.mdc-dialog .mdc-dialog__title{color:rgba(0, 0, 0, 0.87);color:var(--mdc-dialog-heading-ink-color, rgba(0, 0, 0, 0.87))}.mdc-dialog .mdc-dialog__content{color:rgba(0, 0, 0, 0.6);color:var(--mdc-dialog-content-ink-color, rgba(0, 0, 0, 0.6))}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions{border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-dialog-scroll-divider-color, rgba(0, 0, 0, 0.12))}.mdc-dialog .mdc-dialog__surface{min-width:280px;min-width:var(--mdc-dialog-min-width, 280px)}.mdc-dialog .mdc-dialog__surface{max-height:var(--mdc-dialog-max-height, calc(100% - 32px))}#actions ::slotted(*){margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] #actions ::slotted(*),#actions ::slotted(*[dir=rtl]){margin-left:0;margin-right:8px}[dir=rtl] #actions ::slotted(*),#actions ::slotted(*[dir=rtl]){text-align:left}.mdc-dialog--stacked #actions{flex-direction:column-reverse}.mdc-dialog--stacked #actions *:not(:last-child) ::slotted(*){flex-basis:.000000001px;margin-top:12px}`, B = ":host{--mdc-dialog-heading-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-dialog-content-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-dialog-scroll-divider-color: var(--mdc-theme-border)}:host .mdc-dialog .mdc-dialog__surface{border-radius:var(--cv-dialog-border-radius, var(--mdc-shape-medium, 4));min-height:var(--mdc-dialog-min-height)}:host .mdc-dialog .mdc-dialog__content{padding:var(--cv-dialog-vertical-padding, 20px) var(--cv-dialog-horizontal-padding, 24px)}";
732
- var M = Object.defineProperty, K = Object.getOwnPropertyDescriptor, z = (o, t, e, i) => {
733
- for (var n = i > 1 ? void 0 : i ? K(t, e) : t, c = o.length - 1, l; c >= 0; c--)
734
- (l = o[c]) && (n = (i ? l(t, e, n) : l(n)) || n);
735
- return i && n && M(t, e, n), n;
732
+ var M = Object.defineProperty, K = Object.getOwnPropertyDescriptor, z = (o, e, t, i) => {
733
+ for (var a = i > 1 ? void 0 : i ? K(e, t) : e, c = o.length - 1, l; c >= 0; c--)
734
+ (l = o[c]) && (a = (i ? l(e, t, a) : l(a)) || a);
735
+ return i && a && M(e, t, a), a;
736
736
  };
737
- let h = class extends d {
737
+ let f = class extends d {
738
738
  };
739
- h.styles = [P, S`${D(B)}`];
740
- h = z([
739
+ f.styles = [P, S`${D(B)}`];
740
+ f = z([
741
741
  O("cv-dialog")
742
- ], h);
743
- const Z = h;
742
+ ], f);
743
+ const Z = f;
744
744
  export {
745
- h as C,
745
+ f as C,
746
746
  Z as a,
747
747
  P as s
748
748
  };