@pie-element/matrix 0.1.3 → 0.1.4-next.1008
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/CHANGELOG.md +150 -0
- package/configure/CHANGELOG.md +117 -0
- package/configure/lib/HeaderCommon.js +1 -1
- package/configure/lib/Main.js +12 -6
- package/configure/lib/Main.js.map +1 -1
- package/configure/lib/MatrixColumnsSizeHeaderInput.js +2 -2
- package/configure/lib/MatrixLabelEditableButton.js +9 -3
- package/configure/lib/MatrixLabelEditableButton.js.map +1 -1
- package/configure/lib/MatrixLabelTypeHeaderInput.js +2 -2
- package/configure/lib/MatrixRowsSizeHeaderInput.js +2 -2
- package/configure/lib/MatrixValues.js +14 -7
- package/configure/lib/MatrixValues.js.map +1 -1
- package/configure/lib/NumberInput.js +5 -1
- package/configure/lib/NumberInput.js.map +1 -1
- package/configure/lib/defaults.js +5 -0
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/index.js +3 -3
- package/configure/package.json +3 -3
- package/controller/CHANGELOG.md +16 -0
- package/controller/lib/index.js +3 -3
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +1 -1
- package/docs/config-schema.json +16 -0
- package/docs/config-schema.json.md +12 -0
- package/lib/ChoiceInput.js.map +1 -1
- package/lib/Main.js +1 -1
- package/lib/Main.js.map +1 -1
- package/lib/Matrix.js +9 -14
- package/lib/Matrix.js.map +1 -1
- package/lib/index.js +5 -2
- package/lib/index.js.map +1 -1
- package/package.json +4 -4
- package/module/configure.js +0 -3286
- package/module/controller.js +0 -947
- package/module/demo.js +0 -36
- package/module/element.js +0 -1599
- package/module/index.html +0 -16
- package/module/manifest.json +0 -10
package/module/configure.js
DELETED
|
@@ -1,3286 +0,0 @@
|
|
|
1
|
-
import {_dll_react, _dll_material_ui__core, _dll_prop_types, _dll_material_ui__core_styles, _dll_react_dom, _dll_lodash} from "../../../@pie-ui/shared-lib@^4.3.3/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__editable_html, _dll_pie_lib__config_ui, _dll_pie_framework__pie_configure_events} from "../../shared-config@^1.8.13/module/index.js";
|
|
3
|
-
function unwrapExports(x) {
|
|
4
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
-
}
|
|
6
|
-
function createCommonjsModule(fn, module) {
|
|
7
|
-
return (module = {
|
|
8
|
-
exports: {}
|
|
9
|
-
}, fn(module, module.exports), module.exports);
|
|
10
|
-
}
|
|
11
|
-
var s = 1000;
|
|
12
|
-
var m = s * 60;
|
|
13
|
-
var h = m * 60;
|
|
14
|
-
var d = h * 24;
|
|
15
|
-
var w = d * 7;
|
|
16
|
-
var y = d * 365.25;
|
|
17
|
-
var ms = function (val, options) {
|
|
18
|
-
options = options || ({});
|
|
19
|
-
var type = typeof val;
|
|
20
|
-
if (type === 'string' && val.length > 0) {
|
|
21
|
-
return parse(val);
|
|
22
|
-
} else if (type === 'number' && isFinite(val)) {
|
|
23
|
-
return options.long ? fmtLong(val) : fmtShort(val);
|
|
24
|
-
}
|
|
25
|
-
throw new Error('val is not a non-empty string or a valid number. val=' + JSON.stringify(val));
|
|
26
|
-
};
|
|
27
|
-
function parse(str) {
|
|
28
|
-
str = String(str);
|
|
29
|
-
if (str.length > 100) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
var match = (/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i).exec(str);
|
|
33
|
-
if (!match) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
var n = parseFloat(match[1]);
|
|
37
|
-
var type = (match[2] || 'ms').toLowerCase();
|
|
38
|
-
switch (type) {
|
|
39
|
-
case 'years':
|
|
40
|
-
case 'year':
|
|
41
|
-
case 'yrs':
|
|
42
|
-
case 'yr':
|
|
43
|
-
case 'y':
|
|
44
|
-
return n * y;
|
|
45
|
-
case 'weeks':
|
|
46
|
-
case 'week':
|
|
47
|
-
case 'w':
|
|
48
|
-
return n * w;
|
|
49
|
-
case 'days':
|
|
50
|
-
case 'day':
|
|
51
|
-
case 'd':
|
|
52
|
-
return n * d;
|
|
53
|
-
case 'hours':
|
|
54
|
-
case 'hour':
|
|
55
|
-
case 'hrs':
|
|
56
|
-
case 'hr':
|
|
57
|
-
case 'h':
|
|
58
|
-
return n * h;
|
|
59
|
-
case 'minutes':
|
|
60
|
-
case 'minute':
|
|
61
|
-
case 'mins':
|
|
62
|
-
case 'min':
|
|
63
|
-
case 'm':
|
|
64
|
-
return n * m;
|
|
65
|
-
case 'seconds':
|
|
66
|
-
case 'second':
|
|
67
|
-
case 'secs':
|
|
68
|
-
case 'sec':
|
|
69
|
-
case 's':
|
|
70
|
-
return n * s;
|
|
71
|
-
case 'milliseconds':
|
|
72
|
-
case 'millisecond':
|
|
73
|
-
case 'msecs':
|
|
74
|
-
case 'msec':
|
|
75
|
-
case 'ms':
|
|
76
|
-
return n;
|
|
77
|
-
default:
|
|
78
|
-
return undefined;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
function fmtShort(ms) {
|
|
82
|
-
var msAbs = Math.abs(ms);
|
|
83
|
-
if (msAbs >= d) {
|
|
84
|
-
return Math.round(ms / d) + 'd';
|
|
85
|
-
}
|
|
86
|
-
if (msAbs >= h) {
|
|
87
|
-
return Math.round(ms / h) + 'h';
|
|
88
|
-
}
|
|
89
|
-
if (msAbs >= m) {
|
|
90
|
-
return Math.round(ms / m) + 'm';
|
|
91
|
-
}
|
|
92
|
-
if (msAbs >= s) {
|
|
93
|
-
return Math.round(ms / s) + 's';
|
|
94
|
-
}
|
|
95
|
-
return ms + 'ms';
|
|
96
|
-
}
|
|
97
|
-
function fmtLong(ms) {
|
|
98
|
-
var msAbs = Math.abs(ms);
|
|
99
|
-
if (msAbs >= d) {
|
|
100
|
-
return plural(ms, msAbs, d, 'day');
|
|
101
|
-
}
|
|
102
|
-
if (msAbs >= h) {
|
|
103
|
-
return plural(ms, msAbs, h, 'hour');
|
|
104
|
-
}
|
|
105
|
-
if (msAbs >= m) {
|
|
106
|
-
return plural(ms, msAbs, m, 'minute');
|
|
107
|
-
}
|
|
108
|
-
if (msAbs >= s) {
|
|
109
|
-
return plural(ms, msAbs, s, 'second');
|
|
110
|
-
}
|
|
111
|
-
return ms + ' ms';
|
|
112
|
-
}
|
|
113
|
-
function plural(ms, msAbs, n, name) {
|
|
114
|
-
var isPlural = msAbs >= n * 1.5;
|
|
115
|
-
return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
|
|
116
|
-
}
|
|
117
|
-
function setup(env) {
|
|
118
|
-
createDebug.debug = createDebug;
|
|
119
|
-
createDebug.default = createDebug;
|
|
120
|
-
createDebug.coerce = coerce;
|
|
121
|
-
createDebug.disable = disable;
|
|
122
|
-
createDebug.enable = enable;
|
|
123
|
-
createDebug.enabled = enabled;
|
|
124
|
-
createDebug.humanize = ms;
|
|
125
|
-
createDebug.destroy = destroy;
|
|
126
|
-
Object.keys(env).forEach(key => {
|
|
127
|
-
createDebug[key] = env[key];
|
|
128
|
-
});
|
|
129
|
-
createDebug.names = [];
|
|
130
|
-
createDebug.skips = [];
|
|
131
|
-
createDebug.formatters = {};
|
|
132
|
-
function selectColor(namespace) {
|
|
133
|
-
let hash = 0;
|
|
134
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
135
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
136
|
-
hash |= 0;
|
|
137
|
-
}
|
|
138
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
139
|
-
}
|
|
140
|
-
createDebug.selectColor = selectColor;
|
|
141
|
-
function createDebug(namespace) {
|
|
142
|
-
let prevTime;
|
|
143
|
-
let enableOverride = null;
|
|
144
|
-
function debug(...args) {
|
|
145
|
-
if (!debug.enabled) {
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
const self = debug;
|
|
149
|
-
const curr = Number(new Date());
|
|
150
|
-
const ms = curr - (prevTime || curr);
|
|
151
|
-
self.diff = ms;
|
|
152
|
-
self.prev = prevTime;
|
|
153
|
-
self.curr = curr;
|
|
154
|
-
prevTime = curr;
|
|
155
|
-
args[0] = createDebug.coerce(args[0]);
|
|
156
|
-
if (typeof args[0] !== 'string') {
|
|
157
|
-
args.unshift('%O');
|
|
158
|
-
}
|
|
159
|
-
let index = 0;
|
|
160
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
161
|
-
if (match === '%%') {
|
|
162
|
-
return '%';
|
|
163
|
-
}
|
|
164
|
-
index++;
|
|
165
|
-
const formatter = createDebug.formatters[format];
|
|
166
|
-
if (typeof formatter === 'function') {
|
|
167
|
-
const val = args[index];
|
|
168
|
-
match = formatter.call(self, val);
|
|
169
|
-
args.splice(index, 1);
|
|
170
|
-
index--;
|
|
171
|
-
}
|
|
172
|
-
return match;
|
|
173
|
-
});
|
|
174
|
-
createDebug.formatArgs.call(self, args);
|
|
175
|
-
const logFn = self.log || createDebug.log;
|
|
176
|
-
logFn.apply(self, args);
|
|
177
|
-
}
|
|
178
|
-
debug.namespace = namespace;
|
|
179
|
-
debug.useColors = createDebug.useColors();
|
|
180
|
-
debug.color = createDebug.selectColor(namespace);
|
|
181
|
-
debug.extend = extend;
|
|
182
|
-
debug.destroy = createDebug.destroy;
|
|
183
|
-
Object.defineProperty(debug, 'enabled', {
|
|
184
|
-
enumerable: true,
|
|
185
|
-
configurable: false,
|
|
186
|
-
get: () => enableOverride === null ? createDebug.enabled(namespace) : enableOverride,
|
|
187
|
-
set: v => {
|
|
188
|
-
enableOverride = v;
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
if (typeof createDebug.init === 'function') {
|
|
192
|
-
createDebug.init(debug);
|
|
193
|
-
}
|
|
194
|
-
return debug;
|
|
195
|
-
}
|
|
196
|
-
function extend(namespace, delimiter) {
|
|
197
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
|
|
198
|
-
newDebug.log = this.log;
|
|
199
|
-
return newDebug;
|
|
200
|
-
}
|
|
201
|
-
function enable(namespaces) {
|
|
202
|
-
createDebug.save(namespaces);
|
|
203
|
-
createDebug.names = [];
|
|
204
|
-
createDebug.skips = [];
|
|
205
|
-
let i;
|
|
206
|
-
const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
|
|
207
|
-
const len = split.length;
|
|
208
|
-
for (i = 0; i < len; i++) {
|
|
209
|
-
if (!split[i]) {
|
|
210
|
-
continue;
|
|
211
|
-
}
|
|
212
|
-
namespaces = split[i].replace(/\*/g, '.*?');
|
|
213
|
-
if (namespaces[0] === '-') {
|
|
214
|
-
createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
|
215
|
-
} else {
|
|
216
|
-
createDebug.names.push(new RegExp('^' + namespaces + '$'));
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
function disable() {
|
|
221
|
-
const namespaces = [...createDebug.names.map(toNamespace), ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)].join(',');
|
|
222
|
-
createDebug.enable('');
|
|
223
|
-
return namespaces;
|
|
224
|
-
}
|
|
225
|
-
function enabled(name) {
|
|
226
|
-
if (name[name.length - 1] === '*') {
|
|
227
|
-
return true;
|
|
228
|
-
}
|
|
229
|
-
let i;
|
|
230
|
-
let len;
|
|
231
|
-
for ((i = 0, len = createDebug.skips.length); i < len; i++) {
|
|
232
|
-
if (createDebug.skips[i].test(name)) {
|
|
233
|
-
return false;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
for ((i = 0, len = createDebug.names.length); i < len; i++) {
|
|
237
|
-
if (createDebug.names[i].test(name)) {
|
|
238
|
-
return true;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
return false;
|
|
242
|
-
}
|
|
243
|
-
function toNamespace(regexp) {
|
|
244
|
-
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, '*');
|
|
245
|
-
}
|
|
246
|
-
function coerce(val) {
|
|
247
|
-
if (val instanceof Error) {
|
|
248
|
-
return val.stack || val.message;
|
|
249
|
-
}
|
|
250
|
-
return val;
|
|
251
|
-
}
|
|
252
|
-
function destroy() {
|
|
253
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
254
|
-
}
|
|
255
|
-
createDebug.enable(createDebug.load());
|
|
256
|
-
return createDebug;
|
|
257
|
-
}
|
|
258
|
-
var common = setup;
|
|
259
|
-
var browser = createCommonjsModule(function (module, exports) {
|
|
260
|
-
exports.formatArgs = formatArgs;
|
|
261
|
-
exports.save = save;
|
|
262
|
-
exports.load = load;
|
|
263
|
-
exports.useColors = useColors;
|
|
264
|
-
exports.storage = localstorage();
|
|
265
|
-
exports.destroy = (() => {
|
|
266
|
-
let warned = false;
|
|
267
|
-
return () => {
|
|
268
|
-
if (!warned) {
|
|
269
|
-
warned = true;
|
|
270
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
})();
|
|
274
|
-
exports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'];
|
|
275
|
-
function useColors() {
|
|
276
|
-
if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
|
|
277
|
-
return true;
|
|
278
|
-
}
|
|
279
|
-
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
280
|
-
return false;
|
|
281
|
-
}
|
|
282
|
-
return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
283
|
-
}
|
|
284
|
-
function formatArgs(args) {
|
|
285
|
-
args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff);
|
|
286
|
-
if (!this.useColors) {
|
|
287
|
-
return;
|
|
288
|
-
}
|
|
289
|
-
const c = 'color: ' + this.color;
|
|
290
|
-
args.splice(1, 0, c, 'color: inherit');
|
|
291
|
-
let index = 0;
|
|
292
|
-
let lastC = 0;
|
|
293
|
-
args[0].replace(/%[a-zA-Z%]/g, match => {
|
|
294
|
-
if (match === '%%') {
|
|
295
|
-
return;
|
|
296
|
-
}
|
|
297
|
-
index++;
|
|
298
|
-
if (match === '%c') {
|
|
299
|
-
lastC = index;
|
|
300
|
-
}
|
|
301
|
-
});
|
|
302
|
-
args.splice(lastC, 0, c);
|
|
303
|
-
}
|
|
304
|
-
exports.log = console.debug || console.log || (() => {});
|
|
305
|
-
function save(namespaces) {
|
|
306
|
-
try {
|
|
307
|
-
if (namespaces) {
|
|
308
|
-
exports.storage.setItem('debug', namespaces);
|
|
309
|
-
} else {
|
|
310
|
-
exports.storage.removeItem('debug');
|
|
311
|
-
}
|
|
312
|
-
} catch (error) {}
|
|
313
|
-
}
|
|
314
|
-
function load() {
|
|
315
|
-
let r;
|
|
316
|
-
try {
|
|
317
|
-
r = exports.storage.getItem('debug');
|
|
318
|
-
} catch (error) {}
|
|
319
|
-
if (!r && typeof process !== 'undefined' && ('env' in process)) {
|
|
320
|
-
r = process.env.DEBUG;
|
|
321
|
-
}
|
|
322
|
-
return r;
|
|
323
|
-
}
|
|
324
|
-
function localstorage() {
|
|
325
|
-
try {
|
|
326
|
-
return localStorage;
|
|
327
|
-
} catch (error) {}
|
|
328
|
-
}
|
|
329
|
-
module.exports = common(exports);
|
|
330
|
-
const {formatters} = module.exports;
|
|
331
|
-
formatters.j = function (v) {
|
|
332
|
-
try {
|
|
333
|
-
return JSON.stringify(v);
|
|
334
|
-
} catch (error) {
|
|
335
|
-
return '[UnexpectedJSONParseError]: ' + error.message;
|
|
336
|
-
}
|
|
337
|
-
};
|
|
338
|
-
});
|
|
339
|
-
browser.formatArgs;
|
|
340
|
-
browser.save;
|
|
341
|
-
browser.load;
|
|
342
|
-
browser.useColors;
|
|
343
|
-
browser.storage;
|
|
344
|
-
browser.destroy;
|
|
345
|
-
browser.colors;
|
|
346
|
-
browser.log;
|
|
347
|
-
var interopRequireDefault = createCommonjsModule(function (module) {
|
|
348
|
-
function _interopRequireDefault(obj) {
|
|
349
|
-
return obj && obj.__esModule ? obj : {
|
|
350
|
-
"default": obj
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
module.exports = _interopRequireDefault;
|
|
354
|
-
});
|
|
355
|
-
unwrapExports(interopRequireDefault);
|
|
356
|
-
var setPrototypeOf = createCommonjsModule(function (module) {
|
|
357
|
-
function _setPrototypeOf(o, p) {
|
|
358
|
-
module.exports = _setPrototypeOf = Object.setPrototypeOf || (function _setPrototypeOf(o, p) {
|
|
359
|
-
o.__proto__ = p;
|
|
360
|
-
return o;
|
|
361
|
-
});
|
|
362
|
-
return _setPrototypeOf(o, p);
|
|
363
|
-
}
|
|
364
|
-
module.exports = _setPrototypeOf;
|
|
365
|
-
});
|
|
366
|
-
function _inheritsLoose(subClass, superClass) {
|
|
367
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
368
|
-
subClass.prototype.constructor = subClass;
|
|
369
|
-
setPrototypeOf(subClass, superClass);
|
|
370
|
-
}
|
|
371
|
-
var inheritsLoose = _inheritsLoose;
|
|
372
|
-
var setStatic_1 = createCommonjsModule(function (module, exports) {
|
|
373
|
-
exports.__esModule = true;
|
|
374
|
-
exports.default = void 0;
|
|
375
|
-
var setStatic = function setStatic(key, value) {
|
|
376
|
-
return function (BaseComponent) {
|
|
377
|
-
BaseComponent[key] = value;
|
|
378
|
-
return BaseComponent;
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
var _default = setStatic;
|
|
382
|
-
exports.default = _default;
|
|
383
|
-
});
|
|
384
|
-
unwrapExports(setStatic_1);
|
|
385
|
-
var setDisplayName_1 = createCommonjsModule(function (module, exports) {
|
|
386
|
-
exports.__esModule = true;
|
|
387
|
-
exports.default = void 0;
|
|
388
|
-
var _setStatic = interopRequireDefault(setStatic_1);
|
|
389
|
-
var setDisplayName = function setDisplayName(displayName) {
|
|
390
|
-
return (0, _setStatic.default)('displayName', displayName);
|
|
391
|
-
};
|
|
392
|
-
var _default = setDisplayName;
|
|
393
|
-
exports.default = _default;
|
|
394
|
-
});
|
|
395
|
-
unwrapExports(setDisplayName_1);
|
|
396
|
-
var getDisplayName_1 = createCommonjsModule(function (module, exports) {
|
|
397
|
-
exports.__esModule = true;
|
|
398
|
-
exports.default = void 0;
|
|
399
|
-
var getDisplayName = function getDisplayName(Component) {
|
|
400
|
-
if (typeof Component === 'string') {
|
|
401
|
-
return Component;
|
|
402
|
-
}
|
|
403
|
-
if (!Component) {
|
|
404
|
-
return undefined;
|
|
405
|
-
}
|
|
406
|
-
return Component.displayName || Component.name || 'Component';
|
|
407
|
-
};
|
|
408
|
-
var _default = getDisplayName;
|
|
409
|
-
exports.default = _default;
|
|
410
|
-
});
|
|
411
|
-
unwrapExports(getDisplayName_1);
|
|
412
|
-
var wrapDisplayName_1 = createCommonjsModule(function (module, exports) {
|
|
413
|
-
exports.__esModule = true;
|
|
414
|
-
exports.default = void 0;
|
|
415
|
-
var _getDisplayName = interopRequireDefault(getDisplayName_1);
|
|
416
|
-
var wrapDisplayName = function wrapDisplayName(BaseComponent, hocName) {
|
|
417
|
-
return hocName + "(" + (0, _getDisplayName.default)(BaseComponent) + ")";
|
|
418
|
-
};
|
|
419
|
-
var _default = wrapDisplayName;
|
|
420
|
-
exports.default = _default;
|
|
421
|
-
});
|
|
422
|
-
unwrapExports(wrapDisplayName_1);
|
|
423
|
-
const _react = _dll_react;
|
|
424
|
-
var shouldUpdate_1 = createCommonjsModule(function (module, exports) {
|
|
425
|
-
exports.__esModule = true;
|
|
426
|
-
exports.default = void 0;
|
|
427
|
-
var _inheritsLoose2 = interopRequireDefault(inheritsLoose);
|
|
428
|
-
var _setDisplayName = interopRequireDefault(setDisplayName_1);
|
|
429
|
-
var _wrapDisplayName = interopRequireDefault(wrapDisplayName_1);
|
|
430
|
-
var shouldUpdate = function shouldUpdate(test) {
|
|
431
|
-
return function (BaseComponent) {
|
|
432
|
-
var factory = (0, _react.createFactory)(BaseComponent);
|
|
433
|
-
var ShouldUpdate = (function (_Component) {
|
|
434
|
-
(0, _inheritsLoose2.default)(ShouldUpdate, _Component);
|
|
435
|
-
function ShouldUpdate() {
|
|
436
|
-
return _Component.apply(this, arguments) || this;
|
|
437
|
-
}
|
|
438
|
-
var _proto = ShouldUpdate.prototype;
|
|
439
|
-
_proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
|
|
440
|
-
return test(this.props, nextProps);
|
|
441
|
-
};
|
|
442
|
-
_proto.render = function render() {
|
|
443
|
-
return factory(this.props);
|
|
444
|
-
};
|
|
445
|
-
return ShouldUpdate;
|
|
446
|
-
})(_react.Component);
|
|
447
|
-
{
|
|
448
|
-
return (0, _setDisplayName.default)((0, _wrapDisplayName.default)(BaseComponent, 'shouldUpdate'))(ShouldUpdate);
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
|
-
};
|
|
452
|
-
var _default = shouldUpdate;
|
|
453
|
-
exports.default = _default;
|
|
454
|
-
});
|
|
455
|
-
unwrapExports(shouldUpdate_1);
|
|
456
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
457
|
-
function is(x, y) {
|
|
458
|
-
if (x === y) {
|
|
459
|
-
return x !== 0 || y !== 0 || 1 / x === 1 / y;
|
|
460
|
-
} else {
|
|
461
|
-
return x !== x && y !== y;
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
function shallowEqual(objA, objB) {
|
|
465
|
-
if (is(objA, objB)) {
|
|
466
|
-
return true;
|
|
467
|
-
}
|
|
468
|
-
if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
|
|
469
|
-
return false;
|
|
470
|
-
}
|
|
471
|
-
var keysA = Object.keys(objA);
|
|
472
|
-
var keysB = Object.keys(objB);
|
|
473
|
-
if (keysA.length !== keysB.length) {
|
|
474
|
-
return false;
|
|
475
|
-
}
|
|
476
|
-
for (var i = 0; i < keysA.length; i++) {
|
|
477
|
-
if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
|
|
478
|
-
return false;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
return true;
|
|
482
|
-
}
|
|
483
|
-
var shallowEqual_1 = shallowEqual;
|
|
484
|
-
var shallowEqual$1 = createCommonjsModule(function (module, exports) {
|
|
485
|
-
exports.__esModule = true;
|
|
486
|
-
exports.default = void 0;
|
|
487
|
-
var _shallowEqual = interopRequireDefault(shallowEqual_1);
|
|
488
|
-
var _default = _shallowEqual.default;
|
|
489
|
-
exports.default = _default;
|
|
490
|
-
});
|
|
491
|
-
unwrapExports(shallowEqual$1);
|
|
492
|
-
var pure_1 = createCommonjsModule(function (module, exports) {
|
|
493
|
-
exports.__esModule = true;
|
|
494
|
-
exports.default = void 0;
|
|
495
|
-
var _shouldUpdate = interopRequireDefault(shouldUpdate_1);
|
|
496
|
-
var _shallowEqual = interopRequireDefault(shallowEqual$1);
|
|
497
|
-
var _setDisplayName = interopRequireDefault(setDisplayName_1);
|
|
498
|
-
var _wrapDisplayName = interopRequireDefault(wrapDisplayName_1);
|
|
499
|
-
var pure = function pure(BaseComponent) {
|
|
500
|
-
var hoc = (0, _shouldUpdate.default)(function (props, nextProps) {
|
|
501
|
-
return !(0, _shallowEqual.default)(props, nextProps);
|
|
502
|
-
});
|
|
503
|
-
{
|
|
504
|
-
return (0, _setDisplayName.default)((0, _wrapDisplayName.default)(BaseComponent, 'pure'))(hoc(BaseComponent));
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
|
-
var _default = pure;
|
|
508
|
-
exports.default = _default;
|
|
509
|
-
});
|
|
510
|
-
unwrapExports(pure_1);
|
|
511
|
-
const require$$0 = _dll_react;
|
|
512
|
-
const {SvgIcon: require$$2} = _dll_material_ui__core;
|
|
513
|
-
var createSvgIcon_1 = createCommonjsModule(function (module, exports) {
|
|
514
|
-
Object.defineProperty(exports, "__esModule", {
|
|
515
|
-
value: true
|
|
516
|
-
});
|
|
517
|
-
exports.default = void 0;
|
|
518
|
-
var _react = interopRequireDefault(require$$0);
|
|
519
|
-
var _pure = interopRequireDefault(pure_1);
|
|
520
|
-
var _SvgIcon = interopRequireDefault(require$$2);
|
|
521
|
-
function createSvgIcon(path, displayName) {
|
|
522
|
-
var Icon = function Icon(props) {
|
|
523
|
-
return _react.default.createElement(_SvgIcon.default, props, path);
|
|
524
|
-
};
|
|
525
|
-
Icon.displayName = ("").concat(displayName, "Icon");
|
|
526
|
-
Icon = (0, _pure.default)(Icon);
|
|
527
|
-
Icon.muiName = 'SvgIcon';
|
|
528
|
-
return Icon;
|
|
529
|
-
}
|
|
530
|
-
var _default = createSvgIcon;
|
|
531
|
-
exports.default = _default;
|
|
532
|
-
});
|
|
533
|
-
unwrapExports(createSvgIcon_1);
|
|
534
|
-
const require$$0$1 = _dll_react;
|
|
535
|
-
var Add = createCommonjsModule(function (module, exports) {
|
|
536
|
-
Object.defineProperty(exports, "__esModule", {
|
|
537
|
-
value: true
|
|
538
|
-
});
|
|
539
|
-
exports.default = void 0;
|
|
540
|
-
var _react = interopRequireDefault(require$$0$1);
|
|
541
|
-
var _createSvgIcon = interopRequireDefault(createSvgIcon_1);
|
|
542
|
-
var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("path", {
|
|
543
|
-
d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
|
|
544
|
-
}), _react.default.createElement("path", {
|
|
545
|
-
fill: "none",
|
|
546
|
-
d: "M0 0h24v24H0z"
|
|
547
|
-
})), 'Add');
|
|
548
|
-
exports.default = _default;
|
|
549
|
-
});
|
|
550
|
-
var AddIcon = unwrapExports(Add);
|
|
551
|
-
const require$$0$2 = _dll_react;
|
|
552
|
-
var Remove = createCommonjsModule(function (module, exports) {
|
|
553
|
-
Object.defineProperty(exports, "__esModule", {
|
|
554
|
-
value: true
|
|
555
|
-
});
|
|
556
|
-
exports.default = void 0;
|
|
557
|
-
var _react = interopRequireDefault(require$$0$2);
|
|
558
|
-
var _createSvgIcon = interopRequireDefault(createSvgIcon_1);
|
|
559
|
-
var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("path", {
|
|
560
|
-
d: "M19 13H5v-2h14v2z"
|
|
561
|
-
}), _react.default.createElement("path", {
|
|
562
|
-
fill: "none",
|
|
563
|
-
d: "M0 0h24v24H0z"
|
|
564
|
-
})), 'Remove');
|
|
565
|
-
exports.default = _default;
|
|
566
|
-
});
|
|
567
|
-
var RemoveIcon = unwrapExports(Remove);
|
|
568
|
-
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
569
|
-
{
|
|
570
|
-
(function () {
|
|
571
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
572
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
573
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
574
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
575
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
576
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
577
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
578
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
579
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
580
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
581
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
582
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
583
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
584
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
585
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
586
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
587
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
588
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
589
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
590
|
-
function isValidElementType(type) {
|
|
591
|
-
return typeof type === 'string' || typeof type === 'function' || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
592
|
-
}
|
|
593
|
-
function typeOf(object) {
|
|
594
|
-
if (typeof object === 'object' && object !== null) {
|
|
595
|
-
var $$typeof = object.$$typeof;
|
|
596
|
-
switch ($$typeof) {
|
|
597
|
-
case REACT_ELEMENT_TYPE:
|
|
598
|
-
var type = object.type;
|
|
599
|
-
switch (type) {
|
|
600
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
601
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
602
|
-
case REACT_FRAGMENT_TYPE:
|
|
603
|
-
case REACT_PROFILER_TYPE:
|
|
604
|
-
case REACT_STRICT_MODE_TYPE:
|
|
605
|
-
case REACT_SUSPENSE_TYPE:
|
|
606
|
-
return type;
|
|
607
|
-
default:
|
|
608
|
-
var $$typeofType = type && type.$$typeof;
|
|
609
|
-
switch ($$typeofType) {
|
|
610
|
-
case REACT_CONTEXT_TYPE:
|
|
611
|
-
case REACT_FORWARD_REF_TYPE:
|
|
612
|
-
case REACT_LAZY_TYPE:
|
|
613
|
-
case REACT_MEMO_TYPE:
|
|
614
|
-
case REACT_PROVIDER_TYPE:
|
|
615
|
-
return $$typeofType;
|
|
616
|
-
default:
|
|
617
|
-
return $$typeof;
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
case REACT_PORTAL_TYPE:
|
|
621
|
-
return $$typeof;
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
return undefined;
|
|
625
|
-
}
|
|
626
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
627
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
628
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
629
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
630
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
631
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
632
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
633
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
634
|
-
var Memo = REACT_MEMO_TYPE;
|
|
635
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
636
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
637
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
638
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
639
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
640
|
-
function isAsyncMode(object) {
|
|
641
|
-
{
|
|
642
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
643
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
644
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
648
|
-
}
|
|
649
|
-
function isConcurrentMode(object) {
|
|
650
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
651
|
-
}
|
|
652
|
-
function isContextConsumer(object) {
|
|
653
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
654
|
-
}
|
|
655
|
-
function isContextProvider(object) {
|
|
656
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
657
|
-
}
|
|
658
|
-
function isElement(object) {
|
|
659
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
660
|
-
}
|
|
661
|
-
function isForwardRef(object) {
|
|
662
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
663
|
-
}
|
|
664
|
-
function isFragment(object) {
|
|
665
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
666
|
-
}
|
|
667
|
-
function isLazy(object) {
|
|
668
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
669
|
-
}
|
|
670
|
-
function isMemo(object) {
|
|
671
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
672
|
-
}
|
|
673
|
-
function isPortal(object) {
|
|
674
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
675
|
-
}
|
|
676
|
-
function isProfiler(object) {
|
|
677
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
678
|
-
}
|
|
679
|
-
function isStrictMode(object) {
|
|
680
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
681
|
-
}
|
|
682
|
-
function isSuspense(object) {
|
|
683
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
684
|
-
}
|
|
685
|
-
exports.AsyncMode = AsyncMode;
|
|
686
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
687
|
-
exports.ContextConsumer = ContextConsumer;
|
|
688
|
-
exports.ContextProvider = ContextProvider;
|
|
689
|
-
exports.Element = Element;
|
|
690
|
-
exports.ForwardRef = ForwardRef;
|
|
691
|
-
exports.Fragment = Fragment;
|
|
692
|
-
exports.Lazy = Lazy;
|
|
693
|
-
exports.Memo = Memo;
|
|
694
|
-
exports.Portal = Portal;
|
|
695
|
-
exports.Profiler = Profiler;
|
|
696
|
-
exports.StrictMode = StrictMode;
|
|
697
|
-
exports.Suspense = Suspense;
|
|
698
|
-
exports.isAsyncMode = isAsyncMode;
|
|
699
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
700
|
-
exports.isContextConsumer = isContextConsumer;
|
|
701
|
-
exports.isContextProvider = isContextProvider;
|
|
702
|
-
exports.isElement = isElement;
|
|
703
|
-
exports.isForwardRef = isForwardRef;
|
|
704
|
-
exports.isFragment = isFragment;
|
|
705
|
-
exports.isLazy = isLazy;
|
|
706
|
-
exports.isMemo = isMemo;
|
|
707
|
-
exports.isPortal = isPortal;
|
|
708
|
-
exports.isProfiler = isProfiler;
|
|
709
|
-
exports.isStrictMode = isStrictMode;
|
|
710
|
-
exports.isSuspense = isSuspense;
|
|
711
|
-
exports.isValidElementType = isValidElementType;
|
|
712
|
-
exports.typeOf = typeOf;
|
|
713
|
-
})();
|
|
714
|
-
}
|
|
715
|
-
});
|
|
716
|
-
reactIs_development.AsyncMode;
|
|
717
|
-
reactIs_development.ConcurrentMode;
|
|
718
|
-
reactIs_development.ContextConsumer;
|
|
719
|
-
reactIs_development.ContextProvider;
|
|
720
|
-
reactIs_development.Element;
|
|
721
|
-
reactIs_development.ForwardRef;
|
|
722
|
-
reactIs_development.Fragment;
|
|
723
|
-
reactIs_development.Lazy;
|
|
724
|
-
reactIs_development.Memo;
|
|
725
|
-
reactIs_development.Portal;
|
|
726
|
-
reactIs_development.Profiler;
|
|
727
|
-
reactIs_development.StrictMode;
|
|
728
|
-
reactIs_development.Suspense;
|
|
729
|
-
reactIs_development.isAsyncMode;
|
|
730
|
-
reactIs_development.isConcurrentMode;
|
|
731
|
-
reactIs_development.isContextConsumer;
|
|
732
|
-
reactIs_development.isContextProvider;
|
|
733
|
-
reactIs_development.isElement;
|
|
734
|
-
reactIs_development.isForwardRef;
|
|
735
|
-
reactIs_development.isFragment;
|
|
736
|
-
reactIs_development.isLazy;
|
|
737
|
-
reactIs_development.isMemo;
|
|
738
|
-
reactIs_development.isPortal;
|
|
739
|
-
reactIs_development.isProfiler;
|
|
740
|
-
reactIs_development.isStrictMode;
|
|
741
|
-
reactIs_development.isSuspense;
|
|
742
|
-
reactIs_development.isValidElementType;
|
|
743
|
-
reactIs_development.typeOf;
|
|
744
|
-
var reactIs = createCommonjsModule(function (module) {
|
|
745
|
-
{
|
|
746
|
-
module.exports = reactIs_development;
|
|
747
|
-
}
|
|
748
|
-
});
|
|
749
|
-
reactIs.AsyncMode;
|
|
750
|
-
reactIs.ConcurrentMode;
|
|
751
|
-
reactIs.ContextConsumer;
|
|
752
|
-
reactIs.ContextProvider;
|
|
753
|
-
reactIs.Element;
|
|
754
|
-
reactIs.ForwardRef;
|
|
755
|
-
reactIs.Fragment;
|
|
756
|
-
reactIs.Lazy;
|
|
757
|
-
reactIs.Memo;
|
|
758
|
-
reactIs.Portal;
|
|
759
|
-
reactIs.Profiler;
|
|
760
|
-
reactIs.StrictMode;
|
|
761
|
-
reactIs.Suspense;
|
|
762
|
-
reactIs.isAsyncMode;
|
|
763
|
-
reactIs.isConcurrentMode;
|
|
764
|
-
reactIs.isContextConsumer;
|
|
765
|
-
reactIs.isContextProvider;
|
|
766
|
-
var reactIs_18 = reactIs.isElement;
|
|
767
|
-
reactIs.isForwardRef;
|
|
768
|
-
reactIs.isFragment;
|
|
769
|
-
reactIs.isLazy;
|
|
770
|
-
reactIs.isMemo;
|
|
771
|
-
reactIs.isPortal;
|
|
772
|
-
reactIs.isProfiler;
|
|
773
|
-
reactIs.isStrictMode;
|
|
774
|
-
reactIs.isSuspense;
|
|
775
|
-
var reactIs_27 = reactIs.isValidElementType;
|
|
776
|
-
var reactIs_28 = reactIs.typeOf;
|
|
777
|
-
function stylis_min(W) {
|
|
778
|
-
function M(d, c, e, h, a) {
|
|
779
|
-
for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B; ) {
|
|
780
|
-
g = e.charCodeAt(l);
|
|
781
|
-
l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
|
|
782
|
-
if (0 === b + n + v + m) {
|
|
783
|
-
if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
|
|
784
|
-
switch (g) {
|
|
785
|
-
case 32:
|
|
786
|
-
case 9:
|
|
787
|
-
case 59:
|
|
788
|
-
case 13:
|
|
789
|
-
case 10:
|
|
790
|
-
break;
|
|
791
|
-
default:
|
|
792
|
-
f += e.charAt(l);
|
|
793
|
-
}
|
|
794
|
-
g = 59;
|
|
795
|
-
}
|
|
796
|
-
switch (g) {
|
|
797
|
-
case 123:
|
|
798
|
-
f = f.trim();
|
|
799
|
-
q = f.charCodeAt(0);
|
|
800
|
-
k = 1;
|
|
801
|
-
for (t = ++l; l < B; ) {
|
|
802
|
-
switch (g = e.charCodeAt(l)) {
|
|
803
|
-
case 123:
|
|
804
|
-
k++;
|
|
805
|
-
break;
|
|
806
|
-
case 125:
|
|
807
|
-
k--;
|
|
808
|
-
break;
|
|
809
|
-
case 47:
|
|
810
|
-
switch (g = e.charCodeAt(l + 1)) {
|
|
811
|
-
case 42:
|
|
812
|
-
case 47:
|
|
813
|
-
a: {
|
|
814
|
-
for (u = l + 1; u < J; ++u) {
|
|
815
|
-
switch (e.charCodeAt(u)) {
|
|
816
|
-
case 47:
|
|
817
|
-
if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
|
|
818
|
-
l = u + 1;
|
|
819
|
-
break a;
|
|
820
|
-
}
|
|
821
|
-
break;
|
|
822
|
-
case 10:
|
|
823
|
-
if (47 === g) {
|
|
824
|
-
l = u + 1;
|
|
825
|
-
break a;
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
l = u;
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
break;
|
|
833
|
-
case 91:
|
|
834
|
-
g++;
|
|
835
|
-
case 40:
|
|
836
|
-
g++;
|
|
837
|
-
case 34:
|
|
838
|
-
case 39:
|
|
839
|
-
for (; l++ < J && e.charCodeAt(l) !== g; ) {}
|
|
840
|
-
}
|
|
841
|
-
if (0 === k) break;
|
|
842
|
-
l++;
|
|
843
|
-
}
|
|
844
|
-
k = e.substring(t, l);
|
|
845
|
-
0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
|
|
846
|
-
switch (q) {
|
|
847
|
-
case 64:
|
|
848
|
-
0 < r && (f = f.replace(N, ''));
|
|
849
|
-
g = f.charCodeAt(1);
|
|
850
|
-
switch (g) {
|
|
851
|
-
case 100:
|
|
852
|
-
case 109:
|
|
853
|
-
case 115:
|
|
854
|
-
case 45:
|
|
855
|
-
r = c;
|
|
856
|
-
break;
|
|
857
|
-
default:
|
|
858
|
-
r = O;
|
|
859
|
-
}
|
|
860
|
-
k = M(c, r, k, g, a + 1);
|
|
861
|
-
t = k.length;
|
|
862
|
-
0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
|
|
863
|
-
if (0 < t) switch (g) {
|
|
864
|
-
case 115:
|
|
865
|
-
f = f.replace(da, ea);
|
|
866
|
-
case 100:
|
|
867
|
-
case 109:
|
|
868
|
-
case 45:
|
|
869
|
-
k = f + '{' + k + '}';
|
|
870
|
-
break;
|
|
871
|
-
case 107:
|
|
872
|
-
f = f.replace(fa, '$1 $2');
|
|
873
|
-
k = f + '{' + k + '}';
|
|
874
|
-
k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
|
|
875
|
-
break;
|
|
876
|
-
default:
|
|
877
|
-
(k = f + k, 112 === h && (k = (p += k, '')));
|
|
878
|
-
} else k = '';
|
|
879
|
-
break;
|
|
880
|
-
default:
|
|
881
|
-
k = M(c, X(c, f, I), k, h, a + 1);
|
|
882
|
-
}
|
|
883
|
-
F += k;
|
|
884
|
-
k = I = r = u = q = 0;
|
|
885
|
-
f = '';
|
|
886
|
-
g = e.charCodeAt(++l);
|
|
887
|
-
break;
|
|
888
|
-
case 125:
|
|
889
|
-
case 59:
|
|
890
|
-
f = (0 < r ? f.replace(N, '') : f).trim();
|
|
891
|
-
if (1 < (t = f.length)) switch ((0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q)) {
|
|
892
|
-
case 0:
|
|
893
|
-
break;
|
|
894
|
-
case 64:
|
|
895
|
-
if (105 === g || 99 === g) {
|
|
896
|
-
G += f + e.charAt(l);
|
|
897
|
-
break;
|
|
898
|
-
}
|
|
899
|
-
default:
|
|
900
|
-
58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
|
|
901
|
-
}
|
|
902
|
-
I = r = u = q = 0;
|
|
903
|
-
f = '';
|
|
904
|
-
g = e.charCodeAt(++l);
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
switch (g) {
|
|
908
|
-
case 13:
|
|
909
|
-
case 10:
|
|
910
|
-
47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
|
|
911
|
-
0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
|
|
912
|
-
z = 1;
|
|
913
|
-
D++;
|
|
914
|
-
break;
|
|
915
|
-
case 59:
|
|
916
|
-
case 125:
|
|
917
|
-
if (0 === b + n + v + m) {
|
|
918
|
-
z++;
|
|
919
|
-
break;
|
|
920
|
-
}
|
|
921
|
-
default:
|
|
922
|
-
z++;
|
|
923
|
-
y = e.charAt(l);
|
|
924
|
-
switch (g) {
|
|
925
|
-
case 9:
|
|
926
|
-
case 32:
|
|
927
|
-
if (0 === n + m + b) switch (x) {
|
|
928
|
-
case 44:
|
|
929
|
-
case 58:
|
|
930
|
-
case 9:
|
|
931
|
-
case 32:
|
|
932
|
-
y = '';
|
|
933
|
-
break;
|
|
934
|
-
default:
|
|
935
|
-
32 !== g && (y = ' ');
|
|
936
|
-
}
|
|
937
|
-
break;
|
|
938
|
-
case 0:
|
|
939
|
-
y = '\\0';
|
|
940
|
-
break;
|
|
941
|
-
case 12:
|
|
942
|
-
y = '\\f';
|
|
943
|
-
break;
|
|
944
|
-
case 11:
|
|
945
|
-
y = '\\v';
|
|
946
|
-
break;
|
|
947
|
-
case 38:
|
|
948
|
-
0 === n + b + m && (r = I = 1, y = '\f' + y);
|
|
949
|
-
break;
|
|
950
|
-
case 108:
|
|
951
|
-
if (0 === n + b + m + E && 0 < u) switch (l - u) {
|
|
952
|
-
case 2:
|
|
953
|
-
112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
|
|
954
|
-
case 8:
|
|
955
|
-
111 === K && (E = K);
|
|
956
|
-
}
|
|
957
|
-
break;
|
|
958
|
-
case 58:
|
|
959
|
-
0 === n + b + m && (u = l);
|
|
960
|
-
break;
|
|
961
|
-
case 44:
|
|
962
|
-
0 === b + v + n + m && (r = 1, y += '\r');
|
|
963
|
-
break;
|
|
964
|
-
case 34:
|
|
965
|
-
case 39:
|
|
966
|
-
0 === b && (n = n === g ? 0 : 0 === n ? g : n);
|
|
967
|
-
break;
|
|
968
|
-
case 91:
|
|
969
|
-
0 === n + b + v && m++;
|
|
970
|
-
break;
|
|
971
|
-
case 93:
|
|
972
|
-
0 === n + b + v && m--;
|
|
973
|
-
break;
|
|
974
|
-
case 41:
|
|
975
|
-
0 === n + b + m && v--;
|
|
976
|
-
break;
|
|
977
|
-
case 40:
|
|
978
|
-
if (0 === n + b + m) {
|
|
979
|
-
if (0 === q) switch (2 * x + 3 * K) {
|
|
980
|
-
case 533:
|
|
981
|
-
break;
|
|
982
|
-
default:
|
|
983
|
-
q = 1;
|
|
984
|
-
}
|
|
985
|
-
v++;
|
|
986
|
-
}
|
|
987
|
-
break;
|
|
988
|
-
case 64:
|
|
989
|
-
0 === b + v + n + m + u + k && (k = 1);
|
|
990
|
-
break;
|
|
991
|
-
case 42:
|
|
992
|
-
case 47:
|
|
993
|
-
if (!(0 < n + m + v)) switch (b) {
|
|
994
|
-
case 0:
|
|
995
|
-
switch (2 * g + 3 * e.charCodeAt(l + 1)) {
|
|
996
|
-
case 235:
|
|
997
|
-
b = 47;
|
|
998
|
-
break;
|
|
999
|
-
case 220:
|
|
1000
|
-
(t = l, b = 42);
|
|
1001
|
-
}
|
|
1002
|
-
break;
|
|
1003
|
-
case 42:
|
|
1004
|
-
47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
0 === b && (f += y);
|
|
1008
|
-
}
|
|
1009
|
-
K = x;
|
|
1010
|
-
x = g;
|
|
1011
|
-
l++;
|
|
1012
|
-
}
|
|
1013
|
-
t = p.length;
|
|
1014
|
-
if (0 < t) {
|
|
1015
|
-
r = c;
|
|
1016
|
-
if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
|
|
1017
|
-
p = r.join(',') + '{' + p + '}';
|
|
1018
|
-
if (0 !== w * E) {
|
|
1019
|
-
2 !== w || L(p, 2) || (E = 0);
|
|
1020
|
-
switch (E) {
|
|
1021
|
-
case 111:
|
|
1022
|
-
p = p.replace(ha, ':-moz-$1') + p;
|
|
1023
|
-
break;
|
|
1024
|
-
case 112:
|
|
1025
|
-
p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
|
|
1026
|
-
}
|
|
1027
|
-
E = 0;
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
return G + p + F;
|
|
1031
|
-
}
|
|
1032
|
-
function X(d, c, e) {
|
|
1033
|
-
var h = c.trim().split(ia);
|
|
1034
|
-
c = h;
|
|
1035
|
-
var a = h.length, m = d.length;
|
|
1036
|
-
switch (m) {
|
|
1037
|
-
case 0:
|
|
1038
|
-
case 1:
|
|
1039
|
-
var b = 0;
|
|
1040
|
-
for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
|
|
1041
|
-
c[b] = Z(d, c[b], e).trim();
|
|
1042
|
-
}
|
|
1043
|
-
break;
|
|
1044
|
-
default:
|
|
1045
|
-
var v = b = 0;
|
|
1046
|
-
for (c = []; b < a; ++b) {
|
|
1047
|
-
for (var n = 0; n < m; ++n) {
|
|
1048
|
-
c[v++] = Z(d[n] + ' ', h[b], e).trim();
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
return c;
|
|
1053
|
-
}
|
|
1054
|
-
function Z(d, c, e) {
|
|
1055
|
-
var h = c.charCodeAt(0);
|
|
1056
|
-
33 > h && (h = (c = c.trim()).charCodeAt(0));
|
|
1057
|
-
switch (h) {
|
|
1058
|
-
case 38:
|
|
1059
|
-
return c.replace(F, '$1' + d.trim());
|
|
1060
|
-
case 58:
|
|
1061
|
-
return d.trim() + c.replace(F, '$1' + d.trim());
|
|
1062
|
-
default:
|
|
1063
|
-
if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
|
|
1064
|
-
}
|
|
1065
|
-
return d + c;
|
|
1066
|
-
}
|
|
1067
|
-
function P(d, c, e, h) {
|
|
1068
|
-
var a = d + ';', m = 2 * c + 3 * e + 4 * h;
|
|
1069
|
-
if (944 === m) {
|
|
1070
|
-
d = a.indexOf(':', 9) + 1;
|
|
1071
|
-
var b = a.substring(d, a.length - 1).trim();
|
|
1072
|
-
b = a.substring(0, d).trim() + b + ';';
|
|
1073
|
-
return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
|
|
1074
|
-
}
|
|
1075
|
-
if (0 === w || 2 === w && !L(a, 1)) return a;
|
|
1076
|
-
switch (m) {
|
|
1077
|
-
case 1015:
|
|
1078
|
-
return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
|
|
1079
|
-
case 951:
|
|
1080
|
-
return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
|
|
1081
|
-
case 963:
|
|
1082
|
-
return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
|
|
1083
|
-
case 1009:
|
|
1084
|
-
if (100 !== a.charCodeAt(4)) break;
|
|
1085
|
-
case 969:
|
|
1086
|
-
case 942:
|
|
1087
|
-
return '-webkit-' + a + a;
|
|
1088
|
-
case 978:
|
|
1089
|
-
return '-webkit-' + a + '-moz-' + a + a;
|
|
1090
|
-
case 1019:
|
|
1091
|
-
case 983:
|
|
1092
|
-
return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
|
|
1093
|
-
case 883:
|
|
1094
|
-
if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
|
|
1095
|
-
if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
|
|
1096
|
-
break;
|
|
1097
|
-
case 932:
|
|
1098
|
-
if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
|
|
1099
|
-
case 103:
|
|
1100
|
-
return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
|
|
1101
|
-
case 115:
|
|
1102
|
-
return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
|
|
1103
|
-
case 98:
|
|
1104
|
-
return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
|
|
1105
|
-
}
|
|
1106
|
-
return '-webkit-' + a + '-ms-' + a + a;
|
|
1107
|
-
case 964:
|
|
1108
|
-
return '-webkit-' + a + '-ms-flex-' + a + a;
|
|
1109
|
-
case 1023:
|
|
1110
|
-
if (99 !== a.charCodeAt(8)) break;
|
|
1111
|
-
b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
|
|
1112
|
-
return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
|
|
1113
|
-
case 1005:
|
|
1114
|
-
return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
|
|
1115
|
-
case 1e3:
|
|
1116
|
-
b = a.substring(13).trim();
|
|
1117
|
-
c = b.indexOf('-') + 1;
|
|
1118
|
-
switch (b.charCodeAt(0) + b.charCodeAt(c)) {
|
|
1119
|
-
case 226:
|
|
1120
|
-
b = a.replace(G, 'tb');
|
|
1121
|
-
break;
|
|
1122
|
-
case 232:
|
|
1123
|
-
b = a.replace(G, 'tb-rl');
|
|
1124
|
-
break;
|
|
1125
|
-
case 220:
|
|
1126
|
-
b = a.replace(G, 'lr');
|
|
1127
|
-
break;
|
|
1128
|
-
default:
|
|
1129
|
-
return a;
|
|
1130
|
-
}
|
|
1131
|
-
return '-webkit-' + a + '-ms-' + b + a;
|
|
1132
|
-
case 1017:
|
|
1133
|
-
if (-1 === a.indexOf('sticky', 9)) break;
|
|
1134
|
-
case 975:
|
|
1135
|
-
c = (a = d).length - 10;
|
|
1136
|
-
b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
|
|
1137
|
-
switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
|
|
1138
|
-
case 203:
|
|
1139
|
-
if (111 > b.charCodeAt(8)) break;
|
|
1140
|
-
case 115:
|
|
1141
|
-
a = a.replace(b, '-webkit-' + b) + ';' + a;
|
|
1142
|
-
break;
|
|
1143
|
-
case 207:
|
|
1144
|
-
case 102:
|
|
1145
|
-
a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
|
|
1146
|
-
}
|
|
1147
|
-
return a + ';';
|
|
1148
|
-
case 938:
|
|
1149
|
-
if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
|
|
1150
|
-
case 105:
|
|
1151
|
-
return (b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a);
|
|
1152
|
-
case 115:
|
|
1153
|
-
return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
|
|
1154
|
-
default:
|
|
1155
|
-
return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
|
|
1156
|
-
}
|
|
1157
|
-
break;
|
|
1158
|
-
case 973:
|
|
1159
|
-
case 989:
|
|
1160
|
-
if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
|
|
1161
|
-
case 931:
|
|
1162
|
-
case 953:
|
|
1163
|
-
if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
|
|
1164
|
-
break;
|
|
1165
|
-
case 962:
|
|
1166
|
-
if ((a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10))) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
|
|
1167
|
-
}
|
|
1168
|
-
return a;
|
|
1169
|
-
}
|
|
1170
|
-
function L(d, c) {
|
|
1171
|
-
var e = d.indexOf(1 === c ? ':' : '{'), h = d.substring(0, 3 !== c ? e : 10);
|
|
1172
|
-
e = d.substring(e + 1, d.length - 1);
|
|
1173
|
-
return R(2 !== c ? h : h.replace(na, '$1'), e, c);
|
|
1174
|
-
}
|
|
1175
|
-
function ea(d, c) {
|
|
1176
|
-
var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
|
|
1177
|
-
return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
|
|
1178
|
-
}
|
|
1179
|
-
function H(d, c, e, h, a, m, b, v, n, q) {
|
|
1180
|
-
for (var g = 0, x = c, w; g < A; ++g) {
|
|
1181
|
-
switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
|
|
1182
|
-
case void 0:
|
|
1183
|
-
case !1:
|
|
1184
|
-
case !0:
|
|
1185
|
-
case null:
|
|
1186
|
-
break;
|
|
1187
|
-
default:
|
|
1188
|
-
x = w;
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
if (x !== c) return x;
|
|
1192
|
-
}
|
|
1193
|
-
function T(d) {
|
|
1194
|
-
switch (d) {
|
|
1195
|
-
case void 0:
|
|
1196
|
-
case null:
|
|
1197
|
-
A = S.length = 0;
|
|
1198
|
-
break;
|
|
1199
|
-
default:
|
|
1200
|
-
if ('function' === typeof d) S[A++] = d; else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
|
|
1201
|
-
T(d[c]);
|
|
1202
|
-
} else Y = !!d | 0;
|
|
1203
|
-
}
|
|
1204
|
-
return T;
|
|
1205
|
-
}
|
|
1206
|
-
function U(d) {
|
|
1207
|
-
d = d.prefix;
|
|
1208
|
-
void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
|
|
1209
|
-
return U;
|
|
1210
|
-
}
|
|
1211
|
-
function B(d, c) {
|
|
1212
|
-
var e = d;
|
|
1213
|
-
33 > e.charCodeAt(0) && (e = e.trim());
|
|
1214
|
-
V = e;
|
|
1215
|
-
e = [V];
|
|
1216
|
-
if (0 < A) {
|
|
1217
|
-
var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
|
|
1218
|
-
void 0 !== h && 'string' === typeof h && (c = h);
|
|
1219
|
-
}
|
|
1220
|
-
var a = M(O, e, c, 0, 0);
|
|
1221
|
-
0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
|
|
1222
|
-
V = '';
|
|
1223
|
-
E = 0;
|
|
1224
|
-
z = D = 1;
|
|
1225
|
-
return a;
|
|
1226
|
-
}
|
|
1227
|
-
var ca = /^\0+/g, N = /[\0\r\f]/g, aa = /: */g, ka = /zoo|gra/, ma = /([,: ])(transform)/g, ia = /,\r+?/g, F = /([\t\r\n ])*\f?&/g, fa = /@(k\w+)\s*(\S*)\s*/, Q = /::(place)/g, ha = /:(read-only)/g, G = /[svh]\w+-[tblr]{2}/, da = /\(\s*(.*)\s*\)/g, oa = /([\s\S]*?);/g, ba = /-self|flex-/g, na = /[^]*?(:[rp][el]a[\w-]+)[^]*/, la = /stretch|:\s*\w+\-(?:conte|avail)/, ja = /([^-])(image-set\()/, z = 1, D = 1, E = 0, w = 1, O = [], S = [], A = 0, R = null, Y = 0, V = '';
|
|
1228
|
-
B.use = T;
|
|
1229
|
-
B.set = U;
|
|
1230
|
-
void 0 !== W && U(W);
|
|
1231
|
-
return B;
|
|
1232
|
-
}
|
|
1233
|
-
var unitlessKeys = {
|
|
1234
|
-
animationIterationCount: 1,
|
|
1235
|
-
borderImageOutset: 1,
|
|
1236
|
-
borderImageSlice: 1,
|
|
1237
|
-
borderImageWidth: 1,
|
|
1238
|
-
boxFlex: 1,
|
|
1239
|
-
boxFlexGroup: 1,
|
|
1240
|
-
boxOrdinalGroup: 1,
|
|
1241
|
-
columnCount: 1,
|
|
1242
|
-
columns: 1,
|
|
1243
|
-
flex: 1,
|
|
1244
|
-
flexGrow: 1,
|
|
1245
|
-
flexPositive: 1,
|
|
1246
|
-
flexShrink: 1,
|
|
1247
|
-
flexNegative: 1,
|
|
1248
|
-
flexOrder: 1,
|
|
1249
|
-
gridRow: 1,
|
|
1250
|
-
gridRowEnd: 1,
|
|
1251
|
-
gridRowSpan: 1,
|
|
1252
|
-
gridRowStart: 1,
|
|
1253
|
-
gridColumn: 1,
|
|
1254
|
-
gridColumnEnd: 1,
|
|
1255
|
-
gridColumnSpan: 1,
|
|
1256
|
-
gridColumnStart: 1,
|
|
1257
|
-
msGridRow: 1,
|
|
1258
|
-
msGridRowSpan: 1,
|
|
1259
|
-
msGridColumn: 1,
|
|
1260
|
-
msGridColumnSpan: 1,
|
|
1261
|
-
fontWeight: 1,
|
|
1262
|
-
lineHeight: 1,
|
|
1263
|
-
opacity: 1,
|
|
1264
|
-
order: 1,
|
|
1265
|
-
orphans: 1,
|
|
1266
|
-
tabSize: 1,
|
|
1267
|
-
widows: 1,
|
|
1268
|
-
zIndex: 1,
|
|
1269
|
-
zoom: 1,
|
|
1270
|
-
WebkitLineClamp: 1,
|
|
1271
|
-
fillOpacity: 1,
|
|
1272
|
-
floodOpacity: 1,
|
|
1273
|
-
stopOpacity: 1,
|
|
1274
|
-
strokeDasharray: 1,
|
|
1275
|
-
strokeDashoffset: 1,
|
|
1276
|
-
strokeMiterlimit: 1,
|
|
1277
|
-
strokeOpacity: 1,
|
|
1278
|
-
strokeWidth: 1
|
|
1279
|
-
};
|
|
1280
|
-
function memoize(fn) {
|
|
1281
|
-
var cache = {};
|
|
1282
|
-
return function (arg) {
|
|
1283
|
-
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
1284
|
-
return cache[arg];
|
|
1285
|
-
};
|
|
1286
|
-
}
|
|
1287
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/;
|
|
1288
|
-
var index = memoize(function (prop) {
|
|
1289
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
1290
|
-
});
|
|
1291
|
-
var REACT_STATICS = {
|
|
1292
|
-
childContextTypes: true,
|
|
1293
|
-
contextType: true,
|
|
1294
|
-
contextTypes: true,
|
|
1295
|
-
defaultProps: true,
|
|
1296
|
-
displayName: true,
|
|
1297
|
-
getDefaultProps: true,
|
|
1298
|
-
getDerivedStateFromError: true,
|
|
1299
|
-
getDerivedStateFromProps: true,
|
|
1300
|
-
mixins: true,
|
|
1301
|
-
propTypes: true,
|
|
1302
|
-
type: true
|
|
1303
|
-
};
|
|
1304
|
-
var KNOWN_STATICS = {
|
|
1305
|
-
name: true,
|
|
1306
|
-
length: true,
|
|
1307
|
-
prototype: true,
|
|
1308
|
-
caller: true,
|
|
1309
|
-
callee: true,
|
|
1310
|
-
arguments: true,
|
|
1311
|
-
arity: true
|
|
1312
|
-
};
|
|
1313
|
-
var FORWARD_REF_STATICS = {
|
|
1314
|
-
'$$typeof': true,
|
|
1315
|
-
render: true,
|
|
1316
|
-
defaultProps: true,
|
|
1317
|
-
displayName: true,
|
|
1318
|
-
propTypes: true
|
|
1319
|
-
};
|
|
1320
|
-
var MEMO_STATICS = {
|
|
1321
|
-
'$$typeof': true,
|
|
1322
|
-
compare: true,
|
|
1323
|
-
defaultProps: true,
|
|
1324
|
-
displayName: true,
|
|
1325
|
-
propTypes: true,
|
|
1326
|
-
type: true
|
|
1327
|
-
};
|
|
1328
|
-
var TYPE_STATICS = {};
|
|
1329
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
1330
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
1331
|
-
function getStatics(component) {
|
|
1332
|
-
if (reactIs.isMemo(component)) {
|
|
1333
|
-
return MEMO_STATICS;
|
|
1334
|
-
}
|
|
1335
|
-
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
1336
|
-
}
|
|
1337
|
-
var defineProperty = Object.defineProperty;
|
|
1338
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
1339
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1340
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1341
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
1342
|
-
var objectPrototype = Object.prototype;
|
|
1343
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
1344
|
-
if (typeof sourceComponent !== 'string') {
|
|
1345
|
-
if (objectPrototype) {
|
|
1346
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
1347
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
1348
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
1352
|
-
if (getOwnPropertySymbols) {
|
|
1353
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
1354
|
-
}
|
|
1355
|
-
var targetStatics = getStatics(targetComponent);
|
|
1356
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
1357
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
1358
|
-
var key = keys[i];
|
|
1359
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
1360
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
1361
|
-
try {
|
|
1362
|
-
defineProperty(targetComponent, key, descriptor);
|
|
1363
|
-
} catch (e) {}
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
}
|
|
1367
|
-
return targetComponent;
|
|
1368
|
-
}
|
|
1369
|
-
var hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
1370
|
-
const r = _dll_react;
|
|
1371
|
-
const {useContext: s$1} = _dll_react;
|
|
1372
|
-
const {useRef: c} = _dll_react;
|
|
1373
|
-
const {createElement: u} = _dll_react;
|
|
1374
|
-
const {useDebugValue: l} = _dll_react;
|
|
1375
|
-
function v() {
|
|
1376
|
-
return (v = Object.assign || (function (e) {
|
|
1377
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1378
|
-
var n = arguments[t];
|
|
1379
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1380
|
-
}
|
|
1381
|
-
return e;
|
|
1382
|
-
})).apply(this, arguments);
|
|
1383
|
-
}
|
|
1384
|
-
var g = function (e, t) {
|
|
1385
|
-
for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
|
|
1386
|
-
return n;
|
|
1387
|
-
}, S = function (t) {
|
|
1388
|
-
return null !== t && "object" == typeof t && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !reactIs_28(t);
|
|
1389
|
-
}, w$1 = Object.freeze([]), E = Object.freeze({});
|
|
1390
|
-
function b(e) {
|
|
1391
|
-
return "function" == typeof e;
|
|
1392
|
-
}
|
|
1393
|
-
function _(e) {
|
|
1394
|
-
return "string" == typeof e && e || e.displayName || e.name || "Component";
|
|
1395
|
-
}
|
|
1396
|
-
function N(e) {
|
|
1397
|
-
return e && "string" == typeof e.styledComponentId;
|
|
1398
|
-
}
|
|
1399
|
-
var A = "undefined" != typeof process && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", I = "undefined" != typeof window && ("HTMLElement" in window), P = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && 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.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== "development"), R = {
|
|
1400
|
-
1: "Cannot create styled-component for component: %s.\n\n",
|
|
1401
|
-
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",
|
|
1402
|
-
3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
|
|
1403
|
-
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",
|
|
1404
|
-
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",
|
|
1405
|
-
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",
|
|
1406
|
-
7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
|
|
1407
|
-
8: 'ThemeProvider: Please make your "theme" prop an object.\n\n',
|
|
1408
|
-
9: "Missing document `<head>`\n\n",
|
|
1409
|
-
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",
|
|
1410
|
-
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",
|
|
1411
|
-
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",
|
|
1412
|
-
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",
|
|
1413
|
-
14: 'ThemeProvider: "theme" prop is required.\n\n',
|
|
1414
|
-
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",
|
|
1415
|
-
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",
|
|
1416
|
-
17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"
|
|
1417
|
-
};
|
|
1418
|
-
function D() {
|
|
1419
|
-
for (var e = arguments.length <= 0 ? void 0 : arguments[0], t = [], n = 1, r = arguments.length; n < r; n += 1) t.push(n < 0 || arguments.length <= n ? void 0 : arguments[n]);
|
|
1420
|
-
return (t.forEach(function (t) {
|
|
1421
|
-
e = e.replace(/%[a-z]/, t);
|
|
1422
|
-
}), e);
|
|
1423
|
-
}
|
|
1424
|
-
function j(e) {
|
|
1425
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
|
|
1426
|
-
throw new Error(D.apply(void 0, [R[e]].concat(n)).trim());
|
|
1427
|
-
}
|
|
1428
|
-
var T = (function () {
|
|
1429
|
-
function e(e) {
|
|
1430
|
-
(this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e);
|
|
1431
|
-
}
|
|
1432
|
-
var t = e.prototype;
|
|
1433
|
-
return (t.indexOfGroup = function (e) {
|
|
1434
|
-
for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
|
|
1435
|
-
return t;
|
|
1436
|
-
}, t.insertRules = function (e, t) {
|
|
1437
|
-
if (e >= this.groupSizes.length) {
|
|
1438
|
-
for (var n = this.groupSizes, r = n.length, o = r; e >= o; ) (o <<= 1) < 0 && j(16, "" + e);
|
|
1439
|
-
(this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o);
|
|
1440
|
-
for (var s = r; s < o; s++) this.groupSizes[s] = 0;
|
|
1441
|
-
}
|
|
1442
|
-
for (var i = this.indexOfGroup(e + 1), a = 0, c = t.length; a < c; a++) this.tag.insertRule(i, t[a]) && (this.groupSizes[e]++, i++);
|
|
1443
|
-
}, t.clearGroup = function (e) {
|
|
1444
|
-
if (e < this.length) {
|
|
1445
|
-
var t = this.groupSizes[e], n = this.indexOfGroup(e), r = n + t;
|
|
1446
|
-
this.groupSizes[e] = 0;
|
|
1447
|
-
for (var o = n; o < r; o++) this.tag.deleteRule(n);
|
|
1448
|
-
}
|
|
1449
|
-
}, t.getGroup = function (e) {
|
|
1450
|
-
var t = "";
|
|
1451
|
-
if (e >= this.length || 0 === this.groupSizes[e]) return t;
|
|
1452
|
-
for (var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, s = r; s < o; s++) t += this.tag.getRule(s) + "/*!sc*/\n";
|
|
1453
|
-
return t;
|
|
1454
|
-
}, e);
|
|
1455
|
-
})(), k = new Map(), x = new Map(), V = 1, B = function (e) {
|
|
1456
|
-
if (k.has(e)) return k.get(e);
|
|
1457
|
-
for (; x.has(V); ) V++;
|
|
1458
|
-
var t = V++;
|
|
1459
|
-
return (((0 | t) < 0 || t > 1 << 30) && j(16, "" + t), k.set(e, t), x.set(t, e), t);
|
|
1460
|
-
}, M = function (e) {
|
|
1461
|
-
return x.get(e);
|
|
1462
|
-
}, z = function (e, t) {
|
|
1463
|
-
(k.set(e, t), x.set(t, e));
|
|
1464
|
-
}, L = "style[" + A + '][data-styled-version="5.2.1"]', G = new RegExp("^" + A + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), F = function (e, t, n) {
|
|
1465
|
-
for (var r, o = n.split(","), s = 0, i = o.length; s < i; s++) (r = o[s]) && e.registerName(t, r);
|
|
1466
|
-
}, Y = function (e, t) {
|
|
1467
|
-
for (var n = t.innerHTML.split("/*!sc*/\n"), r = [], o = 0, s = n.length; o < s; o++) {
|
|
1468
|
-
var i = n[o].trim();
|
|
1469
|
-
if (i) {
|
|
1470
|
-
var a = i.match(G);
|
|
1471
|
-
if (a) {
|
|
1472
|
-
var c = 0 | parseInt(a[1], 10), u = a[2];
|
|
1473
|
-
(0 !== c && (z(u, c), F(e, u, a[3]), e.getTag().insertRules(c, r)), r.length = 0);
|
|
1474
|
-
} else r.push(i);
|
|
1475
|
-
}
|
|
1476
|
-
}
|
|
1477
|
-
}, q = function () {
|
|
1478
|
-
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
1479
|
-
}, H = function (e) {
|
|
1480
|
-
var t = document.head, n = e || t, r = document.createElement("style"), o = (function (e) {
|
|
1481
|
-
for (var t = e.childNodes, n = t.length; n >= 0; n--) {
|
|
1482
|
-
var r = t[n];
|
|
1483
|
-
if (r && 1 === r.nodeType && r.hasAttribute(A)) return r;
|
|
1484
|
-
}
|
|
1485
|
-
})(n), s = void 0 !== o ? o.nextSibling : null;
|
|
1486
|
-
(r.setAttribute(A, "active"), r.setAttribute("data-styled-version", "5.2.1"));
|
|
1487
|
-
var i = q();
|
|
1488
|
-
return (i && r.setAttribute("nonce", i), n.insertBefore(r, s), r);
|
|
1489
|
-
}, $ = (function () {
|
|
1490
|
-
function e(e) {
|
|
1491
|
-
var t = this.element = H(e);
|
|
1492
|
-
(t.appendChild(document.createTextNode("")), this.sheet = (function (e) {
|
|
1493
|
-
if (e.sheet) return e.sheet;
|
|
1494
|
-
for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
|
|
1495
|
-
var o = t[n];
|
|
1496
|
-
if (o.ownerNode === e) return o;
|
|
1497
|
-
}
|
|
1498
|
-
j(17);
|
|
1499
|
-
})(t), this.length = 0);
|
|
1500
|
-
}
|
|
1501
|
-
var t = e.prototype;
|
|
1502
|
-
return (t.insertRule = function (e, t) {
|
|
1503
|
-
try {
|
|
1504
|
-
return (this.sheet.insertRule(t, e), this.length++, !0);
|
|
1505
|
-
} catch (e) {
|
|
1506
|
-
return !1;
|
|
1507
|
-
}
|
|
1508
|
-
}, t.deleteRule = function (e) {
|
|
1509
|
-
(this.sheet.deleteRule(e), this.length--);
|
|
1510
|
-
}, t.getRule = function (e) {
|
|
1511
|
-
var t = this.sheet.cssRules[e];
|
|
1512
|
-
return void 0 !== t && "string" == typeof t.cssText ? t.cssText : "";
|
|
1513
|
-
}, e);
|
|
1514
|
-
})(), W = (function () {
|
|
1515
|
-
function e(e) {
|
|
1516
|
-
var t = this.element = H(e);
|
|
1517
|
-
(this.nodes = t.childNodes, this.length = 0);
|
|
1518
|
-
}
|
|
1519
|
-
var t = e.prototype;
|
|
1520
|
-
return (t.insertRule = function (e, t) {
|
|
1521
|
-
if (e <= this.length && e >= 0) {
|
|
1522
|
-
var n = document.createTextNode(t), r = this.nodes[e];
|
|
1523
|
-
return (this.element.insertBefore(n, r || null), this.length++, !0);
|
|
1524
|
-
}
|
|
1525
|
-
return !1;
|
|
1526
|
-
}, t.deleteRule = function (e) {
|
|
1527
|
-
(this.element.removeChild(this.nodes[e]), this.length--);
|
|
1528
|
-
}, t.getRule = function (e) {
|
|
1529
|
-
return e < this.length ? this.nodes[e].textContent : "";
|
|
1530
|
-
}, e);
|
|
1531
|
-
})(), U = (function () {
|
|
1532
|
-
function e(e) {
|
|
1533
|
-
(this.rules = [], this.length = 0);
|
|
1534
|
-
}
|
|
1535
|
-
var t = e.prototype;
|
|
1536
|
-
return (t.insertRule = function (e, t) {
|
|
1537
|
-
return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
|
|
1538
|
-
}, t.deleteRule = function (e) {
|
|
1539
|
-
(this.rules.splice(e, 1), this.length--);
|
|
1540
|
-
}, t.getRule = function (e) {
|
|
1541
|
-
return e < this.length ? this.rules[e] : "";
|
|
1542
|
-
}, e);
|
|
1543
|
-
})(), J = I, X = {
|
|
1544
|
-
isServer: !I,
|
|
1545
|
-
useCSSOMInjection: !P
|
|
1546
|
-
}, Z = (function () {
|
|
1547
|
-
function e(e, t, n) {
|
|
1548
|
-
(void 0 === e && (e = E), void 0 === t && (t = {}), this.options = v({}, X, {}, e), this.gs = t, this.names = new Map(n), !this.options.isServer && I && J && (J = !1, (function (e) {
|
|
1549
|
-
for (var t = document.querySelectorAll(L), n = 0, r = t.length; n < r; n++) {
|
|
1550
|
-
var o = t[n];
|
|
1551
|
-
o && "active" !== o.getAttribute(A) && (Y(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1552
|
-
}
|
|
1553
|
-
})(this)));
|
|
1554
|
-
}
|
|
1555
|
-
e.registerId = function (e) {
|
|
1556
|
-
return B(e);
|
|
1557
|
-
};
|
|
1558
|
-
var t = e.prototype;
|
|
1559
|
-
return (t.reconstructWithOptions = function (t, n) {
|
|
1560
|
-
return (void 0 === n && (n = !0), new e(v({}, this.options, {}, t), this.gs, n && this.names || void 0));
|
|
1561
|
-
}, t.allocateGSInstance = function (e) {
|
|
1562
|
-
return this.gs[e] = (this.gs[e] || 0) + 1;
|
|
1563
|
-
}, t.getTag = function () {
|
|
1564
|
-
return this.tag || (this.tag = (n = (t = this.options).isServer, r = t.useCSSOMInjection, o = t.target, e = n ? new U(o) : r ? new $(o) : new W(o), new T(e)));
|
|
1565
|
-
var e, t, n, r, o;
|
|
1566
|
-
}, t.hasNameForId = function (e, t) {
|
|
1567
|
-
return this.names.has(e) && this.names.get(e).has(t);
|
|
1568
|
-
}, t.registerName = function (e, t) {
|
|
1569
|
-
if ((B(e), this.names.has(e))) this.names.get(e).add(t); else {
|
|
1570
|
-
var n = new Set();
|
|
1571
|
-
(n.add(t), this.names.set(e, n));
|
|
1572
|
-
}
|
|
1573
|
-
}, t.insertRules = function (e, t, n) {
|
|
1574
|
-
(this.registerName(e, t), this.getTag().insertRules(B(e), n));
|
|
1575
|
-
}, t.clearNames = function (e) {
|
|
1576
|
-
this.names.has(e) && this.names.get(e).clear();
|
|
1577
|
-
}, t.clearRules = function (e) {
|
|
1578
|
-
(this.getTag().clearGroup(B(e)), this.clearNames(e));
|
|
1579
|
-
}, t.clearTag = function () {
|
|
1580
|
-
this.tag = void 0;
|
|
1581
|
-
}, t.toString = function () {
|
|
1582
|
-
return (function (e) {
|
|
1583
|
-
for (var t = e.getTag(), n = t.length, r = "", o = 0; o < n; o++) {
|
|
1584
|
-
var s = M(o);
|
|
1585
|
-
if (void 0 !== s) {
|
|
1586
|
-
var i = e.names.get(s), a = t.getGroup(o);
|
|
1587
|
-
if (void 0 !== i && 0 !== a.length) {
|
|
1588
|
-
var c = A + ".g" + o + '[id="' + s + '"]', u = "";
|
|
1589
|
-
(void 0 !== i && i.forEach(function (e) {
|
|
1590
|
-
e.length > 0 && (u += e + ",");
|
|
1591
|
-
}), r += "" + a + c + '{content:"' + u + '"}/*!sc*/\n');
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
}
|
|
1595
|
-
return r;
|
|
1596
|
-
})(this);
|
|
1597
|
-
}, e);
|
|
1598
|
-
})(), K = /(a)(d)/gi, Q = function (e) {
|
|
1599
|
-
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1600
|
-
};
|
|
1601
|
-
function ee(e) {
|
|
1602
|
-
var t, n = "";
|
|
1603
|
-
for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = Q(t % 52) + n;
|
|
1604
|
-
return (Q(t % 52) + n).replace(K, "$1-$2");
|
|
1605
|
-
}
|
|
1606
|
-
var te = function (e, t) {
|
|
1607
|
-
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
1608
|
-
return e;
|
|
1609
|
-
}, ne = function (e) {
|
|
1610
|
-
return te(5381, e);
|
|
1611
|
-
};
|
|
1612
|
-
var oe = ne("5.2.1"), se = (function () {
|
|
1613
|
-
function e(e, t, n) {
|
|
1614
|
-
(this.rules = e, this.staticRulesId = "", this.isStatic = "production" === "development", this.componentId = t, this.baseHash = te(oe, t), this.baseStyle = n, Z.registerId(t));
|
|
1615
|
-
}
|
|
1616
|
-
return (e.prototype.generateAndInjectStyles = function (e, t, n) {
|
|
1617
|
-
var r = this.componentId, o = [];
|
|
1618
|
-
if ((this.baseStyle && o.push(this.baseStyle.generateAndInjectStyles(e, t, n)), this.isStatic && !n.hash)) if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId)) o.push(this.staticRulesId); else {
|
|
1619
|
-
var s = Ne(this.rules, e, t, n).join(""), i = ee(te(this.baseHash, s.length) >>> 0);
|
|
1620
|
-
if (!t.hasNameForId(r, i)) {
|
|
1621
|
-
var a = n(s, "." + i, void 0, r);
|
|
1622
|
-
t.insertRules(r, i, a);
|
|
1623
|
-
}
|
|
1624
|
-
(o.push(i), this.staticRulesId = i);
|
|
1625
|
-
} else {
|
|
1626
|
-
for (var c = this.rules.length, u = te(this.baseHash, n.hash), l = "", d = 0; d < c; d++) {
|
|
1627
|
-
var h = this.rules[d];
|
|
1628
|
-
if ("string" == typeof h) (l += h, u = te(u, h + d)); else if (h) {
|
|
1629
|
-
var p = Ne(h, e, t, n), f = Array.isArray(p) ? p.join("") : p;
|
|
1630
|
-
(u = te(u, f + d), l += f);
|
|
1631
|
-
}
|
|
1632
|
-
}
|
|
1633
|
-
if (l) {
|
|
1634
|
-
var m = ee(u >>> 0);
|
|
1635
|
-
if (!t.hasNameForId(r, m)) {
|
|
1636
|
-
var y = n(l, "." + m, void 0, r);
|
|
1637
|
-
t.insertRules(r, m, y);
|
|
1638
|
-
}
|
|
1639
|
-
o.push(m);
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
return o.join(" ");
|
|
1643
|
-
}, e);
|
|
1644
|
-
})(), ie = /^\s*\/\/.*$/gm, ae = [":", "[", ".", "#"];
|
|
1645
|
-
function ce(e) {
|
|
1646
|
-
var t, n, r, o, s = void 0 === e ? E : e, i = s.options, a = void 0 === i ? E : i, c = s.plugins, u = void 0 === c ? w$1 : c, l = new stylis_min(a), d = [], h = (function (e) {
|
|
1647
|
-
function t(t) {
|
|
1648
|
-
if (t) try {
|
|
1649
|
-
e(t + "}");
|
|
1650
|
-
} catch (e) {}
|
|
1651
|
-
}
|
|
1652
|
-
return function (n, r, o, s, i, a, c, u, l, d) {
|
|
1653
|
-
switch (n) {
|
|
1654
|
-
case 1:
|
|
1655
|
-
if (0 === l && 64 === r.charCodeAt(0)) return (e(r + ";"), "");
|
|
1656
|
-
break;
|
|
1657
|
-
case 2:
|
|
1658
|
-
if (0 === u) return r + "/*|*/";
|
|
1659
|
-
break;
|
|
1660
|
-
case 3:
|
|
1661
|
-
switch (u) {
|
|
1662
|
-
case 102:
|
|
1663
|
-
case 112:
|
|
1664
|
-
return (e(o[0] + r), "");
|
|
1665
|
-
default:
|
|
1666
|
-
return r + (0 === d ? "/*|*/" : "");
|
|
1667
|
-
}
|
|
1668
|
-
case -2:
|
|
1669
|
-
r.split("/*|*/}").forEach(t);
|
|
1670
|
-
}
|
|
1671
|
-
};
|
|
1672
|
-
})(function (e) {
|
|
1673
|
-
d.push(e);
|
|
1674
|
-
}), f = function (e, r, s) {
|
|
1675
|
-
return 0 === r && ae.includes(s[n.length]) || s.match(o) ? e : "." + t;
|
|
1676
|
-
};
|
|
1677
|
-
function m(e, s, i, a) {
|
|
1678
|
-
void 0 === a && (a = "&");
|
|
1679
|
-
var c = e.replace(ie, ""), u = s && i ? i + " " + s + " { " + c + " }" : c;
|
|
1680
|
-
return (t = a, n = s, r = new RegExp("\\" + n + "\\b", "g"), o = new RegExp("(\\" + n + "\\b){2,}"), l(i || !s ? "" : s, u));
|
|
1681
|
-
}
|
|
1682
|
-
return (l.use([].concat(u, [function (e, t, o) {
|
|
1683
|
-
2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f));
|
|
1684
|
-
}, h, function (e) {
|
|
1685
|
-
if (-2 === e) {
|
|
1686
|
-
var t = d;
|
|
1687
|
-
return (d = [], t);
|
|
1688
|
-
}
|
|
1689
|
-
}])), m.hash = u.length ? u.reduce(function (e, t) {
|
|
1690
|
-
return (t.name || j(15), te(e, t.name));
|
|
1691
|
-
}, 5381).toString() : "", m);
|
|
1692
|
-
}
|
|
1693
|
-
var ue = r.createContext();
|
|
1694
|
-
ue.Consumer;
|
|
1695
|
-
var de = r.createContext(), he = (de.Consumer, new Z()), pe = ce();
|
|
1696
|
-
function fe() {
|
|
1697
|
-
return s$1(ue) || he;
|
|
1698
|
-
}
|
|
1699
|
-
function me() {
|
|
1700
|
-
return s$1(de) || pe;
|
|
1701
|
-
}
|
|
1702
|
-
var ve = (function () {
|
|
1703
|
-
function e(e, t) {
|
|
1704
|
-
var n = this;
|
|
1705
|
-
(this.inject = function (e, t) {
|
|
1706
|
-
void 0 === t && (t = pe);
|
|
1707
|
-
var r = n.name + t.hash;
|
|
1708
|
-
e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"));
|
|
1709
|
-
}, this.toString = function () {
|
|
1710
|
-
return j(12, String(n.name));
|
|
1711
|
-
}, this.name = e, this.id = "sc-keyframes-" + e, this.rules = t);
|
|
1712
|
-
}
|
|
1713
|
-
return (e.prototype.getName = function (e) {
|
|
1714
|
-
return (void 0 === e && (e = pe), this.name + e.hash);
|
|
1715
|
-
}, e);
|
|
1716
|
-
})(), ge = /([A-Z])/, Se = /([A-Z])/g, we = /^ms-/, Ee = function (e) {
|
|
1717
|
-
return "-" + e.toLowerCase();
|
|
1718
|
-
};
|
|
1719
|
-
function be(e) {
|
|
1720
|
-
return ge.test(e) ? e.replace(Se, Ee).replace(we, "-ms-") : e;
|
|
1721
|
-
}
|
|
1722
|
-
var _e = function (e) {
|
|
1723
|
-
return null == e || !1 === e || "" === e;
|
|
1724
|
-
};
|
|
1725
|
-
function Ne(e, n, r, o) {
|
|
1726
|
-
if (Array.isArray(e)) {
|
|
1727
|
-
for (var s, i = [], a = 0, c = e.length; a < c; a += 1) "" !== (s = Ne(e[a], n, r, o)) && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s));
|
|
1728
|
-
return i;
|
|
1729
|
-
}
|
|
1730
|
-
if (_e(e)) return "";
|
|
1731
|
-
if (N(e)) return "." + e.styledComponentId;
|
|
1732
|
-
if (b(e)) {
|
|
1733
|
-
if ("function" != typeof (l = e) || l.prototype && l.prototype.isReactComponent || !n) return e;
|
|
1734
|
-
var u = e(n);
|
|
1735
|
-
return (reactIs_18(u) && console.warn(_(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."), Ne(u, n, r, o));
|
|
1736
|
-
}
|
|
1737
|
-
var l;
|
|
1738
|
-
return e instanceof ve ? r ? (e.inject(r, o), e.getName(o)) : e : S(e) ? (function e(t, n) {
|
|
1739
|
-
var r, o, s = [];
|
|
1740
|
-
for (var i in t) t.hasOwnProperty(i) && !_e(t[i]) && (S(t[i]) ? s.push.apply(s, e(t[i], i)) : b(t[i]) ? s.push(be(i) + ":", t[i], ";") : s.push(be(i) + ": " + (r = i, null == (o = t[i]) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || (r in unitlessKeys) ? String(o).trim() : o + "px") + ";"));
|
|
1741
|
-
return n ? [n + " {"].concat(s, ["}"]) : s;
|
|
1742
|
-
})(e) : e.toString();
|
|
1743
|
-
}
|
|
1744
|
-
function Ae(e) {
|
|
1745
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
|
|
1746
|
-
return b(e) || S(e) ? Ne(g(w$1, [e].concat(n))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ne(g(e, n));
|
|
1747
|
-
}
|
|
1748
|
-
var Ce = /invalid hook call/i, Ie = new Set(), Pe = function (e, t) {
|
|
1749
|
-
{
|
|
1750
|
-
var n = "The component " + e + (t ? ' with the id of "' + t + '"' : "") + " has been created dynamically.\nYou 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.";
|
|
1751
|
-
try {
|
|
1752
|
-
(c(), Ie.has(n) || (console.warn(n), Ie.add(n)));
|
|
1753
|
-
} catch (e) {
|
|
1754
|
-
Ce.test(e.message) && Ie.delete(n);
|
|
1755
|
-
}
|
|
1756
|
-
}
|
|
1757
|
-
}, Oe = function (e, t, n) {
|
|
1758
|
-
return (void 0 === n && (n = E), e.theme !== n.theme && e.theme || t || n.theme);
|
|
1759
|
-
}, Re = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, De = /(^-|-$)/g;
|
|
1760
|
-
function je(e) {
|
|
1761
|
-
return e.replace(Re, "-").replace(De, "");
|
|
1762
|
-
}
|
|
1763
|
-
var Te = function (e) {
|
|
1764
|
-
return ee(ne(e) >>> 0);
|
|
1765
|
-
};
|
|
1766
|
-
function ke(e) {
|
|
1767
|
-
return "string" == typeof e && e.charAt(0) === e.charAt(0).toLowerCase();
|
|
1768
|
-
}
|
|
1769
|
-
var xe = function (e) {
|
|
1770
|
-
return "function" == typeof e || "object" == typeof e && null !== e && !Array.isArray(e);
|
|
1771
|
-
}, Ve = function (e) {
|
|
1772
|
-
return "__proto__" !== e && "constructor" !== e && "prototype" !== e;
|
|
1773
|
-
};
|
|
1774
|
-
function Be(e, t, n) {
|
|
1775
|
-
var r = e[n];
|
|
1776
|
-
xe(t) && xe(r) ? Me(r, t) : e[n] = t;
|
|
1777
|
-
}
|
|
1778
|
-
function Me(e) {
|
|
1779
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
|
|
1780
|
-
for (var o = 0, s = n; o < s.length; o++) {
|
|
1781
|
-
var i = s[o];
|
|
1782
|
-
if (xe(i)) for (var a in i) Ve(a) && Be(e, i[a], a);
|
|
1783
|
-
}
|
|
1784
|
-
return e;
|
|
1785
|
-
}
|
|
1786
|
-
var ze = r.createContext();
|
|
1787
|
-
ze.Consumer;
|
|
1788
|
-
var Fe = {};
|
|
1789
|
-
function Ye(e, t, n) {
|
|
1790
|
-
var o = N(e), i = !ke(e), a = t.attrs, c = void 0 === a ? w$1 : a, d = t.componentId, h = void 0 === d ? (function (e, t) {
|
|
1791
|
-
var n = "string" != typeof e ? "sc" : je(e);
|
|
1792
|
-
Fe[n] = (Fe[n] || 0) + 1;
|
|
1793
|
-
var r = n + "-" + Te("5.2.1" + n + Fe[n]);
|
|
1794
|
-
return t ? t + "-" + r : r;
|
|
1795
|
-
})(t.displayName, t.parentComponentId) : d, p = t.displayName, f = void 0 === p ? (function (e) {
|
|
1796
|
-
return ke(e) ? "styled." + e : "Styled(" + _(e) + ")";
|
|
1797
|
-
})(e) : p, g = t.displayName && t.componentId ? je(t.displayName) + "-" + t.componentId : t.componentId || h, S = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c, A = t.shouldForwardProp;
|
|
1798
|
-
o && e.shouldForwardProp && (A = t.shouldForwardProp ? function (n, r) {
|
|
1799
|
-
return e.shouldForwardProp(n, r) && t.shouldForwardProp(n, r);
|
|
1800
|
-
} : e.shouldForwardProp);
|
|
1801
|
-
var C, I = new se(n, g, o ? e.componentStyle : void 0), P = I.isStatic && 0 === c.length, O = function (e, t) {
|
|
1802
|
-
return (function (e, t, n, r) {
|
|
1803
|
-
var o = e.attrs, i = e.componentStyle, a = e.defaultProps, c = e.foldedComponentIds, d = e.shouldForwardProp, h = e.styledComponentId, p = e.target;
|
|
1804
|
-
l(h);
|
|
1805
|
-
var f = (function (e, t, n) {
|
|
1806
|
-
void 0 === e && (e = E);
|
|
1807
|
-
var r = v({}, t, {
|
|
1808
|
-
theme: e
|
|
1809
|
-
}), o = {};
|
|
1810
|
-
return (n.forEach(function (e) {
|
|
1811
|
-
var t, n, s, i = e;
|
|
1812
|
-
for (t in (b(i) && (i = i(r)), i)) r[t] = o[t] = "className" === t ? (n = o[t], s = i[t], n && s ? n + " " + s : n || s) : i[t];
|
|
1813
|
-
}), [r, o]);
|
|
1814
|
-
})(Oe(t, s$1(ze), a) || E, t, o), y = f[0], g = f[1], S = (function (e, t, n, r) {
|
|
1815
|
-
var o = fe(), s = me(), i = t ? e.generateAndInjectStyles(E, o, s) : e.generateAndInjectStyles(n, o, s);
|
|
1816
|
-
return (l(i), !t && r && r(i), i);
|
|
1817
|
-
})(i, r, y, e.warnTooManyClasses), w = n, _ = g.$as || t.$as || g.as || t.as || p, N = ke(_), A = g !== t ? v({}, t, {}, g) : t, C = {};
|
|
1818
|
-
for (var I in A) "$" !== I[0] && "as" !== I && ("forwardedAs" === I ? C.as = A[I] : (d ? d(I, index) : !N || index(I)) && (C[I] = A[I]));
|
|
1819
|
-
return (t.style && g.style !== t.style && (C.style = v({}, t.style, {}, g.style)), C.className = Array.prototype.concat(c, h, S !== h ? S : null, t.className, g.className).filter(Boolean).join(" "), C.ref = w, u(_, C));
|
|
1820
|
-
})(C, e, t, P);
|
|
1821
|
-
};
|
|
1822
|
-
return (O.displayName = f, (C = r.forwardRef(O)).attrs = S, C.componentStyle = I, C.displayName = f, C.shouldForwardProp = A, C.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : w$1, C.styledComponentId = g, C.target = o ? e.target : e, C.withComponent = function (e) {
|
|
1823
|
-
var r = t.componentId, o = (function (e, t) {
|
|
1824
|
-
if (null == e) return {};
|
|
1825
|
-
var n, r, o = {}, s = Object.keys(e);
|
|
1826
|
-
for (r = 0; r < s.length; r++) (n = s[r], t.indexOf(n) >= 0 || (o[n] = e[n]));
|
|
1827
|
-
return o;
|
|
1828
|
-
})(t, ["componentId"]), s = r && r + "-" + (ke(e) ? e : je(_(e)));
|
|
1829
|
-
return Ye(e, v({}, o, {
|
|
1830
|
-
attrs: S,
|
|
1831
|
-
componentId: s
|
|
1832
|
-
}), n);
|
|
1833
|
-
}, Object.defineProperty(C, "defaultProps", {
|
|
1834
|
-
get: function () {
|
|
1835
|
-
return this._foldedDefaultProps;
|
|
1836
|
-
},
|
|
1837
|
-
set: function (t) {
|
|
1838
|
-
this._foldedDefaultProps = o ? Me({}, e.defaultProps, t) : t;
|
|
1839
|
-
}
|
|
1840
|
-
}), (Pe(f, g), C.warnTooManyClasses = (function (e, t) {
|
|
1841
|
-
var n = {}, r = !1;
|
|
1842
|
-
return function (o) {
|
|
1843
|
-
if (!r && (n[o] = !0, Object.keys(n).length >= 200)) {
|
|
1844
|
-
var s = t ? ' with the id of "' + t + '"' : "";
|
|
1845
|
-
(console.warn("Over 200 classes were generated for component " + e + s + ".\nConsider 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 />"), r = !0, n = {});
|
|
1846
|
-
}
|
|
1847
|
-
};
|
|
1848
|
-
})(f, g)), C.toString = function () {
|
|
1849
|
-
return "." + C.styledComponentId;
|
|
1850
|
-
}, i && hoistNonReactStatics_cjs(C, e, {
|
|
1851
|
-
attrs: !0,
|
|
1852
|
-
componentStyle: !0,
|
|
1853
|
-
displayName: !0,
|
|
1854
|
-
foldedComponentIds: !0,
|
|
1855
|
-
shouldForwardProp: !0,
|
|
1856
|
-
styledComponentId: !0,
|
|
1857
|
-
target: !0,
|
|
1858
|
-
withComponent: !0
|
|
1859
|
-
}), C);
|
|
1860
|
-
}
|
|
1861
|
-
var qe = function (e) {
|
|
1862
|
-
return (function e(t, r, o) {
|
|
1863
|
-
if ((void 0 === o && (o = E), !reactIs_27(r))) return j(1, String(r));
|
|
1864
|
-
var s = function () {
|
|
1865
|
-
return t(r, o, Ae.apply(void 0, arguments));
|
|
1866
|
-
};
|
|
1867
|
-
return (s.withConfig = function (n) {
|
|
1868
|
-
return e(t, r, v({}, o, {}, n));
|
|
1869
|
-
}, s.attrs = function (n) {
|
|
1870
|
-
return e(t, r, v({}, o, {
|
|
1871
|
-
attrs: Array.prototype.concat(o.attrs, n).filter(Boolean)
|
|
1872
|
-
}));
|
|
1873
|
-
}, s);
|
|
1874
|
-
})(Ye, e);
|
|
1875
|
-
};
|
|
1876
|
-
["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", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "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", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"].forEach(function (e) {
|
|
1877
|
-
qe[e] = qe(e);
|
|
1878
|
-
});
|
|
1879
|
-
("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"), (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, 1 === window["__styled-components-init__"] && 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["__styled-components-init__"] += 1));
|
|
1880
|
-
const ColumnsWrapper = qe.div`
|
|
1881
|
-
display: flex;
|
|
1882
|
-
flex-direction: column;
|
|
1883
|
-
align-items: center;
|
|
1884
|
-
`;
|
|
1885
|
-
const ColumnsHeader = qe.p`
|
|
1886
|
-
margin: 10px 0;
|
|
1887
|
-
color: #c3c3c3;
|
|
1888
|
-
font-size: 12px;
|
|
1889
|
-
`;
|
|
1890
|
-
const NumberInputFormGroupWrapper = qe.div`
|
|
1891
|
-
display: flex;
|
|
1892
|
-
align-items: center;
|
|
1893
|
-
justify-content: space-between;
|
|
1894
|
-
width: 110px;
|
|
1895
|
-
`;
|
|
1896
|
-
const IconWrapper = qe.div`
|
|
1897
|
-
cursor: pointer;
|
|
1898
|
-
`;
|
|
1899
|
-
const MATRIX_LABEL_TYPE = {
|
|
1900
|
-
agreement: 'agreement',
|
|
1901
|
-
frequency: 'frequency',
|
|
1902
|
-
yesNo: 'yesNo',
|
|
1903
|
-
importance: 'importance',
|
|
1904
|
-
likelihood: 'likelihood',
|
|
1905
|
-
like: 'like',
|
|
1906
|
-
custom: 'custom'
|
|
1907
|
-
};
|
|
1908
|
-
const React = _dll_react;
|
|
1909
|
-
const PropTypes = _dll_prop_types;
|
|
1910
|
-
const _jsxFileName = "/home/ede/dev/github/pie-framework/pie-elements/packages/matrix/configure/src/MatrixColumnsSizeHeaderInput.js";
|
|
1911
|
-
const MatrixColumnsSizeHeaderInput = ({model, onChangeModel}) => {
|
|
1912
|
-
const onIncrementColumnsSize = () => {
|
|
1913
|
-
onChangeModel({
|
|
1914
|
-
...model,
|
|
1915
|
-
columnLabels: [...model.columnLabels, `COLUMN ${model.columnLabels.length + 1}`],
|
|
1916
|
-
labelType: MATRIX_LABEL_TYPE.custom
|
|
1917
|
-
});
|
|
1918
|
-
};
|
|
1919
|
-
const onDecrementColumnsSize = () => {
|
|
1920
|
-
const columnLabelsLength = model.columnLabels.length;
|
|
1921
|
-
if (columnLabelsLength <= 1) {
|
|
1922
|
-
return;
|
|
1923
|
-
}
|
|
1924
|
-
const columnLabelsNext = [...model.columnLabels];
|
|
1925
|
-
columnLabelsNext.pop();
|
|
1926
|
-
const matrixValuesClone = {
|
|
1927
|
-
...model.matrixValues
|
|
1928
|
-
};
|
|
1929
|
-
model.rowLabels.forEach((rowLabel, rowIndex) => {
|
|
1930
|
-
delete matrixValuesClone[`${rowIndex}-${columnLabelsLength - 1}`];
|
|
1931
|
-
});
|
|
1932
|
-
onChangeModel({
|
|
1933
|
-
...model,
|
|
1934
|
-
columnLabels: columnLabelsNext,
|
|
1935
|
-
matrixValues: matrixValuesClone,
|
|
1936
|
-
labelType: MATRIX_LABEL_TYPE.custom
|
|
1937
|
-
});
|
|
1938
|
-
};
|
|
1939
|
-
return React.createElement(ColumnsWrapper, {
|
|
1940
|
-
__self: undefined,
|
|
1941
|
-
__source: {
|
|
1942
|
-
fileName: _jsxFileName,
|
|
1943
|
-
lineNumber: 44
|
|
1944
|
-
}
|
|
1945
|
-
}, React.createElement(ColumnsHeader, {
|
|
1946
|
-
__self: undefined,
|
|
1947
|
-
__source: {
|
|
1948
|
-
fileName: _jsxFileName,
|
|
1949
|
-
lineNumber: 45
|
|
1950
|
-
}
|
|
1951
|
-
}, "Matrix Columns"), React.createElement(NumberInputFormGroupWrapper, {
|
|
1952
|
-
__self: undefined,
|
|
1953
|
-
__source: {
|
|
1954
|
-
fileName: _jsxFileName,
|
|
1955
|
-
lineNumber: 46
|
|
1956
|
-
}
|
|
1957
|
-
}, React.createElement(IconWrapper, {
|
|
1958
|
-
__self: undefined,
|
|
1959
|
-
__source: {
|
|
1960
|
-
fileName: _jsxFileName,
|
|
1961
|
-
lineNumber: 47
|
|
1962
|
-
}
|
|
1963
|
-
}, React.createElement(RemoveIcon, {
|
|
1964
|
-
onClick: onDecrementColumnsSize,
|
|
1965
|
-
__self: undefined,
|
|
1966
|
-
__source: {
|
|
1967
|
-
fileName: _jsxFileName,
|
|
1968
|
-
lineNumber: 48
|
|
1969
|
-
}
|
|
1970
|
-
})), React.createElement('p', {
|
|
1971
|
-
__self: undefined,
|
|
1972
|
-
__source: {
|
|
1973
|
-
fileName: _jsxFileName,
|
|
1974
|
-
lineNumber: 50
|
|
1975
|
-
}
|
|
1976
|
-
}, model.columnLabels.length), React.createElement(IconWrapper, {
|
|
1977
|
-
__self: undefined,
|
|
1978
|
-
__source: {
|
|
1979
|
-
fileName: _jsxFileName,
|
|
1980
|
-
lineNumber: 51
|
|
1981
|
-
}
|
|
1982
|
-
}, React.createElement(AddIcon, {
|
|
1983
|
-
onClick: onIncrementColumnsSize,
|
|
1984
|
-
__self: undefined,
|
|
1985
|
-
__source: {
|
|
1986
|
-
fileName: _jsxFileName,
|
|
1987
|
-
lineNumber: 52
|
|
1988
|
-
}
|
|
1989
|
-
}))));
|
|
1990
|
-
};
|
|
1991
|
-
MatrixColumnsSizeHeaderInput.propTypes = {
|
|
1992
|
-
model: PropTypes.object.isRequired,
|
|
1993
|
-
onChangeModel: PropTypes.func.isRequired
|
|
1994
|
-
};
|
|
1995
|
-
const React$1 = _dll_react;
|
|
1996
|
-
const PropTypes$1 = _dll_prop_types;
|
|
1997
|
-
const _jsxFileName$1 = "/home/ede/dev/github/pie-framework/pie-elements/packages/matrix/configure/src/MatrixRowsSizeHeaderInput.js";
|
|
1998
|
-
const MatrixColumnsRowInput = ({model, onChangeModel}) => {
|
|
1999
|
-
const onIncrementSize = () => {
|
|
2000
|
-
onChangeModel({
|
|
2001
|
-
...model,
|
|
2002
|
-
rowLabels: [...model.rowLabels, `STATEMENT ${model.rowLabels.length + 1}`],
|
|
2003
|
-
labelType: MATRIX_LABEL_TYPE.custom
|
|
2004
|
-
});
|
|
2005
|
-
};
|
|
2006
|
-
const onDecrementSize = () => {
|
|
2007
|
-
const rowLabelsLength = model.rowLabels.length;
|
|
2008
|
-
if (rowLabelsLength <= 1) {
|
|
2009
|
-
return;
|
|
2010
|
-
}
|
|
2011
|
-
const rowLabelsNext = [...model.rowLabels];
|
|
2012
|
-
rowLabelsNext.pop();
|
|
2013
|
-
const matrixValuesClone = {
|
|
2014
|
-
...model.matrixValues
|
|
2015
|
-
};
|
|
2016
|
-
model.columnLabels.forEach((columnLabel, columnIndex) => {
|
|
2017
|
-
delete matrixValuesClone[`${rowLabelsLength - 1}-${columnIndex}`];
|
|
2018
|
-
});
|
|
2019
|
-
onChangeModel({
|
|
2020
|
-
...model,
|
|
2021
|
-
rowLabels: rowLabelsNext,
|
|
2022
|
-
matrixValues: matrixValuesClone,
|
|
2023
|
-
labelType: MATRIX_LABEL_TYPE.custom
|
|
2024
|
-
});
|
|
2025
|
-
};
|
|
2026
|
-
return React$1.createElement(ColumnsWrapper, {
|
|
2027
|
-
__self: undefined,
|
|
2028
|
-
__source: {
|
|
2029
|
-
fileName: _jsxFileName$1,
|
|
2030
|
-
lineNumber: 43
|
|
2031
|
-
}
|
|
2032
|
-
}, React$1.createElement(ColumnsHeader, {
|
|
2033
|
-
__self: undefined,
|
|
2034
|
-
__source: {
|
|
2035
|
-
fileName: _jsxFileName$1,
|
|
2036
|
-
lineNumber: 44
|
|
2037
|
-
}
|
|
2038
|
-
}, "Matrix Rows"), React$1.createElement(NumberInputFormGroupWrapper, {
|
|
2039
|
-
__self: undefined,
|
|
2040
|
-
__source: {
|
|
2041
|
-
fileName: _jsxFileName$1,
|
|
2042
|
-
lineNumber: 45
|
|
2043
|
-
}
|
|
2044
|
-
}, React$1.createElement(IconWrapper, {
|
|
2045
|
-
__self: undefined,
|
|
2046
|
-
__source: {
|
|
2047
|
-
fileName: _jsxFileName$1,
|
|
2048
|
-
lineNumber: 46
|
|
2049
|
-
}
|
|
2050
|
-
}, React$1.createElement(RemoveIcon, {
|
|
2051
|
-
onClick: onDecrementSize,
|
|
2052
|
-
__self: undefined,
|
|
2053
|
-
__source: {
|
|
2054
|
-
fileName: _jsxFileName$1,
|
|
2055
|
-
lineNumber: 47
|
|
2056
|
-
}
|
|
2057
|
-
})), React$1.createElement('p', {
|
|
2058
|
-
__self: undefined,
|
|
2059
|
-
__source: {
|
|
2060
|
-
fileName: _jsxFileName$1,
|
|
2061
|
-
lineNumber: 49
|
|
2062
|
-
}
|
|
2063
|
-
}, model.rowLabels.length), React$1.createElement(IconWrapper, {
|
|
2064
|
-
__self: undefined,
|
|
2065
|
-
__source: {
|
|
2066
|
-
fileName: _jsxFileName$1,
|
|
2067
|
-
lineNumber: 50
|
|
2068
|
-
}
|
|
2069
|
-
}, React$1.createElement(AddIcon, {
|
|
2070
|
-
onClick: onIncrementSize,
|
|
2071
|
-
__self: undefined,
|
|
2072
|
-
__source: {
|
|
2073
|
-
fileName: _jsxFileName$1,
|
|
2074
|
-
lineNumber: 51
|
|
2075
|
-
}
|
|
2076
|
-
}))));
|
|
2077
|
-
};
|
|
2078
|
-
MatrixColumnsRowInput.propTypes = {
|
|
2079
|
-
model: PropTypes$1.object.isRequired,
|
|
2080
|
-
onChangeModel: PropTypes$1.func.isRequired
|
|
2081
|
-
};
|
|
2082
|
-
const AGREEMENT_3 = ['Disagree', 'Unsure', 'Agree'];
|
|
2083
|
-
const AGREEMENT_5 = ['Strongly Disagree', ...AGREEMENT_3, 'Strongly Agree'];
|
|
2084
|
-
const AGREEMENT_7 = ['Extremely Disagree', ...AGREEMENT_5, 'Extremely Agree'];
|
|
2085
|
-
const FREQUENCY_3 = ['Infrequently', 'Unsure', 'Frequently'];
|
|
2086
|
-
const FREQUENCY_5 = ['Very Infrequently', ...FREQUENCY_3, 'Very Frequently'];
|
|
2087
|
-
const FREQUENCY_7 = ['Never', ...FREQUENCY_5, 'Always'];
|
|
2088
|
-
const YES_NO_3 = ['No', 'Unsure', 'Yes'];
|
|
2089
|
-
const YES_NO_5 = ['No', 'Not really', 'Unsure', 'Sometimes', 'Yes'];
|
|
2090
|
-
const YES_NO_7 = ['No', 'Rarely', 'Not really', 'Unsure', 'Sometimes', 'Very Often', 'Always'];
|
|
2091
|
-
const LIKELIHOOD_3 = ['Not Likely', 'Unsure', 'Likely'];
|
|
2092
|
-
const LIKELIHOOD_5 = ['Very Unlikely', ...LIKELIHOOD_3, 'Very Likely'];
|
|
2093
|
-
const LIKELIHOOD_7 = ['Extremely Unlikely', ...LIKELIHOOD_5, 'Extremely Likely'];
|
|
2094
|
-
const IMPORTANCE_3 = ['Not Important', 'Unsure', 'Important'];
|
|
2095
|
-
const IMPORTANCE_5 = ['Very Not Important', ...IMPORTANCE_3, 'Very Important'];
|
|
2096
|
-
const IMPORTANCE_7 = ['Extremely Not Important', ...IMPORTANCE_5, 'Extremely Important'];
|
|
2097
|
-
const LIKE_3 = ['Dislike', 'Unsure', 'Like'];
|
|
2098
|
-
const LIKE_5 = ['Really Dislike', ...LIKE_3, 'Really Like'];
|
|
2099
|
-
const LIKE_7 = ['Extremely Dislike', ...LIKE_5, 'Extremely Like'];
|
|
2100
|
-
const config = {
|
|
2101
|
-
agreement_3: AGREEMENT_3,
|
|
2102
|
-
agreement_5: AGREEMENT_5,
|
|
2103
|
-
agreement_7: AGREEMENT_7,
|
|
2104
|
-
frequency_3: FREQUENCY_3,
|
|
2105
|
-
frequency_5: FREQUENCY_5,
|
|
2106
|
-
frequency_7: FREQUENCY_7,
|
|
2107
|
-
yesNo_3: YES_NO_3,
|
|
2108
|
-
yesNo_5: YES_NO_5,
|
|
2109
|
-
yesNo_7: YES_NO_7,
|
|
2110
|
-
likelihood_3: LIKELIHOOD_3,
|
|
2111
|
-
likelihood_5: LIKELIHOOD_5,
|
|
2112
|
-
likelihood_7: LIKELIHOOD_7,
|
|
2113
|
-
importance_3: IMPORTANCE_3,
|
|
2114
|
-
importance_5: IMPORTANCE_5,
|
|
2115
|
-
importance_7: IMPORTANCE_7,
|
|
2116
|
-
like_3: LIKE_3,
|
|
2117
|
-
like_5: LIKE_5,
|
|
2118
|
-
like_7: LIKE_7
|
|
2119
|
-
};
|
|
2120
|
-
const generateColumnLabels = (labelType, size) => {
|
|
2121
|
-
return config[`${labelType}_${size}`];
|
|
2122
|
-
};
|
|
2123
|
-
const React$2 = _dll_react;
|
|
2124
|
-
const {Radio: Radio} = _dll_material_ui__core;
|
|
2125
|
-
const {RadioGroup: RadioGroup} = _dll_material_ui__core;
|
|
2126
|
-
const {FormControlLabel: FormControlLabel} = _dll_material_ui__core;
|
|
2127
|
-
const PropTypes$2 = _dll_prop_types;
|
|
2128
|
-
const _jsxFileName$2 = "/home/ede/dev/github/pie-framework/pie-elements/packages/matrix/configure/src/MatrixLabelTypeHeaderInput.js";
|
|
2129
|
-
const Flex = qe.div`
|
|
2130
|
-
display: flex;
|
|
2131
|
-
`;
|
|
2132
|
-
const MatrixLabelTypeHeaderInput = ({model, onChangeModel}) => {
|
|
2133
|
-
const onChangeLabelType = e => {
|
|
2134
|
-
const labelType = e.target.value;
|
|
2135
|
-
const modelNew = {
|
|
2136
|
-
...model,
|
|
2137
|
-
labelType
|
|
2138
|
-
};
|
|
2139
|
-
if (labelType !== MATRIX_LABEL_TYPE.custom) {
|
|
2140
|
-
modelNew.columnLabels = generateColumnLabels(labelType, model.columnLabels.length);
|
|
2141
|
-
}
|
|
2142
|
-
onChangeModel(modelNew);
|
|
2143
|
-
};
|
|
2144
|
-
const isMatrixTypeSelectionEnabled = [3, 5, 7].includes(model.columnLabels.length);
|
|
2145
|
-
return React$2.createElement(ColumnsWrapper, {
|
|
2146
|
-
__self: undefined,
|
|
2147
|
-
__source: {
|
|
2148
|
-
fileName: _jsxFileName$2,
|
|
2149
|
-
lineNumber: 27
|
|
2150
|
-
}
|
|
2151
|
-
}, React$2.createElement(ColumnsHeader, {
|
|
2152
|
-
__self: undefined,
|
|
2153
|
-
__source: {
|
|
2154
|
-
fileName: _jsxFileName$2,
|
|
2155
|
-
lineNumber: 28
|
|
2156
|
-
}
|
|
2157
|
-
}, "Matrix Type"), React$2.createElement(Flex, {
|
|
2158
|
-
__self: undefined,
|
|
2159
|
-
__source: {
|
|
2160
|
-
fileName: _jsxFileName$2,
|
|
2161
|
-
lineNumber: 32
|
|
2162
|
-
}
|
|
2163
|
-
}, React$2.createElement(RadioGroup, {
|
|
2164
|
-
'aria-label': "matrixLabelType",
|
|
2165
|
-
name: "matrixLabelType",
|
|
2166
|
-
value: model.labelType,
|
|
2167
|
-
onChange: onChangeLabelType,
|
|
2168
|
-
__self: undefined,
|
|
2169
|
-
__source: {
|
|
2170
|
-
fileName: _jsxFileName$2,
|
|
2171
|
-
lineNumber: 33
|
|
2172
|
-
}
|
|
2173
|
-
}, React$2.createElement(FormControlLabel, {
|
|
2174
|
-
disabled: !isMatrixTypeSelectionEnabled,
|
|
2175
|
-
value: MATRIX_LABEL_TYPE.agreement,
|
|
2176
|
-
control: React$2.createElement(Radio, {
|
|
2177
|
-
__self: undefined,
|
|
2178
|
-
__source: {
|
|
2179
|
-
fileName: _jsxFileName$2,
|
|
2180
|
-
lineNumber: 41
|
|
2181
|
-
}
|
|
2182
|
-
}),
|
|
2183
|
-
label: "Agreement",
|
|
2184
|
-
__self: undefined,
|
|
2185
|
-
__source: {
|
|
2186
|
-
fileName: _jsxFileName$2,
|
|
2187
|
-
lineNumber: 38
|
|
2188
|
-
}
|
|
2189
|
-
}), React$2.createElement(FormControlLabel, {
|
|
2190
|
-
disabled: !isMatrixTypeSelectionEnabled,
|
|
2191
|
-
value: MATRIX_LABEL_TYPE.frequency,
|
|
2192
|
-
control: React$2.createElement(Radio, {
|
|
2193
|
-
__self: undefined,
|
|
2194
|
-
__source: {
|
|
2195
|
-
fileName: _jsxFileName$2,
|
|
2196
|
-
lineNumber: 45
|
|
2197
|
-
}
|
|
2198
|
-
}),
|
|
2199
|
-
label: "Frequency",
|
|
2200
|
-
__self: undefined,
|
|
2201
|
-
__source: {
|
|
2202
|
-
fileName: _jsxFileName$2,
|
|
2203
|
-
lineNumber: 42
|
|
2204
|
-
}
|
|
2205
|
-
}), React$2.createElement(FormControlLabel, {
|
|
2206
|
-
disabled: !isMatrixTypeSelectionEnabled,
|
|
2207
|
-
value: MATRIX_LABEL_TYPE.yesNo,
|
|
2208
|
-
control: React$2.createElement(Radio, {
|
|
2209
|
-
__self: undefined,
|
|
2210
|
-
__source: {
|
|
2211
|
-
fileName: _jsxFileName$2,
|
|
2212
|
-
lineNumber: 50
|
|
2213
|
-
}
|
|
2214
|
-
}),
|
|
2215
|
-
label: "Yes/No",
|
|
2216
|
-
__self: undefined,
|
|
2217
|
-
__source: {
|
|
2218
|
-
fileName: _jsxFileName$2,
|
|
2219
|
-
lineNumber: 47
|
|
2220
|
-
}
|
|
2221
|
-
})), React$2.createElement(RadioGroup, {
|
|
2222
|
-
'aria-label': "matrixLabelType",
|
|
2223
|
-
name: "matrixLabelType",
|
|
2224
|
-
value: model.labelType,
|
|
2225
|
-
onChange: onChangeLabelType,
|
|
2226
|
-
__self: undefined,
|
|
2227
|
-
__source: {
|
|
2228
|
-
fileName: _jsxFileName$2,
|
|
2229
|
-
lineNumber: 54
|
|
2230
|
-
}
|
|
2231
|
-
}, React$2.createElement(FormControlLabel, {
|
|
2232
|
-
disabled: !isMatrixTypeSelectionEnabled,
|
|
2233
|
-
value: MATRIX_LABEL_TYPE.importance,
|
|
2234
|
-
control: React$2.createElement(Radio, {
|
|
2235
|
-
__self: undefined,
|
|
2236
|
-
__source: {
|
|
2237
|
-
fileName: _jsxFileName$2,
|
|
2238
|
-
lineNumber: 62
|
|
2239
|
-
}
|
|
2240
|
-
}),
|
|
2241
|
-
label: "Importance",
|
|
2242
|
-
__self: undefined,
|
|
2243
|
-
__source: {
|
|
2244
|
-
fileName: _jsxFileName$2,
|
|
2245
|
-
lineNumber: 59
|
|
2246
|
-
}
|
|
2247
|
-
}), React$2.createElement(FormControlLabel, {
|
|
2248
|
-
disabled: !isMatrixTypeSelectionEnabled,
|
|
2249
|
-
value: MATRIX_LABEL_TYPE.likelihood,
|
|
2250
|
-
control: React$2.createElement(Radio, {
|
|
2251
|
-
__self: undefined,
|
|
2252
|
-
__source: {
|
|
2253
|
-
fileName: _jsxFileName$2,
|
|
2254
|
-
lineNumber: 67
|
|
2255
|
-
}
|
|
2256
|
-
}),
|
|
2257
|
-
label: "Likelihood",
|
|
2258
|
-
__self: undefined,
|
|
2259
|
-
__source: {
|
|
2260
|
-
fileName: _jsxFileName$2,
|
|
2261
|
-
lineNumber: 64
|
|
2262
|
-
}
|
|
2263
|
-
}), React$2.createElement(FormControlLabel, {
|
|
2264
|
-
disabled: !isMatrixTypeSelectionEnabled,
|
|
2265
|
-
value: MATRIX_LABEL_TYPE.like,
|
|
2266
|
-
control: React$2.createElement(Radio, {
|
|
2267
|
-
__self: undefined,
|
|
2268
|
-
__source: {
|
|
2269
|
-
fileName: _jsxFileName$2,
|
|
2270
|
-
lineNumber: 72
|
|
2271
|
-
}
|
|
2272
|
-
}),
|
|
2273
|
-
label: "Like",
|
|
2274
|
-
__self: undefined,
|
|
2275
|
-
__source: {
|
|
2276
|
-
fileName: _jsxFileName$2,
|
|
2277
|
-
lineNumber: 69
|
|
2278
|
-
}
|
|
2279
|
-
})), React$2.createElement(RadioGroup, {
|
|
2280
|
-
'aria-label': "matrixLabelType",
|
|
2281
|
-
name: "matrixLabelType",
|
|
2282
|
-
value: model.labelType,
|
|
2283
|
-
onChange: onChangeLabelType,
|
|
2284
|
-
__self: undefined,
|
|
2285
|
-
__source: {
|
|
2286
|
-
fileName: _jsxFileName$2,
|
|
2287
|
-
lineNumber: 76
|
|
2288
|
-
}
|
|
2289
|
-
}, React$2.createElement(FormControlLabel, {
|
|
2290
|
-
value: MATRIX_LABEL_TYPE.custom,
|
|
2291
|
-
control: React$2.createElement(Radio, {
|
|
2292
|
-
__self: undefined,
|
|
2293
|
-
__source: {
|
|
2294
|
-
fileName: _jsxFileName$2,
|
|
2295
|
-
lineNumber: 81
|
|
2296
|
-
}
|
|
2297
|
-
}),
|
|
2298
|
-
label: "Custom",
|
|
2299
|
-
__self: undefined,
|
|
2300
|
-
__source: {
|
|
2301
|
-
fileName: _jsxFileName$2,
|
|
2302
|
-
lineNumber: 81
|
|
2303
|
-
}
|
|
2304
|
-
}))));
|
|
2305
|
-
};
|
|
2306
|
-
MatrixLabelTypeHeaderInput.propTypes = {
|
|
2307
|
-
model: PropTypes$2.object.isRequired,
|
|
2308
|
-
onChangeModel: PropTypes$2.func.isRequired
|
|
2309
|
-
};
|
|
2310
|
-
const require$$0$3 = _dll_react;
|
|
2311
|
-
var KeyboardArrowDown = createCommonjsModule(function (module, exports) {
|
|
2312
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2313
|
-
value: true
|
|
2314
|
-
});
|
|
2315
|
-
exports.default = void 0;
|
|
2316
|
-
var _react = interopRequireDefault(require$$0$3);
|
|
2317
|
-
var _createSvgIcon = interopRequireDefault(createSvgIcon_1);
|
|
2318
|
-
var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("path", {
|
|
2319
|
-
d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
|
|
2320
|
-
}), _react.default.createElement("path", {
|
|
2321
|
-
fill: "none",
|
|
2322
|
-
d: "M0 0h24v24H0V0z"
|
|
2323
|
-
})), 'KeyboardArrowDown');
|
|
2324
|
-
exports.default = _default;
|
|
2325
|
-
});
|
|
2326
|
-
var KeyboardArrowDownIcon = unwrapExports(KeyboardArrowDown);
|
|
2327
|
-
const React$3 = _dll_react;
|
|
2328
|
-
const PropTypes$3 = _dll_prop_types;
|
|
2329
|
-
const {withStyles: withStyles} = _dll_material_ui__core_styles;
|
|
2330
|
-
const {TextField: TextField} = _dll_material_ui__core;
|
|
2331
|
-
const _jsxFileName$3 = "/home/ede/dev/github/pie-framework/pie-elements/packages/matrix/configure/src/NumberInput.js";
|
|
2332
|
-
const InputWrapper = qe.div`
|
|
2333
|
-
width: 100%;
|
|
2334
|
-
height: 100%;
|
|
2335
|
-
input[type='number'] {
|
|
2336
|
-
-moz-appearance:textfield;
|
|
2337
|
-
}
|
|
2338
|
-
|
|
2339
|
-
input::-webkit-outer-spin-button,
|
|
2340
|
-
input::-webkit-inner-spin-button {
|
|
2341
|
-
-webkit-appearance: none;
|
|
2342
|
-
}
|
|
2343
|
-
`;
|
|
2344
|
-
const styles = {
|
|
2345
|
-
InputPropsClass: {
|
|
2346
|
-
fontSize: '16px',
|
|
2347
|
-
textAlign: 'center!important',
|
|
2348
|
-
padding: '0!important',
|
|
2349
|
-
margin: '5px 0',
|
|
2350
|
-
'&$cssFocused $notchedOutline': {
|
|
2351
|
-
borderColor: 'green !important',
|
|
2352
|
-
borderWidth: '1px !important'
|
|
2353
|
-
},
|
|
2354
|
-
'&:hover $notchedOutline': {
|
|
2355
|
-
borderColor: 'gray !important'
|
|
2356
|
-
}
|
|
2357
|
-
},
|
|
2358
|
-
inputPropsClass: {
|
|
2359
|
-
fontSize: '16px',
|
|
2360
|
-
textAlign: 'center',
|
|
2361
|
-
padding: '0',
|
|
2362
|
-
margin: '5px 0'
|
|
2363
|
-
},
|
|
2364
|
-
cssFocused: {},
|
|
2365
|
-
notchedOutline: {
|
|
2366
|
-
borderWidth: '1px !important',
|
|
2367
|
-
borderColor: '#d6d6d6 !important'
|
|
2368
|
-
}
|
|
2369
|
-
};
|
|
2370
|
-
const NumericInput = withStyles(styles)(props => {
|
|
2371
|
-
const {classes, onFieldUpdate, name, placeholder, fieldValue} = props;
|
|
2372
|
-
const onFieldUpdateWrapper = e => {
|
|
2373
|
-
onFieldUpdate(e.target.value);
|
|
2374
|
-
};
|
|
2375
|
-
return React$3.createElement(InputWrapper, {
|
|
2376
|
-
__self: undefined,
|
|
2377
|
-
__source: {
|
|
2378
|
-
fileName: _jsxFileName$3,
|
|
2379
|
-
lineNumber: 62
|
|
2380
|
-
}
|
|
2381
|
-
}, React$3.createElement(TextField, {
|
|
2382
|
-
name: name,
|
|
2383
|
-
value: fieldValue.value,
|
|
2384
|
-
inputProps: {
|
|
2385
|
-
className: classes.inputPropsClass
|
|
2386
|
-
},
|
|
2387
|
-
InputProps: {
|
|
2388
|
-
classes: {
|
|
2389
|
-
root: classes.InputPropsClass,
|
|
2390
|
-
focused: classes.cssFocused,
|
|
2391
|
-
notchedOutline: classes.notchedOutline
|
|
2392
|
-
}
|
|
2393
|
-
},
|
|
2394
|
-
inputRef: fieldValue.ref,
|
|
2395
|
-
type: "number",
|
|
2396
|
-
placeholder: placeholder,
|
|
2397
|
-
onChange: onFieldUpdateWrapper,
|
|
2398
|
-
variant: "outlined",
|
|
2399
|
-
__self: undefined,
|
|
2400
|
-
__source: {
|
|
2401
|
-
fileName: _jsxFileName$3,
|
|
2402
|
-
lineNumber: 63
|
|
2403
|
-
}
|
|
2404
|
-
}));
|
|
2405
|
-
});
|
|
2406
|
-
NumericInput.propTypes = {
|
|
2407
|
-
name: PropTypes$3.string.isRequired,
|
|
2408
|
-
placeholder: PropTypes$3.string.isRequired,
|
|
2409
|
-
fieldValue: PropTypes$3.object.isRequired,
|
|
2410
|
-
classes: PropTypes$3.object,
|
|
2411
|
-
onFieldUpdate: PropTypes$3.func.isRequired
|
|
2412
|
-
};
|
|
2413
|
-
var isNumeric = value => {
|
|
2414
|
-
return (/^-?\d+$/).test(value);
|
|
2415
|
-
};
|
|
2416
|
-
const React$4 = _dll_react;
|
|
2417
|
-
const {useState: useState} = _dll_react;
|
|
2418
|
-
const {Menu: Menu} = _dll_material_ui__core;
|
|
2419
|
-
const {MenuItem: MenuItem} = _dll_material_ui__core;
|
|
2420
|
-
const PropTypes$4 = _dll_prop_types;
|
|
2421
|
-
const _jsxFileName$4 = "/home/ede/dev/github/pie-framework/pie-elements/packages/matrix/configure/src/MatrixLabelEditableButton.js";
|
|
2422
|
-
const MatrixEditableButtonWrapper = qe.div`
|
|
2423
|
-
width: 100%;
|
|
2424
|
-
height: 50px;
|
|
2425
|
-
margin: 1px;
|
|
2426
|
-
background: #04b26e;
|
|
2427
|
-
border-radius: 5px;
|
|
2428
|
-
color: white;
|
|
2429
|
-
font-size: 14px;
|
|
2430
|
-
white-space: nowrap;
|
|
2431
|
-
display: flex;
|
|
2432
|
-
align-items: center;
|
|
2433
|
-
justify-content: space-between;
|
|
2434
|
-
`;
|
|
2435
|
-
const MatrixEditableButtonContent = qe.div`
|
|
2436
|
-
padding: 0 5px 0 12px;
|
|
2437
|
-
width: 100%;
|
|
2438
|
-
display: flex;
|
|
2439
|
-
align-items: center;
|
|
2440
|
-
overflow: hidden;
|
|
2441
|
-
`;
|
|
2442
|
-
const MatrixEditableButtonText = qe.p`
|
|
2443
|
-
margin: 0;
|
|
2444
|
-
padding: 3px 0 3px 4px;
|
|
2445
|
-
cursor: pointer;
|
|
2446
|
-
width: 100%;
|
|
2447
|
-
|
|
2448
|
-
white-space: nowrap;
|
|
2449
|
-
overflow: hidden;
|
|
2450
|
-
text-overflow: ellipsis;
|
|
2451
|
-
|
|
2452
|
-
:hover {
|
|
2453
|
-
background: #00985d;
|
|
2454
|
-
}
|
|
2455
|
-
|
|
2456
|
-
transition: all 0.1s ease-in-out;
|
|
2457
|
-
`;
|
|
2458
|
-
const MatrixEditableButtonActions = qe.div`
|
|
2459
|
-
padding: 0 3px;
|
|
2460
|
-
height: 100%;
|
|
2461
|
-
cursor: pointer;
|
|
2462
|
-
display: flex;
|
|
2463
|
-
align-items: center;
|
|
2464
|
-
border-left: 3px solid #00985d;
|
|
2465
|
-
:hover {
|
|
2466
|
-
background: #00985d;
|
|
2467
|
-
border-top-right-radius: 5px;
|
|
2468
|
-
border-bottom-right-radius: 5px;
|
|
2469
|
-
}
|
|
2470
|
-
transition: all 0.1s ease-in-out;
|
|
2471
|
-
`;
|
|
2472
|
-
const IconWrapper$1 = qe.div`
|
|
2473
|
-
font-size: 18px;
|
|
2474
|
-
`;
|
|
2475
|
-
const InputWrapper$1 = qe.input`
|
|
2476
|
-
margin: 0;
|
|
2477
|
-
padding: 0 0 0 4px;
|
|
2478
|
-
font-size: 14px;
|
|
2479
|
-
border: none;
|
|
2480
|
-
outline: none;
|
|
2481
|
-
color: white;
|
|
2482
|
-
width: 50px;
|
|
2483
|
-
width: 100%;
|
|
2484
|
-
background: #00985d;
|
|
2485
|
-
height: 22px;
|
|
2486
|
-
display: flex;
|
|
2487
|
-
align-items: center;
|
|
2488
|
-
`;
|
|
2489
|
-
const SetScoresToWrapper = qe.div`
|
|
2490
|
-
display: flex;
|
|
2491
|
-
align-items: center;
|
|
2492
|
-
`;
|
|
2493
|
-
const SetScoresToInputWrapper = qe.div`
|
|
2494
|
-
width: 50px;
|
|
2495
|
-
margin-left: 10px;
|
|
2496
|
-
`;
|
|
2497
|
-
const ACTION_TYPE = {
|
|
2498
|
-
clear: 'clear',
|
|
2499
|
-
sortAscending: 'sortAscending',
|
|
2500
|
-
sortDescending: 'sortDescending',
|
|
2501
|
-
set: 'set'
|
|
2502
|
-
};
|
|
2503
|
-
const MatrixLabelEditableButton = props => {
|
|
2504
|
-
const {onLabelUpdate, value, resourceIndex, onAction} = props;
|
|
2505
|
-
const [labelValue, setLabelValue] = useState(null);
|
|
2506
|
-
const [scoreValue, setScoreValue] = useState('');
|
|
2507
|
-
const [showInput, setShowInput] = useState(false);
|
|
2508
|
-
const [anchorEl, setAnchorEl] = React$4.useState(null);
|
|
2509
|
-
const [scoresToRef, setScoresToRef] = React$4.useState(React$4.createRef());
|
|
2510
|
-
const open = Boolean(anchorEl);
|
|
2511
|
-
const onActionClick = event => {
|
|
2512
|
-
setAnchorEl(event.currentTarget);
|
|
2513
|
-
};
|
|
2514
|
-
const handleClose = e => {
|
|
2515
|
-
e.stopPropagation();
|
|
2516
|
-
setAnchorEl(null);
|
|
2517
|
-
setScoreValue('');
|
|
2518
|
-
};
|
|
2519
|
-
const onClearScores = e => {
|
|
2520
|
-
handleClose(e);
|
|
2521
|
-
onAction({
|
|
2522
|
-
resourceIndex,
|
|
2523
|
-
actionType: ACTION_TYPE.clear
|
|
2524
|
-
});
|
|
2525
|
-
};
|
|
2526
|
-
const onSetScoresAscending = e => {
|
|
2527
|
-
handleClose(e);
|
|
2528
|
-
onAction({
|
|
2529
|
-
resourceIndex,
|
|
2530
|
-
actionType: ACTION_TYPE.sortAscending
|
|
2531
|
-
});
|
|
2532
|
-
};
|
|
2533
|
-
const onSetScoresDescending = e => {
|
|
2534
|
-
handleClose(e);
|
|
2535
|
-
onAction({
|
|
2536
|
-
resourceIndex,
|
|
2537
|
-
actionType: ACTION_TYPE.sortDescending
|
|
2538
|
-
});
|
|
2539
|
-
};
|
|
2540
|
-
const onSetScores = value => {
|
|
2541
|
-
if (!isNumeric(value)) {
|
|
2542
|
-
setScoreValue('');
|
|
2543
|
-
return;
|
|
2544
|
-
}
|
|
2545
|
-
const scoreValueNew = parseInt(value, 10);
|
|
2546
|
-
setScoreValue(scoreValueNew);
|
|
2547
|
-
onAction({
|
|
2548
|
-
resourceIndex,
|
|
2549
|
-
actionType: ACTION_TYPE.set,
|
|
2550
|
-
setValue: scoreValueNew
|
|
2551
|
-
});
|
|
2552
|
-
};
|
|
2553
|
-
const onBlur = () => {
|
|
2554
|
-
const labeValueTrimmed = labelValue.trim();
|
|
2555
|
-
if (labeValueTrimmed) {
|
|
2556
|
-
onLabelUpdate(labeValueTrimmed);
|
|
2557
|
-
}
|
|
2558
|
-
setLabelValue(null);
|
|
2559
|
-
setShowInput(false);
|
|
2560
|
-
};
|
|
2561
|
-
const onShowInput = () => {
|
|
2562
|
-
setShowInput(true);
|
|
2563
|
-
setLabelValue(value);
|
|
2564
|
-
};
|
|
2565
|
-
const onSetScoreToFocus = () => {
|
|
2566
|
-
scoresToRef.current.focus();
|
|
2567
|
-
};
|
|
2568
|
-
return React$4.createElement(MatrixEditableButtonWrapper, {
|
|
2569
|
-
__self: undefined,
|
|
2570
|
-
__source: {
|
|
2571
|
-
fileName: _jsxFileName$4,
|
|
2572
|
-
lineNumber: 165
|
|
2573
|
-
}
|
|
2574
|
-
}, React$4.createElement(MatrixEditableButtonContent, {
|
|
2575
|
-
__self: undefined,
|
|
2576
|
-
__source: {
|
|
2577
|
-
fileName: _jsxFileName$4,
|
|
2578
|
-
lineNumber: 166
|
|
2579
|
-
}
|
|
2580
|
-
}, showInput ? React$4.createElement(InputWrapper$1, {
|
|
2581
|
-
autoFocus: true,
|
|
2582
|
-
value: labelValue,
|
|
2583
|
-
onChange: e => setLabelValue(e.target.value),
|
|
2584
|
-
onBlur: onBlur,
|
|
2585
|
-
__self: undefined,
|
|
2586
|
-
__source: {
|
|
2587
|
-
fileName: _jsxFileName$4,
|
|
2588
|
-
lineNumber: 169
|
|
2589
|
-
}
|
|
2590
|
-
}) : React$4.createElement(MatrixEditableButtonText, {
|
|
2591
|
-
onClick: onShowInput,
|
|
2592
|
-
__self: undefined,
|
|
2593
|
-
__source: {
|
|
2594
|
-
fileName: _jsxFileName$4,
|
|
2595
|
-
lineNumber: 177
|
|
2596
|
-
}
|
|
2597
|
-
}, value)), React$4.createElement(MatrixEditableButtonActions, {
|
|
2598
|
-
onClick: onActionClick,
|
|
2599
|
-
__self: undefined,
|
|
2600
|
-
__source: {
|
|
2601
|
-
fileName: _jsxFileName$4,
|
|
2602
|
-
lineNumber: 184
|
|
2603
|
-
}
|
|
2604
|
-
}, React$4.createElement(IconWrapper$1, {
|
|
2605
|
-
__self: undefined,
|
|
2606
|
-
__source: {
|
|
2607
|
-
fileName: _jsxFileName$4,
|
|
2608
|
-
lineNumber: 185
|
|
2609
|
-
}
|
|
2610
|
-
}, React$4.createElement(KeyboardArrowDownIcon, {
|
|
2611
|
-
fontSize: "inherit",
|
|
2612
|
-
__self: undefined,
|
|
2613
|
-
__source: {
|
|
2614
|
-
fileName: _jsxFileName$4,
|
|
2615
|
-
lineNumber: 186
|
|
2616
|
-
}
|
|
2617
|
-
})), React$4.createElement(Menu, {
|
|
2618
|
-
anchorEl: anchorEl,
|
|
2619
|
-
open: open,
|
|
2620
|
-
onClose: handleClose,
|
|
2621
|
-
__self: undefined,
|
|
2622
|
-
__source: {
|
|
2623
|
-
fileName: _jsxFileName$4,
|
|
2624
|
-
lineNumber: 188
|
|
2625
|
-
}
|
|
2626
|
-
}, React$4.createElement(MenuItem, {
|
|
2627
|
-
key: "item1",
|
|
2628
|
-
selected: false,
|
|
2629
|
-
onClick: onClearScores,
|
|
2630
|
-
__self: undefined,
|
|
2631
|
-
__source: {
|
|
2632
|
-
fileName: _jsxFileName$4,
|
|
2633
|
-
lineNumber: 193
|
|
2634
|
-
}
|
|
2635
|
-
}, "Clear Scores"), React$4.createElement(MenuItem, {
|
|
2636
|
-
key: "item2",
|
|
2637
|
-
selected: false,
|
|
2638
|
-
onClick: onSetScoresAscending,
|
|
2639
|
-
__self: undefined,
|
|
2640
|
-
__source: {
|
|
2641
|
-
fileName: _jsxFileName$4,
|
|
2642
|
-
lineNumber: 196
|
|
2643
|
-
}
|
|
2644
|
-
}, "Set Scores Ascending"), React$4.createElement(MenuItem, {
|
|
2645
|
-
key: "item3",
|
|
2646
|
-
selected: false,
|
|
2647
|
-
onClick: onSetScoresDescending,
|
|
2648
|
-
__self: undefined,
|
|
2649
|
-
__source: {
|
|
2650
|
-
fileName: _jsxFileName$4,
|
|
2651
|
-
lineNumber: 199
|
|
2652
|
-
}
|
|
2653
|
-
}, "Set Scores Descending"), React$4.createElement(MenuItem, {
|
|
2654
|
-
key: "item4",
|
|
2655
|
-
selected: false,
|
|
2656
|
-
__self: undefined,
|
|
2657
|
-
__source: {
|
|
2658
|
-
fileName: _jsxFileName$4,
|
|
2659
|
-
lineNumber: 202
|
|
2660
|
-
}
|
|
2661
|
-
}, React$4.createElement(SetScoresToWrapper, {
|
|
2662
|
-
__self: undefined,
|
|
2663
|
-
__source: {
|
|
2664
|
-
fileName: _jsxFileName$4,
|
|
2665
|
-
lineNumber: 203
|
|
2666
|
-
}
|
|
2667
|
-
}, React$4.createElement('p', {
|
|
2668
|
-
onClick: onSetScoreToFocus,
|
|
2669
|
-
__self: undefined,
|
|
2670
|
-
__source: {
|
|
2671
|
-
fileName: _jsxFileName$4,
|
|
2672
|
-
lineNumber: 204
|
|
2673
|
-
}
|
|
2674
|
-
}, "Set Scores To"), React$4.createElement(SetScoresToInputWrapper, {
|
|
2675
|
-
__self: undefined,
|
|
2676
|
-
__source: {
|
|
2677
|
-
fileName: _jsxFileName$4,
|
|
2678
|
-
lineNumber: 207
|
|
2679
|
-
}
|
|
2680
|
-
}, React$4.createElement(NumericInput, {
|
|
2681
|
-
onFieldUpdate: onSetScores,
|
|
2682
|
-
name: 'setScoreTo',
|
|
2683
|
-
placeholder: "#",
|
|
2684
|
-
fieldValue: {
|
|
2685
|
-
value: scoreValue,
|
|
2686
|
-
ref: scoresToRef
|
|
2687
|
-
},
|
|
2688
|
-
__self: undefined,
|
|
2689
|
-
__source: {
|
|
2690
|
-
fileName: _jsxFileName$4,
|
|
2691
|
-
lineNumber: 208
|
|
2692
|
-
}
|
|
2693
|
-
})))))));
|
|
2694
|
-
};
|
|
2695
|
-
MatrixLabelEditableButton.propTypes = {
|
|
2696
|
-
value: PropTypes$4.string.isRequired,
|
|
2697
|
-
resourceIndex: PropTypes$4.number.isRequired,
|
|
2698
|
-
onLabelUpdate: PropTypes$4.func.isRequired,
|
|
2699
|
-
onAction: PropTypes$4.func.isRequired
|
|
2700
|
-
};
|
|
2701
|
-
const React$5 = _dll_react;
|
|
2702
|
-
const PropTypes$5 = _dll_prop_types;
|
|
2703
|
-
const _jsxFileName$5 = "/home/ede/dev/github/pie-framework/pie-elements/packages/matrix/configure/src/MatrixValues.js";
|
|
2704
|
-
const columnWidth = '120px';
|
|
2705
|
-
const ScoringContainer = qe.div`
|
|
2706
|
-
display: grid;
|
|
2707
|
-
grid-template-columns: min-content min-content auto;
|
|
2708
|
-
`;
|
|
2709
|
-
const MatrixColumns = qe.div`
|
|
2710
|
-
display: flex;
|
|
2711
|
-
justify-content: space-between;
|
|
2712
|
-
padding: 5px;
|
|
2713
|
-
`;
|
|
2714
|
-
const ColumnLabelWrapper = qe.div`
|
|
2715
|
-
width: ${columnWidth};
|
|
2716
|
-
display: flex;
|
|
2717
|
-
align-items: center;
|
|
2718
|
-
justify-content: center;
|
|
2719
|
-
`;
|
|
2720
|
-
const RowLabelWrapper = qe.div`
|
|
2721
|
-
width: 200px;
|
|
2722
|
-
display: flex;
|
|
2723
|
-
align-items: center;
|
|
2724
|
-
justify-content: center;
|
|
2725
|
-
`;
|
|
2726
|
-
const ValueRowWrapper = qe.div`
|
|
2727
|
-
display: flex;
|
|
2728
|
-
justify-content: space-between;
|
|
2729
|
-
`;
|
|
2730
|
-
const ValueItemWrapper = qe.div`
|
|
2731
|
-
width: ${columnWidth};
|
|
2732
|
-
height: 50px;
|
|
2733
|
-
margin: 1px;
|
|
2734
|
-
display: flex;
|
|
2735
|
-
align-items: center;
|
|
2736
|
-
justify-content: center;
|
|
2737
|
-
`;
|
|
2738
|
-
const ScoringRows = qe.div`
|
|
2739
|
-
display: flex;
|
|
2740
|
-
flex-direction: column;
|
|
2741
|
-
justify-content: space-between;
|
|
2742
|
-
padding: 5px;
|
|
2743
|
-
`;
|
|
2744
|
-
const ScoringNumberInputWrapper = qe.div`
|
|
2745
|
-
width: 60px;
|
|
2746
|
-
justify-self: center;
|
|
2747
|
-
align-self: center;
|
|
2748
|
-
`;
|
|
2749
|
-
const GridSeparatorHorizontal = qe.div`
|
|
2750
|
-
background: gray;
|
|
2751
|
-
width: 100%;
|
|
2752
|
-
height: 1px;
|
|
2753
|
-
`;
|
|
2754
|
-
const GridSeparatorVertical = qe.div`
|
|
2755
|
-
background: gray;
|
|
2756
|
-
width: 1px;
|
|
2757
|
-
height: 100%;
|
|
2758
|
-
`;
|
|
2759
|
-
const Content = qe.div`
|
|
2760
|
-
padding: 5px;
|
|
2761
|
-
`;
|
|
2762
|
-
const MatrixValues = props => {
|
|
2763
|
-
const {model, onChangeModel} = props;
|
|
2764
|
-
const {rowLabels, columnLabels, matrixValues} = model;
|
|
2765
|
-
const onSetMatrixValue = (matrixValueIndex, value) => {
|
|
2766
|
-
const matrixValuesClone = {
|
|
2767
|
-
...matrixValues
|
|
2768
|
-
};
|
|
2769
|
-
if (isNumeric(value)) {
|
|
2770
|
-
matrixValuesClone[matrixValueIndex] = parseInt(value, 10);
|
|
2771
|
-
} else {
|
|
2772
|
-
delete matrixValuesClone[matrixValueIndex];
|
|
2773
|
-
}
|
|
2774
|
-
onChangeModel({
|
|
2775
|
-
...model,
|
|
2776
|
-
matrixValues: matrixValuesClone
|
|
2777
|
-
});
|
|
2778
|
-
};
|
|
2779
|
-
const onSetColumnLabel = (index, labelValue) => {
|
|
2780
|
-
const columnLabelsClone = [...columnLabels];
|
|
2781
|
-
columnLabelsClone[index] = labelValue;
|
|
2782
|
-
onChangeModel({
|
|
2783
|
-
...model,
|
|
2784
|
-
columnLabels: columnLabelsClone
|
|
2785
|
-
});
|
|
2786
|
-
};
|
|
2787
|
-
const onSetRowLabel = (index, labelValue) => {
|
|
2788
|
-
const rowLabelsClone = [...rowLabels];
|
|
2789
|
-
rowLabelsClone[index] = labelValue;
|
|
2790
|
-
onChangeModel({
|
|
2791
|
-
...model,
|
|
2792
|
-
rowLabels: rowLabelsClone
|
|
2793
|
-
});
|
|
2794
|
-
};
|
|
2795
|
-
const onActionByColumn = ({resourceIndex, actionType, setValue}) => {
|
|
2796
|
-
const columnLabelIndex = resourceIndex;
|
|
2797
|
-
const matrixValuesClone = {
|
|
2798
|
-
...matrixValues
|
|
2799
|
-
};
|
|
2800
|
-
rowLabels.forEach((rowLabel, rowLabelIndex) => {
|
|
2801
|
-
switch (actionType) {
|
|
2802
|
-
case ACTION_TYPE.clear:
|
|
2803
|
-
delete matrixValuesClone[`${rowLabelIndex}-${columnLabelIndex}`];
|
|
2804
|
-
break;
|
|
2805
|
-
case ACTION_TYPE.sortAscending:
|
|
2806
|
-
matrixValuesClone[`${rowLabelIndex}-${columnLabelIndex}`] = rowLabelIndex + 1;
|
|
2807
|
-
break;
|
|
2808
|
-
case ACTION_TYPE.sortDescending:
|
|
2809
|
-
matrixValuesClone[`${rowLabelIndex}-${columnLabelIndex}`] = rowLabels.length - rowLabelIndex;
|
|
2810
|
-
break;
|
|
2811
|
-
case ACTION_TYPE.set:
|
|
2812
|
-
matrixValuesClone[`${rowLabelIndex}-${columnLabelIndex}`] = setValue;
|
|
2813
|
-
break;
|
|
2814
|
-
default:
|
|
2815
|
-
throw 'Incorrect actionType';
|
|
2816
|
-
}
|
|
2817
|
-
});
|
|
2818
|
-
onChangeModel({
|
|
2819
|
-
...model,
|
|
2820
|
-
matrixValues: matrixValuesClone
|
|
2821
|
-
});
|
|
2822
|
-
};
|
|
2823
|
-
const onActionByRow = ({resourceIndex, actionType, setValue}) => {
|
|
2824
|
-
const rowLabelIndex = resourceIndex;
|
|
2825
|
-
const matrixValuesClone = {
|
|
2826
|
-
...matrixValues
|
|
2827
|
-
};
|
|
2828
|
-
columnLabels.forEach((columnLabel, columnLabelIndex) => {
|
|
2829
|
-
switch (actionType) {
|
|
2830
|
-
case ACTION_TYPE.clear:
|
|
2831
|
-
delete matrixValuesClone[`${rowLabelIndex}-${columnLabelIndex}`];
|
|
2832
|
-
break;
|
|
2833
|
-
case ACTION_TYPE.sortAscending:
|
|
2834
|
-
matrixValuesClone[`${rowLabelIndex}-${columnLabelIndex}`] = rowLabelIndex + 1;
|
|
2835
|
-
break;
|
|
2836
|
-
case ACTION_TYPE.sortDescending:
|
|
2837
|
-
matrixValuesClone[`${rowLabelIndex}-${columnLabelIndex}`] = rowLabels.length - rowLabelIndex;
|
|
2838
|
-
break;
|
|
2839
|
-
case ACTION_TYPE.set:
|
|
2840
|
-
matrixValuesClone[`${rowLabelIndex}-${columnLabelIndex}`] = setValue;
|
|
2841
|
-
break;
|
|
2842
|
-
default:
|
|
2843
|
-
throw 'Incorrect actionType';
|
|
2844
|
-
}
|
|
2845
|
-
});
|
|
2846
|
-
onChangeModel({
|
|
2847
|
-
...model,
|
|
2848
|
-
matrixValues: matrixValuesClone
|
|
2849
|
-
});
|
|
2850
|
-
};
|
|
2851
|
-
return React$5.createElement(ScoringContainer, {
|
|
2852
|
-
__self: undefined,
|
|
2853
|
-
__source: {
|
|
2854
|
-
fileName: _jsxFileName$5,
|
|
2855
|
-
lineNumber: 174
|
|
2856
|
-
}
|
|
2857
|
-
}, React$5.createElement('div', {
|
|
2858
|
-
__self: undefined,
|
|
2859
|
-
__source: {
|
|
2860
|
-
fileName: _jsxFileName$5,
|
|
2861
|
-
lineNumber: 175
|
|
2862
|
-
}
|
|
2863
|
-
}), React$5.createElement(GridSeparatorVertical, {
|
|
2864
|
-
__self: undefined,
|
|
2865
|
-
__source: {
|
|
2866
|
-
fileName: _jsxFileName$5,
|
|
2867
|
-
lineNumber: 176
|
|
2868
|
-
}
|
|
2869
|
-
}), React$5.createElement(MatrixColumns, {
|
|
2870
|
-
__self: undefined,
|
|
2871
|
-
__source: {
|
|
2872
|
-
fileName: _jsxFileName$5,
|
|
2873
|
-
lineNumber: 177
|
|
2874
|
-
}
|
|
2875
|
-
}, columnLabels.map((value, columnLabelIndex) => React$5.createElement(ColumnLabelWrapper, {
|
|
2876
|
-
key: columnLabelIndex,
|
|
2877
|
-
__self: undefined,
|
|
2878
|
-
__source: {
|
|
2879
|
-
fileName: _jsxFileName$5,
|
|
2880
|
-
lineNumber: 180
|
|
2881
|
-
}
|
|
2882
|
-
}, React$5.createElement(MatrixLabelEditableButton, {
|
|
2883
|
-
resourceIndex: columnLabelIndex,
|
|
2884
|
-
onAction: onActionByColumn,
|
|
2885
|
-
value: value,
|
|
2886
|
-
onLabelUpdate: labelValue => onSetColumnLabel(columnLabelIndex, labelValue),
|
|
2887
|
-
__self: undefined,
|
|
2888
|
-
__source: {
|
|
2889
|
-
fileName: _jsxFileName$5,
|
|
2890
|
-
lineNumber: 181
|
|
2891
|
-
}
|
|
2892
|
-
})))), React$5.createElement(GridSeparatorHorizontal, {
|
|
2893
|
-
__self: undefined,
|
|
2894
|
-
__source: {
|
|
2895
|
-
fileName: _jsxFileName$5,
|
|
2896
|
-
lineNumber: 191
|
|
2897
|
-
}
|
|
2898
|
-
}), React$5.createElement(GridSeparatorVertical, {
|
|
2899
|
-
__self: undefined,
|
|
2900
|
-
__source: {
|
|
2901
|
-
fileName: _jsxFileName$5,
|
|
2902
|
-
lineNumber: 192
|
|
2903
|
-
}
|
|
2904
|
-
}), React$5.createElement(GridSeparatorHorizontal, {
|
|
2905
|
-
__self: undefined,
|
|
2906
|
-
__source: {
|
|
2907
|
-
fileName: _jsxFileName$5,
|
|
2908
|
-
lineNumber: 193
|
|
2909
|
-
}
|
|
2910
|
-
}), React$5.createElement(ScoringRows, {
|
|
2911
|
-
__self: undefined,
|
|
2912
|
-
__source: {
|
|
2913
|
-
fileName: _jsxFileName$5,
|
|
2914
|
-
lineNumber: 194
|
|
2915
|
-
}
|
|
2916
|
-
}, rowLabels.map((value, rowLabelIndex) => React$5.createElement(RowLabelWrapper, {
|
|
2917
|
-
key: rowLabelIndex,
|
|
2918
|
-
__self: undefined,
|
|
2919
|
-
__source: {
|
|
2920
|
-
fileName: _jsxFileName$5,
|
|
2921
|
-
lineNumber: 197
|
|
2922
|
-
}
|
|
2923
|
-
}, React$5.createElement(MatrixLabelEditableButton, {
|
|
2924
|
-
resourceIndex: rowLabelIndex,
|
|
2925
|
-
onAction: onActionByRow,
|
|
2926
|
-
value: value,
|
|
2927
|
-
onLabelUpdate: labelValue => onSetRowLabel(rowLabelIndex, labelValue),
|
|
2928
|
-
__self: undefined,
|
|
2929
|
-
__source: {
|
|
2930
|
-
fileName: _jsxFileName$5,
|
|
2931
|
-
lineNumber: 198
|
|
2932
|
-
}
|
|
2933
|
-
})))), React$5.createElement(GridSeparatorVertical, {
|
|
2934
|
-
__self: undefined,
|
|
2935
|
-
__source: {
|
|
2936
|
-
fileName: _jsxFileName$5,
|
|
2937
|
-
lineNumber: 208
|
|
2938
|
-
}
|
|
2939
|
-
}), React$5.createElement(Content, {
|
|
2940
|
-
__self: undefined,
|
|
2941
|
-
__source: {
|
|
2942
|
-
fileName: _jsxFileName$5,
|
|
2943
|
-
lineNumber: 209
|
|
2944
|
-
}
|
|
2945
|
-
}, rowLabels.map((row, rowIndex) => {
|
|
2946
|
-
return React$5.createElement(ValueRowWrapper, {
|
|
2947
|
-
key: rowIndex,
|
|
2948
|
-
__self: undefined,
|
|
2949
|
-
__source: {
|
|
2950
|
-
fileName: _jsxFileName$5,
|
|
2951
|
-
lineNumber: 212
|
|
2952
|
-
}
|
|
2953
|
-
}, columnLabels.map((column, entryIndex) => {
|
|
2954
|
-
const matrixValueIndex = `${rowIndex}-${entryIndex}`;
|
|
2955
|
-
return React$5.createElement(ValueItemWrapper, {
|
|
2956
|
-
key: entryIndex,
|
|
2957
|
-
__self: undefined,
|
|
2958
|
-
__source: {
|
|
2959
|
-
fileName: _jsxFileName$5,
|
|
2960
|
-
lineNumber: 216
|
|
2961
|
-
}
|
|
2962
|
-
}, React$5.createElement(ScoringNumberInputWrapper, {
|
|
2963
|
-
__self: undefined,
|
|
2964
|
-
__source: {
|
|
2965
|
-
fileName: _jsxFileName$5,
|
|
2966
|
-
lineNumber: 217
|
|
2967
|
-
}
|
|
2968
|
-
}, React$5.createElement(NumericInput, {
|
|
2969
|
-
onFieldUpdate: e => onSetMatrixValue(matrixValueIndex, e),
|
|
2970
|
-
name: matrixValueIndex,
|
|
2971
|
-
placeholder: "#",
|
|
2972
|
-
fieldValue: {
|
|
2973
|
-
value: isNumeric(matrixValues[matrixValueIndex]) ? matrixValues[matrixValueIndex] : ''
|
|
2974
|
-
},
|
|
2975
|
-
__self: undefined,
|
|
2976
|
-
__source: {
|
|
2977
|
-
fileName: _jsxFileName$5,
|
|
2978
|
-
lineNumber: 218
|
|
2979
|
-
}
|
|
2980
|
-
})));
|
|
2981
|
-
}));
|
|
2982
|
-
})));
|
|
2983
|
-
};
|
|
2984
|
-
MatrixValues.propTypes = {
|
|
2985
|
-
model: PropTypes$5.object.isRequired,
|
|
2986
|
-
onChangeModel: PropTypes$5.func.isRequired
|
|
2987
|
-
};
|
|
2988
|
-
const React$6 = _dll_react;
|
|
2989
|
-
const PropTypes$6 = _dll_prop_types;
|
|
2990
|
-
const {withStyles: withStyles$1} = _dll_material_ui__core_styles;
|
|
2991
|
-
const EditableHtml = _dll_pie_lib__editable_html;
|
|
2992
|
-
const {InputContainer: InputContainer} = _dll_pie_lib__config_ui;
|
|
2993
|
-
const {settings: settings} = _dll_pie_lib__config_ui;
|
|
2994
|
-
const {layout: layout} = _dll_pie_lib__config_ui;
|
|
2995
|
-
const _jsxFileName$6 = "/home/ede/dev/github/pie-framework/pie-elements/packages/matrix/configure/src/Main.jsx";
|
|
2996
|
-
const {Panel, toggle, radio} = settings;
|
|
2997
|
-
const styles$1 = theme => ({
|
|
2998
|
-
promptHolder: {
|
|
2999
|
-
width: '100%',
|
|
3000
|
-
paddingBottom: theme.spacing.unit * 2,
|
|
3001
|
-
marginBottom: theme.spacing.unit * 2
|
|
3002
|
-
},
|
|
3003
|
-
prompt: {
|
|
3004
|
-
paddingTop: theme.spacing.unit * 2,
|
|
3005
|
-
width: '100%'
|
|
3006
|
-
},
|
|
3007
|
-
matrixHeaderOptionsHolder: {
|
|
3008
|
-
display: 'flex',
|
|
3009
|
-
width: '100%',
|
|
3010
|
-
padding: '20px 0',
|
|
3011
|
-
justifyContent: 'space-around'
|
|
3012
|
-
},
|
|
3013
|
-
design: {
|
|
3014
|
-
paddingTop: theme.spacing.unit * 3
|
|
3015
|
-
}
|
|
3016
|
-
});
|
|
3017
|
-
const Design = withStyles$1(styles$1)(props => {
|
|
3018
|
-
const {classes, model, configuration, onPromptChanged, imageSupport, onChangeModel, onConfigurationChanged, onTeacherInstructionsChanged} = props;
|
|
3019
|
-
const {prompt = {}, teacherInstructions = {}, scoringType = {}} = configuration || ({});
|
|
3020
|
-
const {teacherInstructionsEnabled} = model || ({});
|
|
3021
|
-
return React$6.createElement('div', {
|
|
3022
|
-
className: classes.design,
|
|
3023
|
-
__self: undefined,
|
|
3024
|
-
__source: {
|
|
3025
|
-
fileName: _jsxFileName$6,
|
|
3026
|
-
lineNumber: 60
|
|
3027
|
-
}
|
|
3028
|
-
}, React$6.createElement(layout.ConfigLayout, {
|
|
3029
|
-
settings: React$6.createElement(Panel, {
|
|
3030
|
-
model: model,
|
|
3031
|
-
onChangeModel: onChangeModel,
|
|
3032
|
-
configuration: configuration,
|
|
3033
|
-
onChangeConfiguration: onConfigurationChanged,
|
|
3034
|
-
groups: {
|
|
3035
|
-
Properties: {
|
|
3036
|
-
teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
|
|
3037
|
-
scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric'])
|
|
3038
|
-
}
|
|
3039
|
-
},
|
|
3040
|
-
__self: undefined,
|
|
3041
|
-
__source: {
|
|
3042
|
-
fileName: _jsxFileName$6,
|
|
3043
|
-
lineNumber: 63
|
|
3044
|
-
}
|
|
3045
|
-
}),
|
|
3046
|
-
__self: undefined,
|
|
3047
|
-
__source: {
|
|
3048
|
-
fileName: _jsxFileName$6,
|
|
3049
|
-
lineNumber: 61
|
|
3050
|
-
}
|
|
3051
|
-
}, React$6.createElement('div', {
|
|
3052
|
-
__self: undefined,
|
|
3053
|
-
__source: {
|
|
3054
|
-
fileName: _jsxFileName$6,
|
|
3055
|
-
lineNumber: 77
|
|
3056
|
-
}
|
|
3057
|
-
}, React$6.createElement('div', {
|
|
3058
|
-
className: classes.matrixHeaderOptionsHolder,
|
|
3059
|
-
__self: undefined,
|
|
3060
|
-
__source: {
|
|
3061
|
-
fileName: _jsxFileName$6,
|
|
3062
|
-
lineNumber: 78
|
|
3063
|
-
}
|
|
3064
|
-
}, React$6.createElement(MatrixColumnsRowInput, {
|
|
3065
|
-
model: model,
|
|
3066
|
-
onChangeModel: onChangeModel,
|
|
3067
|
-
__self: undefined,
|
|
3068
|
-
__source: {
|
|
3069
|
-
fileName: _jsxFileName$6,
|
|
3070
|
-
lineNumber: 79
|
|
3071
|
-
}
|
|
3072
|
-
}), React$6.createElement(MatrixColumnsSizeHeaderInput, {
|
|
3073
|
-
model: model,
|
|
3074
|
-
onChangeModel: onChangeModel,
|
|
3075
|
-
__self: undefined,
|
|
3076
|
-
__source: {
|
|
3077
|
-
fileName: _jsxFileName$6,
|
|
3078
|
-
lineNumber: 80
|
|
3079
|
-
}
|
|
3080
|
-
}), React$6.createElement(MatrixLabelTypeHeaderInput, {
|
|
3081
|
-
model: model,
|
|
3082
|
-
onChangeModel: onChangeModel,
|
|
3083
|
-
__self: undefined,
|
|
3084
|
-
__source: {
|
|
3085
|
-
fileName: _jsxFileName$6,
|
|
3086
|
-
lineNumber: 81
|
|
3087
|
-
}
|
|
3088
|
-
})), teacherInstructionsEnabled && React$6.createElement(InputContainer, {
|
|
3089
|
-
label: teacherInstructions.label,
|
|
3090
|
-
className: classes.promptHolder,
|
|
3091
|
-
__self: undefined,
|
|
3092
|
-
__source: {
|
|
3093
|
-
fileName: _jsxFileName$6,
|
|
3094
|
-
lineNumber: 85
|
|
3095
|
-
}
|
|
3096
|
-
}, React$6.createElement(EditableHtml, {
|
|
3097
|
-
className: classes.prompt,
|
|
3098
|
-
markup: model.teacherInstructions || '',
|
|
3099
|
-
onChange: onTeacherInstructionsChanged,
|
|
3100
|
-
imageSupport: imageSupport,
|
|
3101
|
-
nonEmpty: false,
|
|
3102
|
-
__self: undefined,
|
|
3103
|
-
__source: {
|
|
3104
|
-
fileName: _jsxFileName$6,
|
|
3105
|
-
lineNumber: 89
|
|
3106
|
-
}
|
|
3107
|
-
})), React$6.createElement(InputContainer, {
|
|
3108
|
-
label: prompt.label,
|
|
3109
|
-
className: classes.promptHolder,
|
|
3110
|
-
__self: undefined,
|
|
3111
|
-
__source: {
|
|
3112
|
-
fileName: _jsxFileName$6,
|
|
3113
|
-
lineNumber: 99
|
|
3114
|
-
}
|
|
3115
|
-
}, React$6.createElement(EditableHtml, {
|
|
3116
|
-
className: classes.prompt,
|
|
3117
|
-
markup: model.prompt,
|
|
3118
|
-
onChange: onPromptChanged,
|
|
3119
|
-
imageSupport: imageSupport,
|
|
3120
|
-
nonEmpty: !prompt.settings,
|
|
3121
|
-
disableUnderline: true,
|
|
3122
|
-
__self: undefined,
|
|
3123
|
-
__source: {
|
|
3124
|
-
fileName: _jsxFileName$6,
|
|
3125
|
-
lineNumber: 100
|
|
3126
|
-
}
|
|
3127
|
-
})), React$6.createElement(MatrixValues, {
|
|
3128
|
-
model: model,
|
|
3129
|
-
onChangeModel: onChangeModel,
|
|
3130
|
-
__self: undefined,
|
|
3131
|
-
__source: {
|
|
3132
|
-
fileName: _jsxFileName$6,
|
|
3133
|
-
lineNumber: 110
|
|
3134
|
-
}
|
|
3135
|
-
}))));
|
|
3136
|
-
});
|
|
3137
|
-
class Main extends React$6.Component {
|
|
3138
|
-
constructor(...args) {
|
|
3139
|
-
super(...args);
|
|
3140
|
-
Main.prototype.__init.call(this);
|
|
3141
|
-
Main.prototype.__init2.call(this);
|
|
3142
|
-
Main.prototype.__init3.call(this);
|
|
3143
|
-
}
|
|
3144
|
-
static __initStatic() {
|
|
3145
|
-
this.propTypes = {
|
|
3146
|
-
model: PropTypes$6.object.isRequired,
|
|
3147
|
-
disableSidePanel: PropTypes$6.bool,
|
|
3148
|
-
onModelChanged: PropTypes$6.func.isRequired,
|
|
3149
|
-
onConfigurationChanged: PropTypes$6.func.isRequired,
|
|
3150
|
-
classes: PropTypes$6.object.isRequired,
|
|
3151
|
-
imageSupport: PropTypes$6.shape({
|
|
3152
|
-
add: PropTypes$6.func.isRequired,
|
|
3153
|
-
delete: PropTypes$6.func.isRequired
|
|
3154
|
-
})
|
|
3155
|
-
};
|
|
3156
|
-
}
|
|
3157
|
-
__init() {
|
|
3158
|
-
this.onPromptChanged = prompt => {
|
|
3159
|
-
this.props.onModelChanged({
|
|
3160
|
-
...this.props.model,
|
|
3161
|
-
prompt
|
|
3162
|
-
});
|
|
3163
|
-
};
|
|
3164
|
-
}
|
|
3165
|
-
__init2() {
|
|
3166
|
-
this.onChangeModel = data => {
|
|
3167
|
-
this.props.onModelChanged({
|
|
3168
|
-
...this.props.model,
|
|
3169
|
-
...data
|
|
3170
|
-
});
|
|
3171
|
-
};
|
|
3172
|
-
}
|
|
3173
|
-
__init3() {
|
|
3174
|
-
this.onTeacherInstructionsChanged = teacherInstructions => {
|
|
3175
|
-
this.props.onModelChanged({
|
|
3176
|
-
...this.props.model,
|
|
3177
|
-
teacherInstructions
|
|
3178
|
-
});
|
|
3179
|
-
};
|
|
3180
|
-
}
|
|
3181
|
-
render() {
|
|
3182
|
-
return React$6.createElement(Design, {
|
|
3183
|
-
...this.props,
|
|
3184
|
-
onChangeModel: this.props.onModelChanged,
|
|
3185
|
-
onPromptChanged: this.onPromptChanged,
|
|
3186
|
-
onTeacherInstructionsChanged: this.onTeacherInstructionsChanged,
|
|
3187
|
-
__self: this,
|
|
3188
|
-
__source: {
|
|
3189
|
-
fileName: _jsxFileName$6,
|
|
3190
|
-
lineNumber: 153
|
|
3191
|
-
}
|
|
3192
|
-
});
|
|
3193
|
-
}
|
|
3194
|
-
}
|
|
3195
|
-
Main.__initStatic();
|
|
3196
|
-
const Styled = withStyles$1(styles$1)(Main);
|
|
3197
|
-
var sensibleDefaults = {
|
|
3198
|
-
model: {
|
|
3199
|
-
teacherInstructionsEnabled: true,
|
|
3200
|
-
labelType: 'agreement',
|
|
3201
|
-
rowLabels: ['I\'m interested in politics.', 'I\'m interested in economics.'],
|
|
3202
|
-
columnLabels: ['Disagree', 'Unsure', 'Agree'],
|
|
3203
|
-
matrixValues: {},
|
|
3204
|
-
prompt: 'How interested are you in the following domains?'
|
|
3205
|
-
},
|
|
3206
|
-
configuration: {
|
|
3207
|
-
teacherInstructions: {
|
|
3208
|
-
settings: true,
|
|
3209
|
-
label: 'Teacher Instructions'
|
|
3210
|
-
},
|
|
3211
|
-
prompt: {
|
|
3212
|
-
settings: true,
|
|
3213
|
-
label: 'Prompt'
|
|
3214
|
-
}
|
|
3215
|
-
}
|
|
3216
|
-
};
|
|
3217
|
-
const React$7 = _dll_react;
|
|
3218
|
-
const ReactDOM = _dll_react_dom;
|
|
3219
|
-
const {defaults: defaults} = _dll_lodash;
|
|
3220
|
-
const {ModelUpdatedEvent: ModelUpdatedEvent} = _dll_pie_framework__pie_configure_events;
|
|
3221
|
-
const log = browser('matrix:configure');
|
|
3222
|
-
const prepareCustomizationObject = (config, model) => {
|
|
3223
|
-
const configuration = defaults(config, sensibleDefaults.configuration);
|
|
3224
|
-
return {
|
|
3225
|
-
configuration,
|
|
3226
|
-
model
|
|
3227
|
-
};
|
|
3228
|
-
};
|
|
3229
|
-
class Matrix extends HTMLElement {
|
|
3230
|
-
static __initStatic() {
|
|
3231
|
-
this.createDefaultModel = (model = {}) => ({
|
|
3232
|
-
...sensibleDefaults.model,
|
|
3233
|
-
...model
|
|
3234
|
-
});
|
|
3235
|
-
}
|
|
3236
|
-
constructor() {
|
|
3237
|
-
super();
|
|
3238
|
-
this._model = Matrix.createDefaultModel();
|
|
3239
|
-
this._configuration = sensibleDefaults.configuration;
|
|
3240
|
-
this.onModelChanged = this.onModelChanged.bind(this);
|
|
3241
|
-
this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
|
|
3242
|
-
}
|
|
3243
|
-
set model(s) {
|
|
3244
|
-
this._model = Matrix.createDefaultModel(s);
|
|
3245
|
-
this._render();
|
|
3246
|
-
}
|
|
3247
|
-
set configuration(c) {
|
|
3248
|
-
const info = prepareCustomizationObject(c, this._model);
|
|
3249
|
-
this.onModelChanged(info.model);
|
|
3250
|
-
this._configuration = info.configuration;
|
|
3251
|
-
this._render();
|
|
3252
|
-
}
|
|
3253
|
-
set disableSidePanel(s) {
|
|
3254
|
-
this._disableSidePanel = s;
|
|
3255
|
-
this._render();
|
|
3256
|
-
}
|
|
3257
|
-
dispatchModelUpdated(reset) {
|
|
3258
|
-
const resetValue = !!reset;
|
|
3259
|
-
this.dispatchEvent(new ModelUpdatedEvent(this._model, resetValue));
|
|
3260
|
-
}
|
|
3261
|
-
onModelChanged(m, reset) {
|
|
3262
|
-
this._model = m;
|
|
3263
|
-
this._render();
|
|
3264
|
-
this.dispatchModelUpdated(reset);
|
|
3265
|
-
}
|
|
3266
|
-
onConfigurationChanged(c) {
|
|
3267
|
-
this._configuration = prepareCustomizationObject(c, this._model).configuration;
|
|
3268
|
-
if (this._model) {
|
|
3269
|
-
this.onModelChanged(this._model);
|
|
3270
|
-
}
|
|
3271
|
-
this._render();
|
|
3272
|
-
}
|
|
3273
|
-
_render() {
|
|
3274
|
-
log('_render');
|
|
3275
|
-
let element = React$7.createElement(Styled, {
|
|
3276
|
-
model: this._model,
|
|
3277
|
-
configuration: this._configuration,
|
|
3278
|
-
onModelChanged: this.onModelChanged,
|
|
3279
|
-
onConfigurationChanged: this.onConfigurationChanged,
|
|
3280
|
-
disableSidePanel: this._disableSidePanel
|
|
3281
|
-
});
|
|
3282
|
-
ReactDOM.render(element, this);
|
|
3283
|
-
}
|
|
3284
|
-
}
|
|
3285
|
-
Matrix.__initStatic();
|
|
3286
|
-
export default Matrix;
|