@salutejs/plasma-new-hope 0.229.0-canary.1666.12456056975.0 → 0.230.0-canary.1670.12462995068.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. package/cjs/components/Breadcrumbs/Breadcrumbs.js +1 -2
  2. package/cjs/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  3. package/cjs/components/Breadcrumbs/utils/index.js +38 -0
  4. package/cjs/components/Breadcrumbs/utils/index.js.map +1 -1
  5. package/cjs/components/Calendar/utils/getDateWithModification.js.map +1 -1
  6. package/cjs/components/Combobox/ComboboxNew/Combobox.js +3 -2
  7. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  8. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +75 -0
  9. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +112 -0
  10. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -2
  11. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  12. package/cjs/components/Dropdown/Dropdown.js +3 -2
  13. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  14. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
  15. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  16. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +25 -0
  17. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -2
  18. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  19. package/cjs/components/Select/Select.js +3 -2
  20. package/cjs/components/Select/Select.js.map +1 -1
  21. package/cjs/components/Select/ui/Inner/Inner.css +109 -0
  22. package/cjs/components/Select/ui/Inner/Inner.js +1 -1
  23. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  24. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +112 -0
  25. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +2 -2
  26. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  27. package/cjs/components/Slider/components/Double/Double.css +91 -0
  28. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +7 -0
  29. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  30. package/cjs/components/TextArea/TextArea.js +6 -0
  31. package/cjs/components/TextArea/TextArea.js.map +1 -1
  32. package/cjs/components/TextField/TextField.js +1 -0
  33. package/cjs/components/TextField/TextField.js.map +1 -1
  34. package/cjs/engines/common.js +36 -0
  35. package/cjs/engines/common.js.map +1 -1
  36. package/cjs/engines/linaria.js +3 -3
  37. package/cjs/engines/linaria.js.map +1 -1
  38. package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.js +1 -2
  39. package/emotion/cjs/components/Breadcrumbs/utils/index.js +37 -1
  40. package/emotion/cjs/components/Calendar/utils/getDateWithModification.js +3 -3
  41. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +4 -3
  42. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  43. package/emotion/cjs/components/Dropdown/Dropdown.js +4 -3
  44. package/emotion/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +3 -3
  45. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  46. package/emotion/cjs/components/Select/Select.js +4 -3
  47. package/emotion/cjs/components/Select/ui/Inner/Inner.js +3 -3
  48. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  49. package/emotion/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +3 -3
  50. package/emotion/cjs/components/TextArea/TextArea.js +7 -1
  51. package/emotion/cjs/components/TextField/TextField.js +2 -1
  52. package/emotion/cjs/engines/common.js +42 -2
  53. package/emotion/cjs/engines/emotion.js +4 -4
  54. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +71 -8
  55. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +69 -7
  56. package/emotion/es/components/Breadcrumbs/Breadcrumbs.js +1 -2
  57. package/emotion/es/components/Breadcrumbs/utils/index.js +35 -0
  58. package/emotion/es/components/Calendar/utils/getDateWithModification.js +1 -1
  59. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +2 -2
  60. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  61. package/emotion/es/components/Dropdown/Dropdown.js +2 -2
  62. package/emotion/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
  63. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  64. package/emotion/es/components/Select/Select.js +2 -2
  65. package/emotion/es/components/Select/ui/Inner/Inner.js +1 -1
  66. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  67. package/emotion/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +1 -1
  68. package/emotion/es/components/TextArea/TextArea.js +8 -2
  69. package/emotion/es/components/TextField/TextField.js +2 -1
  70. package/emotion/es/engines/common.js +40 -0
  71. package/emotion/es/engines/emotion.js +2 -2
  72. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +71 -8
  73. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +69 -7
  74. package/es/components/Breadcrumbs/Breadcrumbs.js +1 -2
  75. package/es/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  76. package/es/components/Breadcrumbs/utils/index.js +37 -1
  77. package/es/components/Breadcrumbs/utils/index.js.map +1 -1
  78. package/es/components/Calendar/utils/getDateWithModification.js.map +1 -1
  79. package/es/components/Combobox/ComboboxNew/Combobox.js +3 -3
  80. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  81. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +75 -0
  82. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +112 -0
  83. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  84. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  85. package/es/components/Dropdown/Dropdown.js +3 -3
  86. package/es/components/Dropdown/Dropdown.js.map +1 -1
  87. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
  88. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  89. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +25 -0
  90. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  91. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  92. package/es/components/Select/Select.js +3 -3
  93. package/es/components/Select/Select.js.map +1 -1
  94. package/es/components/Select/ui/Inner/Inner.css +109 -0
  95. package/es/components/Select/ui/Inner/Inner.js +1 -1
  96. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  97. package/es/components/Select/ui/Inner/ui/Item/Item.css +112 -0
  98. package/es/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  99. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  100. package/es/components/Slider/components/Double/Double.css +91 -0
  101. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +7 -0
  102. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  103. package/es/components/TextArea/TextArea.js +7 -1
  104. package/es/components/TextArea/TextArea.js.map +1 -1
  105. package/es/components/TextField/TextField.js +1 -0
  106. package/es/components/TextField/TextField.js.map +1 -1
  107. package/es/engines/common.js +36 -2
  108. package/es/engines/common.js.map +1 -1
  109. package/es/engines/linaria.js +1 -1
  110. package/es/engines/linaria.js.map +1 -1
  111. package/package.json +5 -17
  112. package/styled-components/cjs/components/Breadcrumbs/Breadcrumbs.js +1 -2
  113. package/styled-components/cjs/components/Breadcrumbs/utils/index.js +37 -1
  114. package/styled-components/cjs/components/Calendar/utils/getDateWithModification.js +3 -3
  115. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +4 -3
  116. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  117. package/styled-components/cjs/components/Dropdown/Dropdown.js +4 -3
  118. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +3 -3
  119. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  120. package/styled-components/cjs/components/Select/Select.js +4 -3
  121. package/styled-components/cjs/components/Select/ui/Inner/Inner.js +3 -3
  122. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  123. package/styled-components/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +3 -3
  124. package/styled-components/cjs/components/TextArea/TextArea.js +6 -0
  125. package/styled-components/cjs/components/TextField/TextField.js +1 -0
  126. package/styled-components/cjs/engines/common.js +42 -2
  127. package/styled-components/cjs/engines/styled-components.js +3 -3
  128. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +71 -8
  129. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +69 -7
  130. package/styled-components/es/components/Breadcrumbs/Breadcrumbs.js +1 -2
  131. package/styled-components/es/components/Breadcrumbs/utils/index.js +35 -0
  132. package/styled-components/es/components/Calendar/utils/getDateWithModification.js +1 -1
  133. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +2 -2
  134. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -1
  135. package/styled-components/es/components/Dropdown/Dropdown.js +2 -2
  136. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -1
  137. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  138. package/styled-components/es/components/Select/Select.js +2 -2
  139. package/styled-components/es/components/Select/ui/Inner/Inner.js +1 -1
  140. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +1 -1
  141. package/styled-components/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +1 -1
  142. package/styled-components/es/components/TextArea/TextArea.js +7 -1
  143. package/styled-components/es/components/TextField/TextField.js +1 -0
  144. package/styled-components/es/engines/common.js +40 -0
  145. package/styled-components/es/engines/styled-components.js +1 -1
  146. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +71 -8
  147. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +69 -7
  148. package/types/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  149. package/types/components/Breadcrumbs/utils/index.d.ts +5 -2
  150. package/types/components/Breadcrumbs/utils/index.d.ts.map +1 -1
  151. package/types/components/Calendar/utils/getDateWithModification.d.ts +1 -1
  152. package/types/components/Calendar/utils/getDateWithModification.d.ts.map +1 -1
  153. package/types/components/Combobox/ComboboxNew/Combobox.d.ts +2 -1
  154. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  155. package/types/components/Dropdown/Dropdown.d.ts +2 -1
  156. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  157. package/types/components/Select/Select.d.ts +2 -1
  158. package/types/components/Select/Select.d.ts.map +1 -1
  159. package/types/components/TextArea/TextArea.d.ts.map +1 -1
  160. package/types/components/TextField/TextField.d.ts.map +1 -1
  161. package/types/engines/common.d.ts +3 -1
  162. package/types/engines/common.d.ts.map +1 -1
  163. package/cjs/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.css +0 -3
  164. package/cjs/components/Breadcrumbs/utils/getShortItems.js +0 -44
  165. package/cjs/components/Breadcrumbs/utils/getShortItems.js.map +0 -1
  166. package/cjs/components/Combobox/ComboboxNew/Combobox.context.js +0 -10
  167. package/cjs/components/Combobox/ComboboxNew/Combobox.context.js.map +0 -1
  168. package/cjs/components/Dropdown/Dropdown.context.js +0 -10
  169. package/cjs/components/Dropdown/Dropdown.context.js.map +0 -1
  170. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.css +0 -27
  171. package/cjs/components/Select/Select.context.js +0 -10
  172. package/cjs/components/Select/Select.context.js.map +0 -1
  173. package/cjs/engines/utils.js +0 -40
  174. package/cjs/engines/utils.js.map +0 -1
  175. package/emotion/cjs/components/Breadcrumbs/utils/getShortItems.js +0 -42
  176. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.context.js +0 -8
  177. package/emotion/cjs/components/Dropdown/Dropdown.context.js +0 -8
  178. package/emotion/cjs/components/Select/Select.context.js +0 -8
  179. package/emotion/cjs/engines/utils.js +0 -42
  180. package/emotion/es/components/Breadcrumbs/utils/getShortItems.js +0 -35
  181. package/emotion/es/components/Combobox/ComboboxNew/Combobox.context.js +0 -2
  182. package/emotion/es/components/Dropdown/Dropdown.context.js +0 -2
  183. package/emotion/es/components/Select/Select.context.js +0 -2
  184. package/emotion/es/engines/utils.js +0 -36
  185. package/es/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.css +0 -3
  186. package/es/components/Breadcrumbs/utils/getShortItems.js +0 -39
  187. package/es/components/Breadcrumbs/utils/getShortItems.js.map +0 -1
  188. package/es/components/Combobox/ComboboxNew/Combobox.context.js +0 -6
  189. package/es/components/Combobox/ComboboxNew/Combobox.context.js.map +0 -1
  190. package/es/components/Dropdown/Dropdown.context.js +0 -6
  191. package/es/components/Dropdown/Dropdown.context.js.map +0 -1
  192. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.css +0 -27
  193. package/es/components/Select/Select.context.js +0 -6
  194. package/es/components/Select/Select.context.js.map +0 -1
  195. package/es/engines/utils.js +0 -35
  196. package/es/engines/utils.js.map +0 -1
  197. package/styled-components/cjs/components/Breadcrumbs/utils/getShortItems.js +0 -42
  198. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.context.js +0 -8
  199. package/styled-components/cjs/components/Dropdown/Dropdown.context.js +0 -8
  200. package/styled-components/cjs/components/Select/Select.context.js +0 -8
  201. package/styled-components/cjs/engines/utils.js +0 -42
  202. package/styled-components/es/components/Breadcrumbs/utils/getShortItems.js +0 -35
  203. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.context.js +0 -2
  204. package/styled-components/es/components/Dropdown/Dropdown.context.js +0 -2
  205. package/styled-components/es/components/Select/Select.context.js +0 -2
  206. package/styled-components/es/engines/utils.js +0 -36
  207. package/types/components/Breadcrumbs/utils/getShortItems.d.ts +0 -6
  208. package/types/components/Breadcrumbs/utils/getShortItems.d.ts.map +0 -1
  209. package/types/components/Combobox/ComboboxNew/Combobox.context.d.ts +0 -4
  210. package/types/components/Combobox/ComboboxNew/Combobox.context.d.ts.map +0 -1
  211. package/types/components/Dropdown/Dropdown.context.d.ts +0 -4
  212. package/types/components/Dropdown/Dropdown.context.d.ts.map +0 -1
  213. package/types/components/Select/Select.context.d.ts +0 -4
  214. package/types/components/Select/Select.context.d.ts.map +0 -1
  215. package/types/engines/utils.d.ts +0 -4
  216. package/types/engines/utils.d.ts.map +0 -1
  217. /package/cjs/components/Breadcrumbs/utils/{getShortItems.css → index.css} +0 -0
  218. /package/es/components/Breadcrumbs/utils/{getShortItems.css → index.css} +0 -0
@@ -13,6 +13,8 @@ import { config } from './TextArea.config';
13
13
  import { TextArea } from './TextArea';
14
14
 
15
15
  const labelPlacements = ['inner', 'outer'];
16
+ const sizes = ['xs', 's', 'm', 'l'];
17
+ const views = ['default', 'positive', 'warning', 'negative'];
16
18
  const hintViews = ['default'];
17
19
  const hintSizes = ['m', 's'];
18
20
  const hintTriggers = ['hover', 'click'];
@@ -67,22 +69,23 @@ const meta: Meta<StoryTextAreaProps> = {
67
69
  },
68
70
  if: { arg: 'required', truthy: false },
69
71
  },
70
- rows: {
72
+ size: {
73
+ options: sizes,
74
+ defaultValue: 'm',
71
75
  control: {
72
- type: 'number',
76
+ type: 'select',
73
77
  },
74
- if: { arg: 'clear', truthy: false },
75
78
  },
76
- cols: {
79
+ view: {
80
+ options: views,
77
81
  control: {
78
- type: 'number',
82
+ type: 'select',
79
83
  },
80
- if: { arg: 'clear', truthy: false },
81
84
  },
82
85
  labelPlacement: {
83
86
  options: labelPlacements,
84
87
  control: {
85
- type: 'inline-radio',
88
+ type: 'select',
86
89
  },
87
90
  },
88
91
  hasDivider: {
@@ -91,6 +94,23 @@ const meta: Meta<StoryTextAreaProps> = {
91
94
  },
92
95
  if: { arg: 'clear', truthy: true },
93
96
  },
97
+ cols: {
98
+ control: {
99
+ type: 'number',
100
+ },
101
+ if: { arg: 'clear', truthy: false },
102
+ },
103
+ rows: {
104
+ control: {
105
+ type: 'number',
106
+ },
107
+ if: { arg: 'clear', truthy: false },
108
+ },
109
+ hasHint: {
110
+ control: {
111
+ type: 'boolean',
112
+ },
113
+ },
94
114
  hintText: {
95
115
  control: { type: 'text' },
96
116
  if: { arg: 'hasHint', truthy: true },
@@ -132,7 +152,50 @@ const meta: Meta<StoryTextAreaProps> = {
132
152
  control: { type: 'text' },
133
153
  if: { arg: 'hasHint', truthy: true },
134
154
  },
135
- ...disableProps(['leftHelperPlacement']),
155
+ helperText: {
156
+ control: { type: 'text' },
157
+ },
158
+ width: {
159
+ control: { type: 'text' },
160
+ },
161
+ height: {
162
+ control: { type: 'text' },
163
+ },
164
+ leftHelper: {
165
+ control: { type: 'text' },
166
+ },
167
+ titleCaption: {
168
+ control: { type: 'text' },
169
+ },
170
+ rightHelper: {
171
+ control: { type: 'text' },
172
+ },
173
+ ...disableProps([
174
+ 'helperBlock',
175
+ '$isFocused',
176
+ 'contentRight',
177
+ 'autoComplete',
178
+ 'autoFocus',
179
+ 'dirName',
180
+ 'form',
181
+ 'minLength',
182
+ 'maxLength',
183
+ 'name',
184
+ 'value',
185
+ 'wrap',
186
+ 'theme',
187
+ 'as',
188
+ 'forwardedAs',
189
+ 'onChange',
190
+ 'onFocus',
191
+ 'onBlur',
192
+ 'leftHelperPlacement',
193
+ 'status',
194
+ 'hintTargetIcon',
195
+ 'hintOffset',
196
+ 'hintContentLeft',
197
+ 'hintView',
198
+ ]),
136
199
  },
137
200
  args: {
138
201
  id: 'example-textarea',
@@ -13,6 +13,7 @@ import { config } from './TextArea.config';
13
13
  import { TextArea } from './TextArea';
14
14
 
15
15
  const labelPlacements = ['inner', 'outer'];
16
+ const sizes = ['xs', 's', 'm', 'l'];
16
17
  const hintViews = ['default'];
17
18
  const hintSizes = ['m', 's'];
18
19
  const hintTriggers = ['hover', 'click'];
@@ -67,17 +68,18 @@ const meta: Meta<StoryTextAreaProps> = {
67
68
  },
68
69
  if: { arg: 'required', truthy: false },
69
70
  },
70
- rows: {
71
+ size: {
72
+ options: sizes,
73
+ defaultValue: 'm',
71
74
  control: {
72
- type: 'number',
75
+ type: 'select',
73
76
  },
74
- if: { arg: 'clear', truthy: false },
75
77
  },
76
- cols: {
78
+ view: {
79
+ options: views,
77
80
  control: {
78
- type: 'number',
81
+ type: 'select',
79
82
  },
80
- if: { arg: 'clear', truthy: false },
81
83
  },
82
84
  labelPlacement: {
83
85
  options: labelPlacements,
@@ -91,6 +93,23 @@ const meta: Meta<StoryTextAreaProps> = {
91
93
  },
92
94
  if: { arg: 'clear', truthy: true },
93
95
  },
96
+ cols: {
97
+ control: {
98
+ type: 'number',
99
+ },
100
+ if: { arg: 'clear', truthy: false },
101
+ },
102
+ rows: {
103
+ control: {
104
+ type: 'number',
105
+ },
106
+ if: { arg: 'clear', truthy: false },
107
+ },
108
+ hasHint: {
109
+ control: {
110
+ type: 'boolean',
111
+ },
112
+ },
94
113
  hintText: {
95
114
  control: { type: 'text' },
96
115
  if: { arg: 'hasHint', truthy: true },
@@ -132,7 +151,50 @@ const meta: Meta<StoryTextAreaProps> = {
132
151
  control: { type: 'text' },
133
152
  if: { arg: 'hasHint', truthy: true },
134
153
  },
135
- ...disableProps(['leftHelperPlacement']),
154
+ helperText: {
155
+ control: { type: 'text' },
156
+ },
157
+ width: {
158
+ control: { type: 'text' },
159
+ },
160
+ height: {
161
+ control: { type: 'text' },
162
+ },
163
+ leftHelper: {
164
+ control: { type: 'text' },
165
+ },
166
+ titleCaption: {
167
+ control: { type: 'text' },
168
+ },
169
+ rightHelper: {
170
+ control: { type: 'text' },
171
+ },
172
+ ...disableProps([
173
+ 'helperBlock',
174
+ '$isFocused',
175
+ 'contentRight',
176
+ 'autoComplete',
177
+ 'autoFocus',
178
+ 'dirName',
179
+ 'form',
180
+ 'minLength',
181
+ 'maxLength',
182
+ 'name',
183
+ 'value',
184
+ 'wrap',
185
+ 'theme',
186
+ 'as',
187
+ 'forwardedAs',
188
+ 'onChange',
189
+ 'onFocus',
190
+ 'onBlur',
191
+ 'leftHelperPlacement',
192
+ 'status',
193
+ 'hintTargetIcon',
194
+ 'hintOffset',
195
+ 'hintContentLeft',
196
+ 'hintView',
197
+ ]),
136
198
  },
137
199
  args: {
138
200
  id: 'example-textarea',
@@ -3,8 +3,7 @@ import { cx } from '../../utils';
3
3
  import { base as sizeCSS } from './variations/_size/base';
4
4
  import { base as viewCSS } from './variations/_view/base';
5
5
  import { base, Separator } from './Breadcrumbs.styles';
6
- import { addSeparator, convertIconSize } from './utils';
7
- import { getRenderItems } from './utils/getShortItems';
6
+ import { addSeparator, convertIconSize, getRenderItems } from './utils';
8
7
  export var breadcrumbsRoot = function breadcrumbsRoot(Root) {
9
8
  return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
10
9
  var view = _ref.view,
@@ -1,3 +1,19 @@
1
+ import React from 'react';
2
+ import { BreadcrumbShorter } from '../ui/BreadcrumbShorter/BreadcrumbShorter';
3
+ import { StyledLink } from '../Breadcrumbs.styles';
4
+ export var shortItems = function shortItems(items, renderSeparator, showItems) {
5
+ if (!showItems || showItems < 2 || items.length <= showItems) {
6
+ return items;
7
+ }
8
+ var leftSlice = Math.floor(showItems / 2);
9
+ var rightSlice = items.length - leftSlice - showItems % 2;
10
+ var renderItems = items.slice(leftSlice, rightSlice);
11
+ var shorter = /*#__PURE__*/React.createElement(BreadcrumbShorter, {
12
+ separator: renderSeparator
13
+ }, renderItems);
14
+ items.splice(leftSlice, rightSlice - leftSlice, shorter);
15
+ return items;
16
+ };
1
17
  export var convertIconSize = function convertIconSize(size) {
2
18
  switch (size) {
3
19
  case 's':
@@ -7,6 +23,25 @@ export var convertIconSize = function convertIconSize(size) {
7
23
  return 's';
8
24
  }
9
25
  };
26
+ export var getRenderItems = function getRenderItems(items, renderSeparator, showItems) {
27
+ var renderItems = shortItems(items.map(function (item) {
28
+ if (item.renderItem) {
29
+ return item.renderItem();
30
+ }
31
+ var title = item.title,
32
+ disabled = item.disabled,
33
+ href = item.href,
34
+ onClick = item.onClick;
35
+ return /*#__PURE__*/React.createElement(StyledLink, {
36
+ tabIndex: 0,
37
+ href: href,
38
+ disabled: disabled,
39
+ onClick: onClick,
40
+ isHref: Boolean(href || onClick)
41
+ }, title);
42
+ }), renderSeparator, showItems);
43
+ return renderItems;
44
+ };
10
45
  export var addSeparator = function addSeparator(items, renderSeparator) {
11
46
  return items.flatMap(function (item, idx) {
12
47
  return idx < items.length - 1 ? [item, renderSeparator] : [item];
@@ -1,5 +1,5 @@
1
1
  import { CalendarState } from '../store/types';
2
- import { getPropsMap } from './calendarGridHelper';
2
+ import { getPropsMap } from '.';
3
3
  var dateOperationHandler = {
4
4
  Days: {
5
5
  add: function add(date) {
@@ -13,7 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
13
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
14
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
15
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
- import React, { forwardRef, useState, useReducer, useMemo, useLayoutEffect, useRef } from 'react';
16
+ import React, { forwardRef, useState, useReducer, useMemo, createContext, useLayoutEffect, useRef } from 'react';
17
17
  import { safeUseId, useForkRef } from '@salutejs/plasma-core';
18
18
  import { isEmpty } from '../../../utils';
19
19
  import { useOutsideClick } from '../../../hooks';
@@ -29,7 +29,7 @@ import { Ul, base, StyledArrow, IconArrowWrapper, StyledEmptyState } from './Com
29
29
  import { base as viewCSS } from './variations/_view/base';
30
30
  import { base as sizeCSS } from './variations/_size/base';
31
31
  import { SelectNative } from './ui/SelectNative/SelectNative';
32
- import { Context } from './Combobox.context';
32
+ export var Context = /*#__PURE__*/createContext({});
33
33
 
34
34
  /**
35
35
  * Поле ввода с выпадающим списком и возможностью фильтрации и выбора элементов.
@@ -8,7 +8,7 @@ import { sizeToIconSize, getItemId } from '../../../../utils';
8
8
  import { classes } from '../../../../Combobox.tokens';
9
9
  import { cx, isEmpty } from '../../../../../../../utils';
10
10
  import { IconDisclosureRightCentered, IconDone } from '../../../../../../_Icon';
11
- import { Context } from '../../../../Combobox.context';
11
+ import { Context } from '../../../../Combobox';
12
12
  import { useDidMountEffect } from '../../../../../../../hooks';
13
13
  import { StyledWrapper, StyledText, Wrapper, DisclosureIconWrapper, StyledCheckbox, IconWrapper, StyledIndicator, StyledCheckboxWrapper, StyledCell } from './Item.styles';
14
14
  export var Item = function Item(_ref) {
@@ -8,7 +8,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
8
8
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { forwardRef, useReducer, useRef } from 'react';
11
+ import React, { createContext, forwardRef, useReducer, useRef } from 'react';
12
12
  import { safeUseId } from '@salutejs/plasma-core';
13
13
  import { cx } from '../../utils';
14
14
  import { useOutsideClick } from '../../hooks';
@@ -23,7 +23,7 @@ import { classes } from './Dropdown.tokens';
23
23
  import { useKeyNavigation } from './hooks/useKeyboardNavigation';
24
24
  import { useHashMaps } from './hooks/useHashMaps';
25
25
  import { FloatingPopover } from './FloatingPopover';
26
- import { Context } from './Dropdown.context';
26
+ export var Context = /*#__PURE__*/createContext({});
27
27
 
28
28
  /**
29
29
  * Выпадающий список.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { safeUseId } from '@salutejs/plasma-core';
3
- import { DropdownItem } from '../DropdownItem/DropdownItem';
3
+ import { DropdownItem } from '..';
4
4
  import { Ul } from '../../Dropdown.styles';
5
5
  import { FloatingPopover } from '../../FloatingPopover';
6
6
  var DropdownInner = function DropdownInner(_ref) {
@@ -6,7 +6,7 @@ import React, { useEffect, useRef, useContext } from 'react';
6
6
  import { classes } from '../../Dropdown.tokens';
7
7
  import { cx } from '../../../../utils';
8
8
  import { IconDisclosureRight } from '../../../_Icon';
9
- import { Context } from '../../Dropdown.context';
9
+ import { Context } from '../../Dropdown';
10
10
  import { getItemId } from '../../utils';
11
11
  import { Wrapper, DisclosureIconWrapper, Divider, CellWrapper, StyledCell, RenderItemWrapper } from './DropdownItem.styles';
12
12
  export var DropdownItem = function DropdownItem(_ref) {
@@ -9,7 +9,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
9
9
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
10
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
- import React, { forwardRef, useState, useReducer, useMemo, useLayoutEffect, useRef } from 'react';
12
+ import React, { forwardRef, useState, useReducer, useMemo, createContext, useLayoutEffect, useRef } from 'react';
13
13
  import { safeUseId } from '@salutejs/plasma-core';
14
14
  import { isEmpty } from '../../utils';
15
15
  import { useOutsideClick } from '../../hooks';
@@ -21,7 +21,7 @@ import { usePathMaps } from './hooks/usePathMaps';
21
21
  import { Ul, base } from './Select.styles';
22
22
  import { FloatingPopover } from './FloatingPopover';
23
23
  import { SelectNative } from './ui/SelectNative/SelectNative';
24
- import { Context } from './Select.context';
24
+ export var Context = /*#__PURE__*/createContext({});
25
25
 
26
26
  /**
27
27
  * Выпадающий список. Поддерживает выбор одного или нескольких значений.
@@ -3,7 +3,7 @@ import { safeUseId } from '@salutejs/plasma-core';
3
3
  import { isEmpty } from '../../../../utils';
4
4
  import { Ul } from '../../Select.styles';
5
5
  import { FloatingPopover } from '../../FloatingPopover';
6
- import { Item } from './ui/Item/Item';
6
+ import { Item } from './ui';
7
7
  export var Inner = function Inner(_ref) {
8
8
  var item = _ref.item,
9
9
  currentLevel = _ref.currentLevel,
@@ -8,7 +8,7 @@ import { sizeToIconSize, getItemId } from '../../../../utils';
8
8
  import { classes } from '../../../../Select.tokens';
9
9
  import { cx, isEmpty } from '../../../../../../utils';
10
10
  import { IconDisclosureRightCentered, IconDone } from '../../../../../_Icon';
11
- import { Context } from '../../../../Select.context';
11
+ import { Context } from '../../../../Select';
12
12
  import { useDidMountEffect } from '../../../../../../hooks';
13
13
  import { StyledWrapper, StyledCell, StyledCheckbox, StyledIndicator, DisclosureIconWrapper, IconWrapper, StyledText, Wrapper, StyledCheckboxWrapper } from './Item.styles';
14
14
  export var Item = function Item(_ref) {
@@ -6,7 +6,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
6
6
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
7
7
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
8
  import React, { useState, useCallback } from 'react';
9
- import { DoubleSlider } from '../Double/Double';
9
+ import { DoubleSlider } from '../index';
10
10
  export var DoubleUncontrolled = function DoubleUncontrolled(props) {
11
11
  var defaultValue = props.defaultValue,
12
12
  min = props.min,
@@ -18,7 +18,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
18
18
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
19
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
20
20
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
21
- import React, { forwardRef, useState, createRef, useCallback, useRef } from 'react';
21
+ import React, { forwardRef, useState, createRef, useCallback, useRef, useLayoutEffect } from 'react';
22
22
  import { css } from '@emotion/react';
23
23
  import { useForkRef, useResizeObserver } from '@salutejs/plasma-core';
24
24
  import { cx, mergeRefs } from '../../utils';
@@ -43,7 +43,7 @@ var innerPlaceholderUp = classes.innerPlaceholderUp,
43
43
  styledPlaceholder = classes.styledPlaceholder,
44
44
  styledHelpers = classes.styledHelpers;
45
45
  var optionalText = 'optional';
46
- var base = /*#__PURE__*/css(applyDynamicLabel, ";position:relative;box-sizing:border-box;;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVGV4dEFyZWEvVGV4dEFyZWEudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EZ0IiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9UZXh0QXJlYS9UZXh0QXJlYS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgZm9yd2FyZFJlZiwgdXNlU3RhdGUsIGNyZWF0ZVJlZiwgdXNlQ2FsbGJhY2ssIHVzZVJlZiwgTW91c2VFdmVudEhhbmRsZXIgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyB1c2VGb3JrUmVmLCB1c2VSZ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aXplID09PSAneHMnICYmIHZhbHVlKVxuICAgICAgICAgICAgPyBoaWRlUGxhY2VIb2xkZXJcbiAgICAgICAgICAgIDogdW5kZWZpbmVkO1xuXG4gICAgcmV0dXJuIFt3aXRoRm9jdXNlZE91dGVyVXBQbGFjZWhvbGRlciwgd2l0aElubmVyUGxhY2Vob2xkZXJVcCwgd2l0aEhpZGVQbGFjZWhvbGRlcl07XG59O1xuXG5leHBvcnQgY29uc3QgdGV4dEFyZWFSb290ID0gKFJvb3Q6IFJvb3RQcm9wczxIVE1MVGV4dEFyZWFFbGVtZW50LCBUZXh0QXJlYVJvb3RQcm9wcz4pID0+XG4gICAgZm9yd2FyZFJlZjxIVE1MVGV4dEFyZWFFbGVtZW50LCBUZXh0QXJlYVByb3BzPigocHJvcHMsIGlubmVyUmVmKSA9PiB7XG4gICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgIGhlbHBlclRleHQsXG4gICAgICAgICAgICBzdGF0dXMsXG4gICAgICAgICAgICByZXNpemUsXG4gICAgICAgICAgICByaWdodEhlbHBlcixcbiAgICAgICAgICAgIGxlZnRIZWxwZXIsXG4gICAgICAgICAgICBsZWZ0SGVscGVyUGxhY2VtZW50ID0gJ2lubmVyJyxcbiAgICAgICAgICAgIGNvbnRlbnRSaWdodCxcbiAgICAgICAgICAgIGF1dG9SZXNpemUgPSBmYWxzZSxcbiAgICAgICAgICAgIG1pbkF1dG8gPSAwLFxuICAgICAgICAgICAgbWF4QXV0byxcbiAgICAgICAgICAgIGxhYmVsLFxuICAgICAgICAgICAgbGFiZWxQbGFjZW1lbnQgPSAnaW5uZXInLFxuICAgICAgICAgICAgdGl0bGVDYXB0aW9uLFxuICAgICAgICAgICAgcGxhY2Vob2xkZXIsXG4gICAgICAgICAgICBkZWZhdWx0VmFsdWUsXG4gICAgICAgICAgICBoZWlnaHQsXG4gICAgICAgICAgICB3aWR0aCxcbiAgICAgICAgICAgIHZhbHVlLFxuICAgICAgICAgICAgZGlzYWJsZWQsXG4gICAgICAgICAgICByZXF1aXJlZCA9IGZhbHNlLFxuICAgICAgICAgICAgcmVxdWlyZWRQbGFjZW1lbnQgPSAncmlnaHQnLFxuICAgICAgICAgICAgb3B0aW9uYWwgPSBmYWxzZSxcbiAgICAgICAgICAgIGNsZWFyLFxuICAgICAgICAgICAgaGFzRGl2aWRlcixcbiAgICAgICAgICAgIHNpemUsXG4gICAgICAgICAgICB2aWV3LFxuICAgICAgICAgICAgaWQsXG4gICAgICAgICAgICBzdHlsZSxcbiAgICAgICAgICAgIGNsYXNzTmFtZSxcbiAgICAgICAgICAgIHJlYWRPbmx5LFxuICAgICAgICAgICAgcm93cyxcbiAgICAgICAgICAgIGNvbHMsXG4gICAgICAgICAgICBoaW50VHJpZ2dlciA9ICdob3ZlcicsXG4gICAgICAgICAgICBoaW50VGV4dCxcbiAgICAgICAgICAgIGhpbnRWaWV3ID0gJ2RlZmF1bHQnLFxuICAgICAgICAgICAgaGludFNpemUgPSAnbScsXG4gICAgICAgICAgICBoaW50VGFyZ2V0SWNvbixcbiAgICAgICAgICAgIGhpbnRQbGFjZW1lbnQgPSAnYXV0bycsXG4gICAgICAgICAgICBoaW50SGFzQXJyb3csXG4gICAgICAgICAgICBoaW50T2Zmc2V0ID0gSElOVF9ERUZBVUxUX09GRlNFVCxcbiAgICAgICAgICAgIGhpbnRXaWR0aCxcbiAgICAgICAgICAgIGhpbnRDb250ZW50TGVmdCxcbiAgICAgICAgICAgIG9uQ2hhbmdlLFxuICAgICAgICAgICAgLi4ucmVzdFxuICAgICAgICB9ID0gcHJvcHM7XG5cbiAgICAgICAgY29uc3QgW2lzSGludFZpc2libGUsIHNldElzSGludFZpc2libGVdID0gdXNlU3RhdGUoZmFsc2UpO1xuICAgICAgICBjb25zdCBbaGVscGVyV2lkdGgsIHNldEhlbHBlcldpZHRoXSA9IHVzZVN0YXRlPHN0cmluZz4od2lkdGggPyBgJHt3aWR0aH1yZW1gIDogJzEwMCUnKTtcbiAgICAgICAgY29uc3QgW2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soKCkgPT4ge1xuICAgICAgICAgICAgc2V0Rm9jdXNlZChmYWxzZSk7XG4gICAgICAgIH0sIFtdKTtcblxuICAgICAgICBjb25zdCBvbkNoYW5nZUhhbmRsZXIgPSB1c2VDYWxsYmFjayhcbiAgICAgICAgICAgIChldmVudDogUmVhY3QuQ2hhbmdlRXZlbnQ8SFRNTFRleHRBcmVhRWxlbWVudD4pID0+IHtcbiAgICAgICAgICAgICAgICAvLyBJTkZPOiDQlNC70Y8g0LrRgNCw0LnQvdC1INGA0LXQtNC60LjRhSDQutC10LnRgdC+0LIsINC60L7Qs9C00LAgdmFsdWUg0YHQvdCw0YDRg9C20Lgg0L3QtSDQutC+0L3RgtGA0L7Qu9C40YDRg9C10YLRgdGPXG4gICAgICAgICAgICAgICAgaWYgKHZhbHVlID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgc2V0VW5jb250cm9sbGVkVmFsdWUoZXZlbnQ/LnRhcmdldC52YWx1ZSk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgb25DaGFuZ2U/LihldmVudCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW3ZhbHVlLCBvbkNoYW5nZV0sXG4gICAgICAgICk7XG5cbiAgICAgICAgY29uc3QgaGFuZGxlVGV4dEFyZWFGb2N1cyA9ICgpID0+IHtcbiAgICAgICAgICAgIGlmIChyZWFkT25seSB8fCBkaXNhYmxlZCB8fCAhb3V0ZXJSZWY/LmN1cnJlbnQpIHtcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIG91dGVyUmVmLmN1cnJlbnQuZm9jdXMoKTtcbiAgICAgICAgfTtcblxuICAgICAgICBjb25zdCBkeW5hbWljTGFiZWxDbGFzc2VzID0gZ2V0RHluYW1pY0xhYmVsQ2xhc3NlcyhcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBzaXplLFxuICAgICAgICAgICAgICAgIHJlYWRPbmx5LFxuICAgICAgICAgICAgICAgIGxhYmVsLFxuICAgICAgICAgICAgICAgIGxhYmVsUGxhY2VtZW50LFxuICAgICAgICAgICAgICAgIHZhbHVlOiB2YWx1ZSB8fCB1bmNvbnRyb2xsZWRWYWx1ZSB8fCBkZWZhdWx0VmFsdWUsXG4gICAgICAgICAgICAgICAgcm93cyxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBmb2N1c2VkLFxuICAgICAgICApO1xuXG4gICAgICAgIGNvbnN0IG9wdGlvbmFsVGV4dE5vZGUgPSBpbm5lck9wdGlvbmFsID8gKFxuICAgICAgICAgICAgPFN0eWxlZE9wdGlvbmFsVGV4dCBpbmhlcml0Rm9udD17IWhhc091dGVyTGFiZWx9PlxuICAgICAgICAgICAgICAgIHtCb29sZWFuKGhhc1BsYWNlaG9sZGVyT3B0aW9uYWwgPyBwbGFjZWhvbGRlckxhYmVsIDogbGFiZWwpICYmICdcXHhhMCd9XG4gICAgICAgICAgICAgICAge29wdGlvbmFsVGV4dH1cbiAgICAgICAgICAgIDwvU3R5bGVkT3B0aW9uYWxUZXh0PlxuICAgICAgICApIDogbnVsbDtcblxuICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgPFJvb3RcbiAgICAgICAgICAgICAgICB2aWV3PXtvdmVycmlkZGVuVmlld31cbiAgICAgICAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgICAgICByZWFkT25seT17cmVhZE9ubHl9XG4gICAgICAgICAgICAgICAgY2xlYXI9e2NsZWFyfVxuICAgICAgICAgICAgICAgIHN0eWxlPXt7IHdpZHRoOiBoZWxwZXJXaWR0aCwgLi4uc3R5bGUgfX1cbiAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KGNsZWFyQ2xhc3MsIGhhc0RpdmlkZXJDbGFzcywgaGFzSGludENsYXNzLCBjbGFzc05hbWUpfVxuICAgICAgICAgICAgICAgIG9uQ2xpY2s9e2hhbmRsZVRleHRBcmVhRm9jdXN9XG4gICAgICAgICAgICAgICAgey4uLihoaW50VGV4dCAmJiB7IGhpbnRWaWV3LCBoaW50U2l6ZSB9KX1cbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICB7KGhhc091dGVyTGFiZWwgfHwgdGl0bGVDYXB0aW9uKSAmJiAoXG4gICAgICAgICAgICAgICAgICAgIDxPdXRlckxhYmVsV3JhcHBlciBpc0lubmVyTGFiZWw9e2xhYmVsUGxhY2VtZW50ID09PSAnaW5uZXInfT5cbiAgICAgICAgICAgICAgICAgICAgICAgIHtoYXNPdXRlckxhYmVsICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkSW5kaWNhdG9yV3JhcHBlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZExhYmVsPntsYWJlbH08L1N0eWxlZExhYmVsPlxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtoaW50VGV4dCAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkSGludFdyYXBwZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPEhpbnRDb21wb25lbnRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmPXtoaW50Rm9ya1JlZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludFRleHQ9e2hpbnRUZXh0fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50VHJpZ2dlcj17aGludFRyaWdnZXJ9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlzSGludFZpc2libGU9e2lzSGludFZpc2libGV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpbnRUYXJnZXRJY29uPXtoaW50VGFyZ2V0SWNvbn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludFBsYWNlbWVudD17aGludFBsYWNlbWVudH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludEhhc0Fycm93PXtoaW50SGFzQXJyb3d9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpbnRPZmZzZXQ9e2hpbnRPZmZzZXR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpbnRXaWR0aD17aGludFdpZHRofVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50Q29udGVudExlZnQ9e2hpbnRDb250ZW50TGVmdH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFuZGxlSGludFNob3c9e2hhbmRsZUhpbnRTaG93fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYW5kbGVIaW50SGlkZT17aGFuZGxlSGludEhpZGV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhbmRsZUhpbnRDbGljaz17aGFuZGxlSGludENsaWNrfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L1N0eWxlZEhpbnRXcmFwcGVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7cmVxdWlyZWQgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZEluZGljYXRvclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17Y3goXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzZXMub3V0ZXJMYWJlbFBsYWNlbWVudCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVxdWlyZWRQbGFjZW1lbnRDbGFzcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFzSGludENsYXNzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7b3B0aW9uYWxUZXh0Tm9kZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L1N0eWxlZEluZGljYXRvcldyYXBwZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAge3RpdGxlQ2FwdGlvbiAmJiA8VGl0bGVDYXB0aW9uPnt0aXRsZUNhcHRpb259PC9UaXRsZUNhcHRpb24+fVxuICAgICAgICAgICAgICAgICAgICA8L091dGVyTGFiZWxXcmFwcGVyPlxuICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgPFN0eWxlZENvbnRhaW5lclxuICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KHN0eWxlZENvbnRhaW5lciwgLi4uZHluYW1pY0xhYmVsQ2xhc3Nlcyl9XG4gICAgICAgICAgICAgICAgICAgIHdpZHRoPXtoZWxwZXJXaWR0aH1cbiAgICAgICAgICAgICAgICAgICAgb25Gb2N1cz17b25Gb2N1c0hhbmRsZXJ9XG4gICAgICAgICAgICAgICAgICAgIG9uQmx1cj17b25CbHVySGFuZGxlcn1cbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIHshaGFzT3V0ZXJMYWJlbCAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtyZXF1aXJlZCAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxTdHlsZWRJbmRpY2F0b3IgY2xhc3NOYW1lPXtjeChjbGFzc2VzLmlubmVyTGFiZWxQbGFjZW1lbnQsIHJlcXVpcmVkUGxhY2VtZW50Q2xhc3MpfSAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge2hpbnRUZXh0ICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZEhpbnRXcmFwcGVyIGNsYXNzTmFtZT17Y2xhc3Nlcy5pbm5lckxhYmVsUGxhY2VtZW50fT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxIaW50Q29tcG9uZW50XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmPXtoaW50Rm9ya1JlZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50VGV4dD17aGludFRleHR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludFRyaWdnZXI9e2hpbnRUcmlnZ2VyfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlzSGludFZpc2libGU9e2lzSGludFZpc2libGV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludFRhcmdldEljb249e2hpbnRUYXJnZXRJY29ufVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpbnRQbGFjZW1lbnQ9e2hpbnRQbGFjZW1lbnR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludEhhc0Fycm93PXtoaW50SGFzQXJyb3d9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludE9mZnNldD17aGludE9mZnNldH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50V2lkdGg9e2hpbnRXaWR0aH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50Q29udGVudExlZnQ9e2hpbnRDb250ZW50TGVmdH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYW5kbGVIaW50U2hvdz17aGFuZGxlSGludFNob3d9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFuZGxlSGludEhpZGU9e2hhbmRsZUhpbnRIaWRlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhbmRsZUhpbnRDbGljaz17aGFuZGxlSGludENsaWNrfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRIaW50V3JhcHBlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgPC8+XG4gICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgIHtjb250ZW50UmlnaHQgJiYgPFN0eWxlZENvbnRlbnQ+e2NvbnRlbnRSaWdodH08L1N0eWxlZENvbnRlbnQ+fVxuICAgICAgICAgICAgICAgICAgICA8U3R5bGVkVGV4dEFyZWFXcmFwcGVyIGNsYXNzTmFtZT17Y3goc3R5bGVkVGV4dEFyZWFXcmFwcGVyKX0gaGFzSGVscGVyPXtoYXNIZWxwZXJ9PlxuICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZFRleHRBcmVhXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3NOYW1lPXtjeChzdHlsZWRUZXh0QXJlYSwgaGFzUmlnaHRDb250ZW50Q2xhc3MpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkPXtpZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYXNDb250ZW50UmlnaHQ9e0Jvb2xlYW4oY29udGVudFJpZ2h0KX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYXNIZWxwZXI9e2hhc0hlbHBlcn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhcHBseUN1c3RvbVdpZHRoPXthcHBseUN1c3RvbVdpZHRofVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZj17bWVyZ2VSZWZzKG91dGVyUmVmLCBpbm5lclJlZil9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlzYWJsZWQ9e2Rpc2FibGVkfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhlaWdodD17YXBwbHlBdXRvUmVzaXplID8gbWluQXV0byA6IGhlaWdodH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aWR0aD17d2lkdGh9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxhY2Vob2xkZXI9e3BsYWNlaG9sZGVyTGFiZWx9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYXJpYS1kZXNjcmliZWRieT17dGV4dGFyZWFIZWxwZXJJZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZT17dmFsdWV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVhZE9ubHk9e3JlYWRPbmx5fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvd3M9e3Jvd3N9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29scz17Y29sc31cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXNpemU9e3Jlc2l6ZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWZhdWx0VmFsdWU9e2RlZmF1bHRWYWx1ZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbkNoYW5nZT17b25DaGFuZ2VIYW5kbGVyfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgIHthcHBseUF1dG9SZXNpemUgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxTdHlsZWRIaWRkZW5UZXh0QXJlYVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhcmlhLWhpZGRlblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWY9e2hpZGRlblJlZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFzQ29udGVudFJpZ2h0PXtCb29sZWFuKGNvbnRlbnRSaWdodCl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlPXt2YWx1ZSB8fCB1bmNvbnRyb2xsZWRWYWx1ZSB8fCAnICd9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlZmF1bHRWYWx1ZT17ZGVmYXVsdFZhbHVlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICA8L1N0eWxlZFRleHRBcmVhV3JhcHBlcj5cbiAgICAgICAgICAgICAgICAgICAge2hhc0hlbHBlciAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkSGVscGVycyBjbGFzc05hbWU9e3N0eWxlZEhlbHBlcnN9IGlkPXt0ZXh0YXJlYUhlbHBlcklkfT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7aXNJbm5lckxlZnRIZWxwZXJQbGFjZW1lbnQgJiYgKGxlZnRIZWxwZXIgfHwgaGVscGVyVGV4dCkgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkTGVmdEhlbHBlcj57bGVmdEhlbHBlciB8fCBoZWxwZXJUZXh0fTwvU3R5bGVkTGVmdEhlbHBlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtyaWdodEhlbHBlciAmJiA8U3R5bGVkUmlnaHRIZWxwZXI+e3JpZ2h0SGVscGVyfTwvU3R5bGVkUmlnaHRIZWxwZXI+fVxuICAgICAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRIZWxwZXJzPlxuICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICB7cGxhY2Vob2xkZXJMYWJlbCAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkUGxhY2Vob2xkZXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYXNDb250ZW50UmlnaHQ9e0Jvb2xlYW4oY29udGVudFJpZ2h0KX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e3N0eWxlZFBsYWNlaG9sZGVyfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGh0bWxGb3I9e2lkfVxuICAgICAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtwbGFjZWhvbGRlckxhYmVsfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHshaGFzT3V0ZXJMYWJlbCAmJiBvcHRpb25hbFRleHROb2RlfVxuICAgICAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRQbGFjZWhvbGRlcj5cbiAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICA8L1N0eWxlZENvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICB7aGFzTGVmdEhlbHBlciAmJiAhaXNJbm5lckxlZnRIZWxwZXJQbGFjZW1lbnQgJiYgKFxuICAgICAgICAgICAgICAgICAgICA8U3R5bGVkT3V0c2lkZUhlbHBlcnNXcmFwcGVyIGlkPXt0ZXh0YXJlYUhlbHBlcklkfT5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxTdHlsZWRMZWZ0SGVscGVyPntsZWZ0SGVscGVyVGV4dH08L1N0eWxlZExlZnRIZWxwZXI+XG4gICAgICAgICAgICAgICAgICAgIDwvU3R5bGVkT3V0c2lkZUhlbHBlcnNXcmFwcGVyPlxuICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICA8L1Jvb3Q+XG4gICAgICAgICk7XG4gICAgfSk7XG5cbmV4cG9ydCBjb25zdCB0ZXh0QXJlYUNvbmZpZyA9IHtcbiAgICBuYW1lOiAnVGV4dEFyZWEnLFxuICAgIHRhZzogJ2RpdicsXG4gICAgbGF5b3V0OiB0ZXh0QXJlYVJvb3QsXG4gICAgYmFzZSxcbiAgICB2YXJpYXRpb25zOiB7XG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIGNzczogc2l6ZUNTUyxcbiAgICAgICAgfSxcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgY3NzOiB2aWV3Q1NTLFxuICAgICAgICB9LFxuICAgICAgICBjbGVhcjoge1xuICAgICAgICAgICAgY3NzOiBjbGVhckNTUyxcbiAgICAgICAgICAgIGF0dHJzOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBkaXNhYmxlZDoge1xuICAgICAgICAgICAgY3NzOiBkaXNhYmxlZENTUyxcbiAgICAgICAgICAgIGF0dHJzOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICByZWFkT25seToge1xuICAgICAgICAgICAgYXR0cnM6IHRydWUsXG4gICAgICAgIH0sXG4gICAgICAgIGhpbnRWaWV3OiB7XG4gICAgICAgICAgICBjc3M6IGhpbnRWaWV3Q1NTLFxuICAgICAgICB9LFxuICAgICAgICBoaW50U2l6ZToge1xuICAgICAgICAgICAgY3NzOiBoaW50U2l6ZUNTUyxcbiAgICAgICAgfSxcbiAgICB9LFxuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHNpemU6ICdtJyxcbiAgICAgICAgdmlldzogJ3ByaW1hcnknLFxuICAgIH0sXG59O1xuIl19 */"));
46
+ var base = /*#__PURE__*/css(applyDynamicLabel, ";position:relative;box-sizing:border-box;;label:plasma-new-hope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c3Qge1xuICAgICAgICAgICAgaGVscGVyVGV4dCxcbiAgICAgICAgICAgIHN0YXR1cyxcbiAgICAgICAgICAgIHJlc2l6ZSxcbiAgICAgICAgICAgIHJpZ2h0SGVscGVyLFxuICAgICAgICAgICAgbGVmdEhlbHBlcixcbiAgICAgICAgICAgIGxlZnRIZWxwZXJQbGFjZW1lbnQgPSAnaW5uZXInLFxuICAgICAgICAgICAgY29udGVudFJpZ2h0LFxuICAgICAgICAgICAgYXV0b1Jlc2l6ZSA9IGZhbHNlLFxuICAgICAgICAgICAgbWluQXV0byA9IDAsXG4gICAgICAgICAgICBtYXhBdXRvLFxuICAgICAgICAgICAgbGFiZWwsXG4gICAgICAgICAgICBsYWJlbFBsYWNlbWVudCA9ICdpbm5lcicsXG4gICAgICAgICAgICB0aXRsZUNhcHRpb24sXG4gICAgICAgICAgICBwbGFjZWhvbGRlcixcbiAgICAgICAgICAgIGRlZmF1bHRWYWx1ZSxcbiAgICAgICAgICAgIGhlaWdodCxcbiAgICAgICAgICAgIHdpZHRoLFxuICAgICAgICAgICAgdmFsdWUsXG4gICAgICAgICAgICBkaXNhYmxlZCxcbiAgICAgICAgICAgIHJlcXVpcmVkID0gZmFsc2UsXG4gICAgICAgICAgICByZXF1aXJlZFBsYWNlbWVudCA9ICdyaWdodCcsXG4gICAgICAgICAgICBvcHRpb25hbCA9IGZhbHNlLFxuICAgICAgICAgICAgY2xlYXIsXG4gICAgICAgICAgICBoYXNEaXZpZGVyLFxuICAgICAgICAgICAgc2l6ZSxcbiAgICAgICAgICAgIHZpZXcsXG4gICAgICAgICAgICBpZCxcbiAgICAgICAgICAgIHN0eWxlLFxuICAgICAgICAgICAgY2xhc3NOYW1lLFxuICAgICAgICAgICAgcmVhZE9ubHksXG4gICAgICAgICAgICByb3dzLFxuICAgICAgICAgICAgY29scyxcbiAgICAgICAgICAgIGhpbnRUcmlnZ2VyID0gJ2hvdmVyJyxcbiAgICAgICAgICAgIGhpbnRUZXh0LFxuICAgICAgIC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WxlbWVudD4pID0+IHtcbiAgICAgICAgICAgICAgICAvLyBJTkZPOiDQlNC70Y8g0LrRgNCw0LnQvdC1INGA0LXQtNC60LjRhSDQutC10LnRgdC+0LIsINC60L7Qs9C00LAgdmFsdWUg0YHQvdCw0YDRg9C20Lgg0L3QtSDQutC+0L3RgtGA0L7Qu9C40YDRg9C10YLRgdGPXG4gICAgICAgICAgICAgICAgaWYgKHZhbHVlID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgc2V0VW5jb250cm9sbGVkVmFsdWUoZXZlbnQ/LnRhcmdldC52YWx1ZSk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgb25DaGFuZ2U/LihldmVudCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW3ZhbHVlLCBvbkNoYW5nZV0sXG4gICAgICAgICk7XG5cbiAgICAgICAgY29uc3QgaGFuZGxlVGV4dEFyZWFGb2N1cyA9ICgpID0+IHtcbiAgICAgICAgICAgIGlmIChyZWFkT25seSB8fCBkaXNhYmxlZCB8fCAhb3V0ZXJSZWY/LmN1cnJlbnQpIHtcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIG91dGVyUmVmLmN1cnJlbnQuZm9jdXMoKTtcbiAgICAgICAgfTtcblxuICAgICAgICBjb25zdCBkeW5hbWljTGFiZWxDbGFzc2VzID0gZ2V0RHluYW1pY0xhYmVsQ2xhc3NlcyhcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBzaXplLFxuICAgICAgICAgICAgICAgIHJlYWRPbmx5LFxuICAgICAgICAgICAgICAgIGxhYmVsLFxuICAgICAgICAgICAgICAgIGxhYmVsUGxhY2VtZW50LFxuICAgICAgICAgICAgICAgIHZhbHVlOiB2YWx1ZSB8fCB1bmNvbnRyb2xsZWRWYWx1ZSB8fCBkZWZhdWx0VmFsdWUsXG4gICAgICAgICAgICAgICAgcm93cyxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBmb2N1c2VkLFxuICAgICAgICApO1xuXG4gICAgICAgIGNvbnN0IG9wdGlvbmFsVGV4dE5vZGUgPSBpbm5lck9wdGlvbmFsID8gKFxuICAgICAgICAgICAgPFN0eWxlZE9wdGlvbmFsVGV4dCBpbmhlcml0Rm9udD17IWhhc091dGVyTGFiZWx9PlxuICAgICAgICAgICAgICAgIHtCb29sZWFuKGhhc1BsYWNlaG9sZGVyT3B0aW9uYWwgPyBwbGFjZWhvbGRlckxhYmVsIDogbGFiZWwpICYmICdcXHhhMCd9XG4gICAgICAgICAgICAgICAge29wdGlvbmFsVGV4dH1cbiAgICAgICAgICAgIDwvU3R5bGVkT3B0aW9uYWxUZXh0PlxuICAgICAgICApIDogbnVsbDtcblxuICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgPFJvb3RcbiAgICAgICAgICAgICAgICB2aWV3PXtvdmVycmlkZGVuVmlld31cbiAgICAgICAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgICAgICByZWFkT25seT17cmVhZE9ubHl9XG4gICAgICAgICAgICAgICAgY2xlYXI9e2NsZWFyfVxuICAgICAgICAgICAgICAgIHN0eWxlPXt7IHdpZHRoOiBoZWxwZXJXaWR0aCwgLi4uc3R5bGUgfX1cbiAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KGNsZWFyQ2xhc3MsIGhhc0RpdmlkZXJDbGFzcywgaGFzSGludENsYXNzLCBjbGFzc05hbWUpfVxuICAgICAgICAgICAgICAgIG9uQ2xpY2s9e2hhbmRsZVRleHRBcmVhRm9jdXN9XG4gICAgICAgICAgICAgICAgey4uLihoaW50VGV4dCAmJiB7IGhpbnRWaWV3LCBoaW50U2l6ZSB9KX1cbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICB7KGhhc091dGVyTGFiZWwgfHwgdGl0bGVDYXB0aW9uKSAmJiAoXG4gICAgICAgICAgICAgICAgICAgIDxPdXRlckxhYmVsV3JhcHBlciBpc0lubmVyTGFiZWw9e2xhYmVsUGxhY2VtZW50ID09PSAnaW5uZXInfT5cbiAgICAgICAgICAgICAgICAgICAgICAgIHtoYXNPdXRlckxhYmVsICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkSW5kaWNhdG9yV3JhcHBlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZExhYmVsPntsYWJlbH08L1N0eWxlZExhYmVsPlxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtoaW50VGV4dCAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkSGludFdyYXBwZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPEhpbnRDb21wb25lbnRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmPXtoaW50Rm9ya1JlZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludFRleHQ9e2hpbnRUZXh0fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50VHJpZ2dlcj17aGludFRyaWdnZXJ9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlzSGludFZpc2libGU9e2lzSGludFZpc2libGV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpbnRUYXJnZXRJY29uPXtoaW50VGFyZ2V0SWNvbn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludFBsYWNlbWVudD17aGludFBsYWNlbWVudH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludEhhc0Fycm93PXtoaW50SGFzQXJyb3d9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpbnRPZmZzZXQ9e2hpbnRPZmZzZXR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpbnRXaWR0aD17aGludFdpZHRofVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50Q29udGVudExlZnQ9e2hpbnRDb250ZW50TGVmdH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFuZGxlSGludFNob3c9e2hhbmRsZUhpbnRTaG93fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYW5kbGVIaW50SGlkZT17aGFuZGxlSGludEhpZGV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhbmRsZUhpbnRDbGljaz17aGFuZGxlSGludENsaWNrfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L1N0eWxlZEhpbnRXcmFwcGVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7cmVxdWlyZWQgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZEluZGljYXRvclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17Y3goXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzZXMub3V0ZXJMYWJlbFBsYWNlbWVudCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVxdWlyZWRQbGFjZW1lbnRDbGFzcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFzSGludENsYXNzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7b3B0aW9uYWxUZXh0Tm9kZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L1N0eWxlZEluZGljYXRvcldyYXBwZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAge3RpdGxlQ2FwdGlvbiAmJiA8VGl0bGVDYXB0aW9uPnt0aXRsZUNhcHRpb259PC9UaXRsZUNhcHRpb24+fVxuICAgICAgICAgICAgICAgICAgICA8L091dGVyTGFiZWxXcmFwcGVyPlxuICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgPFN0eWxlZENvbnRhaW5lclxuICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KHN0eWxlZENvbnRhaW5lciwgLi4uZHluYW1pY0xhYmVsQ2xhc3Nlcyl9XG4gICAgICAgICAgICAgICAgICAgIHdpZHRoPXtoZWxwZXJXaWR0aH1cbiAgICAgICAgICAgICAgICAgICAgb25Gb2N1cz17b25Gb2N1c0hhbmRsZXJ9XG4gICAgICAgICAgICAgICAgICAgIG9uQmx1cj17b25CbHVySGFuZGxlcn1cbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIHshaGFzT3V0ZXJMYWJlbCAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtyZXF1aXJlZCAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxTdHlsZWRJbmRpY2F0b3IgY2xhc3NOYW1lPXtjeChjbGFzc2VzLmlubmVyTGFiZWxQbGFjZW1lbnQsIHJlcXVpcmVkUGxhY2VtZW50Q2xhc3MpfSAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge2hpbnRUZXh0ICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZEhpbnRXcmFwcGVyIGNsYXNzTmFtZT17Y2xhc3Nlcy5pbm5lckxhYmVsUGxhY2VtZW50fT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxIaW50Q29tcG9uZW50XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmPXtoaW50Rm9ya1JlZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50VGV4dD17aGludFRleHR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludFRyaWdnZXI9e2hpbnRUcmlnZ2VyfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlzSGludFZpc2libGU9e2lzSGludFZpc2libGV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludFRhcmdldEljb249e2hpbnRUYXJnZXRJY29ufVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpbnRQbGFjZW1lbnQ9e2hpbnRQbGFjZW1lbnR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludEhhc0Fycm93PXtoaW50SGFzQXJyb3d9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludE9mZnNldD17aGludE9mZnNldH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50V2lkdGg9e2hpbnRXaWR0aH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50Q29udGVudExlZnQ9e2hpbnRDb250ZW50TGVmdH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYW5kbGVIaW50U2hvdz17aGFuZGxlSGludFNob3d9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFuZGxlSGludEhpZGU9e2hhbmRsZUhpbnRIaWRlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhbmRsZUhpbnRDbGljaz17aGFuZGxlSGludENsaWNrfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRIaW50V3JhcHBlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgPC8+XG4gICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgIHtjb250ZW50UmlnaHQgJiYgPFN0eWxlZENvbnRlbnQ+e2NvbnRlbnRSaWdodH08L1N0eWxlZENvbnRlbnQ+fVxuICAgICAgICAgICAgICAgICAgICA8U3R5bGVkVGV4dEFyZWFXcmFwcGVyIGNsYXNzTmFtZT17Y3goc3R5bGVkVGV4dEFyZWFXcmFwcGVyKX0gaGFzSGVscGVyPXtoYXNIZWxwZXJ9PlxuICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZFRleHRBcmVhXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3NOYW1lPXtjeChzdHlsZWRUZXh0QXJlYSwgaGFzUmlnaHRDb250ZW50Q2xhc3MpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkPXtpZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYXNDb250ZW50UmlnaHQ9e0Jvb2xlYW4oY29udGVudFJpZ2h0KX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYXNIZWxwZXI9e2hhc0hlbHBlcn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhcHBseUN1c3RvbVdpZHRoPXthcHBseUN1c3RvbVdpZHRofVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZj17bWVyZ2VSZWZzKG91dGVyUmVmLCBpbm5lclJlZil9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlzYWJsZWQ9e2Rpc2FibGVkfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlcXVpcmVkPXtyZXF1aXJlZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZWlnaHQ9e2FwcGx5QXV0b1Jlc2l6ZSA/IG1pbkF1dG8gOiBoZWlnaHR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGg9e3dpZHRofVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBsYWNlaG9sZGVyPXtwbGFjZWhvbGRlckxhYmVsfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFyaWEtZGVzY3JpYmVkYnk9e3RleHRhcmVhSGVscGVySWR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU9e3ZhbHVlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlYWRPbmx5PXtyZWFkT25seX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByb3dzPXtyb3dzfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbHM9e2NvbHN9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVzaXplPXtyZXNpemV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVmYXVsdFZhbHVlPXtkZWZhdWx0VmFsdWV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb25DaGFuZ2U9e29uQ2hhbmdlSGFuZGxlcn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7Li4ucmVzdH1cbiAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICB7YXBwbHlBdXRvUmVzaXplICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkSGlkZGVuVGV4dEFyZWFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXJpYS1oaWRkZW5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmPXtoaWRkZW5SZWZ9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhc0NvbnRlbnRSaWdodD17Qm9vbGVhbihjb250ZW50UmlnaHQpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZT17dmFsdWUgfHwgdW5jb250cm9sbGVkVmFsdWUgfHwgJyAnfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWZhdWx0VmFsdWU9e2RlZmF1bHRWYWx1ZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRUZXh0QXJlYVdyYXBwZXI+XG4gICAgICAgICAgICAgICAgICAgIHtoYXNIZWxwZXIgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZEhlbHBlcnMgY2xhc3NOYW1lPXtzdHlsZWRIZWxwZXJzfSBpZD17dGV4dGFyZWFIZWxwZXJJZH0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge2lzSW5uZXJMZWZ0SGVscGVyUGxhY2VtZW50ICYmIChsZWZ0SGVscGVyIHx8IGhlbHBlclRleHQpICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZExlZnRIZWxwZXI+e2xlZnRIZWxwZXIgfHwgaGVscGVyVGV4dH08L1N0eWxlZExlZnRIZWxwZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7cmlnaHRIZWxwZXIgJiYgPFN0eWxlZFJpZ2h0SGVscGVyPntyaWdodEhlbHBlcn08L1N0eWxlZFJpZ2h0SGVscGVyPn1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvU3R5bGVkSGVscGVycz5cbiAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAge3BsYWNlaG9sZGVyTGFiZWwgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZFBsYWNlaG9sZGVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFzQ29udGVudFJpZ2h0PXtCb29sZWFuKGNvbnRlbnRSaWdodCl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3NOYW1lPXtzdHlsZWRQbGFjZWhvbGRlcn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBodG1sRm9yPXtpZH1cbiAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7cGxhY2Vob2xkZXJMYWJlbH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IWhhc091dGVyTGFiZWwgJiYgb3B0aW9uYWxUZXh0Tm9kZX1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvU3R5bGVkUGxhY2Vob2xkZXI+XG4gICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgPC9TdHlsZWRDb250YWluZXI+XG4gICAgICAgICAgICAgICAge2hhc0xlZnRIZWxwZXIgJiYgIWlzSW5uZXJMZWZ0SGVscGVyUGxhY2VtZW50ICYmIChcbiAgICAgICAgICAgICAgICAgICAgPFN0eWxlZE91dHNpZGVIZWxwZXJzV3JhcHBlciBpZD17dGV4dGFyZWFIZWxwZXJJZH0+XG4gICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkTGVmdEhlbHBlcj57bGVmdEhlbHBlclRleHR9PC9TdHlsZWRMZWZ0SGVscGVyPlxuICAgICAgICAgICAgICAgICAgICA8L1N0eWxlZE91dHNpZGVIZWxwZXJzV3JhcHBlcj5cbiAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgPC9Sb290PlxuICAgICAgICApO1xuICAgIH0pO1xuXG5leHBvcnQgY29uc3QgdGV4dEFyZWFDb25maWcgPSB7XG4gICAgbmFtZTogJ1RleHRBcmVhJyxcbiAgICB0YWc6ICdkaXYnLFxuICAgIGxheW91dDogdGV4dEFyZWFSb290LFxuICAgIGJhc2UsXG4gICAgdmFyaWF0aW9uczoge1xuICAgICAgICBzaXplOiB7XG4gICAgICAgICAgICBjc3M6IHNpemVDU1MsXG4gICAgICAgIH0sXG4gICAgICAgIHZpZXc6IHtcbiAgICAgICAgICAgIGNzczogdmlld0NTUyxcbiAgICAgICAgfSxcbiAgICAgICAgY2xlYXI6IHtcbiAgICAgICAgICAgIGNzczogY2xlYXJDU1MsXG4gICAgICAgICAgICBhdHRyczogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgZGlzYWJsZWQ6IHtcbiAgICAgICAgICAgIGNzczogZGlzYWJsZWRDU1MsXG4gICAgICAgICAgICBhdHRyczogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgcmVhZE9ubHk6IHtcbiAgICAgICAgICAgIGF0dHJzOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBoaW50Vmlldzoge1xuICAgICAgICAgICAgY3NzOiBoaW50Vmlld0NTUyxcbiAgICAgICAgfSxcbiAgICAgICAgaGludFNpemU6IHtcbiAgICAgICAgICAgIGNzczogaGludFNpemVDU1MsXG4gICAgICAgIH0sXG4gICAgfSxcbiAgICBkZWZhdWx0czoge1xuICAgICAgICBzaXplOiAnbScsXG4gICAgICAgIHZpZXc6ICdwcmltYXJ5JyxcbiAgICB9LFxufTtcbiJdfQ== */"));
47
47
 
48
48
  // TODO: Удалить после отказа от старых библиотек plasma-web / plasma-b2c
49
49
  var fallbackStatusMap = {
@@ -192,6 +192,11 @@ export var textAreaRoot = function textAreaRoot(Root) {
192
192
  setIsHintVisible(true);
193
193
  }
194
194
  };
195
+ useLayoutEffect(function () {
196
+ if (outerRef.current) {
197
+ setUncontrolledValue(outerRef.current.value);
198
+ }
199
+ }, [outerRef]);
195
200
  useResizeObserver(outerRef, function (currentElement) {
196
201
  var inlineWidth = currentElement.style.width;
197
202
  if (inlineWidth || cols) {
@@ -297,6 +302,7 @@ export var textAreaRoot = function textAreaRoot(Root) {
297
302
  applyCustomWidth: applyCustomWidth,
298
303
  ref: mergeRefs(outerRef, innerRef),
299
304
  disabled: disabled,
305
+ required: required,
300
306
  height: applyAutoResize ? minAuto : height,
301
307
  width: width,
302
308
  placeholder: placeholderLabel,