@hexure/ui 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +126 -2079
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +127 -2080
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useContext, useState, useEffect, useRef } from 'react';
|
|
2
|
+
import styled, { ThemeContext, keyframes } from 'styled-components';
|
|
2
3
|
import Icon, { Icon as Icon$1 } from '@mdi/react';
|
|
3
4
|
import { mdiChevronUp, mdiChevronDown, mdiLoading, mdiInformationOutline, mdiAlertOctagonOutline, mdiAlertOutline, mdiCheckboxMarkedCircleOutline, mdiDotsHorizontal, mdiClose, mdiMinusCircle, mdiFolderPlusOutline, mdiChevronRight, mdiChevronLeft, mdiCheck } from '@mdi/js';
|
|
5
|
+
import dayjs from 'dayjs';
|
|
4
6
|
import Numeral from 'numeral';
|
|
5
7
|
import Moment from 'moment';
|
|
6
8
|
|
|
@@ -20,16 +22,6 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
20
22
|
***************************************************************************** */
|
|
21
23
|
/* global Reflect, Promise */
|
|
22
24
|
|
|
23
|
-
var __assign = function () {
|
|
24
|
-
__assign = Object.assign || function __assign(t) {
|
|
25
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
26
|
-
s = arguments[i];
|
|
27
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
28
|
-
}
|
|
29
|
-
return t;
|
|
30
|
-
};
|
|
31
|
-
return __assign.apply(this, arguments);
|
|
32
|
-
};
|
|
33
25
|
function __rest(s, e) {
|
|
34
26
|
var t = {};
|
|
35
27
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -38,1633 +30,6 @@ function __rest(s, e) {
|
|
|
38
30
|
}
|
|
39
31
|
return t;
|
|
40
32
|
}
|
|
41
|
-
function __spreadArray(to, from, pack) {
|
|
42
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
43
|
-
if (ar || !(i in from)) {
|
|
44
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
45
|
-
ar[i] = from[i];
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function memoize(fn) {
|
|
52
|
-
var cache = Object.create(null);
|
|
53
|
-
return function (arg) {
|
|
54
|
-
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
55
|
-
return cache[arg];
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
60
|
-
|
|
61
|
-
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
62
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
63
|
-
/* o */ && prop.charCodeAt(1) === 110
|
|
64
|
-
/* n */ && prop.charCodeAt(2) < 91;
|
|
65
|
-
}
|
|
66
|
-
/* Z+1 */);
|
|
67
|
-
|
|
68
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
69
|
-
|
|
70
|
-
function getDefaultExportFromCjs (x) {
|
|
71
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
var MS = '-ms-';
|
|
75
|
-
var MOZ = '-moz-';
|
|
76
|
-
var WEBKIT = '-webkit-';
|
|
77
|
-
var COMMENT = 'comm';
|
|
78
|
-
var RULESET = 'rule';
|
|
79
|
-
var DECLARATION = 'decl';
|
|
80
|
-
var IMPORT = '@import';
|
|
81
|
-
var KEYFRAMES = '@keyframes';
|
|
82
|
-
var LAYER = '@layer';
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @param {number}
|
|
86
|
-
* @return {number}
|
|
87
|
-
*/
|
|
88
|
-
var abs = Math.abs;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @param {number}
|
|
92
|
-
* @return {string}
|
|
93
|
-
*/
|
|
94
|
-
var from = String.fromCharCode;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @param {object}
|
|
98
|
-
* @return {object}
|
|
99
|
-
*/
|
|
100
|
-
var assign = Object.assign;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @param {string} value
|
|
104
|
-
* @param {number} length
|
|
105
|
-
* @return {number}
|
|
106
|
-
*/
|
|
107
|
-
function hash(value, length) {
|
|
108
|
-
return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* @param {string} value
|
|
113
|
-
* @return {string}
|
|
114
|
-
*/
|
|
115
|
-
function trim(value) {
|
|
116
|
-
return value.trim();
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @param {string} value
|
|
121
|
-
* @param {RegExp} pattern
|
|
122
|
-
* @return {string?}
|
|
123
|
-
*/
|
|
124
|
-
function match(value, pattern) {
|
|
125
|
-
return (value = pattern.exec(value)) ? value[0] : value;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* @param {string} value
|
|
130
|
-
* @param {(string|RegExp)} pattern
|
|
131
|
-
* @param {string} replacement
|
|
132
|
-
* @return {string}
|
|
133
|
-
*/
|
|
134
|
-
function replace(value, pattern, replacement) {
|
|
135
|
-
return value.replace(pattern, replacement);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* @param {string} value
|
|
140
|
-
* @param {string} search
|
|
141
|
-
* @param {number} position
|
|
142
|
-
* @return {number}
|
|
143
|
-
*/
|
|
144
|
-
function indexof(value, search, position) {
|
|
145
|
-
return value.indexOf(search, position);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @param {string} value
|
|
150
|
-
* @param {number} index
|
|
151
|
-
* @return {number}
|
|
152
|
-
*/
|
|
153
|
-
function charat(value, index) {
|
|
154
|
-
return value.charCodeAt(index) | 0;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* @param {string} value
|
|
159
|
-
* @param {number} begin
|
|
160
|
-
* @param {number} end
|
|
161
|
-
* @return {string}
|
|
162
|
-
*/
|
|
163
|
-
function substr(value, begin, end) {
|
|
164
|
-
return value.slice(begin, end);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* @param {string} value
|
|
169
|
-
* @return {number}
|
|
170
|
-
*/
|
|
171
|
-
function strlen(value) {
|
|
172
|
-
return value.length;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* @param {any[]} value
|
|
177
|
-
* @return {number}
|
|
178
|
-
*/
|
|
179
|
-
function sizeof(value) {
|
|
180
|
-
return value.length;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* @param {any} value
|
|
185
|
-
* @param {any[]} array
|
|
186
|
-
* @return {any}
|
|
187
|
-
*/
|
|
188
|
-
function append(value, array) {
|
|
189
|
-
return array.push(value), value;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* @param {string[]} array
|
|
194
|
-
* @param {function} callback
|
|
195
|
-
* @return {string}
|
|
196
|
-
*/
|
|
197
|
-
function combine(array, callback) {
|
|
198
|
-
return array.map(callback).join('');
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* @param {string[]} array
|
|
203
|
-
* @param {RegExp} pattern
|
|
204
|
-
* @return {string[]}
|
|
205
|
-
*/
|
|
206
|
-
function filter(array, pattern) {
|
|
207
|
-
return array.filter(function (value) {
|
|
208
|
-
return !match(value, pattern);
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
var line = 1;
|
|
213
|
-
var column = 1;
|
|
214
|
-
var length = 0;
|
|
215
|
-
var position = 0;
|
|
216
|
-
var character = 0;
|
|
217
|
-
var characters = '';
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* @param {string} value
|
|
221
|
-
* @param {object | null} root
|
|
222
|
-
* @param {object | null} parent
|
|
223
|
-
* @param {string} type
|
|
224
|
-
* @param {string[] | string} props
|
|
225
|
-
* @param {object[] | string} children
|
|
226
|
-
* @param {object[]} siblings
|
|
227
|
-
* @param {number} length
|
|
228
|
-
*/
|
|
229
|
-
function node(value, root, parent, type, props, children, length, siblings) {
|
|
230
|
-
return {
|
|
231
|
-
value: value,
|
|
232
|
-
root: root,
|
|
233
|
-
parent: parent,
|
|
234
|
-
type: type,
|
|
235
|
-
props: props,
|
|
236
|
-
children: children,
|
|
237
|
-
line: line,
|
|
238
|
-
column: column,
|
|
239
|
-
length: length,
|
|
240
|
-
return: '',
|
|
241
|
-
siblings: siblings
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* @param {object} root
|
|
247
|
-
* @param {object} props
|
|
248
|
-
* @return {object}
|
|
249
|
-
*/
|
|
250
|
-
function copy(root, props) {
|
|
251
|
-
return assign(node('', null, null, '', null, null, 0, root.siblings), root, {
|
|
252
|
-
length: -root.length
|
|
253
|
-
}, props);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* @param {object} root
|
|
258
|
-
*/
|
|
259
|
-
function lift(root) {
|
|
260
|
-
while (root.root) root = copy(root.root, {
|
|
261
|
-
children: [root]
|
|
262
|
-
});
|
|
263
|
-
append(root, root.siblings);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* @return {number}
|
|
268
|
-
*/
|
|
269
|
-
function char() {
|
|
270
|
-
return character;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* @return {number}
|
|
275
|
-
*/
|
|
276
|
-
function prev() {
|
|
277
|
-
character = position > 0 ? charat(characters, --position) : 0;
|
|
278
|
-
if (column--, character === 10) column = 1, line--;
|
|
279
|
-
return character;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* @return {number}
|
|
284
|
-
*/
|
|
285
|
-
function next() {
|
|
286
|
-
character = position < length ? charat(characters, position++) : 0;
|
|
287
|
-
if (column++, character === 10) column = 1, line++;
|
|
288
|
-
return character;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* @return {number}
|
|
293
|
-
*/
|
|
294
|
-
function peek() {
|
|
295
|
-
return charat(characters, position);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* @return {number}
|
|
300
|
-
*/
|
|
301
|
-
function caret() {
|
|
302
|
-
return position;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* @param {number} begin
|
|
307
|
-
* @param {number} end
|
|
308
|
-
* @return {string}
|
|
309
|
-
*/
|
|
310
|
-
function slice(begin, end) {
|
|
311
|
-
return substr(characters, begin, end);
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* @param {number} type
|
|
316
|
-
* @return {number}
|
|
317
|
-
*/
|
|
318
|
-
function token(type) {
|
|
319
|
-
switch (type) {
|
|
320
|
-
// \0 \t \n \r \s whitespace token
|
|
321
|
-
case 0:
|
|
322
|
-
case 9:
|
|
323
|
-
case 10:
|
|
324
|
-
case 13:
|
|
325
|
-
case 32:
|
|
326
|
-
return 5;
|
|
327
|
-
// ! + , / > @ ~ isolate token
|
|
328
|
-
case 33:
|
|
329
|
-
case 43:
|
|
330
|
-
case 44:
|
|
331
|
-
case 47:
|
|
332
|
-
case 62:
|
|
333
|
-
case 64:
|
|
334
|
-
case 126:
|
|
335
|
-
// ; { } breakpoint token
|
|
336
|
-
case 59:
|
|
337
|
-
case 123:
|
|
338
|
-
case 125:
|
|
339
|
-
return 4;
|
|
340
|
-
// : accompanied token
|
|
341
|
-
case 58:
|
|
342
|
-
return 3;
|
|
343
|
-
// " ' ( [ opening delimit token
|
|
344
|
-
case 34:
|
|
345
|
-
case 39:
|
|
346
|
-
case 40:
|
|
347
|
-
case 91:
|
|
348
|
-
return 2;
|
|
349
|
-
// ) ] closing delimit token
|
|
350
|
-
case 41:
|
|
351
|
-
case 93:
|
|
352
|
-
return 1;
|
|
353
|
-
}
|
|
354
|
-
return 0;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* @param {string} value
|
|
359
|
-
* @return {any[]}
|
|
360
|
-
*/
|
|
361
|
-
function alloc(value) {
|
|
362
|
-
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* @param {any} value
|
|
367
|
-
* @return {any}
|
|
368
|
-
*/
|
|
369
|
-
function dealloc(value) {
|
|
370
|
-
return characters = '', value;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* @param {number} type
|
|
375
|
-
* @return {string}
|
|
376
|
-
*/
|
|
377
|
-
function delimit(type) {
|
|
378
|
-
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* @param {number} type
|
|
383
|
-
* @return {string}
|
|
384
|
-
*/
|
|
385
|
-
function whitespace(type) {
|
|
386
|
-
while (character = peek()) if (character < 33) next();else break;
|
|
387
|
-
return token(type) > 2 || token(character) > 3 ? '' : ' ';
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* @param {number} index
|
|
392
|
-
* @param {number} count
|
|
393
|
-
* @return {string}
|
|
394
|
-
*/
|
|
395
|
-
function escaping(index, count) {
|
|
396
|
-
while (--count && next())
|
|
397
|
-
// not 0-9 A-F a-f
|
|
398
|
-
if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) break;
|
|
399
|
-
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* @param {number} type
|
|
404
|
-
* @return {number}
|
|
405
|
-
*/
|
|
406
|
-
function delimiter(type) {
|
|
407
|
-
while (next()) switch (character) {
|
|
408
|
-
// ] ) " '
|
|
409
|
-
case type:
|
|
410
|
-
return position;
|
|
411
|
-
// " '
|
|
412
|
-
case 34:
|
|
413
|
-
case 39:
|
|
414
|
-
if (type !== 34 && type !== 39) delimiter(character);
|
|
415
|
-
break;
|
|
416
|
-
// (
|
|
417
|
-
case 40:
|
|
418
|
-
if (type === 41) delimiter(type);
|
|
419
|
-
break;
|
|
420
|
-
// \
|
|
421
|
-
case 92:
|
|
422
|
-
next();
|
|
423
|
-
break;
|
|
424
|
-
}
|
|
425
|
-
return position;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* @param {number} type
|
|
430
|
-
* @param {number} index
|
|
431
|
-
* @return {number}
|
|
432
|
-
*/
|
|
433
|
-
function commenter(type, index) {
|
|
434
|
-
while (next())
|
|
435
|
-
// //
|
|
436
|
-
if (type + character === 47 + 10) break;
|
|
437
|
-
// /*
|
|
438
|
-
else if (type + character === 42 + 42 && peek() === 47) break;
|
|
439
|
-
return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next());
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* @param {number} index
|
|
444
|
-
* @return {string}
|
|
445
|
-
*/
|
|
446
|
-
function identifier(index) {
|
|
447
|
-
while (!token(peek())) next();
|
|
448
|
-
return slice(index, position);
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
/**
|
|
452
|
-
* @param {string} value
|
|
453
|
-
* @return {object[]}
|
|
454
|
-
*/
|
|
455
|
-
function compile(value) {
|
|
456
|
-
return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value));
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* @param {string} value
|
|
461
|
-
* @param {object} root
|
|
462
|
-
* @param {object?} parent
|
|
463
|
-
* @param {string[]} rule
|
|
464
|
-
* @param {string[]} rules
|
|
465
|
-
* @param {string[]} rulesets
|
|
466
|
-
* @param {number[]} pseudo
|
|
467
|
-
* @param {number[]} points
|
|
468
|
-
* @param {string[]} declarations
|
|
469
|
-
* @return {object}
|
|
470
|
-
*/
|
|
471
|
-
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
472
|
-
var index = 0;
|
|
473
|
-
var offset = 0;
|
|
474
|
-
var length = pseudo;
|
|
475
|
-
var atrule = 0;
|
|
476
|
-
var property = 0;
|
|
477
|
-
var previous = 0;
|
|
478
|
-
var variable = 1;
|
|
479
|
-
var scanning = 1;
|
|
480
|
-
var ampersand = 1;
|
|
481
|
-
var character = 0;
|
|
482
|
-
var type = '';
|
|
483
|
-
var props = rules;
|
|
484
|
-
var children = rulesets;
|
|
485
|
-
var reference = rule;
|
|
486
|
-
var characters = type;
|
|
487
|
-
while (scanning) switch (previous = character, character = next()) {
|
|
488
|
-
// (
|
|
489
|
-
case 40:
|
|
490
|
-
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
491
|
-
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f', abs(index ? points[index - 1] : 0)) != -1) ampersand = -1;
|
|
492
|
-
break;
|
|
493
|
-
}
|
|
494
|
-
// " ' [
|
|
495
|
-
case 34:
|
|
496
|
-
case 39:
|
|
497
|
-
case 91:
|
|
498
|
-
characters += delimit(character);
|
|
499
|
-
break;
|
|
500
|
-
// \t \n \r \s
|
|
501
|
-
case 9:
|
|
502
|
-
case 10:
|
|
503
|
-
case 13:
|
|
504
|
-
case 32:
|
|
505
|
-
characters += whitespace(previous);
|
|
506
|
-
break;
|
|
507
|
-
// \
|
|
508
|
-
case 92:
|
|
509
|
-
characters += escaping(caret() - 1, 7);
|
|
510
|
-
continue;
|
|
511
|
-
// /
|
|
512
|
-
case 47:
|
|
513
|
-
switch (peek()) {
|
|
514
|
-
case 42:
|
|
515
|
-
case 47:
|
|
516
|
-
append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
|
|
517
|
-
break;
|
|
518
|
-
default:
|
|
519
|
-
characters += '/';
|
|
520
|
-
}
|
|
521
|
-
break;
|
|
522
|
-
// {
|
|
523
|
-
case 123 * variable:
|
|
524
|
-
points[index++] = strlen(characters) * ampersand;
|
|
525
|
-
// } ; \0
|
|
526
|
-
case 125 * variable:
|
|
527
|
-
case 59:
|
|
528
|
-
case 0:
|
|
529
|
-
switch (character) {
|
|
530
|
-
// \0 }
|
|
531
|
-
case 0:
|
|
532
|
-
case 125:
|
|
533
|
-
scanning = 0;
|
|
534
|
-
// ;
|
|
535
|
-
case 59 + offset:
|
|
536
|
-
if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
|
537
|
-
if (property > 0 && strlen(characters) - length) append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
|
|
538
|
-
break;
|
|
539
|
-
// @ ;
|
|
540
|
-
case 59:
|
|
541
|
-
characters += ';';
|
|
542
|
-
// { rule/at-rule
|
|
543
|
-
default:
|
|
544
|
-
append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
|
|
545
|
-
if (character === 123) if (offset === 0) parse(characters, root, reference, reference, props, rulesets, length, points, children);else switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
|
|
546
|
-
// d l m s
|
|
547
|
-
case 100:
|
|
548
|
-
case 108:
|
|
549
|
-
case 109:
|
|
550
|
-
case 115:
|
|
551
|
-
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
|
|
552
|
-
break;
|
|
553
|
-
default:
|
|
554
|
-
parse(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
|
|
558
|
-
break;
|
|
559
|
-
// :
|
|
560
|
-
case 58:
|
|
561
|
-
length = 1 + strlen(characters), property = previous;
|
|
562
|
-
default:
|
|
563
|
-
if (variable < 1) if (character == 123) --variable;else if (character == 125 && variable++ == 0 && prev() == 125) continue;
|
|
564
|
-
switch (characters += from(character), character * variable) {
|
|
565
|
-
// &
|
|
566
|
-
case 38:
|
|
567
|
-
ampersand = offset > 0 ? 1 : (characters += '\f', -1);
|
|
568
|
-
break;
|
|
569
|
-
// ,
|
|
570
|
-
case 44:
|
|
571
|
-
points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
|
|
572
|
-
break;
|
|
573
|
-
// @
|
|
574
|
-
case 64:
|
|
575
|
-
// -
|
|
576
|
-
if (peek() === 45) characters += delimit(next());
|
|
577
|
-
atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
|
|
578
|
-
break;
|
|
579
|
-
// -
|
|
580
|
-
case 45:
|
|
581
|
-
if (previous === 45 && strlen(characters) == 2) variable = 0;
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
return rulesets;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* @param {string} value
|
|
589
|
-
* @param {object} root
|
|
590
|
-
* @param {object?} parent
|
|
591
|
-
* @param {number} index
|
|
592
|
-
* @param {number} offset
|
|
593
|
-
* @param {string[]} rules
|
|
594
|
-
* @param {number[]} points
|
|
595
|
-
* @param {string} type
|
|
596
|
-
* @param {string[]} props
|
|
597
|
-
* @param {string[]} children
|
|
598
|
-
* @param {number} length
|
|
599
|
-
* @param {object[]} siblings
|
|
600
|
-
* @return {object}
|
|
601
|
-
*/
|
|
602
|
-
function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
|
|
603
|
-
var post = offset - 1;
|
|
604
|
-
var rule = offset === 0 ? rules : [''];
|
|
605
|
-
var size = sizeof(rule);
|
|
606
|
-
for (var i = 0, j = 0, k = 0; i < index; ++i) for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x) if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x]))) props[k++] = z;
|
|
607
|
-
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings);
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* @param {number} value
|
|
612
|
-
* @param {object} root
|
|
613
|
-
* @param {object?} parent
|
|
614
|
-
* @param {object[]} siblings
|
|
615
|
-
* @return {object}
|
|
616
|
-
*/
|
|
617
|
-
function comment(value, root, parent, siblings) {
|
|
618
|
-
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
/**
|
|
622
|
-
* @param {string} value
|
|
623
|
-
* @param {object} root
|
|
624
|
-
* @param {object?} parent
|
|
625
|
-
* @param {number} length
|
|
626
|
-
* @param {object[]} siblings
|
|
627
|
-
* @return {object}
|
|
628
|
-
*/
|
|
629
|
-
function declaration(value, root, parent, length, siblings) {
|
|
630
|
-
return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings);
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* @param {string} value
|
|
635
|
-
* @param {number} length
|
|
636
|
-
* @param {object[]} children
|
|
637
|
-
* @return {string}
|
|
638
|
-
*/
|
|
639
|
-
function prefix(value, length, children) {
|
|
640
|
-
switch (hash(value, length)) {
|
|
641
|
-
// color-adjust
|
|
642
|
-
case 5103:
|
|
643
|
-
return WEBKIT + 'print-' + value + value;
|
|
644
|
-
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
645
|
-
case 5737:
|
|
646
|
-
case 4201:
|
|
647
|
-
case 3177:
|
|
648
|
-
case 3433:
|
|
649
|
-
case 1641:
|
|
650
|
-
case 4457:
|
|
651
|
-
case 2921:
|
|
652
|
-
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
653
|
-
case 5572:
|
|
654
|
-
case 6356:
|
|
655
|
-
case 5844:
|
|
656
|
-
case 3191:
|
|
657
|
-
case 6645:
|
|
658
|
-
case 3005:
|
|
659
|
-
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
660
|
-
case 6391:
|
|
661
|
-
case 5879:
|
|
662
|
-
case 5623:
|
|
663
|
-
case 6135:
|
|
664
|
-
case 4599:
|
|
665
|
-
case 4855:
|
|
666
|
-
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
667
|
-
case 4215:
|
|
668
|
-
case 6389:
|
|
669
|
-
case 5109:
|
|
670
|
-
case 5365:
|
|
671
|
-
case 5621:
|
|
672
|
-
case 3829:
|
|
673
|
-
return WEBKIT + value + value;
|
|
674
|
-
// tab-size
|
|
675
|
-
case 4789:
|
|
676
|
-
return MOZ + value + value;
|
|
677
|
-
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
678
|
-
case 5349:
|
|
679
|
-
case 4246:
|
|
680
|
-
case 4810:
|
|
681
|
-
case 6968:
|
|
682
|
-
case 2756:
|
|
683
|
-
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
684
|
-
// writing-mode
|
|
685
|
-
case 5936:
|
|
686
|
-
switch (charat(value, length + 11)) {
|
|
687
|
-
// vertical-l(r)
|
|
688
|
-
case 114:
|
|
689
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
|
690
|
-
// vertical-r(l)
|
|
691
|
-
case 108:
|
|
692
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
|
693
|
-
// horizontal(-)tb
|
|
694
|
-
case 45:
|
|
695
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
|
696
|
-
// default: fallthrough to below
|
|
697
|
-
}
|
|
698
|
-
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
699
|
-
case 6828:
|
|
700
|
-
case 4268:
|
|
701
|
-
case 2903:
|
|
702
|
-
return WEBKIT + value + MS + value + value;
|
|
703
|
-
// order
|
|
704
|
-
case 6165:
|
|
705
|
-
return WEBKIT + value + MS + 'flex-' + value + value;
|
|
706
|
-
// align-items
|
|
707
|
-
case 5187:
|
|
708
|
-
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
|
709
|
-
// align-self
|
|
710
|
-
case 5443:
|
|
711
|
-
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value;
|
|
712
|
-
// align-content
|
|
713
|
-
case 4675:
|
|
714
|
-
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value;
|
|
715
|
-
// flex-shrink
|
|
716
|
-
case 5548:
|
|
717
|
-
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
|
718
|
-
// flex-basis
|
|
719
|
-
case 5292:
|
|
720
|
-
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
|
721
|
-
// flex-grow
|
|
722
|
-
case 6060:
|
|
723
|
-
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
|
724
|
-
// transition
|
|
725
|
-
case 4554:
|
|
726
|
-
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
|
727
|
-
// cursor
|
|
728
|
-
case 6187:
|
|
729
|
-
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
|
730
|
-
// background, background-image
|
|
731
|
-
case 5495:
|
|
732
|
-
case 3959:
|
|
733
|
-
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
|
734
|
-
// justify-content
|
|
735
|
-
case 4968:
|
|
736
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
|
737
|
-
// justify-self
|
|
738
|
-
case 4200:
|
|
739
|
-
if (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value;
|
|
740
|
-
break;
|
|
741
|
-
// grid-template-(columns|rows)
|
|
742
|
-
case 2592:
|
|
743
|
-
case 3360:
|
|
744
|
-
return MS + replace(value, 'template-', '') + value;
|
|
745
|
-
// grid-(row|column)-start
|
|
746
|
-
case 4384:
|
|
747
|
-
case 3616:
|
|
748
|
-
if (children && children.some(function (element, index) {
|
|
749
|
-
return length = index, match(element.props, /grid-\w+-end/);
|
|
750
|
-
})) {
|
|
751
|
-
return ~indexof(value + (children = children[length].value), 'span', 0) ? value : MS + replace(value, '-start', '') + value + MS + 'grid-row-span:' + (~indexof(children, 'span', 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ';';
|
|
752
|
-
}
|
|
753
|
-
return MS + replace(value, '-start', '') + value;
|
|
754
|
-
// grid-(row|column)-end
|
|
755
|
-
case 4896:
|
|
756
|
-
case 4128:
|
|
757
|
-
return children && children.some(function (element) {
|
|
758
|
-
return match(element.props, /grid-\w+-start/);
|
|
759
|
-
}) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value;
|
|
760
|
-
// (margin|padding)-inline-(start|end)
|
|
761
|
-
case 4095:
|
|
762
|
-
case 3583:
|
|
763
|
-
case 4068:
|
|
764
|
-
case 2532:
|
|
765
|
-
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
|
766
|
-
// (min|max)?(width|height|inline-size|block-size)
|
|
767
|
-
case 8116:
|
|
768
|
-
case 7059:
|
|
769
|
-
case 5753:
|
|
770
|
-
case 5535:
|
|
771
|
-
case 5445:
|
|
772
|
-
case 5701:
|
|
773
|
-
case 4933:
|
|
774
|
-
case 4677:
|
|
775
|
-
case 5533:
|
|
776
|
-
case 5789:
|
|
777
|
-
case 5021:
|
|
778
|
-
case 4765:
|
|
779
|
-
// stretch, max-content, min-content, fill-available
|
|
780
|
-
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
|
781
|
-
// (m)ax-content, (m)in-content
|
|
782
|
-
case 109:
|
|
783
|
-
// -
|
|
784
|
-
if (charat(value, length + 4) !== 45) break;
|
|
785
|
-
// (f)ill-available, (f)it-content
|
|
786
|
-
case 102:
|
|
787
|
-
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
|
788
|
-
// (s)tretch
|
|
789
|
-
case 115:
|
|
790
|
-
return ~indexof(value, 'stretch', 0) ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value;
|
|
791
|
-
}
|
|
792
|
-
break;
|
|
793
|
-
// grid-(column|row)
|
|
794
|
-
case 5152:
|
|
795
|
-
case 5920:
|
|
796
|
-
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) {
|
|
797
|
-
return MS + a + ':' + b + f + (c ? MS + a + '-span:' + (d ? e : +e - +b) + f : '') + value;
|
|
798
|
-
});
|
|
799
|
-
// position: sticky
|
|
800
|
-
case 4949:
|
|
801
|
-
// stick(y)?
|
|
802
|
-
if (charat(value, length + 6) === 121) return replace(value, ':', ':' + WEBKIT) + value;
|
|
803
|
-
break;
|
|
804
|
-
// display: (flex|inline-flex|grid|inline-grid)
|
|
805
|
-
case 6444:
|
|
806
|
-
switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
|
|
807
|
-
// (inline-)?fle(x)
|
|
808
|
-
case 120:
|
|
809
|
-
return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
|
810
|
-
// (inline-)?gri(d)
|
|
811
|
-
case 100:
|
|
812
|
-
return replace(value, ':', ':' + MS) + value;
|
|
813
|
-
}
|
|
814
|
-
break;
|
|
815
|
-
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
816
|
-
case 5719:
|
|
817
|
-
case 2647:
|
|
818
|
-
case 2135:
|
|
819
|
-
case 3927:
|
|
820
|
-
case 2391:
|
|
821
|
-
return replace(value, 'scroll-', 'scroll-snap-') + value;
|
|
822
|
-
}
|
|
823
|
-
return value;
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
/**
|
|
827
|
-
* @param {object[]} children
|
|
828
|
-
* @param {function} callback
|
|
829
|
-
* @return {string}
|
|
830
|
-
*/
|
|
831
|
-
function serialize(children, callback) {
|
|
832
|
-
var output = '';
|
|
833
|
-
for (var i = 0; i < children.length; i++) output += callback(children[i], i, children, callback) || '';
|
|
834
|
-
return output;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
/**
|
|
838
|
-
* @param {object} element
|
|
839
|
-
* @param {number} index
|
|
840
|
-
* @param {object[]} children
|
|
841
|
-
* @param {function} callback
|
|
842
|
-
* @return {string}
|
|
843
|
-
*/
|
|
844
|
-
function stringify(element, index, children, callback) {
|
|
845
|
-
switch (element.type) {
|
|
846
|
-
case LAYER:
|
|
847
|
-
if (element.children.length) break;
|
|
848
|
-
case IMPORT:
|
|
849
|
-
case DECLARATION:
|
|
850
|
-
return element.return = element.return || element.value;
|
|
851
|
-
case COMMENT:
|
|
852
|
-
return '';
|
|
853
|
-
case KEYFRAMES:
|
|
854
|
-
return element.return = element.value + '{' + serialize(element.children, callback) + '}';
|
|
855
|
-
case RULESET:
|
|
856
|
-
if (!strlen(element.value = element.props.join(','))) return '';
|
|
857
|
-
}
|
|
858
|
-
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : '';
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* @param {function[]} collection
|
|
863
|
-
* @return {function}
|
|
864
|
-
*/
|
|
865
|
-
function middleware(collection) {
|
|
866
|
-
var length = sizeof(collection);
|
|
867
|
-
return function (element, index, children, callback) {
|
|
868
|
-
var output = '';
|
|
869
|
-
for (var i = 0; i < length; i++) output += collection[i](element, index, children, callback) || '';
|
|
870
|
-
return output;
|
|
871
|
-
};
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
/**
|
|
875
|
-
* @param {function} callback
|
|
876
|
-
* @return {function}
|
|
877
|
-
*/
|
|
878
|
-
function rulesheet(callback) {
|
|
879
|
-
return function (element) {
|
|
880
|
-
if (!element.root) if (element = element.return) callback(element);
|
|
881
|
-
};
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
/**
|
|
885
|
-
* @param {object} element
|
|
886
|
-
* @param {number} index
|
|
887
|
-
* @param {object[]} children
|
|
888
|
-
* @param {function} callback
|
|
889
|
-
*/
|
|
890
|
-
function prefixer(element, index, children, callback) {
|
|
891
|
-
if (element.length > -1) if (!element.return) switch (element.type) {
|
|
892
|
-
case DECLARATION:
|
|
893
|
-
element.return = prefix(element.value, element.length, children);
|
|
894
|
-
return;
|
|
895
|
-
case KEYFRAMES:
|
|
896
|
-
return serialize([copy(element, {
|
|
897
|
-
value: replace(element.value, '@', '@' + WEBKIT)
|
|
898
|
-
})], callback);
|
|
899
|
-
case RULESET:
|
|
900
|
-
if (element.length) return combine(children = element.props, function (value) {
|
|
901
|
-
switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
902
|
-
// :read-(only|write)
|
|
903
|
-
case ':read-only':
|
|
904
|
-
case ':read-write':
|
|
905
|
-
lift(copy(element, {
|
|
906
|
-
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
907
|
-
}));
|
|
908
|
-
lift(copy(element, {
|
|
909
|
-
props: [value]
|
|
910
|
-
}));
|
|
911
|
-
assign(element, {
|
|
912
|
-
props: filter(children, callback)
|
|
913
|
-
});
|
|
914
|
-
break;
|
|
915
|
-
// :placeholder
|
|
916
|
-
case '::placeholder':
|
|
917
|
-
lift(copy(element, {
|
|
918
|
-
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
919
|
-
}));
|
|
920
|
-
lift(copy(element, {
|
|
921
|
-
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
922
|
-
}));
|
|
923
|
-
lift(copy(element, {
|
|
924
|
-
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
|
925
|
-
}));
|
|
926
|
-
lift(copy(element, {
|
|
927
|
-
props: [value]
|
|
928
|
-
}));
|
|
929
|
-
assign(element, {
|
|
930
|
-
props: filter(children, callback)
|
|
931
|
-
});
|
|
932
|
-
break;
|
|
933
|
-
}
|
|
934
|
-
return '';
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
var unitlessKeys = {
|
|
940
|
-
animationIterationCount: 1,
|
|
941
|
-
borderImageOutset: 1,
|
|
942
|
-
borderImageSlice: 1,
|
|
943
|
-
borderImageWidth: 1,
|
|
944
|
-
boxFlex: 1,
|
|
945
|
-
boxFlexGroup: 1,
|
|
946
|
-
boxOrdinalGroup: 1,
|
|
947
|
-
columnCount: 1,
|
|
948
|
-
columns: 1,
|
|
949
|
-
flex: 1,
|
|
950
|
-
flexGrow: 1,
|
|
951
|
-
flexPositive: 1,
|
|
952
|
-
flexShrink: 1,
|
|
953
|
-
flexNegative: 1,
|
|
954
|
-
flexOrder: 1,
|
|
955
|
-
gridRow: 1,
|
|
956
|
-
gridRowEnd: 1,
|
|
957
|
-
gridRowSpan: 1,
|
|
958
|
-
gridRowStart: 1,
|
|
959
|
-
gridColumn: 1,
|
|
960
|
-
gridColumnEnd: 1,
|
|
961
|
-
gridColumnSpan: 1,
|
|
962
|
-
gridColumnStart: 1,
|
|
963
|
-
msGridRow: 1,
|
|
964
|
-
msGridRowSpan: 1,
|
|
965
|
-
msGridColumn: 1,
|
|
966
|
-
msGridColumnSpan: 1,
|
|
967
|
-
fontWeight: 1,
|
|
968
|
-
lineHeight: 1,
|
|
969
|
-
opacity: 1,
|
|
970
|
-
order: 1,
|
|
971
|
-
orphans: 1,
|
|
972
|
-
tabSize: 1,
|
|
973
|
-
widows: 1,
|
|
974
|
-
zIndex: 1,
|
|
975
|
-
zoom: 1,
|
|
976
|
-
WebkitLineClamp: 1,
|
|
977
|
-
// SVG-related properties
|
|
978
|
-
fillOpacity: 1,
|
|
979
|
-
floodOpacity: 1,
|
|
980
|
-
stopOpacity: 1,
|
|
981
|
-
strokeDasharray: 1,
|
|
982
|
-
strokeDashoffset: 1,
|
|
983
|
-
strokeMiterlimit: 1,
|
|
984
|
-
strokeOpacity: 1,
|
|
985
|
-
strokeWidth: 1
|
|
986
|
-
};
|
|
987
|
-
|
|
988
|
-
var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
989
|
-
m = "active",
|
|
990
|
-
y = "data-styled-version",
|
|
991
|
-
v = "6.1.8",
|
|
992
|
-
g = "/*!sc*/\n",
|
|
993
|
-
S = "undefined" != typeof window && "HTMLElement" in window,
|
|
994
|
-
w = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV),
|
|
995
|
-
E = /invalid hook call/i,
|
|
996
|
-
N = new Set(),
|
|
997
|
-
P = function (t, n) {
|
|
998
|
-
if ("production" !== process.env.NODE_ENV) {
|
|
999
|
-
var o = n ? ' with the id of "'.concat(n, '"') : "",
|
|
1000
|
-
s = "The component ".concat(t).concat(o, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",
|
|
1001
|
-
i = console.error;
|
|
1002
|
-
try {
|
|
1003
|
-
var a = !0;
|
|
1004
|
-
console.error = function (t) {
|
|
1005
|
-
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1006
|
-
E.test(t) ? (a = !1, N.delete(s)) : i.apply(void 0, __spreadArray([t], n, !1));
|
|
1007
|
-
}, useRef(), a && !N.has(s) && (console.warn(s), N.add(s));
|
|
1008
|
-
} catch (e) {
|
|
1009
|
-
E.test(e.message) && N.delete(s);
|
|
1010
|
-
} finally {
|
|
1011
|
-
console.error = i;
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
},
|
|
1015
|
-
_ = Object.freeze([]),
|
|
1016
|
-
C = Object.freeze({});
|
|
1017
|
-
function I(e, t, n) {
|
|
1018
|
-
return void 0 === n && (n = C), e.theme !== n.theme && e.theme || t || n.theme;
|
|
1019
|
-
}
|
|
1020
|
-
var A = new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]),
|
|
1021
|
-
O = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
|
|
1022
|
-
D = /(^-|-$)/g;
|
|
1023
|
-
function R(e) {
|
|
1024
|
-
return e.replace(O, "-").replace(D, "");
|
|
1025
|
-
}
|
|
1026
|
-
var T = /(a)(d)/gi,
|
|
1027
|
-
k = 52,
|
|
1028
|
-
j = function (e) {
|
|
1029
|
-
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1030
|
-
};
|
|
1031
|
-
function x(e) {
|
|
1032
|
-
var t,
|
|
1033
|
-
n = "";
|
|
1034
|
-
for (t = Math.abs(e); t > k; t = t / k | 0) n = j(t % k) + n;
|
|
1035
|
-
return (j(t % k) + n).replace(T, "$1-$2");
|
|
1036
|
-
}
|
|
1037
|
-
var V,
|
|
1038
|
-
F = 5381,
|
|
1039
|
-
M = function (e, t) {
|
|
1040
|
-
for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
|
|
1041
|
-
return e;
|
|
1042
|
-
},
|
|
1043
|
-
z = function (e) {
|
|
1044
|
-
return M(F, e);
|
|
1045
|
-
};
|
|
1046
|
-
function $(e) {
|
|
1047
|
-
return x(z(e) >>> 0);
|
|
1048
|
-
}
|
|
1049
|
-
function B(e) {
|
|
1050
|
-
return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
|
|
1051
|
-
}
|
|
1052
|
-
function L(e) {
|
|
1053
|
-
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1054
|
-
}
|
|
1055
|
-
var G = "function" == typeof Symbol && Symbol.for,
|
|
1056
|
-
Y = G ? Symbol.for("react.memo") : 60115,
|
|
1057
|
-
q = G ? Symbol.for("react.forward_ref") : 60112,
|
|
1058
|
-
W = {
|
|
1059
|
-
childContextTypes: !0,
|
|
1060
|
-
contextType: !0,
|
|
1061
|
-
contextTypes: !0,
|
|
1062
|
-
defaultProps: !0,
|
|
1063
|
-
displayName: !0,
|
|
1064
|
-
getDefaultProps: !0,
|
|
1065
|
-
getDerivedStateFromError: !0,
|
|
1066
|
-
getDerivedStateFromProps: !0,
|
|
1067
|
-
mixins: !0,
|
|
1068
|
-
propTypes: !0,
|
|
1069
|
-
type: !0
|
|
1070
|
-
},
|
|
1071
|
-
H = {
|
|
1072
|
-
name: !0,
|
|
1073
|
-
length: !0,
|
|
1074
|
-
prototype: !0,
|
|
1075
|
-
caller: !0,
|
|
1076
|
-
callee: !0,
|
|
1077
|
-
arguments: !0,
|
|
1078
|
-
arity: !0
|
|
1079
|
-
},
|
|
1080
|
-
U = {
|
|
1081
|
-
$$typeof: !0,
|
|
1082
|
-
compare: !0,
|
|
1083
|
-
defaultProps: !0,
|
|
1084
|
-
displayName: !0,
|
|
1085
|
-
propTypes: !0,
|
|
1086
|
-
type: !0
|
|
1087
|
-
},
|
|
1088
|
-
J = ((V = {})[q] = {
|
|
1089
|
-
$$typeof: !0,
|
|
1090
|
-
render: !0,
|
|
1091
|
-
defaultProps: !0,
|
|
1092
|
-
displayName: !0,
|
|
1093
|
-
propTypes: !0
|
|
1094
|
-
}, V[Y] = U, V);
|
|
1095
|
-
function X(e) {
|
|
1096
|
-
return ("type" in (t = e) && t.type.$$typeof) === Y ? U : "$$typeof" in e ? J[e.$$typeof] : W;
|
|
1097
|
-
var t;
|
|
1098
|
-
}
|
|
1099
|
-
var Z = Object.defineProperty,
|
|
1100
|
-
K = Object.getOwnPropertyNames,
|
|
1101
|
-
Q = Object.getOwnPropertySymbols,
|
|
1102
|
-
ee = Object.getOwnPropertyDescriptor,
|
|
1103
|
-
te = Object.getPrototypeOf,
|
|
1104
|
-
ne = Object.prototype;
|
|
1105
|
-
function oe(e, t, n) {
|
|
1106
|
-
if ("string" != typeof t) {
|
|
1107
|
-
if (ne) {
|
|
1108
|
-
var o = te(t);
|
|
1109
|
-
o && o !== ne && oe(e, o, n);
|
|
1110
|
-
}
|
|
1111
|
-
var r = K(t);
|
|
1112
|
-
Q && (r = r.concat(Q(t)));
|
|
1113
|
-
for (var s = X(e), i = X(t), a = 0; a < r.length; ++a) {
|
|
1114
|
-
var c = r[a];
|
|
1115
|
-
if (!(c in H || n && n[c] || i && c in i || s && c in s)) {
|
|
1116
|
-
var l = ee(t, c);
|
|
1117
|
-
try {
|
|
1118
|
-
Z(e, c, l);
|
|
1119
|
-
} catch (e) {}
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
return e;
|
|
1124
|
-
}
|
|
1125
|
-
function re(e) {
|
|
1126
|
-
return "function" == typeof e;
|
|
1127
|
-
}
|
|
1128
|
-
function se(e) {
|
|
1129
|
-
return "object" == typeof e && "styledComponentId" in e;
|
|
1130
|
-
}
|
|
1131
|
-
function ie(e, t) {
|
|
1132
|
-
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1133
|
-
}
|
|
1134
|
-
function ae(e, t) {
|
|
1135
|
-
if (0 === e.length) return "";
|
|
1136
|
-
for (var n = e[0], o = 1; o < e.length; o++) n += t ? t + e[o] : e[o];
|
|
1137
|
-
return n;
|
|
1138
|
-
}
|
|
1139
|
-
function ce(e) {
|
|
1140
|
-
return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1141
|
-
}
|
|
1142
|
-
function le(e, t, n) {
|
|
1143
|
-
if (void 0 === n && (n = !1), !n && !ce(e) && !Array.isArray(e)) return t;
|
|
1144
|
-
if (Array.isArray(t)) for (var o = 0; o < t.length; o++) e[o] = le(e[o], t[o]);else if (ce(t)) for (var o in t) e[o] = le(e[o], t[o]);
|
|
1145
|
-
return e;
|
|
1146
|
-
}
|
|
1147
|
-
function ue(e, t) {
|
|
1148
|
-
Object.defineProperty(e, "toString", {
|
|
1149
|
-
value: t
|
|
1150
|
-
});
|
|
1151
|
-
}
|
|
1152
|
-
var pe = "production" !== process.env.NODE_ENV ? {
|
|
1153
|
-
1: "Cannot create styled-component for component: %s.\n\n",
|
|
1154
|
-
2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
|
|
1155
|
-
3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
|
|
1156
|
-
4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
|
|
1157
|
-
5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
|
|
1158
|
-
6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
|
|
1159
|
-
7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
|
|
1160
|
-
8: 'ThemeProvider: Please make your "theme" prop an object.\n\n',
|
|
1161
|
-
9: "Missing document `<head>`\n\n",
|
|
1162
|
-
10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",
|
|
1163
|
-
11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",
|
|
1164
|
-
12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",
|
|
1165
|
-
13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",
|
|
1166
|
-
14: 'ThemeProvider: "theme" prop is required.\n\n',
|
|
1167
|
-
15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",
|
|
1168
|
-
16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
|
|
1169
|
-
17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",
|
|
1170
|
-
18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"
|
|
1171
|
-
} : {};
|
|
1172
|
-
function de() {
|
|
1173
|
-
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1174
|
-
for (var n = e[0], o = [], r = 1, s = e.length; r < s; r += 1) o.push(e[r]);
|
|
1175
|
-
return o.forEach(function (e) {
|
|
1176
|
-
n = n.replace(/%[a-z]/, e);
|
|
1177
|
-
}), n;
|
|
1178
|
-
}
|
|
1179
|
-
function he(t) {
|
|
1180
|
-
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1181
|
-
return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(de.apply(void 0, __spreadArray([pe[t]], n, !1)).trim());
|
|
1182
|
-
}
|
|
1183
|
-
var fe = function () {
|
|
1184
|
-
function e(e) {
|
|
1185
|
-
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
|
|
1186
|
-
}
|
|
1187
|
-
return e.prototype.indexOfGroup = function (e) {
|
|
1188
|
-
for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
|
|
1189
|
-
return t;
|
|
1190
|
-
}, e.prototype.insertRules = function (e, t) {
|
|
1191
|
-
if (e >= this.groupSizes.length) {
|
|
1192
|
-
for (var n = this.groupSizes, o = n.length, r = o; e >= r;) if ((r <<= 1) < 0) throw he(16, "".concat(e));
|
|
1193
|
-
this.groupSizes = new Uint32Array(r), this.groupSizes.set(n), this.length = r;
|
|
1194
|
-
for (var s = o; s < r; s++) this.groupSizes[s] = 0;
|
|
1195
|
-
}
|
|
1196
|
-
for (var i = this.indexOfGroup(e + 1), a = (s = 0, t.length); s < a; s++) this.tag.insertRule(i, t[s]) && (this.groupSizes[e]++, i++);
|
|
1197
|
-
}, e.prototype.clearGroup = function (e) {
|
|
1198
|
-
if (e < this.length) {
|
|
1199
|
-
var t = this.groupSizes[e],
|
|
1200
|
-
n = this.indexOfGroup(e),
|
|
1201
|
-
o = n + t;
|
|
1202
|
-
this.groupSizes[e] = 0;
|
|
1203
|
-
for (var r = n; r < o; r++) this.tag.deleteRule(n);
|
|
1204
|
-
}
|
|
1205
|
-
}, e.prototype.getGroup = function (e) {
|
|
1206
|
-
var t = "";
|
|
1207
|
-
if (e >= this.length || 0 === this.groupSizes[e]) return t;
|
|
1208
|
-
for (var n = this.groupSizes[e], o = this.indexOfGroup(e), r = o + n, s = o; s < r; s++) t += "".concat(this.tag.getRule(s)).concat(g);
|
|
1209
|
-
return t;
|
|
1210
|
-
}, e;
|
|
1211
|
-
}(),
|
|
1212
|
-
me = new Map(),
|
|
1213
|
-
ye = new Map(),
|
|
1214
|
-
ve = 1,
|
|
1215
|
-
ge = function (e) {
|
|
1216
|
-
if (me.has(e)) return me.get(e);
|
|
1217
|
-
for (; ye.has(ve);) ve++;
|
|
1218
|
-
var t = ve++;
|
|
1219
|
-
if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > 1073741824)) throw he(16, "".concat(t));
|
|
1220
|
-
return me.set(e, t), ye.set(t, e), t;
|
|
1221
|
-
},
|
|
1222
|
-
Se = function (e, t) {
|
|
1223
|
-
ve = t + 1, me.set(e, t), ye.set(t, e);
|
|
1224
|
-
},
|
|
1225
|
-
we = "style[".concat(f, "][").concat(y, '="').concat(v, '"]'),
|
|
1226
|
-
be = new RegExp("^".concat(f, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),
|
|
1227
|
-
Ee = function (e, t, n) {
|
|
1228
|
-
for (var o, r = n.split(","), s = 0, i = r.length; s < i; s++) (o = r[s]) && e.registerName(t, o);
|
|
1229
|
-
},
|
|
1230
|
-
Ne = function (e, t) {
|
|
1231
|
-
for (var n, o = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(g), r = [], s = 0, i = o.length; s < i; s++) {
|
|
1232
|
-
var a = o[s].trim();
|
|
1233
|
-
if (a) {
|
|
1234
|
-
var c = a.match(be);
|
|
1235
|
-
if (c) {
|
|
1236
|
-
var l = 0 | parseInt(c[1], 10),
|
|
1237
|
-
u = c[2];
|
|
1238
|
-
0 !== l && (Se(u, l), Ee(e, u, c[3]), e.getTag().insertRules(l, r)), r.length = 0;
|
|
1239
|
-
} else r.push(a);
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
};
|
|
1243
|
-
function Pe() {
|
|
1244
|
-
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
1245
|
-
}
|
|
1246
|
-
var _e = function (e) {
|
|
1247
|
-
var t = document.head,
|
|
1248
|
-
n = e || t,
|
|
1249
|
-
o = document.createElement("style"),
|
|
1250
|
-
r = function (e) {
|
|
1251
|
-
var t = Array.from(e.querySelectorAll("style[".concat(f, "]")));
|
|
1252
|
-
return t[t.length - 1];
|
|
1253
|
-
}(n),
|
|
1254
|
-
s = void 0 !== r ? r.nextSibling : null;
|
|
1255
|
-
o.setAttribute(f, m), o.setAttribute(y, v);
|
|
1256
|
-
var i = Pe();
|
|
1257
|
-
return i && o.setAttribute("nonce", i), n.insertBefore(o, s), o;
|
|
1258
|
-
},
|
|
1259
|
-
Ce = function () {
|
|
1260
|
-
function e(e) {
|
|
1261
|
-
this.element = _e(e), this.element.appendChild(document.createTextNode("")), this.sheet = function (e) {
|
|
1262
|
-
if (e.sheet) return e.sheet;
|
|
1263
|
-
for (var t = document.styleSheets, n = 0, o = t.length; n < o; n++) {
|
|
1264
|
-
var r = t[n];
|
|
1265
|
-
if (r.ownerNode === e) return r;
|
|
1266
|
-
}
|
|
1267
|
-
throw he(17);
|
|
1268
|
-
}(this.element), this.length = 0;
|
|
1269
|
-
}
|
|
1270
|
-
return e.prototype.insertRule = function (e, t) {
|
|
1271
|
-
try {
|
|
1272
|
-
return this.sheet.insertRule(t, e), this.length++, !0;
|
|
1273
|
-
} catch (e) {
|
|
1274
|
-
return !1;
|
|
1275
|
-
}
|
|
1276
|
-
}, e.prototype.deleteRule = function (e) {
|
|
1277
|
-
this.sheet.deleteRule(e), this.length--;
|
|
1278
|
-
}, e.prototype.getRule = function (e) {
|
|
1279
|
-
var t = this.sheet.cssRules[e];
|
|
1280
|
-
return t && t.cssText ? t.cssText : "";
|
|
1281
|
-
}, e;
|
|
1282
|
-
}(),
|
|
1283
|
-
Ie = function () {
|
|
1284
|
-
function e(e) {
|
|
1285
|
-
this.element = _e(e), this.nodes = this.element.childNodes, this.length = 0;
|
|
1286
|
-
}
|
|
1287
|
-
return e.prototype.insertRule = function (e, t) {
|
|
1288
|
-
if (e <= this.length && e >= 0) {
|
|
1289
|
-
var n = document.createTextNode(t);
|
|
1290
|
-
return this.element.insertBefore(n, this.nodes[e] || null), this.length++, !0;
|
|
1291
|
-
}
|
|
1292
|
-
return !1;
|
|
1293
|
-
}, e.prototype.deleteRule = function (e) {
|
|
1294
|
-
this.element.removeChild(this.nodes[e]), this.length--;
|
|
1295
|
-
}, e.prototype.getRule = function (e) {
|
|
1296
|
-
return e < this.length ? this.nodes[e].textContent : "";
|
|
1297
|
-
}, e;
|
|
1298
|
-
}(),
|
|
1299
|
-
Ae = function () {
|
|
1300
|
-
function e(e) {
|
|
1301
|
-
this.rules = [], this.length = 0;
|
|
1302
|
-
}
|
|
1303
|
-
return e.prototype.insertRule = function (e, t) {
|
|
1304
|
-
return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
|
|
1305
|
-
}, e.prototype.deleteRule = function (e) {
|
|
1306
|
-
this.rules.splice(e, 1), this.length--;
|
|
1307
|
-
}, e.prototype.getRule = function (e) {
|
|
1308
|
-
return e < this.length ? this.rules[e] : "";
|
|
1309
|
-
}, e;
|
|
1310
|
-
}(),
|
|
1311
|
-
Oe = S,
|
|
1312
|
-
De = {
|
|
1313
|
-
isServer: !S,
|
|
1314
|
-
useCSSOMInjection: !w
|
|
1315
|
-
},
|
|
1316
|
-
Re = function () {
|
|
1317
|
-
function e(e, n, o) {
|
|
1318
|
-
void 0 === e && (e = C), void 0 === n && (n = {});
|
|
1319
|
-
var r = this;
|
|
1320
|
-
this.options = __assign(__assign({}, De), e), this.gs = n, this.names = new Map(o), this.server = !!e.isServer, !this.server && S && Oe && (Oe = !1, function (e) {
|
|
1321
|
-
for (var t = document.querySelectorAll(we), n = 0, o = t.length; n < o; n++) {
|
|
1322
|
-
var r = t[n];
|
|
1323
|
-
r && r.getAttribute(f) !== m && (Ne(e, r), r.parentNode && r.parentNode.removeChild(r));
|
|
1324
|
-
}
|
|
1325
|
-
}(this)), ue(this, function () {
|
|
1326
|
-
return function (e) {
|
|
1327
|
-
for (var t = e.getTag(), n = t.length, o = "", r = function (n) {
|
|
1328
|
-
var r = function (e) {
|
|
1329
|
-
return ye.get(e);
|
|
1330
|
-
}(n);
|
|
1331
|
-
if (void 0 === r) return "continue";
|
|
1332
|
-
var s = e.names.get(r),
|
|
1333
|
-
i = t.getGroup(n);
|
|
1334
|
-
if (void 0 === s || 0 === i.length) return "continue";
|
|
1335
|
-
var a = "".concat(f, ".g").concat(n, '[id="').concat(r, '"]'),
|
|
1336
|
-
c = "";
|
|
1337
|
-
void 0 !== s && s.forEach(function (e) {
|
|
1338
|
-
e.length > 0 && (c += "".concat(e, ","));
|
|
1339
|
-
}), o += "".concat(i).concat(a, '{content:"').concat(c, '"}').concat(g);
|
|
1340
|
-
}, s = 0; s < n; s++) r(s);
|
|
1341
|
-
return o;
|
|
1342
|
-
}(r);
|
|
1343
|
-
});
|
|
1344
|
-
}
|
|
1345
|
-
return e.registerId = function (e) {
|
|
1346
|
-
return ge(e);
|
|
1347
|
-
}, e.prototype.reconstructWithOptions = function (n, o) {
|
|
1348
|
-
return void 0 === o && (o = !0), new e(__assign(__assign({}, this.options), n), this.gs, o && this.names || void 0);
|
|
1349
|
-
}, e.prototype.allocateGSInstance = function (e) {
|
|
1350
|
-
return this.gs[e] = (this.gs[e] || 0) + 1;
|
|
1351
|
-
}, e.prototype.getTag = function () {
|
|
1352
|
-
return this.tag || (this.tag = (e = function (e) {
|
|
1353
|
-
var t = e.useCSSOMInjection,
|
|
1354
|
-
n = e.target;
|
|
1355
|
-
return e.isServer ? new Ae(n) : t ? new Ce(n) : new Ie(n);
|
|
1356
|
-
}(this.options), new fe(e)));
|
|
1357
|
-
var e;
|
|
1358
|
-
}, e.prototype.hasNameForId = function (e, t) {
|
|
1359
|
-
return this.names.has(e) && this.names.get(e).has(t);
|
|
1360
|
-
}, e.prototype.registerName = function (e, t) {
|
|
1361
|
-
if (ge(e), this.names.has(e)) this.names.get(e).add(t);else {
|
|
1362
|
-
var n = new Set();
|
|
1363
|
-
n.add(t), this.names.set(e, n);
|
|
1364
|
-
}
|
|
1365
|
-
}, e.prototype.insertRules = function (e, t, n) {
|
|
1366
|
-
this.registerName(e, t), this.getTag().insertRules(ge(e), n);
|
|
1367
|
-
}, e.prototype.clearNames = function (e) {
|
|
1368
|
-
this.names.has(e) && this.names.get(e).clear();
|
|
1369
|
-
}, e.prototype.clearRules = function (e) {
|
|
1370
|
-
this.getTag().clearGroup(ge(e)), this.clearNames(e);
|
|
1371
|
-
}, e.prototype.clearTag = function () {
|
|
1372
|
-
this.tag = void 0;
|
|
1373
|
-
}, e;
|
|
1374
|
-
}(),
|
|
1375
|
-
Te = /&/g,
|
|
1376
|
-
ke = /^\s*\/\/.*$/gm;
|
|
1377
|
-
function je(e, t) {
|
|
1378
|
-
return e.map(function (e) {
|
|
1379
|
-
return "rule" === e.type && (e.value = "".concat(t, " ").concat(e.value), e.value = e.value.replaceAll(",", ",".concat(t, " ")), e.props = e.props.map(function (e) {
|
|
1380
|
-
return "".concat(t, " ").concat(e);
|
|
1381
|
-
})), Array.isArray(e.children) && "@keyframes" !== e.type && (e.children = je(e.children, t)), e;
|
|
1382
|
-
});
|
|
1383
|
-
}
|
|
1384
|
-
function xe(e) {
|
|
1385
|
-
var t,
|
|
1386
|
-
n,
|
|
1387
|
-
o,
|
|
1388
|
-
r = void 0 === e ? C : e,
|
|
1389
|
-
s = r.options,
|
|
1390
|
-
i = void 0 === s ? C : s,
|
|
1391
|
-
a = r.plugins,
|
|
1392
|
-
c = void 0 === a ? _ : a,
|
|
1393
|
-
l = function (e, o, r) {
|
|
1394
|
-
return r.startsWith(n) && r.endsWith(n) && r.replaceAll(n, "").length > 0 ? ".".concat(t) : e;
|
|
1395
|
-
},
|
|
1396
|
-
u = c.slice();
|
|
1397
|
-
u.push(function (e) {
|
|
1398
|
-
e.type === RULESET && e.value.includes("&") && (e.props[0] = e.props[0].replace(Te, n).replace(o, l));
|
|
1399
|
-
}), i.prefix && u.push(prefixer), u.push(stringify);
|
|
1400
|
-
var p = function (e, r, s, a) {
|
|
1401
|
-
void 0 === r && (r = ""), void 0 === s && (s = ""), void 0 === a && (a = "&"), t = a, n = r, o = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1402
|
-
var c = e.replace(ke, ""),
|
|
1403
|
-
l = compile(s || r ? "".concat(s, " ").concat(r, " { ").concat(c, " }") : c);
|
|
1404
|
-
i.namespace && (l = je(l, i.namespace));
|
|
1405
|
-
var p = [];
|
|
1406
|
-
return serialize(l, middleware(u.concat(rulesheet(function (e) {
|
|
1407
|
-
return p.push(e);
|
|
1408
|
-
})))), p;
|
|
1409
|
-
};
|
|
1410
|
-
return p.hash = c.length ? c.reduce(function (e, t) {
|
|
1411
|
-
return t.name || he(15), M(e, t.name);
|
|
1412
|
-
}, F).toString() : "", p;
|
|
1413
|
-
}
|
|
1414
|
-
var Ve = new Re(),
|
|
1415
|
-
Fe = xe(),
|
|
1416
|
-
Me = React.createContext({
|
|
1417
|
-
shouldForwardProp: void 0,
|
|
1418
|
-
styleSheet: Ve,
|
|
1419
|
-
stylis: Fe
|
|
1420
|
-
});
|
|
1421
|
-
Me.Consumer;
|
|
1422
|
-
React.createContext(void 0);
|
|
1423
|
-
function Be() {
|
|
1424
|
-
return useContext(Me);
|
|
1425
|
-
}
|
|
1426
|
-
var Ge = function () {
|
|
1427
|
-
function e(e, t) {
|
|
1428
|
-
var n = this;
|
|
1429
|
-
this.inject = function (e, t) {
|
|
1430
|
-
void 0 === t && (t = Fe);
|
|
1431
|
-
var o = n.name + t.hash;
|
|
1432
|
-
e.hasNameForId(n.id, o) || e.insertRules(n.id, o, t(n.rules, o, "@keyframes"));
|
|
1433
|
-
}, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = t, ue(this, function () {
|
|
1434
|
-
throw he(12, String(n.name));
|
|
1435
|
-
});
|
|
1436
|
-
}
|
|
1437
|
-
return e.prototype.getName = function (e) {
|
|
1438
|
-
return void 0 === e && (e = Fe), this.name + e.hash;
|
|
1439
|
-
}, e;
|
|
1440
|
-
}(),
|
|
1441
|
-
Ye = function (e) {
|
|
1442
|
-
return e >= "A" && e <= "Z";
|
|
1443
|
-
};
|
|
1444
|
-
function qe(e) {
|
|
1445
|
-
for (var t = "", n = 0; n < e.length; n++) {
|
|
1446
|
-
var o = e[n];
|
|
1447
|
-
if (1 === n && "-" === o && "-" === e[0]) return e;
|
|
1448
|
-
Ye(o) ? t += "-" + o.toLowerCase() : t += o;
|
|
1449
|
-
}
|
|
1450
|
-
return t.startsWith("ms-") ? "-" + t : t;
|
|
1451
|
-
}
|
|
1452
|
-
var We = function (e) {
|
|
1453
|
-
return null == e || !1 === e || "" === e;
|
|
1454
|
-
},
|
|
1455
|
-
He = function (t) {
|
|
1456
|
-
var n,
|
|
1457
|
-
o,
|
|
1458
|
-
r = [];
|
|
1459
|
-
for (var s in t) {
|
|
1460
|
-
var i = t[s];
|
|
1461
|
-
t.hasOwnProperty(s) && !We(i) && (Array.isArray(i) && i.isCss || re(i) ? r.push("".concat(qe(s), ":"), i, ";") : ce(i) ? r.push.apply(r, __spreadArray(__spreadArray(["".concat(s, " {")], He(i), !1), ["}"], !1)) : r.push("".concat(qe(s), ": ").concat((n = s, null == (o = i) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || n in unitlessKeys || n.startsWith("--") ? String(o).trim() : "".concat(o, "px")), ";")));
|
|
1462
|
-
}
|
|
1463
|
-
return r;
|
|
1464
|
-
};
|
|
1465
|
-
function Ue(e, t, n, o) {
|
|
1466
|
-
if (We(e)) return [];
|
|
1467
|
-
if (se(e)) return [".".concat(e.styledComponentId)];
|
|
1468
|
-
if (re(e)) {
|
|
1469
|
-
if (!re(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
1470
|
-
var r = e(t);
|
|
1471
|
-
return "production" === process.env.NODE_ENV || "object" != typeof r || Array.isArray(r) || r instanceof Ge || ce(r) || null === r || console.error("".concat(B(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Ue(r, t, n, o);
|
|
1472
|
-
}
|
|
1473
|
-
var s;
|
|
1474
|
-
return e instanceof Ge ? n ? (e.inject(n, o), [e.getName(o)]) : [e] : ce(e) ? He(e) : Array.isArray(e) ? Array.prototype.concat.apply(_, e.map(function (e) {
|
|
1475
|
-
return Ue(e, t, n, o);
|
|
1476
|
-
})) : [e.toString()];
|
|
1477
|
-
}
|
|
1478
|
-
function Je(e) {
|
|
1479
|
-
for (var t = 0; t < e.length; t += 1) {
|
|
1480
|
-
var n = e[t];
|
|
1481
|
-
if (re(n) && !se(n)) return !1;
|
|
1482
|
-
}
|
|
1483
|
-
return !0;
|
|
1484
|
-
}
|
|
1485
|
-
var Xe = z(v),
|
|
1486
|
-
Ze = function () {
|
|
1487
|
-
function e(e, t, n) {
|
|
1488
|
-
this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Je(e), this.componentId = t, this.baseHash = M(Xe, t), this.baseStyle = n, Re.registerId(t);
|
|
1489
|
-
}
|
|
1490
|
-
return e.prototype.generateAndInjectStyles = function (e, t, n) {
|
|
1491
|
-
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, t, n) : "";
|
|
1492
|
-
if (this.isStatic && !n.hash) {
|
|
1493
|
-
if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) o = ie(o, this.staticRulesId);else {
|
|
1494
|
-
var r = ae(Ue(this.rules, e, t, n)),
|
|
1495
|
-
s = x(M(this.baseHash, r) >>> 0);
|
|
1496
|
-
if (!t.hasNameForId(this.componentId, s)) {
|
|
1497
|
-
var i = n(r, ".".concat(s), void 0, this.componentId);
|
|
1498
|
-
t.insertRules(this.componentId, s, i);
|
|
1499
|
-
}
|
|
1500
|
-
o = ie(o, s), this.staticRulesId = s;
|
|
1501
|
-
}
|
|
1502
|
-
} else {
|
|
1503
|
-
for (var a = M(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++) {
|
|
1504
|
-
var u = this.rules[l];
|
|
1505
|
-
if ("string" == typeof u) c += u, "production" !== process.env.NODE_ENV && (a = M(a, u));else if (u) {
|
|
1506
|
-
var p = ae(Ue(u, e, t, n));
|
|
1507
|
-
a = M(a, p + l), c += p;
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1510
|
-
if (c) {
|
|
1511
|
-
var d = x(a >>> 0);
|
|
1512
|
-
t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c, ".".concat(d), void 0, this.componentId)), o = ie(o, d);
|
|
1513
|
-
}
|
|
1514
|
-
}
|
|
1515
|
-
return o;
|
|
1516
|
-
}, e;
|
|
1517
|
-
}(),
|
|
1518
|
-
Ke = React.createContext(void 0);
|
|
1519
|
-
Ke.Consumer;
|
|
1520
|
-
var nt = {},
|
|
1521
|
-
ot = new Set();
|
|
1522
|
-
function rt(e, r, s) {
|
|
1523
|
-
var i = se(e),
|
|
1524
|
-
a = e,
|
|
1525
|
-
c = !L(e),
|
|
1526
|
-
p = r.attrs,
|
|
1527
|
-
d = void 0 === p ? _ : p,
|
|
1528
|
-
h = r.componentId,
|
|
1529
|
-
f = void 0 === h ? function (e, t) {
|
|
1530
|
-
var n = "string" != typeof e ? "sc" : R(e);
|
|
1531
|
-
nt[n] = (nt[n] || 0) + 1;
|
|
1532
|
-
var o = "".concat(n, "-").concat($(v + n + nt[n]));
|
|
1533
|
-
return t ? "".concat(t, "-").concat(o) : o;
|
|
1534
|
-
}(r.displayName, r.parentComponentId) : h,
|
|
1535
|
-
m = r.displayName,
|
|
1536
|
-
y = void 0 === m ? function (e) {
|
|
1537
|
-
return L(e) ? "styled.".concat(e) : "Styled(".concat(B(e), ")");
|
|
1538
|
-
}(e) : m,
|
|
1539
|
-
g = r.displayName && r.componentId ? "".concat(R(r.displayName), "-").concat(r.componentId) : r.componentId || f,
|
|
1540
|
-
S = i && a.attrs ? a.attrs.concat(d).filter(Boolean) : d,
|
|
1541
|
-
w = r.shouldForwardProp;
|
|
1542
|
-
if (i && a.shouldForwardProp) {
|
|
1543
|
-
var b = a.shouldForwardProp;
|
|
1544
|
-
if (r.shouldForwardProp) {
|
|
1545
|
-
var E = r.shouldForwardProp;
|
|
1546
|
-
w = function (e, t) {
|
|
1547
|
-
return b(e, t) && E(e, t);
|
|
1548
|
-
};
|
|
1549
|
-
} else w = b;
|
|
1550
|
-
}
|
|
1551
|
-
var N = new Ze(s, g, i ? a.componentStyle : void 0);
|
|
1552
|
-
function O(e, r) {
|
|
1553
|
-
return function (e, r, s) {
|
|
1554
|
-
var i = e.attrs,
|
|
1555
|
-
a = e.componentStyle,
|
|
1556
|
-
c = e.defaultProps,
|
|
1557
|
-
p = e.foldedComponentIds,
|
|
1558
|
-
d = e.styledComponentId,
|
|
1559
|
-
h = e.target,
|
|
1560
|
-
f = React.useContext(Ke),
|
|
1561
|
-
m = Be(),
|
|
1562
|
-
y = e.shouldForwardProp || m.shouldForwardProp;
|
|
1563
|
-
"production" !== process.env.NODE_ENV && useDebugValue(d);
|
|
1564
|
-
var v = I(r, f, c) || C,
|
|
1565
|
-
g = function (e, n, o) {
|
|
1566
|
-
for (var r, s = __assign(__assign({}, n), {
|
|
1567
|
-
className: void 0,
|
|
1568
|
-
theme: o
|
|
1569
|
-
}), i = 0; i < e.length; i += 1) {
|
|
1570
|
-
var a = re(r = e[i]) ? r(s) : r;
|
|
1571
|
-
for (var c in a) s[c] = "className" === c ? ie(s[c], a[c]) : "style" === c ? __assign(__assign({}, s[c]), a[c]) : a[c];
|
|
1572
|
-
}
|
|
1573
|
-
return n.className && (s.className = ie(s.className, n.className)), s;
|
|
1574
|
-
}(i, r, v),
|
|
1575
|
-
S = g.as || h,
|
|
1576
|
-
w = {};
|
|
1577
|
-
for (var b in g) void 0 === g[b] || "$" === b[0] || "as" === b || "theme" === b && g.theme === v || ("forwardedAs" === b ? w.as = g.forwardedAs : y && !y(b, S) || (w[b] = g[b], y || "development" !== process.env.NODE_ENV || isPropValid(b) || ot.has(b) || !A.has(S) || (ot.add(b), console.warn('styled-components: it looks like an unknown prop "'.concat(b, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
1578
|
-
var E = function (e, t) {
|
|
1579
|
-
var n = Be(),
|
|
1580
|
-
o = e.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
1581
|
-
return "production" !== process.env.NODE_ENV && useDebugValue(o), o;
|
|
1582
|
-
}(a, g);
|
|
1583
|
-
"production" !== process.env.NODE_ENV && e.warnTooManyClasses && e.warnTooManyClasses(E);
|
|
1584
|
-
var N = ie(p, d);
|
|
1585
|
-
return E && (N += " " + E), g.className && (N += " " + g.className), w[L(S) && !A.has(S) ? "class" : "className"] = N, w.ref = s, createElement(S, w);
|
|
1586
|
-
}(D, e, r);
|
|
1587
|
-
}
|
|
1588
|
-
O.displayName = y;
|
|
1589
|
-
var D = React.forwardRef(O);
|
|
1590
|
-
return D.attrs = S, D.componentStyle = N, D.displayName = y, D.shouldForwardProp = w, D.foldedComponentIds = i ? ie(a.foldedComponentIds, a.styledComponentId) : "", D.styledComponentId = g, D.target = i ? a.target : e, Object.defineProperty(D, "defaultProps", {
|
|
1591
|
-
get: function () {
|
|
1592
|
-
return this._foldedDefaultProps;
|
|
1593
|
-
},
|
|
1594
|
-
set: function (e) {
|
|
1595
|
-
this._foldedDefaultProps = i ? function (e) {
|
|
1596
|
-
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1597
|
-
for (var o = 0, r = t; o < r.length; o++) le(e, r[o], !0);
|
|
1598
|
-
return e;
|
|
1599
|
-
}({}, a.defaultProps, e) : e;
|
|
1600
|
-
}
|
|
1601
|
-
}), "production" !== process.env.NODE_ENV && (P(y, g), D.warnTooManyClasses = function (e, t) {
|
|
1602
|
-
var n = {},
|
|
1603
|
-
o = !1;
|
|
1604
|
-
return function (r) {
|
|
1605
|
-
if (!o && (n[r] = !0, Object.keys(n).length >= 200)) {
|
|
1606
|
-
var s = t ? ' with the id of "'.concat(t, '"') : "";
|
|
1607
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(e).concat(s, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), o = !0, n = {};
|
|
1608
|
-
}
|
|
1609
|
-
};
|
|
1610
|
-
}(y, g)), ue(D, function () {
|
|
1611
|
-
return ".".concat(D.styledComponentId);
|
|
1612
|
-
}), c && oe(D, e, {
|
|
1613
|
-
attrs: !0,
|
|
1614
|
-
componentStyle: !0,
|
|
1615
|
-
displayName: !0,
|
|
1616
|
-
foldedComponentIds: !0,
|
|
1617
|
-
shouldForwardProp: !0,
|
|
1618
|
-
styledComponentId: !0,
|
|
1619
|
-
target: !0
|
|
1620
|
-
}), D;
|
|
1621
|
-
}
|
|
1622
|
-
function st(e, t) {
|
|
1623
|
-
for (var n = [e[0]], o = 0, r = t.length; o < r; o += 1) n.push(t[o], e[o + 1]);
|
|
1624
|
-
return n;
|
|
1625
|
-
}
|
|
1626
|
-
var it = function (e) {
|
|
1627
|
-
return Object.assign(e, {
|
|
1628
|
-
isCss: !0
|
|
1629
|
-
});
|
|
1630
|
-
};
|
|
1631
|
-
function at(t) {
|
|
1632
|
-
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1633
|
-
if (re(t) || ce(t)) return it(Ue(st(_, __spreadArray([t], n, !0))));
|
|
1634
|
-
var r = t;
|
|
1635
|
-
return 0 === n.length && 1 === r.length && "string" == typeof r[0] ? Ue(r) : it(Ue(st(r, n)));
|
|
1636
|
-
}
|
|
1637
|
-
function ct(n, o, r) {
|
|
1638
|
-
if (void 0 === r && (r = C), !o) throw he(1, o);
|
|
1639
|
-
var s = function (t) {
|
|
1640
|
-
for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
|
|
1641
|
-
return n(o, r, at.apply(void 0, __spreadArray([t], s, !1)));
|
|
1642
|
-
};
|
|
1643
|
-
return s.attrs = function (e) {
|
|
1644
|
-
return ct(n, o, __assign(__assign({}, r), {
|
|
1645
|
-
attrs: Array.prototype.concat(r.attrs, e).filter(Boolean)
|
|
1646
|
-
}));
|
|
1647
|
-
}, s.withConfig = function (e) {
|
|
1648
|
-
return ct(n, o, __assign(__assign({}, r), e));
|
|
1649
|
-
}, s;
|
|
1650
|
-
}
|
|
1651
|
-
var lt = function (e) {
|
|
1652
|
-
return ct(rt, e);
|
|
1653
|
-
},
|
|
1654
|
-
ut = lt;
|
|
1655
|
-
A.forEach(function (e) {
|
|
1656
|
-
ut[e] = lt(e);
|
|
1657
|
-
});
|
|
1658
|
-
function ht(t) {
|
|
1659
|
-
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1660
|
-
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
1661
|
-
var r = ae(at.apply(void 0, __spreadArray([t], n, !1))),
|
|
1662
|
-
s = $(r);
|
|
1663
|
-
return new Ge(s, r);
|
|
1664
|
-
}
|
|
1665
|
-
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
|
|
1666
|
-
var gt = "__sc-".concat(f, "__");
|
|
1667
|
-
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[gt] || (window[gt] = 0), 1 === window[gt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window[gt] += 1);
|
|
1668
33
|
|
|
1669
34
|
const Colors = {
|
|
1670
35
|
PRIMARY: {
|
|
@@ -1716,7 +81,7 @@ const EditableTheme = {
|
|
|
1716
81
|
PRIMARY_COLOR: Colors.PRIMARY,
|
|
1717
82
|
};
|
|
1718
83
|
|
|
1719
|
-
const Header$3 =
|
|
84
|
+
const Header$3 = styled.div `
|
|
1720
85
|
display: flex;
|
|
1721
86
|
align-items: center;
|
|
1722
87
|
justify-content: space-between;
|
|
@@ -1727,7 +92,7 @@ const Header$3 = ut.div `
|
|
|
1727
92
|
height: 50px;
|
|
1728
93
|
cursor: pointer;
|
|
1729
94
|
`;
|
|
1730
|
-
const Title$2 =
|
|
95
|
+
const Title$2 = styled.div `
|
|
1731
96
|
font-size: ${FontSizes.DEFAULT};
|
|
1732
97
|
font-weight: 400;
|
|
1733
98
|
color: ${Colors.BLACK.Hex};
|
|
@@ -1744,7 +109,7 @@ const Accordion = (_a) => {
|
|
|
1744
109
|
open ? children : null));
|
|
1745
110
|
};
|
|
1746
111
|
|
|
1747
|
-
const StyledButton =
|
|
112
|
+
const StyledButton = styled.button `
|
|
1748
113
|
height: ${props => (props.$small ? '30px' : '40px')};
|
|
1749
114
|
line-height: 1em;
|
|
1750
115
|
border-radius: ${props => (props.$small ? '15px' : '20px')};
|
|
@@ -1787,21 +152,21 @@ const StyledButton = ut.button `
|
|
|
1787
152
|
opacity: ${props => (props.$disabled ? 0.6 : 1)};
|
|
1788
153
|
}
|
|
1789
154
|
`;
|
|
1790
|
-
const Label$5 =
|
|
155
|
+
const Label$5 = styled.span `
|
|
1791
156
|
color: ${props => props.$content_color || '#fff'};
|
|
1792
157
|
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
1793
158
|
font-family: ${FontStyles.DEFAULT};
|
|
1794
159
|
font-weight: 500;
|
|
1795
160
|
line-height: 1;
|
|
1796
161
|
`;
|
|
1797
|
-
const StyledIcon$6 =
|
|
162
|
+
const StyledIcon$6 = styled.span `
|
|
1798
163
|
margin-left: ${props => (props.$hasChildren ? '6px' : '0px')};
|
|
1799
164
|
margin-right: ${props => (props.$hasChildren ? '-4px' : '0px')};
|
|
1800
165
|
display: flex;
|
|
1801
166
|
align-items: center;
|
|
1802
167
|
box-sizing: border-box;
|
|
1803
168
|
`;
|
|
1804
|
-
const Badge$1 =
|
|
169
|
+
const Badge$1 = styled.span `
|
|
1805
170
|
width: ${props => (props.$small ? '20px' : '24px')};
|
|
1806
171
|
height: ${props => (props.$small ? '20px' : '24px')};
|
|
1807
172
|
line-height: 1;
|
|
@@ -1820,7 +185,7 @@ const Badge$1 = ut.span `
|
|
|
1820
185
|
`;
|
|
1821
186
|
const Button = (_a) => {
|
|
1822
187
|
var { badge, children, disabled = false, icon, isForm = false, loading = false, margin = '', onClick, small = false, format = 'primary' } = _a, accessibleProps = __rest(_a, ["badge", "children", "disabled", "icon", "isForm", "loading", "margin", "onClick", "small", "format"]);
|
|
1823
|
-
const theme = useContext(
|
|
188
|
+
const theme = useContext(ThemeContext) || EditableTheme;
|
|
1824
189
|
const has_children = children && children.length > 0;
|
|
1825
190
|
const button_type_mapping = {
|
|
1826
191
|
primary: {
|
|
@@ -1860,7 +225,7 @@ const Button = (_a) => {
|
|
|
1860
225
|
badge && !icon ? (React.createElement(Badge$1, { "$bg_color": format_styles.badge_bg_color, "$content_color": format_styles.badge_content_color, "$small": small }, badge)) : null));
|
|
1861
226
|
};
|
|
1862
227
|
|
|
1863
|
-
const StyledComponent =
|
|
228
|
+
const StyledComponent = styled.p `
|
|
1864
229
|
color: ${props => Colors[props.$color || 'BLACK'].Hex};
|
|
1865
230
|
font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
1866
231
|
line-height: ${props => (props.$type === 'small' ? '1.5em' : '1.6em')};
|
|
@@ -1881,7 +246,7 @@ Copy.defaultProps = {
|
|
|
1881
246
|
type: 'default',
|
|
1882
247
|
};
|
|
1883
248
|
|
|
1884
|
-
const H1 =
|
|
249
|
+
const H1 = styled.h1 `
|
|
1885
250
|
color: ${Colors.BLACK.Hex};
|
|
1886
251
|
font-size: 30px;
|
|
1887
252
|
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
@@ -1891,7 +256,7 @@ const H1 = ut.h1 `
|
|
|
1891
256
|
padding: ${props => props.$padding || '0px'};
|
|
1892
257
|
box-sizing: border-box;
|
|
1893
258
|
`;
|
|
1894
|
-
const H2 =
|
|
259
|
+
const H2 = styled.h2 `
|
|
1895
260
|
color: ${Colors.BLACK.Hex};
|
|
1896
261
|
font-size: 24px;
|
|
1897
262
|
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
@@ -1901,7 +266,7 @@ const H2 = ut.h2 `
|
|
|
1901
266
|
padding: ${props => props.$padding || '0px'};
|
|
1902
267
|
box-sizing: border-box;
|
|
1903
268
|
`;
|
|
1904
|
-
const H3 =
|
|
269
|
+
const H3 = styled.h3 `
|
|
1905
270
|
color: ${Colors.BLACK.Hex};
|
|
1906
271
|
font-size: 18px;
|
|
1907
272
|
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
@@ -1930,7 +295,7 @@ Heading.defaultProps = {
|
|
|
1930
295
|
type: 'primary',
|
|
1931
296
|
};
|
|
1932
297
|
|
|
1933
|
-
const Wrapper$i =
|
|
298
|
+
const Wrapper$i = styled.div `
|
|
1934
299
|
position: fixed;
|
|
1935
300
|
top: 0;
|
|
1936
301
|
right: 0;
|
|
@@ -1943,7 +308,7 @@ const Wrapper$i = ut.div `
|
|
|
1943
308
|
justify-content: center;
|
|
1944
309
|
box-sizing: border-box;
|
|
1945
310
|
`;
|
|
1946
|
-
const Container$3 =
|
|
311
|
+
const Container$3 = styled.dialog `
|
|
1947
312
|
max-width: 600px;
|
|
1948
313
|
width: auto;
|
|
1949
314
|
border-radius: 8px;
|
|
@@ -1956,7 +321,7 @@ const Container$3 = ut.dialog `
|
|
|
1956
321
|
text-align: center;
|
|
1957
322
|
box-sizing: border-box;
|
|
1958
323
|
`;
|
|
1959
|
-
const Buttons =
|
|
324
|
+
const Buttons = styled.div `
|
|
1960
325
|
display: flex;
|
|
1961
326
|
gap: 10px;
|
|
1962
327
|
align-items: center;
|
|
@@ -1976,7 +341,7 @@ const ActionDialog = (_a) => {
|
|
|
1976
341
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format === 'red' ? 'red' : 'primary' }))) : null)) : null)));
|
|
1977
342
|
};
|
|
1978
343
|
|
|
1979
|
-
const Wrapper$h =
|
|
344
|
+
const Wrapper$h = styled.div `
|
|
1980
345
|
border: 1px solid #f1f1f1;
|
|
1981
346
|
border-radius: 4px;
|
|
1982
347
|
border-left-width: 4px;
|
|
@@ -1987,10 +352,10 @@ const Wrapper$h = ut.div `
|
|
|
1987
352
|
padding: ${({ $small }) => ($small ? '11px' : '20px')};
|
|
1988
353
|
box-sizing: border-box;
|
|
1989
354
|
`;
|
|
1990
|
-
const StyledIcon$5 =
|
|
355
|
+
const StyledIcon$5 = styled(Icon) `
|
|
1991
356
|
flex-shrink: 0;
|
|
1992
357
|
`;
|
|
1993
|
-
const Action$1 =
|
|
358
|
+
const Action$1 = styled.div `
|
|
1994
359
|
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
1995
360
|
font-size: ${FontSizes.DEFAULT};
|
|
1996
361
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -2001,7 +366,7 @@ const Action$1 = ut.div `
|
|
|
2001
366
|
Action$1.defaultProps = { theme: EditableTheme };
|
|
2002
367
|
const Alert = (_a) => {
|
|
2003
368
|
var { action, type = 'info', title, description, small = false } = _a, accessibleProps = __rest(_a, ["action", "type", "title", "description", "small"]);
|
|
2004
|
-
const theme = useContext(
|
|
369
|
+
const theme = useContext(ThemeContext) || EditableTheme;
|
|
2005
370
|
const type_mapping = {
|
|
2006
371
|
info: {
|
|
2007
372
|
color: theme.PRIMARY_COLOR.Hex,
|
|
@@ -2028,7 +393,7 @@ const Alert = (_a) => {
|
|
|
2028
393
|
action && !small ? React.createElement(Action$1, { onClick: action.onClick }, action.label) : null)));
|
|
2029
394
|
};
|
|
2030
395
|
|
|
2031
|
-
const Wrapper$g =
|
|
396
|
+
const Wrapper$g = styled.div `
|
|
2032
397
|
border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
2033
398
|
border-radius: 8px;
|
|
2034
399
|
box-sizing: border-box;
|
|
@@ -2038,27 +403,27 @@ const Wrapper$g = ut.div `
|
|
|
2038
403
|
padding: 16px 20px;
|
|
2039
404
|
`;
|
|
2040
405
|
Wrapper$g.defaultProps = { theme: EditableTheme };
|
|
2041
|
-
const Left =
|
|
406
|
+
const Left = styled.div `
|
|
2042
407
|
box-sizing: border-box;
|
|
2043
408
|
display: flex;
|
|
2044
409
|
align-items: center;
|
|
2045
410
|
justify-content: space-between;
|
|
2046
411
|
flex-shrink: 0;
|
|
2047
412
|
`;
|
|
2048
|
-
const Info$1 =
|
|
413
|
+
const Info$1 = styled.div `
|
|
2049
414
|
box-sizing: border-box;
|
|
2050
415
|
display: flex;
|
|
2051
416
|
align-items: center;
|
|
2052
417
|
margin-right: 30px;
|
|
2053
418
|
`;
|
|
2054
|
-
const Selected =
|
|
419
|
+
const Selected = styled.span `
|
|
2055
420
|
font-size: 14px;
|
|
2056
421
|
font-weight: 400;
|
|
2057
422
|
font-family: ${FontStyles.DEFAULT};
|
|
2058
423
|
color: ${Colors.BLACK.Hex};
|
|
2059
424
|
line-height: 1;
|
|
2060
425
|
`;
|
|
2061
|
-
const Clear =
|
|
426
|
+
const Clear = styled.span `
|
|
2062
427
|
font-size: 14px;
|
|
2063
428
|
font-weight: 400;
|
|
2064
429
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -2070,13 +435,13 @@ const Clear = ut.span `
|
|
|
2070
435
|
border-left: 1px solid #ccc;
|
|
2071
436
|
`;
|
|
2072
437
|
Clear.defaultProps = { theme: EditableTheme };
|
|
2073
|
-
const Actions$1 =
|
|
438
|
+
const Actions$1 = styled.div `
|
|
2074
439
|
box-sizing: border-box;
|
|
2075
440
|
display: flex;
|
|
2076
441
|
align-items: center;
|
|
2077
442
|
column-gap: 10px;
|
|
2078
443
|
`;
|
|
2079
|
-
const Error
|
|
444
|
+
const Error = styled.div `
|
|
2080
445
|
box-sizing: border-box;
|
|
2081
446
|
display: flex;
|
|
2082
447
|
align-items: center;
|
|
@@ -2088,7 +453,7 @@ const Error$1 = ut.div `
|
|
|
2088
453
|
overflow: hidden;
|
|
2089
454
|
margin-left: 30px;
|
|
2090
455
|
`;
|
|
2091
|
-
const ErrorMsg =
|
|
456
|
+
const ErrorMsg = styled.span `
|
|
2092
457
|
font-size: 14px;
|
|
2093
458
|
font-weight: 500;
|
|
2094
459
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -2106,12 +471,12 @@ const BulkActionBar = (_a) => {
|
|
|
2106
471
|
" Selected"),
|
|
2107
472
|
onClear ? React.createElement(Clear, { onClick: onClear }, "Clear") : null),
|
|
2108
473
|
React.createElement(Actions$1, null, actions.map((action, i) => (React.createElement(Button, Object.assign({}, action, { key: i, small: true })))))),
|
|
2109
|
-
errorMsg ? (React.createElement(Error
|
|
474
|
+
errorMsg ? (React.createElement(Error, null,
|
|
2110
475
|
React.createElement(Icon, { color: Colors.RED.Hex, path: mdiInformationOutline, size: '20px' }),
|
|
2111
476
|
React.createElement(ErrorMsg, null, errorMsg))) : null));
|
|
2112
477
|
};
|
|
2113
478
|
|
|
2114
|
-
const Wrapper$f =
|
|
479
|
+
const Wrapper$f = styled.div `
|
|
2115
480
|
background: #fff;
|
|
2116
481
|
border-radius: 8px;
|
|
2117
482
|
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
@@ -2122,7 +487,7 @@ const Wrapper$f = ut.div `
|
|
|
2122
487
|
padding: 10px;
|
|
2123
488
|
width: 200px;
|
|
2124
489
|
`;
|
|
2125
|
-
const MenuItem =
|
|
490
|
+
const MenuItem = styled.div `
|
|
2126
491
|
align-items: center;
|
|
2127
492
|
border-radius: 8px;
|
|
2128
493
|
border: 1px solid transparent;
|
|
@@ -2141,7 +506,7 @@ const MenuItem = ut.div `
|
|
|
2141
506
|
}
|
|
2142
507
|
`;
|
|
2143
508
|
MenuItem.defaultProps = { theme: EditableTheme };
|
|
2144
|
-
const Title$1 =
|
|
509
|
+
const Title$1 = styled.span `
|
|
2145
510
|
font-family: Roboto;
|
|
2146
511
|
font-size: 14px;
|
|
2147
512
|
font-weight: 400;
|
|
@@ -2159,11 +524,11 @@ const MoreMenu = (_a) => {
|
|
|
2159
524
|
})));
|
|
2160
525
|
};
|
|
2161
526
|
|
|
2162
|
-
const Wrapper$e =
|
|
527
|
+
const Wrapper$e = styled.div `
|
|
2163
528
|
position: relative;
|
|
2164
529
|
display: inline-block;
|
|
2165
530
|
`;
|
|
2166
|
-
const StyledMoreMenu =
|
|
531
|
+
const StyledMoreMenu = styled(MoreMenu) `
|
|
2167
532
|
position: absolute;
|
|
2168
533
|
right: ${props => (props.$position === 'right' ? '0px' : 'auto')};
|
|
2169
534
|
left: ${props => (props.$position === 'left' ? '0px' : 'auto')};
|
|
@@ -2178,7 +543,7 @@ const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = '
|
|
|
2178
543
|
show_menu ? (React.createElement(StyledMoreMenu, { "$menuWidth": menuWidth, "$position": position, "$small": small, maxHeight: maxHeight, menuItems: menuItems })) : null));
|
|
2179
544
|
};
|
|
2180
545
|
|
|
2181
|
-
const Wrapper$d =
|
|
546
|
+
const Wrapper$d = styled.label `
|
|
2182
547
|
border-radius: 4px;
|
|
2183
548
|
padding: 4px 0px 4px 6px;
|
|
2184
549
|
margin-left: -6px;
|
|
@@ -2194,13 +559,13 @@ const Wrapper$d = ut.label `
|
|
|
2194
559
|
}
|
|
2195
560
|
`;
|
|
2196
561
|
Wrapper$d.defaultProps = { theme: EditableTheme };
|
|
2197
|
-
const Input$2 =
|
|
562
|
+
const Input$2 = styled.input `
|
|
2198
563
|
font-size: 20px;
|
|
2199
564
|
margin: 5px 0px 0px 0px;
|
|
2200
565
|
line-height: 1.1em;
|
|
2201
566
|
box-sizing: border-box;
|
|
2202
567
|
`;
|
|
2203
|
-
const Label$4 =
|
|
568
|
+
const Label$4 = styled.span `
|
|
2204
569
|
font-family: ${FontStyles.DEFAULT};
|
|
2205
570
|
font-size: ${FontSizes.DEFAULT};
|
|
2206
571
|
font-weight: 400;
|
|
@@ -2216,12 +581,12 @@ const Checkbox = (_a) => {
|
|
|
2216
581
|
children ? React.createElement(Label$4, null, children) : null));
|
|
2217
582
|
};
|
|
2218
583
|
|
|
2219
|
-
const SelectAll =
|
|
584
|
+
const SelectAll = styled.div `
|
|
2220
585
|
padding: 8px 12px;
|
|
2221
586
|
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
2222
587
|
box-sizing: border-box;
|
|
2223
588
|
`;
|
|
2224
|
-
const Options$1 =
|
|
589
|
+
const Options$1 = styled.div `
|
|
2225
590
|
padding: 12px;
|
|
2226
591
|
box-sizing: border-box;
|
|
2227
592
|
`;
|
|
@@ -2262,325 +627,7 @@ const Checklist = (_a) => {
|
|
|
2262
627
|
}))));
|
|
2263
628
|
};
|
|
2264
629
|
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
(function (module, exports) {
|
|
2268
|
-
!function (t, e) {
|
|
2269
|
-
module.exports = e() ;
|
|
2270
|
-
}(commonjsGlobal, function () {
|
|
2271
|
-
|
|
2272
|
-
var t = 1e3,
|
|
2273
|
-
e = 6e4,
|
|
2274
|
-
n = 36e5,
|
|
2275
|
-
r = "millisecond",
|
|
2276
|
-
i = "second",
|
|
2277
|
-
s = "minute",
|
|
2278
|
-
u = "hour",
|
|
2279
|
-
a = "day",
|
|
2280
|
-
o = "week",
|
|
2281
|
-
f = "month",
|
|
2282
|
-
h = "quarter",
|
|
2283
|
-
c = "year",
|
|
2284
|
-
d = "date",
|
|
2285
|
-
l = "Invalid Date",
|
|
2286
|
-
$ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
2287
|
-
y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
2288
|
-
M = {
|
|
2289
|
-
name: "en",
|
|
2290
|
-
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
2291
|
-
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
2292
|
-
ordinal: function (t) {
|
|
2293
|
-
var e = ["th", "st", "nd", "rd"],
|
|
2294
|
-
n = t % 100;
|
|
2295
|
-
return "[" + t + (e[(n - 20) % 10] || e[n] || e[0]) + "]";
|
|
2296
|
-
}
|
|
2297
|
-
},
|
|
2298
|
-
m = function (t, e, n) {
|
|
2299
|
-
var r = String(t);
|
|
2300
|
-
return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;
|
|
2301
|
-
},
|
|
2302
|
-
v = {
|
|
2303
|
-
s: m,
|
|
2304
|
-
z: function (t) {
|
|
2305
|
-
var e = -t.utcOffset(),
|
|
2306
|
-
n = Math.abs(e),
|
|
2307
|
-
r = Math.floor(n / 60),
|
|
2308
|
-
i = n % 60;
|
|
2309
|
-
return (e <= 0 ? "+" : "-") + m(r, 2, "0") + ":" + m(i, 2, "0");
|
|
2310
|
-
},
|
|
2311
|
-
m: function t(e, n) {
|
|
2312
|
-
if (e.date() < n.date()) return -t(n, e);
|
|
2313
|
-
var r = 12 * (n.year() - e.year()) + (n.month() - e.month()),
|
|
2314
|
-
i = e.clone().add(r, f),
|
|
2315
|
-
s = n - i < 0,
|
|
2316
|
-
u = e.clone().add(r + (s ? -1 : 1), f);
|
|
2317
|
-
return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
|
|
2318
|
-
},
|
|
2319
|
-
a: function (t) {
|
|
2320
|
-
return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
|
|
2321
|
-
},
|
|
2322
|
-
p: function (t) {
|
|
2323
|
-
return {
|
|
2324
|
-
M: f,
|
|
2325
|
-
y: c,
|
|
2326
|
-
w: o,
|
|
2327
|
-
d: a,
|
|
2328
|
-
D: d,
|
|
2329
|
-
h: u,
|
|
2330
|
-
m: s,
|
|
2331
|
-
s: i,
|
|
2332
|
-
ms: r,
|
|
2333
|
-
Q: h
|
|
2334
|
-
}[t] || String(t || "").toLowerCase().replace(/s$/, "");
|
|
2335
|
-
},
|
|
2336
|
-
u: function (t) {
|
|
2337
|
-
return void 0 === t;
|
|
2338
|
-
}
|
|
2339
|
-
},
|
|
2340
|
-
g = "en",
|
|
2341
|
-
D = {};
|
|
2342
|
-
D[g] = M;
|
|
2343
|
-
var p = function (t) {
|
|
2344
|
-
return t instanceof _;
|
|
2345
|
-
},
|
|
2346
|
-
S = function t(e, n, r) {
|
|
2347
|
-
var i;
|
|
2348
|
-
if (!e) return g;
|
|
2349
|
-
if ("string" == typeof e) {
|
|
2350
|
-
var s = e.toLowerCase();
|
|
2351
|
-
D[s] && (i = s), n && (D[s] = n, i = s);
|
|
2352
|
-
var u = e.split("-");
|
|
2353
|
-
if (!i && u.length > 1) return t(u[0]);
|
|
2354
|
-
} else {
|
|
2355
|
-
var a = e.name;
|
|
2356
|
-
D[a] = e, i = a;
|
|
2357
|
-
}
|
|
2358
|
-
return !r && i && (g = i), i || !r && g;
|
|
2359
|
-
},
|
|
2360
|
-
w = function (t, e) {
|
|
2361
|
-
if (p(t)) return t.clone();
|
|
2362
|
-
var n = "object" == typeof e ? e : {};
|
|
2363
|
-
return n.date = t, n.args = arguments, new _(n);
|
|
2364
|
-
},
|
|
2365
|
-
O = v;
|
|
2366
|
-
O.l = S, O.i = p, O.w = function (t, e) {
|
|
2367
|
-
return w(t, {
|
|
2368
|
-
locale: e.$L,
|
|
2369
|
-
utc: e.$u,
|
|
2370
|
-
x: e.$x,
|
|
2371
|
-
$offset: e.$offset
|
|
2372
|
-
});
|
|
2373
|
-
};
|
|
2374
|
-
var _ = function () {
|
|
2375
|
-
function M(t) {
|
|
2376
|
-
this.$L = S(t.locale, null, !0), this.parse(t);
|
|
2377
|
-
}
|
|
2378
|
-
var m = M.prototype;
|
|
2379
|
-
return m.parse = function (t) {
|
|
2380
|
-
this.$d = function (t) {
|
|
2381
|
-
var e = t.date,
|
|
2382
|
-
n = t.utc;
|
|
2383
|
-
if (null === e) return new Date(NaN);
|
|
2384
|
-
if (O.u(e)) return new Date();
|
|
2385
|
-
if (e instanceof Date) return new Date(e);
|
|
2386
|
-
if ("string" == typeof e && !/Z$/i.test(e)) {
|
|
2387
|
-
var r = e.match($);
|
|
2388
|
-
if (r) {
|
|
2389
|
-
var i = r[2] - 1 || 0,
|
|
2390
|
-
s = (r[7] || "0").substring(0, 3);
|
|
2391
|
-
return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s);
|
|
2392
|
-
}
|
|
2393
|
-
}
|
|
2394
|
-
return new Date(e);
|
|
2395
|
-
}(t), this.$x = t.x || {}, this.init();
|
|
2396
|
-
}, m.init = function () {
|
|
2397
|
-
var t = this.$d;
|
|
2398
|
-
this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
|
|
2399
|
-
}, m.$utils = function () {
|
|
2400
|
-
return O;
|
|
2401
|
-
}, m.isValid = function () {
|
|
2402
|
-
return !(this.$d.toString() === l);
|
|
2403
|
-
}, m.isSame = function (t, e) {
|
|
2404
|
-
var n = w(t);
|
|
2405
|
-
return this.startOf(e) <= n && n <= this.endOf(e);
|
|
2406
|
-
}, m.isAfter = function (t, e) {
|
|
2407
|
-
return w(t) < this.startOf(e);
|
|
2408
|
-
}, m.isBefore = function (t, e) {
|
|
2409
|
-
return this.endOf(e) < w(t);
|
|
2410
|
-
}, m.$g = function (t, e, n) {
|
|
2411
|
-
return O.u(t) ? this[e] : this.set(n, t);
|
|
2412
|
-
}, m.unix = function () {
|
|
2413
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
2414
|
-
}, m.valueOf = function () {
|
|
2415
|
-
return this.$d.getTime();
|
|
2416
|
-
}, m.startOf = function (t, e) {
|
|
2417
|
-
var n = this,
|
|
2418
|
-
r = !!O.u(e) || e,
|
|
2419
|
-
h = O.p(t),
|
|
2420
|
-
l = function (t, e) {
|
|
2421
|
-
var i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
|
|
2422
|
-
return r ? i : i.endOf(a);
|
|
2423
|
-
},
|
|
2424
|
-
$ = function (t, e) {
|
|
2425
|
-
return O.w(n.toDate()[t].apply(n.toDate("s"), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), n);
|
|
2426
|
-
},
|
|
2427
|
-
y = this.$W,
|
|
2428
|
-
M = this.$M,
|
|
2429
|
-
m = this.$D,
|
|
2430
|
-
v = "set" + (this.$u ? "UTC" : "");
|
|
2431
|
-
switch (h) {
|
|
2432
|
-
case c:
|
|
2433
|
-
return r ? l(1, 0) : l(31, 11);
|
|
2434
|
-
case f:
|
|
2435
|
-
return r ? l(1, M) : l(0, M + 1);
|
|
2436
|
-
case o:
|
|
2437
|
-
var g = this.$locale().weekStart || 0,
|
|
2438
|
-
D = (y < g ? y + 7 : y) - g;
|
|
2439
|
-
return l(r ? m - D : m + (6 - D), M);
|
|
2440
|
-
case a:
|
|
2441
|
-
case d:
|
|
2442
|
-
return $(v + "Hours", 0);
|
|
2443
|
-
case u:
|
|
2444
|
-
return $(v + "Minutes", 1);
|
|
2445
|
-
case s:
|
|
2446
|
-
return $(v + "Seconds", 2);
|
|
2447
|
-
case i:
|
|
2448
|
-
return $(v + "Milliseconds", 3);
|
|
2449
|
-
default:
|
|
2450
|
-
return this.clone();
|
|
2451
|
-
}
|
|
2452
|
-
}, m.endOf = function (t) {
|
|
2453
|
-
return this.startOf(t, !1);
|
|
2454
|
-
}, m.$set = function (t, e) {
|
|
2455
|
-
var n,
|
|
2456
|
-
o = O.p(t),
|
|
2457
|
-
h = "set" + (this.$u ? "UTC" : ""),
|
|
2458
|
-
l = (n = {}, n[a] = h + "Date", n[d] = h + "Date", n[f] = h + "Month", n[c] = h + "FullYear", n[u] = h + "Hours", n[s] = h + "Minutes", n[i] = h + "Seconds", n[r] = h + "Milliseconds", n)[o],
|
|
2459
|
-
$ = o === a ? this.$D + (e - this.$W) : e;
|
|
2460
|
-
if (o === f || o === c) {
|
|
2461
|
-
var y = this.clone().set(d, 1);
|
|
2462
|
-
y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
|
|
2463
|
-
} else l && this.$d[l]($);
|
|
2464
|
-
return this.init(), this;
|
|
2465
|
-
}, m.set = function (t, e) {
|
|
2466
|
-
return this.clone().$set(t, e);
|
|
2467
|
-
}, m.get = function (t) {
|
|
2468
|
-
return this[O.p(t)]();
|
|
2469
|
-
}, m.add = function (r, h) {
|
|
2470
|
-
var d,
|
|
2471
|
-
l = this;
|
|
2472
|
-
r = Number(r);
|
|
2473
|
-
var $ = O.p(h),
|
|
2474
|
-
y = function (t) {
|
|
2475
|
-
var e = w(l);
|
|
2476
|
-
return O.w(e.date(e.date() + Math.round(t * r)), l);
|
|
2477
|
-
};
|
|
2478
|
-
if ($ === f) return this.set(f, this.$M + r);
|
|
2479
|
-
if ($ === c) return this.set(c, this.$y + r);
|
|
2480
|
-
if ($ === a) return y(1);
|
|
2481
|
-
if ($ === o) return y(7);
|
|
2482
|
-
var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1,
|
|
2483
|
-
m = this.$d.getTime() + r * M;
|
|
2484
|
-
return O.w(m, this);
|
|
2485
|
-
}, m.subtract = function (t, e) {
|
|
2486
|
-
return this.add(-1 * t, e);
|
|
2487
|
-
}, m.format = function (t) {
|
|
2488
|
-
var e = this,
|
|
2489
|
-
n = this.$locale();
|
|
2490
|
-
if (!this.isValid()) return n.invalidDate || l;
|
|
2491
|
-
var r = t || "YYYY-MM-DDTHH:mm:ssZ",
|
|
2492
|
-
i = O.z(this),
|
|
2493
|
-
s = this.$H,
|
|
2494
|
-
u = this.$m,
|
|
2495
|
-
a = this.$M,
|
|
2496
|
-
o = n.weekdays,
|
|
2497
|
-
f = n.months,
|
|
2498
|
-
h = function (t, n, i, s) {
|
|
2499
|
-
return t && (t[n] || t(e, r)) || i[n].slice(0, s);
|
|
2500
|
-
},
|
|
2501
|
-
c = function (t) {
|
|
2502
|
-
return O.s(s % 12 || 12, t, "0");
|
|
2503
|
-
},
|
|
2504
|
-
d = n.meridiem || function (t, e, n) {
|
|
2505
|
-
var r = t < 12 ? "AM" : "PM";
|
|
2506
|
-
return n ? r.toLowerCase() : r;
|
|
2507
|
-
},
|
|
2508
|
-
$ = {
|
|
2509
|
-
YY: String(this.$y).slice(-2),
|
|
2510
|
-
YYYY: O.s(this.$y, 4, "0"),
|
|
2511
|
-
M: a + 1,
|
|
2512
|
-
MM: O.s(a + 1, 2, "0"),
|
|
2513
|
-
MMM: h(n.monthsShort, a, f, 3),
|
|
2514
|
-
MMMM: h(f, a),
|
|
2515
|
-
D: this.$D,
|
|
2516
|
-
DD: O.s(this.$D, 2, "0"),
|
|
2517
|
-
d: String(this.$W),
|
|
2518
|
-
dd: h(n.weekdaysMin, this.$W, o, 2),
|
|
2519
|
-
ddd: h(n.weekdaysShort, this.$W, o, 3),
|
|
2520
|
-
dddd: o[this.$W],
|
|
2521
|
-
H: String(s),
|
|
2522
|
-
HH: O.s(s, 2, "0"),
|
|
2523
|
-
h: c(1),
|
|
2524
|
-
hh: c(2),
|
|
2525
|
-
a: d(s, u, !0),
|
|
2526
|
-
A: d(s, u, !1),
|
|
2527
|
-
m: String(u),
|
|
2528
|
-
mm: O.s(u, 2, "0"),
|
|
2529
|
-
s: String(this.$s),
|
|
2530
|
-
ss: O.s(this.$s, 2, "0"),
|
|
2531
|
-
SSS: O.s(this.$ms, 3, "0"),
|
|
2532
|
-
Z: i
|
|
2533
|
-
};
|
|
2534
|
-
return r.replace(y, function (t, e) {
|
|
2535
|
-
return e || $[t] || i.replace(":", "");
|
|
2536
|
-
});
|
|
2537
|
-
}, m.utcOffset = function () {
|
|
2538
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
2539
|
-
}, m.diff = function (r, d, l) {
|
|
2540
|
-
var $,
|
|
2541
|
-
y = O.p(d),
|
|
2542
|
-
M = w(r),
|
|
2543
|
-
m = (M.utcOffset() - this.utcOffset()) * e,
|
|
2544
|
-
v = this - M,
|
|
2545
|
-
g = O.m(this, M);
|
|
2546
|
-
return g = ($ = {}, $[c] = g / 12, $[f] = g, $[h] = g / 3, $[o] = (v - m) / 6048e5, $[a] = (v - m) / 864e5, $[u] = v / n, $[s] = v / e, $[i] = v / t, $)[y] || v, l ? g : O.a(g);
|
|
2547
|
-
}, m.daysInMonth = function () {
|
|
2548
|
-
return this.endOf(f).$D;
|
|
2549
|
-
}, m.$locale = function () {
|
|
2550
|
-
return D[this.$L];
|
|
2551
|
-
}, m.locale = function (t, e) {
|
|
2552
|
-
if (!t) return this.$L;
|
|
2553
|
-
var n = this.clone(),
|
|
2554
|
-
r = S(t, e, !0);
|
|
2555
|
-
return r && (n.$L = r), n;
|
|
2556
|
-
}, m.clone = function () {
|
|
2557
|
-
return O.w(this.$d, this);
|
|
2558
|
-
}, m.toDate = function () {
|
|
2559
|
-
return new Date(this.valueOf());
|
|
2560
|
-
}, m.toJSON = function () {
|
|
2561
|
-
return this.isValid() ? this.toISOString() : null;
|
|
2562
|
-
}, m.toISOString = function () {
|
|
2563
|
-
return this.$d.toISOString();
|
|
2564
|
-
}, m.toString = function () {
|
|
2565
|
-
return this.$d.toUTCString();
|
|
2566
|
-
}, M;
|
|
2567
|
-
}(),
|
|
2568
|
-
T = _.prototype;
|
|
2569
|
-
return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function (t) {
|
|
2570
|
-
T[t[1]] = function (e) {
|
|
2571
|
-
return this.$g(e, t[0], t[1]);
|
|
2572
|
-
};
|
|
2573
|
-
}), w.extend = function (t, e) {
|
|
2574
|
-
return t.$i || (t(e, _, w), t.$i = !0), w;
|
|
2575
|
-
}, w.locale = S, w.isDayjs = p, w.unix = function (t) {
|
|
2576
|
-
return w(1e3 * t);
|
|
2577
|
-
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
2578
|
-
});
|
|
2579
|
-
})(dayjs_min);
|
|
2580
|
-
var dayjs_minExports = dayjs_min.exports;
|
|
2581
|
-
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
2582
|
-
|
|
2583
|
-
const Wrapper$c = ut.div `
|
|
630
|
+
const Wrapper$c = styled.div `
|
|
2584
631
|
border-radius: 4px;
|
|
2585
632
|
height: 40px;
|
|
2586
633
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
@@ -2602,7 +649,7 @@ const Wrapper$c = ut.div `
|
|
|
2602
649
|
}
|
|
2603
650
|
`;
|
|
2604
651
|
Wrapper$c.defaultProps = { theme: EditableTheme };
|
|
2605
|
-
const Trigger$1 =
|
|
652
|
+
const Trigger$1 = styled.select `
|
|
2606
653
|
appearance: none;
|
|
2607
654
|
box-shadow: none;
|
|
2608
655
|
outline: none;
|
|
@@ -2622,7 +669,7 @@ const Trigger$1 = ut.select `
|
|
|
2622
669
|
position: relative;
|
|
2623
670
|
z-index: 2;
|
|
2624
671
|
`;
|
|
2625
|
-
const IconWrapper$2 =
|
|
672
|
+
const IconWrapper$2 = styled(Icon) `
|
|
2626
673
|
position: absolute;
|
|
2627
674
|
right: 9px;
|
|
2628
675
|
z-index: 1;
|
|
@@ -2645,11 +692,11 @@ const Select = (_a) => {
|
|
|
2645
692
|
React.createElement(IconWrapper$2, { color: Colors.BLACK.Hex, path: mdiChevronDown, size: '22px' })));
|
|
2646
693
|
};
|
|
2647
694
|
|
|
2648
|
-
const DatePickerWrapper =
|
|
695
|
+
const DatePickerWrapper = styled.div `
|
|
2649
696
|
display: flex;
|
|
2650
697
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
2651
698
|
`;
|
|
2652
|
-
const Middle =
|
|
699
|
+
const Middle = styled.div `
|
|
2653
700
|
margin: 0px -1px;
|
|
2654
701
|
flex-grow: 1;
|
|
2655
702
|
`;
|
|
@@ -2715,7 +762,7 @@ const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate
|
|
|
2715
762
|
React.createElement(Select, { invalid: invalid, onChange: handleYearChange, options: years, readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: dDate.format('YYYY') }))));
|
|
2716
763
|
};
|
|
2717
764
|
|
|
2718
|
-
const Scrim$1 =
|
|
765
|
+
const Scrim$1 = styled.div `
|
|
2719
766
|
position: ${({ $position }) => $position};
|
|
2720
767
|
top: 0;
|
|
2721
768
|
right: 0;
|
|
@@ -2724,7 +771,7 @@ const Scrim$1 = ut.div `
|
|
|
2724
771
|
z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
|
|
2725
772
|
background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
|
|
2726
773
|
`;
|
|
2727
|
-
const Container$2 =
|
|
774
|
+
const Container$2 = styled.div `
|
|
2728
775
|
z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
|
|
2729
776
|
min-width: 400px;
|
|
2730
777
|
width: ${({ $width }) => $width || '400px'};
|
|
@@ -2742,7 +789,7 @@ const Container$2 = ut.div `
|
|
|
2742
789
|
box-sizing: border-box;
|
|
2743
790
|
background: #fff;
|
|
2744
791
|
`;
|
|
2745
|
-
const Header$2 =
|
|
792
|
+
const Header$2 = styled.div `
|
|
2746
793
|
padding: 30px 20px;
|
|
2747
794
|
display: flex;
|
|
2748
795
|
align-items: flex-start;
|
|
@@ -2750,21 +797,21 @@ const Header$2 = ut.div `
|
|
|
2750
797
|
flex-shrink: 0;
|
|
2751
798
|
background: #fff;
|
|
2752
799
|
`;
|
|
2753
|
-
const Close$1 =
|
|
800
|
+
const Close$1 = styled.div `
|
|
2754
801
|
margin-left: auto;
|
|
2755
802
|
display: flex;
|
|
2756
803
|
align-items: center;
|
|
2757
804
|
padding-left: 20px;
|
|
2758
805
|
cursor: pointer;
|
|
2759
806
|
`;
|
|
2760
|
-
const ContentWrapper$1 =
|
|
807
|
+
const ContentWrapper$1 = styled.div `
|
|
2761
808
|
overflow-x: hidden;
|
|
2762
809
|
overflow-y: auto;
|
|
2763
810
|
box-sizing: border-box;
|
|
2764
811
|
flex: 1;
|
|
2765
812
|
background: #fff;
|
|
2766
813
|
`;
|
|
2767
|
-
const ButtonBar$1 =
|
|
814
|
+
const ButtonBar$1 = styled.div `
|
|
2768
815
|
padding: 20px;
|
|
2769
816
|
display: flex;
|
|
2770
817
|
align-items: center;
|
|
@@ -2802,12 +849,12 @@ const Drawer = (_a) => {
|
|
|
2802
849
|
scrim ? React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, onClick: onClose }) : null));
|
|
2803
850
|
};
|
|
2804
851
|
|
|
2805
|
-
const Wrapper$b =
|
|
852
|
+
const Wrapper$b = styled.div `
|
|
2806
853
|
display: inline-block;
|
|
2807
854
|
position: relative;
|
|
2808
855
|
height: 16px;
|
|
2809
856
|
`;
|
|
2810
|
-
const StyledIcon$4 =
|
|
857
|
+
const StyledIcon$4 = styled(Icon) `
|
|
2811
858
|
width: 16px;
|
|
2812
859
|
height: 16px;
|
|
2813
860
|
margin: 0px 6px;
|
|
@@ -2843,7 +890,7 @@ const positions = {
|
|
|
2843
890
|
transform: 'translateY(-50%)',
|
|
2844
891
|
},
|
|
2845
892
|
};
|
|
2846
|
-
const Content$3 =
|
|
893
|
+
const Content$3 = styled.div(props => (Object.assign({ position: 'absolute', borderRadius: '4px', borderWidth: '1px', borderStyle: 'solid', borderColor: props.theme.PRIMARY_COLOR.Hex, background: '#ffffff', boxShadow: '0px 5px 30px -10px rgba(0, 0, 0, 0.5)', width: props.$width || '240px', padding: '10px 12px', zIndex: 10 }, positions[props.$position])));
|
|
2847
894
|
Content$3.defaultProps = { theme: EditableTheme };
|
|
2848
895
|
const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }) => {
|
|
2849
896
|
const [show_content, toggleContent] = useState(false);
|
|
@@ -2852,15 +899,15 @@ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }
|
|
|
2852
899
|
show_content ? (React.createElement(Content$3, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
|
|
2853
900
|
};
|
|
2854
901
|
|
|
2855
|
-
const Wrapper$a =
|
|
2856
|
-
const LabelRow =
|
|
902
|
+
const Wrapper$a = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props.style)));
|
|
903
|
+
const LabelRow = styled.div `
|
|
2857
904
|
display: flex;
|
|
2858
905
|
align-items: center;
|
|
2859
906
|
justify-content: space-between;
|
|
2860
907
|
margin: 0 0 4px 0;
|
|
2861
908
|
box-sizing: border-box;
|
|
2862
909
|
`;
|
|
2863
|
-
const Label$3 =
|
|
910
|
+
const Label$3 = styled.label `
|
|
2864
911
|
font-size: ${FontSizes.DEFAULT};
|
|
2865
912
|
font-weight: 500;
|
|
2866
913
|
line-height: 1em;
|
|
@@ -2869,11 +916,11 @@ const Label$3 = ut.label `
|
|
|
2869
916
|
display: flex;
|
|
2870
917
|
align-items: center;
|
|
2871
918
|
`;
|
|
2872
|
-
const Required =
|
|
919
|
+
const Required = styled.span `
|
|
2873
920
|
color: ${Colors.RED.Hex};
|
|
2874
921
|
margin-left: 4px;
|
|
2875
922
|
`;
|
|
2876
|
-
const Action =
|
|
923
|
+
const Action = styled.span `
|
|
2877
924
|
font-size: ${FontSizes.DEFAULT};
|
|
2878
925
|
font-weight: 500;
|
|
2879
926
|
line-height: 1em;
|
|
@@ -2882,7 +929,7 @@ const Action = ut.span `
|
|
|
2882
929
|
cursor: pointer;
|
|
2883
930
|
`;
|
|
2884
931
|
Action.defaultProps = { theme: EditableTheme };
|
|
2885
|
-
const Description =
|
|
932
|
+
const Description = styled.div `
|
|
2886
933
|
font-size: ${FontSizes.SMALL};
|
|
2887
934
|
font-weight: 400;
|
|
2888
935
|
line-height: 1.3em;
|
|
@@ -2891,7 +938,7 @@ const Description = ut.div `
|
|
|
2891
938
|
margin: 0 0 8px 0;
|
|
2892
939
|
box-sizing: border-box;
|
|
2893
940
|
`;
|
|
2894
|
-
const Validation =
|
|
941
|
+
const Validation = styled.div `
|
|
2895
942
|
font-size: ${FontSizes.SMALL};
|
|
2896
943
|
font-weight: 400;
|
|
2897
944
|
line-height: 1.3em;
|
|
@@ -2914,7 +961,7 @@ const Field = (_a) => {
|
|
|
2914
961
|
validationText ? React.createElement(Validation, null, validationText) : null));
|
|
2915
962
|
};
|
|
2916
963
|
|
|
2917
|
-
const Wrapper$9 =
|
|
964
|
+
const Wrapper$9 = styled.fieldset `
|
|
2918
965
|
margin-inline-start: 0px;
|
|
2919
966
|
margin-inline-end: 0px;
|
|
2920
967
|
padding-block-start: 0px;
|
|
@@ -2927,7 +974,7 @@ const Wrapper$9 = ut.fieldset `
|
|
|
2927
974
|
border-color: transparent;
|
|
2928
975
|
border-image: none;
|
|
2929
976
|
`;
|
|
2930
|
-
const Label$2 =
|
|
977
|
+
const Label$2 = styled.legend `
|
|
2931
978
|
padding-inline-start: 0px;
|
|
2932
979
|
padding-inline-end: 0px;
|
|
2933
980
|
|
|
@@ -2938,7 +985,7 @@ const Label$2 = ut.legend `
|
|
|
2938
985
|
line-height: 22px;
|
|
2939
986
|
margin-bottom: 6px;
|
|
2940
987
|
`;
|
|
2941
|
-
const Content$2 =
|
|
988
|
+
const Content$2 = styled.div `
|
|
2942
989
|
padding: 20px;
|
|
2943
990
|
border-radius: 8px;
|
|
2944
991
|
background: #fcfcfc;
|
|
@@ -2949,7 +996,7 @@ const FieldGroup = ({ children, label }) => {
|
|
|
2949
996
|
React.createElement(Content$2, null, children)));
|
|
2950
997
|
};
|
|
2951
998
|
|
|
2952
|
-
const Dropzone =
|
|
999
|
+
const Dropzone = styled.div `
|
|
2953
1000
|
border-radius: 8px;
|
|
2954
1001
|
border-width: 1px;
|
|
2955
1002
|
border-style: dashed;
|
|
@@ -2958,7 +1005,7 @@ const Dropzone = ut.div `
|
|
|
2958
1005
|
cursor: copy;
|
|
2959
1006
|
`;
|
|
2960
1007
|
Dropzone.defaultProps = { theme: EditableTheme };
|
|
2961
|
-
const IconWrapper$1 =
|
|
1008
|
+
const IconWrapper$1 = styled.div `
|
|
2962
1009
|
width: 80px;
|
|
2963
1010
|
height: 80px;
|
|
2964
1011
|
border-radius: 40px;
|
|
@@ -2967,7 +1014,7 @@ const IconWrapper$1 = ut.div `
|
|
|
2967
1014
|
align-items: center;
|
|
2968
1015
|
justify-content: center;
|
|
2969
1016
|
`;
|
|
2970
|
-
const StyledIcon$3 =
|
|
1017
|
+
const StyledIcon$3 = styled(Icon) `
|
|
2971
1018
|
width: 40px !important;
|
|
2972
1019
|
height: 40px !important;
|
|
2973
1020
|
|
|
@@ -2975,27 +1022,27 @@ const StyledIcon$3 = ut(Icon) `
|
|
|
2975
1022
|
fill: ${Colors.GRAY.Hex} !important;
|
|
2976
1023
|
}
|
|
2977
1024
|
`;
|
|
2978
|
-
const ClickZone =
|
|
1025
|
+
const ClickZone = styled.div `
|
|
2979
1026
|
margin: 40px 20px;
|
|
2980
1027
|
display: flex;
|
|
2981
1028
|
flex-direction: column;
|
|
2982
1029
|
align-items: center;
|
|
2983
1030
|
gap: 16px;
|
|
2984
1031
|
`;
|
|
2985
|
-
const Content$1 =
|
|
1032
|
+
const Content$1 = styled.div `
|
|
2986
1033
|
display: flex;
|
|
2987
1034
|
flex-direction: column;
|
|
2988
1035
|
align-items: center;
|
|
2989
1036
|
gap: 2px;
|
|
2990
1037
|
`;
|
|
2991
|
-
const Files =
|
|
1038
|
+
const Files = styled.div `
|
|
2992
1039
|
display: flex;
|
|
2993
1040
|
flex-direction: column;
|
|
2994
1041
|
align-self: stretch;
|
|
2995
1042
|
gap: 10px;
|
|
2996
1043
|
margin: 20px;
|
|
2997
1044
|
`;
|
|
2998
|
-
const File =
|
|
1045
|
+
const File = styled.div `
|
|
2999
1046
|
display: flex;
|
|
3000
1047
|
padding: 10px;
|
|
3001
1048
|
align-items: center;
|
|
@@ -3005,7 +1052,7 @@ const File = ut.div `
|
|
|
3005
1052
|
border: 1px solid #cccccc;
|
|
3006
1053
|
background: #ffffff;
|
|
3007
1054
|
`;
|
|
3008
|
-
const Remove$1 =
|
|
1055
|
+
const Remove$1 = styled(Icon) `
|
|
3009
1056
|
width: 24px;
|
|
3010
1057
|
height: 24px;
|
|
3011
1058
|
cursor: pointer;
|
|
@@ -3199,7 +1246,7 @@ const formatAsSsn = (number) => {
|
|
|
3199
1246
|
return formatted_value;
|
|
3200
1247
|
};
|
|
3201
1248
|
|
|
3202
|
-
const StyledInput =
|
|
1249
|
+
const StyledInput = styled.input `
|
|
3203
1250
|
border: none !important;
|
|
3204
1251
|
background: none !important;
|
|
3205
1252
|
font-size: ${FontSizes.DEFAULT};
|
|
@@ -3220,7 +1267,7 @@ const StyledInput = ut.input `
|
|
|
3220
1267
|
display: block;
|
|
3221
1268
|
width: 100%;
|
|
3222
1269
|
`;
|
|
3223
|
-
const StyledSuffix =
|
|
1270
|
+
const StyledSuffix = styled.div `
|
|
3224
1271
|
box-sizing: border-box;
|
|
3225
1272
|
border-radius: 0px 4px 4px 0px;
|
|
3226
1273
|
display: flex;
|
|
@@ -3238,7 +1285,7 @@ const StyledSuffix = ut.div `
|
|
|
3238
1285
|
font-size: ${FontSizes.DEFAULT};
|
|
3239
1286
|
color: Colors.BLACK.Hex;
|
|
3240
1287
|
`;
|
|
3241
|
-
const StyledWrapper =
|
|
1288
|
+
const StyledWrapper = styled.div `
|
|
3242
1289
|
display: flex;
|
|
3243
1290
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
3244
1291
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
@@ -3253,7 +1300,7 @@ const StyledWrapper = ut.div `
|
|
|
3253
1300
|
}
|
|
3254
1301
|
`;
|
|
3255
1302
|
StyledWrapper.defaultProps = { theme: EditableTheme };
|
|
3256
|
-
const StyledTextarea =
|
|
1303
|
+
const StyledTextarea = styled.textarea `
|
|
3257
1304
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
3258
1305
|
border-radius: 4px;
|
|
3259
1306
|
border-width: 1px;
|
|
@@ -3282,7 +1329,7 @@ const StyledTextarea = ut.textarea `
|
|
|
3282
1329
|
}
|
|
3283
1330
|
`;
|
|
3284
1331
|
StyledTextarea.defaultProps = { theme: EditableTheme };
|
|
3285
|
-
const SuggestedValues =
|
|
1332
|
+
const SuggestedValues = styled.div `
|
|
3286
1333
|
background: #fff;
|
|
3287
1334
|
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
3288
1335
|
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
@@ -3299,7 +1346,7 @@ const SuggestedValues = ut.div `
|
|
|
3299
1346
|
overflow: auto;
|
|
3300
1347
|
`;
|
|
3301
1348
|
SuggestedValues.defaultProps = { theme: EditableTheme };
|
|
3302
|
-
const SuggestedSummary =
|
|
1349
|
+
const SuggestedSummary = styled.div `
|
|
3303
1350
|
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
3304
1351
|
font-size: 12px;
|
|
3305
1352
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -3312,7 +1359,7 @@ const SuggestedSummary = ut.div `
|
|
|
3312
1359
|
position: sticky;
|
|
3313
1360
|
top: 0px;
|
|
3314
1361
|
`;
|
|
3315
|
-
const SuggestedValue =
|
|
1362
|
+
const SuggestedValue = styled.div `
|
|
3316
1363
|
cursor: pointer;
|
|
3317
1364
|
padding: 8px 12px;
|
|
3318
1365
|
font-size: ${FontSizes.DEFAULT};
|
|
@@ -3385,7 +1432,7 @@ const Input$1 = (_a) => {
|
|
|
3385
1432
|
}))) : null));
|
|
3386
1433
|
};
|
|
3387
1434
|
|
|
3388
|
-
const Wrapper$8 =
|
|
1435
|
+
const Wrapper$8 = styled.a `
|
|
3389
1436
|
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
3390
1437
|
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
3391
1438
|
line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
|
|
@@ -3405,7 +1452,7 @@ const Link = (_a) => {
|
|
|
3405
1452
|
return (React.createElement(Wrapper$8, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
|
|
3406
1453
|
};
|
|
3407
1454
|
|
|
3408
|
-
const dash =
|
|
1455
|
+
const dash = keyframes `
|
|
3409
1456
|
0% {
|
|
3410
1457
|
stroke-dasharray: 1, 160;
|
|
3411
1458
|
stroke-dashoffset: 0;
|
|
@@ -3419,7 +1466,7 @@ const dash = ht `
|
|
|
3419
1466
|
stroke-dashoffset: -124;
|
|
3420
1467
|
}
|
|
3421
1468
|
`;
|
|
3422
|
-
const Spinner =
|
|
1469
|
+
const Spinner = styled.svg `
|
|
3423
1470
|
z-index: 2;
|
|
3424
1471
|
position: absolute;
|
|
3425
1472
|
top: 50%;
|
|
@@ -3428,7 +1475,7 @@ const Spinner = ut.svg `
|
|
|
3428
1475
|
width: 40px;
|
|
3429
1476
|
height: 40px;
|
|
3430
1477
|
`;
|
|
3431
|
-
const Path =
|
|
1478
|
+
const Path = styled.path `
|
|
3432
1479
|
stroke: #0193d7;
|
|
3433
1480
|
stroke-linecap: round;
|
|
3434
1481
|
-webkit-animation: ${dash} 1.1s ease-in-out infinite;
|
|
@@ -3481,7 +1528,7 @@ const Logo = (_a) => {
|
|
|
3481
1528
|
}
|
|
3482
1529
|
};
|
|
3483
1530
|
|
|
3484
|
-
const Steps =
|
|
1531
|
+
const Steps = styled.div `
|
|
3485
1532
|
padding: 20px;
|
|
3486
1533
|
border-bottom: 1px solid #e7e6e6;
|
|
3487
1534
|
background: #f5f5f5;
|
|
@@ -3489,18 +1536,18 @@ const Steps = ut.div `
|
|
|
3489
1536
|
gap: 30px;
|
|
3490
1537
|
align-items: center;
|
|
3491
1538
|
`;
|
|
3492
|
-
const Step =
|
|
1539
|
+
const Step = styled.div `
|
|
3493
1540
|
display: flex;
|
|
3494
1541
|
align-items: center;
|
|
3495
1542
|
gap: 8px;
|
|
3496
1543
|
`;
|
|
3497
|
-
const StyledIcon$2 =
|
|
1544
|
+
const StyledIcon$2 = styled(Icon) `
|
|
3498
1545
|
> path {
|
|
3499
1546
|
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
3500
1547
|
}
|
|
3501
1548
|
`;
|
|
3502
1549
|
StyledIcon$2.defaultProps = { theme: EditableTheme };
|
|
3503
|
-
const StepIndicator =
|
|
1550
|
+
const StepIndicator = styled.div `
|
|
3504
1551
|
width: 30px;
|
|
3505
1552
|
height: 30px;
|
|
3506
1553
|
border-radius: 15px;
|
|
@@ -3516,7 +1563,7 @@ const StepIndicator = ut.div `
|
|
|
3516
1563
|
flex-shrink: 0;
|
|
3517
1564
|
`;
|
|
3518
1565
|
StepIndicator.defaultProps = { theme: EditableTheme };
|
|
3519
|
-
const StepLabel =
|
|
1566
|
+
const StepLabel = styled.div `
|
|
3520
1567
|
color: #000;
|
|
3521
1568
|
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
3522
1569
|
font-size: 14px;
|
|
@@ -3531,7 +1578,7 @@ const ProgressBar = ({ steps }) => {
|
|
|
3531
1578
|
})));
|
|
3532
1579
|
};
|
|
3533
1580
|
|
|
3534
|
-
const Wrapper$7 =
|
|
1581
|
+
const Wrapper$7 = styled.div `
|
|
3535
1582
|
position: fixed;
|
|
3536
1583
|
top: 0;
|
|
3537
1584
|
right: 0;
|
|
@@ -3543,7 +1590,7 @@ const Wrapper$7 = ut.div `
|
|
|
3543
1590
|
align-items: center;
|
|
3544
1591
|
justify-content: center;
|
|
3545
1592
|
`;
|
|
3546
|
-
const Container$1 =
|
|
1593
|
+
const Container$1 = styled.dialog `
|
|
3547
1594
|
width: ${props => (props.$fullscreen ? 'calc(100vw - 80px)' : props.$maxWidth || '900px')};
|
|
3548
1595
|
max-width: calc(100vw - 80px);
|
|
3549
1596
|
height: ${props => (props.$fullscreen ? 'calc(100vh - 80px)' : 'auto')};
|
|
@@ -3559,7 +1606,7 @@ const Container$1 = ut.dialog `
|
|
|
3559
1606
|
display: flex;
|
|
3560
1607
|
flex-direction: column;
|
|
3561
1608
|
`;
|
|
3562
|
-
const Header$1 =
|
|
1609
|
+
const Header$1 = styled.div `
|
|
3563
1610
|
flex-shrink: 0;
|
|
3564
1611
|
padding: 20px;
|
|
3565
1612
|
border-bottom: 1px solid #e7e6e6;
|
|
@@ -3568,28 +1615,28 @@ const Header$1 = ut.div `
|
|
|
3568
1615
|
background: #ffffff;
|
|
3569
1616
|
box-sizing: border-box;
|
|
3570
1617
|
`;
|
|
3571
|
-
const Close =
|
|
1618
|
+
const Close = styled.div `
|
|
3572
1619
|
margin-left: auto;
|
|
3573
1620
|
display: flex;
|
|
3574
1621
|
align-items: center;
|
|
3575
1622
|
padding-left: 20px;
|
|
3576
1623
|
cursor: pointer;
|
|
3577
1624
|
`;
|
|
3578
|
-
const CloseMsg =
|
|
1625
|
+
const CloseMsg = styled.span `
|
|
3579
1626
|
font-size: ${FontSizes.SMALL};
|
|
3580
1627
|
font-weight: 400;
|
|
3581
1628
|
font-family: ${FontStyles.DEFAULT};
|
|
3582
1629
|
line-height: 1em;
|
|
3583
1630
|
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
3584
1631
|
`;
|
|
3585
|
-
const ContentWrapper =
|
|
1632
|
+
const ContentWrapper = styled.div `
|
|
3586
1633
|
overflow-x: hidden;
|
|
3587
1634
|
overflow-y: auto;
|
|
3588
1635
|
background: #ffffff;
|
|
3589
1636
|
flex: 1;
|
|
3590
1637
|
box-sizing: border-box;
|
|
3591
1638
|
`;
|
|
3592
|
-
const ButtonBar =
|
|
1639
|
+
const ButtonBar = styled.div `
|
|
3593
1640
|
flex-shrink: 0;
|
|
3594
1641
|
background: #ffffff;
|
|
3595
1642
|
padding: 20px;
|
|
@@ -3632,11 +1679,11 @@ const Modal = (_a) => {
|
|
|
3632
1679
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: 'primary', margin: '0px 0px 0px 10px' }))) : null)) : null)) : null)));
|
|
3633
1680
|
};
|
|
3634
1681
|
|
|
3635
|
-
const Wrapper$6 =
|
|
1682
|
+
const Wrapper$6 = styled.div `
|
|
3636
1683
|
position: relative;
|
|
3637
1684
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
3638
1685
|
`;
|
|
3639
|
-
const Trigger =
|
|
1686
|
+
const Trigger = styled.div `
|
|
3640
1687
|
box-sizing: border-box;
|
|
3641
1688
|
border-radius: ${props => (props.$showOptions ? '4px 4px 0px 0px' : '4px')};
|
|
3642
1689
|
height: 40px;
|
|
@@ -3665,7 +1712,7 @@ const Trigger = ut.div `
|
|
|
3665
1712
|
z-index: 1;
|
|
3666
1713
|
`;
|
|
3667
1714
|
Trigger.defaultProps = { theme: EditableTheme };
|
|
3668
|
-
const Value =
|
|
1715
|
+
const Value = styled.div `
|
|
3669
1716
|
color: ${Colors.BLACK.Hex};
|
|
3670
1717
|
font-family: ${FontStyles.DEFAULT};
|
|
3671
1718
|
font-size: ${FontSizes.DEFAULT};
|
|
@@ -3676,7 +1723,7 @@ const Value = ut.div `
|
|
|
3676
1723
|
white-space: nowrap;
|
|
3677
1724
|
width: 100%;
|
|
3678
1725
|
`;
|
|
3679
|
-
const Options =
|
|
1726
|
+
const Options = styled.div `
|
|
3680
1727
|
background: #fff;
|
|
3681
1728
|
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
3682
1729
|
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
@@ -3692,7 +1739,7 @@ const Options = ut.div `
|
|
|
3692
1739
|
overflow: auto;
|
|
3693
1740
|
`;
|
|
3694
1741
|
Options.defaultProps = { theme: EditableTheme };
|
|
3695
|
-
const Scrim =
|
|
1742
|
+
const Scrim = styled.div `
|
|
3696
1743
|
bottom: 0;
|
|
3697
1744
|
left: 0;
|
|
3698
1745
|
position: fixed;
|
|
@@ -3715,7 +1762,7 @@ const MultiSelect = (_a) => {
|
|
|
3715
1762
|
showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
|
|
3716
1763
|
};
|
|
3717
1764
|
|
|
3718
|
-
const Wrapper$5 =
|
|
1765
|
+
const Wrapper$5 = styled.div `
|
|
3719
1766
|
display: inline-block;
|
|
3720
1767
|
border-radius: 4px;
|
|
3721
1768
|
padding: 4px 6px;
|
|
@@ -3724,18 +1771,18 @@ const Wrapper$5 = ut.div `
|
|
|
3724
1771
|
box-sizing: border-box;
|
|
3725
1772
|
cursor: ${props => (props.$removable ? 'pointer' : 'default')};
|
|
3726
1773
|
`;
|
|
3727
|
-
const Content =
|
|
1774
|
+
const Content = styled.div `
|
|
3728
1775
|
display: flex;
|
|
3729
1776
|
align-items: center;
|
|
3730
1777
|
`;
|
|
3731
|
-
const Label$1 =
|
|
1778
|
+
const Label$1 = styled.div `
|
|
3732
1779
|
color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
|
|
3733
1780
|
font-size: ${FontSizes.SMALL};
|
|
3734
1781
|
font-weight: 500;
|
|
3735
1782
|
font-family: ${FontStyles.DEFAULT};
|
|
3736
1783
|
line-height: 1.2em;
|
|
3737
1784
|
`;
|
|
3738
|
-
const Remove =
|
|
1785
|
+
const Remove = styled.div `
|
|
3739
1786
|
margin-left: 10px;
|
|
3740
1787
|
display: flex;
|
|
3741
1788
|
align-items: center;
|
|
@@ -3749,7 +1796,7 @@ const Tag = (_a) => {
|
|
|
3749
1796
|
React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: mdiClose, size: '15px' }))) : null)));
|
|
3750
1797
|
};
|
|
3751
1798
|
|
|
3752
|
-
const Wrapper$4 =
|
|
1799
|
+
const Wrapper$4 = styled.div `
|
|
3753
1800
|
display: flex;
|
|
3754
1801
|
padding: 16px 30px;
|
|
3755
1802
|
align-items: center;
|
|
@@ -3757,24 +1804,24 @@ const Wrapper$4 = ut.div `
|
|
|
3757
1804
|
align-self: stretch;
|
|
3758
1805
|
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
3759
1806
|
`;
|
|
3760
|
-
const Title =
|
|
1807
|
+
const Title = styled.div `
|
|
3761
1808
|
display: flex;
|
|
3762
1809
|
align-items: center;
|
|
3763
1810
|
gap: 20px;
|
|
3764
1811
|
`;
|
|
3765
|
-
const Info =
|
|
1812
|
+
const Info = styled.div `
|
|
3766
1813
|
display: flex;
|
|
3767
1814
|
flex-direction: column;
|
|
3768
1815
|
align-items: flex-start;
|
|
3769
1816
|
gap: 4px;
|
|
3770
1817
|
flex: 1 0 0;
|
|
3771
1818
|
`;
|
|
3772
|
-
const Breadcrumbs =
|
|
1819
|
+
const Breadcrumbs = styled.div `
|
|
3773
1820
|
display: flex;
|
|
3774
1821
|
align-items: center;
|
|
3775
1822
|
gap: 4px;
|
|
3776
1823
|
`;
|
|
3777
|
-
const Actions =
|
|
1824
|
+
const Actions = styled.div `
|
|
3778
1825
|
display: flex;
|
|
3779
1826
|
align-items: center;
|
|
3780
1827
|
gap: 8px;
|
|
@@ -3799,7 +1846,7 @@ const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag }) => {
|
|
|
3799
1846
|
menuItems.length ? (React.createElement(ButtonMenu, { format: format, label: label, menuItems: menuItems, small: true })) : null)) : null));
|
|
3800
1847
|
};
|
|
3801
1848
|
|
|
3802
|
-
const Wrapper$3 =
|
|
1849
|
+
const Wrapper$3 = styled.nav `
|
|
3803
1850
|
box-sizing: border-box;
|
|
3804
1851
|
display: flex;
|
|
3805
1852
|
align-items: center;
|
|
@@ -3834,7 +1881,7 @@ const Pagination = (_a) => {
|
|
|
3834
1881
|
React.createElement(Button, { disabled: is_last_page, icon: mdiChevronRight, onClick: handleNextClick, small: true })));
|
|
3835
1882
|
};
|
|
3836
1883
|
|
|
3837
|
-
const Wrapper$2 =
|
|
1884
|
+
const Wrapper$2 = styled.label `
|
|
3838
1885
|
border-radius: 4px;
|
|
3839
1886
|
padding: 4px 0px 4px 6px;
|
|
3840
1887
|
margin-left: -6px;
|
|
@@ -3850,12 +1897,12 @@ const Wrapper$2 = ut.label `
|
|
|
3850
1897
|
}
|
|
3851
1898
|
`;
|
|
3852
1899
|
Wrapper$2.defaultProps = { theme: EditableTheme };
|
|
3853
|
-
const Input =
|
|
1900
|
+
const Input = styled.input `
|
|
3854
1901
|
font-size: 20px;
|
|
3855
1902
|
margin: 0px 0px 2px 0px;
|
|
3856
1903
|
line-height: 1.1em;
|
|
3857
1904
|
`;
|
|
3858
|
-
const Label =
|
|
1905
|
+
const Label = styled.span `
|
|
3859
1906
|
font-family: ${FontStyles.DEFAULT};
|
|
3860
1907
|
font-size: ${FontSizes.DEFAULT};
|
|
3861
1908
|
font-weight: 400;
|
|
@@ -3878,7 +1925,7 @@ const RadioList = (_a) => {
|
|
|
3878
1925
|
})));
|
|
3879
1926
|
};
|
|
3880
1927
|
|
|
3881
|
-
const StyledTable =
|
|
1928
|
+
const StyledTable = styled.table `
|
|
3882
1929
|
width: 100%;
|
|
3883
1930
|
margin-top: 1px;
|
|
3884
1931
|
table-layout: ${props => props.$tableLayout || 'auto'};
|
|
@@ -3888,7 +1935,7 @@ const StyledTable = ut.table `
|
|
|
3888
1935
|
border-color: none;
|
|
3889
1936
|
box-sizing: border-box;
|
|
3890
1937
|
`;
|
|
3891
|
-
const Header =
|
|
1938
|
+
const Header = styled.th `
|
|
3892
1939
|
padding: 12px !important;
|
|
3893
1940
|
text-align: left;
|
|
3894
1941
|
font-weight: 500;
|
|
@@ -3907,7 +1954,7 @@ const Header = ut.th `
|
|
|
3907
1954
|
color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
|
|
3908
1955
|
`;
|
|
3909
1956
|
Header.defaultProps = { theme: EditableTheme };
|
|
3910
|
-
const Row =
|
|
1957
|
+
const Row = styled.tr `
|
|
3911
1958
|
cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
|
|
3912
1959
|
transition: all 0.2s;
|
|
3913
1960
|
background-color: ${props => props.$bgColor};
|
|
@@ -3917,7 +1964,7 @@ const Row = ut.tr `
|
|
|
3917
1964
|
}
|
|
3918
1965
|
`;
|
|
3919
1966
|
Row.defaultProps = { theme: EditableTheme };
|
|
3920
|
-
const Column =
|
|
1967
|
+
const Column = styled.td `
|
|
3921
1968
|
padding: 16px 12px !important;
|
|
3922
1969
|
font-size: ${FontSizes.DEFAULT} !important;
|
|
3923
1970
|
font-weight: 400 !important;
|
|
@@ -3928,13 +1975,13 @@ const Column = ut.td `
|
|
|
3928
1975
|
box-sizing: border-box;
|
|
3929
1976
|
width: ${props => props.$width || 'auto'};
|
|
3930
1977
|
`;
|
|
3931
|
-
const IconWrapper =
|
|
1978
|
+
const IconWrapper = styled.span `
|
|
3932
1979
|
position: absolute;
|
|
3933
1980
|
top: 50%;
|
|
3934
1981
|
transform: translateY(-50%);
|
|
3935
1982
|
margin-left: 2px;
|
|
3936
1983
|
`;
|
|
3937
|
-
const StyledIcon$1 =
|
|
1984
|
+
const StyledIcon$1 = styled(Icon) `
|
|
3938
1985
|
> path {
|
|
3939
1986
|
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
3940
1987
|
}
|
|
@@ -3957,7 +2004,7 @@ const Table = (_a) => {
|
|
|
3957
2004
|
}))) : null));
|
|
3958
2005
|
};
|
|
3959
2006
|
|
|
3960
|
-
const Wrapper$1 =
|
|
2007
|
+
const Wrapper$1 = styled.div `
|
|
3961
2008
|
display: flex;
|
|
3962
2009
|
box-sizing: border-box;
|
|
3963
2010
|
align-items: flex-end;
|
|
@@ -3968,7 +2015,7 @@ const Wrapper$1 = ut.div `
|
|
|
3968
2015
|
padding: 0;
|
|
3969
2016
|
margin: 0;
|
|
3970
2017
|
`;
|
|
3971
|
-
const Tab =
|
|
2018
|
+
const Tab = styled.div `
|
|
3972
2019
|
display: flex;
|
|
3973
2020
|
align-items: center;
|
|
3974
2021
|
gap: 6px;
|
|
@@ -3990,7 +2037,7 @@ const Tab = ut.div `
|
|
|
3990
2037
|
}
|
|
3991
2038
|
`;
|
|
3992
2039
|
Tab.defaultProps = { theme: EditableTheme };
|
|
3993
|
-
const Badge =
|
|
2040
|
+
const Badge = styled.div `
|
|
3994
2041
|
display: flex;
|
|
3995
2042
|
width: 18px;
|
|
3996
2043
|
height: 18px;
|
|
@@ -4017,7 +2064,7 @@ const Tabs = (_a) => {
|
|
|
4017
2064
|
};
|
|
4018
2065
|
Tabs.defaultProps = {};
|
|
4019
2066
|
|
|
4020
|
-
const Track =
|
|
2067
|
+
const Track = styled.div `
|
|
4021
2068
|
height: 24px;
|
|
4022
2069
|
border-radius: 12px;
|
|
4023
2070
|
background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
|
|
@@ -4028,7 +2075,7 @@ const Track = ut.div `
|
|
|
4028
2075
|
padding: 2px;
|
|
4029
2076
|
box-sizing: border-box;
|
|
4030
2077
|
`;
|
|
4031
|
-
const Handle =
|
|
2078
|
+
const Handle = styled.div `
|
|
4032
2079
|
width: 20px;
|
|
4033
2080
|
height: 20px;
|
|
4034
2081
|
border-radius: 10px;
|
|
@@ -4048,7 +2095,7 @@ const Toggle = (_a) => {
|
|
|
4048
2095
|
};
|
|
4049
2096
|
Toggle.defaultProps = {};
|
|
4050
2097
|
|
|
4051
|
-
const Container =
|
|
2098
|
+
const Container = styled.div `
|
|
4052
2099
|
width: 100%;
|
|
4053
2100
|
padding: 40px auto;
|
|
4054
2101
|
gap: 20px;
|
|
@@ -4057,14 +2104,14 @@ const Container = ut.div `
|
|
|
4057
2104
|
justify-items: center;
|
|
4058
2105
|
align-items: center;
|
|
4059
2106
|
`;
|
|
4060
|
-
const Wrapper =
|
|
2107
|
+
const Wrapper = styled.div `
|
|
4061
2108
|
gap: 10px;
|
|
4062
2109
|
display: flex;
|
|
4063
2110
|
flex-direction: column;
|
|
4064
2111
|
justify-items: center;
|
|
4065
2112
|
align-items: center;
|
|
4066
2113
|
`;
|
|
4067
|
-
const StyledIcon =
|
|
2114
|
+
const StyledIcon = styled.div `
|
|
4068
2115
|
display: flex;
|
|
4069
2116
|
align-items: center;
|
|
4070
2117
|
justify-content: center;
|