@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/cjs/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
+
var styled = require('styled-components');
|
|
4
5
|
var Icon = require('@mdi/react');
|
|
5
6
|
var js = require('@mdi/js');
|
|
7
|
+
var dayjs = require('dayjs');
|
|
6
8
|
var Numeral = require('numeral');
|
|
7
9
|
var Moment = require('moment');
|
|
8
10
|
|
|
@@ -22,16 +24,6 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
22
24
|
***************************************************************************** */
|
|
23
25
|
/* global Reflect, Promise */
|
|
24
26
|
|
|
25
|
-
var __assign = function () {
|
|
26
|
-
__assign = Object.assign || function __assign(t) {
|
|
27
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28
|
-
s = arguments[i];
|
|
29
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
30
|
-
}
|
|
31
|
-
return t;
|
|
32
|
-
};
|
|
33
|
-
return __assign.apply(this, arguments);
|
|
34
|
-
};
|
|
35
27
|
function __rest(s, e) {
|
|
36
28
|
var t = {};
|
|
37
29
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -40,1633 +32,6 @@ function __rest(s, e) {
|
|
|
40
32
|
}
|
|
41
33
|
return t;
|
|
42
34
|
}
|
|
43
|
-
function __spreadArray(to, from, pack) {
|
|
44
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
45
|
-
if (ar || !(i in from)) {
|
|
46
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
47
|
-
ar[i] = from[i];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function memoize(fn) {
|
|
54
|
-
var cache = Object.create(null);
|
|
55
|
-
return function (arg) {
|
|
56
|
-
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
57
|
-
return cache[arg];
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
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
|
|
62
|
-
|
|
63
|
-
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
64
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
65
|
-
/* o */ && prop.charCodeAt(1) === 110
|
|
66
|
-
/* n */ && prop.charCodeAt(2) < 91;
|
|
67
|
-
}
|
|
68
|
-
/* Z+1 */);
|
|
69
|
-
|
|
70
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
71
|
-
|
|
72
|
-
function getDefaultExportFromCjs (x) {
|
|
73
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
var MS = '-ms-';
|
|
77
|
-
var MOZ = '-moz-';
|
|
78
|
-
var WEBKIT = '-webkit-';
|
|
79
|
-
var COMMENT = 'comm';
|
|
80
|
-
var RULESET = 'rule';
|
|
81
|
-
var DECLARATION = 'decl';
|
|
82
|
-
var IMPORT = '@import';
|
|
83
|
-
var KEYFRAMES = '@keyframes';
|
|
84
|
-
var LAYER = '@layer';
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @param {number}
|
|
88
|
-
* @return {number}
|
|
89
|
-
*/
|
|
90
|
-
var abs = Math.abs;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @param {number}
|
|
94
|
-
* @return {string}
|
|
95
|
-
*/
|
|
96
|
-
var from = String.fromCharCode;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* @param {object}
|
|
100
|
-
* @return {object}
|
|
101
|
-
*/
|
|
102
|
-
var assign = Object.assign;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @param {string} value
|
|
106
|
-
* @param {number} length
|
|
107
|
-
* @return {number}
|
|
108
|
-
*/
|
|
109
|
-
function hash(value, length) {
|
|
110
|
-
return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @param {string} value
|
|
115
|
-
* @return {string}
|
|
116
|
-
*/
|
|
117
|
-
function trim(value) {
|
|
118
|
-
return value.trim();
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @param {string} value
|
|
123
|
-
* @param {RegExp} pattern
|
|
124
|
-
* @return {string?}
|
|
125
|
-
*/
|
|
126
|
-
function match(value, pattern) {
|
|
127
|
-
return (value = pattern.exec(value)) ? value[0] : value;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* @param {string} value
|
|
132
|
-
* @param {(string|RegExp)} pattern
|
|
133
|
-
* @param {string} replacement
|
|
134
|
-
* @return {string}
|
|
135
|
-
*/
|
|
136
|
-
function replace(value, pattern, replacement) {
|
|
137
|
-
return value.replace(pattern, replacement);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* @param {string} value
|
|
142
|
-
* @param {string} search
|
|
143
|
-
* @param {number} position
|
|
144
|
-
* @return {number}
|
|
145
|
-
*/
|
|
146
|
-
function indexof(value, search, position) {
|
|
147
|
-
return value.indexOf(search, position);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* @param {string} value
|
|
152
|
-
* @param {number} index
|
|
153
|
-
* @return {number}
|
|
154
|
-
*/
|
|
155
|
-
function charat(value, index) {
|
|
156
|
-
return value.charCodeAt(index) | 0;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* @param {string} value
|
|
161
|
-
* @param {number} begin
|
|
162
|
-
* @param {number} end
|
|
163
|
-
* @return {string}
|
|
164
|
-
*/
|
|
165
|
-
function substr(value, begin, end) {
|
|
166
|
-
return value.slice(begin, end);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* @param {string} value
|
|
171
|
-
* @return {number}
|
|
172
|
-
*/
|
|
173
|
-
function strlen(value) {
|
|
174
|
-
return value.length;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* @param {any[]} value
|
|
179
|
-
* @return {number}
|
|
180
|
-
*/
|
|
181
|
-
function sizeof(value) {
|
|
182
|
-
return value.length;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* @param {any} value
|
|
187
|
-
* @param {any[]} array
|
|
188
|
-
* @return {any}
|
|
189
|
-
*/
|
|
190
|
-
function append(value, array) {
|
|
191
|
-
return array.push(value), value;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* @param {string[]} array
|
|
196
|
-
* @param {function} callback
|
|
197
|
-
* @return {string}
|
|
198
|
-
*/
|
|
199
|
-
function combine(array, callback) {
|
|
200
|
-
return array.map(callback).join('');
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* @param {string[]} array
|
|
205
|
-
* @param {RegExp} pattern
|
|
206
|
-
* @return {string[]}
|
|
207
|
-
*/
|
|
208
|
-
function filter(array, pattern) {
|
|
209
|
-
return array.filter(function (value) {
|
|
210
|
-
return !match(value, pattern);
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
var line = 1;
|
|
215
|
-
var column = 1;
|
|
216
|
-
var length = 0;
|
|
217
|
-
var position = 0;
|
|
218
|
-
var character = 0;
|
|
219
|
-
var characters = '';
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* @param {string} value
|
|
223
|
-
* @param {object | null} root
|
|
224
|
-
* @param {object | null} parent
|
|
225
|
-
* @param {string} type
|
|
226
|
-
* @param {string[] | string} props
|
|
227
|
-
* @param {object[] | string} children
|
|
228
|
-
* @param {object[]} siblings
|
|
229
|
-
* @param {number} length
|
|
230
|
-
*/
|
|
231
|
-
function node(value, root, parent, type, props, children, length, siblings) {
|
|
232
|
-
return {
|
|
233
|
-
value: value,
|
|
234
|
-
root: root,
|
|
235
|
-
parent: parent,
|
|
236
|
-
type: type,
|
|
237
|
-
props: props,
|
|
238
|
-
children: children,
|
|
239
|
-
line: line,
|
|
240
|
-
column: column,
|
|
241
|
-
length: length,
|
|
242
|
-
return: '',
|
|
243
|
-
siblings: siblings
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* @param {object} root
|
|
249
|
-
* @param {object} props
|
|
250
|
-
* @return {object}
|
|
251
|
-
*/
|
|
252
|
-
function copy(root, props) {
|
|
253
|
-
return assign(node('', null, null, '', null, null, 0, root.siblings), root, {
|
|
254
|
-
length: -root.length
|
|
255
|
-
}, props);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* @param {object} root
|
|
260
|
-
*/
|
|
261
|
-
function lift(root) {
|
|
262
|
-
while (root.root) root = copy(root.root, {
|
|
263
|
-
children: [root]
|
|
264
|
-
});
|
|
265
|
-
append(root, root.siblings);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* @return {number}
|
|
270
|
-
*/
|
|
271
|
-
function char() {
|
|
272
|
-
return character;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* @return {number}
|
|
277
|
-
*/
|
|
278
|
-
function prev() {
|
|
279
|
-
character = position > 0 ? charat(characters, --position) : 0;
|
|
280
|
-
if (column--, character === 10) column = 1, line--;
|
|
281
|
-
return character;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* @return {number}
|
|
286
|
-
*/
|
|
287
|
-
function next() {
|
|
288
|
-
character = position < length ? charat(characters, position++) : 0;
|
|
289
|
-
if (column++, character === 10) column = 1, line++;
|
|
290
|
-
return character;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* @return {number}
|
|
295
|
-
*/
|
|
296
|
-
function peek() {
|
|
297
|
-
return charat(characters, position);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* @return {number}
|
|
302
|
-
*/
|
|
303
|
-
function caret() {
|
|
304
|
-
return position;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* @param {number} begin
|
|
309
|
-
* @param {number} end
|
|
310
|
-
* @return {string}
|
|
311
|
-
*/
|
|
312
|
-
function slice(begin, end) {
|
|
313
|
-
return substr(characters, begin, end);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* @param {number} type
|
|
318
|
-
* @return {number}
|
|
319
|
-
*/
|
|
320
|
-
function token(type) {
|
|
321
|
-
switch (type) {
|
|
322
|
-
// \0 \t \n \r \s whitespace token
|
|
323
|
-
case 0:
|
|
324
|
-
case 9:
|
|
325
|
-
case 10:
|
|
326
|
-
case 13:
|
|
327
|
-
case 32:
|
|
328
|
-
return 5;
|
|
329
|
-
// ! + , / > @ ~ isolate token
|
|
330
|
-
case 33:
|
|
331
|
-
case 43:
|
|
332
|
-
case 44:
|
|
333
|
-
case 47:
|
|
334
|
-
case 62:
|
|
335
|
-
case 64:
|
|
336
|
-
case 126:
|
|
337
|
-
// ; { } breakpoint token
|
|
338
|
-
case 59:
|
|
339
|
-
case 123:
|
|
340
|
-
case 125:
|
|
341
|
-
return 4;
|
|
342
|
-
// : accompanied token
|
|
343
|
-
case 58:
|
|
344
|
-
return 3;
|
|
345
|
-
// " ' ( [ opening delimit token
|
|
346
|
-
case 34:
|
|
347
|
-
case 39:
|
|
348
|
-
case 40:
|
|
349
|
-
case 91:
|
|
350
|
-
return 2;
|
|
351
|
-
// ) ] closing delimit token
|
|
352
|
-
case 41:
|
|
353
|
-
case 93:
|
|
354
|
-
return 1;
|
|
355
|
-
}
|
|
356
|
-
return 0;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* @param {string} value
|
|
361
|
-
* @return {any[]}
|
|
362
|
-
*/
|
|
363
|
-
function alloc(value) {
|
|
364
|
-
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* @param {any} value
|
|
369
|
-
* @return {any}
|
|
370
|
-
*/
|
|
371
|
-
function dealloc(value) {
|
|
372
|
-
return characters = '', value;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* @param {number} type
|
|
377
|
-
* @return {string}
|
|
378
|
-
*/
|
|
379
|
-
function delimit(type) {
|
|
380
|
-
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* @param {number} type
|
|
385
|
-
* @return {string}
|
|
386
|
-
*/
|
|
387
|
-
function whitespace(type) {
|
|
388
|
-
while (character = peek()) if (character < 33) next();else break;
|
|
389
|
-
return token(type) > 2 || token(character) > 3 ? '' : ' ';
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* @param {number} index
|
|
394
|
-
* @param {number} count
|
|
395
|
-
* @return {string}
|
|
396
|
-
*/
|
|
397
|
-
function escaping(index, count) {
|
|
398
|
-
while (--count && next())
|
|
399
|
-
// not 0-9 A-F a-f
|
|
400
|
-
if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) break;
|
|
401
|
-
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* @param {number} type
|
|
406
|
-
* @return {number}
|
|
407
|
-
*/
|
|
408
|
-
function delimiter(type) {
|
|
409
|
-
while (next()) switch (character) {
|
|
410
|
-
// ] ) " '
|
|
411
|
-
case type:
|
|
412
|
-
return position;
|
|
413
|
-
// " '
|
|
414
|
-
case 34:
|
|
415
|
-
case 39:
|
|
416
|
-
if (type !== 34 && type !== 39) delimiter(character);
|
|
417
|
-
break;
|
|
418
|
-
// (
|
|
419
|
-
case 40:
|
|
420
|
-
if (type === 41) delimiter(type);
|
|
421
|
-
break;
|
|
422
|
-
// \
|
|
423
|
-
case 92:
|
|
424
|
-
next();
|
|
425
|
-
break;
|
|
426
|
-
}
|
|
427
|
-
return position;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* @param {number} type
|
|
432
|
-
* @param {number} index
|
|
433
|
-
* @return {number}
|
|
434
|
-
*/
|
|
435
|
-
function commenter(type, index) {
|
|
436
|
-
while (next())
|
|
437
|
-
// //
|
|
438
|
-
if (type + character === 47 + 10) break;
|
|
439
|
-
// /*
|
|
440
|
-
else if (type + character === 42 + 42 && peek() === 47) break;
|
|
441
|
-
return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next());
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* @param {number} index
|
|
446
|
-
* @return {string}
|
|
447
|
-
*/
|
|
448
|
-
function identifier(index) {
|
|
449
|
-
while (!token(peek())) next();
|
|
450
|
-
return slice(index, position);
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* @param {string} value
|
|
455
|
-
* @return {object[]}
|
|
456
|
-
*/
|
|
457
|
-
function compile(value) {
|
|
458
|
-
return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value));
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* @param {string} value
|
|
463
|
-
* @param {object} root
|
|
464
|
-
* @param {object?} parent
|
|
465
|
-
* @param {string[]} rule
|
|
466
|
-
* @param {string[]} rules
|
|
467
|
-
* @param {string[]} rulesets
|
|
468
|
-
* @param {number[]} pseudo
|
|
469
|
-
* @param {number[]} points
|
|
470
|
-
* @param {string[]} declarations
|
|
471
|
-
* @return {object}
|
|
472
|
-
*/
|
|
473
|
-
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
474
|
-
var index = 0;
|
|
475
|
-
var offset = 0;
|
|
476
|
-
var length = pseudo;
|
|
477
|
-
var atrule = 0;
|
|
478
|
-
var property = 0;
|
|
479
|
-
var previous = 0;
|
|
480
|
-
var variable = 1;
|
|
481
|
-
var scanning = 1;
|
|
482
|
-
var ampersand = 1;
|
|
483
|
-
var character = 0;
|
|
484
|
-
var type = '';
|
|
485
|
-
var props = rules;
|
|
486
|
-
var children = rulesets;
|
|
487
|
-
var reference = rule;
|
|
488
|
-
var characters = type;
|
|
489
|
-
while (scanning) switch (previous = character, character = next()) {
|
|
490
|
-
// (
|
|
491
|
-
case 40:
|
|
492
|
-
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
493
|
-
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f', abs(index ? points[index - 1] : 0)) != -1) ampersand = -1;
|
|
494
|
-
break;
|
|
495
|
-
}
|
|
496
|
-
// " ' [
|
|
497
|
-
case 34:
|
|
498
|
-
case 39:
|
|
499
|
-
case 91:
|
|
500
|
-
characters += delimit(character);
|
|
501
|
-
break;
|
|
502
|
-
// \t \n \r \s
|
|
503
|
-
case 9:
|
|
504
|
-
case 10:
|
|
505
|
-
case 13:
|
|
506
|
-
case 32:
|
|
507
|
-
characters += whitespace(previous);
|
|
508
|
-
break;
|
|
509
|
-
// \
|
|
510
|
-
case 92:
|
|
511
|
-
characters += escaping(caret() - 1, 7);
|
|
512
|
-
continue;
|
|
513
|
-
// /
|
|
514
|
-
case 47:
|
|
515
|
-
switch (peek()) {
|
|
516
|
-
case 42:
|
|
517
|
-
case 47:
|
|
518
|
-
append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
|
|
519
|
-
break;
|
|
520
|
-
default:
|
|
521
|
-
characters += '/';
|
|
522
|
-
}
|
|
523
|
-
break;
|
|
524
|
-
// {
|
|
525
|
-
case 123 * variable:
|
|
526
|
-
points[index++] = strlen(characters) * ampersand;
|
|
527
|
-
// } ; \0
|
|
528
|
-
case 125 * variable:
|
|
529
|
-
case 59:
|
|
530
|
-
case 0:
|
|
531
|
-
switch (character) {
|
|
532
|
-
// \0 }
|
|
533
|
-
case 0:
|
|
534
|
-
case 125:
|
|
535
|
-
scanning = 0;
|
|
536
|
-
// ;
|
|
537
|
-
case 59 + offset:
|
|
538
|
-
if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
|
539
|
-
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);
|
|
540
|
-
break;
|
|
541
|
-
// @ ;
|
|
542
|
-
case 59:
|
|
543
|
-
characters += ';';
|
|
544
|
-
// { rule/at-rule
|
|
545
|
-
default:
|
|
546
|
-
append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
|
|
547
|
-
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) {
|
|
548
|
-
// d l m s
|
|
549
|
-
case 100:
|
|
550
|
-
case 108:
|
|
551
|
-
case 109:
|
|
552
|
-
case 115:
|
|
553
|
-
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);
|
|
554
|
-
break;
|
|
555
|
-
default:
|
|
556
|
-
parse(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
|
|
560
|
-
break;
|
|
561
|
-
// :
|
|
562
|
-
case 58:
|
|
563
|
-
length = 1 + strlen(characters), property = previous;
|
|
564
|
-
default:
|
|
565
|
-
if (variable < 1) if (character == 123) --variable;else if (character == 125 && variable++ == 0 && prev() == 125) continue;
|
|
566
|
-
switch (characters += from(character), character * variable) {
|
|
567
|
-
// &
|
|
568
|
-
case 38:
|
|
569
|
-
ampersand = offset > 0 ? 1 : (characters += '\f', -1);
|
|
570
|
-
break;
|
|
571
|
-
// ,
|
|
572
|
-
case 44:
|
|
573
|
-
points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
|
|
574
|
-
break;
|
|
575
|
-
// @
|
|
576
|
-
case 64:
|
|
577
|
-
// -
|
|
578
|
-
if (peek() === 45) characters += delimit(next());
|
|
579
|
-
atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
|
|
580
|
-
break;
|
|
581
|
-
// -
|
|
582
|
-
case 45:
|
|
583
|
-
if (previous === 45 && strlen(characters) == 2) variable = 0;
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
return rulesets;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
/**
|
|
590
|
-
* @param {string} value
|
|
591
|
-
* @param {object} root
|
|
592
|
-
* @param {object?} parent
|
|
593
|
-
* @param {number} index
|
|
594
|
-
* @param {number} offset
|
|
595
|
-
* @param {string[]} rules
|
|
596
|
-
* @param {number[]} points
|
|
597
|
-
* @param {string} type
|
|
598
|
-
* @param {string[]} props
|
|
599
|
-
* @param {string[]} children
|
|
600
|
-
* @param {number} length
|
|
601
|
-
* @param {object[]} siblings
|
|
602
|
-
* @return {object}
|
|
603
|
-
*/
|
|
604
|
-
function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
|
|
605
|
-
var post = offset - 1;
|
|
606
|
-
var rule = offset === 0 ? rules : [''];
|
|
607
|
-
var size = sizeof(rule);
|
|
608
|
-
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;
|
|
609
|
-
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings);
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* @param {number} value
|
|
614
|
-
* @param {object} root
|
|
615
|
-
* @param {object?} parent
|
|
616
|
-
* @param {object[]} siblings
|
|
617
|
-
* @return {object}
|
|
618
|
-
*/
|
|
619
|
-
function comment(value, root, parent, siblings) {
|
|
620
|
-
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* @param {string} value
|
|
625
|
-
* @param {object} root
|
|
626
|
-
* @param {object?} parent
|
|
627
|
-
* @param {number} length
|
|
628
|
-
* @param {object[]} siblings
|
|
629
|
-
* @return {object}
|
|
630
|
-
*/
|
|
631
|
-
function declaration(value, root, parent, length, siblings) {
|
|
632
|
-
return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings);
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* @param {string} value
|
|
637
|
-
* @param {number} length
|
|
638
|
-
* @param {object[]} children
|
|
639
|
-
* @return {string}
|
|
640
|
-
*/
|
|
641
|
-
function prefix(value, length, children) {
|
|
642
|
-
switch (hash(value, length)) {
|
|
643
|
-
// color-adjust
|
|
644
|
-
case 5103:
|
|
645
|
-
return WEBKIT + 'print-' + value + value;
|
|
646
|
-
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
647
|
-
case 5737:
|
|
648
|
-
case 4201:
|
|
649
|
-
case 3177:
|
|
650
|
-
case 3433:
|
|
651
|
-
case 1641:
|
|
652
|
-
case 4457:
|
|
653
|
-
case 2921:
|
|
654
|
-
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
655
|
-
case 5572:
|
|
656
|
-
case 6356:
|
|
657
|
-
case 5844:
|
|
658
|
-
case 3191:
|
|
659
|
-
case 6645:
|
|
660
|
-
case 3005:
|
|
661
|
-
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
662
|
-
case 6391:
|
|
663
|
-
case 5879:
|
|
664
|
-
case 5623:
|
|
665
|
-
case 6135:
|
|
666
|
-
case 4599:
|
|
667
|
-
case 4855:
|
|
668
|
-
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
669
|
-
case 4215:
|
|
670
|
-
case 6389:
|
|
671
|
-
case 5109:
|
|
672
|
-
case 5365:
|
|
673
|
-
case 5621:
|
|
674
|
-
case 3829:
|
|
675
|
-
return WEBKIT + value + value;
|
|
676
|
-
// tab-size
|
|
677
|
-
case 4789:
|
|
678
|
-
return MOZ + value + value;
|
|
679
|
-
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
680
|
-
case 5349:
|
|
681
|
-
case 4246:
|
|
682
|
-
case 4810:
|
|
683
|
-
case 6968:
|
|
684
|
-
case 2756:
|
|
685
|
-
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
686
|
-
// writing-mode
|
|
687
|
-
case 5936:
|
|
688
|
-
switch (charat(value, length + 11)) {
|
|
689
|
-
// vertical-l(r)
|
|
690
|
-
case 114:
|
|
691
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
|
692
|
-
// vertical-r(l)
|
|
693
|
-
case 108:
|
|
694
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
|
695
|
-
// horizontal(-)tb
|
|
696
|
-
case 45:
|
|
697
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
|
698
|
-
// default: fallthrough to below
|
|
699
|
-
}
|
|
700
|
-
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
701
|
-
case 6828:
|
|
702
|
-
case 4268:
|
|
703
|
-
case 2903:
|
|
704
|
-
return WEBKIT + value + MS + value + value;
|
|
705
|
-
// order
|
|
706
|
-
case 6165:
|
|
707
|
-
return WEBKIT + value + MS + 'flex-' + value + value;
|
|
708
|
-
// align-items
|
|
709
|
-
case 5187:
|
|
710
|
-
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
|
711
|
-
// align-self
|
|
712
|
-
case 5443:
|
|
713
|
-
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value;
|
|
714
|
-
// align-content
|
|
715
|
-
case 4675:
|
|
716
|
-
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value;
|
|
717
|
-
// flex-shrink
|
|
718
|
-
case 5548:
|
|
719
|
-
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
|
720
|
-
// flex-basis
|
|
721
|
-
case 5292:
|
|
722
|
-
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
|
723
|
-
// flex-grow
|
|
724
|
-
case 6060:
|
|
725
|
-
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
|
726
|
-
// transition
|
|
727
|
-
case 4554:
|
|
728
|
-
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
|
729
|
-
// cursor
|
|
730
|
-
case 6187:
|
|
731
|
-
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
|
732
|
-
// background, background-image
|
|
733
|
-
case 5495:
|
|
734
|
-
case 3959:
|
|
735
|
-
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
|
736
|
-
// justify-content
|
|
737
|
-
case 4968:
|
|
738
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
|
739
|
-
// justify-self
|
|
740
|
-
case 4200:
|
|
741
|
-
if (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value;
|
|
742
|
-
break;
|
|
743
|
-
// grid-template-(columns|rows)
|
|
744
|
-
case 2592:
|
|
745
|
-
case 3360:
|
|
746
|
-
return MS + replace(value, 'template-', '') + value;
|
|
747
|
-
// grid-(row|column)-start
|
|
748
|
-
case 4384:
|
|
749
|
-
case 3616:
|
|
750
|
-
if (children && children.some(function (element, index) {
|
|
751
|
-
return length = index, match(element.props, /grid-\w+-end/);
|
|
752
|
-
})) {
|
|
753
|
-
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+/)) + ';';
|
|
754
|
-
}
|
|
755
|
-
return MS + replace(value, '-start', '') + value;
|
|
756
|
-
// grid-(row|column)-end
|
|
757
|
-
case 4896:
|
|
758
|
-
case 4128:
|
|
759
|
-
return children && children.some(function (element) {
|
|
760
|
-
return match(element.props, /grid-\w+-start/);
|
|
761
|
-
}) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value;
|
|
762
|
-
// (margin|padding)-inline-(start|end)
|
|
763
|
-
case 4095:
|
|
764
|
-
case 3583:
|
|
765
|
-
case 4068:
|
|
766
|
-
case 2532:
|
|
767
|
-
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
|
768
|
-
// (min|max)?(width|height|inline-size|block-size)
|
|
769
|
-
case 8116:
|
|
770
|
-
case 7059:
|
|
771
|
-
case 5753:
|
|
772
|
-
case 5535:
|
|
773
|
-
case 5445:
|
|
774
|
-
case 5701:
|
|
775
|
-
case 4933:
|
|
776
|
-
case 4677:
|
|
777
|
-
case 5533:
|
|
778
|
-
case 5789:
|
|
779
|
-
case 5021:
|
|
780
|
-
case 4765:
|
|
781
|
-
// stretch, max-content, min-content, fill-available
|
|
782
|
-
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
|
783
|
-
// (m)ax-content, (m)in-content
|
|
784
|
-
case 109:
|
|
785
|
-
// -
|
|
786
|
-
if (charat(value, length + 4) !== 45) break;
|
|
787
|
-
// (f)ill-available, (f)it-content
|
|
788
|
-
case 102:
|
|
789
|
-
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
|
790
|
-
// (s)tretch
|
|
791
|
-
case 115:
|
|
792
|
-
return ~indexof(value, 'stretch', 0) ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value;
|
|
793
|
-
}
|
|
794
|
-
break;
|
|
795
|
-
// grid-(column|row)
|
|
796
|
-
case 5152:
|
|
797
|
-
case 5920:
|
|
798
|
-
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) {
|
|
799
|
-
return MS + a + ':' + b + f + (c ? MS + a + '-span:' + (d ? e : +e - +b) + f : '') + value;
|
|
800
|
-
});
|
|
801
|
-
// position: sticky
|
|
802
|
-
case 4949:
|
|
803
|
-
// stick(y)?
|
|
804
|
-
if (charat(value, length + 6) === 121) return replace(value, ':', ':' + WEBKIT) + value;
|
|
805
|
-
break;
|
|
806
|
-
// display: (flex|inline-flex|grid|inline-grid)
|
|
807
|
-
case 6444:
|
|
808
|
-
switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
|
|
809
|
-
// (inline-)?fle(x)
|
|
810
|
-
case 120:
|
|
811
|
-
return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
|
812
|
-
// (inline-)?gri(d)
|
|
813
|
-
case 100:
|
|
814
|
-
return replace(value, ':', ':' + MS) + value;
|
|
815
|
-
}
|
|
816
|
-
break;
|
|
817
|
-
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
818
|
-
case 5719:
|
|
819
|
-
case 2647:
|
|
820
|
-
case 2135:
|
|
821
|
-
case 3927:
|
|
822
|
-
case 2391:
|
|
823
|
-
return replace(value, 'scroll-', 'scroll-snap-') + value;
|
|
824
|
-
}
|
|
825
|
-
return value;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* @param {object[]} children
|
|
830
|
-
* @param {function} callback
|
|
831
|
-
* @return {string}
|
|
832
|
-
*/
|
|
833
|
-
function serialize(children, callback) {
|
|
834
|
-
var output = '';
|
|
835
|
-
for (var i = 0; i < children.length; i++) output += callback(children[i], i, children, callback) || '';
|
|
836
|
-
return output;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
/**
|
|
840
|
-
* @param {object} element
|
|
841
|
-
* @param {number} index
|
|
842
|
-
* @param {object[]} children
|
|
843
|
-
* @param {function} callback
|
|
844
|
-
* @return {string}
|
|
845
|
-
*/
|
|
846
|
-
function stringify(element, index, children, callback) {
|
|
847
|
-
switch (element.type) {
|
|
848
|
-
case LAYER:
|
|
849
|
-
if (element.children.length) break;
|
|
850
|
-
case IMPORT:
|
|
851
|
-
case DECLARATION:
|
|
852
|
-
return element.return = element.return || element.value;
|
|
853
|
-
case COMMENT:
|
|
854
|
-
return '';
|
|
855
|
-
case KEYFRAMES:
|
|
856
|
-
return element.return = element.value + '{' + serialize(element.children, callback) + '}';
|
|
857
|
-
case RULESET:
|
|
858
|
-
if (!strlen(element.value = element.props.join(','))) return '';
|
|
859
|
-
}
|
|
860
|
-
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : '';
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
/**
|
|
864
|
-
* @param {function[]} collection
|
|
865
|
-
* @return {function}
|
|
866
|
-
*/
|
|
867
|
-
function middleware(collection) {
|
|
868
|
-
var length = sizeof(collection);
|
|
869
|
-
return function (element, index, children, callback) {
|
|
870
|
-
var output = '';
|
|
871
|
-
for (var i = 0; i < length; i++) output += collection[i](element, index, children, callback) || '';
|
|
872
|
-
return output;
|
|
873
|
-
};
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
/**
|
|
877
|
-
* @param {function} callback
|
|
878
|
-
* @return {function}
|
|
879
|
-
*/
|
|
880
|
-
function rulesheet(callback) {
|
|
881
|
-
return function (element) {
|
|
882
|
-
if (!element.root) if (element = element.return) callback(element);
|
|
883
|
-
};
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
/**
|
|
887
|
-
* @param {object} element
|
|
888
|
-
* @param {number} index
|
|
889
|
-
* @param {object[]} children
|
|
890
|
-
* @param {function} callback
|
|
891
|
-
*/
|
|
892
|
-
function prefixer(element, index, children, callback) {
|
|
893
|
-
if (element.length > -1) if (!element.return) switch (element.type) {
|
|
894
|
-
case DECLARATION:
|
|
895
|
-
element.return = prefix(element.value, element.length, children);
|
|
896
|
-
return;
|
|
897
|
-
case KEYFRAMES:
|
|
898
|
-
return serialize([copy(element, {
|
|
899
|
-
value: replace(element.value, '@', '@' + WEBKIT)
|
|
900
|
-
})], callback);
|
|
901
|
-
case RULESET:
|
|
902
|
-
if (element.length) return combine(children = element.props, function (value) {
|
|
903
|
-
switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
904
|
-
// :read-(only|write)
|
|
905
|
-
case ':read-only':
|
|
906
|
-
case ':read-write':
|
|
907
|
-
lift(copy(element, {
|
|
908
|
-
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
909
|
-
}));
|
|
910
|
-
lift(copy(element, {
|
|
911
|
-
props: [value]
|
|
912
|
-
}));
|
|
913
|
-
assign(element, {
|
|
914
|
-
props: filter(children, callback)
|
|
915
|
-
});
|
|
916
|
-
break;
|
|
917
|
-
// :placeholder
|
|
918
|
-
case '::placeholder':
|
|
919
|
-
lift(copy(element, {
|
|
920
|
-
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
921
|
-
}));
|
|
922
|
-
lift(copy(element, {
|
|
923
|
-
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
924
|
-
}));
|
|
925
|
-
lift(copy(element, {
|
|
926
|
-
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
|
927
|
-
}));
|
|
928
|
-
lift(copy(element, {
|
|
929
|
-
props: [value]
|
|
930
|
-
}));
|
|
931
|
-
assign(element, {
|
|
932
|
-
props: filter(children, callback)
|
|
933
|
-
});
|
|
934
|
-
break;
|
|
935
|
-
}
|
|
936
|
-
return '';
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
var unitlessKeys = {
|
|
942
|
-
animationIterationCount: 1,
|
|
943
|
-
borderImageOutset: 1,
|
|
944
|
-
borderImageSlice: 1,
|
|
945
|
-
borderImageWidth: 1,
|
|
946
|
-
boxFlex: 1,
|
|
947
|
-
boxFlexGroup: 1,
|
|
948
|
-
boxOrdinalGroup: 1,
|
|
949
|
-
columnCount: 1,
|
|
950
|
-
columns: 1,
|
|
951
|
-
flex: 1,
|
|
952
|
-
flexGrow: 1,
|
|
953
|
-
flexPositive: 1,
|
|
954
|
-
flexShrink: 1,
|
|
955
|
-
flexNegative: 1,
|
|
956
|
-
flexOrder: 1,
|
|
957
|
-
gridRow: 1,
|
|
958
|
-
gridRowEnd: 1,
|
|
959
|
-
gridRowSpan: 1,
|
|
960
|
-
gridRowStart: 1,
|
|
961
|
-
gridColumn: 1,
|
|
962
|
-
gridColumnEnd: 1,
|
|
963
|
-
gridColumnSpan: 1,
|
|
964
|
-
gridColumnStart: 1,
|
|
965
|
-
msGridRow: 1,
|
|
966
|
-
msGridRowSpan: 1,
|
|
967
|
-
msGridColumn: 1,
|
|
968
|
-
msGridColumnSpan: 1,
|
|
969
|
-
fontWeight: 1,
|
|
970
|
-
lineHeight: 1,
|
|
971
|
-
opacity: 1,
|
|
972
|
-
order: 1,
|
|
973
|
-
orphans: 1,
|
|
974
|
-
tabSize: 1,
|
|
975
|
-
widows: 1,
|
|
976
|
-
zIndex: 1,
|
|
977
|
-
zoom: 1,
|
|
978
|
-
WebkitLineClamp: 1,
|
|
979
|
-
// SVG-related properties
|
|
980
|
-
fillOpacity: 1,
|
|
981
|
-
floodOpacity: 1,
|
|
982
|
-
stopOpacity: 1,
|
|
983
|
-
strokeDasharray: 1,
|
|
984
|
-
strokeDashoffset: 1,
|
|
985
|
-
strokeMiterlimit: 1,
|
|
986
|
-
strokeOpacity: 1,
|
|
987
|
-
strokeWidth: 1
|
|
988
|
-
};
|
|
989
|
-
|
|
990
|
-
var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
991
|
-
m = "active",
|
|
992
|
-
y = "data-styled-version",
|
|
993
|
-
v = "6.1.8",
|
|
994
|
-
g = "/*!sc*/\n",
|
|
995
|
-
S = "undefined" != typeof window && "HTMLElement" in window,
|
|
996
|
-
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),
|
|
997
|
-
E = /invalid hook call/i,
|
|
998
|
-
N = new Set(),
|
|
999
|
-
P = function (t, n) {
|
|
1000
|
-
if ("production" !== process.env.NODE_ENV) {
|
|
1001
|
-
var o = n ? ' with the id of "'.concat(n, '"') : "",
|
|
1002
|
-
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.",
|
|
1003
|
-
i = console.error;
|
|
1004
|
-
try {
|
|
1005
|
-
var a = !0;
|
|
1006
|
-
console.error = function (t) {
|
|
1007
|
-
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1008
|
-
E.test(t) ? (a = !1, N.delete(s)) : i.apply(void 0, __spreadArray([t], n, !1));
|
|
1009
|
-
}, React.useRef(), a && !N.has(s) && (console.warn(s), N.add(s));
|
|
1010
|
-
} catch (e) {
|
|
1011
|
-
E.test(e.message) && N.delete(s);
|
|
1012
|
-
} finally {
|
|
1013
|
-
console.error = i;
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
},
|
|
1017
|
-
_ = Object.freeze([]),
|
|
1018
|
-
C = Object.freeze({});
|
|
1019
|
-
function I(e, t, n) {
|
|
1020
|
-
return void 0 === n && (n = C), e.theme !== n.theme && e.theme || t || n.theme;
|
|
1021
|
-
}
|
|
1022
|
-
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"]),
|
|
1023
|
-
O = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
|
|
1024
|
-
D = /(^-|-$)/g;
|
|
1025
|
-
function R(e) {
|
|
1026
|
-
return e.replace(O, "-").replace(D, "");
|
|
1027
|
-
}
|
|
1028
|
-
var T = /(a)(d)/gi,
|
|
1029
|
-
k = 52,
|
|
1030
|
-
j = function (e) {
|
|
1031
|
-
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1032
|
-
};
|
|
1033
|
-
function x(e) {
|
|
1034
|
-
var t,
|
|
1035
|
-
n = "";
|
|
1036
|
-
for (t = Math.abs(e); t > k; t = t / k | 0) n = j(t % k) + n;
|
|
1037
|
-
return (j(t % k) + n).replace(T, "$1-$2");
|
|
1038
|
-
}
|
|
1039
|
-
var V,
|
|
1040
|
-
F = 5381,
|
|
1041
|
-
M = function (e, t) {
|
|
1042
|
-
for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
|
|
1043
|
-
return e;
|
|
1044
|
-
},
|
|
1045
|
-
z = function (e) {
|
|
1046
|
-
return M(F, e);
|
|
1047
|
-
};
|
|
1048
|
-
function $(e) {
|
|
1049
|
-
return x(z(e) >>> 0);
|
|
1050
|
-
}
|
|
1051
|
-
function B(e) {
|
|
1052
|
-
return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
|
|
1053
|
-
}
|
|
1054
|
-
function L(e) {
|
|
1055
|
-
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1056
|
-
}
|
|
1057
|
-
var G = "function" == typeof Symbol && Symbol.for,
|
|
1058
|
-
Y = G ? Symbol.for("react.memo") : 60115,
|
|
1059
|
-
q = G ? Symbol.for("react.forward_ref") : 60112,
|
|
1060
|
-
W = {
|
|
1061
|
-
childContextTypes: !0,
|
|
1062
|
-
contextType: !0,
|
|
1063
|
-
contextTypes: !0,
|
|
1064
|
-
defaultProps: !0,
|
|
1065
|
-
displayName: !0,
|
|
1066
|
-
getDefaultProps: !0,
|
|
1067
|
-
getDerivedStateFromError: !0,
|
|
1068
|
-
getDerivedStateFromProps: !0,
|
|
1069
|
-
mixins: !0,
|
|
1070
|
-
propTypes: !0,
|
|
1071
|
-
type: !0
|
|
1072
|
-
},
|
|
1073
|
-
H = {
|
|
1074
|
-
name: !0,
|
|
1075
|
-
length: !0,
|
|
1076
|
-
prototype: !0,
|
|
1077
|
-
caller: !0,
|
|
1078
|
-
callee: !0,
|
|
1079
|
-
arguments: !0,
|
|
1080
|
-
arity: !0
|
|
1081
|
-
},
|
|
1082
|
-
U = {
|
|
1083
|
-
$$typeof: !0,
|
|
1084
|
-
compare: !0,
|
|
1085
|
-
defaultProps: !0,
|
|
1086
|
-
displayName: !0,
|
|
1087
|
-
propTypes: !0,
|
|
1088
|
-
type: !0
|
|
1089
|
-
},
|
|
1090
|
-
J = ((V = {})[q] = {
|
|
1091
|
-
$$typeof: !0,
|
|
1092
|
-
render: !0,
|
|
1093
|
-
defaultProps: !0,
|
|
1094
|
-
displayName: !0,
|
|
1095
|
-
propTypes: !0
|
|
1096
|
-
}, V[Y] = U, V);
|
|
1097
|
-
function X(e) {
|
|
1098
|
-
return ("type" in (t = e) && t.type.$$typeof) === Y ? U : "$$typeof" in e ? J[e.$$typeof] : W;
|
|
1099
|
-
var t;
|
|
1100
|
-
}
|
|
1101
|
-
var Z = Object.defineProperty,
|
|
1102
|
-
K = Object.getOwnPropertyNames,
|
|
1103
|
-
Q = Object.getOwnPropertySymbols,
|
|
1104
|
-
ee = Object.getOwnPropertyDescriptor,
|
|
1105
|
-
te = Object.getPrototypeOf,
|
|
1106
|
-
ne = Object.prototype;
|
|
1107
|
-
function oe(e, t, n) {
|
|
1108
|
-
if ("string" != typeof t) {
|
|
1109
|
-
if (ne) {
|
|
1110
|
-
var o = te(t);
|
|
1111
|
-
o && o !== ne && oe(e, o, n);
|
|
1112
|
-
}
|
|
1113
|
-
var r = K(t);
|
|
1114
|
-
Q && (r = r.concat(Q(t)));
|
|
1115
|
-
for (var s = X(e), i = X(t), a = 0; a < r.length; ++a) {
|
|
1116
|
-
var c = r[a];
|
|
1117
|
-
if (!(c in H || n && n[c] || i && c in i || s && c in s)) {
|
|
1118
|
-
var l = ee(t, c);
|
|
1119
|
-
try {
|
|
1120
|
-
Z(e, c, l);
|
|
1121
|
-
} catch (e) {}
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
return e;
|
|
1126
|
-
}
|
|
1127
|
-
function re(e) {
|
|
1128
|
-
return "function" == typeof e;
|
|
1129
|
-
}
|
|
1130
|
-
function se(e) {
|
|
1131
|
-
return "object" == typeof e && "styledComponentId" in e;
|
|
1132
|
-
}
|
|
1133
|
-
function ie(e, t) {
|
|
1134
|
-
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1135
|
-
}
|
|
1136
|
-
function ae(e, t) {
|
|
1137
|
-
if (0 === e.length) return "";
|
|
1138
|
-
for (var n = e[0], o = 1; o < e.length; o++) n += t ? t + e[o] : e[o];
|
|
1139
|
-
return n;
|
|
1140
|
-
}
|
|
1141
|
-
function ce(e) {
|
|
1142
|
-
return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1143
|
-
}
|
|
1144
|
-
function le(e, t, n) {
|
|
1145
|
-
if (void 0 === n && (n = !1), !n && !ce(e) && !Array.isArray(e)) return t;
|
|
1146
|
-
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]);
|
|
1147
|
-
return e;
|
|
1148
|
-
}
|
|
1149
|
-
function ue(e, t) {
|
|
1150
|
-
Object.defineProperty(e, "toString", {
|
|
1151
|
-
value: t
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
var pe = "production" !== process.env.NODE_ENV ? {
|
|
1155
|
-
1: "Cannot create styled-component for component: %s.\n\n",
|
|
1156
|
-
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",
|
|
1157
|
-
3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
|
|
1158
|
-
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",
|
|
1159
|
-
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",
|
|
1160
|
-
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",
|
|
1161
|
-
7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
|
|
1162
|
-
8: 'ThemeProvider: Please make your "theme" prop an object.\n\n',
|
|
1163
|
-
9: "Missing document `<head>`\n\n",
|
|
1164
|
-
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",
|
|
1165
|
-
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",
|
|
1166
|
-
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",
|
|
1167
|
-
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",
|
|
1168
|
-
14: 'ThemeProvider: "theme" prop is required.\n\n',
|
|
1169
|
-
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",
|
|
1170
|
-
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",
|
|
1171
|
-
17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",
|
|
1172
|
-
18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"
|
|
1173
|
-
} : {};
|
|
1174
|
-
function de() {
|
|
1175
|
-
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1176
|
-
for (var n = e[0], o = [], r = 1, s = e.length; r < s; r += 1) o.push(e[r]);
|
|
1177
|
-
return o.forEach(function (e) {
|
|
1178
|
-
n = n.replace(/%[a-z]/, e);
|
|
1179
|
-
}), n;
|
|
1180
|
-
}
|
|
1181
|
-
function he(t) {
|
|
1182
|
-
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1183
|
-
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());
|
|
1184
|
-
}
|
|
1185
|
-
var fe = function () {
|
|
1186
|
-
function e(e) {
|
|
1187
|
-
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
|
|
1188
|
-
}
|
|
1189
|
-
return e.prototype.indexOfGroup = function (e) {
|
|
1190
|
-
for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
|
|
1191
|
-
return t;
|
|
1192
|
-
}, e.prototype.insertRules = function (e, t) {
|
|
1193
|
-
if (e >= this.groupSizes.length) {
|
|
1194
|
-
for (var n = this.groupSizes, o = n.length, r = o; e >= r;) if ((r <<= 1) < 0) throw he(16, "".concat(e));
|
|
1195
|
-
this.groupSizes = new Uint32Array(r), this.groupSizes.set(n), this.length = r;
|
|
1196
|
-
for (var s = o; s < r; s++) this.groupSizes[s] = 0;
|
|
1197
|
-
}
|
|
1198
|
-
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++);
|
|
1199
|
-
}, e.prototype.clearGroup = function (e) {
|
|
1200
|
-
if (e < this.length) {
|
|
1201
|
-
var t = this.groupSizes[e],
|
|
1202
|
-
n = this.indexOfGroup(e),
|
|
1203
|
-
o = n + t;
|
|
1204
|
-
this.groupSizes[e] = 0;
|
|
1205
|
-
for (var r = n; r < o; r++) this.tag.deleteRule(n);
|
|
1206
|
-
}
|
|
1207
|
-
}, e.prototype.getGroup = function (e) {
|
|
1208
|
-
var t = "";
|
|
1209
|
-
if (e >= this.length || 0 === this.groupSizes[e]) return t;
|
|
1210
|
-
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);
|
|
1211
|
-
return t;
|
|
1212
|
-
}, e;
|
|
1213
|
-
}(),
|
|
1214
|
-
me = new Map(),
|
|
1215
|
-
ye = new Map(),
|
|
1216
|
-
ve = 1,
|
|
1217
|
-
ge = function (e) {
|
|
1218
|
-
if (me.has(e)) return me.get(e);
|
|
1219
|
-
for (; ye.has(ve);) ve++;
|
|
1220
|
-
var t = ve++;
|
|
1221
|
-
if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > 1073741824)) throw he(16, "".concat(t));
|
|
1222
|
-
return me.set(e, t), ye.set(t, e), t;
|
|
1223
|
-
},
|
|
1224
|
-
Se = function (e, t) {
|
|
1225
|
-
ve = t + 1, me.set(e, t), ye.set(t, e);
|
|
1226
|
-
},
|
|
1227
|
-
we = "style[".concat(f, "][").concat(y, '="').concat(v, '"]'),
|
|
1228
|
-
be = new RegExp("^".concat(f, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),
|
|
1229
|
-
Ee = function (e, t, n) {
|
|
1230
|
-
for (var o, r = n.split(","), s = 0, i = r.length; s < i; s++) (o = r[s]) && e.registerName(t, o);
|
|
1231
|
-
},
|
|
1232
|
-
Ne = function (e, t) {
|
|
1233
|
-
for (var n, o = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(g), r = [], s = 0, i = o.length; s < i; s++) {
|
|
1234
|
-
var a = o[s].trim();
|
|
1235
|
-
if (a) {
|
|
1236
|
-
var c = a.match(be);
|
|
1237
|
-
if (c) {
|
|
1238
|
-
var l = 0 | parseInt(c[1], 10),
|
|
1239
|
-
u = c[2];
|
|
1240
|
-
0 !== l && (Se(u, l), Ee(e, u, c[3]), e.getTag().insertRules(l, r)), r.length = 0;
|
|
1241
|
-
} else r.push(a);
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
};
|
|
1245
|
-
function Pe() {
|
|
1246
|
-
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
1247
|
-
}
|
|
1248
|
-
var _e = function (e) {
|
|
1249
|
-
var t = document.head,
|
|
1250
|
-
n = e || t,
|
|
1251
|
-
o = document.createElement("style"),
|
|
1252
|
-
r = function (e) {
|
|
1253
|
-
var t = Array.from(e.querySelectorAll("style[".concat(f, "]")));
|
|
1254
|
-
return t[t.length - 1];
|
|
1255
|
-
}(n),
|
|
1256
|
-
s = void 0 !== r ? r.nextSibling : null;
|
|
1257
|
-
o.setAttribute(f, m), o.setAttribute(y, v);
|
|
1258
|
-
var i = Pe();
|
|
1259
|
-
return i && o.setAttribute("nonce", i), n.insertBefore(o, s), o;
|
|
1260
|
-
},
|
|
1261
|
-
Ce = function () {
|
|
1262
|
-
function e(e) {
|
|
1263
|
-
this.element = _e(e), this.element.appendChild(document.createTextNode("")), this.sheet = function (e) {
|
|
1264
|
-
if (e.sheet) return e.sheet;
|
|
1265
|
-
for (var t = document.styleSheets, n = 0, o = t.length; n < o; n++) {
|
|
1266
|
-
var r = t[n];
|
|
1267
|
-
if (r.ownerNode === e) return r;
|
|
1268
|
-
}
|
|
1269
|
-
throw he(17);
|
|
1270
|
-
}(this.element), this.length = 0;
|
|
1271
|
-
}
|
|
1272
|
-
return e.prototype.insertRule = function (e, t) {
|
|
1273
|
-
try {
|
|
1274
|
-
return this.sheet.insertRule(t, e), this.length++, !0;
|
|
1275
|
-
} catch (e) {
|
|
1276
|
-
return !1;
|
|
1277
|
-
}
|
|
1278
|
-
}, e.prototype.deleteRule = function (e) {
|
|
1279
|
-
this.sheet.deleteRule(e), this.length--;
|
|
1280
|
-
}, e.prototype.getRule = function (e) {
|
|
1281
|
-
var t = this.sheet.cssRules[e];
|
|
1282
|
-
return t && t.cssText ? t.cssText : "";
|
|
1283
|
-
}, e;
|
|
1284
|
-
}(),
|
|
1285
|
-
Ie = function () {
|
|
1286
|
-
function e(e) {
|
|
1287
|
-
this.element = _e(e), this.nodes = this.element.childNodes, this.length = 0;
|
|
1288
|
-
}
|
|
1289
|
-
return e.prototype.insertRule = function (e, t) {
|
|
1290
|
-
if (e <= this.length && e >= 0) {
|
|
1291
|
-
var n = document.createTextNode(t);
|
|
1292
|
-
return this.element.insertBefore(n, this.nodes[e] || null), this.length++, !0;
|
|
1293
|
-
}
|
|
1294
|
-
return !1;
|
|
1295
|
-
}, e.prototype.deleteRule = function (e) {
|
|
1296
|
-
this.element.removeChild(this.nodes[e]), this.length--;
|
|
1297
|
-
}, e.prototype.getRule = function (e) {
|
|
1298
|
-
return e < this.length ? this.nodes[e].textContent : "";
|
|
1299
|
-
}, e;
|
|
1300
|
-
}(),
|
|
1301
|
-
Ae = function () {
|
|
1302
|
-
function e(e) {
|
|
1303
|
-
this.rules = [], this.length = 0;
|
|
1304
|
-
}
|
|
1305
|
-
return e.prototype.insertRule = function (e, t) {
|
|
1306
|
-
return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
|
|
1307
|
-
}, e.prototype.deleteRule = function (e) {
|
|
1308
|
-
this.rules.splice(e, 1), this.length--;
|
|
1309
|
-
}, e.prototype.getRule = function (e) {
|
|
1310
|
-
return e < this.length ? this.rules[e] : "";
|
|
1311
|
-
}, e;
|
|
1312
|
-
}(),
|
|
1313
|
-
Oe = S,
|
|
1314
|
-
De = {
|
|
1315
|
-
isServer: !S,
|
|
1316
|
-
useCSSOMInjection: !w
|
|
1317
|
-
},
|
|
1318
|
-
Re = function () {
|
|
1319
|
-
function e(e, n, o) {
|
|
1320
|
-
void 0 === e && (e = C), void 0 === n && (n = {});
|
|
1321
|
-
var r = this;
|
|
1322
|
-
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) {
|
|
1323
|
-
for (var t = document.querySelectorAll(we), n = 0, o = t.length; n < o; n++) {
|
|
1324
|
-
var r = t[n];
|
|
1325
|
-
r && r.getAttribute(f) !== m && (Ne(e, r), r.parentNode && r.parentNode.removeChild(r));
|
|
1326
|
-
}
|
|
1327
|
-
}(this)), ue(this, function () {
|
|
1328
|
-
return function (e) {
|
|
1329
|
-
for (var t = e.getTag(), n = t.length, o = "", r = function (n) {
|
|
1330
|
-
var r = function (e) {
|
|
1331
|
-
return ye.get(e);
|
|
1332
|
-
}(n);
|
|
1333
|
-
if (void 0 === r) return "continue";
|
|
1334
|
-
var s = e.names.get(r),
|
|
1335
|
-
i = t.getGroup(n);
|
|
1336
|
-
if (void 0 === s || 0 === i.length) return "continue";
|
|
1337
|
-
var a = "".concat(f, ".g").concat(n, '[id="').concat(r, '"]'),
|
|
1338
|
-
c = "";
|
|
1339
|
-
void 0 !== s && s.forEach(function (e) {
|
|
1340
|
-
e.length > 0 && (c += "".concat(e, ","));
|
|
1341
|
-
}), o += "".concat(i).concat(a, '{content:"').concat(c, '"}').concat(g);
|
|
1342
|
-
}, s = 0; s < n; s++) r(s);
|
|
1343
|
-
return o;
|
|
1344
|
-
}(r);
|
|
1345
|
-
});
|
|
1346
|
-
}
|
|
1347
|
-
return e.registerId = function (e) {
|
|
1348
|
-
return ge(e);
|
|
1349
|
-
}, e.prototype.reconstructWithOptions = function (n, o) {
|
|
1350
|
-
return void 0 === o && (o = !0), new e(__assign(__assign({}, this.options), n), this.gs, o && this.names || void 0);
|
|
1351
|
-
}, e.prototype.allocateGSInstance = function (e) {
|
|
1352
|
-
return this.gs[e] = (this.gs[e] || 0) + 1;
|
|
1353
|
-
}, e.prototype.getTag = function () {
|
|
1354
|
-
return this.tag || (this.tag = (e = function (e) {
|
|
1355
|
-
var t = e.useCSSOMInjection,
|
|
1356
|
-
n = e.target;
|
|
1357
|
-
return e.isServer ? new Ae(n) : t ? new Ce(n) : new Ie(n);
|
|
1358
|
-
}(this.options), new fe(e)));
|
|
1359
|
-
var e;
|
|
1360
|
-
}, e.prototype.hasNameForId = function (e, t) {
|
|
1361
|
-
return this.names.has(e) && this.names.get(e).has(t);
|
|
1362
|
-
}, e.prototype.registerName = function (e, t) {
|
|
1363
|
-
if (ge(e), this.names.has(e)) this.names.get(e).add(t);else {
|
|
1364
|
-
var n = new Set();
|
|
1365
|
-
n.add(t), this.names.set(e, n);
|
|
1366
|
-
}
|
|
1367
|
-
}, e.prototype.insertRules = function (e, t, n) {
|
|
1368
|
-
this.registerName(e, t), this.getTag().insertRules(ge(e), n);
|
|
1369
|
-
}, e.prototype.clearNames = function (e) {
|
|
1370
|
-
this.names.has(e) && this.names.get(e).clear();
|
|
1371
|
-
}, e.prototype.clearRules = function (e) {
|
|
1372
|
-
this.getTag().clearGroup(ge(e)), this.clearNames(e);
|
|
1373
|
-
}, e.prototype.clearTag = function () {
|
|
1374
|
-
this.tag = void 0;
|
|
1375
|
-
}, e;
|
|
1376
|
-
}(),
|
|
1377
|
-
Te = /&/g,
|
|
1378
|
-
ke = /^\s*\/\/.*$/gm;
|
|
1379
|
-
function je(e, t) {
|
|
1380
|
-
return e.map(function (e) {
|
|
1381
|
-
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) {
|
|
1382
|
-
return "".concat(t, " ").concat(e);
|
|
1383
|
-
})), Array.isArray(e.children) && "@keyframes" !== e.type && (e.children = je(e.children, t)), e;
|
|
1384
|
-
});
|
|
1385
|
-
}
|
|
1386
|
-
function xe(e) {
|
|
1387
|
-
var t,
|
|
1388
|
-
n,
|
|
1389
|
-
o,
|
|
1390
|
-
r = void 0 === e ? C : e,
|
|
1391
|
-
s = r.options,
|
|
1392
|
-
i = void 0 === s ? C : s,
|
|
1393
|
-
a = r.plugins,
|
|
1394
|
-
c = void 0 === a ? _ : a,
|
|
1395
|
-
l = function (e, o, r) {
|
|
1396
|
-
return r.startsWith(n) && r.endsWith(n) && r.replaceAll(n, "").length > 0 ? ".".concat(t) : e;
|
|
1397
|
-
},
|
|
1398
|
-
u = c.slice();
|
|
1399
|
-
u.push(function (e) {
|
|
1400
|
-
e.type === RULESET && e.value.includes("&") && (e.props[0] = e.props[0].replace(Te, n).replace(o, l));
|
|
1401
|
-
}), i.prefix && u.push(prefixer), u.push(stringify);
|
|
1402
|
-
var p = function (e, r, s, a) {
|
|
1403
|
-
void 0 === r && (r = ""), void 0 === s && (s = ""), void 0 === a && (a = "&"), t = a, n = r, o = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1404
|
-
var c = e.replace(ke, ""),
|
|
1405
|
-
l = compile(s || r ? "".concat(s, " ").concat(r, " { ").concat(c, " }") : c);
|
|
1406
|
-
i.namespace && (l = je(l, i.namespace));
|
|
1407
|
-
var p = [];
|
|
1408
|
-
return serialize(l, middleware(u.concat(rulesheet(function (e) {
|
|
1409
|
-
return p.push(e);
|
|
1410
|
-
})))), p;
|
|
1411
|
-
};
|
|
1412
|
-
return p.hash = c.length ? c.reduce(function (e, t) {
|
|
1413
|
-
return t.name || he(15), M(e, t.name);
|
|
1414
|
-
}, F).toString() : "", p;
|
|
1415
|
-
}
|
|
1416
|
-
var Ve = new Re(),
|
|
1417
|
-
Fe = xe(),
|
|
1418
|
-
Me = React.createContext({
|
|
1419
|
-
shouldForwardProp: void 0,
|
|
1420
|
-
styleSheet: Ve,
|
|
1421
|
-
stylis: Fe
|
|
1422
|
-
});
|
|
1423
|
-
Me.Consumer;
|
|
1424
|
-
React.createContext(void 0);
|
|
1425
|
-
function Be() {
|
|
1426
|
-
return React.useContext(Me);
|
|
1427
|
-
}
|
|
1428
|
-
var Ge = function () {
|
|
1429
|
-
function e(e, t) {
|
|
1430
|
-
var n = this;
|
|
1431
|
-
this.inject = function (e, t) {
|
|
1432
|
-
void 0 === t && (t = Fe);
|
|
1433
|
-
var o = n.name + t.hash;
|
|
1434
|
-
e.hasNameForId(n.id, o) || e.insertRules(n.id, o, t(n.rules, o, "@keyframes"));
|
|
1435
|
-
}, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = t, ue(this, function () {
|
|
1436
|
-
throw he(12, String(n.name));
|
|
1437
|
-
});
|
|
1438
|
-
}
|
|
1439
|
-
return e.prototype.getName = function (e) {
|
|
1440
|
-
return void 0 === e && (e = Fe), this.name + e.hash;
|
|
1441
|
-
}, e;
|
|
1442
|
-
}(),
|
|
1443
|
-
Ye = function (e) {
|
|
1444
|
-
return e >= "A" && e <= "Z";
|
|
1445
|
-
};
|
|
1446
|
-
function qe(e) {
|
|
1447
|
-
for (var t = "", n = 0; n < e.length; n++) {
|
|
1448
|
-
var o = e[n];
|
|
1449
|
-
if (1 === n && "-" === o && "-" === e[0]) return e;
|
|
1450
|
-
Ye(o) ? t += "-" + o.toLowerCase() : t += o;
|
|
1451
|
-
}
|
|
1452
|
-
return t.startsWith("ms-") ? "-" + t : t;
|
|
1453
|
-
}
|
|
1454
|
-
var We = function (e) {
|
|
1455
|
-
return null == e || !1 === e || "" === e;
|
|
1456
|
-
},
|
|
1457
|
-
He = function (t) {
|
|
1458
|
-
var n,
|
|
1459
|
-
o,
|
|
1460
|
-
r = [];
|
|
1461
|
-
for (var s in t) {
|
|
1462
|
-
var i = t[s];
|
|
1463
|
-
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")), ";")));
|
|
1464
|
-
}
|
|
1465
|
-
return r;
|
|
1466
|
-
};
|
|
1467
|
-
function Ue(e, t, n, o) {
|
|
1468
|
-
if (We(e)) return [];
|
|
1469
|
-
if (se(e)) return [".".concat(e.styledComponentId)];
|
|
1470
|
-
if (re(e)) {
|
|
1471
|
-
if (!re(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
1472
|
-
var r = e(t);
|
|
1473
|
-
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);
|
|
1474
|
-
}
|
|
1475
|
-
var s;
|
|
1476
|
-
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) {
|
|
1477
|
-
return Ue(e, t, n, o);
|
|
1478
|
-
})) : [e.toString()];
|
|
1479
|
-
}
|
|
1480
|
-
function Je(e) {
|
|
1481
|
-
for (var t = 0; t < e.length; t += 1) {
|
|
1482
|
-
var n = e[t];
|
|
1483
|
-
if (re(n) && !se(n)) return !1;
|
|
1484
|
-
}
|
|
1485
|
-
return !0;
|
|
1486
|
-
}
|
|
1487
|
-
var Xe = z(v),
|
|
1488
|
-
Ze = function () {
|
|
1489
|
-
function e(e, t, n) {
|
|
1490
|
-
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);
|
|
1491
|
-
}
|
|
1492
|
-
return e.prototype.generateAndInjectStyles = function (e, t, n) {
|
|
1493
|
-
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, t, n) : "";
|
|
1494
|
-
if (this.isStatic && !n.hash) {
|
|
1495
|
-
if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) o = ie(o, this.staticRulesId);else {
|
|
1496
|
-
var r = ae(Ue(this.rules, e, t, n)),
|
|
1497
|
-
s = x(M(this.baseHash, r) >>> 0);
|
|
1498
|
-
if (!t.hasNameForId(this.componentId, s)) {
|
|
1499
|
-
var i = n(r, ".".concat(s), void 0, this.componentId);
|
|
1500
|
-
t.insertRules(this.componentId, s, i);
|
|
1501
|
-
}
|
|
1502
|
-
o = ie(o, s), this.staticRulesId = s;
|
|
1503
|
-
}
|
|
1504
|
-
} else {
|
|
1505
|
-
for (var a = M(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++) {
|
|
1506
|
-
var u = this.rules[l];
|
|
1507
|
-
if ("string" == typeof u) c += u, "production" !== process.env.NODE_ENV && (a = M(a, u));else if (u) {
|
|
1508
|
-
var p = ae(Ue(u, e, t, n));
|
|
1509
|
-
a = M(a, p + l), c += p;
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
if (c) {
|
|
1513
|
-
var d = x(a >>> 0);
|
|
1514
|
-
t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c, ".".concat(d), void 0, this.componentId)), o = ie(o, d);
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1517
|
-
return o;
|
|
1518
|
-
}, e;
|
|
1519
|
-
}(),
|
|
1520
|
-
Ke = React.createContext(void 0);
|
|
1521
|
-
Ke.Consumer;
|
|
1522
|
-
var nt = {},
|
|
1523
|
-
ot = new Set();
|
|
1524
|
-
function rt(e, r, s) {
|
|
1525
|
-
var i = se(e),
|
|
1526
|
-
a = e,
|
|
1527
|
-
c = !L(e),
|
|
1528
|
-
p = r.attrs,
|
|
1529
|
-
d = void 0 === p ? _ : p,
|
|
1530
|
-
h = r.componentId,
|
|
1531
|
-
f = void 0 === h ? function (e, t) {
|
|
1532
|
-
var n = "string" != typeof e ? "sc" : R(e);
|
|
1533
|
-
nt[n] = (nt[n] || 0) + 1;
|
|
1534
|
-
var o = "".concat(n, "-").concat($(v + n + nt[n]));
|
|
1535
|
-
return t ? "".concat(t, "-").concat(o) : o;
|
|
1536
|
-
}(r.displayName, r.parentComponentId) : h,
|
|
1537
|
-
m = r.displayName,
|
|
1538
|
-
y = void 0 === m ? function (e) {
|
|
1539
|
-
return L(e) ? "styled.".concat(e) : "Styled(".concat(B(e), ")");
|
|
1540
|
-
}(e) : m,
|
|
1541
|
-
g = r.displayName && r.componentId ? "".concat(R(r.displayName), "-").concat(r.componentId) : r.componentId || f,
|
|
1542
|
-
S = i && a.attrs ? a.attrs.concat(d).filter(Boolean) : d,
|
|
1543
|
-
w = r.shouldForwardProp;
|
|
1544
|
-
if (i && a.shouldForwardProp) {
|
|
1545
|
-
var b = a.shouldForwardProp;
|
|
1546
|
-
if (r.shouldForwardProp) {
|
|
1547
|
-
var E = r.shouldForwardProp;
|
|
1548
|
-
w = function (e, t) {
|
|
1549
|
-
return b(e, t) && E(e, t);
|
|
1550
|
-
};
|
|
1551
|
-
} else w = b;
|
|
1552
|
-
}
|
|
1553
|
-
var N = new Ze(s, g, i ? a.componentStyle : void 0);
|
|
1554
|
-
function O(e, r) {
|
|
1555
|
-
return function (e, r, s) {
|
|
1556
|
-
var i = e.attrs,
|
|
1557
|
-
a = e.componentStyle,
|
|
1558
|
-
c = e.defaultProps,
|
|
1559
|
-
p = e.foldedComponentIds,
|
|
1560
|
-
d = e.styledComponentId,
|
|
1561
|
-
h = e.target,
|
|
1562
|
-
f = React.useContext(Ke),
|
|
1563
|
-
m = Be(),
|
|
1564
|
-
y = e.shouldForwardProp || m.shouldForwardProp;
|
|
1565
|
-
"production" !== process.env.NODE_ENV && React.useDebugValue(d);
|
|
1566
|
-
var v = I(r, f, c) || C,
|
|
1567
|
-
g = function (e, n, o) {
|
|
1568
|
-
for (var r, s = __assign(__assign({}, n), {
|
|
1569
|
-
className: void 0,
|
|
1570
|
-
theme: o
|
|
1571
|
-
}), i = 0; i < e.length; i += 1) {
|
|
1572
|
-
var a = re(r = e[i]) ? r(s) : r;
|
|
1573
|
-
for (var c in a) s[c] = "className" === c ? ie(s[c], a[c]) : "style" === c ? __assign(__assign({}, s[c]), a[c]) : a[c];
|
|
1574
|
-
}
|
|
1575
|
-
return n.className && (s.className = ie(s.className, n.className)), s;
|
|
1576
|
-
}(i, r, v),
|
|
1577
|
-
S = g.as || h,
|
|
1578
|
-
w = {};
|
|
1579
|
-
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.)')))));
|
|
1580
|
-
var E = function (e, t) {
|
|
1581
|
-
var n = Be(),
|
|
1582
|
-
o = e.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
1583
|
-
return "production" !== process.env.NODE_ENV && React.useDebugValue(o), o;
|
|
1584
|
-
}(a, g);
|
|
1585
|
-
"production" !== process.env.NODE_ENV && e.warnTooManyClasses && e.warnTooManyClasses(E);
|
|
1586
|
-
var N = ie(p, d);
|
|
1587
|
-
return E && (N += " " + E), g.className && (N += " " + g.className), w[L(S) && !A.has(S) ? "class" : "className"] = N, w.ref = s, React.createElement(S, w);
|
|
1588
|
-
}(D, e, r);
|
|
1589
|
-
}
|
|
1590
|
-
O.displayName = y;
|
|
1591
|
-
var D = React.forwardRef(O);
|
|
1592
|
-
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", {
|
|
1593
|
-
get: function () {
|
|
1594
|
-
return this._foldedDefaultProps;
|
|
1595
|
-
},
|
|
1596
|
-
set: function (e) {
|
|
1597
|
-
this._foldedDefaultProps = i ? function (e) {
|
|
1598
|
-
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1599
|
-
for (var o = 0, r = t; o < r.length; o++) le(e, r[o], !0);
|
|
1600
|
-
return e;
|
|
1601
|
-
}({}, a.defaultProps, e) : e;
|
|
1602
|
-
}
|
|
1603
|
-
}), "production" !== process.env.NODE_ENV && (P(y, g), D.warnTooManyClasses = function (e, t) {
|
|
1604
|
-
var n = {},
|
|
1605
|
-
o = !1;
|
|
1606
|
-
return function (r) {
|
|
1607
|
-
if (!o && (n[r] = !0, Object.keys(n).length >= 200)) {
|
|
1608
|
-
var s = t ? ' with the id of "'.concat(t, '"') : "";
|
|
1609
|
-
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 = {};
|
|
1610
|
-
}
|
|
1611
|
-
};
|
|
1612
|
-
}(y, g)), ue(D, function () {
|
|
1613
|
-
return ".".concat(D.styledComponentId);
|
|
1614
|
-
}), c && oe(D, e, {
|
|
1615
|
-
attrs: !0,
|
|
1616
|
-
componentStyle: !0,
|
|
1617
|
-
displayName: !0,
|
|
1618
|
-
foldedComponentIds: !0,
|
|
1619
|
-
shouldForwardProp: !0,
|
|
1620
|
-
styledComponentId: !0,
|
|
1621
|
-
target: !0
|
|
1622
|
-
}), D;
|
|
1623
|
-
}
|
|
1624
|
-
function st(e, t) {
|
|
1625
|
-
for (var n = [e[0]], o = 0, r = t.length; o < r; o += 1) n.push(t[o], e[o + 1]);
|
|
1626
|
-
return n;
|
|
1627
|
-
}
|
|
1628
|
-
var it = function (e) {
|
|
1629
|
-
return Object.assign(e, {
|
|
1630
|
-
isCss: !0
|
|
1631
|
-
});
|
|
1632
|
-
};
|
|
1633
|
-
function at(t) {
|
|
1634
|
-
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1635
|
-
if (re(t) || ce(t)) return it(Ue(st(_, __spreadArray([t], n, !0))));
|
|
1636
|
-
var r = t;
|
|
1637
|
-
return 0 === n.length && 1 === r.length && "string" == typeof r[0] ? Ue(r) : it(Ue(st(r, n)));
|
|
1638
|
-
}
|
|
1639
|
-
function ct(n, o, r) {
|
|
1640
|
-
if (void 0 === r && (r = C), !o) throw he(1, o);
|
|
1641
|
-
var s = function (t) {
|
|
1642
|
-
for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
|
|
1643
|
-
return n(o, r, at.apply(void 0, __spreadArray([t], s, !1)));
|
|
1644
|
-
};
|
|
1645
|
-
return s.attrs = function (e) {
|
|
1646
|
-
return ct(n, o, __assign(__assign({}, r), {
|
|
1647
|
-
attrs: Array.prototype.concat(r.attrs, e).filter(Boolean)
|
|
1648
|
-
}));
|
|
1649
|
-
}, s.withConfig = function (e) {
|
|
1650
|
-
return ct(n, o, __assign(__assign({}, r), e));
|
|
1651
|
-
}, s;
|
|
1652
|
-
}
|
|
1653
|
-
var lt = function (e) {
|
|
1654
|
-
return ct(rt, e);
|
|
1655
|
-
},
|
|
1656
|
-
ut = lt;
|
|
1657
|
-
A.forEach(function (e) {
|
|
1658
|
-
ut[e] = lt(e);
|
|
1659
|
-
});
|
|
1660
|
-
function ht(t) {
|
|
1661
|
-
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1662
|
-
"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.");
|
|
1663
|
-
var r = ae(at.apply(void 0, __spreadArray([t], n, !1))),
|
|
1664
|
-
s = $(r);
|
|
1665
|
-
return new Ge(s, r);
|
|
1666
|
-
}
|
|
1667
|
-
"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");
|
|
1668
|
-
var gt = "__sc-".concat(f, "__");
|
|
1669
|
-
"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);
|
|
1670
35
|
|
|
1671
36
|
const Colors = {
|
|
1672
37
|
PRIMARY: {
|
|
@@ -1718,7 +83,7 @@ const EditableTheme = {
|
|
|
1718
83
|
PRIMARY_COLOR: Colors.PRIMARY,
|
|
1719
84
|
};
|
|
1720
85
|
|
|
1721
|
-
const Header$3 =
|
|
86
|
+
const Header$3 = styled.div `
|
|
1722
87
|
display: flex;
|
|
1723
88
|
align-items: center;
|
|
1724
89
|
justify-content: space-between;
|
|
@@ -1729,7 +94,7 @@ const Header$3 = ut.div `
|
|
|
1729
94
|
height: 50px;
|
|
1730
95
|
cursor: pointer;
|
|
1731
96
|
`;
|
|
1732
|
-
const Title$2 =
|
|
97
|
+
const Title$2 = styled.div `
|
|
1733
98
|
font-size: ${FontSizes.DEFAULT};
|
|
1734
99
|
font-weight: 400;
|
|
1735
100
|
color: ${Colors.BLACK.Hex};
|
|
@@ -1746,7 +111,7 @@ const Accordion = (_a) => {
|
|
|
1746
111
|
open ? children : null));
|
|
1747
112
|
};
|
|
1748
113
|
|
|
1749
|
-
const StyledButton =
|
|
114
|
+
const StyledButton = styled.button `
|
|
1750
115
|
height: ${props => (props.$small ? '30px' : '40px')};
|
|
1751
116
|
line-height: 1em;
|
|
1752
117
|
border-radius: ${props => (props.$small ? '15px' : '20px')};
|
|
@@ -1789,21 +154,21 @@ const StyledButton = ut.button `
|
|
|
1789
154
|
opacity: ${props => (props.$disabled ? 0.6 : 1)};
|
|
1790
155
|
}
|
|
1791
156
|
`;
|
|
1792
|
-
const Label$5 =
|
|
157
|
+
const Label$5 = styled.span `
|
|
1793
158
|
color: ${props => props.$content_color || '#fff'};
|
|
1794
159
|
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
1795
160
|
font-family: ${FontStyles.DEFAULT};
|
|
1796
161
|
font-weight: 500;
|
|
1797
162
|
line-height: 1;
|
|
1798
163
|
`;
|
|
1799
|
-
const StyledIcon$6 =
|
|
164
|
+
const StyledIcon$6 = styled.span `
|
|
1800
165
|
margin-left: ${props => (props.$hasChildren ? '6px' : '0px')};
|
|
1801
166
|
margin-right: ${props => (props.$hasChildren ? '-4px' : '0px')};
|
|
1802
167
|
display: flex;
|
|
1803
168
|
align-items: center;
|
|
1804
169
|
box-sizing: border-box;
|
|
1805
170
|
`;
|
|
1806
|
-
const Badge$1 =
|
|
171
|
+
const Badge$1 = styled.span `
|
|
1807
172
|
width: ${props => (props.$small ? '20px' : '24px')};
|
|
1808
173
|
height: ${props => (props.$small ? '20px' : '24px')};
|
|
1809
174
|
line-height: 1;
|
|
@@ -1822,7 +187,7 @@ const Badge$1 = ut.span `
|
|
|
1822
187
|
`;
|
|
1823
188
|
const Button = (_a) => {
|
|
1824
189
|
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"]);
|
|
1825
|
-
const theme = React.useContext(
|
|
190
|
+
const theme = React.useContext(styled.ThemeContext) || EditableTheme;
|
|
1826
191
|
const has_children = children && children.length > 0;
|
|
1827
192
|
const button_type_mapping = {
|
|
1828
193
|
primary: {
|
|
@@ -1862,7 +227,7 @@ const Button = (_a) => {
|
|
|
1862
227
|
badge && !icon ? (React.createElement(Badge$1, { "$bg_color": format_styles.badge_bg_color, "$content_color": format_styles.badge_content_color, "$small": small }, badge)) : null));
|
|
1863
228
|
};
|
|
1864
229
|
|
|
1865
|
-
const StyledComponent =
|
|
230
|
+
const StyledComponent = styled.p `
|
|
1866
231
|
color: ${props => Colors[props.$color || 'BLACK'].Hex};
|
|
1867
232
|
font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
1868
233
|
line-height: ${props => (props.$type === 'small' ? '1.5em' : '1.6em')};
|
|
@@ -1883,7 +248,7 @@ Copy.defaultProps = {
|
|
|
1883
248
|
type: 'default',
|
|
1884
249
|
};
|
|
1885
250
|
|
|
1886
|
-
const H1 =
|
|
251
|
+
const H1 = styled.h1 `
|
|
1887
252
|
color: ${Colors.BLACK.Hex};
|
|
1888
253
|
font-size: 30px;
|
|
1889
254
|
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
@@ -1893,7 +258,7 @@ const H1 = ut.h1 `
|
|
|
1893
258
|
padding: ${props => props.$padding || '0px'};
|
|
1894
259
|
box-sizing: border-box;
|
|
1895
260
|
`;
|
|
1896
|
-
const H2 =
|
|
261
|
+
const H2 = styled.h2 `
|
|
1897
262
|
color: ${Colors.BLACK.Hex};
|
|
1898
263
|
font-size: 24px;
|
|
1899
264
|
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
@@ -1903,7 +268,7 @@ const H2 = ut.h2 `
|
|
|
1903
268
|
padding: ${props => props.$padding || '0px'};
|
|
1904
269
|
box-sizing: border-box;
|
|
1905
270
|
`;
|
|
1906
|
-
const H3 =
|
|
271
|
+
const H3 = styled.h3 `
|
|
1907
272
|
color: ${Colors.BLACK.Hex};
|
|
1908
273
|
font-size: 18px;
|
|
1909
274
|
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
@@ -1932,7 +297,7 @@ Heading.defaultProps = {
|
|
|
1932
297
|
type: 'primary',
|
|
1933
298
|
};
|
|
1934
299
|
|
|
1935
|
-
const Wrapper$i =
|
|
300
|
+
const Wrapper$i = styled.div `
|
|
1936
301
|
position: fixed;
|
|
1937
302
|
top: 0;
|
|
1938
303
|
right: 0;
|
|
@@ -1945,7 +310,7 @@ const Wrapper$i = ut.div `
|
|
|
1945
310
|
justify-content: center;
|
|
1946
311
|
box-sizing: border-box;
|
|
1947
312
|
`;
|
|
1948
|
-
const Container$3 =
|
|
313
|
+
const Container$3 = styled.dialog `
|
|
1949
314
|
max-width: 600px;
|
|
1950
315
|
width: auto;
|
|
1951
316
|
border-radius: 8px;
|
|
@@ -1958,7 +323,7 @@ const Container$3 = ut.dialog `
|
|
|
1958
323
|
text-align: center;
|
|
1959
324
|
box-sizing: border-box;
|
|
1960
325
|
`;
|
|
1961
|
-
const Buttons =
|
|
326
|
+
const Buttons = styled.div `
|
|
1962
327
|
display: flex;
|
|
1963
328
|
gap: 10px;
|
|
1964
329
|
align-items: center;
|
|
@@ -1978,7 +343,7 @@ const ActionDialog = (_a) => {
|
|
|
1978
343
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format === 'red' ? 'red' : 'primary' }))) : null)) : null)));
|
|
1979
344
|
};
|
|
1980
345
|
|
|
1981
|
-
const Wrapper$h =
|
|
346
|
+
const Wrapper$h = styled.div `
|
|
1982
347
|
border: 1px solid #f1f1f1;
|
|
1983
348
|
border-radius: 4px;
|
|
1984
349
|
border-left-width: 4px;
|
|
@@ -1989,10 +354,10 @@ const Wrapper$h = ut.div `
|
|
|
1989
354
|
padding: ${({ $small }) => ($small ? '11px' : '20px')};
|
|
1990
355
|
box-sizing: border-box;
|
|
1991
356
|
`;
|
|
1992
|
-
const StyledIcon$5 =
|
|
357
|
+
const StyledIcon$5 = styled(Icon) `
|
|
1993
358
|
flex-shrink: 0;
|
|
1994
359
|
`;
|
|
1995
|
-
const Action$1 =
|
|
360
|
+
const Action$1 = styled.div `
|
|
1996
361
|
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
1997
362
|
font-size: ${FontSizes.DEFAULT};
|
|
1998
363
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -2003,7 +368,7 @@ const Action$1 = ut.div `
|
|
|
2003
368
|
Action$1.defaultProps = { theme: EditableTheme };
|
|
2004
369
|
const Alert = (_a) => {
|
|
2005
370
|
var { action, type = 'info', title, description, small = false } = _a, accessibleProps = __rest(_a, ["action", "type", "title", "description", "small"]);
|
|
2006
|
-
const theme = React.useContext(
|
|
371
|
+
const theme = React.useContext(styled.ThemeContext) || EditableTheme;
|
|
2007
372
|
const type_mapping = {
|
|
2008
373
|
info: {
|
|
2009
374
|
color: theme.PRIMARY_COLOR.Hex,
|
|
@@ -2030,7 +395,7 @@ const Alert = (_a) => {
|
|
|
2030
395
|
action && !small ? React.createElement(Action$1, { onClick: action.onClick }, action.label) : null)));
|
|
2031
396
|
};
|
|
2032
397
|
|
|
2033
|
-
const Wrapper$g =
|
|
398
|
+
const Wrapper$g = styled.div `
|
|
2034
399
|
border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
2035
400
|
border-radius: 8px;
|
|
2036
401
|
box-sizing: border-box;
|
|
@@ -2040,27 +405,27 @@ const Wrapper$g = ut.div `
|
|
|
2040
405
|
padding: 16px 20px;
|
|
2041
406
|
`;
|
|
2042
407
|
Wrapper$g.defaultProps = { theme: EditableTheme };
|
|
2043
|
-
const Left =
|
|
408
|
+
const Left = styled.div `
|
|
2044
409
|
box-sizing: border-box;
|
|
2045
410
|
display: flex;
|
|
2046
411
|
align-items: center;
|
|
2047
412
|
justify-content: space-between;
|
|
2048
413
|
flex-shrink: 0;
|
|
2049
414
|
`;
|
|
2050
|
-
const Info$1 =
|
|
415
|
+
const Info$1 = styled.div `
|
|
2051
416
|
box-sizing: border-box;
|
|
2052
417
|
display: flex;
|
|
2053
418
|
align-items: center;
|
|
2054
419
|
margin-right: 30px;
|
|
2055
420
|
`;
|
|
2056
|
-
const Selected =
|
|
421
|
+
const Selected = styled.span `
|
|
2057
422
|
font-size: 14px;
|
|
2058
423
|
font-weight: 400;
|
|
2059
424
|
font-family: ${FontStyles.DEFAULT};
|
|
2060
425
|
color: ${Colors.BLACK.Hex};
|
|
2061
426
|
line-height: 1;
|
|
2062
427
|
`;
|
|
2063
|
-
const Clear =
|
|
428
|
+
const Clear = styled.span `
|
|
2064
429
|
font-size: 14px;
|
|
2065
430
|
font-weight: 400;
|
|
2066
431
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -2072,13 +437,13 @@ const Clear = ut.span `
|
|
|
2072
437
|
border-left: 1px solid #ccc;
|
|
2073
438
|
`;
|
|
2074
439
|
Clear.defaultProps = { theme: EditableTheme };
|
|
2075
|
-
const Actions$1 =
|
|
440
|
+
const Actions$1 = styled.div `
|
|
2076
441
|
box-sizing: border-box;
|
|
2077
442
|
display: flex;
|
|
2078
443
|
align-items: center;
|
|
2079
444
|
column-gap: 10px;
|
|
2080
445
|
`;
|
|
2081
|
-
const Error
|
|
446
|
+
const Error = styled.div `
|
|
2082
447
|
box-sizing: border-box;
|
|
2083
448
|
display: flex;
|
|
2084
449
|
align-items: center;
|
|
@@ -2090,7 +455,7 @@ const Error$1 = ut.div `
|
|
|
2090
455
|
overflow: hidden;
|
|
2091
456
|
margin-left: 30px;
|
|
2092
457
|
`;
|
|
2093
|
-
const ErrorMsg =
|
|
458
|
+
const ErrorMsg = styled.span `
|
|
2094
459
|
font-size: 14px;
|
|
2095
460
|
font-weight: 500;
|
|
2096
461
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -2108,12 +473,12 @@ const BulkActionBar = (_a) => {
|
|
|
2108
473
|
" Selected"),
|
|
2109
474
|
onClear ? React.createElement(Clear, { onClick: onClear }, "Clear") : null),
|
|
2110
475
|
React.createElement(Actions$1, null, actions.map((action, i) => (React.createElement(Button, Object.assign({}, action, { key: i, small: true })))))),
|
|
2111
|
-
errorMsg ? (React.createElement(Error
|
|
476
|
+
errorMsg ? (React.createElement(Error, null,
|
|
2112
477
|
React.createElement(Icon, { color: Colors.RED.Hex, path: js.mdiInformationOutline, size: '20px' }),
|
|
2113
478
|
React.createElement(ErrorMsg, null, errorMsg))) : null));
|
|
2114
479
|
};
|
|
2115
480
|
|
|
2116
|
-
const Wrapper$f =
|
|
481
|
+
const Wrapper$f = styled.div `
|
|
2117
482
|
background: #fff;
|
|
2118
483
|
border-radius: 8px;
|
|
2119
484
|
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
@@ -2124,7 +489,7 @@ const Wrapper$f = ut.div `
|
|
|
2124
489
|
padding: 10px;
|
|
2125
490
|
width: 200px;
|
|
2126
491
|
`;
|
|
2127
|
-
const MenuItem =
|
|
492
|
+
const MenuItem = styled.div `
|
|
2128
493
|
align-items: center;
|
|
2129
494
|
border-radius: 8px;
|
|
2130
495
|
border: 1px solid transparent;
|
|
@@ -2143,7 +508,7 @@ const MenuItem = ut.div `
|
|
|
2143
508
|
}
|
|
2144
509
|
`;
|
|
2145
510
|
MenuItem.defaultProps = { theme: EditableTheme };
|
|
2146
|
-
const Title$1 =
|
|
511
|
+
const Title$1 = styled.span `
|
|
2147
512
|
font-family: Roboto;
|
|
2148
513
|
font-size: 14px;
|
|
2149
514
|
font-weight: 400;
|
|
@@ -2161,11 +526,11 @@ const MoreMenu = (_a) => {
|
|
|
2161
526
|
})));
|
|
2162
527
|
};
|
|
2163
528
|
|
|
2164
|
-
const Wrapper$e =
|
|
529
|
+
const Wrapper$e = styled.div `
|
|
2165
530
|
position: relative;
|
|
2166
531
|
display: inline-block;
|
|
2167
532
|
`;
|
|
2168
|
-
const StyledMoreMenu =
|
|
533
|
+
const StyledMoreMenu = styled(MoreMenu) `
|
|
2169
534
|
position: absolute;
|
|
2170
535
|
right: ${props => (props.$position === 'right' ? '0px' : 'auto')};
|
|
2171
536
|
left: ${props => (props.$position === 'left' ? '0px' : 'auto')};
|
|
@@ -2180,7 +545,7 @@ const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = '
|
|
|
2180
545
|
show_menu ? (React.createElement(StyledMoreMenu, { "$menuWidth": menuWidth, "$position": position, "$small": small, maxHeight: maxHeight, menuItems: menuItems })) : null));
|
|
2181
546
|
};
|
|
2182
547
|
|
|
2183
|
-
const Wrapper$d =
|
|
548
|
+
const Wrapper$d = styled.label `
|
|
2184
549
|
border-radius: 4px;
|
|
2185
550
|
padding: 4px 0px 4px 6px;
|
|
2186
551
|
margin-left: -6px;
|
|
@@ -2196,13 +561,13 @@ const Wrapper$d = ut.label `
|
|
|
2196
561
|
}
|
|
2197
562
|
`;
|
|
2198
563
|
Wrapper$d.defaultProps = { theme: EditableTheme };
|
|
2199
|
-
const Input$2 =
|
|
564
|
+
const Input$2 = styled.input `
|
|
2200
565
|
font-size: 20px;
|
|
2201
566
|
margin: 5px 0px 0px 0px;
|
|
2202
567
|
line-height: 1.1em;
|
|
2203
568
|
box-sizing: border-box;
|
|
2204
569
|
`;
|
|
2205
|
-
const Label$4 =
|
|
570
|
+
const Label$4 = styled.span `
|
|
2206
571
|
font-family: ${FontStyles.DEFAULT};
|
|
2207
572
|
font-size: ${FontSizes.DEFAULT};
|
|
2208
573
|
font-weight: 400;
|
|
@@ -2218,12 +583,12 @@ const Checkbox = (_a) => {
|
|
|
2218
583
|
children ? React.createElement(Label$4, null, children) : null));
|
|
2219
584
|
};
|
|
2220
585
|
|
|
2221
|
-
const SelectAll =
|
|
586
|
+
const SelectAll = styled.div `
|
|
2222
587
|
padding: 8px 12px;
|
|
2223
588
|
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
2224
589
|
box-sizing: border-box;
|
|
2225
590
|
`;
|
|
2226
|
-
const Options$1 =
|
|
591
|
+
const Options$1 = styled.div `
|
|
2227
592
|
padding: 12px;
|
|
2228
593
|
box-sizing: border-box;
|
|
2229
594
|
`;
|
|
@@ -2264,325 +629,7 @@ const Checklist = (_a) => {
|
|
|
2264
629
|
}))));
|
|
2265
630
|
};
|
|
2266
631
|
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
(function (module, exports) {
|
|
2270
|
-
!function (t, e) {
|
|
2271
|
-
module.exports = e() ;
|
|
2272
|
-
}(commonjsGlobal, function () {
|
|
2273
|
-
|
|
2274
|
-
var t = 1e3,
|
|
2275
|
-
e = 6e4,
|
|
2276
|
-
n = 36e5,
|
|
2277
|
-
r = "millisecond",
|
|
2278
|
-
i = "second",
|
|
2279
|
-
s = "minute",
|
|
2280
|
-
u = "hour",
|
|
2281
|
-
a = "day",
|
|
2282
|
-
o = "week",
|
|
2283
|
-
f = "month",
|
|
2284
|
-
h = "quarter",
|
|
2285
|
-
c = "year",
|
|
2286
|
-
d = "date",
|
|
2287
|
-
l = "Invalid Date",
|
|
2288
|
-
$ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
2289
|
-
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,
|
|
2290
|
-
M = {
|
|
2291
|
-
name: "en",
|
|
2292
|
-
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
2293
|
-
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
2294
|
-
ordinal: function (t) {
|
|
2295
|
-
var e = ["th", "st", "nd", "rd"],
|
|
2296
|
-
n = t % 100;
|
|
2297
|
-
return "[" + t + (e[(n - 20) % 10] || e[n] || e[0]) + "]";
|
|
2298
|
-
}
|
|
2299
|
-
},
|
|
2300
|
-
m = function (t, e, n) {
|
|
2301
|
-
var r = String(t);
|
|
2302
|
-
return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;
|
|
2303
|
-
},
|
|
2304
|
-
v = {
|
|
2305
|
-
s: m,
|
|
2306
|
-
z: function (t) {
|
|
2307
|
-
var e = -t.utcOffset(),
|
|
2308
|
-
n = Math.abs(e),
|
|
2309
|
-
r = Math.floor(n / 60),
|
|
2310
|
-
i = n % 60;
|
|
2311
|
-
return (e <= 0 ? "+" : "-") + m(r, 2, "0") + ":" + m(i, 2, "0");
|
|
2312
|
-
},
|
|
2313
|
-
m: function t(e, n) {
|
|
2314
|
-
if (e.date() < n.date()) return -t(n, e);
|
|
2315
|
-
var r = 12 * (n.year() - e.year()) + (n.month() - e.month()),
|
|
2316
|
-
i = e.clone().add(r, f),
|
|
2317
|
-
s = n - i < 0,
|
|
2318
|
-
u = e.clone().add(r + (s ? -1 : 1), f);
|
|
2319
|
-
return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
|
|
2320
|
-
},
|
|
2321
|
-
a: function (t) {
|
|
2322
|
-
return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
|
|
2323
|
-
},
|
|
2324
|
-
p: function (t) {
|
|
2325
|
-
return {
|
|
2326
|
-
M: f,
|
|
2327
|
-
y: c,
|
|
2328
|
-
w: o,
|
|
2329
|
-
d: a,
|
|
2330
|
-
D: d,
|
|
2331
|
-
h: u,
|
|
2332
|
-
m: s,
|
|
2333
|
-
s: i,
|
|
2334
|
-
ms: r,
|
|
2335
|
-
Q: h
|
|
2336
|
-
}[t] || String(t || "").toLowerCase().replace(/s$/, "");
|
|
2337
|
-
},
|
|
2338
|
-
u: function (t) {
|
|
2339
|
-
return void 0 === t;
|
|
2340
|
-
}
|
|
2341
|
-
},
|
|
2342
|
-
g = "en",
|
|
2343
|
-
D = {};
|
|
2344
|
-
D[g] = M;
|
|
2345
|
-
var p = function (t) {
|
|
2346
|
-
return t instanceof _;
|
|
2347
|
-
},
|
|
2348
|
-
S = function t(e, n, r) {
|
|
2349
|
-
var i;
|
|
2350
|
-
if (!e) return g;
|
|
2351
|
-
if ("string" == typeof e) {
|
|
2352
|
-
var s = e.toLowerCase();
|
|
2353
|
-
D[s] && (i = s), n && (D[s] = n, i = s);
|
|
2354
|
-
var u = e.split("-");
|
|
2355
|
-
if (!i && u.length > 1) return t(u[0]);
|
|
2356
|
-
} else {
|
|
2357
|
-
var a = e.name;
|
|
2358
|
-
D[a] = e, i = a;
|
|
2359
|
-
}
|
|
2360
|
-
return !r && i && (g = i), i || !r && g;
|
|
2361
|
-
},
|
|
2362
|
-
w = function (t, e) {
|
|
2363
|
-
if (p(t)) return t.clone();
|
|
2364
|
-
var n = "object" == typeof e ? e : {};
|
|
2365
|
-
return n.date = t, n.args = arguments, new _(n);
|
|
2366
|
-
},
|
|
2367
|
-
O = v;
|
|
2368
|
-
O.l = S, O.i = p, O.w = function (t, e) {
|
|
2369
|
-
return w(t, {
|
|
2370
|
-
locale: e.$L,
|
|
2371
|
-
utc: e.$u,
|
|
2372
|
-
x: e.$x,
|
|
2373
|
-
$offset: e.$offset
|
|
2374
|
-
});
|
|
2375
|
-
};
|
|
2376
|
-
var _ = function () {
|
|
2377
|
-
function M(t) {
|
|
2378
|
-
this.$L = S(t.locale, null, !0), this.parse(t);
|
|
2379
|
-
}
|
|
2380
|
-
var m = M.prototype;
|
|
2381
|
-
return m.parse = function (t) {
|
|
2382
|
-
this.$d = function (t) {
|
|
2383
|
-
var e = t.date,
|
|
2384
|
-
n = t.utc;
|
|
2385
|
-
if (null === e) return new Date(NaN);
|
|
2386
|
-
if (O.u(e)) return new Date();
|
|
2387
|
-
if (e instanceof Date) return new Date(e);
|
|
2388
|
-
if ("string" == typeof e && !/Z$/i.test(e)) {
|
|
2389
|
-
var r = e.match($);
|
|
2390
|
-
if (r) {
|
|
2391
|
-
var i = r[2] - 1 || 0,
|
|
2392
|
-
s = (r[7] || "0").substring(0, 3);
|
|
2393
|
-
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);
|
|
2394
|
-
}
|
|
2395
|
-
}
|
|
2396
|
-
return new Date(e);
|
|
2397
|
-
}(t), this.$x = t.x || {}, this.init();
|
|
2398
|
-
}, m.init = function () {
|
|
2399
|
-
var t = this.$d;
|
|
2400
|
-
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();
|
|
2401
|
-
}, m.$utils = function () {
|
|
2402
|
-
return O;
|
|
2403
|
-
}, m.isValid = function () {
|
|
2404
|
-
return !(this.$d.toString() === l);
|
|
2405
|
-
}, m.isSame = function (t, e) {
|
|
2406
|
-
var n = w(t);
|
|
2407
|
-
return this.startOf(e) <= n && n <= this.endOf(e);
|
|
2408
|
-
}, m.isAfter = function (t, e) {
|
|
2409
|
-
return w(t) < this.startOf(e);
|
|
2410
|
-
}, m.isBefore = function (t, e) {
|
|
2411
|
-
return this.endOf(e) < w(t);
|
|
2412
|
-
}, m.$g = function (t, e, n) {
|
|
2413
|
-
return O.u(t) ? this[e] : this.set(n, t);
|
|
2414
|
-
}, m.unix = function () {
|
|
2415
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
2416
|
-
}, m.valueOf = function () {
|
|
2417
|
-
return this.$d.getTime();
|
|
2418
|
-
}, m.startOf = function (t, e) {
|
|
2419
|
-
var n = this,
|
|
2420
|
-
r = !!O.u(e) || e,
|
|
2421
|
-
h = O.p(t),
|
|
2422
|
-
l = function (t, e) {
|
|
2423
|
-
var i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
|
|
2424
|
-
return r ? i : i.endOf(a);
|
|
2425
|
-
},
|
|
2426
|
-
$ = function (t, e) {
|
|
2427
|
-
return O.w(n.toDate()[t].apply(n.toDate("s"), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), n);
|
|
2428
|
-
},
|
|
2429
|
-
y = this.$W,
|
|
2430
|
-
M = this.$M,
|
|
2431
|
-
m = this.$D,
|
|
2432
|
-
v = "set" + (this.$u ? "UTC" : "");
|
|
2433
|
-
switch (h) {
|
|
2434
|
-
case c:
|
|
2435
|
-
return r ? l(1, 0) : l(31, 11);
|
|
2436
|
-
case f:
|
|
2437
|
-
return r ? l(1, M) : l(0, M + 1);
|
|
2438
|
-
case o:
|
|
2439
|
-
var g = this.$locale().weekStart || 0,
|
|
2440
|
-
D = (y < g ? y + 7 : y) - g;
|
|
2441
|
-
return l(r ? m - D : m + (6 - D), M);
|
|
2442
|
-
case a:
|
|
2443
|
-
case d:
|
|
2444
|
-
return $(v + "Hours", 0);
|
|
2445
|
-
case u:
|
|
2446
|
-
return $(v + "Minutes", 1);
|
|
2447
|
-
case s:
|
|
2448
|
-
return $(v + "Seconds", 2);
|
|
2449
|
-
case i:
|
|
2450
|
-
return $(v + "Milliseconds", 3);
|
|
2451
|
-
default:
|
|
2452
|
-
return this.clone();
|
|
2453
|
-
}
|
|
2454
|
-
}, m.endOf = function (t) {
|
|
2455
|
-
return this.startOf(t, !1);
|
|
2456
|
-
}, m.$set = function (t, e) {
|
|
2457
|
-
var n,
|
|
2458
|
-
o = O.p(t),
|
|
2459
|
-
h = "set" + (this.$u ? "UTC" : ""),
|
|
2460
|
-
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],
|
|
2461
|
-
$ = o === a ? this.$D + (e - this.$W) : e;
|
|
2462
|
-
if (o === f || o === c) {
|
|
2463
|
-
var y = this.clone().set(d, 1);
|
|
2464
|
-
y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
|
|
2465
|
-
} else l && this.$d[l]($);
|
|
2466
|
-
return this.init(), this;
|
|
2467
|
-
}, m.set = function (t, e) {
|
|
2468
|
-
return this.clone().$set(t, e);
|
|
2469
|
-
}, m.get = function (t) {
|
|
2470
|
-
return this[O.p(t)]();
|
|
2471
|
-
}, m.add = function (r, h) {
|
|
2472
|
-
var d,
|
|
2473
|
-
l = this;
|
|
2474
|
-
r = Number(r);
|
|
2475
|
-
var $ = O.p(h),
|
|
2476
|
-
y = function (t) {
|
|
2477
|
-
var e = w(l);
|
|
2478
|
-
return O.w(e.date(e.date() + Math.round(t * r)), l);
|
|
2479
|
-
};
|
|
2480
|
-
if ($ === f) return this.set(f, this.$M + r);
|
|
2481
|
-
if ($ === c) return this.set(c, this.$y + r);
|
|
2482
|
-
if ($ === a) return y(1);
|
|
2483
|
-
if ($ === o) return y(7);
|
|
2484
|
-
var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1,
|
|
2485
|
-
m = this.$d.getTime() + r * M;
|
|
2486
|
-
return O.w(m, this);
|
|
2487
|
-
}, m.subtract = function (t, e) {
|
|
2488
|
-
return this.add(-1 * t, e);
|
|
2489
|
-
}, m.format = function (t) {
|
|
2490
|
-
var e = this,
|
|
2491
|
-
n = this.$locale();
|
|
2492
|
-
if (!this.isValid()) return n.invalidDate || l;
|
|
2493
|
-
var r = t || "YYYY-MM-DDTHH:mm:ssZ",
|
|
2494
|
-
i = O.z(this),
|
|
2495
|
-
s = this.$H,
|
|
2496
|
-
u = this.$m,
|
|
2497
|
-
a = this.$M,
|
|
2498
|
-
o = n.weekdays,
|
|
2499
|
-
f = n.months,
|
|
2500
|
-
h = function (t, n, i, s) {
|
|
2501
|
-
return t && (t[n] || t(e, r)) || i[n].slice(0, s);
|
|
2502
|
-
},
|
|
2503
|
-
c = function (t) {
|
|
2504
|
-
return O.s(s % 12 || 12, t, "0");
|
|
2505
|
-
},
|
|
2506
|
-
d = n.meridiem || function (t, e, n) {
|
|
2507
|
-
var r = t < 12 ? "AM" : "PM";
|
|
2508
|
-
return n ? r.toLowerCase() : r;
|
|
2509
|
-
},
|
|
2510
|
-
$ = {
|
|
2511
|
-
YY: String(this.$y).slice(-2),
|
|
2512
|
-
YYYY: O.s(this.$y, 4, "0"),
|
|
2513
|
-
M: a + 1,
|
|
2514
|
-
MM: O.s(a + 1, 2, "0"),
|
|
2515
|
-
MMM: h(n.monthsShort, a, f, 3),
|
|
2516
|
-
MMMM: h(f, a),
|
|
2517
|
-
D: this.$D,
|
|
2518
|
-
DD: O.s(this.$D, 2, "0"),
|
|
2519
|
-
d: String(this.$W),
|
|
2520
|
-
dd: h(n.weekdaysMin, this.$W, o, 2),
|
|
2521
|
-
ddd: h(n.weekdaysShort, this.$W, o, 3),
|
|
2522
|
-
dddd: o[this.$W],
|
|
2523
|
-
H: String(s),
|
|
2524
|
-
HH: O.s(s, 2, "0"),
|
|
2525
|
-
h: c(1),
|
|
2526
|
-
hh: c(2),
|
|
2527
|
-
a: d(s, u, !0),
|
|
2528
|
-
A: d(s, u, !1),
|
|
2529
|
-
m: String(u),
|
|
2530
|
-
mm: O.s(u, 2, "0"),
|
|
2531
|
-
s: String(this.$s),
|
|
2532
|
-
ss: O.s(this.$s, 2, "0"),
|
|
2533
|
-
SSS: O.s(this.$ms, 3, "0"),
|
|
2534
|
-
Z: i
|
|
2535
|
-
};
|
|
2536
|
-
return r.replace(y, function (t, e) {
|
|
2537
|
-
return e || $[t] || i.replace(":", "");
|
|
2538
|
-
});
|
|
2539
|
-
}, m.utcOffset = function () {
|
|
2540
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
2541
|
-
}, m.diff = function (r, d, l) {
|
|
2542
|
-
var $,
|
|
2543
|
-
y = O.p(d),
|
|
2544
|
-
M = w(r),
|
|
2545
|
-
m = (M.utcOffset() - this.utcOffset()) * e,
|
|
2546
|
-
v = this - M,
|
|
2547
|
-
g = O.m(this, M);
|
|
2548
|
-
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);
|
|
2549
|
-
}, m.daysInMonth = function () {
|
|
2550
|
-
return this.endOf(f).$D;
|
|
2551
|
-
}, m.$locale = function () {
|
|
2552
|
-
return D[this.$L];
|
|
2553
|
-
}, m.locale = function (t, e) {
|
|
2554
|
-
if (!t) return this.$L;
|
|
2555
|
-
var n = this.clone(),
|
|
2556
|
-
r = S(t, e, !0);
|
|
2557
|
-
return r && (n.$L = r), n;
|
|
2558
|
-
}, m.clone = function () {
|
|
2559
|
-
return O.w(this.$d, this);
|
|
2560
|
-
}, m.toDate = function () {
|
|
2561
|
-
return new Date(this.valueOf());
|
|
2562
|
-
}, m.toJSON = function () {
|
|
2563
|
-
return this.isValid() ? this.toISOString() : null;
|
|
2564
|
-
}, m.toISOString = function () {
|
|
2565
|
-
return this.$d.toISOString();
|
|
2566
|
-
}, m.toString = function () {
|
|
2567
|
-
return this.$d.toUTCString();
|
|
2568
|
-
}, M;
|
|
2569
|
-
}(),
|
|
2570
|
-
T = _.prototype;
|
|
2571
|
-
return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function (t) {
|
|
2572
|
-
T[t[1]] = function (e) {
|
|
2573
|
-
return this.$g(e, t[0], t[1]);
|
|
2574
|
-
};
|
|
2575
|
-
}), w.extend = function (t, e) {
|
|
2576
|
-
return t.$i || (t(e, _, w), t.$i = !0), w;
|
|
2577
|
-
}, w.locale = S, w.isDayjs = p, w.unix = function (t) {
|
|
2578
|
-
return w(1e3 * t);
|
|
2579
|
-
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
2580
|
-
});
|
|
2581
|
-
})(dayjs_min);
|
|
2582
|
-
var dayjs_minExports = dayjs_min.exports;
|
|
2583
|
-
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
2584
|
-
|
|
2585
|
-
const Wrapper$c = ut.div `
|
|
632
|
+
const Wrapper$c = styled.div `
|
|
2586
633
|
border-radius: 4px;
|
|
2587
634
|
height: 40px;
|
|
2588
635
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
@@ -2604,7 +651,7 @@ const Wrapper$c = ut.div `
|
|
|
2604
651
|
}
|
|
2605
652
|
`;
|
|
2606
653
|
Wrapper$c.defaultProps = { theme: EditableTheme };
|
|
2607
|
-
const Trigger$1 =
|
|
654
|
+
const Trigger$1 = styled.select `
|
|
2608
655
|
appearance: none;
|
|
2609
656
|
box-shadow: none;
|
|
2610
657
|
outline: none;
|
|
@@ -2624,7 +671,7 @@ const Trigger$1 = ut.select `
|
|
|
2624
671
|
position: relative;
|
|
2625
672
|
z-index: 2;
|
|
2626
673
|
`;
|
|
2627
|
-
const IconWrapper$2 =
|
|
674
|
+
const IconWrapper$2 = styled(Icon) `
|
|
2628
675
|
position: absolute;
|
|
2629
676
|
right: 9px;
|
|
2630
677
|
z-index: 1;
|
|
@@ -2647,11 +694,11 @@ const Select = (_a) => {
|
|
|
2647
694
|
React.createElement(IconWrapper$2, { color: Colors.BLACK.Hex, path: js.mdiChevronDown, size: '22px' })));
|
|
2648
695
|
};
|
|
2649
696
|
|
|
2650
|
-
const DatePickerWrapper =
|
|
697
|
+
const DatePickerWrapper = styled.div `
|
|
2651
698
|
display: flex;
|
|
2652
699
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
2653
700
|
`;
|
|
2654
|
-
const Middle =
|
|
701
|
+
const Middle = styled.div `
|
|
2655
702
|
margin: 0px -1px;
|
|
2656
703
|
flex-grow: 1;
|
|
2657
704
|
`;
|
|
@@ -2717,7 +764,7 @@ const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate
|
|
|
2717
764
|
React.createElement(Select, { invalid: invalid, onChange: handleYearChange, options: years, readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: dDate.format('YYYY') }))));
|
|
2718
765
|
};
|
|
2719
766
|
|
|
2720
|
-
const Scrim$1 =
|
|
767
|
+
const Scrim$1 = styled.div `
|
|
2721
768
|
position: ${({ $position }) => $position};
|
|
2722
769
|
top: 0;
|
|
2723
770
|
right: 0;
|
|
@@ -2726,7 +773,7 @@ const Scrim$1 = ut.div `
|
|
|
2726
773
|
z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
|
|
2727
774
|
background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
|
|
2728
775
|
`;
|
|
2729
|
-
const Container$2 =
|
|
776
|
+
const Container$2 = styled.div `
|
|
2730
777
|
z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
|
|
2731
778
|
min-width: 400px;
|
|
2732
779
|
width: ${({ $width }) => $width || '400px'};
|
|
@@ -2744,7 +791,7 @@ const Container$2 = ut.div `
|
|
|
2744
791
|
box-sizing: border-box;
|
|
2745
792
|
background: #fff;
|
|
2746
793
|
`;
|
|
2747
|
-
const Header$2 =
|
|
794
|
+
const Header$2 = styled.div `
|
|
2748
795
|
padding: 30px 20px;
|
|
2749
796
|
display: flex;
|
|
2750
797
|
align-items: flex-start;
|
|
@@ -2752,21 +799,21 @@ const Header$2 = ut.div `
|
|
|
2752
799
|
flex-shrink: 0;
|
|
2753
800
|
background: #fff;
|
|
2754
801
|
`;
|
|
2755
|
-
const Close$1 =
|
|
802
|
+
const Close$1 = styled.div `
|
|
2756
803
|
margin-left: auto;
|
|
2757
804
|
display: flex;
|
|
2758
805
|
align-items: center;
|
|
2759
806
|
padding-left: 20px;
|
|
2760
807
|
cursor: pointer;
|
|
2761
808
|
`;
|
|
2762
|
-
const ContentWrapper$1 =
|
|
809
|
+
const ContentWrapper$1 = styled.div `
|
|
2763
810
|
overflow-x: hidden;
|
|
2764
811
|
overflow-y: auto;
|
|
2765
812
|
box-sizing: border-box;
|
|
2766
813
|
flex: 1;
|
|
2767
814
|
background: #fff;
|
|
2768
815
|
`;
|
|
2769
|
-
const ButtonBar$1 =
|
|
816
|
+
const ButtonBar$1 = styled.div `
|
|
2770
817
|
padding: 20px;
|
|
2771
818
|
display: flex;
|
|
2772
819
|
align-items: center;
|
|
@@ -2804,12 +851,12 @@ const Drawer = (_a) => {
|
|
|
2804
851
|
scrim ? React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, onClick: onClose }) : null));
|
|
2805
852
|
};
|
|
2806
853
|
|
|
2807
|
-
const Wrapper$b =
|
|
854
|
+
const Wrapper$b = styled.div `
|
|
2808
855
|
display: inline-block;
|
|
2809
856
|
position: relative;
|
|
2810
857
|
height: 16px;
|
|
2811
858
|
`;
|
|
2812
|
-
const StyledIcon$4 =
|
|
859
|
+
const StyledIcon$4 = styled(Icon) `
|
|
2813
860
|
width: 16px;
|
|
2814
861
|
height: 16px;
|
|
2815
862
|
margin: 0px 6px;
|
|
@@ -2845,7 +892,7 @@ const positions = {
|
|
|
2845
892
|
transform: 'translateY(-50%)',
|
|
2846
893
|
},
|
|
2847
894
|
};
|
|
2848
|
-
const Content$3 =
|
|
895
|
+
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])));
|
|
2849
896
|
Content$3.defaultProps = { theme: EditableTheme };
|
|
2850
897
|
const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }) => {
|
|
2851
898
|
const [show_content, toggleContent] = React.useState(false);
|
|
@@ -2854,15 +901,15 @@ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }
|
|
|
2854
901
|
show_content ? (React.createElement(Content$3, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
|
|
2855
902
|
};
|
|
2856
903
|
|
|
2857
|
-
const Wrapper$a =
|
|
2858
|
-
const LabelRow =
|
|
904
|
+
const Wrapper$a = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props.style)));
|
|
905
|
+
const LabelRow = styled.div `
|
|
2859
906
|
display: flex;
|
|
2860
907
|
align-items: center;
|
|
2861
908
|
justify-content: space-between;
|
|
2862
909
|
margin: 0 0 4px 0;
|
|
2863
910
|
box-sizing: border-box;
|
|
2864
911
|
`;
|
|
2865
|
-
const Label$3 =
|
|
912
|
+
const Label$3 = styled.label `
|
|
2866
913
|
font-size: ${FontSizes.DEFAULT};
|
|
2867
914
|
font-weight: 500;
|
|
2868
915
|
line-height: 1em;
|
|
@@ -2871,11 +918,11 @@ const Label$3 = ut.label `
|
|
|
2871
918
|
display: flex;
|
|
2872
919
|
align-items: center;
|
|
2873
920
|
`;
|
|
2874
|
-
const Required =
|
|
921
|
+
const Required = styled.span `
|
|
2875
922
|
color: ${Colors.RED.Hex};
|
|
2876
923
|
margin-left: 4px;
|
|
2877
924
|
`;
|
|
2878
|
-
const Action =
|
|
925
|
+
const Action = styled.span `
|
|
2879
926
|
font-size: ${FontSizes.DEFAULT};
|
|
2880
927
|
font-weight: 500;
|
|
2881
928
|
line-height: 1em;
|
|
@@ -2884,7 +931,7 @@ const Action = ut.span `
|
|
|
2884
931
|
cursor: pointer;
|
|
2885
932
|
`;
|
|
2886
933
|
Action.defaultProps = { theme: EditableTheme };
|
|
2887
|
-
const Description =
|
|
934
|
+
const Description = styled.div `
|
|
2888
935
|
font-size: ${FontSizes.SMALL};
|
|
2889
936
|
font-weight: 400;
|
|
2890
937
|
line-height: 1.3em;
|
|
@@ -2893,7 +940,7 @@ const Description = ut.div `
|
|
|
2893
940
|
margin: 0 0 8px 0;
|
|
2894
941
|
box-sizing: border-box;
|
|
2895
942
|
`;
|
|
2896
|
-
const Validation =
|
|
943
|
+
const Validation = styled.div `
|
|
2897
944
|
font-size: ${FontSizes.SMALL};
|
|
2898
945
|
font-weight: 400;
|
|
2899
946
|
line-height: 1.3em;
|
|
@@ -2916,7 +963,7 @@ const Field = (_a) => {
|
|
|
2916
963
|
validationText ? React.createElement(Validation, null, validationText) : null));
|
|
2917
964
|
};
|
|
2918
965
|
|
|
2919
|
-
const Wrapper$9 =
|
|
966
|
+
const Wrapper$9 = styled.fieldset `
|
|
2920
967
|
margin-inline-start: 0px;
|
|
2921
968
|
margin-inline-end: 0px;
|
|
2922
969
|
padding-block-start: 0px;
|
|
@@ -2929,7 +976,7 @@ const Wrapper$9 = ut.fieldset `
|
|
|
2929
976
|
border-color: transparent;
|
|
2930
977
|
border-image: none;
|
|
2931
978
|
`;
|
|
2932
|
-
const Label$2 =
|
|
979
|
+
const Label$2 = styled.legend `
|
|
2933
980
|
padding-inline-start: 0px;
|
|
2934
981
|
padding-inline-end: 0px;
|
|
2935
982
|
|
|
@@ -2940,7 +987,7 @@ const Label$2 = ut.legend `
|
|
|
2940
987
|
line-height: 22px;
|
|
2941
988
|
margin-bottom: 6px;
|
|
2942
989
|
`;
|
|
2943
|
-
const Content$2 =
|
|
990
|
+
const Content$2 = styled.div `
|
|
2944
991
|
padding: 20px;
|
|
2945
992
|
border-radius: 8px;
|
|
2946
993
|
background: #fcfcfc;
|
|
@@ -2951,7 +998,7 @@ const FieldGroup = ({ children, label }) => {
|
|
|
2951
998
|
React.createElement(Content$2, null, children)));
|
|
2952
999
|
};
|
|
2953
1000
|
|
|
2954
|
-
const Dropzone =
|
|
1001
|
+
const Dropzone = styled.div `
|
|
2955
1002
|
border-radius: 8px;
|
|
2956
1003
|
border-width: 1px;
|
|
2957
1004
|
border-style: dashed;
|
|
@@ -2960,7 +1007,7 @@ const Dropzone = ut.div `
|
|
|
2960
1007
|
cursor: copy;
|
|
2961
1008
|
`;
|
|
2962
1009
|
Dropzone.defaultProps = { theme: EditableTheme };
|
|
2963
|
-
const IconWrapper$1 =
|
|
1010
|
+
const IconWrapper$1 = styled.div `
|
|
2964
1011
|
width: 80px;
|
|
2965
1012
|
height: 80px;
|
|
2966
1013
|
border-radius: 40px;
|
|
@@ -2969,7 +1016,7 @@ const IconWrapper$1 = ut.div `
|
|
|
2969
1016
|
align-items: center;
|
|
2970
1017
|
justify-content: center;
|
|
2971
1018
|
`;
|
|
2972
|
-
const StyledIcon$3 =
|
|
1019
|
+
const StyledIcon$3 = styled(Icon) `
|
|
2973
1020
|
width: 40px !important;
|
|
2974
1021
|
height: 40px !important;
|
|
2975
1022
|
|
|
@@ -2977,27 +1024,27 @@ const StyledIcon$3 = ut(Icon) `
|
|
|
2977
1024
|
fill: ${Colors.GRAY.Hex} !important;
|
|
2978
1025
|
}
|
|
2979
1026
|
`;
|
|
2980
|
-
const ClickZone =
|
|
1027
|
+
const ClickZone = styled.div `
|
|
2981
1028
|
margin: 40px 20px;
|
|
2982
1029
|
display: flex;
|
|
2983
1030
|
flex-direction: column;
|
|
2984
1031
|
align-items: center;
|
|
2985
1032
|
gap: 16px;
|
|
2986
1033
|
`;
|
|
2987
|
-
const Content$1 =
|
|
1034
|
+
const Content$1 = styled.div `
|
|
2988
1035
|
display: flex;
|
|
2989
1036
|
flex-direction: column;
|
|
2990
1037
|
align-items: center;
|
|
2991
1038
|
gap: 2px;
|
|
2992
1039
|
`;
|
|
2993
|
-
const Files =
|
|
1040
|
+
const Files = styled.div `
|
|
2994
1041
|
display: flex;
|
|
2995
1042
|
flex-direction: column;
|
|
2996
1043
|
align-self: stretch;
|
|
2997
1044
|
gap: 10px;
|
|
2998
1045
|
margin: 20px;
|
|
2999
1046
|
`;
|
|
3000
|
-
const File =
|
|
1047
|
+
const File = styled.div `
|
|
3001
1048
|
display: flex;
|
|
3002
1049
|
padding: 10px;
|
|
3003
1050
|
align-items: center;
|
|
@@ -3007,7 +1054,7 @@ const File = ut.div `
|
|
|
3007
1054
|
border: 1px solid #cccccc;
|
|
3008
1055
|
background: #ffffff;
|
|
3009
1056
|
`;
|
|
3010
|
-
const Remove$1 =
|
|
1057
|
+
const Remove$1 = styled(Icon) `
|
|
3011
1058
|
width: 24px;
|
|
3012
1059
|
height: 24px;
|
|
3013
1060
|
cursor: pointer;
|
|
@@ -3201,7 +1248,7 @@ const formatAsSsn = (number) => {
|
|
|
3201
1248
|
return formatted_value;
|
|
3202
1249
|
};
|
|
3203
1250
|
|
|
3204
|
-
const StyledInput =
|
|
1251
|
+
const StyledInput = styled.input `
|
|
3205
1252
|
border: none !important;
|
|
3206
1253
|
background: none !important;
|
|
3207
1254
|
font-size: ${FontSizes.DEFAULT};
|
|
@@ -3222,7 +1269,7 @@ const StyledInput = ut.input `
|
|
|
3222
1269
|
display: block;
|
|
3223
1270
|
width: 100%;
|
|
3224
1271
|
`;
|
|
3225
|
-
const StyledSuffix =
|
|
1272
|
+
const StyledSuffix = styled.div `
|
|
3226
1273
|
box-sizing: border-box;
|
|
3227
1274
|
border-radius: 0px 4px 4px 0px;
|
|
3228
1275
|
display: flex;
|
|
@@ -3240,7 +1287,7 @@ const StyledSuffix = ut.div `
|
|
|
3240
1287
|
font-size: ${FontSizes.DEFAULT};
|
|
3241
1288
|
color: Colors.BLACK.Hex;
|
|
3242
1289
|
`;
|
|
3243
|
-
const StyledWrapper =
|
|
1290
|
+
const StyledWrapper = styled.div `
|
|
3244
1291
|
display: flex;
|
|
3245
1292
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
3246
1293
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
@@ -3255,7 +1302,7 @@ const StyledWrapper = ut.div `
|
|
|
3255
1302
|
}
|
|
3256
1303
|
`;
|
|
3257
1304
|
StyledWrapper.defaultProps = { theme: EditableTheme };
|
|
3258
|
-
const StyledTextarea =
|
|
1305
|
+
const StyledTextarea = styled.textarea `
|
|
3259
1306
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
3260
1307
|
border-radius: 4px;
|
|
3261
1308
|
border-width: 1px;
|
|
@@ -3284,7 +1331,7 @@ const StyledTextarea = ut.textarea `
|
|
|
3284
1331
|
}
|
|
3285
1332
|
`;
|
|
3286
1333
|
StyledTextarea.defaultProps = { theme: EditableTheme };
|
|
3287
|
-
const SuggestedValues =
|
|
1334
|
+
const SuggestedValues = styled.div `
|
|
3288
1335
|
background: #fff;
|
|
3289
1336
|
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
3290
1337
|
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
@@ -3301,7 +1348,7 @@ const SuggestedValues = ut.div `
|
|
|
3301
1348
|
overflow: auto;
|
|
3302
1349
|
`;
|
|
3303
1350
|
SuggestedValues.defaultProps = { theme: EditableTheme };
|
|
3304
|
-
const SuggestedSummary =
|
|
1351
|
+
const SuggestedSummary = styled.div `
|
|
3305
1352
|
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
3306
1353
|
font-size: 12px;
|
|
3307
1354
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -3314,7 +1361,7 @@ const SuggestedSummary = ut.div `
|
|
|
3314
1361
|
position: sticky;
|
|
3315
1362
|
top: 0px;
|
|
3316
1363
|
`;
|
|
3317
|
-
const SuggestedValue =
|
|
1364
|
+
const SuggestedValue = styled.div `
|
|
3318
1365
|
cursor: pointer;
|
|
3319
1366
|
padding: 8px 12px;
|
|
3320
1367
|
font-size: ${FontSizes.DEFAULT};
|
|
@@ -3387,7 +1434,7 @@ const Input$1 = (_a) => {
|
|
|
3387
1434
|
}))) : null));
|
|
3388
1435
|
};
|
|
3389
1436
|
|
|
3390
|
-
const Wrapper$8 =
|
|
1437
|
+
const Wrapper$8 = styled.a `
|
|
3391
1438
|
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
3392
1439
|
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
3393
1440
|
line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
|
|
@@ -3407,7 +1454,7 @@ const Link = (_a) => {
|
|
|
3407
1454
|
return (React.createElement(Wrapper$8, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
|
|
3408
1455
|
};
|
|
3409
1456
|
|
|
3410
|
-
const dash =
|
|
1457
|
+
const dash = styled.keyframes `
|
|
3411
1458
|
0% {
|
|
3412
1459
|
stroke-dasharray: 1, 160;
|
|
3413
1460
|
stroke-dashoffset: 0;
|
|
@@ -3421,7 +1468,7 @@ const dash = ht `
|
|
|
3421
1468
|
stroke-dashoffset: -124;
|
|
3422
1469
|
}
|
|
3423
1470
|
`;
|
|
3424
|
-
const Spinner =
|
|
1471
|
+
const Spinner = styled.svg `
|
|
3425
1472
|
z-index: 2;
|
|
3426
1473
|
position: absolute;
|
|
3427
1474
|
top: 50%;
|
|
@@ -3430,7 +1477,7 @@ const Spinner = ut.svg `
|
|
|
3430
1477
|
width: 40px;
|
|
3431
1478
|
height: 40px;
|
|
3432
1479
|
`;
|
|
3433
|
-
const Path =
|
|
1480
|
+
const Path = styled.path `
|
|
3434
1481
|
stroke: #0193d7;
|
|
3435
1482
|
stroke-linecap: round;
|
|
3436
1483
|
-webkit-animation: ${dash} 1.1s ease-in-out infinite;
|
|
@@ -3483,7 +1530,7 @@ const Logo = (_a) => {
|
|
|
3483
1530
|
}
|
|
3484
1531
|
};
|
|
3485
1532
|
|
|
3486
|
-
const Steps =
|
|
1533
|
+
const Steps = styled.div `
|
|
3487
1534
|
padding: 20px;
|
|
3488
1535
|
border-bottom: 1px solid #e7e6e6;
|
|
3489
1536
|
background: #f5f5f5;
|
|
@@ -3491,18 +1538,18 @@ const Steps = ut.div `
|
|
|
3491
1538
|
gap: 30px;
|
|
3492
1539
|
align-items: center;
|
|
3493
1540
|
`;
|
|
3494
|
-
const Step =
|
|
1541
|
+
const Step = styled.div `
|
|
3495
1542
|
display: flex;
|
|
3496
1543
|
align-items: center;
|
|
3497
1544
|
gap: 8px;
|
|
3498
1545
|
`;
|
|
3499
|
-
const StyledIcon$2 =
|
|
1546
|
+
const StyledIcon$2 = styled(Icon) `
|
|
3500
1547
|
> path {
|
|
3501
1548
|
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
3502
1549
|
}
|
|
3503
1550
|
`;
|
|
3504
1551
|
StyledIcon$2.defaultProps = { theme: EditableTheme };
|
|
3505
|
-
const StepIndicator =
|
|
1552
|
+
const StepIndicator = styled.div `
|
|
3506
1553
|
width: 30px;
|
|
3507
1554
|
height: 30px;
|
|
3508
1555
|
border-radius: 15px;
|
|
@@ -3518,7 +1565,7 @@ const StepIndicator = ut.div `
|
|
|
3518
1565
|
flex-shrink: 0;
|
|
3519
1566
|
`;
|
|
3520
1567
|
StepIndicator.defaultProps = { theme: EditableTheme };
|
|
3521
|
-
const StepLabel =
|
|
1568
|
+
const StepLabel = styled.div `
|
|
3522
1569
|
color: #000;
|
|
3523
1570
|
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
3524
1571
|
font-size: 14px;
|
|
@@ -3533,7 +1580,7 @@ const ProgressBar = ({ steps }) => {
|
|
|
3533
1580
|
})));
|
|
3534
1581
|
};
|
|
3535
1582
|
|
|
3536
|
-
const Wrapper$7 =
|
|
1583
|
+
const Wrapper$7 = styled.div `
|
|
3537
1584
|
position: fixed;
|
|
3538
1585
|
top: 0;
|
|
3539
1586
|
right: 0;
|
|
@@ -3545,7 +1592,7 @@ const Wrapper$7 = ut.div `
|
|
|
3545
1592
|
align-items: center;
|
|
3546
1593
|
justify-content: center;
|
|
3547
1594
|
`;
|
|
3548
|
-
const Container$1 =
|
|
1595
|
+
const Container$1 = styled.dialog `
|
|
3549
1596
|
width: ${props => (props.$fullscreen ? 'calc(100vw - 80px)' : props.$maxWidth || '900px')};
|
|
3550
1597
|
max-width: calc(100vw - 80px);
|
|
3551
1598
|
height: ${props => (props.$fullscreen ? 'calc(100vh - 80px)' : 'auto')};
|
|
@@ -3561,7 +1608,7 @@ const Container$1 = ut.dialog `
|
|
|
3561
1608
|
display: flex;
|
|
3562
1609
|
flex-direction: column;
|
|
3563
1610
|
`;
|
|
3564
|
-
const Header$1 =
|
|
1611
|
+
const Header$1 = styled.div `
|
|
3565
1612
|
flex-shrink: 0;
|
|
3566
1613
|
padding: 20px;
|
|
3567
1614
|
border-bottom: 1px solid #e7e6e6;
|
|
@@ -3570,28 +1617,28 @@ const Header$1 = ut.div `
|
|
|
3570
1617
|
background: #ffffff;
|
|
3571
1618
|
box-sizing: border-box;
|
|
3572
1619
|
`;
|
|
3573
|
-
const Close =
|
|
1620
|
+
const Close = styled.div `
|
|
3574
1621
|
margin-left: auto;
|
|
3575
1622
|
display: flex;
|
|
3576
1623
|
align-items: center;
|
|
3577
1624
|
padding-left: 20px;
|
|
3578
1625
|
cursor: pointer;
|
|
3579
1626
|
`;
|
|
3580
|
-
const CloseMsg =
|
|
1627
|
+
const CloseMsg = styled.span `
|
|
3581
1628
|
font-size: ${FontSizes.SMALL};
|
|
3582
1629
|
font-weight: 400;
|
|
3583
1630
|
font-family: ${FontStyles.DEFAULT};
|
|
3584
1631
|
line-height: 1em;
|
|
3585
1632
|
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
3586
1633
|
`;
|
|
3587
|
-
const ContentWrapper =
|
|
1634
|
+
const ContentWrapper = styled.div `
|
|
3588
1635
|
overflow-x: hidden;
|
|
3589
1636
|
overflow-y: auto;
|
|
3590
1637
|
background: #ffffff;
|
|
3591
1638
|
flex: 1;
|
|
3592
1639
|
box-sizing: border-box;
|
|
3593
1640
|
`;
|
|
3594
|
-
const ButtonBar =
|
|
1641
|
+
const ButtonBar = styled.div `
|
|
3595
1642
|
flex-shrink: 0;
|
|
3596
1643
|
background: #ffffff;
|
|
3597
1644
|
padding: 20px;
|
|
@@ -3634,11 +1681,11 @@ const Modal = (_a) => {
|
|
|
3634
1681
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: 'primary', margin: '0px 0px 0px 10px' }))) : null)) : null)) : null)));
|
|
3635
1682
|
};
|
|
3636
1683
|
|
|
3637
|
-
const Wrapper$6 =
|
|
1684
|
+
const Wrapper$6 = styled.div `
|
|
3638
1685
|
position: relative;
|
|
3639
1686
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
3640
1687
|
`;
|
|
3641
|
-
const Trigger =
|
|
1688
|
+
const Trigger = styled.div `
|
|
3642
1689
|
box-sizing: border-box;
|
|
3643
1690
|
border-radius: ${props => (props.$showOptions ? '4px 4px 0px 0px' : '4px')};
|
|
3644
1691
|
height: 40px;
|
|
@@ -3667,7 +1714,7 @@ const Trigger = ut.div `
|
|
|
3667
1714
|
z-index: 1;
|
|
3668
1715
|
`;
|
|
3669
1716
|
Trigger.defaultProps = { theme: EditableTheme };
|
|
3670
|
-
const Value =
|
|
1717
|
+
const Value = styled.div `
|
|
3671
1718
|
color: ${Colors.BLACK.Hex};
|
|
3672
1719
|
font-family: ${FontStyles.DEFAULT};
|
|
3673
1720
|
font-size: ${FontSizes.DEFAULT};
|
|
@@ -3678,7 +1725,7 @@ const Value = ut.div `
|
|
|
3678
1725
|
white-space: nowrap;
|
|
3679
1726
|
width: 100%;
|
|
3680
1727
|
`;
|
|
3681
|
-
const Options =
|
|
1728
|
+
const Options = styled.div `
|
|
3682
1729
|
background: #fff;
|
|
3683
1730
|
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
3684
1731
|
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
@@ -3694,7 +1741,7 @@ const Options = ut.div `
|
|
|
3694
1741
|
overflow: auto;
|
|
3695
1742
|
`;
|
|
3696
1743
|
Options.defaultProps = { theme: EditableTheme };
|
|
3697
|
-
const Scrim =
|
|
1744
|
+
const Scrim = styled.div `
|
|
3698
1745
|
bottom: 0;
|
|
3699
1746
|
left: 0;
|
|
3700
1747
|
position: fixed;
|
|
@@ -3717,7 +1764,7 @@ const MultiSelect = (_a) => {
|
|
|
3717
1764
|
showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
|
|
3718
1765
|
};
|
|
3719
1766
|
|
|
3720
|
-
const Wrapper$5 =
|
|
1767
|
+
const Wrapper$5 = styled.div `
|
|
3721
1768
|
display: inline-block;
|
|
3722
1769
|
border-radius: 4px;
|
|
3723
1770
|
padding: 4px 6px;
|
|
@@ -3726,18 +1773,18 @@ const Wrapper$5 = ut.div `
|
|
|
3726
1773
|
box-sizing: border-box;
|
|
3727
1774
|
cursor: ${props => (props.$removable ? 'pointer' : 'default')};
|
|
3728
1775
|
`;
|
|
3729
|
-
const Content =
|
|
1776
|
+
const Content = styled.div `
|
|
3730
1777
|
display: flex;
|
|
3731
1778
|
align-items: center;
|
|
3732
1779
|
`;
|
|
3733
|
-
const Label$1 =
|
|
1780
|
+
const Label$1 = styled.div `
|
|
3734
1781
|
color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
|
|
3735
1782
|
font-size: ${FontSizes.SMALL};
|
|
3736
1783
|
font-weight: 500;
|
|
3737
1784
|
font-family: ${FontStyles.DEFAULT};
|
|
3738
1785
|
line-height: 1.2em;
|
|
3739
1786
|
`;
|
|
3740
|
-
const Remove =
|
|
1787
|
+
const Remove = styled.div `
|
|
3741
1788
|
margin-left: 10px;
|
|
3742
1789
|
display: flex;
|
|
3743
1790
|
align-items: center;
|
|
@@ -3751,7 +1798,7 @@ const Tag = (_a) => {
|
|
|
3751
1798
|
React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: js.mdiClose, size: '15px' }))) : null)));
|
|
3752
1799
|
};
|
|
3753
1800
|
|
|
3754
|
-
const Wrapper$4 =
|
|
1801
|
+
const Wrapper$4 = styled.div `
|
|
3755
1802
|
display: flex;
|
|
3756
1803
|
padding: 16px 30px;
|
|
3757
1804
|
align-items: center;
|
|
@@ -3759,24 +1806,24 @@ const Wrapper$4 = ut.div `
|
|
|
3759
1806
|
align-self: stretch;
|
|
3760
1807
|
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
3761
1808
|
`;
|
|
3762
|
-
const Title =
|
|
1809
|
+
const Title = styled.div `
|
|
3763
1810
|
display: flex;
|
|
3764
1811
|
align-items: center;
|
|
3765
1812
|
gap: 20px;
|
|
3766
1813
|
`;
|
|
3767
|
-
const Info =
|
|
1814
|
+
const Info = styled.div `
|
|
3768
1815
|
display: flex;
|
|
3769
1816
|
flex-direction: column;
|
|
3770
1817
|
align-items: flex-start;
|
|
3771
1818
|
gap: 4px;
|
|
3772
1819
|
flex: 1 0 0;
|
|
3773
1820
|
`;
|
|
3774
|
-
const Breadcrumbs =
|
|
1821
|
+
const Breadcrumbs = styled.div `
|
|
3775
1822
|
display: flex;
|
|
3776
1823
|
align-items: center;
|
|
3777
1824
|
gap: 4px;
|
|
3778
1825
|
`;
|
|
3779
|
-
const Actions =
|
|
1826
|
+
const Actions = styled.div `
|
|
3780
1827
|
display: flex;
|
|
3781
1828
|
align-items: center;
|
|
3782
1829
|
gap: 8px;
|
|
@@ -3801,7 +1848,7 @@ const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag }) => {
|
|
|
3801
1848
|
menuItems.length ? (React.createElement(ButtonMenu, { format: format, label: label, menuItems: menuItems, small: true })) : null)) : null));
|
|
3802
1849
|
};
|
|
3803
1850
|
|
|
3804
|
-
const Wrapper$3 =
|
|
1851
|
+
const Wrapper$3 = styled.nav `
|
|
3805
1852
|
box-sizing: border-box;
|
|
3806
1853
|
display: flex;
|
|
3807
1854
|
align-items: center;
|
|
@@ -3836,7 +1883,7 @@ const Pagination = (_a) => {
|
|
|
3836
1883
|
React.createElement(Button, { disabled: is_last_page, icon: js.mdiChevronRight, onClick: handleNextClick, small: true })));
|
|
3837
1884
|
};
|
|
3838
1885
|
|
|
3839
|
-
const Wrapper$2 =
|
|
1886
|
+
const Wrapper$2 = styled.label `
|
|
3840
1887
|
border-radius: 4px;
|
|
3841
1888
|
padding: 4px 0px 4px 6px;
|
|
3842
1889
|
margin-left: -6px;
|
|
@@ -3852,12 +1899,12 @@ const Wrapper$2 = ut.label `
|
|
|
3852
1899
|
}
|
|
3853
1900
|
`;
|
|
3854
1901
|
Wrapper$2.defaultProps = { theme: EditableTheme };
|
|
3855
|
-
const Input =
|
|
1902
|
+
const Input = styled.input `
|
|
3856
1903
|
font-size: 20px;
|
|
3857
1904
|
margin: 0px 0px 2px 0px;
|
|
3858
1905
|
line-height: 1.1em;
|
|
3859
1906
|
`;
|
|
3860
|
-
const Label =
|
|
1907
|
+
const Label = styled.span `
|
|
3861
1908
|
font-family: ${FontStyles.DEFAULT};
|
|
3862
1909
|
font-size: ${FontSizes.DEFAULT};
|
|
3863
1910
|
font-weight: 400;
|
|
@@ -3880,7 +1927,7 @@ const RadioList = (_a) => {
|
|
|
3880
1927
|
})));
|
|
3881
1928
|
};
|
|
3882
1929
|
|
|
3883
|
-
const StyledTable =
|
|
1930
|
+
const StyledTable = styled.table `
|
|
3884
1931
|
width: 100%;
|
|
3885
1932
|
margin-top: 1px;
|
|
3886
1933
|
table-layout: ${props => props.$tableLayout || 'auto'};
|
|
@@ -3890,7 +1937,7 @@ const StyledTable = ut.table `
|
|
|
3890
1937
|
border-color: none;
|
|
3891
1938
|
box-sizing: border-box;
|
|
3892
1939
|
`;
|
|
3893
|
-
const Header =
|
|
1940
|
+
const Header = styled.th `
|
|
3894
1941
|
padding: 12px !important;
|
|
3895
1942
|
text-align: left;
|
|
3896
1943
|
font-weight: 500;
|
|
@@ -3909,7 +1956,7 @@ const Header = ut.th `
|
|
|
3909
1956
|
color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
|
|
3910
1957
|
`;
|
|
3911
1958
|
Header.defaultProps = { theme: EditableTheme };
|
|
3912
|
-
const Row =
|
|
1959
|
+
const Row = styled.tr `
|
|
3913
1960
|
cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
|
|
3914
1961
|
transition: all 0.2s;
|
|
3915
1962
|
background-color: ${props => props.$bgColor};
|
|
@@ -3919,7 +1966,7 @@ const Row = ut.tr `
|
|
|
3919
1966
|
}
|
|
3920
1967
|
`;
|
|
3921
1968
|
Row.defaultProps = { theme: EditableTheme };
|
|
3922
|
-
const Column =
|
|
1969
|
+
const Column = styled.td `
|
|
3923
1970
|
padding: 16px 12px !important;
|
|
3924
1971
|
font-size: ${FontSizes.DEFAULT} !important;
|
|
3925
1972
|
font-weight: 400 !important;
|
|
@@ -3930,13 +1977,13 @@ const Column = ut.td `
|
|
|
3930
1977
|
box-sizing: border-box;
|
|
3931
1978
|
width: ${props => props.$width || 'auto'};
|
|
3932
1979
|
`;
|
|
3933
|
-
const IconWrapper =
|
|
1980
|
+
const IconWrapper = styled.span `
|
|
3934
1981
|
position: absolute;
|
|
3935
1982
|
top: 50%;
|
|
3936
1983
|
transform: translateY(-50%);
|
|
3937
1984
|
margin-left: 2px;
|
|
3938
1985
|
`;
|
|
3939
|
-
const StyledIcon$1 =
|
|
1986
|
+
const StyledIcon$1 = styled(Icon) `
|
|
3940
1987
|
> path {
|
|
3941
1988
|
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
3942
1989
|
}
|
|
@@ -3959,7 +2006,7 @@ const Table = (_a) => {
|
|
|
3959
2006
|
}))) : null));
|
|
3960
2007
|
};
|
|
3961
2008
|
|
|
3962
|
-
const Wrapper$1 =
|
|
2009
|
+
const Wrapper$1 = styled.div `
|
|
3963
2010
|
display: flex;
|
|
3964
2011
|
box-sizing: border-box;
|
|
3965
2012
|
align-items: flex-end;
|
|
@@ -3970,7 +2017,7 @@ const Wrapper$1 = ut.div `
|
|
|
3970
2017
|
padding: 0;
|
|
3971
2018
|
margin: 0;
|
|
3972
2019
|
`;
|
|
3973
|
-
const Tab =
|
|
2020
|
+
const Tab = styled.div `
|
|
3974
2021
|
display: flex;
|
|
3975
2022
|
align-items: center;
|
|
3976
2023
|
gap: 6px;
|
|
@@ -3992,7 +2039,7 @@ const Tab = ut.div `
|
|
|
3992
2039
|
}
|
|
3993
2040
|
`;
|
|
3994
2041
|
Tab.defaultProps = { theme: EditableTheme };
|
|
3995
|
-
const Badge =
|
|
2042
|
+
const Badge = styled.div `
|
|
3996
2043
|
display: flex;
|
|
3997
2044
|
width: 18px;
|
|
3998
2045
|
height: 18px;
|
|
@@ -4019,7 +2066,7 @@ const Tabs = (_a) => {
|
|
|
4019
2066
|
};
|
|
4020
2067
|
Tabs.defaultProps = {};
|
|
4021
2068
|
|
|
4022
|
-
const Track =
|
|
2069
|
+
const Track = styled.div `
|
|
4023
2070
|
height: 24px;
|
|
4024
2071
|
border-radius: 12px;
|
|
4025
2072
|
background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
|
|
@@ -4030,7 +2077,7 @@ const Track = ut.div `
|
|
|
4030
2077
|
padding: 2px;
|
|
4031
2078
|
box-sizing: border-box;
|
|
4032
2079
|
`;
|
|
4033
|
-
const Handle =
|
|
2080
|
+
const Handle = styled.div `
|
|
4034
2081
|
width: 20px;
|
|
4035
2082
|
height: 20px;
|
|
4036
2083
|
border-radius: 10px;
|
|
@@ -4050,7 +2097,7 @@ const Toggle = (_a) => {
|
|
|
4050
2097
|
};
|
|
4051
2098
|
Toggle.defaultProps = {};
|
|
4052
2099
|
|
|
4053
|
-
const Container =
|
|
2100
|
+
const Container = styled.div `
|
|
4054
2101
|
width: 100%;
|
|
4055
2102
|
padding: 40px auto;
|
|
4056
2103
|
gap: 20px;
|
|
@@ -4059,14 +2106,14 @@ const Container = ut.div `
|
|
|
4059
2106
|
justify-items: center;
|
|
4060
2107
|
align-items: center;
|
|
4061
2108
|
`;
|
|
4062
|
-
const Wrapper =
|
|
2109
|
+
const Wrapper = styled.div `
|
|
4063
2110
|
gap: 10px;
|
|
4064
2111
|
display: flex;
|
|
4065
2112
|
flex-direction: column;
|
|
4066
2113
|
justify-items: center;
|
|
4067
2114
|
align-items: center;
|
|
4068
2115
|
`;
|
|
4069
|
-
const StyledIcon =
|
|
2116
|
+
const StyledIcon = styled.div `
|
|
4070
2117
|
display: flex;
|
|
4071
2118
|
align-items: center;
|
|
4072
2119
|
justify-content: center;
|