@limetech/lime-elements 39.24.1 → 39.24.2

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 (152) hide show
  1. package/CHANGELOG.md +7 -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 +578 -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/email-viewer/email-viewer.css +12 -32
  42. package/dist/collection/components/email-viewer/email-viewer.js +16 -9
  43. package/dist/esm/{_assignValue-DOEO9byf.js → _assignValue-CEFvyZxO.js} +2 -2
  44. package/dist/esm/{_baseEach-C4UJIc96.js → _baseEach-lvj-g1Zj.js} +2 -2
  45. package/dist/esm/{_baseIsEqual-DCZXUzsZ.js → _baseIsEqual-B6bIeexY.js} +10 -346
  46. package/dist/esm/{_baseIteratee-CI-QZdpx.js → _baseIteratee-CEZRuq23.js} +4 -2
  47. package/dist/esm/{_defineProperty-yVdnnt__.js → _defineProperty-C69Btzid.js} +1 -1
  48. package/dist/esm/{_getAllKeysIn-v-KlW5r_.js → _getAllKeysIn-kT3KizYN.js} +3 -2
  49. package/dist/esm/{_getNative-aN4R8EiP.js → _getNative-COawFdVX.js} +1 -1
  50. package/dist/esm/_getTag-CMJL-6hk.js +344 -0
  51. package/dist/esm/_isIndex-B--C3qwe.js +25 -0
  52. package/dist/esm/{_isIterateeCall-CTcCv8Mb.js → _isIterateeCall-Bb4gUZLK.js} +3 -2
  53. package/dist/esm/{cloneDeep-V4fB8wfG.js → cloneDeep-CL7UD3mR.js} +4 -3
  54. package/dist/esm/{difference-CWrdq-hd.js → difference-DND5tWiA.js} +4 -3
  55. package/dist/esm/eq-CZ30nDJE.js +37 -0
  56. package/dist/esm/file-metadata-BHzkIH4g.js +71 -0
  57. package/dist/esm/{files-P324wLau.js → files-CZAZotms.js} +1 -1
  58. package/dist/esm/{focus-trigger-element-DubROLkE.js → focus-trigger-element-BOFcjLq3.js} +1 -1
  59. package/dist/{cjs/file-metadata-rQ0WzFlZ.js → esm/icons-Bu_YRgCL.js} +1 -75
  60. package/dist/esm/{isArrayLike-D1QkaJU2.js → isArrayLike-CyVGB489.js} +2 -26
  61. package/dist/esm/{isEmpty-BFxMjh_H.js → isEmpty-DHgukT5k.js} +2 -2
  62. package/dist/esm/{isEqual-CsrptmTU.js → isEqual-4tbMaaf_.js} +1 -1
  63. package/dist/esm/{eq-D7VMHFyO.js → isFunction-9zQTeQI8.js} +1 -37
  64. package/dist/esm/lime-elements.js +1 -1
  65. package/dist/esm/{limel-breadcrumbs_7.entry.js → limel-breadcrumbs_8.entry.js} +71 -6
  66. package/dist/esm/limel-chip-set.entry.js +576 -0
  67. package/dist/esm/limel-chip_2.entry.js +35 -542
  68. package/dist/esm/limel-dialog.entry.js +9 -6
  69. package/dist/esm/limel-email-viewer.entry.js +15 -10
  70. package/dist/esm/limel-file-dropzone_2.entry.js +12 -8
  71. package/dist/esm/limel-file.entry.js +2 -1
  72. package/dist/esm/limel-flatpickr-adapter.entry.js +5 -3
  73. package/dist/esm/limel-form.entry.js +18 -15
  74. package/dist/esm/limel-helper-line.entry.js +40 -0
  75. package/dist/esm/limel-popover_2.entry.js +6 -5
  76. package/dist/esm/limel-profile-picture.entry.js +3 -2
  77. package/dist/esm/limel-prosemirror-adapter.entry.js +16 -12
  78. package/dist/esm/limel-tab-bar.entry.js +11 -8
  79. package/dist/esm/limel-table.entry.js +14 -11
  80. package/dist/esm/loader.js +1 -1
  81. package/dist/esm/{pickBy-D8CUtxE4.js → pickBy-C4C3CM4m.js} +4 -4
  82. package/dist/lime-elements/lime-elements.esm.js +1 -1
  83. package/dist/lime-elements/p-00b424d7.entry.js +1 -0
  84. package/dist/lime-elements/p-01651634.entry.js +1 -0
  85. package/dist/lime-elements/p-4ecd565b.entry.js +1 -0
  86. package/dist/lime-elements/p-5442e09e.entry.js +13 -0
  87. package/dist/lime-elements/p-56bkn1D-.js +1 -0
  88. package/dist/lime-elements/p-60327283.entry.js +1 -0
  89. package/dist/lime-elements/{p-cfe85e59.entry.js → p-6eaa9776.entry.js} +10 -10
  90. package/dist/lime-elements/p-72b9d03e.entry.js +1 -0
  91. package/dist/lime-elements/p-80162ba0.entry.js +1 -0
  92. package/dist/lime-elements/p-86ff06d1.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-e720f65c.entry.js → p-d00ec6c2.entry.js} +3 -3
  116. package/dist/lime-elements/{p-a416d439.entry.js → p-e5c7cac0.entry.js} +2 -2
  117. package/dist/lime-elements/p-f6e58e6c.entry.js +1 -0
  118. package/dist/lime-elements/p-f867b424.entry.js +1 -0
  119. package/dist/lime-elements/p-mmkVLOjW.js +1 -0
  120. package/dist/types/components/email-viewer/email-viewer.d.ts +0 -1
  121. package/package.json +1 -1
  122. package/dist/cjs/limel-helper-line_2.cjs.entry.js +0 -107
  123. package/dist/cjs/limel-linear-progress.cjs.entry.js +0 -59
  124. package/dist/esm/limel-helper-line_2.entry.js +0 -104
  125. package/dist/esm/limel-linear-progress.entry.js +0 -57
  126. package/dist/lime-elements/p-4118be32.entry.js +0 -13
  127. package/dist/lime-elements/p-48db87d3.entry.js +0 -1
  128. package/dist/lime-elements/p-4e9baf08.entry.js +0 -1
  129. package/dist/lime-elements/p-59f1460d.entry.js +0 -1
  130. package/dist/lime-elements/p-7uuv3HUP.js +0 -1
  131. package/dist/lime-elements/p-811c4820.entry.js +0 -1
  132. package/dist/lime-elements/p-83e084f9.entry.js +0 -1
  133. package/dist/lime-elements/p-9a378cf0.entry.js +0 -1
  134. package/dist/lime-elements/p-BTHqaZIi.js +0 -1
  135. package/dist/lime-elements/p-Bj622DVt.js +0 -1
  136. package/dist/lime-elements/p-Bp0tNo1s.js +0 -1
  137. package/dist/lime-elements/p-C3Myy3mA.js +0 -1
  138. package/dist/lime-elements/p-CXgJVvTe.js +0 -1
  139. package/dist/lime-elements/p-CxfAgSVd.js +0 -1
  140. package/dist/lime-elements/p-DNIqLXTL.js +0 -1
  141. package/dist/lime-elements/p-D_uMnX5g.js +0 -1
  142. package/dist/lime-elements/p-DbC-smVQ.js +0 -1
  143. package/dist/lime-elements/p-DlJXKdhK.js +0 -1
  144. package/dist/lime-elements/p-DtS35Df5.js +0 -1
  145. package/dist/lime-elements/p-SvuA3Boo.js +0 -1
  146. package/dist/lime-elements/p-b306735b.entry.js +0 -1
  147. package/dist/lime-elements/p-c1c635c1.entry.js +0 -1
  148. package/dist/lime-elements/p-cebdd797.entry.js +0 -1
  149. package/dist/lime-elements/p-efBXH4mj.js +0 -1
  150. package/dist/lime-elements/p-f_1nwOC8.js +0 -1
  151. package/dist/lime-elements/p-fd4a4f87.entry.js +0 -1
  152. package/dist/lime-elements/p-v6b303K5.js +0 -1
@@ -0,0 +1,578 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-BjHIBY-I.js');
4
+ var keycodes = require('./keycodes-B75-uKOK.js');
5
+ var translations = require('./translations-D4j_eojG.js');
6
+ var linkHelper = require('./link-helper-DwlfFJVL.js');
7
+ var randomString = require('./random-string-BTzDB2ee.js');
8
+ var isEqual = require('./isEqual-Cd9J8a5-.js');
9
+ var component = require('./component-CFk7Dfoi.js');
10
+ require('./_baseIsEqual-CQZKiKbe.js');
11
+ require('./eq-DFcUoVzv.js');
12
+ require('./_getTag-BC28Za7d.js');
13
+ require('./isObject-B6Osvvqp.js');
14
+ require('./isObjectLike-Dlpn-j-1.js');
15
+ require('./isArrayLike-C2RwZMG4.js');
16
+ require('./isFunction-RSHwsz1x.js');
17
+ require('./_getNative-Cf52giNE.js');
18
+ require('./isArray-BuFVIU_i.js');
19
+ require('./_isIndex-Bu45fvR7.js');
20
+ require('./ponyfill-BgIFyUG5.js');
21
+ require('./component-y8swlNNR.js');
22
+ require('./component-BrNWuGdj.js');
23
+
24
+ /**
25
+ * Key handler for the input field.
26
+ * Lets the user select, activate, and remove chips with the keyboard.
27
+ *
28
+ * @param event - event
29
+
30
+ */
31
+ function handleKeyboardEvent(event) {
32
+ var _a;
33
+ if (this.textValue.length > 0) {
34
+ // If there is any text in the input field, keyboard input should
35
+ // navigate the text, not the chips.
36
+ return;
37
+ }
38
+ if (!((_a = this.value) === null || _a === void 0 ? void 0 : _a.length)) {
39
+ // If there are no chips, there is nothing to select.
40
+ return;
41
+ }
42
+ const isArrowLeft = event.key === keycodes.ARROW_LEFT;
43
+ const isArrowRight = event.key === keycodes.ARROW_RIGHT;
44
+ const isEnter = event.key === keycodes.ENTER;
45
+ const isDelete = event.key === keycodes.DELETE;
46
+ const isBackspace = event.key === keycodes.BACKSPACE;
47
+ const isEscape = event.key === keycodes.ESCAPE;
48
+ if (isArrowLeft) {
49
+ return handleLeft(this, event);
50
+ }
51
+ if (isArrowRight) {
52
+ return handleRight(this, event);
53
+ }
54
+ if (isEnter) {
55
+ return handleEnter(this, event);
56
+ }
57
+ if (isDelete) {
58
+ return handleDelete(this, event);
59
+ }
60
+ if (isBackspace) {
61
+ return handleBackspace(this, event);
62
+ }
63
+ if (isEscape) {
64
+ return handleEscape(this, event);
65
+ }
66
+ }
67
+ function handleLeft(host, event) {
68
+ event.preventDefault();
69
+ if (host.inputChipIndexSelected === null) {
70
+ host.inputChipIndexSelected = host.value.length - 1;
71
+ return;
72
+ }
73
+ if (host.inputChipIndexSelected <= 0) {
74
+ return;
75
+ }
76
+ host.inputChipIndexSelected -= 1;
77
+ }
78
+ function handleRight(host, event) {
79
+ event.preventDefault();
80
+ if (host.inputChipIndexSelected === null) {
81
+ host.inputChipIndexSelected = 0;
82
+ return;
83
+ }
84
+ if (host.inputChipIndexSelected >= host.value.length - 1) {
85
+ return;
86
+ }
87
+ host.inputChipIndexSelected += 1;
88
+ }
89
+ function handleEnter(host, event) {
90
+ if (host.inputChipIndexSelected !== null) {
91
+ event.preventDefault();
92
+ host.emitInteraction(host.value[host.inputChipIndexSelected]);
93
+ }
94
+ }
95
+ function handleEscape(host, event) {
96
+ if (host.inputChipIndexSelected !== null) {
97
+ event.preventDefault();
98
+ host.inputChipIndexSelected = null;
99
+ }
100
+ }
101
+ function handleDelete(host, event) {
102
+ if (host.inputChipIndexSelected !== null) {
103
+ event.preventDefault();
104
+ removeChip(host);
105
+ }
106
+ }
107
+ function handleBackspace(host, event) {
108
+ if (host.inputChipIndexSelected !== null) {
109
+ event.preventDefault();
110
+ removeChip(host);
111
+ }
112
+ else if (!event.repeat) {
113
+ host.inputChipIndexSelected = host.value.length - 1;
114
+ }
115
+ }
116
+ function removeChip(host) {
117
+ if (host.inputChipIndexSelected !== null) {
118
+ host.removeChip(host.value[host.inputChipIndexSelected].id);
119
+ host.inputChipIndexSelected = null;
120
+ }
121
+ }
122
+
123
+ 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)}`;
124
+
125
+ function isChipAnnotatedEvent(event) {
126
+ var _a;
127
+ return !!((_a = event === null || event === void 0 ? void 0 : event.Lime) === null || _a === void 0 ? void 0 : _a.chip);
128
+ }
129
+ const ChipSet = class {
130
+ constructor(hostRef) {
131
+ index.registerInstance(this, hostRef);
132
+ this.interact = index.createEvent(this, "interact");
133
+ this.change = index.createEvent(this, "change");
134
+ this.startEdit = index.createEvent(this, "startEdit");
135
+ this.stopEdit = index.createEvent(this, "stopEdit");
136
+ this.input = index.createEvent(this, "input");
137
+ /**
138
+ * List of chips for the set
139
+ */
140
+ this.value = [];
141
+ /**
142
+ * True if the chip set should be disabled
143
+ */
144
+ this.disabled = false;
145
+ /**
146
+ * For chip-sets of type `input`, set to `true` to disable adding and
147
+ * removing chips, but allow interaction with existing chips in the set.
148
+ * For any other types, setting either `readonly` or `disabled` disables
149
+ * the chip-set.
150
+ */
151
+ this.readonly = false;
152
+ /**
153
+ * Set to `true` to indicate that the current value of the input field is
154
+ * invalid.
155
+ */
156
+ this.invalid = false;
157
+ /**
158
+ * For chip-sets of type `input`. Value to use for the `type` attribute on the
159
+ * input field inside the chip-set.
160
+ */
161
+ this.inputType = 'text';
162
+ /**
163
+ * True if the control requires a value
164
+ */
165
+ this.required = false;
166
+ /**
167
+ * Whether the input field should be emptied when the chip-set loses focus.
168
+ */
169
+ this.emptyInputOnBlur = true;
170
+ /**
171
+ * Whether the "Clear all" buttons should be shown
172
+ */
173
+ this.clearAllButton = true;
174
+ /**
175
+ * For chip-sets of type `input`. When the value is null, no leading icon is used.
176
+ * Leading icon to show to the far left in the text field
177
+ */
178
+ this.leadingIcon = null;
179
+ /**
180
+ * For chip-set of type `input`. Sets delimiters between chips.
181
+ */
182
+ this.delimiter = null;
183
+ /**
184
+ * For chip-set of type `input`, defines whether the input field should have autocomplete enabled.
185
+ * Read more about the `autocomplete` attribute
186
+ * [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete).
187
+ */
188
+ this.autocomplete = 'off';
189
+ /**
190
+ * Defines the language for translations.
191
+ * Will translate the translatable strings on the components. For example, the clear all chips label.
192
+ */
193
+ this.language = 'en';
194
+ this.editMode = false;
195
+ this.textValue = '';
196
+ this.blurred = false;
197
+ this.inputChipIndexSelected = null;
198
+ this.handleKeyDown = handleKeyboardEvent;
199
+ this.renderContent = (value) => {
200
+ if (this.type === 'input') {
201
+ return this.renderInputChips();
202
+ }
203
+ return value.map(this.renderChip);
204
+ };
205
+ this.getValue = () => {
206
+ return this.value.map((chip) => (Object.assign(Object.assign({}, chip), (this.type && {
207
+ selected: this.selectedChipIds.includes(chip.id),
208
+ }))));
209
+ };
210
+ this.floatLabelAbove = () => {
211
+ if (this.value.length > 0 ||
212
+ this.editMode ||
213
+ this.readonly ||
214
+ this.textValue) {
215
+ return true;
216
+ }
217
+ };
218
+ this.hasHelperText = () => {
219
+ return this.helperText !== null && this.helperText !== undefined;
220
+ };
221
+ this.renderHelperLine = () => {
222
+ const maxItems = this.maxItems === 1 ? undefined : this.maxItems;
223
+ if (!maxItems && !this.hasHelperText()) {
224
+ return;
225
+ }
226
+ return (index.h("limel-helper-line", { length: this.value.length, maxLength: maxItems, helperText: this.helperText, invalid: this.isInvalid() }));
227
+ };
228
+ this.catchInputChipClicks = (chip) => (event) => {
229
+ /*
230
+ * We need to add the `chip` to the event object so that the consumer
231
+ * can get the chip object when the chip is clicked.
232
+ * This is necessary for the consumer to be able to handle the click
233
+ * event itself, based on which chip was clicked, or whether the click
234
+ * was on a chip or elsewhere. The reason the consumer can't just look
235
+ * at the event target is that that information is hidden by the
236
+ * shadow DOM.
237
+ *
238
+ * See documentation for the `interact` event for more information.
239
+ */
240
+ event.Lime = { chip: chip };
241
+ if (this.isSelectableChip(chip)) {
242
+ this.updateSelectedChipIds(chip);
243
+ this.change.emit(chip);
244
+ }
245
+ this.emitInteraction(chip);
246
+ };
247
+ this.handleRemoveChip = (event) => {
248
+ this.removeChip(event.detail);
249
+ };
250
+ this.removeChip = (identifier) => {
251
+ const newValue = this.value.filter((chip) => {
252
+ return chip.id !== identifier;
253
+ });
254
+ this.change.emit(newValue);
255
+ };
256
+ this.clearAllChipsLabel = () => {
257
+ return translations.translate.get('chip-set.clear-all', this.language);
258
+ };
259
+ this.labelId = randomString.createRandomString();
260
+ this.renderChip = this.renderChip.bind(this);
261
+ this.renderInputChip = this.renderInputChip.bind(this);
262
+ this.isFull = this.isFull.bind(this);
263
+ this.handleTextFieldFocus = this.handleTextFieldFocus.bind(this);
264
+ this.handleInputBlur = this.handleInputBlur.bind(this);
265
+ this.handleTextInput = this.handleTextInput.bind(this);
266
+ this.inputFieldOnChange = this.inputFieldOnChange.bind(this);
267
+ this.handleKeyDown = this.handleKeyDown.bind(this);
268
+ this.inputHidden = this.inputHidden.bind(this);
269
+ this.handleDeleteAllIconClick =
270
+ this.handleDeleteAllIconClick.bind(this);
271
+ this.renderDelimiter = this.renderDelimiter.bind(this);
272
+ }
273
+ connectedCallback() {
274
+ this.initialize();
275
+ }
276
+ initialize() {
277
+ if (this.value.length > 0) {
278
+ this.selectedChipIds = this.value
279
+ .filter((chip) => chip.selected)
280
+ .map((chip) => chip.id);
281
+ }
282
+ }
283
+ /**
284
+ * Used to find out whether the chip-set is in edit mode.
285
+ *
286
+ * @returns `true` if the chip-set is in edit mode, `false` otherwise.
287
+ */
288
+ async getEditMode() {
289
+ return this.editMode;
290
+ }
291
+ /**
292
+ * Used to set focus to the chip-set input field.
293
+ *
294
+ * @param emptyInput - if `true`, any text in the input is discarded
295
+ * @returns does not return anything, but methods have to be async
296
+ */
297
+ async setFocus(emptyInput = false) {
298
+ if (this.disabled || this.readonly) {
299
+ return;
300
+ }
301
+ this.editMode = true;
302
+ if (emptyInput) {
303
+ this.textValue = '';
304
+ }
305
+ this.host.shadowRoot.querySelector('input').focus();
306
+ this.startEdit.emit();
307
+ }
308
+ /**
309
+ * Used to empty the input field. Used in conjunction with `emptyInputOnBlur` to let the
310
+ * consumer control when the input is emptied.
311
+ *
312
+ * @returns does not return anything, but methods have to be async
313
+ */
314
+ async emptyInput() {
315
+ this.syncEmptyInput();
316
+ }
317
+ componentDidLoad() {
318
+ this.triggerIconColorWarning(this.value);
319
+ if (this.type === 'input') {
320
+ this.mdcTextField = new component.MDCTextField(this.host.shadowRoot.querySelector('.mdc-text-field'));
321
+ }
322
+ }
323
+ componentDidUpdate() {
324
+ const input = this.host.shadowRoot.querySelector('input');
325
+ if (input && this.editMode) {
326
+ input.focus();
327
+ }
328
+ }
329
+ disconnectedCallback() {
330
+ if (this.mdcTextField) {
331
+ this.mdcTextField.destroy();
332
+ }
333
+ }
334
+ render() {
335
+ var _a;
336
+ const classes = {
337
+ 'mdc-chip-set': true,
338
+ 'mdc-text-field--with-trailing-icon': true,
339
+ disabled: this.disabled || this.readonly,
340
+ };
341
+ if (this.type) {
342
+ classes[`mdc-chip-set--${this.type}`] = true;
343
+ }
344
+ if (this.type === 'input') {
345
+ Object.assign(classes, {
346
+ 'mdc-text-field': true,
347
+ 'mdc-text-field--outlined': true,
348
+ 'mdc-chip-set--input': true,
349
+ 'lime-text-field--readonly': this.readonly,
350
+ 'has-chips': this.value.length > 0,
351
+ 'has-leading-icon': this.leadingIcon !== null,
352
+ 'has-clear-all-button': this.clearAllButton,
353
+ });
354
+ }
355
+ const value = this.getValue();
356
+ return (index.h(index.Host, { key: 'debc60e705b4963508c42607e445ad1f3d0f4502' }, index.h("limel-notched-outline", { key: '97fafcf0efaba1abad175afa1057a8e7672f4562', 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() }, index.h("div", Object.assign({ key: 'dcde98d15b8793359cafef00939ace7c513dcea8', slot: "content" }, this.getContentProps(), { class: classes }), this.renderContent(value))), this.renderHelperLine()));
357
+ }
358
+ getContentProps() {
359
+ if (this.type === 'input') {
360
+ return {
361
+ onClick: this.handleTextFieldFocus,
362
+ };
363
+ }
364
+ return {
365
+ role: 'grid',
366
+ };
367
+ }
368
+ handleChangeChips(newValue, oldValue) {
369
+ if (isEqual.isEqual(newValue, oldValue)) {
370
+ return;
371
+ }
372
+ this.syncEmptyInput();
373
+ this.initialize();
374
+ }
375
+ renderInputChips() {
376
+ return [
377
+ this.value.map(this.renderInputChip),
378
+ index.h("input", { tabIndex: this.disabled || this.readonly ? -1 : 0, type: this.inputType, id: this.labelId, disabled: this.readonly || this.disabled, class: {
379
+ 'mdc-text-field__input': true,
380
+ hidden: this.inputHidden(),
381
+ }, value: this.textValue, onBlur: this.handleInputBlur, onFocus: this.handleTextFieldFocus, onKeyDown: this.handleKeyDown, onInput: this.handleTextInput,
382
+ // Some browsers emit a change event on input elements, we need to stop
383
+ // that event from propagating since we are emitting our own change event
384
+ onChange: this.inputFieldOnChange, placeholder: this.isFull() ? '' : this.searchLabel, readonly: this.isFull(), autocomplete: this.autocomplete }),
385
+ this.renderLeadingIcon(),
386
+ this.renderClearAllChipsButton(),
387
+ ];
388
+ }
389
+ isFull() {
390
+ return !!this.maxItems && this.value.length >= this.maxItems;
391
+ }
392
+ isInvalid() {
393
+ var _a;
394
+ if (this.readonly) {
395
+ // A readonly field can never be invalid.
396
+ return false;
397
+ }
398
+ if (this.invalid) {
399
+ return true;
400
+ }
401
+ if (!this.required) {
402
+ return false;
403
+ }
404
+ if (!this.blurred) {
405
+ return false;
406
+ }
407
+ return !((_a = this.value) === null || _a === void 0 ? void 0 : _a.length);
408
+ }
409
+ inputFieldOnChange(event) {
410
+ event.stopPropagation();
411
+ }
412
+ /**
413
+ * Enter edit mode when the text field receives focus. When editMode is true, the input element will be visible
414
+ * @param event - The originating click or focus event, if any. When a
415
+ * click originates from a chip body (marked by
416
+ * {@link catchInputChipClicks} as `event.Lime.chip`), edit mode is
417
+ * not entered: the chip's `interact` event is the consumer's signal
418
+ * and the input should not steal focus alongside it.
419
+ */
420
+ handleTextFieldFocus(event) {
421
+ if (this.disabled || this.readonly) {
422
+ return;
423
+ }
424
+ if (this.editMode) {
425
+ return;
426
+ }
427
+ if (isChipAnnotatedEvent(event)) {
428
+ return;
429
+ }
430
+ this.editMode = true;
431
+ this.startEdit.emit();
432
+ }
433
+ /**
434
+ * Exit edit mode when the input element loses focus. This makes sure the input element does not take up any
435
+ * additional space when the user it not typing anything
436
+ */
437
+ handleInputBlur() {
438
+ if (this.emptyInputOnBlur) {
439
+ this.syncEmptyInput();
440
+ }
441
+ this.editMode = false;
442
+ this.blurred = true;
443
+ this.inputChipIndexSelected = null;
444
+ // This timeout is needed in order to let a new element receive focus
445
+ setTimeout(() => {
446
+ this.stopEdit.emit();
447
+ }, 0);
448
+ }
449
+ syncEmptyInput() {
450
+ this.textValue = '';
451
+ }
452
+ inputHidden() {
453
+ var _a;
454
+ if (this.editMode) {
455
+ return this.isFull();
456
+ }
457
+ // Keep the input visible while it holds uncommitted text, so typed
458
+ // content doesn't disappear when focus leaves (e.g. tabbing to a
459
+ // sibling action).
460
+ if (this.textValue) {
461
+ return false;
462
+ }
463
+ // If there are chips in the picker, hide the input to avoid the input
464
+ // being placed on a new line and adding ugly space beneath the chips.
465
+ // If there are no chips, show the input, or the picker will look weird.
466
+ return !!((_a = this.value) === null || _a === void 0 ? void 0 : _a.length);
467
+ }
468
+ handleTextInput(event) {
469
+ var _a;
470
+ event.stopPropagation();
471
+ this.inputChipIndexSelected = null;
472
+ this.textValue = event.target.value;
473
+ this.input.emit((_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim());
474
+ }
475
+ emitInteraction(chip) {
476
+ this.interact.emit(chip);
477
+ }
478
+ renderChip(chip) {
479
+ const chipType = this.type === 'filter' ? 'filter' : 'default';
480
+ const chipProps = this.getChipProps(chip, chipType);
481
+ return index.h("limel-chip", Object.assign({}, chipProps));
482
+ }
483
+ renderInputChip(chip, index$1, chips) {
484
+ const chipProps = this.getChipProps(chip, 'default');
485
+ const isLastChip = index$1 === chips.length - 1;
486
+ return [
487
+ index.h("limel-chip", Object.assign({ key: chip.id, class: {
488
+ 'can-be-removed': this.inputChipIndexSelected === index$1,
489
+ } }, chipProps)),
490
+ !(isLastChip && this.inputHidden()) && this.renderDelimiter(),
491
+ ];
492
+ }
493
+ getChipProps(chip, chipType) {
494
+ const removable = this.type === 'input' && chip.removable && !this.readonly;
495
+ const readonly = this.readonly && this.type !== 'input';
496
+ 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 && {
497
+ link: {
498
+ href: linkHelper.getHref(chip.href),
499
+ target: linkHelper.getTarget(chip.href),
500
+ },
501
+ }));
502
+ }
503
+ isSelectableChip(chip) {
504
+ return this.type !== 'input' && 'selected' in chip;
505
+ }
506
+ updateSelectedChipIds(chip) {
507
+ chip.selected = !chip.selected;
508
+ const id = chip.id;
509
+ if (this.type === 'choice') {
510
+ this.updateChoiceTypeSelectedIds(id);
511
+ }
512
+ else {
513
+ this.updateFilterTypeSelectedIds(id);
514
+ }
515
+ }
516
+ updateChoiceTypeSelectedIds(id) {
517
+ this.selectedChipIds = this.isChipSelected(id) ? [] : [id];
518
+ }
519
+ isChipSelected(id) {
520
+ return this.selectedChipIds.includes(id);
521
+ }
522
+ updateFilterTypeSelectedIds(id) {
523
+ if (this.isChipSelected(id)) {
524
+ this.removeChipIdFromSelectedChipIds(id);
525
+ }
526
+ else {
527
+ this.addChipIdToSelectedChipIds(id);
528
+ }
529
+ }
530
+ removeChipIdFromSelectedChipIds(id) {
531
+ this.selectedChipIds = this.selectedChipIds.filter((chipId) => chipId !== id);
532
+ }
533
+ addChipIdToSelectedChipIds(id) {
534
+ this.selectedChipIds = [...this.selectedChipIds, id];
535
+ }
536
+ renderLeadingIcon() {
537
+ if (!this.leadingIcon) {
538
+ return;
539
+ }
540
+ return (index.h("i", { class: "mdc-text-field__icon search-icon" }, index.h("limel-icon", { name: this.leadingIcon })));
541
+ }
542
+ renderClearAllChipsButton() {
543
+ if (this.disabled || this.readonly || !this.clearAllButton) {
544
+ return;
545
+ }
546
+ return (index.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() }));
547
+ }
548
+ handleDeleteAllIconClick(event) {
549
+ event.preventDefault();
550
+ this.change.emit([]);
551
+ }
552
+ renderDelimiter() {
553
+ if (!this.delimiter) {
554
+ return;
555
+ }
556
+ return index.h("div", { class: "delimiter" }, this.delimiter);
557
+ }
558
+ triggerIconColorWarning(value) {
559
+ for (const chip of value) {
560
+ if (chip.icon &&
561
+ (chip.iconFillColor ||
562
+ chip.iconBackgroundColor ||
563
+ chip.iconTitle)) {
564
+ 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' }`.");
565
+ }
566
+ }
567
+ }
568
+ static get delegatesFocus() { return true; }
569
+ get host() { return index.getElement(this); }
570
+ static get watchers() { return {
571
+ "value": [{
572
+ "handleChangeChips": 0
573
+ }]
574
+ }; }
575
+ };
576
+ ChipSet.style = chipSetCss();
577
+
578
+ exports.limel_chip_set = ChipSet;