door_models 3.0.5 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +209 -1592
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +148 -1528
- package/dist/index.esm.js.map +1 -1
- package/package.json +8 -8
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useContext, createContext, useState, useCallback, useEffect, useMemo } from 'react';
|
|
2
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
3
|
import { Geometry, Base, Subtraction } from '@react-three/csg';
|
|
3
4
|
import { useSpring, a } from '@react-spring/three';
|
|
4
5
|
import * as THREE from 'three';
|
|
@@ -67,1387 +68,6 @@ function _toPropertyKey(t) {
|
|
|
67
68
|
return "symbol" == typeof i ? i : i + "";
|
|
68
69
|
}
|
|
69
70
|
|
|
70
|
-
var jsxRuntime = {exports: {}};
|
|
71
|
-
|
|
72
|
-
var reactJsxRuntime_production_min = {};
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @license React
|
|
76
|
-
* react-jsx-runtime.production.min.js
|
|
77
|
-
*
|
|
78
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the MIT license found in the
|
|
81
|
-
* LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/
|
|
83
|
-
|
|
84
|
-
var hasRequiredReactJsxRuntime_production_min;
|
|
85
|
-
|
|
86
|
-
function requireReactJsxRuntime_production_min () {
|
|
87
|
-
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
88
|
-
hasRequiredReactJsxRuntime_production_min = 1;
|
|
89
|
-
var f=require$$0,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
|
|
90
|
-
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
|
|
91
|
-
return reactJsxRuntime_production_min;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
var reactJsxRuntime_development = {};
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @license React
|
|
98
|
-
* react-jsx-runtime.development.js
|
|
99
|
-
*
|
|
100
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
101
|
-
*
|
|
102
|
-
* This source code is licensed under the MIT license found in the
|
|
103
|
-
* LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/
|
|
105
|
-
|
|
106
|
-
var hasRequiredReactJsxRuntime_development;
|
|
107
|
-
|
|
108
|
-
function requireReactJsxRuntime_development () {
|
|
109
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
110
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
111
|
-
|
|
112
|
-
if (process.env.NODE_ENV !== "production") {
|
|
113
|
-
(function() {
|
|
114
|
-
|
|
115
|
-
var React = require$$0;
|
|
116
|
-
|
|
117
|
-
// ATTENTION
|
|
118
|
-
// When adding new symbols to this file,
|
|
119
|
-
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
120
|
-
// The Symbol used to tag the ReactElement-like types.
|
|
121
|
-
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
|
122
|
-
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
|
123
|
-
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
124
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
|
125
|
-
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
|
126
|
-
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
|
127
|
-
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
|
128
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
129
|
-
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
|
130
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
|
131
|
-
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
132
|
-
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
|
133
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
|
134
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
135
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
136
|
-
function getIteratorFn(maybeIterable) {
|
|
137
|
-
if (maybeIterable === null || typeof maybeIterable !== 'object') {
|
|
138
|
-
return null;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
142
|
-
|
|
143
|
-
if (typeof maybeIterator === 'function') {
|
|
144
|
-
return maybeIterator;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return null;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
151
|
-
|
|
152
|
-
function error(format) {
|
|
153
|
-
{
|
|
154
|
-
{
|
|
155
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
156
|
-
args[_key2 - 1] = arguments[_key2];
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
printWarning('error', format, args);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function printWarning(level, format, args) {
|
|
165
|
-
// When changing this logic, you might want to also
|
|
166
|
-
// update consoleWithStackDev.www.js as well.
|
|
167
|
-
{
|
|
168
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
169
|
-
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
170
|
-
|
|
171
|
-
if (stack !== '') {
|
|
172
|
-
format += '%s';
|
|
173
|
-
args = args.concat([stack]);
|
|
174
|
-
} // eslint-disable-next-line react-internal/safe-string-coercion
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
var argsWithFormat = args.map(function (item) {
|
|
178
|
-
return String(item);
|
|
179
|
-
}); // Careful: RN currently depends on this prefix
|
|
180
|
-
|
|
181
|
-
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
|
|
182
|
-
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
183
|
-
// eslint-disable-next-line react-internal/no-production-logging
|
|
184
|
-
|
|
185
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
// -----------------------------------------------------------------------------
|
|
190
|
-
|
|
191
|
-
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
192
|
-
var enableCacheElement = false;
|
|
193
|
-
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
|
194
|
-
|
|
195
|
-
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
|
196
|
-
// stuff. Intended to enable React core members to more easily debug scheduling
|
|
197
|
-
// issues in DEV builds.
|
|
198
|
-
|
|
199
|
-
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
|
200
|
-
|
|
201
|
-
var REACT_MODULE_REFERENCE;
|
|
202
|
-
|
|
203
|
-
{
|
|
204
|
-
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
function isValidElementType(type) {
|
|
208
|
-
if (typeof type === 'string' || typeof type === 'function') {
|
|
209
|
-
return true;
|
|
210
|
-
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
|
|
214
|
-
return true;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
if (typeof type === 'object' && type !== null) {
|
|
218
|
-
if (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 || // This needs to include all possible module reference object
|
|
219
|
-
// types supported by any Flight configuration anywhere since
|
|
220
|
-
// we don't know which Flight build this will end up being used
|
|
221
|
-
// with.
|
|
222
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
223
|
-
return true;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
return false;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
231
|
-
var displayName = outerType.displayName;
|
|
232
|
-
|
|
233
|
-
if (displayName) {
|
|
234
|
-
return displayName;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
var functionName = innerType.displayName || innerType.name || '';
|
|
238
|
-
return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
239
|
-
} // Keep in sync with react-reconciler/getComponentNameFromFiber
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
function getContextName(type) {
|
|
243
|
-
return type.displayName || 'Context';
|
|
244
|
-
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
function getComponentNameFromType(type) {
|
|
248
|
-
if (type == null) {
|
|
249
|
-
// Host root, text node or just invalid type.
|
|
250
|
-
return null;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
{
|
|
254
|
-
if (typeof type.tag === 'number') {
|
|
255
|
-
error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
if (typeof type === 'function') {
|
|
260
|
-
return type.displayName || type.name || null;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
if (typeof type === 'string') {
|
|
264
|
-
return type;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
switch (type) {
|
|
268
|
-
case REACT_FRAGMENT_TYPE:
|
|
269
|
-
return 'Fragment';
|
|
270
|
-
|
|
271
|
-
case REACT_PORTAL_TYPE:
|
|
272
|
-
return 'Portal';
|
|
273
|
-
|
|
274
|
-
case REACT_PROFILER_TYPE:
|
|
275
|
-
return 'Profiler';
|
|
276
|
-
|
|
277
|
-
case REACT_STRICT_MODE_TYPE:
|
|
278
|
-
return 'StrictMode';
|
|
279
|
-
|
|
280
|
-
case REACT_SUSPENSE_TYPE:
|
|
281
|
-
return 'Suspense';
|
|
282
|
-
|
|
283
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
284
|
-
return 'SuspenseList';
|
|
285
|
-
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
if (typeof type === 'object') {
|
|
289
|
-
switch (type.$$typeof) {
|
|
290
|
-
case REACT_CONTEXT_TYPE:
|
|
291
|
-
var context = type;
|
|
292
|
-
return getContextName(context) + '.Consumer';
|
|
293
|
-
|
|
294
|
-
case REACT_PROVIDER_TYPE:
|
|
295
|
-
var provider = type;
|
|
296
|
-
return getContextName(provider._context) + '.Provider';
|
|
297
|
-
|
|
298
|
-
case REACT_FORWARD_REF_TYPE:
|
|
299
|
-
return getWrappedName(type, type.render, 'ForwardRef');
|
|
300
|
-
|
|
301
|
-
case REACT_MEMO_TYPE:
|
|
302
|
-
var outerName = type.displayName || null;
|
|
303
|
-
|
|
304
|
-
if (outerName !== null) {
|
|
305
|
-
return outerName;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
return getComponentNameFromType(type.type) || 'Memo';
|
|
309
|
-
|
|
310
|
-
case REACT_LAZY_TYPE:
|
|
311
|
-
{
|
|
312
|
-
var lazyComponent = type;
|
|
313
|
-
var payload = lazyComponent._payload;
|
|
314
|
-
var init = lazyComponent._init;
|
|
315
|
-
|
|
316
|
-
try {
|
|
317
|
-
return getComponentNameFromType(init(payload));
|
|
318
|
-
} catch (x) {
|
|
319
|
-
return null;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
// eslint-disable-next-line no-fallthrough
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
return null;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
var assign = Object.assign;
|
|
331
|
-
|
|
332
|
-
// Helpers to patch console.logs to avoid logging during side-effect free
|
|
333
|
-
// replaying on render function. This currently only patches the object
|
|
334
|
-
// lazily which won't cover if the log function was extracted eagerly.
|
|
335
|
-
// We could also eagerly patch the method.
|
|
336
|
-
var disabledDepth = 0;
|
|
337
|
-
var prevLog;
|
|
338
|
-
var prevInfo;
|
|
339
|
-
var prevWarn;
|
|
340
|
-
var prevError;
|
|
341
|
-
var prevGroup;
|
|
342
|
-
var prevGroupCollapsed;
|
|
343
|
-
var prevGroupEnd;
|
|
344
|
-
|
|
345
|
-
function disabledLog() {}
|
|
346
|
-
|
|
347
|
-
disabledLog.__reactDisabledLog = true;
|
|
348
|
-
function disableLogs() {
|
|
349
|
-
{
|
|
350
|
-
if (disabledDepth === 0) {
|
|
351
|
-
/* eslint-disable react-internal/no-production-logging */
|
|
352
|
-
prevLog = console.log;
|
|
353
|
-
prevInfo = console.info;
|
|
354
|
-
prevWarn = console.warn;
|
|
355
|
-
prevError = console.error;
|
|
356
|
-
prevGroup = console.group;
|
|
357
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
358
|
-
prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
|
|
359
|
-
|
|
360
|
-
var props = {
|
|
361
|
-
configurable: true,
|
|
362
|
-
enumerable: true,
|
|
363
|
-
value: disabledLog,
|
|
364
|
-
writable: true
|
|
365
|
-
}; // $FlowFixMe Flow thinks console is immutable.
|
|
366
|
-
|
|
367
|
-
Object.defineProperties(console, {
|
|
368
|
-
info: props,
|
|
369
|
-
log: props,
|
|
370
|
-
warn: props,
|
|
371
|
-
error: props,
|
|
372
|
-
group: props,
|
|
373
|
-
groupCollapsed: props,
|
|
374
|
-
groupEnd: props
|
|
375
|
-
});
|
|
376
|
-
/* eslint-enable react-internal/no-production-logging */
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
disabledDepth++;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
function reenableLogs() {
|
|
383
|
-
{
|
|
384
|
-
disabledDepth--;
|
|
385
|
-
|
|
386
|
-
if (disabledDepth === 0) {
|
|
387
|
-
/* eslint-disable react-internal/no-production-logging */
|
|
388
|
-
var props = {
|
|
389
|
-
configurable: true,
|
|
390
|
-
enumerable: true,
|
|
391
|
-
writable: true
|
|
392
|
-
}; // $FlowFixMe Flow thinks console is immutable.
|
|
393
|
-
|
|
394
|
-
Object.defineProperties(console, {
|
|
395
|
-
log: assign({}, props, {
|
|
396
|
-
value: prevLog
|
|
397
|
-
}),
|
|
398
|
-
info: assign({}, props, {
|
|
399
|
-
value: prevInfo
|
|
400
|
-
}),
|
|
401
|
-
warn: assign({}, props, {
|
|
402
|
-
value: prevWarn
|
|
403
|
-
}),
|
|
404
|
-
error: assign({}, props, {
|
|
405
|
-
value: prevError
|
|
406
|
-
}),
|
|
407
|
-
group: assign({}, props, {
|
|
408
|
-
value: prevGroup
|
|
409
|
-
}),
|
|
410
|
-
groupCollapsed: assign({}, props, {
|
|
411
|
-
value: prevGroupCollapsed
|
|
412
|
-
}),
|
|
413
|
-
groupEnd: assign({}, props, {
|
|
414
|
-
value: prevGroupEnd
|
|
415
|
-
})
|
|
416
|
-
});
|
|
417
|
-
/* eslint-enable react-internal/no-production-logging */
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
if (disabledDepth < 0) {
|
|
421
|
-
error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
427
|
-
var prefix;
|
|
428
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
429
|
-
{
|
|
430
|
-
if (prefix === undefined) {
|
|
431
|
-
// Extract the VM specific prefix used by each line.
|
|
432
|
-
try {
|
|
433
|
-
throw Error();
|
|
434
|
-
} catch (x) {
|
|
435
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
436
|
-
prefix = match && match[1] || '';
|
|
437
|
-
}
|
|
438
|
-
} // We use the prefix to ensure our stacks line up with native stack frames.
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
return '\n' + prefix + name;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
var reentry = false;
|
|
445
|
-
var componentFrameCache;
|
|
446
|
-
|
|
447
|
-
{
|
|
448
|
-
var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
|
|
449
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
453
|
-
// If something asked for a stack inside a fake render, it should get ignored.
|
|
454
|
-
if ( !fn || reentry) {
|
|
455
|
-
return '';
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
{
|
|
459
|
-
var frame = componentFrameCache.get(fn);
|
|
460
|
-
|
|
461
|
-
if (frame !== undefined) {
|
|
462
|
-
return frame;
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
var control;
|
|
467
|
-
reentry = true;
|
|
468
|
-
var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
|
|
469
|
-
|
|
470
|
-
Error.prepareStackTrace = undefined;
|
|
471
|
-
var previousDispatcher;
|
|
472
|
-
|
|
473
|
-
{
|
|
474
|
-
previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
|
|
475
|
-
// for warnings.
|
|
476
|
-
|
|
477
|
-
ReactCurrentDispatcher.current = null;
|
|
478
|
-
disableLogs();
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
try {
|
|
482
|
-
// This should throw.
|
|
483
|
-
if (construct) {
|
|
484
|
-
// Something should be setting the props in the constructor.
|
|
485
|
-
var Fake = function () {
|
|
486
|
-
throw Error();
|
|
487
|
-
}; // $FlowFixMe
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
Object.defineProperty(Fake.prototype, 'props', {
|
|
491
|
-
set: function () {
|
|
492
|
-
// We use a throwing setter instead of frozen or non-writable props
|
|
493
|
-
// because that won't throw in a non-strict mode function.
|
|
494
|
-
throw Error();
|
|
495
|
-
}
|
|
496
|
-
});
|
|
497
|
-
|
|
498
|
-
if (typeof Reflect === 'object' && Reflect.construct) {
|
|
499
|
-
// We construct a different control for this case to include any extra
|
|
500
|
-
// frames added by the construct call.
|
|
501
|
-
try {
|
|
502
|
-
Reflect.construct(Fake, []);
|
|
503
|
-
} catch (x) {
|
|
504
|
-
control = x;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
Reflect.construct(fn, [], Fake);
|
|
508
|
-
} else {
|
|
509
|
-
try {
|
|
510
|
-
Fake.call();
|
|
511
|
-
} catch (x) {
|
|
512
|
-
control = x;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
fn.call(Fake.prototype);
|
|
516
|
-
}
|
|
517
|
-
} else {
|
|
518
|
-
try {
|
|
519
|
-
throw Error();
|
|
520
|
-
} catch (x) {
|
|
521
|
-
control = x;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
fn();
|
|
525
|
-
}
|
|
526
|
-
} catch (sample) {
|
|
527
|
-
// This is inlined manually because closure doesn't do it for us.
|
|
528
|
-
if (sample && control && typeof sample.stack === 'string') {
|
|
529
|
-
// This extracts the first frame from the sample that isn't also in the control.
|
|
530
|
-
// Skipping one frame that we assume is the frame that calls the two.
|
|
531
|
-
var sampleLines = sample.stack.split('\n');
|
|
532
|
-
var controlLines = control.stack.split('\n');
|
|
533
|
-
var s = sampleLines.length - 1;
|
|
534
|
-
var c = controlLines.length - 1;
|
|
535
|
-
|
|
536
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
537
|
-
// We expect at least one stack frame to be shared.
|
|
538
|
-
// Typically this will be the root most one. However, stack frames may be
|
|
539
|
-
// cut off due to maximum stack limits. In this case, one maybe cut off
|
|
540
|
-
// earlier than the other. We assume that the sample is longer or the same
|
|
541
|
-
// and there for cut off earlier. So we should find the root most frame in
|
|
542
|
-
// the sample somewhere in the control.
|
|
543
|
-
c--;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
547
|
-
// Next we find the first one that isn't the same which should be the
|
|
548
|
-
// frame that called our sample function and the control.
|
|
549
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
550
|
-
// In V8, the first line is describing the message but other VMs don't.
|
|
551
|
-
// If we're about to return the first line, and the control is also on the same
|
|
552
|
-
// line, that's a pretty good indicator that our sample threw at same line as
|
|
553
|
-
// the control. I.e. before we entered the sample frame. So we ignore this result.
|
|
554
|
-
// This can happen if you passed a class to function component, or non-function.
|
|
555
|
-
if (s !== 1 || c !== 1) {
|
|
556
|
-
do {
|
|
557
|
-
s--;
|
|
558
|
-
c--; // We may still have similar intermediate frames from the construct call.
|
|
559
|
-
// The next one that isn't the same should be our match though.
|
|
560
|
-
|
|
561
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
562
|
-
// V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
|
|
563
|
-
var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
|
|
564
|
-
// but we have a user-provided "displayName"
|
|
565
|
-
// splice it in to make the stack more readable.
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
if (fn.displayName && _frame.includes('<anonymous>')) {
|
|
569
|
-
_frame = _frame.replace('<anonymous>', fn.displayName);
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
{
|
|
573
|
-
if (typeof fn === 'function') {
|
|
574
|
-
componentFrameCache.set(fn, _frame);
|
|
575
|
-
}
|
|
576
|
-
} // Return the line we found.
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
return _frame;
|
|
580
|
-
}
|
|
581
|
-
} while (s >= 1 && c >= 0);
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
break;
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
} finally {
|
|
589
|
-
reentry = false;
|
|
590
|
-
|
|
591
|
-
{
|
|
592
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
593
|
-
reenableLogs();
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
597
|
-
} // Fallback to just using the name if we couldn't make it throw.
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
var name = fn ? fn.displayName || fn.name : '';
|
|
601
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
|
|
602
|
-
|
|
603
|
-
{
|
|
604
|
-
if (typeof fn === 'function') {
|
|
605
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
return syntheticFrame;
|
|
610
|
-
}
|
|
611
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
612
|
-
{
|
|
613
|
-
return describeNativeComponentFrame(fn, false);
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
function shouldConstruct(Component) {
|
|
618
|
-
var prototype = Component.prototype;
|
|
619
|
-
return !!(prototype && prototype.isReactComponent);
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
623
|
-
|
|
624
|
-
if (type == null) {
|
|
625
|
-
return '';
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
if (typeof type === 'function') {
|
|
629
|
-
{
|
|
630
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
if (typeof type === 'string') {
|
|
635
|
-
return describeBuiltInComponentFrame(type);
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
switch (type) {
|
|
639
|
-
case REACT_SUSPENSE_TYPE:
|
|
640
|
-
return describeBuiltInComponentFrame('Suspense');
|
|
641
|
-
|
|
642
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
643
|
-
return describeBuiltInComponentFrame('SuspenseList');
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
if (typeof type === 'object') {
|
|
647
|
-
switch (type.$$typeof) {
|
|
648
|
-
case REACT_FORWARD_REF_TYPE:
|
|
649
|
-
return describeFunctionComponentFrame(type.render);
|
|
650
|
-
|
|
651
|
-
case REACT_MEMO_TYPE:
|
|
652
|
-
// Memo may contain any component type so we recursively resolve it.
|
|
653
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
654
|
-
|
|
655
|
-
case REACT_LAZY_TYPE:
|
|
656
|
-
{
|
|
657
|
-
var lazyComponent = type;
|
|
658
|
-
var payload = lazyComponent._payload;
|
|
659
|
-
var init = lazyComponent._init;
|
|
660
|
-
|
|
661
|
-
try {
|
|
662
|
-
// Lazy may contain any component type so we recursively resolve it.
|
|
663
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
664
|
-
} catch (x) {}
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
return '';
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
673
|
-
|
|
674
|
-
var loggedTypeFailures = {};
|
|
675
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
676
|
-
|
|
677
|
-
function setCurrentlyValidatingElement(element) {
|
|
678
|
-
{
|
|
679
|
-
if (element) {
|
|
680
|
-
var owner = element._owner;
|
|
681
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
682
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
683
|
-
} else {
|
|
684
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
690
|
-
{
|
|
691
|
-
// $FlowFixMe This is okay but Flow doesn't know it.
|
|
692
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
693
|
-
|
|
694
|
-
for (var typeSpecName in typeSpecs) {
|
|
695
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
696
|
-
var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
|
|
697
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
698
|
-
// After these have been cleaned up, we'll let them throw.
|
|
699
|
-
|
|
700
|
-
try {
|
|
701
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
702
|
-
// behavior as without this statement except with a better message.
|
|
703
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
704
|
-
// eslint-disable-next-line react-internal/prod-error-codes
|
|
705
|
-
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
706
|
-
err.name = 'Invariant Violation';
|
|
707
|
-
throw err;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
|
|
711
|
-
} catch (ex) {
|
|
712
|
-
error$1 = ex;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
716
|
-
setCurrentlyValidatingElement(element);
|
|
717
|
-
|
|
718
|
-
error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
|
|
719
|
-
|
|
720
|
-
setCurrentlyValidatingElement(null);
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
724
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
725
|
-
// same error.
|
|
726
|
-
loggedTypeFailures[error$1.message] = true;
|
|
727
|
-
setCurrentlyValidatingElement(element);
|
|
728
|
-
|
|
729
|
-
error('Failed %s type: %s', location, error$1.message);
|
|
730
|
-
|
|
731
|
-
setCurrentlyValidatingElement(null);
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
|
|
739
|
-
|
|
740
|
-
function isArray(a) {
|
|
741
|
-
return isArrayImpl(a);
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
/*
|
|
745
|
-
* The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
|
|
746
|
-
* and Temporal.* types. See https://github.com/facebook/react/pull/22064.
|
|
747
|
-
*
|
|
748
|
-
* The functions in this module will throw an easier-to-understand,
|
|
749
|
-
* easier-to-debug exception with a clear errors message message explaining the
|
|
750
|
-
* problem. (Instead of a confusing exception thrown inside the implementation
|
|
751
|
-
* of the `value` object).
|
|
752
|
-
*/
|
|
753
|
-
// $FlowFixMe only called in DEV, so void return is not possible.
|
|
754
|
-
function typeName(value) {
|
|
755
|
-
{
|
|
756
|
-
// toStringTag is needed for namespaced types like Temporal.Instant
|
|
757
|
-
var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
|
|
758
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
|
|
759
|
-
return type;
|
|
760
|
-
}
|
|
761
|
-
} // $FlowFixMe only called in DEV, so void return is not possible.
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
function willCoercionThrow(value) {
|
|
765
|
-
{
|
|
766
|
-
try {
|
|
767
|
-
testStringCoercion(value);
|
|
768
|
-
return false;
|
|
769
|
-
} catch (e) {
|
|
770
|
-
return true;
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
function testStringCoercion(value) {
|
|
776
|
-
// If you ended up here by following an exception call stack, here's what's
|
|
777
|
-
// happened: you supplied an object or symbol value to React (as a prop, key,
|
|
778
|
-
// DOM attribute, CSS property, string ref, etc.) and when React tried to
|
|
779
|
-
// coerce it to a string using `'' + value`, an exception was thrown.
|
|
780
|
-
//
|
|
781
|
-
// The most common types that will cause this exception are `Symbol` instances
|
|
782
|
-
// and Temporal objects like `Temporal.Instant`. But any object that has a
|
|
783
|
-
// `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
|
|
784
|
-
// exception. (Library authors do this to prevent users from using built-in
|
|
785
|
-
// numeric operators like `+` or comparison operators like `>=` because custom
|
|
786
|
-
// methods are needed to perform accurate arithmetic or comparison.)
|
|
787
|
-
//
|
|
788
|
-
// To fix the problem, coerce this object or symbol value to a string before
|
|
789
|
-
// passing it to React. The most reliable way is usually `String(value)`.
|
|
790
|
-
//
|
|
791
|
-
// To find which value is throwing, check the browser or debugger console.
|
|
792
|
-
// Before this exception was thrown, there should be `console.error` output
|
|
793
|
-
// that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
|
|
794
|
-
// problem and how that type was used: key, atrribute, input value prop, etc.
|
|
795
|
-
// In most cases, this console output also shows the component and its
|
|
796
|
-
// ancestor components where the exception happened.
|
|
797
|
-
//
|
|
798
|
-
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
799
|
-
return '' + value;
|
|
800
|
-
}
|
|
801
|
-
function checkKeyStringCoercion(value) {
|
|
802
|
-
{
|
|
803
|
-
if (willCoercionThrow(value)) {
|
|
804
|
-
error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
|
|
805
|
-
|
|
806
|
-
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
812
|
-
var RESERVED_PROPS = {
|
|
813
|
-
key: true,
|
|
814
|
-
ref: true,
|
|
815
|
-
__self: true,
|
|
816
|
-
__source: true
|
|
817
|
-
};
|
|
818
|
-
var specialPropKeyWarningShown;
|
|
819
|
-
var specialPropRefWarningShown;
|
|
820
|
-
var didWarnAboutStringRefs;
|
|
821
|
-
|
|
822
|
-
{
|
|
823
|
-
didWarnAboutStringRefs = {};
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
function hasValidRef(config) {
|
|
827
|
-
{
|
|
828
|
-
if (hasOwnProperty.call(config, 'ref')) {
|
|
829
|
-
var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
|
|
830
|
-
|
|
831
|
-
if (getter && getter.isReactWarning) {
|
|
832
|
-
return false;
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
return config.ref !== undefined;
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
function hasValidKey(config) {
|
|
841
|
-
{
|
|
842
|
-
if (hasOwnProperty.call(config, 'key')) {
|
|
843
|
-
var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
|
|
844
|
-
|
|
845
|
-
if (getter && getter.isReactWarning) {
|
|
846
|
-
return false;
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
return config.key !== undefined;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
855
|
-
{
|
|
856
|
-
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
857
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
858
|
-
|
|
859
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
860
|
-
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
|
861
|
-
|
|
862
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
869
|
-
{
|
|
870
|
-
var warnAboutAccessingKey = function () {
|
|
871
|
-
if (!specialPropKeyWarningShown) {
|
|
872
|
-
specialPropKeyWarningShown = true;
|
|
873
|
-
|
|
874
|
-
error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
|
|
875
|
-
}
|
|
876
|
-
};
|
|
877
|
-
|
|
878
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
879
|
-
Object.defineProperty(props, 'key', {
|
|
880
|
-
get: warnAboutAccessingKey,
|
|
881
|
-
configurable: true
|
|
882
|
-
});
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
887
|
-
{
|
|
888
|
-
var warnAboutAccessingRef = function () {
|
|
889
|
-
if (!specialPropRefWarningShown) {
|
|
890
|
-
specialPropRefWarningShown = true;
|
|
891
|
-
|
|
892
|
-
error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
|
|
893
|
-
}
|
|
894
|
-
};
|
|
895
|
-
|
|
896
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
897
|
-
Object.defineProperty(props, 'ref', {
|
|
898
|
-
get: warnAboutAccessingRef,
|
|
899
|
-
configurable: true
|
|
900
|
-
});
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
/**
|
|
904
|
-
* Factory method to create a new React element. This no longer adheres to
|
|
905
|
-
* the class pattern, so do not use new to call it. Also, instanceof check
|
|
906
|
-
* will not work. Instead test $$typeof field against Symbol.for('react.element') to check
|
|
907
|
-
* if something is a React Element.
|
|
908
|
-
*
|
|
909
|
-
* @param {*} type
|
|
910
|
-
* @param {*} props
|
|
911
|
-
* @param {*} key
|
|
912
|
-
* @param {string|object} ref
|
|
913
|
-
* @param {*} owner
|
|
914
|
-
* @param {*} self A *temporary* helper to detect places where `this` is
|
|
915
|
-
* different from the `owner` when React.createElement is called, so that we
|
|
916
|
-
* can warn. We want to get rid of owner and replace string `ref`s with arrow
|
|
917
|
-
* functions, and as long as `this` and owner are the same, there will be no
|
|
918
|
-
* change in behavior.
|
|
919
|
-
* @param {*} source An annotation object (added by a transpiler or otherwise)
|
|
920
|
-
* indicating filename, line number, and/or other information.
|
|
921
|
-
* @internal
|
|
922
|
-
*/
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
var ReactElement = function (type, key, ref, self, source, owner, props) {
|
|
926
|
-
var element = {
|
|
927
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
928
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
929
|
-
// Built-in properties that belong on the element
|
|
930
|
-
type: type,
|
|
931
|
-
key: key,
|
|
932
|
-
ref: ref,
|
|
933
|
-
props: props,
|
|
934
|
-
// Record the component responsible for creating this element.
|
|
935
|
-
_owner: owner
|
|
936
|
-
};
|
|
937
|
-
|
|
938
|
-
{
|
|
939
|
-
// The validation flag is currently mutative. We put it on
|
|
940
|
-
// an external backing store so that we can freeze the whole object.
|
|
941
|
-
// This can be replaced with a WeakMap once they are implemented in
|
|
942
|
-
// commonly used development environments.
|
|
943
|
-
element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
|
|
944
|
-
// the validation flag non-enumerable (where possible, which should
|
|
945
|
-
// include every environment we run tests in), so the test framework
|
|
946
|
-
// ignores it.
|
|
947
|
-
|
|
948
|
-
Object.defineProperty(element._store, 'validated', {
|
|
949
|
-
configurable: false,
|
|
950
|
-
enumerable: false,
|
|
951
|
-
writable: true,
|
|
952
|
-
value: false
|
|
953
|
-
}); // self and source are DEV only properties.
|
|
954
|
-
|
|
955
|
-
Object.defineProperty(element, '_self', {
|
|
956
|
-
configurable: false,
|
|
957
|
-
enumerable: false,
|
|
958
|
-
writable: false,
|
|
959
|
-
value: self
|
|
960
|
-
}); // Two elements created in two different places should be considered
|
|
961
|
-
// equal for testing purposes and therefore we hide it from enumeration.
|
|
962
|
-
|
|
963
|
-
Object.defineProperty(element, '_source', {
|
|
964
|
-
configurable: false,
|
|
965
|
-
enumerable: false,
|
|
966
|
-
writable: false,
|
|
967
|
-
value: source
|
|
968
|
-
});
|
|
969
|
-
|
|
970
|
-
if (Object.freeze) {
|
|
971
|
-
Object.freeze(element.props);
|
|
972
|
-
Object.freeze(element);
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
return element;
|
|
977
|
-
};
|
|
978
|
-
/**
|
|
979
|
-
* https://github.com/reactjs/rfcs/pull/107
|
|
980
|
-
* @param {*} type
|
|
981
|
-
* @param {object} props
|
|
982
|
-
* @param {string} key
|
|
983
|
-
*/
|
|
984
|
-
|
|
985
|
-
function jsxDEV(type, config, maybeKey, source, self) {
|
|
986
|
-
{
|
|
987
|
-
var propName; // Reserved names are extracted
|
|
988
|
-
|
|
989
|
-
var props = {};
|
|
990
|
-
var key = null;
|
|
991
|
-
var ref = null; // Currently, key can be spread in as a prop. This causes a potential
|
|
992
|
-
// issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
|
|
993
|
-
// or <div key="Hi" {...props} /> ). We want to deprecate key spread,
|
|
994
|
-
// but as an intermediary step, we will use jsxDEV for everything except
|
|
995
|
-
// <div {...props} key="Hi" />, because we aren't currently able to tell if
|
|
996
|
-
// key is explicitly declared to be undefined or not.
|
|
997
|
-
|
|
998
|
-
if (maybeKey !== undefined) {
|
|
999
|
-
{
|
|
1000
|
-
checkKeyStringCoercion(maybeKey);
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
key = '' + maybeKey;
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
if (hasValidKey(config)) {
|
|
1007
|
-
{
|
|
1008
|
-
checkKeyStringCoercion(config.key);
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
key = '' + config.key;
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
if (hasValidRef(config)) {
|
|
1015
|
-
ref = config.ref;
|
|
1016
|
-
warnIfStringRefCannotBeAutoConverted(config, self);
|
|
1017
|
-
} // Remaining properties are added to a new props object
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
for (propName in config) {
|
|
1021
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
1022
|
-
props[propName] = config[propName];
|
|
1023
|
-
}
|
|
1024
|
-
} // Resolve default props
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
if (type && type.defaultProps) {
|
|
1028
|
-
var defaultProps = type.defaultProps;
|
|
1029
|
-
|
|
1030
|
-
for (propName in defaultProps) {
|
|
1031
|
-
if (props[propName] === undefined) {
|
|
1032
|
-
props[propName] = defaultProps[propName];
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
if (key || ref) {
|
|
1038
|
-
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
|
|
1039
|
-
|
|
1040
|
-
if (key) {
|
|
1041
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
if (ref) {
|
|
1045
|
-
defineRefPropWarningGetter(props, displayName);
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
1054
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1055
|
-
|
|
1056
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
1057
|
-
{
|
|
1058
|
-
if (element) {
|
|
1059
|
-
var owner = element._owner;
|
|
1060
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1061
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
1062
|
-
} else {
|
|
1063
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
var propTypesMisspellWarningShown;
|
|
1069
|
-
|
|
1070
|
-
{
|
|
1071
|
-
propTypesMisspellWarningShown = false;
|
|
1072
|
-
}
|
|
1073
|
-
/**
|
|
1074
|
-
* Verifies the object is a ReactElement.
|
|
1075
|
-
* See https://reactjs.org/docs/react-api.html#isvalidelement
|
|
1076
|
-
* @param {?object} object
|
|
1077
|
-
* @return {boolean} True if `object` is a ReactElement.
|
|
1078
|
-
* @final
|
|
1079
|
-
*/
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
function isValidElement(object) {
|
|
1083
|
-
{
|
|
1084
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
function getDeclarationErrorAddendum() {
|
|
1089
|
-
{
|
|
1090
|
-
if (ReactCurrentOwner$1.current) {
|
|
1091
|
-
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
1092
|
-
|
|
1093
|
-
if (name) {
|
|
1094
|
-
return '\n\nCheck the render method of `' + name + '`.';
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
return '';
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
function getSourceInfoErrorAddendum(source) {
|
|
1103
|
-
{
|
|
1104
|
-
if (source !== undefined) {
|
|
1105
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
|
1106
|
-
var lineNumber = source.lineNumber;
|
|
1107
|
-
return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
return '';
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
/**
|
|
1114
|
-
* Warn if there's no key explicitly set on dynamic arrays of children or
|
|
1115
|
-
* object keys are not valid. This allows us to keep track of children between
|
|
1116
|
-
* updates.
|
|
1117
|
-
*/
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
var ownerHasKeyUseWarning = {};
|
|
1121
|
-
|
|
1122
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
1123
|
-
{
|
|
1124
|
-
var info = getDeclarationErrorAddendum();
|
|
1125
|
-
|
|
1126
|
-
if (!info) {
|
|
1127
|
-
var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
|
|
1128
|
-
|
|
1129
|
-
if (parentName) {
|
|
1130
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
return info;
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
/**
|
|
1138
|
-
* Warn if the element doesn't have an explicit key assigned to it.
|
|
1139
|
-
* This element is in an array. The array could grow and shrink or be
|
|
1140
|
-
* reordered. All children that haven't already been validated are required to
|
|
1141
|
-
* have a "key" property assigned to it. Error statuses are cached so a warning
|
|
1142
|
-
* will only be shown once.
|
|
1143
|
-
*
|
|
1144
|
-
* @internal
|
|
1145
|
-
* @param {ReactElement} element Element that requires a key.
|
|
1146
|
-
* @param {*} parentType element's parent's type.
|
|
1147
|
-
*/
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
function validateExplicitKey(element, parentType) {
|
|
1151
|
-
{
|
|
1152
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
1153
|
-
return;
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
element._store.validated = true;
|
|
1157
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
1158
|
-
|
|
1159
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
1160
|
-
return;
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
|
|
1164
|
-
// property, it may be the creator of the child that's responsible for
|
|
1165
|
-
// assigning it a key.
|
|
1166
|
-
|
|
1167
|
-
var childOwner = '';
|
|
1168
|
-
|
|
1169
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
1170
|
-
// Give the component that originally created this child.
|
|
1171
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
setCurrentlyValidatingElement$1(element);
|
|
1175
|
-
|
|
1176
|
-
error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
1177
|
-
|
|
1178
|
-
setCurrentlyValidatingElement$1(null);
|
|
1179
|
-
}
|
|
1180
|
-
}
|
|
1181
|
-
/**
|
|
1182
|
-
* Ensure that every element either is passed in a static location, in an
|
|
1183
|
-
* array with an explicit keys property defined, or in an object literal
|
|
1184
|
-
* with valid key property.
|
|
1185
|
-
*
|
|
1186
|
-
* @internal
|
|
1187
|
-
* @param {ReactNode} node Statically passed child of any type.
|
|
1188
|
-
* @param {*} parentType node's parent's type.
|
|
1189
|
-
*/
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
function validateChildKeys(node, parentType) {
|
|
1193
|
-
{
|
|
1194
|
-
if (typeof node !== 'object') {
|
|
1195
|
-
return;
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
if (isArray(node)) {
|
|
1199
|
-
for (var i = 0; i < node.length; i++) {
|
|
1200
|
-
var child = node[i];
|
|
1201
|
-
|
|
1202
|
-
if (isValidElement(child)) {
|
|
1203
|
-
validateExplicitKey(child, parentType);
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
} else if (isValidElement(node)) {
|
|
1207
|
-
// This element was passed in a valid location.
|
|
1208
|
-
if (node._store) {
|
|
1209
|
-
node._store.validated = true;
|
|
1210
|
-
}
|
|
1211
|
-
} else if (node) {
|
|
1212
|
-
var iteratorFn = getIteratorFn(node);
|
|
1213
|
-
|
|
1214
|
-
if (typeof iteratorFn === 'function') {
|
|
1215
|
-
// Entry iterators used to provide implicit keys,
|
|
1216
|
-
// but now we print a separate warning for them later.
|
|
1217
|
-
if (iteratorFn !== node.entries) {
|
|
1218
|
-
var iterator = iteratorFn.call(node);
|
|
1219
|
-
var step;
|
|
1220
|
-
|
|
1221
|
-
while (!(step = iterator.next()).done) {
|
|
1222
|
-
if (isValidElement(step.value)) {
|
|
1223
|
-
validateExplicitKey(step.value, parentType);
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
/**
|
|
1232
|
-
* Given an element, validate that its props follow the propTypes definition,
|
|
1233
|
-
* provided by the type.
|
|
1234
|
-
*
|
|
1235
|
-
* @param {ReactElement} element
|
|
1236
|
-
*/
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
function validatePropTypes(element) {
|
|
1240
|
-
{
|
|
1241
|
-
var type = element.type;
|
|
1242
|
-
|
|
1243
|
-
if (type === null || type === undefined || typeof type === 'string') {
|
|
1244
|
-
return;
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
var propTypes;
|
|
1248
|
-
|
|
1249
|
-
if (typeof type === 'function') {
|
|
1250
|
-
propTypes = type.propTypes;
|
|
1251
|
-
} else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
1252
|
-
// Inner props are checked in the reconciler.
|
|
1253
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
1254
|
-
propTypes = type.propTypes;
|
|
1255
|
-
} else {
|
|
1256
|
-
return;
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
if (propTypes) {
|
|
1260
|
-
// Intentionally inside to avoid triggering lazy initializers:
|
|
1261
|
-
var name = getComponentNameFromType(type);
|
|
1262
|
-
checkPropTypes(propTypes, element.props, 'prop', name, element);
|
|
1263
|
-
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
1264
|
-
propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
|
|
1265
|
-
|
|
1266
|
-
var _name = getComponentNameFromType(type);
|
|
1267
|
-
|
|
1268
|
-
error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
|
-
if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
|
|
1272
|
-
error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
/**
|
|
1277
|
-
* Given a fragment, validate that it can only be provided with fragment props
|
|
1278
|
-
* @param {ReactElement} fragment
|
|
1279
|
-
*/
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
function validateFragmentProps(fragment) {
|
|
1283
|
-
{
|
|
1284
|
-
var keys = Object.keys(fragment.props);
|
|
1285
|
-
|
|
1286
|
-
for (var i = 0; i < keys.length; i++) {
|
|
1287
|
-
var key = keys[i];
|
|
1288
|
-
|
|
1289
|
-
if (key !== 'children' && key !== 'key') {
|
|
1290
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1291
|
-
|
|
1292
|
-
error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
|
|
1293
|
-
|
|
1294
|
-
setCurrentlyValidatingElement$1(null);
|
|
1295
|
-
break;
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
if (fragment.ref !== null) {
|
|
1300
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1301
|
-
|
|
1302
|
-
error('Invalid attribute `ref` supplied to `React.Fragment`.');
|
|
1303
|
-
|
|
1304
|
-
setCurrentlyValidatingElement$1(null);
|
|
1305
|
-
}
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
var didWarnAboutKeySpread = {};
|
|
1310
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
1311
|
-
{
|
|
1312
|
-
var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
|
|
1313
|
-
// succeed and there will likely be errors in render.
|
|
1314
|
-
|
|
1315
|
-
if (!validType) {
|
|
1316
|
-
var info = '';
|
|
1317
|
-
|
|
1318
|
-
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
1319
|
-
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
1323
|
-
|
|
1324
|
-
if (sourceInfo) {
|
|
1325
|
-
info += sourceInfo;
|
|
1326
|
-
} else {
|
|
1327
|
-
info += getDeclarationErrorAddendum();
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
var typeString;
|
|
1331
|
-
|
|
1332
|
-
if (type === null) {
|
|
1333
|
-
typeString = 'null';
|
|
1334
|
-
} else if (isArray(type)) {
|
|
1335
|
-
typeString = 'array';
|
|
1336
|
-
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
1337
|
-
typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
|
|
1338
|
-
info = ' Did you accidentally export a JSX literal instead of a component?';
|
|
1339
|
-
} else {
|
|
1340
|
-
typeString = typeof type;
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
|
|
1347
|
-
// TODO: Drop this when these are no longer allowed as the type argument.
|
|
1348
|
-
|
|
1349
|
-
if (element == null) {
|
|
1350
|
-
return element;
|
|
1351
|
-
} // Skip key warning if the type isn't valid since our key validation logic
|
|
1352
|
-
// doesn't expect a non-string/function type and can throw confusing errors.
|
|
1353
|
-
// We don't want exception behavior to differ between dev and prod.
|
|
1354
|
-
// (Rendering will throw with a helpful message and as soon as the type is
|
|
1355
|
-
// fixed, the key warnings will appear.)
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
if (validType) {
|
|
1359
|
-
var children = props.children;
|
|
1360
|
-
|
|
1361
|
-
if (children !== undefined) {
|
|
1362
|
-
if (isStaticChildren) {
|
|
1363
|
-
if (isArray(children)) {
|
|
1364
|
-
for (var i = 0; i < children.length; i++) {
|
|
1365
|
-
validateChildKeys(children[i], type);
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
if (Object.freeze) {
|
|
1369
|
-
Object.freeze(children);
|
|
1370
|
-
}
|
|
1371
|
-
} else {
|
|
1372
|
-
error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
|
|
1373
|
-
}
|
|
1374
|
-
} else {
|
|
1375
|
-
validateChildKeys(children, type);
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
{
|
|
1381
|
-
if (hasOwnProperty.call(props, 'key')) {
|
|
1382
|
-
var componentName = getComponentNameFromType(type);
|
|
1383
|
-
var keys = Object.keys(props).filter(function (k) {
|
|
1384
|
-
return k !== 'key';
|
|
1385
|
-
});
|
|
1386
|
-
var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
|
|
1387
|
-
|
|
1388
|
-
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
1389
|
-
var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
|
|
1390
|
-
|
|
1391
|
-
error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
|
1392
|
-
|
|
1393
|
-
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
1399
|
-
validateFragmentProps(element);
|
|
1400
|
-
} else {
|
|
1401
|
-
validatePropTypes(element);
|
|
1402
|
-
}
|
|
1403
|
-
|
|
1404
|
-
return element;
|
|
1405
|
-
}
|
|
1406
|
-
} // These two functions exist to still get child warnings in dev
|
|
1407
|
-
// even with the prod transform. This means that jsxDEV is purely
|
|
1408
|
-
// opt-in behavior for better messages but that we won't stop
|
|
1409
|
-
// giving you warnings if you use production apis.
|
|
1410
|
-
|
|
1411
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
1412
|
-
{
|
|
1413
|
-
return jsxWithValidation(type, props, key, true);
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
1417
|
-
{
|
|
1418
|
-
return jsxWithValidation(type, props, key, false);
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
|
|
1423
|
-
// for now we can ship identical prod functions
|
|
1424
|
-
|
|
1425
|
-
var jsxs = jsxWithValidationStatic ;
|
|
1426
|
-
|
|
1427
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
1428
|
-
reactJsxRuntime_development.jsx = jsx;
|
|
1429
|
-
reactJsxRuntime_development.jsxs = jsxs;
|
|
1430
|
-
})();
|
|
1431
|
-
}
|
|
1432
|
-
return reactJsxRuntime_development;
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
var hasRequiredJsxRuntime;
|
|
1436
|
-
|
|
1437
|
-
function requireJsxRuntime () {
|
|
1438
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
1439
|
-
hasRequiredJsxRuntime = 1;
|
|
1440
|
-
|
|
1441
|
-
if (process.env.NODE_ENV === 'production') {
|
|
1442
|
-
jsxRuntime.exports = requireReactJsxRuntime_production_min();
|
|
1443
|
-
} else {
|
|
1444
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
1445
|
-
}
|
|
1446
|
-
return jsxRuntime.exports;
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
1450
|
-
|
|
1451
71
|
const _excluded = ["doorDepth"];
|
|
1452
72
|
const ConfiguratorContext = /*#__PURE__*/createContext(undefined);
|
|
1453
73
|
const ConfiguratorProvider = _ref => {
|
|
@@ -1984,7 +604,7 @@ const ConfiguratorProvider = _ref => {
|
|
|
1984
604
|
doorWidth: newDoorWidth > 0 ? newDoorWidth : 0
|
|
1985
605
|
}));
|
|
1986
606
|
}, [totalWidth, doorFrame.sidesThk]);
|
|
1987
|
-
return /*#__PURE__*/
|
|
607
|
+
return /*#__PURE__*/jsx(ConfiguratorContext.Provider, {
|
|
1988
608
|
value: {
|
|
1989
609
|
isPlaneVisible,
|
|
1990
610
|
setIsPlaneVisible,
|
|
@@ -2138,65 +758,65 @@ function GlassHinge(_ref) {
|
|
|
2138
758
|
const plateOffsetX = sideMultiplier * (plateWidth / 2 + frameSideWidth);
|
|
2139
759
|
const holeRadius = 10 / 1000;
|
|
2140
760
|
const holeSpacingX = 45 / 1000;
|
|
2141
|
-
return /*#__PURE__*/
|
|
761
|
+
return /*#__PURE__*/jsxs("group", {
|
|
2142
762
|
position: position,
|
|
2143
|
-
children: [/*#__PURE__*/
|
|
763
|
+
children: [/*#__PURE__*/jsx("mesh", {
|
|
2144
764
|
material: material,
|
|
2145
765
|
castShadow: true,
|
|
2146
766
|
receiveShadow: true,
|
|
2147
767
|
"position-x": 0.01,
|
|
2148
|
-
children: /*#__PURE__*/
|
|
768
|
+
children: /*#__PURE__*/jsx("cylinderGeometry", {
|
|
2149
769
|
args: [pivotRadius, pivotRadius, pivotHeight, 32]
|
|
2150
770
|
})
|
|
2151
|
-
}), /*#__PURE__*/
|
|
771
|
+
}), /*#__PURE__*/jsxs("group", {
|
|
2152
772
|
"position-x": plateOffsetX,
|
|
2153
|
-
children: [/*#__PURE__*/
|
|
773
|
+
children: [/*#__PURE__*/jsx("mesh", {
|
|
2154
774
|
"position-z": -(doorDepthM / 2) - plateThickness / 2 - gasketThickness,
|
|
2155
775
|
material: material,
|
|
2156
776
|
castShadow: true,
|
|
2157
777
|
receiveShadow: true,
|
|
2158
|
-
children: /*#__PURE__*/
|
|
778
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2159
779
|
args: [plateWidth, plateHeight, plateThickness]
|
|
2160
780
|
})
|
|
2161
|
-
}), /*#__PURE__*/
|
|
781
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2162
782
|
"position-z": -(doorDepthM / 2) - gasketThickness / 2,
|
|
2163
783
|
material: gasketMaterial,
|
|
2164
784
|
castShadow: true,
|
|
2165
785
|
receiveShadow: true,
|
|
2166
|
-
children: /*#__PURE__*/
|
|
786
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2167
787
|
args: [plateWidth, plateHeight, gasketThickness]
|
|
2168
788
|
})
|
|
2169
|
-
}), /*#__PURE__*/
|
|
789
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2170
790
|
"position-z": doorDepthM / 2 + plateThickness / 2 + gasketThickness,
|
|
2171
791
|
castShadow: true,
|
|
2172
792
|
receiveShadow: true,
|
|
2173
|
-
children: /*#__PURE__*/
|
|
793
|
+
children: /*#__PURE__*/jsxs(Geometry, {
|
|
2174
794
|
useGroups: true,
|
|
2175
|
-
children: [/*#__PURE__*/
|
|
795
|
+
children: [/*#__PURE__*/jsx(Base, {
|
|
2176
796
|
material: material,
|
|
2177
|
-
children: /*#__PURE__*/
|
|
797
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2178
798
|
args: [plateWidth, plateHeight, plateThickness]
|
|
2179
799
|
})
|
|
2180
|
-
}), /*#__PURE__*/
|
|
800
|
+
}), /*#__PURE__*/jsx(Subtraction, {
|
|
2181
801
|
position: [-sideMultiplier * (holeSpacingX / 2), 0, 0],
|
|
2182
802
|
rotation: [Math.PI / 2, 0, 0],
|
|
2183
|
-
children: /*#__PURE__*/
|
|
803
|
+
children: /*#__PURE__*/jsx("cylinderGeometry", {
|
|
2184
804
|
args: [holeRadius, holeRadius, plateThickness + 0.01, 32]
|
|
2185
805
|
})
|
|
2186
|
-
}), /*#__PURE__*/
|
|
806
|
+
}), /*#__PURE__*/jsx(Subtraction, {
|
|
2187
807
|
position: [sideMultiplier * (holeSpacingX / 2), 0, 0],
|
|
2188
808
|
rotation: [Math.PI / 2, 0, 0],
|
|
2189
|
-
children: /*#__PURE__*/
|
|
809
|
+
children: /*#__PURE__*/jsx("cylinderGeometry", {
|
|
2190
810
|
args: [holeRadius, holeRadius, plateThickness + 0.01, 32]
|
|
2191
811
|
})
|
|
2192
812
|
})]
|
|
2193
813
|
})
|
|
2194
|
-
}), /*#__PURE__*/
|
|
814
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2195
815
|
"position-z": doorDepthM / 2 + gasketThickness / 2,
|
|
2196
816
|
material: gasketMaterial,
|
|
2197
817
|
castShadow: true,
|
|
2198
818
|
receiveShadow: true,
|
|
2199
|
-
children: /*#__PURE__*/
|
|
819
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2200
820
|
args: [plateWidth, plateHeight, gasketThickness]
|
|
2201
821
|
})
|
|
2202
822
|
})]
|
|
@@ -2217,26 +837,26 @@ function DoorStopCuts(_ref2) {
|
|
|
2217
837
|
setName
|
|
2218
838
|
} = _ref2;
|
|
2219
839
|
if (!visible) return null;
|
|
2220
|
-
return /*#__PURE__*/
|
|
2221
|
-
children: [/*#__PURE__*/
|
|
840
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
841
|
+
children: [/*#__PURE__*/jsx(Subtraction, {
|
|
2222
842
|
name: "cut-top-".concat(setName),
|
|
2223
843
|
material: material,
|
|
2224
844
|
position: [0, height / 2 - stopWidth / 2 + 0.0001, stopPositionZ - centerZ],
|
|
2225
|
-
children: /*#__PURE__*/
|
|
845
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2226
846
|
args: [width + 0.01, stopWidth, stopDepth + 0.01]
|
|
2227
847
|
})
|
|
2228
|
-
}), /*#__PURE__*/
|
|
848
|
+
}), /*#__PURE__*/jsx(Subtraction, {
|
|
2229
849
|
name: "cut-left-".concat(setName),
|
|
2230
850
|
material: material,
|
|
2231
851
|
position: [-width / 2 + stopWidth / 2 - 0.0001, 0, stopPositionZ - centerZ],
|
|
2232
|
-
children: /*#__PURE__*/
|
|
852
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2233
853
|
args: [stopWidth, height + 0.01, stopDepth + 0.01]
|
|
2234
854
|
})
|
|
2235
|
-
}), /*#__PURE__*/
|
|
855
|
+
}), /*#__PURE__*/jsx(Subtraction, {
|
|
2236
856
|
name: "cut-right-".concat(setName),
|
|
2237
857
|
material: material,
|
|
2238
858
|
position: [width / 2 - stopWidth / 2 + 0.0001, 0, stopPositionZ - centerZ],
|
|
2239
|
-
children: /*#__PURE__*/
|
|
859
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2240
860
|
args: [stopWidth, height + 0.01, stopDepth + 0.01]
|
|
2241
861
|
})
|
|
2242
862
|
})]
|
|
@@ -2551,345 +1171,345 @@ function DoorModels(_ref3) {
|
|
|
2551
1171
|
}
|
|
2552
1172
|
return true;
|
|
2553
1173
|
}, [isFrameVisible, frameType, isGlassDoor]);
|
|
2554
|
-
return /*#__PURE__*/
|
|
2555
|
-
children: [frontCoverPanel.visible && /*#__PURE__*/
|
|
1174
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
1175
|
+
children: [frontCoverPanel.visible && /*#__PURE__*/jsxs("group", {
|
|
2556
1176
|
"position-z": frontArchitraveZ,
|
|
2557
|
-
children: [/*#__PURE__*/
|
|
1177
|
+
children: [/*#__PURE__*/jsx("mesh", {
|
|
2558
1178
|
position: [0, topArchitraveY, 0],
|
|
2559
1179
|
castShadow: true,
|
|
2560
1180
|
material: frontCoverPanelMaterial,
|
|
2561
|
-
children: /*#__PURE__*/
|
|
1181
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2562
1182
|
args: [topArchitraveWidth, architraveProfileM, architraveDepthM]
|
|
2563
1183
|
})
|
|
2564
|
-
}), /*#__PURE__*/
|
|
1184
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2565
1185
|
position: [leftArchitraveX, sideArchitraveCenterY, 0],
|
|
2566
1186
|
castShadow: true,
|
|
2567
1187
|
material: frontCoverPanelMaterial,
|
|
2568
|
-
children: /*#__PURE__*/
|
|
1188
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2569
1189
|
args: [architraveProfileM, sideArchitraveHeight, architraveDepthM]
|
|
2570
1190
|
})
|
|
2571
|
-
}), /*#__PURE__*/
|
|
1191
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2572
1192
|
position: [rightArchitraveX, sideArchitraveCenterY, 0],
|
|
2573
1193
|
castShadow: true,
|
|
2574
1194
|
material: frontCoverPanelMaterial,
|
|
2575
|
-
children: /*#__PURE__*/
|
|
1195
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2576
1196
|
args: [architraveProfileM, sideArchitraveHeight, architraveDepthM]
|
|
2577
1197
|
})
|
|
2578
1198
|
})]
|
|
2579
|
-
}), backCoverPanel.visible && /*#__PURE__*/
|
|
1199
|
+
}), backCoverPanel.visible && /*#__PURE__*/jsxs("group", {
|
|
2580
1200
|
"position-z": backArchitraveZ,
|
|
2581
|
-
children: [/*#__PURE__*/
|
|
1201
|
+
children: [/*#__PURE__*/jsx("mesh", {
|
|
2582
1202
|
position: [0, topArchitraveY, 0],
|
|
2583
1203
|
castShadow: true,
|
|
2584
1204
|
material: backCoverPanelMaterial,
|
|
2585
|
-
children: /*#__PURE__*/
|
|
1205
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2586
1206
|
args: [topArchitraveWidth, architraveProfileM, architraveDepthM]
|
|
2587
1207
|
})
|
|
2588
|
-
}), /*#__PURE__*/
|
|
1208
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2589
1209
|
position: [leftArchitraveX, sideArchitraveCenterY, 0],
|
|
2590
1210
|
castShadow: true,
|
|
2591
1211
|
material: backCoverPanelMaterial,
|
|
2592
|
-
children: /*#__PURE__*/
|
|
1212
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2593
1213
|
args: [architraveProfileM, sideArchitraveHeight, architraveDepthM]
|
|
2594
1214
|
})
|
|
2595
|
-
}), /*#__PURE__*/
|
|
1215
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2596
1216
|
position: [rightArchitraveX, sideArchitraveCenterY, 0],
|
|
2597
1217
|
castShadow: true,
|
|
2598
1218
|
material: backCoverPanelMaterial,
|
|
2599
|
-
children: /*#__PURE__*/
|
|
1219
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2600
1220
|
args: [architraveProfileM, sideArchitraveHeight, architraveDepthM]
|
|
2601
1221
|
})
|
|
2602
1222
|
})]
|
|
2603
|
-
}), exteriorFanlight.visible && /*#__PURE__*/
|
|
1223
|
+
}), exteriorFanlight.visible && /*#__PURE__*/jsx("mesh", {
|
|
2604
1224
|
position: [0, exteriorFanlightYPosition, exteriorFanlightZPosition],
|
|
2605
1225
|
castShadow: true,
|
|
2606
1226
|
material: exteriorFanlightMaterial,
|
|
2607
|
-
children: /*#__PURE__*/
|
|
1227
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2608
1228
|
args: [totalFrameWidth, exteriorFanlightHeightM, exteriorFanlightDepthM]
|
|
2609
1229
|
})
|
|
2610
|
-
}), isFrameVisible && /*#__PURE__*/
|
|
2611
|
-
children: [/*#__PURE__*/
|
|
1230
|
+
}), isFrameVisible && /*#__PURE__*/jsxs("group", {
|
|
1231
|
+
children: [/*#__PURE__*/jsx("mesh", {
|
|
2612
1232
|
castShadow: true,
|
|
2613
1233
|
position: [0, topFrameCenterY, 0],
|
|
2614
|
-
children: /*#__PURE__*/
|
|
1234
|
+
children: /*#__PURE__*/jsxs(Geometry, {
|
|
2615
1235
|
useGroups: true,
|
|
2616
|
-
children: [/*#__PURE__*/
|
|
1236
|
+
children: [/*#__PURE__*/jsx(Base, {
|
|
2617
1237
|
name: "frame-base",
|
|
2618
1238
|
material: frameMaterial,
|
|
2619
|
-
children: /*#__PURE__*/
|
|
1239
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2620
1240
|
args: [doorWidthM, topFrameWidthM, frameDepthM]
|
|
2621
1241
|
})
|
|
2622
|
-
}), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/
|
|
1242
|
+
}), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsx(Subtraction, {
|
|
2623
1243
|
name: "cut-exterior",
|
|
2624
1244
|
material: frameMaterial,
|
|
2625
1245
|
position: [0, notchposition, 0],
|
|
2626
|
-
children: /*#__PURE__*/
|
|
1246
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2627
1247
|
args: [doorWidthM + 0.01, notchWidthM, notchDepthM]
|
|
2628
1248
|
})
|
|
2629
1249
|
})]
|
|
2630
1250
|
})
|
|
2631
|
-
}), /*#__PURE__*/
|
|
1251
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2632
1252
|
castShadow: true,
|
|
2633
1253
|
position: [-doorWidthM / 2 - sidesFrameWidthM / 2, sideFrameCenterY, 0],
|
|
2634
|
-
children: /*#__PURE__*/
|
|
1254
|
+
children: /*#__PURE__*/jsxs(Geometry, {
|
|
2635
1255
|
useGroups: true,
|
|
2636
|
-
children: [/*#__PURE__*/
|
|
1256
|
+
children: [/*#__PURE__*/jsx(Base, {
|
|
2637
1257
|
name: "frame-base",
|
|
2638
1258
|
material: frameMaterial,
|
|
2639
|
-
children: /*#__PURE__*/
|
|
1259
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2640
1260
|
args: [sidesFrameWidthM, totalFrameHeightM, frameDepthM]
|
|
2641
1261
|
})
|
|
2642
|
-
}), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/
|
|
1262
|
+
}), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsx(Subtraction, {
|
|
2643
1263
|
name: "cut-exterior",
|
|
2644
1264
|
material: frameMaterial,
|
|
2645
1265
|
position: [-notchposition, 0, 0],
|
|
2646
|
-
children: /*#__PURE__*/
|
|
1266
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2647
1267
|
args: [notchWidthM, totalFrameHeightM + 0.01, notchDepthM]
|
|
2648
1268
|
})
|
|
2649
1269
|
})]
|
|
2650
1270
|
})
|
|
2651
|
-
}), /*#__PURE__*/
|
|
1271
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2652
1272
|
castShadow: true,
|
|
2653
1273
|
position: [doorWidthM / 2 + sidesFrameWidthM / 2, sideFrameCenterY, 0],
|
|
2654
|
-
children: /*#__PURE__*/
|
|
1274
|
+
children: /*#__PURE__*/jsxs(Geometry, {
|
|
2655
1275
|
useGroups: true,
|
|
2656
|
-
children: [/*#__PURE__*/
|
|
1276
|
+
children: [/*#__PURE__*/jsx(Base, {
|
|
2657
1277
|
name: "frame-base",
|
|
2658
1278
|
material: frameMaterial,
|
|
2659
|
-
children: /*#__PURE__*/
|
|
1279
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2660
1280
|
args: [sidesFrameWidthM, totalFrameHeightM, frameDepthM]
|
|
2661
1281
|
})
|
|
2662
|
-
}), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/
|
|
1282
|
+
}), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsx(Subtraction, {
|
|
2663
1283
|
name: "cut-exterior",
|
|
2664
1284
|
material: frameMaterial,
|
|
2665
1285
|
position: [notchposition, 0, 0],
|
|
2666
|
-
children: /*#__PURE__*/
|
|
1286
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2667
1287
|
args: [notchWidthM, totalFrameHeightM + 0.01, notchDepthM]
|
|
2668
1288
|
})
|
|
2669
1289
|
})]
|
|
2670
1290
|
})
|
|
2671
|
-
}), /*#__PURE__*/
|
|
1291
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2672
1292
|
castShadow: true,
|
|
2673
1293
|
position: [0, totalOpeningHeightM / 2 - doorStopWidthM / 2, doorStopPositionZ],
|
|
2674
1294
|
material: doorStopMaterial,
|
|
2675
|
-
children: /*#__PURE__*/
|
|
1295
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2676
1296
|
args: [doorWidthM, doorStopWidthM, doorStopDepthM]
|
|
2677
1297
|
})
|
|
2678
|
-
}), /*#__PURE__*/
|
|
1298
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2679
1299
|
castShadow: true,
|
|
2680
1300
|
position: [-doorWidthM / 2 + doorStopWidthM / 2, 0, doorStopPositionZ],
|
|
2681
1301
|
material: doorStopMaterial,
|
|
2682
|
-
children: /*#__PURE__*/
|
|
1302
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2683
1303
|
args: [doorStopWidthM, totalOpeningHeightM, doorStopDepthM]
|
|
2684
1304
|
})
|
|
2685
|
-
}), /*#__PURE__*/
|
|
1305
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2686
1306
|
castShadow: true,
|
|
2687
1307
|
position: [doorWidthM / 2 - doorStopWidthM / 2, 0, doorStopPositionZ],
|
|
2688
1308
|
material: doorStopMaterial,
|
|
2689
|
-
children: /*#__PURE__*/
|
|
1309
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2690
1310
|
args: [doorStopWidthM, totalOpeningHeightM, doorStopDepthM]
|
|
2691
1311
|
})
|
|
2692
|
-
}), frameType !== "WF_FLI" && /*#__PURE__*/
|
|
2693
|
-
children: [/*#__PURE__*/
|
|
1312
|
+
}), frameType !== "WF_FLI" && /*#__PURE__*/jsxs(Fragment, {
|
|
1313
|
+
children: [/*#__PURE__*/jsx("mesh", {
|
|
2694
1314
|
castShadow: true,
|
|
2695
1315
|
position: [0, topGasketYPosition, gasketZPosition],
|
|
2696
1316
|
material: gasketMaterial,
|
|
2697
|
-
children: /*#__PURE__*/
|
|
1317
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2698
1318
|
args: [doorWidthM - 0.03, gasketWidthM + 0.005, gasketDepthM]
|
|
2699
1319
|
})
|
|
2700
|
-
}), /*#__PURE__*/
|
|
1320
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2701
1321
|
castShadow: true,
|
|
2702
1322
|
position: [leftGasketXPosition - 0.005, -0.005, gasketZPosition],
|
|
2703
1323
|
material: gasketMaterial,
|
|
2704
|
-
children: /*#__PURE__*/
|
|
1324
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2705
1325
|
args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.02, gasketDepthM]
|
|
2706
1326
|
})
|
|
2707
|
-
}), /*#__PURE__*/
|
|
1327
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2708
1328
|
castShadow: true,
|
|
2709
1329
|
position: [rightGasketXPosition + 0.005, -0.005, gasketZPosition],
|
|
2710
1330
|
material: gasketMaterial,
|
|
2711
|
-
children: /*#__PURE__*/
|
|
1331
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2712
1332
|
args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.02, gasketDepthM]
|
|
2713
1333
|
})
|
|
2714
1334
|
})]
|
|
2715
|
-
}), (frameType === "WDGF_WDG100" || frameType === "WF_100" || frameType === "WF_FLI") && /*#__PURE__*/
|
|
2716
|
-
children: [/*#__PURE__*/
|
|
2717
|
-
children: [/*#__PURE__*/
|
|
1335
|
+
}), (frameType === "WDGF_WDG100" || frameType === "WF_100" || frameType === "WF_FLI") && /*#__PURE__*/jsxs("group", {
|
|
1336
|
+
children: [/*#__PURE__*/jsxs("group", {
|
|
1337
|
+
children: [/*#__PURE__*/jsx("mesh", {
|
|
2718
1338
|
castShadow: true,
|
|
2719
1339
|
position: [0, totalOpeningHeightM / 2 - secondDoorStopWidthM / 2, secondDoorStopPositionZ],
|
|
2720
1340
|
material: doorStopMaterial,
|
|
2721
|
-
children: /*#__PURE__*/
|
|
1341
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2722
1342
|
args: [doorWidthM, secondDoorStopWidthM, secondDoorStopDepthM]
|
|
2723
1343
|
})
|
|
2724
|
-
}), /*#__PURE__*/
|
|
1344
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2725
1345
|
castShadow: true,
|
|
2726
1346
|
position: [-doorWidthM / 2 + secondDoorStopWidthM / 2, 0, secondDoorStopPositionZ],
|
|
2727
1347
|
material: doorStopMaterial,
|
|
2728
|
-
children: /*#__PURE__*/
|
|
1348
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2729
1349
|
args: [secondDoorStopWidthM, totalOpeningHeightM, secondDoorStopDepthM]
|
|
2730
1350
|
})
|
|
2731
|
-
}), /*#__PURE__*/
|
|
1351
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2732
1352
|
castShadow: true,
|
|
2733
1353
|
position: [doorWidthM / 2 - secondDoorStopWidthM / 2, 0, secondDoorStopPositionZ],
|
|
2734
1354
|
material: doorStopMaterial,
|
|
2735
|
-
children: /*#__PURE__*/
|
|
1355
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2736
1356
|
args: [secondDoorStopWidthM, totalOpeningHeightM, secondDoorStopDepthM]
|
|
2737
1357
|
})
|
|
2738
1358
|
})]
|
|
2739
|
-
}), /*#__PURE__*/
|
|
2740
|
-
children: [/*#__PURE__*/
|
|
1359
|
+
}), /*#__PURE__*/jsxs("group", {
|
|
1360
|
+
children: [/*#__PURE__*/jsx("mesh", {
|
|
2741
1361
|
castShadow: true,
|
|
2742
1362
|
position: [0, secondTopGasketYPosition - 0.005, secondGasketZPosition],
|
|
2743
1363
|
material: gasketMaterial,
|
|
2744
|
-
children: /*#__PURE__*/
|
|
1364
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2745
1365
|
args: [doorWidthM - 0.03, gasketWidthM + 0.005, gasketDepthM]
|
|
2746
1366
|
})
|
|
2747
|
-
}), /*#__PURE__*/
|
|
1367
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2748
1368
|
castShadow: true,
|
|
2749
1369
|
position: [secondLeftGasketXPosition - 0.005, -0.01, secondGasketZPosition],
|
|
2750
1370
|
material: gasketMaterial,
|
|
2751
|
-
children: /*#__PURE__*/
|
|
1371
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2752
1372
|
args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.04, gasketDepthM]
|
|
2753
1373
|
})
|
|
2754
|
-
}), /*#__PURE__*/
|
|
1374
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2755
1375
|
castShadow: true,
|
|
2756
1376
|
position: [secondRightGasketXPosition + 0.005, -0.01, secondGasketZPosition],
|
|
2757
1377
|
material: gasketMaterial,
|
|
2758
|
-
children: /*#__PURE__*/
|
|
1378
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2759
1379
|
args: [gasketWidthM + 0.004, totalOpeningHeightM - 0.04, gasketDepthM]
|
|
2760
1380
|
})
|
|
2761
1381
|
})]
|
|
2762
|
-
}), glassVisible && /*#__PURE__*/
|
|
2763
|
-
children: [/*#__PURE__*/
|
|
2764
|
-
children: [(frameType === "WDGF_WDG100" || frameType === "WF_100") && /*#__PURE__*/
|
|
1382
|
+
}), glassVisible && /*#__PURE__*/jsxs(Fragment, {
|
|
1383
|
+
children: [/*#__PURE__*/jsxs("group", {
|
|
1384
|
+
children: [(frameType === "WDGF_WDG100" || frameType === "WF_100") && /*#__PURE__*/jsx("mesh", {
|
|
2765
1385
|
castShadow: true,
|
|
2766
1386
|
position: [0, topFrameCenterY - secondDoorStopWidthM / 2, leftGlass_Z],
|
|
2767
1387
|
material: glassInfillMaterial,
|
|
2768
|
-
children: /*#__PURE__*/
|
|
1388
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2769
1389
|
args: [doorWidthM - 2 * secondDoorStopWidthM, topFrameWidthM + secondDoorStopWidthM, GlassPanelDepthM]
|
|
2770
1390
|
})
|
|
2771
|
-
}), frameType !== "WDGF_WDG100" && frameType !== "WF_100" && /*#__PURE__*/
|
|
1391
|
+
}), frameType !== "WDGF_WDG100" && frameType !== "WF_100" && /*#__PURE__*/jsx("mesh", {
|
|
2772
1392
|
castShadow: true,
|
|
2773
1393
|
position: [0, topFrameCenterY, leftGlass_Z],
|
|
2774
1394
|
material: glassInfillMaterial,
|
|
2775
|
-
children: /*#__PURE__*/
|
|
1395
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2776
1396
|
args: [doorWidthM - 2 * secondDoorStopWidthM, topFrameWidthM, GlassPanelDepthM]
|
|
2777
1397
|
})
|
|
2778
|
-
}), /*#__PURE__*/
|
|
1398
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2779
1399
|
castShadow: true,
|
|
2780
1400
|
position: [-doorWidthM / 2 - sidesFrameWidthM / 2 + secondDoorStopWidthM / 2, sideFrameCenterY, leftGlass_Z],
|
|
2781
1401
|
material: glassInfillMaterial,
|
|
2782
|
-
children: /*#__PURE__*/
|
|
1402
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2783
1403
|
args: [sidesFrameWidthM + secondDoorStopWidthM, totalFrameHeightM, GlassPanelDepthM]
|
|
2784
1404
|
})
|
|
2785
|
-
}), /*#__PURE__*/
|
|
1405
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2786
1406
|
castShadow: true,
|
|
2787
1407
|
position: [doorWidthM / 2 + sidesFrameWidthM / 2 - secondDoorStopWidthM / 2, sideFrameCenterY, leftGlass_Z],
|
|
2788
1408
|
material: glassInfillMaterial,
|
|
2789
|
-
children: /*#__PURE__*/
|
|
1409
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2790
1410
|
args: [sidesFrameWidthM + secondDoorStopWidthM, totalFrameHeightM, GlassPanelDepthM]
|
|
2791
1411
|
})
|
|
2792
1412
|
})]
|
|
2793
|
-
}), /*#__PURE__*/
|
|
2794
|
-
children: [/*#__PURE__*/
|
|
1413
|
+
}), /*#__PURE__*/jsxs("group", {
|
|
1414
|
+
children: [/*#__PURE__*/jsx("mesh", {
|
|
2795
1415
|
castShadow: true,
|
|
2796
1416
|
position: [0, topFrameCenterY, rightGlass_Z],
|
|
2797
1417
|
material: glassInfillMaterial,
|
|
2798
|
-
children: /*#__PURE__*/
|
|
1418
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2799
1419
|
args: [doorWidthM, topFrameWidthM, GlassPanelDepthM]
|
|
2800
1420
|
})
|
|
2801
|
-
}), /*#__PURE__*/
|
|
1421
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2802
1422
|
castShadow: true,
|
|
2803
1423
|
position: [-doorWidthM / 2 - sidesFrameWidthM / 2, sideFrameCenterY, rightGlass_Z],
|
|
2804
1424
|
material: glassInfillMaterial,
|
|
2805
|
-
children: /*#__PURE__*/
|
|
1425
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2806
1426
|
args: [sidesFrameWidthM, totalFrameHeightM, GlassPanelDepthM]
|
|
2807
1427
|
})
|
|
2808
|
-
}), /*#__PURE__*/
|
|
1428
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2809
1429
|
castShadow: true,
|
|
2810
1430
|
position: [doorWidthM / 2 + sidesFrameWidthM / 2, sideFrameCenterY, rightGlass_Z],
|
|
2811
1431
|
material: glassInfillMaterial,
|
|
2812
|
-
children: /*#__PURE__*/
|
|
1432
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2813
1433
|
args: [sidesFrameWidthM, totalFrameHeightM, GlassPanelDepthM]
|
|
2814
1434
|
})
|
|
2815
1435
|
})]
|
|
2816
1436
|
})]
|
|
2817
1437
|
})]
|
|
2818
1438
|
})]
|
|
2819
|
-
}), interiorFanlight.visible && /*#__PURE__*/
|
|
1439
|
+
}), interiorFanlight.visible && /*#__PURE__*/jsx("mesh", {
|
|
2820
1440
|
position: [0, interiorFanlightYPosition, doorCenterZ],
|
|
2821
1441
|
castShadow: true,
|
|
2822
1442
|
material: interiorFanlightMaterial,
|
|
2823
|
-
children: /*#__PURE__*/
|
|
1443
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2824
1444
|
args: [doorWidthM, interiorFanlightHeightM, doorDepthM]
|
|
2825
1445
|
})
|
|
2826
|
-
}), isStandardHingeVisible && standardHingeYPositions.map((y, index) => /*#__PURE__*/
|
|
1446
|
+
}), isStandardHingeVisible && standardHingeYPositions.map((y, index) => /*#__PURE__*/jsxs("group", {
|
|
2827
1447
|
position: [hingeSideX, doorYPosition + y, hingeZ],
|
|
2828
|
-
children: [/*#__PURE__*/
|
|
1448
|
+
children: [/*#__PURE__*/jsx("mesh", {
|
|
2829
1449
|
material: hingeBodyMaterial,
|
|
2830
1450
|
position: [0, separatorHeightM / 2 + barrelPartHeight / 2, 0],
|
|
2831
1451
|
castShadow: true,
|
|
2832
|
-
children: /*#__PURE__*/
|
|
1452
|
+
children: /*#__PURE__*/jsx("cylinderGeometry", {
|
|
2833
1453
|
args: [hingeRadiusM, hingeRadiusM, barrelPartHeight, 32]
|
|
2834
1454
|
})
|
|
2835
|
-
}), /*#__PURE__*/
|
|
1455
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2836
1456
|
material: hingeAccentMaterial,
|
|
2837
1457
|
position: [0, separatorHeightM / 2 + barrelPartHeight + capHeightM / 2, 0],
|
|
2838
1458
|
castShadow: true,
|
|
2839
|
-
children: /*#__PURE__*/
|
|
1459
|
+
children: /*#__PURE__*/jsx("cylinderGeometry", {
|
|
2840
1460
|
args: [hingeRadiusM, hingeRadiusM, capHeightM, 32]
|
|
2841
1461
|
})
|
|
2842
1462
|
})]
|
|
2843
|
-
}, "frame-hinge-".concat(index))), /*#__PURE__*/
|
|
1463
|
+
}, "frame-hinge-".concat(index))), /*#__PURE__*/jsxs(a.group, {
|
|
2844
1464
|
position: [hingeSideX, doorYPosition, hingeZ],
|
|
2845
1465
|
rotation: rotation.to((x, y, z) => [x, y, z]),
|
|
2846
1466
|
onClick: handleClick,
|
|
2847
1467
|
onPointerOver: () => document.body.style.cursor = "pointer",
|
|
2848
1468
|
onPointerOut: () => document.body.style.cursor = "auto",
|
|
2849
|
-
children: [isStandardHingeVisible && standardHingeYPositions.map((y, index) => /*#__PURE__*/
|
|
1469
|
+
children: [isStandardHingeVisible && standardHingeYPositions.map((y, index) => /*#__PURE__*/jsxs("group", {
|
|
2850
1470
|
position: [0, y, 0],
|
|
2851
|
-
children: [/*#__PURE__*/
|
|
1471
|
+
children: [/*#__PURE__*/jsx("mesh", {
|
|
2852
1472
|
material: hingeBodyMaterial,
|
|
2853
1473
|
position: [0, -separatorHeightM / 2 - barrelPartHeight / 2, 0],
|
|
2854
1474
|
castShadow: true,
|
|
2855
|
-
children: /*#__PURE__*/
|
|
1475
|
+
children: /*#__PURE__*/jsx("cylinderGeometry", {
|
|
2856
1476
|
args: [hingeRadiusM, hingeRadiusM, barrelPartHeight, 32]
|
|
2857
1477
|
})
|
|
2858
|
-
}), /*#__PURE__*/
|
|
1478
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2859
1479
|
material: hingeAccentMaterial,
|
|
2860
1480
|
position: [0, -separatorHeightM / 2 - barrelPartHeight - capHeightM / 2, 0],
|
|
2861
1481
|
castShadow: true,
|
|
2862
|
-
children: /*#__PURE__*/
|
|
1482
|
+
children: /*#__PURE__*/jsx("cylinderGeometry", {
|
|
2863
1483
|
args: [hingeRadiusM, hingeRadiusM, capHeightM, 32]
|
|
2864
1484
|
})
|
|
2865
|
-
}), /*#__PURE__*/
|
|
1485
|
+
}), /*#__PURE__*/jsx("mesh", {
|
|
2866
1486
|
material: hingeAccentMaterial,
|
|
2867
1487
|
position: [0, 0, 0],
|
|
2868
1488
|
castShadow: true,
|
|
2869
|
-
children: /*#__PURE__*/
|
|
1489
|
+
children: /*#__PURE__*/jsx("cylinderGeometry", {
|
|
2870
1490
|
args: [hingeRadiusM, hingeRadiusM, separatorHeightM, 32]
|
|
2871
1491
|
})
|
|
2872
1492
|
})]
|
|
2873
|
-
}, "door-hinge-".concat(index))), isGlassDoor && isFrameVisible && glassHingeYPositions.map((y, index) => /*#__PURE__*/
|
|
1493
|
+
}, "door-hinge-".concat(index))), isGlassDoor && isFrameVisible && glassHingeYPositions.map((y, index) => /*#__PURE__*/jsx(GlassHinge, {
|
|
2874
1494
|
position: [0, y, doorOffsetZ],
|
|
2875
1495
|
pivot: doorPivot,
|
|
2876
1496
|
frameSideWidth: sidesFrameWidthM,
|
|
2877
1497
|
doorDepthM: doorDepthM,
|
|
2878
1498
|
material: hingeBodyMaterial,
|
|
2879
1499
|
gasketMaterial: gasketMaterial
|
|
2880
|
-
}, "glass-hinge-".concat(index))), /*#__PURE__*/
|
|
1500
|
+
}, "glass-hinge-".concat(index))), /*#__PURE__*/jsxs("group", {
|
|
2881
1501
|
position: [-hingeSideX, 0, doorOffsetZ],
|
|
2882
|
-
children: [/*#__PURE__*/
|
|
1502
|
+
children: [/*#__PURE__*/jsx("mesh", {
|
|
2883
1503
|
castShadow: true,
|
|
2884
|
-
children: /*#__PURE__*/
|
|
1504
|
+
children: /*#__PURE__*/jsxs(Geometry, {
|
|
2885
1505
|
useGroups: true,
|
|
2886
|
-
children: [/*#__PURE__*/
|
|
1506
|
+
children: [/*#__PURE__*/jsx(Base, {
|
|
2887
1507
|
name: "door-base",
|
|
2888
1508
|
material: doorMaterial,
|
|
2889
|
-
children: /*#__PURE__*/
|
|
1509
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2890
1510
|
args: [doorWidthM, mainDoorHeightM, doorDepthM]
|
|
2891
1511
|
})
|
|
2892
|
-
}), /*#__PURE__*/
|
|
1512
|
+
}), /*#__PURE__*/jsx(DoorStopCuts, {
|
|
2893
1513
|
visible: frameType === "WDGF_WDG100" || frameType === "WF_100" || frameType === "WF_FLI",
|
|
2894
1514
|
width: doorWidthM,
|
|
2895
1515
|
height: totalOpeningHeightM,
|
|
@@ -2900,7 +1520,7 @@ function DoorModels(_ref3) {
|
|
|
2900
1520
|
glassDepthOffset: GlassPanelDepthM / 2,
|
|
2901
1521
|
material: doorMaterial,
|
|
2902
1522
|
setName: "1"
|
|
2903
|
-
}), /*#__PURE__*/
|
|
1523
|
+
}), /*#__PURE__*/jsx(DoorStopCuts, {
|
|
2904
1524
|
visible: frameType === "WDGF_WDG100" || frameType === "WF_100" || frameType === "WF_FLI",
|
|
2905
1525
|
width: doorWidthM,
|
|
2906
1526
|
height: totalOpeningHeightM,
|
|
@@ -2911,53 +1531,53 @@ function DoorModels(_ref3) {
|
|
|
2911
1531
|
glassDepthOffset: GlassPanelDepthM / 2,
|
|
2912
1532
|
material: doorMaterial,
|
|
2913
1533
|
setName: "2"
|
|
2914
|
-
}), glassVisible && /*#__PURE__*/
|
|
2915
|
-
children: [/*#__PURE__*/
|
|
1534
|
+
}), glassVisible && /*#__PURE__*/jsxs(Fragment, {
|
|
1535
|
+
children: [/*#__PURE__*/jsx("mesh", {
|
|
2916
1536
|
position: [0, 0, frontGlassOffsetZ],
|
|
2917
1537
|
castShadow: true,
|
|
2918
1538
|
material: glassInfillMaterial,
|
|
2919
|
-
children: /*#__PURE__*/
|
|
1539
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2920
1540
|
args: [doorWidthM, mainDoorHeightM, GlassPanelDepthM]
|
|
2921
1541
|
})
|
|
2922
|
-
}), frameType !== "WDGF_WDG100" && frameType !== "WF_100" && /*#__PURE__*/
|
|
1542
|
+
}), frameType !== "WDGF_WDG100" && frameType !== "WF_100" && /*#__PURE__*/jsx("mesh", {
|
|
2923
1543
|
position: [0, 0, backGlassOffsetZ],
|
|
2924
1544
|
castShadow: true,
|
|
2925
1545
|
material: glassInfillMaterial,
|
|
2926
|
-
children: /*#__PURE__*/
|
|
1546
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2927
1547
|
args: [doorWidthM, mainDoorHeightM, GlassPanelDepthM]
|
|
2928
1548
|
})
|
|
2929
|
-
}), (frameType === "WDGF_WDG100" || frameType === "WF_100") && /*#__PURE__*/
|
|
1549
|
+
}), (frameType === "WDGF_WDG100" || frameType === "WF_100") && /*#__PURE__*/jsx("mesh", {
|
|
2930
1550
|
position: [0, -secondDoorStopWidthM / 2, backGlassOffsetZ],
|
|
2931
1551
|
castShadow: true,
|
|
2932
1552
|
material: glassInfillMaterial,
|
|
2933
|
-
children: /*#__PURE__*/
|
|
1553
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2934
1554
|
args: [doorWidthM - 2 * secondDoorStopWidthM, mainDoorHeightM - secondDoorStopWidthM, GlassPanelDepthM]
|
|
2935
1555
|
})
|
|
2936
1556
|
})]
|
|
2937
|
-
}), occulus.visible && occulusWidthM > 0 && occulusHeightM > 0 && /*#__PURE__*/
|
|
1557
|
+
}), occulus.visible && occulusWidthM > 0 && occulusHeightM > 0 && /*#__PURE__*/jsx(Subtraction, {
|
|
2938
1558
|
material: placeholderMaterial,
|
|
2939
1559
|
position: [occulusPositionXM, occulusPositionYM, 0],
|
|
2940
|
-
children: /*#__PURE__*/
|
|
1560
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2941
1561
|
args: [occulusWidthM, occulusHeightM, doorDepthM + 0.01]
|
|
2942
1562
|
})
|
|
2943
1563
|
})]
|
|
2944
1564
|
})
|
|
2945
|
-
}), occulus.visible && occulus.infillVisible && occulusWidthM > 0 && occulusHeightM > 0 && /*#__PURE__*/
|
|
1565
|
+
}), occulus.visible && occulus.infillVisible && occulusWidthM > 0 && occulusHeightM > 0 && /*#__PURE__*/jsx("mesh", {
|
|
2946
1566
|
position: [occulusPositionXM, occulusPositionYM, 0],
|
|
2947
1567
|
castShadow: true,
|
|
2948
1568
|
material: occulusInfillMaterial,
|
|
2949
|
-
children: /*#__PURE__*/
|
|
1569
|
+
children: /*#__PURE__*/jsx("boxGeometry", {
|
|
2950
1570
|
args: [occulusWidthM, occulusHeightM, occulusInfillDepthM]
|
|
2951
1571
|
})
|
|
2952
1572
|
})]
|
|
2953
1573
|
})]
|
|
2954
|
-
}), isPlaneVisible && /*#__PURE__*/
|
|
1574
|
+
}), isPlaneVisible && /*#__PURE__*/jsxs("mesh", {
|
|
2955
1575
|
receiveShadow: true,
|
|
2956
1576
|
rotation: [-Math.PI / 2, 0, 0],
|
|
2957
1577
|
position: [0, -totalOpeningHeightM / 2 - 0.01, 0],
|
|
2958
|
-
children: [/*#__PURE__*/
|
|
1578
|
+
children: [/*#__PURE__*/jsx("planeGeometry", {
|
|
2959
1579
|
args: [10, 10]
|
|
2960
|
-
}), /*#__PURE__*/
|
|
1580
|
+
}), /*#__PURE__*/jsx("meshStandardMaterial", {
|
|
2961
1581
|
color: "#f9f9f9",
|
|
2962
1582
|
side: THREE.DoubleSide
|
|
2963
1583
|
})]
|
|
@@ -2970,8 +1590,8 @@ const DoorConfigurator = _ref => {
|
|
|
2970
1590
|
doorName,
|
|
2971
1591
|
showInterface = true
|
|
2972
1592
|
} = _ref;
|
|
2973
|
-
return /*#__PURE__*/
|
|
2974
|
-
children: /*#__PURE__*/
|
|
1593
|
+
return /*#__PURE__*/jsx(ConfiguratorProvider, {
|
|
1594
|
+
children: /*#__PURE__*/jsx(DoorModels, {
|
|
2975
1595
|
doorName: doorName
|
|
2976
1596
|
})
|
|
2977
1597
|
});
|