@limetech/lime-elements 39.24.1 → 39.25.0

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 (157) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/{_assignValue-DpsLUlF4.js → _assignValue-DQh76m39.js} +2 -2
  3. package/dist/cjs/{_baseEach-C570gT5Y.js → _baseEach-Bygi-un6.js} +2 -2
  4. package/dist/cjs/{_baseIsEqual-aOPReRWl.js → _baseIsEqual-CQZKiKbe.js} +20 -365
  5. package/dist/cjs/{_baseIteratee-DggA4e7a.js → _baseIteratee-DDklwtn9.js} +6 -4
  6. package/dist/cjs/{_defineProperty-BDFOiqJL.js → _defineProperty-Csu6P9HT.js} +1 -1
  7. package/dist/cjs/{_getAllKeysIn-BQIV8aw7.js → _getAllKeysIn-BJsgUTAt.js} +5 -4
  8. package/dist/cjs/{_getNative-B4n5HX2B.js → _getNative-Cf52giNE.js} +2 -2
  9. package/dist/cjs/_getTag-BC28Za7d.js +355 -0
  10. package/dist/cjs/_isIndex-Bu45fvR7.js +27 -0
  11. package/dist/cjs/{_isIterateeCall-CPWXFS_s.js → _isIterateeCall-BUGt9SrH.js} +4 -3
  12. package/dist/cjs/{cloneDeep-CxFNKF1Y.js → cloneDeep-hE40Q8aw.js} +13 -12
  13. package/dist/cjs/{difference-Bfsq4sXB.js → difference-B543MGsY.js} +5 -4
  14. package/dist/cjs/eq-DFcUoVzv.js +39 -0
  15. package/dist/cjs/file-metadata-BrhOssGG.js +76 -0
  16. package/dist/cjs/{files-Cf615Ytp.js → files-Bt11HLi4.js} +1 -1
  17. package/dist/cjs/{focus-trigger-element-Brw8VubX.js → focus-trigger-element-BfnJmxKO.js} +1 -1
  18. package/dist/{esm/file-metadata-BwF9vTXN.js → cjs/icons-isR5V1X0.js} +4 -69
  19. package/dist/cjs/{isArrayLike-_dR1U5-Y.js → isArrayLike-C2RwZMG4.js} +2 -27
  20. package/dist/cjs/{isEmpty-EBCFxX1S.js → isEmpty-CCxl3bYc.js} +6 -6
  21. package/dist/cjs/{isEqual-bXyw7kXo.js → isEqual-Cd9J8a5-.js} +1 -1
  22. package/dist/cjs/{eq-B1KBAwmK.js → isFunction-RSHwsz1x.js} +0 -37
  23. package/dist/cjs/lime-elements.cjs.js +1 -1
  24. package/dist/cjs/{limel-breadcrumbs_7.cjs.entry.js → limel-breadcrumbs_8.cjs.entry.js} +74 -8
  25. package/dist/cjs/limel-chip-set.cjs.entry.js +588 -0
  26. package/dist/cjs/limel-chip_2.cjs.entry.js +33 -540
  27. package/dist/cjs/limel-dialog.cjs.entry.js +9 -6
  28. package/dist/cjs/limel-email-viewer.cjs.entry.js +15 -10
  29. package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +12 -8
  30. package/dist/cjs/limel-file.cjs.entry.js +2 -1
  31. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +5 -3
  32. package/dist/cjs/limel-form.cjs.entry.js +28 -25
  33. package/dist/cjs/limel-helper-line.cjs.entry.js +42 -0
  34. package/dist/cjs/limel-popover_2.cjs.entry.js +6 -5
  35. package/dist/cjs/limel-profile-picture.cjs.entry.js +3 -2
  36. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +16 -12
  37. package/dist/cjs/limel-tab-bar.cjs.entry.js +11 -8
  38. package/dist/cjs/limel-table.cjs.entry.js +14 -11
  39. package/dist/cjs/loader.cjs.js +1 -1
  40. package/dist/cjs/{pickBy-kLjYLoam.js → pickBy-D-X6S5kg.js} +5 -5
  41. package/dist/collection/components/chip-set/chip-set-input-helpers.js +8 -3
  42. package/dist/collection/components/chip-set/chip-set.js +9 -3
  43. package/dist/collection/components/email-viewer/email-viewer.css +7 -33
  44. package/dist/collection/components/email-viewer/email-viewer.js +16 -9
  45. package/dist/esm/{_assignValue-DOEO9byf.js → _assignValue-CEFvyZxO.js} +2 -2
  46. package/dist/esm/{_baseEach-C4UJIc96.js → _baseEach-lvj-g1Zj.js} +2 -2
  47. package/dist/esm/{_baseIsEqual-DCZXUzsZ.js → _baseIsEqual-B6bIeexY.js} +10 -346
  48. package/dist/esm/{_baseIteratee-CI-QZdpx.js → _baseIteratee-CEZRuq23.js} +4 -2
  49. package/dist/esm/{_defineProperty-yVdnnt__.js → _defineProperty-C69Btzid.js} +1 -1
  50. package/dist/esm/{_getAllKeysIn-v-KlW5r_.js → _getAllKeysIn-kT3KizYN.js} +3 -2
  51. package/dist/esm/{_getNative-aN4R8EiP.js → _getNative-COawFdVX.js} +1 -1
  52. package/dist/esm/_getTag-CMJL-6hk.js +344 -0
  53. package/dist/esm/_isIndex-B--C3qwe.js +25 -0
  54. package/dist/esm/{_isIterateeCall-CTcCv8Mb.js → _isIterateeCall-Bb4gUZLK.js} +3 -2
  55. package/dist/esm/{cloneDeep-V4fB8wfG.js → cloneDeep-CL7UD3mR.js} +4 -3
  56. package/dist/esm/{difference-CWrdq-hd.js → difference-DND5tWiA.js} +4 -3
  57. package/dist/esm/eq-CZ30nDJE.js +37 -0
  58. package/dist/esm/file-metadata-BHzkIH4g.js +71 -0
  59. package/dist/esm/{files-P324wLau.js → files-CZAZotms.js} +1 -1
  60. package/dist/esm/{focus-trigger-element-DubROLkE.js → focus-trigger-element-BOFcjLq3.js} +1 -1
  61. package/dist/{cjs/file-metadata-rQ0WzFlZ.js → esm/icons-Bu_YRgCL.js} +1 -75
  62. package/dist/esm/{isArrayLike-D1QkaJU2.js → isArrayLike-CyVGB489.js} +2 -26
  63. package/dist/esm/{isEmpty-BFxMjh_H.js → isEmpty-DHgukT5k.js} +2 -2
  64. package/dist/esm/{isEqual-CsrptmTU.js → isEqual-4tbMaaf_.js} +1 -1
  65. package/dist/esm/{eq-D7VMHFyO.js → isFunction-9zQTeQI8.js} +1 -37
  66. package/dist/esm/lime-elements.js +1 -1
  67. package/dist/esm/{limel-breadcrumbs_7.entry.js → limel-breadcrumbs_8.entry.js} +71 -6
  68. package/dist/esm/limel-chip-set.entry.js +586 -0
  69. package/dist/esm/limel-chip_2.entry.js +35 -542
  70. package/dist/esm/limel-dialog.entry.js +9 -6
  71. package/dist/esm/limel-email-viewer.entry.js +15 -10
  72. package/dist/esm/limel-file-dropzone_2.entry.js +12 -8
  73. package/dist/esm/limel-file.entry.js +2 -1
  74. package/dist/esm/limel-flatpickr-adapter.entry.js +5 -3
  75. package/dist/esm/limel-form.entry.js +18 -15
  76. package/dist/esm/limel-helper-line.entry.js +40 -0
  77. package/dist/esm/limel-popover_2.entry.js +6 -5
  78. package/dist/esm/limel-profile-picture.entry.js +3 -2
  79. package/dist/esm/limel-prosemirror-adapter.entry.js +16 -12
  80. package/dist/esm/limel-tab-bar.entry.js +11 -8
  81. package/dist/esm/limel-table.entry.js +14 -11
  82. package/dist/esm/loader.js +1 -1
  83. package/dist/esm/{pickBy-D8CUtxE4.js → pickBy-C4C3CM4m.js} +4 -4
  84. package/dist/lime-elements/lime-elements.esm.js +1 -1
  85. package/dist/lime-elements/p-01651634.entry.js +1 -0
  86. package/dist/lime-elements/p-4ecd565b.entry.js +1 -0
  87. package/dist/lime-elements/p-5442e09e.entry.js +13 -0
  88. package/dist/lime-elements/p-56bkn1D-.js +1 -0
  89. package/dist/lime-elements/p-60327283.entry.js +1 -0
  90. package/dist/lime-elements/{p-cfe85e59.entry.js → p-6eaa9776.entry.js} +10 -10
  91. package/dist/lime-elements/p-72b9d03e.entry.js +1 -0
  92. package/dist/lime-elements/p-80162ba0.entry.js +1 -0
  93. package/dist/lime-elements/p-9W8bTt2G.js +1 -0
  94. package/dist/lime-elements/p-B--C3qwe.js +1 -0
  95. package/dist/lime-elements/p-B8yl2MCT.js +1 -0
  96. package/dist/lime-elements/p-BAR6am-7.js +1 -0
  97. package/dist/lime-elements/p-BCq5M9TE.js +1 -0
  98. package/dist/lime-elements/p-BE1Efiuj.js +1 -0
  99. package/dist/lime-elements/p-BYfPV0O4.js +1 -0
  100. package/dist/lime-elements/p-BcJ-TDVt.js +1 -0
  101. package/dist/lime-elements/p-BsX7ma3n.js +1 -0
  102. package/dist/lime-elements/p-Bu_YRgCL.js +1 -0
  103. package/dist/lime-elements/p-ByzvFNMm.js +1 -0
  104. package/dist/lime-elements/{p-CWuGCKo1.js → p-C4caLnTg.js} +1 -1
  105. package/dist/lime-elements/p-CR7u-m0b.js +1 -0
  106. package/dist/lime-elements/p-CVzgpz9P.js +1 -0
  107. package/dist/lime-elements/p-CZ30nDJE.js +1 -0
  108. package/dist/lime-elements/{p-BvDmWgCs.js → p-D0F7gOYG.js} +1 -1
  109. package/dist/lime-elements/p-D4RdItCq.js +1 -0
  110. package/dist/lime-elements/p-D8H5afYg.js +1 -0
  111. package/dist/lime-elements/p-DbBZn7JO.js +1 -0
  112. package/dist/lime-elements/p-DtrvybFR.js +1 -0
  113. package/dist/lime-elements/{p-8139d26a.entry.js → p-a712087a.entry.js} +3 -3
  114. package/dist/lime-elements/p-b1645d2d.entry.js +1 -0
  115. package/dist/lime-elements/p-c8eabc9d.entry.js +1 -0
  116. package/dist/lime-elements/p-cba2dbb6.entry.js +1 -0
  117. package/dist/lime-elements/{p-e720f65c.entry.js → p-d00ec6c2.entry.js} +3 -3
  118. package/dist/lime-elements/{p-a416d439.entry.js → p-e5c7cac0.entry.js} +2 -2
  119. package/dist/lime-elements/p-f6e58e6c.entry.js +1 -0
  120. package/dist/lime-elements/p-f867b424.entry.js +1 -0
  121. package/dist/lime-elements/p-mmkVLOjW.js +1 -0
  122. package/dist/types/components/chip-set/chip-set.d.ts +1 -0
  123. package/dist/types/components/chip-set/chip.types.d.ts +9 -0
  124. package/dist/types/components/email-viewer/email-viewer.d.ts +0 -1
  125. package/dist/types/components.d.ts +4 -0
  126. package/package.json +1 -1
  127. package/dist/cjs/limel-helper-line_2.cjs.entry.js +0 -107
  128. package/dist/cjs/limel-linear-progress.cjs.entry.js +0 -59
  129. package/dist/esm/limel-helper-line_2.entry.js +0 -104
  130. package/dist/esm/limel-linear-progress.entry.js +0 -57
  131. package/dist/lime-elements/p-4118be32.entry.js +0 -13
  132. package/dist/lime-elements/p-48db87d3.entry.js +0 -1
  133. package/dist/lime-elements/p-4e9baf08.entry.js +0 -1
  134. package/dist/lime-elements/p-59f1460d.entry.js +0 -1
  135. package/dist/lime-elements/p-7uuv3HUP.js +0 -1
  136. package/dist/lime-elements/p-811c4820.entry.js +0 -1
  137. package/dist/lime-elements/p-83e084f9.entry.js +0 -1
  138. package/dist/lime-elements/p-9a378cf0.entry.js +0 -1
  139. package/dist/lime-elements/p-BTHqaZIi.js +0 -1
  140. package/dist/lime-elements/p-Bj622DVt.js +0 -1
  141. package/dist/lime-elements/p-Bp0tNo1s.js +0 -1
  142. package/dist/lime-elements/p-C3Myy3mA.js +0 -1
  143. package/dist/lime-elements/p-CXgJVvTe.js +0 -1
  144. package/dist/lime-elements/p-CxfAgSVd.js +0 -1
  145. package/dist/lime-elements/p-DNIqLXTL.js +0 -1
  146. package/dist/lime-elements/p-D_uMnX5g.js +0 -1
  147. package/dist/lime-elements/p-DbC-smVQ.js +0 -1
  148. package/dist/lime-elements/p-DlJXKdhK.js +0 -1
  149. package/dist/lime-elements/p-DtS35Df5.js +0 -1
  150. package/dist/lime-elements/p-SvuA3Boo.js +0 -1
  151. package/dist/lime-elements/p-b306735b.entry.js +0 -1
  152. package/dist/lime-elements/p-c1c635c1.entry.js +0 -1
  153. package/dist/lime-elements/p-cebdd797.entry.js +0 -1
  154. package/dist/lime-elements/p-efBXH4mj.js +0 -1
  155. package/dist/lime-elements/p-f_1nwOC8.js +0 -1
  156. package/dist/lime-elements/p-fd4a4f87.entry.js +0 -1
  157. package/dist/lime-elements/p-v6b303K5.js +0 -1
@@ -0,0 +1,586 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DBTJNfo7.js';
2
+ import { c as ARROW_LEFT, d as ARROW_RIGHT, a as ENTER, D as DELETE, B as BACKSPACE, E as ESCAPE } from './keycodes-rI0IeKpx.js';
3
+ import { t as translate } from './translations-Dv3YcsA7.js';
4
+ import { a as getTarget, b as getHref } from './link-helper-5KsJICvh.js';
5
+ import { c as createRandomString } from './random-string-JbKhhoXs.js';
6
+ import { i as isEqual } from './isEqual-4tbMaaf_.js';
7
+ import { M as MDCTextField } from './component-wGVqvUmL.js';
8
+ import './_baseIsEqual-B6bIeexY.js';
9
+ import './eq-CZ30nDJE.js';
10
+ import './_getTag-CMJL-6hk.js';
11
+ import './isObject-BJQylLSL.js';
12
+ import './isObjectLike-oiMYqRQ0.js';
13
+ import './isArrayLike-CyVGB489.js';
14
+ import './isFunction-9zQTeQI8.js';
15
+ import './_getNative-COawFdVX.js';
16
+ import './isArray-B8VKuhvH.js';
17
+ import './_isIndex-B--C3qwe.js';
18
+ import './ponyfill-ChRGk668.js';
19
+ import './component-7QB0OUSF.js';
20
+ import './component-D4qgwaTf.js';
21
+
22
+ /**
23
+ * Key handler for the input field.
24
+ * Lets the user select, activate, and remove chips with the keyboard.
25
+ *
26
+ * @param event - event
27
+
28
+ */
29
+ function handleKeyboardEvent(event) {
30
+ var _a;
31
+ if (this.textValue.length > 0) {
32
+ // If there is any text in the input field, keyboard input should
33
+ // navigate the text, not the chips.
34
+ return;
35
+ }
36
+ if (!((_a = this.value) === null || _a === void 0 ? void 0 : _a.length)) {
37
+ // If there are no chips, there is nothing to select.
38
+ return;
39
+ }
40
+ const isArrowLeft = event.key === ARROW_LEFT;
41
+ const isArrowRight = event.key === ARROW_RIGHT;
42
+ const isEnter = event.key === ENTER;
43
+ const isDelete = event.key === DELETE;
44
+ const isBackspace = event.key === BACKSPACE;
45
+ const isEscape = event.key === ESCAPE;
46
+ if (isArrowLeft) {
47
+ return handleLeft(this, event);
48
+ }
49
+ if (isArrowRight) {
50
+ return handleRight(this, event);
51
+ }
52
+ if (isEnter) {
53
+ return handleEnter(this, event);
54
+ }
55
+ if (isDelete) {
56
+ return handleDelete(this, event);
57
+ }
58
+ if (isBackspace) {
59
+ return handleBackspace(this, event);
60
+ }
61
+ if (isEscape) {
62
+ return handleEscape(this, event);
63
+ }
64
+ }
65
+ function handleLeft(host, event) {
66
+ event.preventDefault();
67
+ if (host.inputChipIndexSelected === null) {
68
+ host.inputChipIndexSelected = host.value.length - 1;
69
+ return;
70
+ }
71
+ if (host.inputChipIndexSelected <= 0) {
72
+ return;
73
+ }
74
+ host.inputChipIndexSelected -= 1;
75
+ }
76
+ function handleRight(host, event) {
77
+ event.preventDefault();
78
+ if (host.inputChipIndexSelected === null) {
79
+ host.inputChipIndexSelected = 0;
80
+ return;
81
+ }
82
+ if (host.inputChipIndexSelected >= host.value.length - 1) {
83
+ return;
84
+ }
85
+ host.inputChipIndexSelected += 1;
86
+ }
87
+ function handleEnter(host, event) {
88
+ if (host.inputChipIndexSelected !== null) {
89
+ event.preventDefault();
90
+ host.emitInteraction(host.value[host.inputChipIndexSelected]);
91
+ }
92
+ }
93
+ function handleEscape(host, event) {
94
+ if (host.inputChipIndexSelected !== null) {
95
+ event.preventDefault();
96
+ host.inputChipIndexSelected = null;
97
+ }
98
+ }
99
+ function handleDelete(host, event) {
100
+ if (host.inputChipIndexSelected !== null) {
101
+ event.preventDefault();
102
+ removeChip(host);
103
+ }
104
+ }
105
+ function handleBackspace(host, event) {
106
+ if (host.inputChipIndexSelected !== null) {
107
+ event.preventDefault();
108
+ removeChip(host);
109
+ }
110
+ else if (!event.repeat) {
111
+ host.inputChipIndexSelected = host.value.length - 1;
112
+ }
113
+ }
114
+ function removeChip(host) {
115
+ if (host.inputChipIndexSelected === null) {
116
+ return;
117
+ }
118
+ const chip = host.value[host.inputChipIndexSelected];
119
+ if (chip.removable === false) {
120
+ return;
121
+ }
122
+ host.removeChip(chip.id);
123
+ host.inputChipIndexSelected = null;
124
+ }
125
+
126
+ const chipSetCss = () => `@charset "UTF-8";:host(limel-chip-set[readonly]) .mdc-text-field.disabled{pointer-events:auto}:host(limel-chip-set:focus),:host(limel-chip-set:focus-visible),:host(limel-chip-set:focus-within){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limel-chip-set){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}:host(limel-chip-set:focus) limel-helper-line,:host(limel-chip-set:focus-visible) limel-helper-line,:host(limel-chip-set:focus-within) limel-helper-line,:host(limel-chip-set:hover) limel-helper-line{will-change:grid-template-rows}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-text-field--filled{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-text-field--filled .mdc-text-field__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-text-field--filled .mdc-text-field__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-text-field--filled.mdc-ripple-upgraded--unbounded .mdc-text-field__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-activation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-deactivation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-text-field__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input{color:rgba(0, 0, 0, 0.87)}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.54)}}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.54)}}.mdc-text-field .mdc-text-field__input{caret-color:#6200ee;caret-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field-character-counter,.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity, transform, color}.mdc-text-field__input{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}.mdc-text-field__affix{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports (-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0;}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0;}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px;}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px;}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-text-field--filled:hover .mdc-text-field__ripple::before,.mdc-text-field--filled.mdc-ripple-surface--hover .mdc-text-field__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:rgb(244.8, 244.8, 244.8)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-text-field--filled:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px;}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports (-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:0.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--outlined{height:56px}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0;}@supports (top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports (top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px);}@supports (top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports (top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports (top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports (top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports (top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{}@supports (top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0;}@supports (top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports (top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-text-field__ripple::before,.mdc-text-field--outlined .mdc-text-field__ripple::after{content:none}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px;}.mdc-text-field--outlined{overflow:visible}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:transparent}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0;transition:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px;line-height:1.5rem}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:0.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px);}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px);}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0;}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px;}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px;}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1);}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:0.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75);}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined,.mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl]{}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined,.mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl]{}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px;}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(98, 0, 238, 0.87)}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid .mdc-text-field__input{caret-color:#b00020;caret-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled .mdc-text-field__input{color:rgba(0, 0, 0, 0.38)}@media all{.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.38)}}@media all{.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.38)}}.mdc-text-field--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}@media screen and (forced-colors: active), (-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:GrayText}}@media screen and (forced-colors: active), (-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:GrayText}.mdc-text-field--disabled .mdc-floating-label{color:GrayText}.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:GrayText}.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:GrayText}.mdc-text-field--disabled .mdc-text-field__icon--leading{color:GrayText}.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:GrayText}.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:GrayText}.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:GrayText}.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:GrayText}}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled{pointer-events:none}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled{background-color:rgb(249.9, 249.9, 249.9)}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left;}[dir=rtl] .mdc-text-field--ltr-text,.mdc-text-field--ltr-text[dir=rtl]{}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text,.mdc-text-field--ltr-text[dir=rtl]{}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl]{}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl]{}.mdc-text-field-helper-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block}.mdc-text-field-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-text-field-helper-text{margin-top:0;line-height:normal;margin:0;opacity:0;will-change:opacity;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-text-field-helper-text--persistent{transition:none;opacity:1;will-change:initial}.mdc-text-field-character-counter{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block}.mdc-text-field-character-counter::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-text-field-character-counter{margin-top:0;line-height:normal;margin-left:auto;margin-right:0}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{margin-left:0;margin-right:auto;}.mdc-text-field-character-counter{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{padding-left:0;padding-right:16px;}.mdc-text-field-character-counter{white-space:nowrap}.mdc-text-field__icon{align-self:center;cursor:pointer}.mdc-text-field__icon:not([tabindex]),.mdc-text-field__icon[tabindex="-1"]{cursor:default;pointer-events:none}.mdc-text-field__icon svg{display:block}.mdc-text-field__icon--leading{margin-left:16px;margin-right:8px}[dir=rtl] .mdc-text-field__icon--leading,.mdc-text-field__icon--leading[dir=rtl]{margin-left:8px;margin-right:16px;}.mdc-text-field__icon--trailing{padding:12px;margin-left:0px;margin-right:0px}[dir=rtl] .mdc-text-field__icon--trailing,.mdc-text-field__icon--trailing[dir=rtl]{margin-left:0px;margin-right:0px;}.mdc-text-field__icon{align-self:center;cursor:pointer}.mdc-text-field__icon:not([tabindex]),.mdc-text-field__icon[tabindex="-1"]{cursor:default;pointer-events:none}.mdc-text-field__icon svg{display:block}.mdc-text-field__icon--leading{margin-left:16px;margin-right:8px}[dir=rtl] .mdc-text-field__icon--leading,.mdc-text-field__icon--leading[dir=rtl]{margin-left:8px;margin-right:16px;}.mdc-text-field__icon--trailing{padding:12px;margin-left:0px;margin-right:0px}[dir=rtl] .mdc-text-field__icon--trailing,.mdc-text-field__icon--trailing[dir=rtl]{margin-left:0px;margin-right:0px;}.mdc-text-field__icon{display:flex;align-items:center;justify-content:center;color:rgb(var(--contrast-900))}.mdc-text-field__icon limel-icon{width:1.5rem;height:1.5rem}:host(limel-chip-set){isolation:isolate}:host(limel-chip-set[type=input]) limel-notched-outline [slot=content]{min-height:2.5rem}:host(limel-chip-set[type=input]) limel-chip:only-of-type{--chip-max-width:auto}:host(limel-chip-set:not([type=input])) .limel-notched-outline{--limel-notched-outline-border-color:transparent;--limel-notched-outline-background-color:transparent}.mdc-chip-set{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;min-height:2.5rem;position:relative}.mdc-chip-set.mdc-chip-set--input{padding:0.4rem 0.5rem;width:100%}.mdc-chip-set.has-clear-all-button.mdc-chip-set--input{padding-right:2rem}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input{color:rgba(var(--contrast-1400), 1);font-size:var(--limel-theme-default-font-size) !important;font-family:inherit !important}.mdc-text-field.mdc-text-field--disabled .mdc-text-field__input{color:rgba(var(--contrast-1400), 0.5)}.mdc-text-field{height:auto;cursor:text;flex-wrap:wrap;row-gap:0.5rem}.mdc-text-field .mdc-text-field__input::placeholder{color:rgb(var(--contrast-900)) !important;font-size:var(--limel-theme-default-font-size) !important;font-family:inherit !important}.mdc-text-field .mdc-text-field__input{width:auto;padding:0 0.5rem;flex-grow:1;flex-shrink:0}.mdc-text-field .mdc-text-field__input.hidden{transition:all 0s;opacity:0;position:absolute;z-index:-100}.mdc-text-field .mdc-text-field__input[type=search]{-webkit-appearance:textfield;background-color:transparent}.mdc-text-field .mdc-text-field__input[type=search]::-webkit-search-cancel-button{display:none}.clear-all-button{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:rgb(var(--contrast-900))}.clear-all-button:hover,.clear-all-button:focus,.clear-all-button:focus-visible{will-change:color, background-color, box-shadow, transform}.clear-all-button:hover,.clear-all-button:focus-visible{transform:translate3d(0, 0.01rem, 0);color:rgb(var(--color-white));background-color:rgb(var(--color-red-default))}.clear-all-button:hover{box-shadow:var(--button-shadow-hovered)}.clear-all-button:active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}.clear-all-button:hover,.clear-all-button:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}.clear-all-button{cursor:pointer;height:1.25rem;width:1.25rem;border-radius:50%;background-repeat:no-repeat;background-position:center;background-size:0.75rem;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3E%3Cdefs/%3E%3Cpath%20fill='rgb(255,255,255)'%20d='M7.219%205.781L5.78%207.22%2014.563%2016%205.78%2024.781%207.22%2026.22%2016%2017.437l8.781%208.782%201.438-1.438L17.437%2016l8.782-8.781L24.78%205.78%2016%2014.563z'/%3E%3C/svg%3E")}.clear-all-button:focus{outline:none}.clear-all-button:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.clear-all-button{position:absolute;right:0.5rem;top:calc(2.5rem / 4);opacity:0}.clear-all-button:focus,.has-chips:not(.disabled):hover .clear-all-button,.has-chips:not(.disabled).mdc-text-field--focused .clear-all-button{opacity:1;outline:none}.mdc-chip-set:not(.has-chips) .clear-all-button,.has-chips.disabled .clear-all-button{display:none}.has-leading-icon:not(.has-chips) .mdc-text-field__input{padding-left:1.5rem}.has-leading-icon limel-chip:first-of-type{margin-left:1.5rem}.has-leading-icon .search-icon{transition:transform 0.2s ease;position:absolute;top:0.5625rem;left:0.25rem}.has-leading-icon limel-icon{background-color:transparent}.delimiter{opacity:0.5;padding:0 0.125rem;color:var(--limel-theme-on-surface-color)}limel-chip{border-radius:2rem}limel-chip.can-be-removed{box-shadow:var(--shadow-depth-8-error)}`;
127
+
128
+ function isChipAnnotatedEvent(event) {
129
+ var _a;
130
+ return !!((_a = event === null || event === void 0 ? void 0 : event.Lime) === null || _a === void 0 ? void 0 : _a.chip);
131
+ }
132
+ const ChipSet = class {
133
+ constructor(hostRef) {
134
+ registerInstance(this, hostRef);
135
+ this.interact = createEvent(this, "interact");
136
+ this.change = createEvent(this, "change");
137
+ this.startEdit = createEvent(this, "startEdit");
138
+ this.stopEdit = createEvent(this, "stopEdit");
139
+ this.input = createEvent(this, "input");
140
+ /**
141
+ * List of chips for the set
142
+ */
143
+ this.value = [];
144
+ /**
145
+ * True if the chip set should be disabled
146
+ */
147
+ this.disabled = false;
148
+ /**
149
+ * For chip-sets of type `input`, set to `true` to disable adding and
150
+ * removing chips, but allow interaction with existing chips in the set.
151
+ * For any other types, setting either `readonly` or `disabled` disables
152
+ * the chip-set.
153
+ */
154
+ this.readonly = false;
155
+ /**
156
+ * Set to `true` to indicate that the current value of the input field is
157
+ * invalid.
158
+ */
159
+ this.invalid = false;
160
+ /**
161
+ * For chip-sets of type `input`. Value to use for the `type` attribute on the
162
+ * input field inside the chip-set.
163
+ */
164
+ this.inputType = 'text';
165
+ /**
166
+ * True if the control requires a value
167
+ */
168
+ this.required = false;
169
+ /**
170
+ * Whether the input field should be emptied when the chip-set loses focus.
171
+ */
172
+ this.emptyInputOnBlur = true;
173
+ /**
174
+ * Whether the "Clear all" buttons should be shown
175
+ */
176
+ this.clearAllButton = true;
177
+ /**
178
+ * For chip-sets of type `input`. When the value is null, no leading icon is used.
179
+ * Leading icon to show to the far left in the text field
180
+ */
181
+ this.leadingIcon = null;
182
+ /**
183
+ * For chip-set of type `input`. Sets delimiters between chips.
184
+ */
185
+ this.delimiter = null;
186
+ /**
187
+ * For chip-set of type `input`, defines whether the input field should have autocomplete enabled.
188
+ * Read more about the `autocomplete` attribute
189
+ * [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete).
190
+ */
191
+ this.autocomplete = 'off';
192
+ /**
193
+ * Defines the language for translations.
194
+ * Will translate the translatable strings on the components. For example, the clear all chips label.
195
+ */
196
+ this.language = 'en';
197
+ this.editMode = false;
198
+ this.textValue = '';
199
+ this.blurred = false;
200
+ this.inputChipIndexSelected = null;
201
+ this.handleKeyDown = handleKeyboardEvent;
202
+ this.renderContent = (value) => {
203
+ if (this.type === 'input') {
204
+ return this.renderInputChips();
205
+ }
206
+ return value.map(this.renderChip);
207
+ };
208
+ this.getValue = () => {
209
+ return this.value.map((chip) => (Object.assign(Object.assign({}, chip), (this.type && {
210
+ selected: this.selectedChipIds.includes(chip.id),
211
+ }))));
212
+ };
213
+ this.floatLabelAbove = () => {
214
+ if (this.value.length > 0 ||
215
+ this.editMode ||
216
+ this.readonly ||
217
+ this.textValue) {
218
+ return true;
219
+ }
220
+ };
221
+ this.hasHelperText = () => {
222
+ return this.helperText !== null && this.helperText !== undefined;
223
+ };
224
+ this.renderHelperLine = () => {
225
+ const maxItems = this.maxItems === 1 ? undefined : this.maxItems;
226
+ if (!maxItems && !this.hasHelperText()) {
227
+ return;
228
+ }
229
+ return (h("limel-helper-line", { length: this.value.length, maxLength: maxItems, helperText: this.helperText, invalid: this.isInvalid() }));
230
+ };
231
+ this.catchInputChipClicks = (chip) => (event) => {
232
+ /*
233
+ * We need to add the `chip` to the event object so that the consumer
234
+ * can get the chip object when the chip is clicked.
235
+ * This is necessary for the consumer to be able to handle the click
236
+ * event itself, based on which chip was clicked, or whether the click
237
+ * was on a chip or elsewhere. The reason the consumer can't just look
238
+ * at the event target is that that information is hidden by the
239
+ * shadow DOM.
240
+ *
241
+ * See documentation for the `interact` event for more information.
242
+ */
243
+ event.Lime = { chip: chip };
244
+ if (this.isSelectableChip(chip)) {
245
+ this.updateSelectedChipIds(chip);
246
+ this.change.emit(chip);
247
+ }
248
+ this.emitInteraction(chip);
249
+ };
250
+ this.handleRemoveChip = (event) => {
251
+ this.removeChip(event.detail);
252
+ };
253
+ this.removeChip = (identifier) => {
254
+ const newValue = this.value.filter((chip) => {
255
+ return chip.id !== identifier;
256
+ });
257
+ this.change.emit(newValue);
258
+ };
259
+ this.clearAllChipsLabel = () => {
260
+ return translate.get('chip-set.clear-all', this.language);
261
+ };
262
+ this.labelId = createRandomString();
263
+ this.renderChip = this.renderChip.bind(this);
264
+ this.renderInputChip = this.renderInputChip.bind(this);
265
+ this.isFull = this.isFull.bind(this);
266
+ this.handleTextFieldFocus = this.handleTextFieldFocus.bind(this);
267
+ this.handleInputBlur = this.handleInputBlur.bind(this);
268
+ this.handleTextInput = this.handleTextInput.bind(this);
269
+ this.inputFieldOnChange = this.inputFieldOnChange.bind(this);
270
+ this.handleKeyDown = this.handleKeyDown.bind(this);
271
+ this.inputHidden = this.inputHidden.bind(this);
272
+ this.handleDeleteAllIconClick =
273
+ this.handleDeleteAllIconClick.bind(this);
274
+ this.renderDelimiter = this.renderDelimiter.bind(this);
275
+ }
276
+ connectedCallback() {
277
+ this.initialize();
278
+ }
279
+ initialize() {
280
+ if (this.value.length > 0) {
281
+ this.selectedChipIds = this.value
282
+ .filter((chip) => chip.selected)
283
+ .map((chip) => chip.id);
284
+ }
285
+ }
286
+ /**
287
+ * Used to find out whether the chip-set is in edit mode.
288
+ *
289
+ * @returns `true` if the chip-set is in edit mode, `false` otherwise.
290
+ */
291
+ async getEditMode() {
292
+ return this.editMode;
293
+ }
294
+ /**
295
+ * Used to set focus to the chip-set input field.
296
+ *
297
+ * @param emptyInput - if `true`, any text in the input is discarded
298
+ * @returns does not return anything, but methods have to be async
299
+ */
300
+ async setFocus(emptyInput = false) {
301
+ if (this.disabled || this.readonly) {
302
+ return;
303
+ }
304
+ this.editMode = true;
305
+ if (emptyInput) {
306
+ this.textValue = '';
307
+ }
308
+ this.host.shadowRoot.querySelector('input').focus();
309
+ this.startEdit.emit();
310
+ }
311
+ /**
312
+ * Used to empty the input field. Used in conjunction with `emptyInputOnBlur` to let the
313
+ * consumer control when the input is emptied.
314
+ *
315
+ * @returns does not return anything, but methods have to be async
316
+ */
317
+ async emptyInput() {
318
+ this.syncEmptyInput();
319
+ }
320
+ componentDidLoad() {
321
+ this.triggerIconColorWarning(this.value);
322
+ if (this.type === 'input') {
323
+ this.mdcTextField = new MDCTextField(this.host.shadowRoot.querySelector('.mdc-text-field'));
324
+ }
325
+ }
326
+ componentDidUpdate() {
327
+ const input = this.host.shadowRoot.querySelector('input');
328
+ if (input && this.editMode) {
329
+ input.focus();
330
+ }
331
+ }
332
+ disconnectedCallback() {
333
+ if (this.mdcTextField) {
334
+ this.mdcTextField.destroy();
335
+ }
336
+ }
337
+ render() {
338
+ var _a;
339
+ const classes = {
340
+ 'mdc-chip-set': true,
341
+ 'mdc-text-field--with-trailing-icon': true,
342
+ disabled: this.disabled || this.readonly,
343
+ };
344
+ if (this.type) {
345
+ classes[`mdc-chip-set--${this.type}`] = true;
346
+ }
347
+ if (this.type === 'input') {
348
+ Object.assign(classes, {
349
+ 'mdc-text-field': true,
350
+ 'mdc-text-field--outlined': true,
351
+ 'mdc-chip-set--input': true,
352
+ 'lime-text-field--readonly': this.readonly,
353
+ 'has-chips': this.value.length > 0,
354
+ 'has-leading-icon': this.leadingIcon !== null,
355
+ 'has-clear-all-button': this.clearAllButton,
356
+ });
357
+ }
358
+ const value = this.getValue();
359
+ return (h(Host, { key: 'df0bb3ae8b7b550302651d6c10e6770e8b8e21fb' }, h("limel-notched-outline", { key: '94643aee8344ae804a35d36a5d99c423f3044478', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid || this.isInvalid(), disabled: this.disabled, readonly: this.readonly, hasValue: !!((_a = this.value) === null || _a === void 0 ? void 0 : _a.length), hasLeadingIcon: !!this.leadingIcon, hasFloatingLabel: this.floatLabelAbove() }, h("div", Object.assign({ key: '41f6bfe1db234f014b8e3788430fd0cedc8e2bf7', slot: "content" }, this.getContentProps(), { class: classes }), this.renderContent(value))), this.renderHelperLine()));
360
+ }
361
+ getContentProps() {
362
+ if (this.type === 'input') {
363
+ return {
364
+ onClick: this.handleTextFieldFocus,
365
+ };
366
+ }
367
+ return {
368
+ role: 'grid',
369
+ };
370
+ }
371
+ handleChangeChips(newValue, oldValue) {
372
+ if (isEqual(newValue, oldValue)) {
373
+ return;
374
+ }
375
+ this.syncEmptyInput();
376
+ this.initialize();
377
+ }
378
+ renderInputChips() {
379
+ return [
380
+ this.value.map(this.renderInputChip),
381
+ h("input", { tabIndex: this.disabled || this.readonly ? -1 : 0, type: this.inputType, id: this.labelId, disabled: this.readonly || this.disabled, class: {
382
+ 'mdc-text-field__input': true,
383
+ hidden: this.inputHidden(),
384
+ }, value: this.textValue, onBlur: this.handleInputBlur, onFocus: this.handleTextFieldFocus, onKeyDown: this.handleKeyDown, onInput: this.handleTextInput,
385
+ // Some browsers emit a change event on input elements, we need to stop
386
+ // that event from propagating since we are emitting our own change event
387
+ onChange: this.inputFieldOnChange, placeholder: this.isFull() ? '' : this.searchLabel, readonly: this.isFull(), autocomplete: this.autocomplete }),
388
+ this.renderLeadingIcon(),
389
+ this.renderClearAllChipsButton(),
390
+ ];
391
+ }
392
+ isFull() {
393
+ return !!this.maxItems && this.value.length >= this.maxItems;
394
+ }
395
+ isInvalid() {
396
+ var _a;
397
+ if (this.readonly) {
398
+ // A readonly field can never be invalid.
399
+ return false;
400
+ }
401
+ if (this.invalid) {
402
+ return true;
403
+ }
404
+ if (!this.required) {
405
+ return false;
406
+ }
407
+ if (!this.blurred) {
408
+ return false;
409
+ }
410
+ return !((_a = this.value) === null || _a === void 0 ? void 0 : _a.length);
411
+ }
412
+ inputFieldOnChange(event) {
413
+ event.stopPropagation();
414
+ }
415
+ /**
416
+ * Enter edit mode when the text field receives focus. When editMode is true, the input element will be visible
417
+ * @param event - The originating click or focus event, if any. When a
418
+ * click originates from a chip body (marked by
419
+ * {@link catchInputChipClicks} as `event.Lime.chip`), edit mode is
420
+ * not entered: the chip's `interact` event is the consumer's signal
421
+ * and the input should not steal focus alongside it.
422
+ */
423
+ handleTextFieldFocus(event) {
424
+ if (this.disabled || this.readonly) {
425
+ return;
426
+ }
427
+ if (this.editMode) {
428
+ return;
429
+ }
430
+ if (isChipAnnotatedEvent(event)) {
431
+ return;
432
+ }
433
+ this.editMode = true;
434
+ this.startEdit.emit();
435
+ }
436
+ /**
437
+ * Exit edit mode when the input element loses focus. This makes sure the input element does not take up any
438
+ * additional space when the user it not typing anything
439
+ */
440
+ handleInputBlur() {
441
+ if (this.emptyInputOnBlur) {
442
+ this.syncEmptyInput();
443
+ }
444
+ this.editMode = false;
445
+ this.blurred = true;
446
+ this.inputChipIndexSelected = null;
447
+ // This timeout is needed in order to let a new element receive focus
448
+ setTimeout(() => {
449
+ this.stopEdit.emit();
450
+ }, 0);
451
+ }
452
+ syncEmptyInput() {
453
+ this.textValue = '';
454
+ }
455
+ inputHidden() {
456
+ var _a;
457
+ if (this.editMode) {
458
+ return this.isFull();
459
+ }
460
+ // Keep the input visible while it holds uncommitted text, so typed
461
+ // content doesn't disappear when focus leaves (e.g. tabbing to a
462
+ // sibling action).
463
+ if (this.textValue) {
464
+ return false;
465
+ }
466
+ // If there are chips in the picker, hide the input to avoid the input
467
+ // being placed on a new line and adding ugly space beneath the chips.
468
+ // If there are no chips, show the input, or the picker will look weird.
469
+ return !!((_a = this.value) === null || _a === void 0 ? void 0 : _a.length);
470
+ }
471
+ handleTextInput(event) {
472
+ var _a;
473
+ event.stopPropagation();
474
+ this.inputChipIndexSelected = null;
475
+ this.textValue = event.target.value;
476
+ this.input.emit((_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim());
477
+ }
478
+ emitInteraction(chip) {
479
+ this.interact.emit(chip);
480
+ }
481
+ renderChip(chip) {
482
+ const chipType = this.type === 'filter' ? 'filter' : 'default';
483
+ const chipProps = this.getChipProps(chip, chipType);
484
+ return h("limel-chip", Object.assign({}, chipProps));
485
+ }
486
+ renderInputChip(chip, index, chips) {
487
+ const chipProps = this.getChipProps(chip, 'default');
488
+ const isLastChip = index === chips.length - 1;
489
+ return [
490
+ h("limel-chip", Object.assign({ key: chip.id, class: {
491
+ 'can-be-removed': this.inputChipIndexSelected === index,
492
+ } }, chipProps)),
493
+ !(isLastChip && this.inputHidden()) && this.renderDelimiter(),
494
+ ];
495
+ }
496
+ getChipProps(chip, chipType) {
497
+ const removable = this.type === 'input' && chip.removable !== false && !this.readonly;
498
+ const readonly = this.readonly && this.type !== 'input';
499
+ return Object.assign({ role: 'row', identifier: chip.id, text: chip.text, icon: chip.icon, image: chip.image, badge: chip.badge, selected: chip.selected, disabled: this.disabled, loading: chip.loading, invalid: chip.invalid, readonly: readonly, type: chipType, removable: removable, menuItems: chip.menuItems, onClick: this.catchInputChipClicks(chip), onRemove: this.handleRemoveChip }, (chip.href && {
500
+ link: {
501
+ href: getHref(chip.href),
502
+ target: getTarget(chip.href),
503
+ },
504
+ }));
505
+ }
506
+ isSelectableChip(chip) {
507
+ return this.type !== 'input' && 'selected' in chip;
508
+ }
509
+ updateSelectedChipIds(chip) {
510
+ chip.selected = !chip.selected;
511
+ const id = chip.id;
512
+ if (this.type === 'choice') {
513
+ this.updateChoiceTypeSelectedIds(id);
514
+ }
515
+ else {
516
+ this.updateFilterTypeSelectedIds(id);
517
+ }
518
+ }
519
+ updateChoiceTypeSelectedIds(id) {
520
+ this.selectedChipIds = this.isChipSelected(id) ? [] : [id];
521
+ }
522
+ isChipSelected(id) {
523
+ return this.selectedChipIds.includes(id);
524
+ }
525
+ updateFilterTypeSelectedIds(id) {
526
+ if (this.isChipSelected(id)) {
527
+ this.removeChipIdFromSelectedChipIds(id);
528
+ }
529
+ else {
530
+ this.addChipIdToSelectedChipIds(id);
531
+ }
532
+ }
533
+ removeChipIdFromSelectedChipIds(id) {
534
+ this.selectedChipIds = this.selectedChipIds.filter((chipId) => chipId !== id);
535
+ }
536
+ addChipIdToSelectedChipIds(id) {
537
+ this.selectedChipIds = [...this.selectedChipIds, id];
538
+ }
539
+ renderLeadingIcon() {
540
+ if (!this.leadingIcon) {
541
+ return;
542
+ }
543
+ return (h("i", { class: "mdc-text-field__icon search-icon" }, h("limel-icon", { name: this.leadingIcon })));
544
+ }
545
+ renderClearAllChipsButton() {
546
+ if (this.disabled || this.readonly || !this.clearAllButton) {
547
+ return;
548
+ }
549
+ if (!this.value.some((chip) => chip.removable !== false)) {
550
+ // Nothing to clear if every chip is locked.
551
+ return;
552
+ }
553
+ return (h("a", { href: "", onClick: this.handleDeleteAllIconClick, class: "mdc-text-field__icon clear-all-button", tabindex: "0", role: "button", title: this.clearAllChipsLabel(), "aria-label": this.clearAllChipsLabel() }));
554
+ }
555
+ handleDeleteAllIconClick(event) {
556
+ event.preventDefault();
557
+ const lockedChips = this.value.filter((chip) => chip.removable === false);
558
+ this.change.emit(lockedChips);
559
+ }
560
+ renderDelimiter() {
561
+ if (!this.delimiter) {
562
+ return;
563
+ }
564
+ return h("div", { class: "delimiter" }, this.delimiter);
565
+ }
566
+ triggerIconColorWarning(value) {
567
+ for (const chip of value) {
568
+ if (chip.icon &&
569
+ (chip.iconFillColor ||
570
+ chip.iconBackgroundColor ||
571
+ chip.iconTitle)) {
572
+ console.warn("The `iconFillColor`, `iconBackgroundColor`, and `iconTitle` props are deprecated now! Use the new `Icon` interface and instead of `iconColor: 'color-name', `iconBackgroundColor: 'color-name', and `iconTitle: 'title'`, write `icon { name: 'icon-name', color: 'color-name', backgroundColor: 'color-name', title: 'title' }`.");
573
+ }
574
+ }
575
+ }
576
+ static get delegatesFocus() { return true; }
577
+ get host() { return getElement(this); }
578
+ static get watchers() { return {
579
+ "value": [{
580
+ "handleChangeChips": 0
581
+ }]
582
+ }; }
583
+ };
584
+ ChipSet.style = chipSetCss();
585
+
586
+ export { ChipSet as limel_chip_set };