@measured/puck 0.13.0-canary.10a6025 → 0.13.0-canary.1c4b97f
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/README.md +2 -2
- package/dist/{Config-4367c689.d.ts → Config-5804f327.d.ts} +1 -1
- package/dist/index.css +27 -30
- package/dist/index.d.ts +10 -12
- package/dist/index.js +621 -2849
- package/dist/rsc.d.ts +3 -3
- package/dist/rsc.js +1 -4
- package/package.json +2 -4
package/dist/index.js
CHANGED
@@ -143,962 +143,6 @@ var require_classnames = __commonJS({
|
|
143
143
|
}
|
144
144
|
});
|
145
145
|
|
146
|
-
// ../../node_modules/react-is/cjs/react-is.production.min.js
|
147
|
-
var require_react_is_production_min = __commonJS({
|
148
|
-
"../../node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
149
|
-
"use strict";
|
150
|
-
init_react_import();
|
151
|
-
var b = "function" === typeof Symbol && Symbol.for;
|
152
|
-
var c = b ? Symbol.for("react.element") : 60103;
|
153
|
-
var d = b ? Symbol.for("react.portal") : 60106;
|
154
|
-
var e = b ? Symbol.for("react.fragment") : 60107;
|
155
|
-
var f = b ? Symbol.for("react.strict_mode") : 60108;
|
156
|
-
var g = b ? Symbol.for("react.profiler") : 60114;
|
157
|
-
var h = b ? Symbol.for("react.provider") : 60109;
|
158
|
-
var k = b ? Symbol.for("react.context") : 60110;
|
159
|
-
var l = b ? Symbol.for("react.async_mode") : 60111;
|
160
|
-
var m = b ? Symbol.for("react.concurrent_mode") : 60111;
|
161
|
-
var n = b ? Symbol.for("react.forward_ref") : 60112;
|
162
|
-
var p = b ? Symbol.for("react.suspense") : 60113;
|
163
|
-
var q = b ? Symbol.for("react.suspense_list") : 60120;
|
164
|
-
var r = b ? Symbol.for("react.memo") : 60115;
|
165
|
-
var t = b ? Symbol.for("react.lazy") : 60116;
|
166
|
-
var v = b ? Symbol.for("react.block") : 60121;
|
167
|
-
var w = b ? Symbol.for("react.fundamental") : 60117;
|
168
|
-
var x = b ? Symbol.for("react.responder") : 60118;
|
169
|
-
var y = b ? Symbol.for("react.scope") : 60119;
|
170
|
-
function z(a) {
|
171
|
-
if ("object" === typeof a && null !== a) {
|
172
|
-
var u = a.$$typeof;
|
173
|
-
switch (u) {
|
174
|
-
case c:
|
175
|
-
switch (a = a.type, a) {
|
176
|
-
case l:
|
177
|
-
case m:
|
178
|
-
case e:
|
179
|
-
case g:
|
180
|
-
case f:
|
181
|
-
case p:
|
182
|
-
return a;
|
183
|
-
default:
|
184
|
-
switch (a = a && a.$$typeof, a) {
|
185
|
-
case k:
|
186
|
-
case n:
|
187
|
-
case t:
|
188
|
-
case r:
|
189
|
-
case h:
|
190
|
-
return a;
|
191
|
-
default:
|
192
|
-
return u;
|
193
|
-
}
|
194
|
-
}
|
195
|
-
case d:
|
196
|
-
return u;
|
197
|
-
}
|
198
|
-
}
|
199
|
-
}
|
200
|
-
function A(a) {
|
201
|
-
return z(a) === m;
|
202
|
-
}
|
203
|
-
exports.AsyncMode = l;
|
204
|
-
exports.ConcurrentMode = m;
|
205
|
-
exports.ContextConsumer = k;
|
206
|
-
exports.ContextProvider = h;
|
207
|
-
exports.Element = c;
|
208
|
-
exports.ForwardRef = n;
|
209
|
-
exports.Fragment = e;
|
210
|
-
exports.Lazy = t;
|
211
|
-
exports.Memo = r;
|
212
|
-
exports.Portal = d;
|
213
|
-
exports.Profiler = g;
|
214
|
-
exports.StrictMode = f;
|
215
|
-
exports.Suspense = p;
|
216
|
-
exports.isAsyncMode = function(a) {
|
217
|
-
return A(a) || z(a) === l;
|
218
|
-
};
|
219
|
-
exports.isConcurrentMode = A;
|
220
|
-
exports.isContextConsumer = function(a) {
|
221
|
-
return z(a) === k;
|
222
|
-
};
|
223
|
-
exports.isContextProvider = function(a) {
|
224
|
-
return z(a) === h;
|
225
|
-
};
|
226
|
-
exports.isElement = function(a) {
|
227
|
-
return "object" === typeof a && null !== a && a.$$typeof === c;
|
228
|
-
};
|
229
|
-
exports.isForwardRef = function(a) {
|
230
|
-
return z(a) === n;
|
231
|
-
};
|
232
|
-
exports.isFragment = function(a) {
|
233
|
-
return z(a) === e;
|
234
|
-
};
|
235
|
-
exports.isLazy = function(a) {
|
236
|
-
return z(a) === t;
|
237
|
-
};
|
238
|
-
exports.isMemo = function(a) {
|
239
|
-
return z(a) === r;
|
240
|
-
};
|
241
|
-
exports.isPortal = function(a) {
|
242
|
-
return z(a) === d;
|
243
|
-
};
|
244
|
-
exports.isProfiler = function(a) {
|
245
|
-
return z(a) === g;
|
246
|
-
};
|
247
|
-
exports.isStrictMode = function(a) {
|
248
|
-
return z(a) === f;
|
249
|
-
};
|
250
|
-
exports.isSuspense = function(a) {
|
251
|
-
return z(a) === p;
|
252
|
-
};
|
253
|
-
exports.isValidElementType = function(a) {
|
254
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
255
|
-
};
|
256
|
-
exports.typeOf = z;
|
257
|
-
}
|
258
|
-
});
|
259
|
-
|
260
|
-
// ../../node_modules/react-is/cjs/react-is.development.js
|
261
|
-
var require_react_is_development = __commonJS({
|
262
|
-
"../../node_modules/react-is/cjs/react-is.development.js"(exports) {
|
263
|
-
"use strict";
|
264
|
-
init_react_import();
|
265
|
-
if (process.env.NODE_ENV !== "production") {
|
266
|
-
(function() {
|
267
|
-
"use strict";
|
268
|
-
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
269
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
270
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
271
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
272
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
273
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
274
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
275
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
276
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
277
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
278
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
279
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
280
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
281
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
282
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
283
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
284
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
285
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
286
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
287
|
-
function isValidElementType(type) {
|
288
|
-
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
289
|
-
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);
|
290
|
-
}
|
291
|
-
function typeOf(object) {
|
292
|
-
if (typeof object === "object" && object !== null) {
|
293
|
-
var $$typeof = object.$$typeof;
|
294
|
-
switch ($$typeof) {
|
295
|
-
case REACT_ELEMENT_TYPE:
|
296
|
-
var type = object.type;
|
297
|
-
switch (type) {
|
298
|
-
case REACT_ASYNC_MODE_TYPE:
|
299
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
300
|
-
case REACT_FRAGMENT_TYPE:
|
301
|
-
case REACT_PROFILER_TYPE:
|
302
|
-
case REACT_STRICT_MODE_TYPE:
|
303
|
-
case REACT_SUSPENSE_TYPE:
|
304
|
-
return type;
|
305
|
-
default:
|
306
|
-
var $$typeofType = type && type.$$typeof;
|
307
|
-
switch ($$typeofType) {
|
308
|
-
case REACT_CONTEXT_TYPE:
|
309
|
-
case REACT_FORWARD_REF_TYPE:
|
310
|
-
case REACT_LAZY_TYPE:
|
311
|
-
case REACT_MEMO_TYPE:
|
312
|
-
case REACT_PROVIDER_TYPE:
|
313
|
-
return $$typeofType;
|
314
|
-
default:
|
315
|
-
return $$typeof;
|
316
|
-
}
|
317
|
-
}
|
318
|
-
case REACT_PORTAL_TYPE:
|
319
|
-
return $$typeof;
|
320
|
-
}
|
321
|
-
}
|
322
|
-
return void 0;
|
323
|
-
}
|
324
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
325
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
326
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
327
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
328
|
-
var Element = REACT_ELEMENT_TYPE;
|
329
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
330
|
-
var Fragment14 = REACT_FRAGMENT_TYPE;
|
331
|
-
var Lazy = REACT_LAZY_TYPE;
|
332
|
-
var Memo = REACT_MEMO_TYPE;
|
333
|
-
var Portal = REACT_PORTAL_TYPE;
|
334
|
-
var Profiler = REACT_PROFILER_TYPE;
|
335
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
336
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
337
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
338
|
-
function isAsyncMode(object) {
|
339
|
-
{
|
340
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
341
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
342
|
-
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.");
|
343
|
-
}
|
344
|
-
}
|
345
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
346
|
-
}
|
347
|
-
function isConcurrentMode(object) {
|
348
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
349
|
-
}
|
350
|
-
function isContextConsumer(object) {
|
351
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
352
|
-
}
|
353
|
-
function isContextProvider(object) {
|
354
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
355
|
-
}
|
356
|
-
function isElement(object) {
|
357
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
358
|
-
}
|
359
|
-
function isForwardRef(object) {
|
360
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
361
|
-
}
|
362
|
-
function isFragment(object) {
|
363
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
364
|
-
}
|
365
|
-
function isLazy(object) {
|
366
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
367
|
-
}
|
368
|
-
function isMemo(object) {
|
369
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
370
|
-
}
|
371
|
-
function isPortal(object) {
|
372
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
373
|
-
}
|
374
|
-
function isProfiler(object) {
|
375
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
376
|
-
}
|
377
|
-
function isStrictMode(object) {
|
378
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
379
|
-
}
|
380
|
-
function isSuspense(object) {
|
381
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
382
|
-
}
|
383
|
-
exports.AsyncMode = AsyncMode;
|
384
|
-
exports.ConcurrentMode = ConcurrentMode;
|
385
|
-
exports.ContextConsumer = ContextConsumer;
|
386
|
-
exports.ContextProvider = ContextProvider;
|
387
|
-
exports.Element = Element;
|
388
|
-
exports.ForwardRef = ForwardRef;
|
389
|
-
exports.Fragment = Fragment14;
|
390
|
-
exports.Lazy = Lazy;
|
391
|
-
exports.Memo = Memo;
|
392
|
-
exports.Portal = Portal;
|
393
|
-
exports.Profiler = Profiler;
|
394
|
-
exports.StrictMode = StrictMode;
|
395
|
-
exports.Suspense = Suspense;
|
396
|
-
exports.isAsyncMode = isAsyncMode;
|
397
|
-
exports.isConcurrentMode = isConcurrentMode;
|
398
|
-
exports.isContextConsumer = isContextConsumer;
|
399
|
-
exports.isContextProvider = isContextProvider;
|
400
|
-
exports.isElement = isElement;
|
401
|
-
exports.isForwardRef = isForwardRef;
|
402
|
-
exports.isFragment = isFragment;
|
403
|
-
exports.isLazy = isLazy;
|
404
|
-
exports.isMemo = isMemo;
|
405
|
-
exports.isPortal = isPortal;
|
406
|
-
exports.isProfiler = isProfiler;
|
407
|
-
exports.isStrictMode = isStrictMode;
|
408
|
-
exports.isSuspense = isSuspense;
|
409
|
-
exports.isValidElementType = isValidElementType;
|
410
|
-
exports.typeOf = typeOf;
|
411
|
-
})();
|
412
|
-
}
|
413
|
-
}
|
414
|
-
});
|
415
|
-
|
416
|
-
// ../../node_modules/react-is/index.js
|
417
|
-
var require_react_is = __commonJS({
|
418
|
-
"../../node_modules/react-is/index.js"(exports, module2) {
|
419
|
-
"use strict";
|
420
|
-
init_react_import();
|
421
|
-
if (process.env.NODE_ENV === "production") {
|
422
|
-
module2.exports = require_react_is_production_min();
|
423
|
-
} else {
|
424
|
-
module2.exports = require_react_is_development();
|
425
|
-
}
|
426
|
-
}
|
427
|
-
});
|
428
|
-
|
429
|
-
// ../../node_modules/object-assign/index.js
|
430
|
-
var require_object_assign = __commonJS({
|
431
|
-
"../../node_modules/object-assign/index.js"(exports, module2) {
|
432
|
-
"use strict";
|
433
|
-
init_react_import();
|
434
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
435
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
436
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
437
|
-
function toObject(val) {
|
438
|
-
if (val === null || val === void 0) {
|
439
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
440
|
-
}
|
441
|
-
return Object(val);
|
442
|
-
}
|
443
|
-
function shouldUseNative() {
|
444
|
-
try {
|
445
|
-
if (!Object.assign) {
|
446
|
-
return false;
|
447
|
-
}
|
448
|
-
var test1 = new String("abc");
|
449
|
-
test1[5] = "de";
|
450
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
451
|
-
return false;
|
452
|
-
}
|
453
|
-
var test2 = {};
|
454
|
-
for (var i = 0; i < 10; i++) {
|
455
|
-
test2["_" + String.fromCharCode(i)] = i;
|
456
|
-
}
|
457
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
|
458
|
-
return test2[n];
|
459
|
-
});
|
460
|
-
if (order2.join("") !== "0123456789") {
|
461
|
-
return false;
|
462
|
-
}
|
463
|
-
var test3 = {};
|
464
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
465
|
-
test3[letter] = letter;
|
466
|
-
});
|
467
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
468
|
-
return false;
|
469
|
-
}
|
470
|
-
return true;
|
471
|
-
} catch (err) {
|
472
|
-
return false;
|
473
|
-
}
|
474
|
-
}
|
475
|
-
module2.exports = shouldUseNative() ? Object.assign : function(target, source) {
|
476
|
-
var from;
|
477
|
-
var to = toObject(target);
|
478
|
-
var symbols;
|
479
|
-
for (var s = 1; s < arguments.length; s++) {
|
480
|
-
from = Object(arguments[s]);
|
481
|
-
for (var key in from) {
|
482
|
-
if (hasOwnProperty.call(from, key)) {
|
483
|
-
to[key] = from[key];
|
484
|
-
}
|
485
|
-
}
|
486
|
-
if (getOwnPropertySymbols) {
|
487
|
-
symbols = getOwnPropertySymbols(from);
|
488
|
-
for (var i = 0; i < symbols.length; i++) {
|
489
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
490
|
-
to[symbols[i]] = from[symbols[i]];
|
491
|
-
}
|
492
|
-
}
|
493
|
-
}
|
494
|
-
}
|
495
|
-
return to;
|
496
|
-
};
|
497
|
-
}
|
498
|
-
});
|
499
|
-
|
500
|
-
// ../../node_modules/prop-types/lib/ReactPropTypesSecret.js
|
501
|
-
var require_ReactPropTypesSecret = __commonJS({
|
502
|
-
"../../node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports, module2) {
|
503
|
-
"use strict";
|
504
|
-
init_react_import();
|
505
|
-
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
506
|
-
module2.exports = ReactPropTypesSecret;
|
507
|
-
}
|
508
|
-
});
|
509
|
-
|
510
|
-
// ../../node_modules/prop-types/lib/has.js
|
511
|
-
var require_has = __commonJS({
|
512
|
-
"../../node_modules/prop-types/lib/has.js"(exports, module2) {
|
513
|
-
init_react_import();
|
514
|
-
module2.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
515
|
-
}
|
516
|
-
});
|
517
|
-
|
518
|
-
// ../../node_modules/prop-types/checkPropTypes.js
|
519
|
-
var require_checkPropTypes = __commonJS({
|
520
|
-
"../../node_modules/prop-types/checkPropTypes.js"(exports, module2) {
|
521
|
-
"use strict";
|
522
|
-
init_react_import();
|
523
|
-
var printWarning = function() {
|
524
|
-
};
|
525
|
-
if (process.env.NODE_ENV !== "production") {
|
526
|
-
ReactPropTypesSecret = require_ReactPropTypesSecret();
|
527
|
-
loggedTypeFailures = {};
|
528
|
-
has = require_has();
|
529
|
-
printWarning = function(text) {
|
530
|
-
var message = "Warning: " + text;
|
531
|
-
if (typeof console !== "undefined") {
|
532
|
-
console.error(message);
|
533
|
-
}
|
534
|
-
try {
|
535
|
-
throw new Error(message);
|
536
|
-
} catch (x) {
|
537
|
-
}
|
538
|
-
};
|
539
|
-
}
|
540
|
-
var ReactPropTypesSecret;
|
541
|
-
var loggedTypeFailures;
|
542
|
-
var has;
|
543
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
544
|
-
if (process.env.NODE_ENV !== "production") {
|
545
|
-
for (var typeSpecName in typeSpecs) {
|
546
|
-
if (has(typeSpecs, typeSpecName)) {
|
547
|
-
var error;
|
548
|
-
try {
|
549
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
550
|
-
var err = Error(
|
551
|
-
(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`."
|
552
|
-
);
|
553
|
-
err.name = "Invariant Violation";
|
554
|
-
throw err;
|
555
|
-
}
|
556
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
557
|
-
} catch (ex) {
|
558
|
-
error = ex;
|
559
|
-
}
|
560
|
-
if (error && !(error instanceof Error)) {
|
561
|
-
printWarning(
|
562
|
-
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
563
|
-
);
|
564
|
-
}
|
565
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
566
|
-
loggedTypeFailures[error.message] = true;
|
567
|
-
var stack = getStack ? getStack() : "";
|
568
|
-
printWarning(
|
569
|
-
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
570
|
-
);
|
571
|
-
}
|
572
|
-
}
|
573
|
-
}
|
574
|
-
}
|
575
|
-
}
|
576
|
-
checkPropTypes.resetWarningCache = function() {
|
577
|
-
if (process.env.NODE_ENV !== "production") {
|
578
|
-
loggedTypeFailures = {};
|
579
|
-
}
|
580
|
-
};
|
581
|
-
module2.exports = checkPropTypes;
|
582
|
-
}
|
583
|
-
});
|
584
|
-
|
585
|
-
// ../../node_modules/prop-types/factoryWithTypeCheckers.js
|
586
|
-
var require_factoryWithTypeCheckers = __commonJS({
|
587
|
-
"../../node_modules/prop-types/factoryWithTypeCheckers.js"(exports, module2) {
|
588
|
-
"use strict";
|
589
|
-
init_react_import();
|
590
|
-
var ReactIs = require_react_is();
|
591
|
-
var assign = require_object_assign();
|
592
|
-
var ReactPropTypesSecret = require_ReactPropTypesSecret();
|
593
|
-
var has = require_has();
|
594
|
-
var checkPropTypes = require_checkPropTypes();
|
595
|
-
var printWarning = function() {
|
596
|
-
};
|
597
|
-
if (process.env.NODE_ENV !== "production") {
|
598
|
-
printWarning = function(text) {
|
599
|
-
var message = "Warning: " + text;
|
600
|
-
if (typeof console !== "undefined") {
|
601
|
-
console.error(message);
|
602
|
-
}
|
603
|
-
try {
|
604
|
-
throw new Error(message);
|
605
|
-
} catch (x) {
|
606
|
-
}
|
607
|
-
};
|
608
|
-
}
|
609
|
-
function emptyFunctionThatReturnsNull() {
|
610
|
-
return null;
|
611
|
-
}
|
612
|
-
module2.exports = function(isValidElement, throwOnDirectAccess) {
|
613
|
-
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
614
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
615
|
-
function getIteratorFn(maybeIterable) {
|
616
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
617
|
-
if (typeof iteratorFn === "function") {
|
618
|
-
return iteratorFn;
|
619
|
-
}
|
620
|
-
}
|
621
|
-
var ANONYMOUS = "<<anonymous>>";
|
622
|
-
var ReactPropTypes = {
|
623
|
-
array: createPrimitiveTypeChecker("array"),
|
624
|
-
bigint: createPrimitiveTypeChecker("bigint"),
|
625
|
-
bool: createPrimitiveTypeChecker("boolean"),
|
626
|
-
func: createPrimitiveTypeChecker("function"),
|
627
|
-
number: createPrimitiveTypeChecker("number"),
|
628
|
-
object: createPrimitiveTypeChecker("object"),
|
629
|
-
string: createPrimitiveTypeChecker("string"),
|
630
|
-
symbol: createPrimitiveTypeChecker("symbol"),
|
631
|
-
any: createAnyTypeChecker(),
|
632
|
-
arrayOf: createArrayOfTypeChecker,
|
633
|
-
element: createElementTypeChecker(),
|
634
|
-
elementType: createElementTypeTypeChecker(),
|
635
|
-
instanceOf: createInstanceTypeChecker,
|
636
|
-
node: createNodeChecker(),
|
637
|
-
objectOf: createObjectOfTypeChecker,
|
638
|
-
oneOf: createEnumTypeChecker,
|
639
|
-
oneOfType: createUnionTypeChecker,
|
640
|
-
shape: createShapeTypeChecker,
|
641
|
-
exact: createStrictShapeTypeChecker
|
642
|
-
};
|
643
|
-
function is(x, y) {
|
644
|
-
if (x === y) {
|
645
|
-
return x !== 0 || 1 / x === 1 / y;
|
646
|
-
} else {
|
647
|
-
return x !== x && y !== y;
|
648
|
-
}
|
649
|
-
}
|
650
|
-
function PropTypeError(message, data) {
|
651
|
-
this.message = message;
|
652
|
-
this.data = data && typeof data === "object" ? data : {};
|
653
|
-
this.stack = "";
|
654
|
-
}
|
655
|
-
PropTypeError.prototype = Error.prototype;
|
656
|
-
function createChainableTypeChecker(validate) {
|
657
|
-
if (process.env.NODE_ENV !== "production") {
|
658
|
-
var manualPropTypeCallCache = {};
|
659
|
-
var manualPropTypeWarningCount = 0;
|
660
|
-
}
|
661
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
662
|
-
componentName = componentName || ANONYMOUS;
|
663
|
-
propFullName = propFullName || propName;
|
664
|
-
if (secret !== ReactPropTypesSecret) {
|
665
|
-
if (throwOnDirectAccess) {
|
666
|
-
var err = new Error(
|
667
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
668
|
-
);
|
669
|
-
err.name = "Invariant Violation";
|
670
|
-
throw err;
|
671
|
-
} else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
|
672
|
-
var cacheKey = componentName + ":" + propName;
|
673
|
-
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
674
|
-
manualPropTypeWarningCount < 3) {
|
675
|
-
printWarning(
|
676
|
-
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
677
|
-
);
|
678
|
-
manualPropTypeCallCache[cacheKey] = true;
|
679
|
-
manualPropTypeWarningCount++;
|
680
|
-
}
|
681
|
-
}
|
682
|
-
}
|
683
|
-
if (props[propName] == null) {
|
684
|
-
if (isRequired) {
|
685
|
-
if (props[propName] === null) {
|
686
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
|
687
|
-
}
|
688
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
|
689
|
-
}
|
690
|
-
return null;
|
691
|
-
} else {
|
692
|
-
return validate(props, propName, componentName, location, propFullName);
|
693
|
-
}
|
694
|
-
}
|
695
|
-
var chainedCheckType = checkType.bind(null, false);
|
696
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
697
|
-
return chainedCheckType;
|
698
|
-
}
|
699
|
-
function createPrimitiveTypeChecker(expectedType) {
|
700
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
701
|
-
var propValue = props[propName];
|
702
|
-
var propType = getPropType(propValue);
|
703
|
-
if (propType !== expectedType) {
|
704
|
-
var preciseType = getPreciseType(propValue);
|
705
|
-
return new PropTypeError(
|
706
|
-
"Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
|
707
|
-
{ expectedType }
|
708
|
-
);
|
709
|
-
}
|
710
|
-
return null;
|
711
|
-
}
|
712
|
-
return createChainableTypeChecker(validate);
|
713
|
-
}
|
714
|
-
function createAnyTypeChecker() {
|
715
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
716
|
-
}
|
717
|
-
function createArrayOfTypeChecker(typeChecker) {
|
718
|
-
function validate(props, propName, componentName, location, propFullName) {
|
719
|
-
if (typeof typeChecker !== "function") {
|
720
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
|
721
|
-
}
|
722
|
-
var propValue = props[propName];
|
723
|
-
if (!Array.isArray(propValue)) {
|
724
|
-
var propType = getPropType(propValue);
|
725
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
726
|
-
}
|
727
|
-
for (var i = 0; i < propValue.length; i++) {
|
728
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
729
|
-
if (error instanceof Error) {
|
730
|
-
return error;
|
731
|
-
}
|
732
|
-
}
|
733
|
-
return null;
|
734
|
-
}
|
735
|
-
return createChainableTypeChecker(validate);
|
736
|
-
}
|
737
|
-
function createElementTypeChecker() {
|
738
|
-
function validate(props, propName, componentName, location, propFullName) {
|
739
|
-
var propValue = props[propName];
|
740
|
-
if (!isValidElement(propValue)) {
|
741
|
-
var propType = getPropType(propValue);
|
742
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
743
|
-
}
|
744
|
-
return null;
|
745
|
-
}
|
746
|
-
return createChainableTypeChecker(validate);
|
747
|
-
}
|
748
|
-
function createElementTypeTypeChecker() {
|
749
|
-
function validate(props, propName, componentName, location, propFullName) {
|
750
|
-
var propValue = props[propName];
|
751
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
752
|
-
var propType = getPropType(propValue);
|
753
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
754
|
-
}
|
755
|
-
return null;
|
756
|
-
}
|
757
|
-
return createChainableTypeChecker(validate);
|
758
|
-
}
|
759
|
-
function createInstanceTypeChecker(expectedClass) {
|
760
|
-
function validate(props, propName, componentName, location, propFullName) {
|
761
|
-
if (!(props[propName] instanceof expectedClass)) {
|
762
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
763
|
-
var actualClassName = getClassName23(props[propName]);
|
764
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
765
|
-
}
|
766
|
-
return null;
|
767
|
-
}
|
768
|
-
return createChainableTypeChecker(validate);
|
769
|
-
}
|
770
|
-
function createEnumTypeChecker(expectedValues) {
|
771
|
-
if (!Array.isArray(expectedValues)) {
|
772
|
-
if (process.env.NODE_ENV !== "production") {
|
773
|
-
if (arguments.length > 1) {
|
774
|
-
printWarning(
|
775
|
-
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
776
|
-
);
|
777
|
-
} else {
|
778
|
-
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
779
|
-
}
|
780
|
-
}
|
781
|
-
return emptyFunctionThatReturnsNull;
|
782
|
-
}
|
783
|
-
function validate(props, propName, componentName, location, propFullName) {
|
784
|
-
var propValue = props[propName];
|
785
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
786
|
-
if (is(propValue, expectedValues[i])) {
|
787
|
-
return null;
|
788
|
-
}
|
789
|
-
}
|
790
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
791
|
-
var type = getPreciseType(value);
|
792
|
-
if (type === "symbol") {
|
793
|
-
return String(value);
|
794
|
-
}
|
795
|
-
return value;
|
796
|
-
});
|
797
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
|
798
|
-
}
|
799
|
-
return createChainableTypeChecker(validate);
|
800
|
-
}
|
801
|
-
function createObjectOfTypeChecker(typeChecker) {
|
802
|
-
function validate(props, propName, componentName, location, propFullName) {
|
803
|
-
if (typeof typeChecker !== "function") {
|
804
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
|
805
|
-
}
|
806
|
-
var propValue = props[propName];
|
807
|
-
var propType = getPropType(propValue);
|
808
|
-
if (propType !== "object") {
|
809
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
810
|
-
}
|
811
|
-
for (var key in propValue) {
|
812
|
-
if (has(propValue, key)) {
|
813
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
814
|
-
if (error instanceof Error) {
|
815
|
-
return error;
|
816
|
-
}
|
817
|
-
}
|
818
|
-
}
|
819
|
-
return null;
|
820
|
-
}
|
821
|
-
return createChainableTypeChecker(validate);
|
822
|
-
}
|
823
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
824
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
825
|
-
process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
826
|
-
return emptyFunctionThatReturnsNull;
|
827
|
-
}
|
828
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
829
|
-
var checker = arrayOfTypeCheckers[i];
|
830
|
-
if (typeof checker !== "function") {
|
831
|
-
printWarning(
|
832
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
833
|
-
);
|
834
|
-
return emptyFunctionThatReturnsNull;
|
835
|
-
}
|
836
|
-
}
|
837
|
-
function validate(props, propName, componentName, location, propFullName) {
|
838
|
-
var expectedTypes = [];
|
839
|
-
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
840
|
-
var checker2 = arrayOfTypeCheckers[i2];
|
841
|
-
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
842
|
-
if (checkerResult == null) {
|
843
|
-
return null;
|
844
|
-
}
|
845
|
-
if (checkerResult.data && has(checkerResult.data, "expectedType")) {
|
846
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
847
|
-
}
|
848
|
-
}
|
849
|
-
var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
|
850
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
|
851
|
-
}
|
852
|
-
return createChainableTypeChecker(validate);
|
853
|
-
}
|
854
|
-
function createNodeChecker() {
|
855
|
-
function validate(props, propName, componentName, location, propFullName) {
|
856
|
-
if (!isNode(props[propName])) {
|
857
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
858
|
-
}
|
859
|
-
return null;
|
860
|
-
}
|
861
|
-
return createChainableTypeChecker(validate);
|
862
|
-
}
|
863
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
864
|
-
return new PropTypeError(
|
865
|
-
(componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
|
866
|
-
);
|
867
|
-
}
|
868
|
-
function createShapeTypeChecker(shapeTypes) {
|
869
|
-
function validate(props, propName, componentName, location, propFullName) {
|
870
|
-
var propValue = props[propName];
|
871
|
-
var propType = getPropType(propValue);
|
872
|
-
if (propType !== "object") {
|
873
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
874
|
-
}
|
875
|
-
for (var key in shapeTypes) {
|
876
|
-
var checker = shapeTypes[key];
|
877
|
-
if (typeof checker !== "function") {
|
878
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
879
|
-
}
|
880
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
881
|
-
if (error) {
|
882
|
-
return error;
|
883
|
-
}
|
884
|
-
}
|
885
|
-
return null;
|
886
|
-
}
|
887
|
-
return createChainableTypeChecker(validate);
|
888
|
-
}
|
889
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
890
|
-
function validate(props, propName, componentName, location, propFullName) {
|
891
|
-
var propValue = props[propName];
|
892
|
-
var propType = getPropType(propValue);
|
893
|
-
if (propType !== "object") {
|
894
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
895
|
-
}
|
896
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
897
|
-
for (var key in allKeys) {
|
898
|
-
var checker = shapeTypes[key];
|
899
|
-
if (has(shapeTypes, key) && typeof checker !== "function") {
|
900
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
901
|
-
}
|
902
|
-
if (!checker) {
|
903
|
-
return new PropTypeError(
|
904
|
-
"Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
|
905
|
-
);
|
906
|
-
}
|
907
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
908
|
-
if (error) {
|
909
|
-
return error;
|
910
|
-
}
|
911
|
-
}
|
912
|
-
return null;
|
913
|
-
}
|
914
|
-
return createChainableTypeChecker(validate);
|
915
|
-
}
|
916
|
-
function isNode(propValue) {
|
917
|
-
switch (typeof propValue) {
|
918
|
-
case "number":
|
919
|
-
case "string":
|
920
|
-
case "undefined":
|
921
|
-
return true;
|
922
|
-
case "boolean":
|
923
|
-
return !propValue;
|
924
|
-
case "object":
|
925
|
-
if (Array.isArray(propValue)) {
|
926
|
-
return propValue.every(isNode);
|
927
|
-
}
|
928
|
-
if (propValue === null || isValidElement(propValue)) {
|
929
|
-
return true;
|
930
|
-
}
|
931
|
-
var iteratorFn = getIteratorFn(propValue);
|
932
|
-
if (iteratorFn) {
|
933
|
-
var iterator = iteratorFn.call(propValue);
|
934
|
-
var step;
|
935
|
-
if (iteratorFn !== propValue.entries) {
|
936
|
-
while (!(step = iterator.next()).done) {
|
937
|
-
if (!isNode(step.value)) {
|
938
|
-
return false;
|
939
|
-
}
|
940
|
-
}
|
941
|
-
} else {
|
942
|
-
while (!(step = iterator.next()).done) {
|
943
|
-
var entry = step.value;
|
944
|
-
if (entry) {
|
945
|
-
if (!isNode(entry[1])) {
|
946
|
-
return false;
|
947
|
-
}
|
948
|
-
}
|
949
|
-
}
|
950
|
-
}
|
951
|
-
} else {
|
952
|
-
return false;
|
953
|
-
}
|
954
|
-
return true;
|
955
|
-
default:
|
956
|
-
return false;
|
957
|
-
}
|
958
|
-
}
|
959
|
-
function isSymbol(propType, propValue) {
|
960
|
-
if (propType === "symbol") {
|
961
|
-
return true;
|
962
|
-
}
|
963
|
-
if (!propValue) {
|
964
|
-
return false;
|
965
|
-
}
|
966
|
-
if (propValue["@@toStringTag"] === "Symbol") {
|
967
|
-
return true;
|
968
|
-
}
|
969
|
-
if (typeof Symbol === "function" && propValue instanceof Symbol) {
|
970
|
-
return true;
|
971
|
-
}
|
972
|
-
return false;
|
973
|
-
}
|
974
|
-
function getPropType(propValue) {
|
975
|
-
var propType = typeof propValue;
|
976
|
-
if (Array.isArray(propValue)) {
|
977
|
-
return "array";
|
978
|
-
}
|
979
|
-
if (propValue instanceof RegExp) {
|
980
|
-
return "object";
|
981
|
-
}
|
982
|
-
if (isSymbol(propType, propValue)) {
|
983
|
-
return "symbol";
|
984
|
-
}
|
985
|
-
return propType;
|
986
|
-
}
|
987
|
-
function getPreciseType(propValue) {
|
988
|
-
if (typeof propValue === "undefined" || propValue === null) {
|
989
|
-
return "" + propValue;
|
990
|
-
}
|
991
|
-
var propType = getPropType(propValue);
|
992
|
-
if (propType === "object") {
|
993
|
-
if (propValue instanceof Date) {
|
994
|
-
return "date";
|
995
|
-
} else if (propValue instanceof RegExp) {
|
996
|
-
return "regexp";
|
997
|
-
}
|
998
|
-
}
|
999
|
-
return propType;
|
1000
|
-
}
|
1001
|
-
function getPostfixForTypeWarning(value) {
|
1002
|
-
var type = getPreciseType(value);
|
1003
|
-
switch (type) {
|
1004
|
-
case "array":
|
1005
|
-
case "object":
|
1006
|
-
return "an " + type;
|
1007
|
-
case "boolean":
|
1008
|
-
case "date":
|
1009
|
-
case "regexp":
|
1010
|
-
return "a " + type;
|
1011
|
-
default:
|
1012
|
-
return type;
|
1013
|
-
}
|
1014
|
-
}
|
1015
|
-
function getClassName23(propValue) {
|
1016
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
1017
|
-
return ANONYMOUS;
|
1018
|
-
}
|
1019
|
-
return propValue.constructor.name;
|
1020
|
-
}
|
1021
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
1022
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
1023
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
1024
|
-
return ReactPropTypes;
|
1025
|
-
};
|
1026
|
-
}
|
1027
|
-
});
|
1028
|
-
|
1029
|
-
// ../../node_modules/prop-types/factoryWithThrowingShims.js
|
1030
|
-
var require_factoryWithThrowingShims = __commonJS({
|
1031
|
-
"../../node_modules/prop-types/factoryWithThrowingShims.js"(exports, module2) {
|
1032
|
-
"use strict";
|
1033
|
-
init_react_import();
|
1034
|
-
var ReactPropTypesSecret = require_ReactPropTypesSecret();
|
1035
|
-
function emptyFunction() {
|
1036
|
-
}
|
1037
|
-
function emptyFunctionWithReset() {
|
1038
|
-
}
|
1039
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
1040
|
-
module2.exports = function() {
|
1041
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
1042
|
-
if (secret === ReactPropTypesSecret) {
|
1043
|
-
return;
|
1044
|
-
}
|
1045
|
-
var err = new Error(
|
1046
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
1047
|
-
);
|
1048
|
-
err.name = "Invariant Violation";
|
1049
|
-
throw err;
|
1050
|
-
}
|
1051
|
-
;
|
1052
|
-
shim.isRequired = shim;
|
1053
|
-
function getShim() {
|
1054
|
-
return shim;
|
1055
|
-
}
|
1056
|
-
;
|
1057
|
-
var ReactPropTypes = {
|
1058
|
-
array: shim,
|
1059
|
-
bigint: shim,
|
1060
|
-
bool: shim,
|
1061
|
-
func: shim,
|
1062
|
-
number: shim,
|
1063
|
-
object: shim,
|
1064
|
-
string: shim,
|
1065
|
-
symbol: shim,
|
1066
|
-
any: shim,
|
1067
|
-
arrayOf: getShim,
|
1068
|
-
element: shim,
|
1069
|
-
elementType: shim,
|
1070
|
-
instanceOf: getShim,
|
1071
|
-
node: shim,
|
1072
|
-
objectOf: getShim,
|
1073
|
-
oneOf: getShim,
|
1074
|
-
oneOfType: getShim,
|
1075
|
-
shape: getShim,
|
1076
|
-
exact: getShim,
|
1077
|
-
checkPropTypes: emptyFunctionWithReset,
|
1078
|
-
resetWarningCache: emptyFunction
|
1079
|
-
};
|
1080
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
1081
|
-
return ReactPropTypes;
|
1082
|
-
};
|
1083
|
-
}
|
1084
|
-
});
|
1085
|
-
|
1086
|
-
// ../../node_modules/prop-types/index.js
|
1087
|
-
var require_prop_types = __commonJS({
|
1088
|
-
"../../node_modules/prop-types/index.js"(exports, module2) {
|
1089
|
-
init_react_import();
|
1090
|
-
if (process.env.NODE_ENV !== "production") {
|
1091
|
-
ReactIs = require_react_is();
|
1092
|
-
throwOnDirectAccess = true;
|
1093
|
-
module2.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
1094
|
-
} else {
|
1095
|
-
module2.exports = require_factoryWithThrowingShims()();
|
1096
|
-
}
|
1097
|
-
var ReactIs;
|
1098
|
-
var throwOnDirectAccess;
|
1099
|
-
}
|
1100
|
-
});
|
1101
|
-
|
1102
146
|
// ../../node_modules/scheduler/cjs/scheduler.production.min.js
|
1103
147
|
var require_scheduler_production_min = __commonJS({
|
1104
148
|
"../../node_modules/scheduler/cjs/scheduler.production.min.js"(exports) {
|
@@ -8989,9 +8033,9 @@ var require_react_dom_development = __commonJS({
|
|
8989
8033
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
8990
8034
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
8991
8035
|
}
|
8992
|
-
var
|
8036
|
+
var React2 = require("react");
|
8993
8037
|
var Scheduler = require_scheduler();
|
8994
|
-
var ReactSharedInternals =
|
8038
|
+
var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
8995
8039
|
var suppressWarning = false;
|
8996
8040
|
function setSuppressWarning(newSuppressWarning) {
|
8997
8041
|
{
|
@@ -10596,7 +9640,7 @@ var require_react_dom_development = __commonJS({
|
|
10596
9640
|
{
|
10597
9641
|
if (props.value == null) {
|
10598
9642
|
if (typeof props.children === "object" && props.children !== null) {
|
10599
|
-
|
9643
|
+
React2.Children.forEach(props.children, function(child) {
|
10600
9644
|
if (child == null) {
|
10601
9645
|
return;
|
10602
9646
|
}
|
@@ -15995,7 +15039,7 @@ var require_react_dom_development = __commonJS({
|
|
15995
15039
|
}
|
15996
15040
|
}
|
15997
15041
|
}
|
15998
|
-
function
|
15042
|
+
function createElement2(type, props, rootContainerElement, parentNamespace) {
|
15999
15043
|
var isCustomComponentTag;
|
16000
15044
|
var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
|
16001
15045
|
var domElement;
|
@@ -16856,7 +15900,7 @@ var require_react_dom_development = __commonJS({
|
|
16856
15900
|
}
|
16857
15901
|
parentNamespace = hostContextDev.namespace;
|
16858
15902
|
}
|
16859
|
-
var domElement =
|
15903
|
+
var domElement = createElement2(type, props, rootContainerInstance, parentNamespace);
|
16860
15904
|
precacheFiberNode(internalInstanceHandle, domElement);
|
16861
15905
|
updateFiberProps(domElement, props);
|
16862
15906
|
return domElement;
|
@@ -19043,7 +18087,7 @@ var require_react_dom_development = __commonJS({
|
|
19043
18087
|
}
|
19044
18088
|
}
|
19045
18089
|
var fakeInternalInstance = {};
|
19046
|
-
var emptyRefsObject = new
|
18090
|
+
var emptyRefsObject = new React2.Component().refs;
|
19047
18091
|
var didWarnAboutStateAssignmentForComponent;
|
19048
18092
|
var didWarnAboutUninitializedState;
|
19049
18093
|
var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
|
@@ -30373,1655 +29417,232 @@ Drawer.Item = DrawerItem;
|
|
30373
29417
|
|
30374
29418
|
// components/DropZone/index.tsx
|
30375
29419
|
init_react_import();
|
30376
|
-
var
|
29420
|
+
var import_react9 = require("react");
|
30377
29421
|
|
30378
29422
|
// components/DraggableComponent/index.tsx
|
30379
29423
|
init_react_import();
|
30380
|
-
var
|
29424
|
+
var import_react6 = require("react");
|
30381
29425
|
var import_dnd3 = require("@hello-pangea/dnd");
|
30382
29426
|
|
30383
29427
|
// css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css#css-module
|
30384
29428
|
init_react_import();
|
30385
29429
|
var styles_module_default3 = { "DraggableComponent": "_DraggableComponent_foluk_1", "DraggableComponent--isDragging": "_DraggableComponent--isDragging_foluk_6", "DraggableComponent-contents": "_DraggableComponent-contents_foluk_12", "DraggableComponent-overlay": "_DraggableComponent-overlay_foluk_25", "DraggableComponent-loadingOverlay": "_DraggableComponent-loadingOverlay_foluk_39", "DraggableComponent--isLocked": "_DraggableComponent--isLocked_foluk_55", "DraggableComponent--forceHover": "_DraggableComponent--forceHover_foluk_61", "DraggableComponent--isSelected": "_DraggableComponent--isSelected_foluk_66", "DraggableComponent--indicativeHover": "_DraggableComponent--indicativeHover_foluk_71", "DraggableComponent-actions": "_DraggableComponent-actions_foluk_97", "DraggableComponent-actionsLabel": "_DraggableComponent-actionsLabel_foluk_120", "DraggableComponent-action": "_DraggableComponent-action_foluk_97" };
|
30386
29430
|
|
30387
|
-
// ../../node_modules/react
|
29431
|
+
// ../../node_modules/lucide-react/dist/esm/lucide-react.js
|
30388
29432
|
init_react_import();
|
30389
29433
|
|
30390
|
-
// ../../node_modules/react
|
29434
|
+
// ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
|
30391
29435
|
init_react_import();
|
30392
|
-
var import_react4 =
|
30393
|
-
var import_prop_types = __toESM(require_prop_types());
|
30394
|
-
function _extends() {
|
30395
|
-
_extends = Object.assign || function(target) {
|
30396
|
-
for (var i = 1; i < arguments.length; i++) {
|
30397
|
-
var source = arguments[i];
|
30398
|
-
for (var key in source) {
|
30399
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
30400
|
-
target[key] = source[key];
|
30401
|
-
}
|
30402
|
-
}
|
30403
|
-
}
|
30404
|
-
return target;
|
30405
|
-
};
|
30406
|
-
return _extends.apply(this, arguments);
|
30407
|
-
}
|
30408
|
-
function _objectWithoutProperties(source, excluded) {
|
30409
|
-
if (source == null)
|
30410
|
-
return {};
|
30411
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
30412
|
-
var key, i;
|
30413
|
-
if (Object.getOwnPropertySymbols) {
|
30414
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
30415
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
30416
|
-
key = sourceSymbolKeys[i];
|
30417
|
-
if (excluded.indexOf(key) >= 0)
|
30418
|
-
continue;
|
30419
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
30420
|
-
continue;
|
30421
|
-
target[key] = source[key];
|
30422
|
-
}
|
30423
|
-
}
|
30424
|
-
return target;
|
30425
|
-
}
|
30426
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
30427
|
-
if (source == null)
|
30428
|
-
return {};
|
30429
|
-
var target = {};
|
30430
|
-
var sourceKeys = Object.keys(source);
|
30431
|
-
var key, i;
|
30432
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
30433
|
-
key = sourceKeys[i];
|
30434
|
-
if (excluded.indexOf(key) >= 0)
|
30435
|
-
continue;
|
30436
|
-
target[key] = source[key];
|
30437
|
-
}
|
30438
|
-
return target;
|
30439
|
-
}
|
30440
|
-
var CheckCircle = (0, import_react4.forwardRef)(function(_ref, ref) {
|
30441
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties(_ref, ["color", "size"]);
|
30442
|
-
return /* @__PURE__ */ import_react4.default.createElement("svg", _extends({
|
30443
|
-
ref,
|
30444
|
-
xmlns: "http://www.w3.org/2000/svg",
|
30445
|
-
width: size,
|
30446
|
-
height: size,
|
30447
|
-
viewBox: "0 0 24 24",
|
30448
|
-
fill: "none",
|
30449
|
-
stroke: color,
|
30450
|
-
strokeWidth: "2",
|
30451
|
-
strokeLinecap: "round",
|
30452
|
-
strokeLinejoin: "round"
|
30453
|
-
}, rest), /* @__PURE__ */ import_react4.default.createElement("path", {
|
30454
|
-
d: "M22 11.08V12a10 10 0 1 1-5.93-9.14"
|
30455
|
-
}), /* @__PURE__ */ import_react4.default.createElement("polyline", {
|
30456
|
-
points: "22 4 12 14.01 9 11.01"
|
30457
|
-
}));
|
30458
|
-
});
|
30459
|
-
CheckCircle.propTypes = {
|
30460
|
-
color: import_prop_types.default.string,
|
30461
|
-
size: import_prop_types.default.oneOfType([import_prop_types.default.string, import_prop_types.default.number])
|
30462
|
-
};
|
30463
|
-
CheckCircle.displayName = "CheckCircle";
|
30464
|
-
var check_circle_default = CheckCircle;
|
29436
|
+
var import_react4 = require("react");
|
30465
29437
|
|
30466
|
-
// ../../node_modules/react
|
29438
|
+
// ../../node_modules/lucide-react/dist/esm/defaultAttributes.js
|
30467
29439
|
init_react_import();
|
30468
|
-
var
|
30469
|
-
|
30470
|
-
|
30471
|
-
|
30472
|
-
|
30473
|
-
|
30474
|
-
|
30475
|
-
|
30476
|
-
|
30477
|
-
|
30478
|
-
}
|
30479
|
-
}
|
30480
|
-
return target;
|
30481
|
-
};
|
30482
|
-
return _extends2.apply(this, arguments);
|
30483
|
-
}
|
30484
|
-
function _objectWithoutProperties2(source, excluded) {
|
30485
|
-
if (source == null)
|
30486
|
-
return {};
|
30487
|
-
var target = _objectWithoutPropertiesLoose2(source, excluded);
|
30488
|
-
var key, i;
|
30489
|
-
if (Object.getOwnPropertySymbols) {
|
30490
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
30491
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
30492
|
-
key = sourceSymbolKeys[i];
|
30493
|
-
if (excluded.indexOf(key) >= 0)
|
30494
|
-
continue;
|
30495
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
30496
|
-
continue;
|
30497
|
-
target[key] = source[key];
|
30498
|
-
}
|
30499
|
-
}
|
30500
|
-
return target;
|
30501
|
-
}
|
30502
|
-
function _objectWithoutPropertiesLoose2(source, excluded) {
|
30503
|
-
if (source == null)
|
30504
|
-
return {};
|
30505
|
-
var target = {};
|
30506
|
-
var sourceKeys = Object.keys(source);
|
30507
|
-
var key, i;
|
30508
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
30509
|
-
key = sourceKeys[i];
|
30510
|
-
if (excluded.indexOf(key) >= 0)
|
30511
|
-
continue;
|
30512
|
-
target[key] = source[key];
|
30513
|
-
}
|
30514
|
-
return target;
|
30515
|
-
}
|
30516
|
-
var ChevronDown = (0, import_react5.forwardRef)(function(_ref, ref) {
|
30517
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties2(_ref, ["color", "size"]);
|
30518
|
-
return /* @__PURE__ */ import_react5.default.createElement("svg", _extends2({
|
30519
|
-
ref,
|
30520
|
-
xmlns: "http://www.w3.org/2000/svg",
|
30521
|
-
width: size,
|
30522
|
-
height: size,
|
30523
|
-
viewBox: "0 0 24 24",
|
30524
|
-
fill: "none",
|
30525
|
-
stroke: color,
|
30526
|
-
strokeWidth: "2",
|
30527
|
-
strokeLinecap: "round",
|
30528
|
-
strokeLinejoin: "round"
|
30529
|
-
}, rest), /* @__PURE__ */ import_react5.default.createElement("polyline", {
|
30530
|
-
points: "6 9 12 15 18 9"
|
30531
|
-
}));
|
30532
|
-
});
|
30533
|
-
ChevronDown.propTypes = {
|
30534
|
-
color: import_prop_types2.default.string,
|
30535
|
-
size: import_prop_types2.default.oneOfType([import_prop_types2.default.string, import_prop_types2.default.number])
|
29440
|
+
var defaultAttributes = {
|
29441
|
+
xmlns: "http://www.w3.org/2000/svg",
|
29442
|
+
width: 24,
|
29443
|
+
height: 24,
|
29444
|
+
viewBox: "0 0 24 24",
|
29445
|
+
fill: "none",
|
29446
|
+
stroke: "currentColor",
|
29447
|
+
strokeWidth: 2,
|
29448
|
+
strokeLinecap: "round",
|
29449
|
+
strokeLinejoin: "round"
|
30536
29450
|
};
|
30537
|
-
ChevronDown.displayName = "ChevronDown";
|
30538
|
-
var chevron_down_default = ChevronDown;
|
30539
29451
|
|
30540
|
-
// ../../node_modules/react
|
30541
|
-
|
30542
|
-
var
|
30543
|
-
|
30544
|
-
|
30545
|
-
|
30546
|
-
|
30547
|
-
|
30548
|
-
|
30549
|
-
|
30550
|
-
|
30551
|
-
|
30552
|
-
|
30553
|
-
|
30554
|
-
|
30555
|
-
|
30556
|
-
|
30557
|
-
|
30558
|
-
|
30559
|
-
|
30560
|
-
|
30561
|
-
|
30562
|
-
var key, i;
|
30563
|
-
if (Object.getOwnPropertySymbols) {
|
30564
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
30565
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
30566
|
-
key = sourceSymbolKeys[i];
|
30567
|
-
if (excluded.indexOf(key) >= 0)
|
30568
|
-
continue;
|
30569
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
30570
|
-
continue;
|
30571
|
-
target[key] = source[key];
|
29452
|
+
// ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
|
29453
|
+
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim();
|
29454
|
+
var createLucideIcon = (iconName, iconNode) => {
|
29455
|
+
const Component = (0, import_react4.forwardRef)(
|
29456
|
+
(_a, ref) => {
|
29457
|
+
var _b = _a, { color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = "", children } = _b, rest = __objRest(_b, ["color", "size", "strokeWidth", "absoluteStrokeWidth", "className", "children"]);
|
29458
|
+
return (0, import_react4.createElement)(
|
29459
|
+
"svg",
|
29460
|
+
__spreadValues(__spreadProps(__spreadValues({
|
29461
|
+
ref
|
29462
|
+
}, defaultAttributes), {
|
29463
|
+
width: size,
|
29464
|
+
height: size,
|
29465
|
+
stroke: color,
|
29466
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
29467
|
+
className: ["lucide", `lucide-${toKebabCase(iconName)}`, className].join(" ")
|
29468
|
+
}), rest),
|
29469
|
+
[
|
29470
|
+
...iconNode.map(([tag, attrs]) => (0, import_react4.createElement)(tag, attrs)),
|
29471
|
+
...Array.isArray(children) ? children : [children]
|
29472
|
+
]
|
29473
|
+
);
|
30572
29474
|
}
|
30573
|
-
|
30574
|
-
|
30575
|
-
|
30576
|
-
function _objectWithoutPropertiesLoose3(source, excluded) {
|
30577
|
-
if (source == null)
|
30578
|
-
return {};
|
30579
|
-
var target = {};
|
30580
|
-
var sourceKeys = Object.keys(source);
|
30581
|
-
var key, i;
|
30582
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
30583
|
-
key = sourceKeys[i];
|
30584
|
-
if (excluded.indexOf(key) >= 0)
|
30585
|
-
continue;
|
30586
|
-
target[key] = source[key];
|
30587
|
-
}
|
30588
|
-
return target;
|
30589
|
-
}
|
30590
|
-
var ChevronLeft = (0, import_react6.forwardRef)(function(_ref, ref) {
|
30591
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties3(_ref, ["color", "size"]);
|
30592
|
-
return /* @__PURE__ */ import_react6.default.createElement("svg", _extends3({
|
30593
|
-
ref,
|
30594
|
-
xmlns: "http://www.w3.org/2000/svg",
|
30595
|
-
width: size,
|
30596
|
-
height: size,
|
30597
|
-
viewBox: "0 0 24 24",
|
30598
|
-
fill: "none",
|
30599
|
-
stroke: color,
|
30600
|
-
strokeWidth: "2",
|
30601
|
-
strokeLinecap: "round",
|
30602
|
-
strokeLinejoin: "round"
|
30603
|
-
}, rest), /* @__PURE__ */ import_react6.default.createElement("polyline", {
|
30604
|
-
points: "15 18 9 12 15 6"
|
30605
|
-
}));
|
30606
|
-
});
|
30607
|
-
ChevronLeft.propTypes = {
|
30608
|
-
color: import_prop_types3.default.string,
|
30609
|
-
size: import_prop_types3.default.oneOfType([import_prop_types3.default.string, import_prop_types3.default.number])
|
29475
|
+
);
|
29476
|
+
Component.displayName = `${iconName}`;
|
29477
|
+
return Component;
|
30610
29478
|
};
|
30611
|
-
ChevronLeft.displayName = "ChevronLeft";
|
30612
|
-
var chevron_left_default = ChevronLeft;
|
30613
29479
|
|
30614
|
-
// ../../node_modules/react
|
29480
|
+
// ../../node_modules/lucide-react/dist/esm/icons/check-circle.js
|
30615
29481
|
init_react_import();
|
30616
|
-
var
|
30617
|
-
|
30618
|
-
|
30619
|
-
|
30620
|
-
for (var i = 1; i < arguments.length; i++) {
|
30621
|
-
var source = arguments[i];
|
30622
|
-
for (var key in source) {
|
30623
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
30624
|
-
target[key] = source[key];
|
30625
|
-
}
|
30626
|
-
}
|
30627
|
-
}
|
30628
|
-
return target;
|
30629
|
-
};
|
30630
|
-
return _extends4.apply(this, arguments);
|
30631
|
-
}
|
30632
|
-
function _objectWithoutProperties4(source, excluded) {
|
30633
|
-
if (source == null)
|
30634
|
-
return {};
|
30635
|
-
var target = _objectWithoutPropertiesLoose4(source, excluded);
|
30636
|
-
var key, i;
|
30637
|
-
if (Object.getOwnPropertySymbols) {
|
30638
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
30639
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
30640
|
-
key = sourceSymbolKeys[i];
|
30641
|
-
if (excluded.indexOf(key) >= 0)
|
30642
|
-
continue;
|
30643
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
30644
|
-
continue;
|
30645
|
-
target[key] = source[key];
|
30646
|
-
}
|
30647
|
-
}
|
30648
|
-
return target;
|
30649
|
-
}
|
30650
|
-
function _objectWithoutPropertiesLoose4(source, excluded) {
|
30651
|
-
if (source == null)
|
30652
|
-
return {};
|
30653
|
-
var target = {};
|
30654
|
-
var sourceKeys = Object.keys(source);
|
30655
|
-
var key, i;
|
30656
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
30657
|
-
key = sourceKeys[i];
|
30658
|
-
if (excluded.indexOf(key) >= 0)
|
30659
|
-
continue;
|
30660
|
-
target[key] = source[key];
|
30661
|
-
}
|
30662
|
-
return target;
|
30663
|
-
}
|
30664
|
-
var ChevronRight = (0, import_react7.forwardRef)(function(_ref, ref) {
|
30665
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties4(_ref, ["color", "size"]);
|
30666
|
-
return /* @__PURE__ */ import_react7.default.createElement("svg", _extends4({
|
30667
|
-
ref,
|
30668
|
-
xmlns: "http://www.w3.org/2000/svg",
|
30669
|
-
width: size,
|
30670
|
-
height: size,
|
30671
|
-
viewBox: "0 0 24 24",
|
30672
|
-
fill: "none",
|
30673
|
-
stroke: color,
|
30674
|
-
strokeWidth: "2",
|
30675
|
-
strokeLinecap: "round",
|
30676
|
-
strokeLinejoin: "round"
|
30677
|
-
}, rest), /* @__PURE__ */ import_react7.default.createElement("polyline", {
|
30678
|
-
points: "9 18 15 12 9 6"
|
30679
|
-
}));
|
30680
|
-
});
|
30681
|
-
ChevronRight.propTypes = {
|
30682
|
-
color: import_prop_types4.default.string,
|
30683
|
-
size: import_prop_types4.default.oneOfType([import_prop_types4.default.string, import_prop_types4.default.number])
|
30684
|
-
};
|
30685
|
-
ChevronRight.displayName = "ChevronRight";
|
30686
|
-
var chevron_right_default = ChevronRight;
|
29482
|
+
var CheckCircle = createLucideIcon("CheckCircle", [
|
29483
|
+
["path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14", key: "g774vq" }],
|
29484
|
+
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
29485
|
+
]);
|
30687
29486
|
|
30688
|
-
// ../../node_modules/react
|
29487
|
+
// ../../node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
30689
29488
|
init_react_import();
|
30690
|
-
var
|
30691
|
-
|
30692
|
-
|
30693
|
-
_extends5 = Object.assign || function(target) {
|
30694
|
-
for (var i = 1; i < arguments.length; i++) {
|
30695
|
-
var source = arguments[i];
|
30696
|
-
for (var key in source) {
|
30697
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
30698
|
-
target[key] = source[key];
|
30699
|
-
}
|
30700
|
-
}
|
30701
|
-
}
|
30702
|
-
return target;
|
30703
|
-
};
|
30704
|
-
return _extends5.apply(this, arguments);
|
30705
|
-
}
|
30706
|
-
function _objectWithoutProperties5(source, excluded) {
|
30707
|
-
if (source == null)
|
30708
|
-
return {};
|
30709
|
-
var target = _objectWithoutPropertiesLoose5(source, excluded);
|
30710
|
-
var key, i;
|
30711
|
-
if (Object.getOwnPropertySymbols) {
|
30712
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
30713
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
30714
|
-
key = sourceSymbolKeys[i];
|
30715
|
-
if (excluded.indexOf(key) >= 0)
|
30716
|
-
continue;
|
30717
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
30718
|
-
continue;
|
30719
|
-
target[key] = source[key];
|
30720
|
-
}
|
30721
|
-
}
|
30722
|
-
return target;
|
30723
|
-
}
|
30724
|
-
function _objectWithoutPropertiesLoose5(source, excluded) {
|
30725
|
-
if (source == null)
|
30726
|
-
return {};
|
30727
|
-
var target = {};
|
30728
|
-
var sourceKeys = Object.keys(source);
|
30729
|
-
var key, i;
|
30730
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
30731
|
-
key = sourceKeys[i];
|
30732
|
-
if (excluded.indexOf(key) >= 0)
|
30733
|
-
continue;
|
30734
|
-
target[key] = source[key];
|
30735
|
-
}
|
30736
|
-
return target;
|
30737
|
-
}
|
30738
|
-
var ChevronUp = (0, import_react8.forwardRef)(function(_ref, ref) {
|
30739
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties5(_ref, ["color", "size"]);
|
30740
|
-
return /* @__PURE__ */ import_react8.default.createElement("svg", _extends5({
|
30741
|
-
ref,
|
30742
|
-
xmlns: "http://www.w3.org/2000/svg",
|
30743
|
-
width: size,
|
30744
|
-
height: size,
|
30745
|
-
viewBox: "0 0 24 24",
|
30746
|
-
fill: "none",
|
30747
|
-
stroke: color,
|
30748
|
-
strokeWidth: "2",
|
30749
|
-
strokeLinecap: "round",
|
30750
|
-
strokeLinejoin: "round"
|
30751
|
-
}, rest), /* @__PURE__ */ import_react8.default.createElement("polyline", {
|
30752
|
-
points: "18 15 12 9 6 15"
|
30753
|
-
}));
|
30754
|
-
});
|
30755
|
-
ChevronUp.propTypes = {
|
30756
|
-
color: import_prop_types5.default.string,
|
30757
|
-
size: import_prop_types5.default.oneOfType([import_prop_types5.default.string, import_prop_types5.default.number])
|
30758
|
-
};
|
30759
|
-
ChevronUp.displayName = "ChevronUp";
|
30760
|
-
var chevron_up_default = ChevronUp;
|
29489
|
+
var ChevronDown = createLucideIcon("ChevronDown", [
|
29490
|
+
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
29491
|
+
]);
|
30761
29492
|
|
30762
|
-
// ../../node_modules/react
|
29493
|
+
// ../../node_modules/lucide-react/dist/esm/icons/chevron-left.js
|
30763
29494
|
init_react_import();
|
30764
|
-
var
|
30765
|
-
|
30766
|
-
|
30767
|
-
_extends6 = Object.assign || function(target) {
|
30768
|
-
for (var i = 1; i < arguments.length; i++) {
|
30769
|
-
var source = arguments[i];
|
30770
|
-
for (var key in source) {
|
30771
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
30772
|
-
target[key] = source[key];
|
30773
|
-
}
|
30774
|
-
}
|
30775
|
-
}
|
30776
|
-
return target;
|
30777
|
-
};
|
30778
|
-
return _extends6.apply(this, arguments);
|
30779
|
-
}
|
30780
|
-
function _objectWithoutProperties6(source, excluded) {
|
30781
|
-
if (source == null)
|
30782
|
-
return {};
|
30783
|
-
var target = _objectWithoutPropertiesLoose6(source, excluded);
|
30784
|
-
var key, i;
|
30785
|
-
if (Object.getOwnPropertySymbols) {
|
30786
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
30787
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
30788
|
-
key = sourceSymbolKeys[i];
|
30789
|
-
if (excluded.indexOf(key) >= 0)
|
30790
|
-
continue;
|
30791
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
30792
|
-
continue;
|
30793
|
-
target[key] = source[key];
|
30794
|
-
}
|
30795
|
-
}
|
30796
|
-
return target;
|
30797
|
-
}
|
30798
|
-
function _objectWithoutPropertiesLoose6(source, excluded) {
|
30799
|
-
if (source == null)
|
30800
|
-
return {};
|
30801
|
-
var target = {};
|
30802
|
-
var sourceKeys = Object.keys(source);
|
30803
|
-
var key, i;
|
30804
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
30805
|
-
key = sourceKeys[i];
|
30806
|
-
if (excluded.indexOf(key) >= 0)
|
30807
|
-
continue;
|
30808
|
-
target[key] = source[key];
|
30809
|
-
}
|
30810
|
-
return target;
|
30811
|
-
}
|
30812
|
-
var Copy = (0, import_react9.forwardRef)(function(_ref, ref) {
|
30813
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties6(_ref, ["color", "size"]);
|
30814
|
-
return /* @__PURE__ */ import_react9.default.createElement("svg", _extends6({
|
30815
|
-
ref,
|
30816
|
-
xmlns: "http://www.w3.org/2000/svg",
|
30817
|
-
width: size,
|
30818
|
-
height: size,
|
30819
|
-
viewBox: "0 0 24 24",
|
30820
|
-
fill: "none",
|
30821
|
-
stroke: color,
|
30822
|
-
strokeWidth: "2",
|
30823
|
-
strokeLinecap: "round",
|
30824
|
-
strokeLinejoin: "round"
|
30825
|
-
}, rest), /* @__PURE__ */ import_react9.default.createElement("rect", {
|
30826
|
-
x: "9",
|
30827
|
-
y: "9",
|
30828
|
-
width: "13",
|
30829
|
-
height: "13",
|
30830
|
-
rx: "2",
|
30831
|
-
ry: "2"
|
30832
|
-
}), /* @__PURE__ */ import_react9.default.createElement("path", {
|
30833
|
-
d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
|
30834
|
-
}));
|
30835
|
-
});
|
30836
|
-
Copy.propTypes = {
|
30837
|
-
color: import_prop_types6.default.string,
|
30838
|
-
size: import_prop_types6.default.oneOfType([import_prop_types6.default.string, import_prop_types6.default.number])
|
30839
|
-
};
|
30840
|
-
Copy.displayName = "Copy";
|
30841
|
-
var copy_default = Copy;
|
29495
|
+
var ChevronLeft = createLucideIcon("ChevronLeft", [
|
29496
|
+
["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
|
29497
|
+
]);
|
30842
29498
|
|
30843
|
-
// ../../node_modules/react
|
29499
|
+
// ../../node_modules/lucide-react/dist/esm/icons/chevron-right.js
|
30844
29500
|
init_react_import();
|
30845
|
-
var
|
30846
|
-
|
30847
|
-
|
30848
|
-
_extends7 = Object.assign || function(target) {
|
30849
|
-
for (var i = 1; i < arguments.length; i++) {
|
30850
|
-
var source = arguments[i];
|
30851
|
-
for (var key in source) {
|
30852
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
30853
|
-
target[key] = source[key];
|
30854
|
-
}
|
30855
|
-
}
|
30856
|
-
}
|
30857
|
-
return target;
|
30858
|
-
};
|
30859
|
-
return _extends7.apply(this, arguments);
|
30860
|
-
}
|
30861
|
-
function _objectWithoutProperties7(source, excluded) {
|
30862
|
-
if (source == null)
|
30863
|
-
return {};
|
30864
|
-
var target = _objectWithoutPropertiesLoose7(source, excluded);
|
30865
|
-
var key, i;
|
30866
|
-
if (Object.getOwnPropertySymbols) {
|
30867
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
30868
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
30869
|
-
key = sourceSymbolKeys[i];
|
30870
|
-
if (excluded.indexOf(key) >= 0)
|
30871
|
-
continue;
|
30872
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
30873
|
-
continue;
|
30874
|
-
target[key] = source[key];
|
30875
|
-
}
|
30876
|
-
}
|
30877
|
-
return target;
|
30878
|
-
}
|
30879
|
-
function _objectWithoutPropertiesLoose7(source, excluded) {
|
30880
|
-
if (source == null)
|
30881
|
-
return {};
|
30882
|
-
var target = {};
|
30883
|
-
var sourceKeys = Object.keys(source);
|
30884
|
-
var key, i;
|
30885
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
30886
|
-
key = sourceKeys[i];
|
30887
|
-
if (excluded.indexOf(key) >= 0)
|
30888
|
-
continue;
|
30889
|
-
target[key] = source[key];
|
30890
|
-
}
|
30891
|
-
return target;
|
30892
|
-
}
|
30893
|
-
var Globe = (0, import_react10.forwardRef)(function(_ref, ref) {
|
30894
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties7(_ref, ["color", "size"]);
|
30895
|
-
return /* @__PURE__ */ import_react10.default.createElement("svg", _extends7({
|
30896
|
-
ref,
|
30897
|
-
xmlns: "http://www.w3.org/2000/svg",
|
30898
|
-
width: size,
|
30899
|
-
height: size,
|
30900
|
-
viewBox: "0 0 24 24",
|
30901
|
-
fill: "none",
|
30902
|
-
stroke: color,
|
30903
|
-
strokeWidth: "2",
|
30904
|
-
strokeLinecap: "round",
|
30905
|
-
strokeLinejoin: "round"
|
30906
|
-
}, rest), /* @__PURE__ */ import_react10.default.createElement("circle", {
|
30907
|
-
cx: "12",
|
30908
|
-
cy: "12",
|
30909
|
-
r: "10"
|
30910
|
-
}), /* @__PURE__ */ import_react10.default.createElement("line", {
|
30911
|
-
x1: "2",
|
30912
|
-
y1: "12",
|
30913
|
-
x2: "22",
|
30914
|
-
y2: "12"
|
30915
|
-
}), /* @__PURE__ */ import_react10.default.createElement("path", {
|
30916
|
-
d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"
|
30917
|
-
}));
|
30918
|
-
});
|
30919
|
-
Globe.propTypes = {
|
30920
|
-
color: import_prop_types7.default.string,
|
30921
|
-
size: import_prop_types7.default.oneOfType([import_prop_types7.default.string, import_prop_types7.default.number])
|
30922
|
-
};
|
30923
|
-
Globe.displayName = "Globe";
|
30924
|
-
var globe_default = Globe;
|
29501
|
+
var ChevronRight = createLucideIcon("ChevronRight", [
|
29502
|
+
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
29503
|
+
]);
|
30925
29504
|
|
30926
|
-
// ../../node_modules/react
|
29505
|
+
// ../../node_modules/lucide-react/dist/esm/icons/chevron-up.js
|
30927
29506
|
init_react_import();
|
30928
|
-
var
|
30929
|
-
var import_prop_types8 = __toESM(require_prop_types());
|
30930
|
-
function _extends8() {
|
30931
|
-
_extends8 = Object.assign || function(target) {
|
30932
|
-
for (var i = 1; i < arguments.length; i++) {
|
30933
|
-
var source = arguments[i];
|
30934
|
-
for (var key in source) {
|
30935
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
30936
|
-
target[key] = source[key];
|
30937
|
-
}
|
30938
|
-
}
|
30939
|
-
}
|
30940
|
-
return target;
|
30941
|
-
};
|
30942
|
-
return _extends8.apply(this, arguments);
|
30943
|
-
}
|
30944
|
-
function _objectWithoutProperties8(source, excluded) {
|
30945
|
-
if (source == null)
|
30946
|
-
return {};
|
30947
|
-
var target = _objectWithoutPropertiesLoose8(source, excluded);
|
30948
|
-
var key, i;
|
30949
|
-
if (Object.getOwnPropertySymbols) {
|
30950
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
30951
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
30952
|
-
key = sourceSymbolKeys[i];
|
30953
|
-
if (excluded.indexOf(key) >= 0)
|
30954
|
-
continue;
|
30955
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
30956
|
-
continue;
|
30957
|
-
target[key] = source[key];
|
30958
|
-
}
|
30959
|
-
}
|
30960
|
-
return target;
|
30961
|
-
}
|
30962
|
-
function _objectWithoutPropertiesLoose8(source, excluded) {
|
30963
|
-
if (source == null)
|
30964
|
-
return {};
|
30965
|
-
var target = {};
|
30966
|
-
var sourceKeys = Object.keys(source);
|
30967
|
-
var key, i;
|
30968
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
30969
|
-
key = sourceKeys[i];
|
30970
|
-
if (excluded.indexOf(key) >= 0)
|
30971
|
-
continue;
|
30972
|
-
target[key] = source[key];
|
30973
|
-
}
|
30974
|
-
return target;
|
30975
|
-
}
|
30976
|
-
var Grid = (0, import_react11.forwardRef)(function(_ref, ref) {
|
30977
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties8(_ref, ["color", "size"]);
|
30978
|
-
return /* @__PURE__ */ import_react11.default.createElement("svg", _extends8({
|
30979
|
-
ref,
|
30980
|
-
xmlns: "http://www.w3.org/2000/svg",
|
30981
|
-
width: size,
|
30982
|
-
height: size,
|
30983
|
-
viewBox: "0 0 24 24",
|
30984
|
-
fill: "none",
|
30985
|
-
stroke: color,
|
30986
|
-
strokeWidth: "2",
|
30987
|
-
strokeLinecap: "round",
|
30988
|
-
strokeLinejoin: "round"
|
30989
|
-
}, rest), /* @__PURE__ */ import_react11.default.createElement("rect", {
|
30990
|
-
x: "3",
|
30991
|
-
y: "3",
|
30992
|
-
width: "7",
|
30993
|
-
height: "7"
|
30994
|
-
}), /* @__PURE__ */ import_react11.default.createElement("rect", {
|
30995
|
-
x: "14",
|
30996
|
-
y: "3",
|
30997
|
-
width: "7",
|
30998
|
-
height: "7"
|
30999
|
-
}), /* @__PURE__ */ import_react11.default.createElement("rect", {
|
31000
|
-
x: "14",
|
31001
|
-
y: "14",
|
31002
|
-
width: "7",
|
31003
|
-
height: "7"
|
31004
|
-
}), /* @__PURE__ */ import_react11.default.createElement("rect", {
|
31005
|
-
x: "3",
|
31006
|
-
y: "14",
|
31007
|
-
width: "7",
|
31008
|
-
height: "7"
|
31009
|
-
}));
|
31010
|
-
});
|
31011
|
-
Grid.propTypes = {
|
31012
|
-
color: import_prop_types8.default.string,
|
31013
|
-
size: import_prop_types8.default.oneOfType([import_prop_types8.default.string, import_prop_types8.default.number])
|
31014
|
-
};
|
31015
|
-
Grid.displayName = "Grid";
|
31016
|
-
var grid_default = Grid;
|
29507
|
+
var ChevronUp = createLucideIcon("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
|
31017
29508
|
|
31018
|
-
// ../../node_modules/react
|
29509
|
+
// ../../node_modules/lucide-react/dist/esm/icons/copy.js
|
31019
29510
|
init_react_import();
|
31020
|
-
var
|
31021
|
-
|
31022
|
-
|
31023
|
-
|
31024
|
-
for (var i = 1; i < arguments.length; i++) {
|
31025
|
-
var source = arguments[i];
|
31026
|
-
for (var key in source) {
|
31027
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
31028
|
-
target[key] = source[key];
|
31029
|
-
}
|
31030
|
-
}
|
31031
|
-
}
|
31032
|
-
return target;
|
31033
|
-
};
|
31034
|
-
return _extends9.apply(this, arguments);
|
31035
|
-
}
|
31036
|
-
function _objectWithoutProperties9(source, excluded) {
|
31037
|
-
if (source == null)
|
31038
|
-
return {};
|
31039
|
-
var target = _objectWithoutPropertiesLoose9(source, excluded);
|
31040
|
-
var key, i;
|
31041
|
-
if (Object.getOwnPropertySymbols) {
|
31042
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
31043
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
31044
|
-
key = sourceSymbolKeys[i];
|
31045
|
-
if (excluded.indexOf(key) >= 0)
|
31046
|
-
continue;
|
31047
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
31048
|
-
continue;
|
31049
|
-
target[key] = source[key];
|
31050
|
-
}
|
31051
|
-
}
|
31052
|
-
return target;
|
31053
|
-
}
|
31054
|
-
function _objectWithoutPropertiesLoose9(source, excluded) {
|
31055
|
-
if (source == null)
|
31056
|
-
return {};
|
31057
|
-
var target = {};
|
31058
|
-
var sourceKeys = Object.keys(source);
|
31059
|
-
var key, i;
|
31060
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
31061
|
-
key = sourceKeys[i];
|
31062
|
-
if (excluded.indexOf(key) >= 0)
|
31063
|
-
continue;
|
31064
|
-
target[key] = source[key];
|
31065
|
-
}
|
31066
|
-
return target;
|
31067
|
-
}
|
31068
|
-
var Hash = (0, import_react12.forwardRef)(function(_ref, ref) {
|
31069
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties9(_ref, ["color", "size"]);
|
31070
|
-
return /* @__PURE__ */ import_react12.default.createElement("svg", _extends9({
|
31071
|
-
ref,
|
31072
|
-
xmlns: "http://www.w3.org/2000/svg",
|
31073
|
-
width: size,
|
31074
|
-
height: size,
|
31075
|
-
viewBox: "0 0 24 24",
|
31076
|
-
fill: "none",
|
31077
|
-
stroke: color,
|
31078
|
-
strokeWidth: "2",
|
31079
|
-
strokeLinecap: "round",
|
31080
|
-
strokeLinejoin: "round"
|
31081
|
-
}, rest), /* @__PURE__ */ import_react12.default.createElement("line", {
|
31082
|
-
x1: "4",
|
31083
|
-
y1: "9",
|
31084
|
-
x2: "20",
|
31085
|
-
y2: "9"
|
31086
|
-
}), /* @__PURE__ */ import_react12.default.createElement("line", {
|
31087
|
-
x1: "4",
|
31088
|
-
y1: "15",
|
31089
|
-
x2: "20",
|
31090
|
-
y2: "15"
|
31091
|
-
}), /* @__PURE__ */ import_react12.default.createElement("line", {
|
31092
|
-
x1: "10",
|
31093
|
-
y1: "3",
|
31094
|
-
x2: "8",
|
31095
|
-
y2: "21"
|
31096
|
-
}), /* @__PURE__ */ import_react12.default.createElement("line", {
|
31097
|
-
x1: "16",
|
31098
|
-
y1: "3",
|
31099
|
-
x2: "14",
|
31100
|
-
y2: "21"
|
31101
|
-
}));
|
31102
|
-
});
|
31103
|
-
Hash.propTypes = {
|
31104
|
-
color: import_prop_types9.default.string,
|
31105
|
-
size: import_prop_types9.default.oneOfType([import_prop_types9.default.string, import_prop_types9.default.number])
|
31106
|
-
};
|
31107
|
-
Hash.displayName = "Hash";
|
31108
|
-
var hash_default = Hash;
|
29511
|
+
var Copy = createLucideIcon("Copy", [
|
29512
|
+
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
29513
|
+
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
29514
|
+
]);
|
31109
29515
|
|
31110
|
-
// ../../node_modules/react
|
29516
|
+
// ../../node_modules/lucide-react/dist/esm/icons/globe.js
|
31111
29517
|
init_react_import();
|
31112
|
-
var
|
31113
|
-
|
31114
|
-
|
31115
|
-
|
31116
|
-
|
31117
|
-
var source = arguments[i];
|
31118
|
-
for (var key in source) {
|
31119
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
31120
|
-
target[key] = source[key];
|
31121
|
-
}
|
31122
|
-
}
|
31123
|
-
}
|
31124
|
-
return target;
|
31125
|
-
};
|
31126
|
-
return _extends10.apply(this, arguments);
|
31127
|
-
}
|
31128
|
-
function _objectWithoutProperties10(source, excluded) {
|
31129
|
-
if (source == null)
|
31130
|
-
return {};
|
31131
|
-
var target = _objectWithoutPropertiesLoose10(source, excluded);
|
31132
|
-
var key, i;
|
31133
|
-
if (Object.getOwnPropertySymbols) {
|
31134
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
31135
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
31136
|
-
key = sourceSymbolKeys[i];
|
31137
|
-
if (excluded.indexOf(key) >= 0)
|
31138
|
-
continue;
|
31139
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
31140
|
-
continue;
|
31141
|
-
target[key] = source[key];
|
31142
|
-
}
|
31143
|
-
}
|
31144
|
-
return target;
|
31145
|
-
}
|
31146
|
-
function _objectWithoutPropertiesLoose10(source, excluded) {
|
31147
|
-
if (source == null)
|
31148
|
-
return {};
|
31149
|
-
var target = {};
|
31150
|
-
var sourceKeys = Object.keys(source);
|
31151
|
-
var key, i;
|
31152
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
31153
|
-
key = sourceKeys[i];
|
31154
|
-
if (excluded.indexOf(key) >= 0)
|
31155
|
-
continue;
|
31156
|
-
target[key] = source[key];
|
31157
|
-
}
|
31158
|
-
return target;
|
31159
|
-
}
|
31160
|
-
var Layers = (0, import_react13.forwardRef)(function(_ref, ref) {
|
31161
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties10(_ref, ["color", "size"]);
|
31162
|
-
return /* @__PURE__ */ import_react13.default.createElement("svg", _extends10({
|
31163
|
-
ref,
|
31164
|
-
xmlns: "http://www.w3.org/2000/svg",
|
31165
|
-
width: size,
|
31166
|
-
height: size,
|
31167
|
-
viewBox: "0 0 24 24",
|
31168
|
-
fill: "none",
|
31169
|
-
stroke: color,
|
31170
|
-
strokeWidth: "2",
|
31171
|
-
strokeLinecap: "round",
|
31172
|
-
strokeLinejoin: "round"
|
31173
|
-
}, rest), /* @__PURE__ */ import_react13.default.createElement("polygon", {
|
31174
|
-
points: "12 2 2 7 12 12 22 7 12 2"
|
31175
|
-
}), /* @__PURE__ */ import_react13.default.createElement("polyline", {
|
31176
|
-
points: "2 17 12 22 22 17"
|
31177
|
-
}), /* @__PURE__ */ import_react13.default.createElement("polyline", {
|
31178
|
-
points: "2 12 12 17 22 12"
|
31179
|
-
}));
|
31180
|
-
});
|
31181
|
-
Layers.propTypes = {
|
31182
|
-
color: import_prop_types10.default.string,
|
31183
|
-
size: import_prop_types10.default.oneOfType([import_prop_types10.default.string, import_prop_types10.default.number])
|
31184
|
-
};
|
31185
|
-
Layers.displayName = "Layers";
|
31186
|
-
var layers_default = Layers;
|
29518
|
+
var Globe = createLucideIcon("Globe", [
|
29519
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
29520
|
+
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
29521
|
+
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
29522
|
+
]);
|
31187
29523
|
|
31188
|
-
// ../../node_modules/react
|
29524
|
+
// ../../node_modules/lucide-react/dist/esm/icons/hash.js
|
31189
29525
|
init_react_import();
|
31190
|
-
var
|
31191
|
-
|
31192
|
-
|
31193
|
-
|
31194
|
-
|
31195
|
-
|
31196
|
-
for (var key in source) {
|
31197
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
31198
|
-
target[key] = source[key];
|
31199
|
-
}
|
31200
|
-
}
|
31201
|
-
}
|
31202
|
-
return target;
|
31203
|
-
};
|
31204
|
-
return _extends11.apply(this, arguments);
|
31205
|
-
}
|
31206
|
-
function _objectWithoutProperties11(source, excluded) {
|
31207
|
-
if (source == null)
|
31208
|
-
return {};
|
31209
|
-
var target = _objectWithoutPropertiesLoose11(source, excluded);
|
31210
|
-
var key, i;
|
31211
|
-
if (Object.getOwnPropertySymbols) {
|
31212
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
31213
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
31214
|
-
key = sourceSymbolKeys[i];
|
31215
|
-
if (excluded.indexOf(key) >= 0)
|
31216
|
-
continue;
|
31217
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
31218
|
-
continue;
|
31219
|
-
target[key] = source[key];
|
31220
|
-
}
|
31221
|
-
}
|
31222
|
-
return target;
|
31223
|
-
}
|
31224
|
-
function _objectWithoutPropertiesLoose11(source, excluded) {
|
31225
|
-
if (source == null)
|
31226
|
-
return {};
|
31227
|
-
var target = {};
|
31228
|
-
var sourceKeys = Object.keys(source);
|
31229
|
-
var key, i;
|
31230
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
31231
|
-
key = sourceKeys[i];
|
31232
|
-
if (excluded.indexOf(key) >= 0)
|
31233
|
-
continue;
|
31234
|
-
target[key] = source[key];
|
31235
|
-
}
|
31236
|
-
return target;
|
31237
|
-
}
|
31238
|
-
var Link = (0, import_react14.forwardRef)(function(_ref, ref) {
|
31239
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties11(_ref, ["color", "size"]);
|
31240
|
-
return /* @__PURE__ */ import_react14.default.createElement("svg", _extends11({
|
31241
|
-
ref,
|
31242
|
-
xmlns: "http://www.w3.org/2000/svg",
|
31243
|
-
width: size,
|
31244
|
-
height: size,
|
31245
|
-
viewBox: "0 0 24 24",
|
31246
|
-
fill: "none",
|
31247
|
-
stroke: color,
|
31248
|
-
strokeWidth: "2",
|
31249
|
-
strokeLinecap: "round",
|
31250
|
-
strokeLinejoin: "round"
|
31251
|
-
}, rest), /* @__PURE__ */ import_react14.default.createElement("path", {
|
31252
|
-
d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"
|
31253
|
-
}), /* @__PURE__ */ import_react14.default.createElement("path", {
|
31254
|
-
d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"
|
31255
|
-
}));
|
31256
|
-
});
|
31257
|
-
Link.propTypes = {
|
31258
|
-
color: import_prop_types11.default.string,
|
31259
|
-
size: import_prop_types11.default.oneOfType([import_prop_types11.default.string, import_prop_types11.default.number])
|
31260
|
-
};
|
31261
|
-
Link.displayName = "Link";
|
31262
|
-
var link_default = Link;
|
29526
|
+
var Hash = createLucideIcon("Hash", [
|
29527
|
+
["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
|
29528
|
+
["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
|
29529
|
+
["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
|
29530
|
+
["line", { x1: "16", x2: "14", y1: "3", y2: "21", key: "weycgp" }]
|
29531
|
+
]);
|
31263
29532
|
|
31264
|
-
// ../../node_modules/react
|
29533
|
+
// ../../node_modules/lucide-react/dist/esm/icons/layers.js
|
31265
29534
|
init_react_import();
|
31266
|
-
var
|
31267
|
-
|
31268
|
-
|
31269
|
-
|
31270
|
-
|
31271
|
-
|
31272
|
-
for (var key in source) {
|
31273
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
31274
|
-
target[key] = source[key];
|
31275
|
-
}
|
31276
|
-
}
|
31277
|
-
}
|
31278
|
-
return target;
|
31279
|
-
};
|
31280
|
-
return _extends12.apply(this, arguments);
|
31281
|
-
}
|
31282
|
-
function _objectWithoutProperties12(source, excluded) {
|
31283
|
-
if (source == null)
|
31284
|
-
return {};
|
31285
|
-
var target = _objectWithoutPropertiesLoose12(source, excluded);
|
31286
|
-
var key, i;
|
31287
|
-
if (Object.getOwnPropertySymbols) {
|
31288
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
31289
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
31290
|
-
key = sourceSymbolKeys[i];
|
31291
|
-
if (excluded.indexOf(key) >= 0)
|
31292
|
-
continue;
|
31293
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
31294
|
-
continue;
|
31295
|
-
target[key] = source[key];
|
29535
|
+
var Layers = createLucideIcon("Layers", [
|
29536
|
+
[
|
29537
|
+
"path",
|
29538
|
+
{
|
29539
|
+
d: "m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",
|
29540
|
+
key: "8b97xw"
|
31296
29541
|
}
|
31297
|
-
|
31298
|
-
|
31299
|
-
}
|
31300
|
-
|
31301
|
-
if (source == null)
|
31302
|
-
return {};
|
31303
|
-
var target = {};
|
31304
|
-
var sourceKeys = Object.keys(source);
|
31305
|
-
var key, i;
|
31306
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
31307
|
-
key = sourceKeys[i];
|
31308
|
-
if (excluded.indexOf(key) >= 0)
|
31309
|
-
continue;
|
31310
|
-
target[key] = source[key];
|
31311
|
-
}
|
31312
|
-
return target;
|
31313
|
-
}
|
31314
|
-
var List = (0, import_react15.forwardRef)(function(_ref, ref) {
|
31315
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties12(_ref, ["color", "size"]);
|
31316
|
-
return /* @__PURE__ */ import_react15.default.createElement("svg", _extends12({
|
31317
|
-
ref,
|
31318
|
-
xmlns: "http://www.w3.org/2000/svg",
|
31319
|
-
width: size,
|
31320
|
-
height: size,
|
31321
|
-
viewBox: "0 0 24 24",
|
31322
|
-
fill: "none",
|
31323
|
-
stroke: color,
|
31324
|
-
strokeWidth: "2",
|
31325
|
-
strokeLinecap: "round",
|
31326
|
-
strokeLinejoin: "round"
|
31327
|
-
}, rest), /* @__PURE__ */ import_react15.default.createElement("line", {
|
31328
|
-
x1: "8",
|
31329
|
-
y1: "6",
|
31330
|
-
x2: "21",
|
31331
|
-
y2: "6"
|
31332
|
-
}), /* @__PURE__ */ import_react15.default.createElement("line", {
|
31333
|
-
x1: "8",
|
31334
|
-
y1: "12",
|
31335
|
-
x2: "21",
|
31336
|
-
y2: "12"
|
31337
|
-
}), /* @__PURE__ */ import_react15.default.createElement("line", {
|
31338
|
-
x1: "8",
|
31339
|
-
y1: "18",
|
31340
|
-
x2: "21",
|
31341
|
-
y2: "18"
|
31342
|
-
}), /* @__PURE__ */ import_react15.default.createElement("line", {
|
31343
|
-
x1: "3",
|
31344
|
-
y1: "6",
|
31345
|
-
x2: "3.01",
|
31346
|
-
y2: "6"
|
31347
|
-
}), /* @__PURE__ */ import_react15.default.createElement("line", {
|
31348
|
-
x1: "3",
|
31349
|
-
y1: "12",
|
31350
|
-
x2: "3.01",
|
31351
|
-
y2: "12"
|
31352
|
-
}), /* @__PURE__ */ import_react15.default.createElement("line", {
|
31353
|
-
x1: "3",
|
31354
|
-
y1: "18",
|
31355
|
-
x2: "3.01",
|
31356
|
-
y2: "18"
|
31357
|
-
}));
|
31358
|
-
});
|
31359
|
-
List.propTypes = {
|
31360
|
-
color: import_prop_types12.default.string,
|
31361
|
-
size: import_prop_types12.default.oneOfType([import_prop_types12.default.string, import_prop_types12.default.number])
|
31362
|
-
};
|
31363
|
-
List.displayName = "List";
|
31364
|
-
var list_default = List;
|
29542
|
+
],
|
29543
|
+
["path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65", key: "dd6zsq" }],
|
29544
|
+
["path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65", key: "ep9fru" }]
|
29545
|
+
]);
|
31365
29546
|
|
31366
|
-
// ../../node_modules/react
|
29547
|
+
// ../../node_modules/lucide-react/dist/esm/icons/layout-grid.js
|
31367
29548
|
init_react_import();
|
31368
|
-
var
|
31369
|
-
|
31370
|
-
|
31371
|
-
|
31372
|
-
|
31373
|
-
|
31374
|
-
for (var key in source) {
|
31375
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
31376
|
-
target[key] = source[key];
|
31377
|
-
}
|
31378
|
-
}
|
31379
|
-
}
|
31380
|
-
return target;
|
31381
|
-
};
|
31382
|
-
return _extends13.apply(this, arguments);
|
31383
|
-
}
|
31384
|
-
function _objectWithoutProperties13(source, excluded) {
|
31385
|
-
if (source == null)
|
31386
|
-
return {};
|
31387
|
-
var target = _objectWithoutPropertiesLoose13(source, excluded);
|
31388
|
-
var key, i;
|
31389
|
-
if (Object.getOwnPropertySymbols) {
|
31390
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
31391
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
31392
|
-
key = sourceSymbolKeys[i];
|
31393
|
-
if (excluded.indexOf(key) >= 0)
|
31394
|
-
continue;
|
31395
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
31396
|
-
continue;
|
31397
|
-
target[key] = source[key];
|
31398
|
-
}
|
31399
|
-
}
|
31400
|
-
return target;
|
31401
|
-
}
|
31402
|
-
function _objectWithoutPropertiesLoose13(source, excluded) {
|
31403
|
-
if (source == null)
|
31404
|
-
return {};
|
31405
|
-
var target = {};
|
31406
|
-
var sourceKeys = Object.keys(source);
|
31407
|
-
var key, i;
|
31408
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
31409
|
-
key = sourceKeys[i];
|
31410
|
-
if (excluded.indexOf(key) >= 0)
|
31411
|
-
continue;
|
31412
|
-
target[key] = source[key];
|
31413
|
-
}
|
31414
|
-
return target;
|
31415
|
-
}
|
31416
|
-
var Lock = (0, import_react16.forwardRef)(function(_ref, ref) {
|
31417
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties13(_ref, ["color", "size"]);
|
31418
|
-
return /* @__PURE__ */ import_react16.default.createElement("svg", _extends13({
|
31419
|
-
ref,
|
31420
|
-
xmlns: "http://www.w3.org/2000/svg",
|
31421
|
-
width: size,
|
31422
|
-
height: size,
|
31423
|
-
viewBox: "0 0 24 24",
|
31424
|
-
fill: "none",
|
31425
|
-
stroke: color,
|
31426
|
-
strokeWidth: "2",
|
31427
|
-
strokeLinecap: "round",
|
31428
|
-
strokeLinejoin: "round"
|
31429
|
-
}, rest), /* @__PURE__ */ import_react16.default.createElement("rect", {
|
31430
|
-
x: "3",
|
31431
|
-
y: "11",
|
31432
|
-
width: "18",
|
31433
|
-
height: "11",
|
31434
|
-
rx: "2",
|
31435
|
-
ry: "2"
|
31436
|
-
}), /* @__PURE__ */ import_react16.default.createElement("path", {
|
31437
|
-
d: "M7 11V7a5 5 0 0 1 10 0v4"
|
31438
|
-
}));
|
31439
|
-
});
|
31440
|
-
Lock.propTypes = {
|
31441
|
-
color: import_prop_types13.default.string,
|
31442
|
-
size: import_prop_types13.default.oneOfType([import_prop_types13.default.string, import_prop_types13.default.number])
|
31443
|
-
};
|
31444
|
-
Lock.displayName = "Lock";
|
31445
|
-
var lock_default = Lock;
|
29549
|
+
var LayoutGrid = createLucideIcon("LayoutGrid", [
|
29550
|
+
["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
|
29551
|
+
["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
|
29552
|
+
["rect", { width: "7", height: "7", x: "14", y: "14", rx: "1", key: "nxv5o0" }],
|
29553
|
+
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }]
|
29554
|
+
]);
|
31446
29555
|
|
31447
|
-
// ../../node_modules/react
|
29556
|
+
// ../../node_modules/lucide-react/dist/esm/icons/link.js
|
31448
29557
|
init_react_import();
|
31449
|
-
var
|
31450
|
-
|
31451
|
-
|
31452
|
-
|
31453
|
-
for (var i = 1; i < arguments.length; i++) {
|
31454
|
-
var source = arguments[i];
|
31455
|
-
for (var key in source) {
|
31456
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
31457
|
-
target[key] = source[key];
|
31458
|
-
}
|
31459
|
-
}
|
31460
|
-
}
|
31461
|
-
return target;
|
31462
|
-
};
|
31463
|
-
return _extends14.apply(this, arguments);
|
31464
|
-
}
|
31465
|
-
function _objectWithoutProperties14(source, excluded) {
|
31466
|
-
if (source == null)
|
31467
|
-
return {};
|
31468
|
-
var target = _objectWithoutPropertiesLoose14(source, excluded);
|
31469
|
-
var key, i;
|
31470
|
-
if (Object.getOwnPropertySymbols) {
|
31471
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
31472
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
31473
|
-
key = sourceSymbolKeys[i];
|
31474
|
-
if (excluded.indexOf(key) >= 0)
|
31475
|
-
continue;
|
31476
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
31477
|
-
continue;
|
31478
|
-
target[key] = source[key];
|
31479
|
-
}
|
31480
|
-
}
|
31481
|
-
return target;
|
31482
|
-
}
|
31483
|
-
function _objectWithoutPropertiesLoose14(source, excluded) {
|
31484
|
-
if (source == null)
|
31485
|
-
return {};
|
31486
|
-
var target = {};
|
31487
|
-
var sourceKeys = Object.keys(source);
|
31488
|
-
var key, i;
|
31489
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
31490
|
-
key = sourceKeys[i];
|
31491
|
-
if (excluded.indexOf(key) >= 0)
|
31492
|
-
continue;
|
31493
|
-
target[key] = source[key];
|
31494
|
-
}
|
31495
|
-
return target;
|
31496
|
-
}
|
31497
|
-
var MoreVertical = (0, import_react17.forwardRef)(function(_ref, ref) {
|
31498
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties14(_ref, ["color", "size"]);
|
31499
|
-
return /* @__PURE__ */ import_react17.default.createElement("svg", _extends14({
|
31500
|
-
ref,
|
31501
|
-
xmlns: "http://www.w3.org/2000/svg",
|
31502
|
-
width: size,
|
31503
|
-
height: size,
|
31504
|
-
viewBox: "0 0 24 24",
|
31505
|
-
fill: "none",
|
31506
|
-
stroke: color,
|
31507
|
-
strokeWidth: "2",
|
31508
|
-
strokeLinecap: "round",
|
31509
|
-
strokeLinejoin: "round"
|
31510
|
-
}, rest), /* @__PURE__ */ import_react17.default.createElement("circle", {
|
31511
|
-
cx: "12",
|
31512
|
-
cy: "12",
|
31513
|
-
r: "1"
|
31514
|
-
}), /* @__PURE__ */ import_react17.default.createElement("circle", {
|
31515
|
-
cx: "12",
|
31516
|
-
cy: "5",
|
31517
|
-
r: "1"
|
31518
|
-
}), /* @__PURE__ */ import_react17.default.createElement("circle", {
|
31519
|
-
cx: "12",
|
31520
|
-
cy: "19",
|
31521
|
-
r: "1"
|
31522
|
-
}));
|
31523
|
-
});
|
31524
|
-
MoreVertical.propTypes = {
|
31525
|
-
color: import_prop_types14.default.string,
|
31526
|
-
size: import_prop_types14.default.oneOfType([import_prop_types14.default.string, import_prop_types14.default.number])
|
31527
|
-
};
|
31528
|
-
MoreVertical.displayName = "MoreVertical";
|
31529
|
-
var more_vertical_default = MoreVertical;
|
29558
|
+
var Link = createLucideIcon("Link", [
|
29559
|
+
["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
|
29560
|
+
["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
|
29561
|
+
]);
|
31530
29562
|
|
31531
|
-
// ../../node_modules/react
|
29563
|
+
// ../../node_modules/lucide-react/dist/esm/icons/list.js
|
31532
29564
|
init_react_import();
|
31533
|
-
var
|
31534
|
-
|
31535
|
-
|
31536
|
-
|
31537
|
-
|
31538
|
-
|
31539
|
-
|
31540
|
-
|
31541
|
-
target[key] = source[key];
|
31542
|
-
}
|
31543
|
-
}
|
31544
|
-
}
|
31545
|
-
return target;
|
31546
|
-
};
|
31547
|
-
return _extends15.apply(this, arguments);
|
31548
|
-
}
|
31549
|
-
function _objectWithoutProperties15(source, excluded) {
|
31550
|
-
if (source == null)
|
31551
|
-
return {};
|
31552
|
-
var target = _objectWithoutPropertiesLoose15(source, excluded);
|
31553
|
-
var key, i;
|
31554
|
-
if (Object.getOwnPropertySymbols) {
|
31555
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
31556
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
31557
|
-
key = sourceSymbolKeys[i];
|
31558
|
-
if (excluded.indexOf(key) >= 0)
|
31559
|
-
continue;
|
31560
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
31561
|
-
continue;
|
31562
|
-
target[key] = source[key];
|
31563
|
-
}
|
31564
|
-
}
|
31565
|
-
return target;
|
31566
|
-
}
|
31567
|
-
function _objectWithoutPropertiesLoose15(source, excluded) {
|
31568
|
-
if (source == null)
|
31569
|
-
return {};
|
31570
|
-
var target = {};
|
31571
|
-
var sourceKeys = Object.keys(source);
|
31572
|
-
var key, i;
|
31573
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
31574
|
-
key = sourceKeys[i];
|
31575
|
-
if (excluded.indexOf(key) >= 0)
|
31576
|
-
continue;
|
31577
|
-
target[key] = source[key];
|
31578
|
-
}
|
31579
|
-
return target;
|
31580
|
-
}
|
31581
|
-
var Plus = (0, import_react18.forwardRef)(function(_ref, ref) {
|
31582
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties15(_ref, ["color", "size"]);
|
31583
|
-
return /* @__PURE__ */ import_react18.default.createElement("svg", _extends15({
|
31584
|
-
ref,
|
31585
|
-
xmlns: "http://www.w3.org/2000/svg",
|
31586
|
-
width: size,
|
31587
|
-
height: size,
|
31588
|
-
viewBox: "0 0 24 24",
|
31589
|
-
fill: "none",
|
31590
|
-
stroke: color,
|
31591
|
-
strokeWidth: "2",
|
31592
|
-
strokeLinecap: "round",
|
31593
|
-
strokeLinejoin: "round"
|
31594
|
-
}, rest), /* @__PURE__ */ import_react18.default.createElement("line", {
|
31595
|
-
x1: "12",
|
31596
|
-
y1: "5",
|
31597
|
-
x2: "12",
|
31598
|
-
y2: "19"
|
31599
|
-
}), /* @__PURE__ */ import_react18.default.createElement("line", {
|
31600
|
-
x1: "5",
|
31601
|
-
y1: "12",
|
31602
|
-
x2: "19",
|
31603
|
-
y2: "12"
|
31604
|
-
}));
|
31605
|
-
});
|
31606
|
-
Plus.propTypes = {
|
31607
|
-
color: import_prop_types15.default.string,
|
31608
|
-
size: import_prop_types15.default.oneOfType([import_prop_types15.default.string, import_prop_types15.default.number])
|
31609
|
-
};
|
31610
|
-
Plus.displayName = "Plus";
|
31611
|
-
var plus_default = Plus;
|
29565
|
+
var List = createLucideIcon("List", [
|
29566
|
+
["line", { x1: "8", x2: "21", y1: "6", y2: "6", key: "7ey8pc" }],
|
29567
|
+
["line", { x1: "8", x2: "21", y1: "12", y2: "12", key: "rjfblc" }],
|
29568
|
+
["line", { x1: "8", x2: "21", y1: "18", y2: "18", key: "c3b1m8" }],
|
29569
|
+
["line", { x1: "3", x2: "3.01", y1: "6", y2: "6", key: "1g7gq3" }],
|
29570
|
+
["line", { x1: "3", x2: "3.01", y1: "12", y2: "12", key: "1pjlvk" }],
|
29571
|
+
["line", { x1: "3", x2: "3.01", y1: "18", y2: "18", key: "28t2mc" }]
|
29572
|
+
]);
|
31612
29573
|
|
31613
|
-
// ../../node_modules/react
|
29574
|
+
// ../../node_modules/lucide-react/dist/esm/icons/lock.js
|
31614
29575
|
init_react_import();
|
31615
|
-
var
|
31616
|
-
|
31617
|
-
|
31618
|
-
|
31619
|
-
for (var i = 1; i < arguments.length; i++) {
|
31620
|
-
var source = arguments[i];
|
31621
|
-
for (var key in source) {
|
31622
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
31623
|
-
target[key] = source[key];
|
31624
|
-
}
|
31625
|
-
}
|
31626
|
-
}
|
31627
|
-
return target;
|
31628
|
-
};
|
31629
|
-
return _extends16.apply(this, arguments);
|
31630
|
-
}
|
31631
|
-
function _objectWithoutProperties16(source, excluded) {
|
31632
|
-
if (source == null)
|
31633
|
-
return {};
|
31634
|
-
var target = _objectWithoutPropertiesLoose16(source, excluded);
|
31635
|
-
var key, i;
|
31636
|
-
if (Object.getOwnPropertySymbols) {
|
31637
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
31638
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
31639
|
-
key = sourceSymbolKeys[i];
|
31640
|
-
if (excluded.indexOf(key) >= 0)
|
31641
|
-
continue;
|
31642
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
31643
|
-
continue;
|
31644
|
-
target[key] = source[key];
|
31645
|
-
}
|
31646
|
-
}
|
31647
|
-
return target;
|
31648
|
-
}
|
31649
|
-
function _objectWithoutPropertiesLoose16(source, excluded) {
|
31650
|
-
if (source == null)
|
31651
|
-
return {};
|
31652
|
-
var target = {};
|
31653
|
-
var sourceKeys = Object.keys(source);
|
31654
|
-
var key, i;
|
31655
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
31656
|
-
key = sourceKeys[i];
|
31657
|
-
if (excluded.indexOf(key) >= 0)
|
31658
|
-
continue;
|
31659
|
-
target[key] = source[key];
|
31660
|
-
}
|
31661
|
-
return target;
|
31662
|
-
}
|
31663
|
-
var Search = (0, import_react19.forwardRef)(function(_ref, ref) {
|
31664
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties16(_ref, ["color", "size"]);
|
31665
|
-
return /* @__PURE__ */ import_react19.default.createElement("svg", _extends16({
|
31666
|
-
ref,
|
31667
|
-
xmlns: "http://www.w3.org/2000/svg",
|
31668
|
-
width: size,
|
31669
|
-
height: size,
|
31670
|
-
viewBox: "0 0 24 24",
|
31671
|
-
fill: "none",
|
31672
|
-
stroke: color,
|
31673
|
-
strokeWidth: "2",
|
31674
|
-
strokeLinecap: "round",
|
31675
|
-
strokeLinejoin: "round"
|
31676
|
-
}, rest), /* @__PURE__ */ import_react19.default.createElement("circle", {
|
31677
|
-
cx: "11",
|
31678
|
-
cy: "11",
|
31679
|
-
r: "8"
|
31680
|
-
}), /* @__PURE__ */ import_react19.default.createElement("line", {
|
31681
|
-
x1: "21",
|
31682
|
-
y1: "21",
|
31683
|
-
x2: "16.65",
|
31684
|
-
y2: "16.65"
|
31685
|
-
}));
|
31686
|
-
});
|
31687
|
-
Search.propTypes = {
|
31688
|
-
color: import_prop_types16.default.string,
|
31689
|
-
size: import_prop_types16.default.oneOfType([import_prop_types16.default.string, import_prop_types16.default.number])
|
31690
|
-
};
|
31691
|
-
Search.displayName = "Search";
|
31692
|
-
var search_default = Search;
|
29576
|
+
var Lock = createLucideIcon("Lock", [
|
29577
|
+
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
29578
|
+
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
29579
|
+
]);
|
31693
29580
|
|
31694
|
-
// ../../node_modules/react
|
29581
|
+
// ../../node_modules/lucide-react/dist/esm/icons/more-vertical.js
|
31695
29582
|
init_react_import();
|
31696
|
-
var
|
31697
|
-
|
31698
|
-
|
31699
|
-
|
31700
|
-
|
31701
|
-
var source = arguments[i];
|
31702
|
-
for (var key in source) {
|
31703
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
31704
|
-
target[key] = source[key];
|
31705
|
-
}
|
31706
|
-
}
|
31707
|
-
}
|
31708
|
-
return target;
|
31709
|
-
};
|
31710
|
-
return _extends17.apply(this, arguments);
|
31711
|
-
}
|
31712
|
-
function _objectWithoutProperties17(source, excluded) {
|
31713
|
-
if (source == null)
|
31714
|
-
return {};
|
31715
|
-
var target = _objectWithoutPropertiesLoose17(source, excluded);
|
31716
|
-
var key, i;
|
31717
|
-
if (Object.getOwnPropertySymbols) {
|
31718
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
31719
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
31720
|
-
key = sourceSymbolKeys[i];
|
31721
|
-
if (excluded.indexOf(key) >= 0)
|
31722
|
-
continue;
|
31723
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
31724
|
-
continue;
|
31725
|
-
target[key] = source[key];
|
31726
|
-
}
|
31727
|
-
}
|
31728
|
-
return target;
|
31729
|
-
}
|
31730
|
-
function _objectWithoutPropertiesLoose17(source, excluded) {
|
31731
|
-
if (source == null)
|
31732
|
-
return {};
|
31733
|
-
var target = {};
|
31734
|
-
var sourceKeys = Object.keys(source);
|
31735
|
-
var key, i;
|
31736
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
31737
|
-
key = sourceKeys[i];
|
31738
|
-
if (excluded.indexOf(key) >= 0)
|
31739
|
-
continue;
|
31740
|
-
target[key] = source[key];
|
31741
|
-
}
|
31742
|
-
return target;
|
31743
|
-
}
|
31744
|
-
var Sidebar = (0, import_react20.forwardRef)(function(_ref, ref) {
|
31745
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties17(_ref, ["color", "size"]);
|
31746
|
-
return /* @__PURE__ */ import_react20.default.createElement("svg", _extends17({
|
31747
|
-
ref,
|
31748
|
-
xmlns: "http://www.w3.org/2000/svg",
|
31749
|
-
width: size,
|
31750
|
-
height: size,
|
31751
|
-
viewBox: "0 0 24 24",
|
31752
|
-
fill: "none",
|
31753
|
-
stroke: color,
|
31754
|
-
strokeWidth: "2",
|
31755
|
-
strokeLinecap: "round",
|
31756
|
-
strokeLinejoin: "round"
|
31757
|
-
}, rest), /* @__PURE__ */ import_react20.default.createElement("rect", {
|
31758
|
-
x: "3",
|
31759
|
-
y: "3",
|
31760
|
-
width: "18",
|
31761
|
-
height: "18",
|
31762
|
-
rx: "2",
|
31763
|
-
ry: "2"
|
31764
|
-
}), /* @__PURE__ */ import_react20.default.createElement("line", {
|
31765
|
-
x1: "9",
|
31766
|
-
y1: "3",
|
31767
|
-
x2: "9",
|
31768
|
-
y2: "21"
|
31769
|
-
}));
|
31770
|
-
});
|
31771
|
-
Sidebar.propTypes = {
|
31772
|
-
color: import_prop_types17.default.string,
|
31773
|
-
size: import_prop_types17.default.oneOfType([import_prop_types17.default.string, import_prop_types17.default.number])
|
31774
|
-
};
|
31775
|
-
Sidebar.displayName = "Sidebar";
|
31776
|
-
var sidebar_default = Sidebar;
|
29583
|
+
var MoreVertical = createLucideIcon("MoreVertical", [
|
29584
|
+
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
29585
|
+
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
29586
|
+
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
29587
|
+
]);
|
31777
29588
|
|
31778
|
-
// ../../node_modules/react
|
29589
|
+
// ../../node_modules/lucide-react/dist/esm/icons/panel-left.js
|
31779
29590
|
init_react_import();
|
31780
|
-
var
|
31781
|
-
|
31782
|
-
|
31783
|
-
|
31784
|
-
for (var i = 1; i < arguments.length; i++) {
|
31785
|
-
var source = arguments[i];
|
31786
|
-
for (var key in source) {
|
31787
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
31788
|
-
target[key] = source[key];
|
31789
|
-
}
|
31790
|
-
}
|
31791
|
-
}
|
31792
|
-
return target;
|
31793
|
-
};
|
31794
|
-
return _extends18.apply(this, arguments);
|
31795
|
-
}
|
31796
|
-
function _objectWithoutProperties18(source, excluded) {
|
31797
|
-
if (source == null)
|
31798
|
-
return {};
|
31799
|
-
var target = _objectWithoutPropertiesLoose18(source, excluded);
|
31800
|
-
var key, i;
|
31801
|
-
if (Object.getOwnPropertySymbols) {
|
31802
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
31803
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
31804
|
-
key = sourceSymbolKeys[i];
|
31805
|
-
if (excluded.indexOf(key) >= 0)
|
31806
|
-
continue;
|
31807
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
31808
|
-
continue;
|
31809
|
-
target[key] = source[key];
|
31810
|
-
}
|
31811
|
-
}
|
31812
|
-
return target;
|
31813
|
-
}
|
31814
|
-
function _objectWithoutPropertiesLoose18(source, excluded) {
|
31815
|
-
if (source == null)
|
31816
|
-
return {};
|
31817
|
-
var target = {};
|
31818
|
-
var sourceKeys = Object.keys(source);
|
31819
|
-
var key, i;
|
31820
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
31821
|
-
key = sourceKeys[i];
|
31822
|
-
if (excluded.indexOf(key) >= 0)
|
31823
|
-
continue;
|
31824
|
-
target[key] = source[key];
|
31825
|
-
}
|
31826
|
-
return target;
|
31827
|
-
}
|
31828
|
-
var Trash = (0, import_react21.forwardRef)(function(_ref, ref) {
|
31829
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties18(_ref, ["color", "size"]);
|
31830
|
-
return /* @__PURE__ */ import_react21.default.createElement("svg", _extends18({
|
31831
|
-
ref,
|
31832
|
-
xmlns: "http://www.w3.org/2000/svg",
|
31833
|
-
width: size,
|
31834
|
-
height: size,
|
31835
|
-
viewBox: "0 0 24 24",
|
31836
|
-
fill: "none",
|
31837
|
-
stroke: color,
|
31838
|
-
strokeWidth: "2",
|
31839
|
-
strokeLinecap: "round",
|
31840
|
-
strokeLinejoin: "round"
|
31841
|
-
}, rest), /* @__PURE__ */ import_react21.default.createElement("polyline", {
|
31842
|
-
points: "3 6 5 6 21 6"
|
31843
|
-
}), /* @__PURE__ */ import_react21.default.createElement("path", {
|
31844
|
-
d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"
|
31845
|
-
}));
|
31846
|
-
});
|
31847
|
-
Trash.propTypes = {
|
31848
|
-
color: import_prop_types18.default.string,
|
31849
|
-
size: import_prop_types18.default.oneOfType([import_prop_types18.default.string, import_prop_types18.default.number])
|
31850
|
-
};
|
31851
|
-
Trash.displayName = "Trash";
|
31852
|
-
var trash_default = Trash;
|
29591
|
+
var PanelLeft = createLucideIcon("PanelLeft", [
|
29592
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
29593
|
+
["line", { x1: "9", x2: "9", y1: "3", y2: "21", key: "13tij5" }]
|
29594
|
+
]);
|
31853
29595
|
|
31854
|
-
// ../../node_modules/react
|
29596
|
+
// ../../node_modules/lucide-react/dist/esm/icons/panel-right.js
|
31855
29597
|
init_react_import();
|
31856
|
-
var
|
31857
|
-
|
31858
|
-
|
31859
|
-
|
31860
|
-
for (var i = 1; i < arguments.length; i++) {
|
31861
|
-
var source = arguments[i];
|
31862
|
-
for (var key in source) {
|
31863
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
31864
|
-
target[key] = source[key];
|
31865
|
-
}
|
31866
|
-
}
|
31867
|
-
}
|
31868
|
-
return target;
|
31869
|
-
};
|
31870
|
-
return _extends19.apply(this, arguments);
|
31871
|
-
}
|
31872
|
-
function _objectWithoutProperties19(source, excluded) {
|
31873
|
-
if (source == null)
|
31874
|
-
return {};
|
31875
|
-
var target = _objectWithoutPropertiesLoose19(source, excluded);
|
31876
|
-
var key, i;
|
31877
|
-
if (Object.getOwnPropertySymbols) {
|
31878
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
31879
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
31880
|
-
key = sourceSymbolKeys[i];
|
31881
|
-
if (excluded.indexOf(key) >= 0)
|
31882
|
-
continue;
|
31883
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
31884
|
-
continue;
|
31885
|
-
target[key] = source[key];
|
31886
|
-
}
|
31887
|
-
}
|
31888
|
-
return target;
|
31889
|
-
}
|
31890
|
-
function _objectWithoutPropertiesLoose19(source, excluded) {
|
31891
|
-
if (source == null)
|
31892
|
-
return {};
|
31893
|
-
var target = {};
|
31894
|
-
var sourceKeys = Object.keys(source);
|
31895
|
-
var key, i;
|
31896
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
31897
|
-
key = sourceKeys[i];
|
31898
|
-
if (excluded.indexOf(key) >= 0)
|
31899
|
-
continue;
|
31900
|
-
target[key] = source[key];
|
31901
|
-
}
|
31902
|
-
return target;
|
31903
|
-
}
|
31904
|
-
var Type = (0, import_react22.forwardRef)(function(_ref, ref) {
|
31905
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties19(_ref, ["color", "size"]);
|
31906
|
-
return /* @__PURE__ */ import_react22.default.createElement("svg", _extends19({
|
31907
|
-
ref,
|
31908
|
-
xmlns: "http://www.w3.org/2000/svg",
|
31909
|
-
width: size,
|
31910
|
-
height: size,
|
31911
|
-
viewBox: "0 0 24 24",
|
31912
|
-
fill: "none",
|
31913
|
-
stroke: color,
|
31914
|
-
strokeWidth: "2",
|
31915
|
-
strokeLinecap: "round",
|
31916
|
-
strokeLinejoin: "round"
|
31917
|
-
}, rest), /* @__PURE__ */ import_react22.default.createElement("polyline", {
|
31918
|
-
points: "4 7 4 4 20 4 20 7"
|
31919
|
-
}), /* @__PURE__ */ import_react22.default.createElement("line", {
|
31920
|
-
x1: "9",
|
31921
|
-
y1: "20",
|
31922
|
-
x2: "15",
|
31923
|
-
y2: "20"
|
31924
|
-
}), /* @__PURE__ */ import_react22.default.createElement("line", {
|
31925
|
-
x1: "12",
|
31926
|
-
y1: "4",
|
31927
|
-
x2: "12",
|
31928
|
-
y2: "20"
|
31929
|
-
}));
|
31930
|
-
});
|
31931
|
-
Type.propTypes = {
|
31932
|
-
color: import_prop_types19.default.string,
|
31933
|
-
size: import_prop_types19.default.oneOfType([import_prop_types19.default.string, import_prop_types19.default.number])
|
31934
|
-
};
|
31935
|
-
Type.displayName = "Type";
|
31936
|
-
var type_default = Type;
|
29598
|
+
var PanelRight = createLucideIcon("PanelRight", [
|
29599
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
29600
|
+
["line", { x1: "15", x2: "15", y1: "3", y2: "21", key: "1hpv9i" }]
|
29601
|
+
]);
|
31937
29602
|
|
31938
|
-
// ../../node_modules/react
|
29603
|
+
// ../../node_modules/lucide-react/dist/esm/icons/plus.js
|
31939
29604
|
init_react_import();
|
31940
|
-
var
|
31941
|
-
|
31942
|
-
|
31943
|
-
|
31944
|
-
|
31945
|
-
|
31946
|
-
|
31947
|
-
|
31948
|
-
|
31949
|
-
|
31950
|
-
|
31951
|
-
|
31952
|
-
|
31953
|
-
|
31954
|
-
|
31955
|
-
}
|
31956
|
-
|
31957
|
-
|
31958
|
-
|
31959
|
-
|
31960
|
-
|
31961
|
-
|
31962
|
-
|
31963
|
-
|
31964
|
-
|
31965
|
-
|
31966
|
-
|
31967
|
-
|
31968
|
-
|
31969
|
-
|
31970
|
-
|
31971
|
-
}
|
31972
|
-
|
31973
|
-
|
31974
|
-
function _objectWithoutPropertiesLoose20(source, excluded) {
|
31975
|
-
if (source == null)
|
31976
|
-
return {};
|
31977
|
-
var target = {};
|
31978
|
-
var sourceKeys = Object.keys(source);
|
31979
|
-
var key, i;
|
31980
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
31981
|
-
key = sourceKeys[i];
|
31982
|
-
if (excluded.indexOf(key) >= 0)
|
31983
|
-
continue;
|
31984
|
-
target[key] = source[key];
|
31985
|
-
}
|
31986
|
-
return target;
|
31987
|
-
}
|
31988
|
-
var Unlock = (0, import_react23.forwardRef)(function(_ref, ref) {
|
31989
|
-
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties20(_ref, ["color", "size"]);
|
31990
|
-
return /* @__PURE__ */ import_react23.default.createElement("svg", _extends20({
|
31991
|
-
ref,
|
31992
|
-
xmlns: "http://www.w3.org/2000/svg",
|
31993
|
-
width: size,
|
31994
|
-
height: size,
|
31995
|
-
viewBox: "0 0 24 24",
|
31996
|
-
fill: "none",
|
31997
|
-
stroke: color,
|
31998
|
-
strokeWidth: "2",
|
31999
|
-
strokeLinecap: "round",
|
32000
|
-
strokeLinejoin: "round"
|
32001
|
-
}, rest), /* @__PURE__ */ import_react23.default.createElement("rect", {
|
32002
|
-
x: "3",
|
32003
|
-
y: "11",
|
32004
|
-
width: "18",
|
32005
|
-
height: "11",
|
32006
|
-
rx: "2",
|
32007
|
-
ry: "2"
|
32008
|
-
}), /* @__PURE__ */ import_react23.default.createElement("path", {
|
32009
|
-
d: "M7 11V7a5 5 0 0 1 9.9-1"
|
32010
|
-
}));
|
32011
|
-
});
|
32012
|
-
Unlock.propTypes = {
|
32013
|
-
color: import_prop_types20.default.string,
|
32014
|
-
size: import_prop_types20.default.oneOfType([import_prop_types20.default.string, import_prop_types20.default.number])
|
32015
|
-
};
|
32016
|
-
Unlock.displayName = "Unlock";
|
32017
|
-
var unlock_default = Unlock;
|
29605
|
+
var Plus = createLucideIcon("Plus", [
|
29606
|
+
["path", { d: "M5 12h14", key: "1ays0h" }],
|
29607
|
+
["path", { d: "M12 5v14", key: "s699le" }]
|
29608
|
+
]);
|
29609
|
+
|
29610
|
+
// ../../node_modules/lucide-react/dist/esm/icons/search.js
|
29611
|
+
init_react_import();
|
29612
|
+
var Search = createLucideIcon("Search", [
|
29613
|
+
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
29614
|
+
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
29615
|
+
]);
|
29616
|
+
|
29617
|
+
// ../../node_modules/lucide-react/dist/esm/icons/trash.js
|
29618
|
+
init_react_import();
|
29619
|
+
var Trash = createLucideIcon("Trash", [
|
29620
|
+
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
29621
|
+
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
29622
|
+
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }]
|
29623
|
+
]);
|
29624
|
+
|
29625
|
+
// ../../node_modules/lucide-react/dist/esm/icons/type.js
|
29626
|
+
init_react_import();
|
29627
|
+
var Type = createLucideIcon("Type", [
|
29628
|
+
["polyline", { points: "4 7 4 4 20 4 20 7", key: "1nosan" }],
|
29629
|
+
["line", { x1: "9", x2: "15", y1: "20", y2: "20", key: "swin9y" }],
|
29630
|
+
["line", { x1: "12", x2: "12", y1: "4", y2: "20", key: "1tx1rr" }]
|
29631
|
+
]);
|
29632
|
+
|
29633
|
+
// ../../node_modules/lucide-react/dist/esm/icons/unlock.js
|
29634
|
+
init_react_import();
|
29635
|
+
var Unlock = createLucideIcon("Unlock", [
|
29636
|
+
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
29637
|
+
["path", { d: "M7 11V7a5 5 0 0 1 9.9-1", key: "1mm8w8" }]
|
29638
|
+
]);
|
32018
29639
|
|
32019
29640
|
// lib/use-modifier-held.ts
|
32020
29641
|
init_react_import();
|
32021
|
-
var
|
29642
|
+
var import_react5 = require("react");
|
32022
29643
|
var useModifierHeld = (modifier) => {
|
32023
|
-
const [modifierHeld, setModifierHeld] = (0,
|
32024
|
-
(0,
|
29644
|
+
const [modifierHeld, setModifierHeld] = (0, import_react5.useState)(false);
|
29645
|
+
(0, import_react5.useEffect)(() => {
|
32025
29646
|
function downHandler({ key }) {
|
32026
29647
|
if (key === modifier) {
|
32027
29648
|
setModifierHeld(true);
|
@@ -32069,7 +29690,7 @@ var DraggableComponent = ({
|
|
32069
29690
|
style
|
32070
29691
|
}) => {
|
32071
29692
|
const isModifierHeld = useModifierHeld("Alt");
|
32072
|
-
(0,
|
29693
|
+
(0, import_react6.useEffect)(onMount, []);
|
32073
29694
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
32074
29695
|
import_dnd3.Draggable,
|
32075
29696
|
{
|
@@ -32102,8 +29723,8 @@ var DraggableComponent = ({
|
|
32102
29723
|
isLoading && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: getClassName4("loadingOverlay"), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_spinners2.ClipLoader, { "aria-label": "loading", size: 16, color: "inherit" }) }),
|
32103
29724
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: getClassName4("overlay"), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: getClassName4("actions"), children: [
|
32104
29725
|
label && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: getClassName4("actionsLabel"), children: label }),
|
32105
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className: getClassName4("action"), onClick: onDuplicate, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
32106
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className: getClassName4("action"), onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
29726
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className: getClassName4("action"), onClick: onDuplicate, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Copy, { size: 16 }) }),
|
29727
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className: getClassName4("action"), onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Trash, { size: 16 }) })
|
32107
29728
|
] }) }),
|
32108
29729
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: getClassName4("contents"), children })
|
32109
29730
|
]
|
@@ -32152,7 +29773,7 @@ var styles_module_default4 = { "DropZone": "_DropZone_i675d_1", "DropZone--zoomE
|
|
32152
29773
|
|
32153
29774
|
// components/DropZone/context.tsx
|
32154
29775
|
init_react_import();
|
32155
|
-
var
|
29776
|
+
var import_react7 = require("react");
|
32156
29777
|
var import_use_debounce = require("use-debounce");
|
32157
29778
|
|
32158
29779
|
// lib/get-zone-id.ts
|
@@ -32169,29 +29790,29 @@ var getZoneId = (zoneCompound) => {
|
|
32169
29790
|
|
32170
29791
|
// components/DropZone/context.tsx
|
32171
29792
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
32172
|
-
var dropZoneContext = (0,
|
29793
|
+
var dropZoneContext = (0, import_react7.createContext)(null);
|
32173
29794
|
var DropZoneProvider = ({
|
32174
29795
|
children,
|
32175
29796
|
value
|
32176
29797
|
}) => {
|
32177
|
-
const [hoveringArea, setHoveringArea] = (0,
|
32178
|
-
const [hoveringZone, setHoveringZone] = (0,
|
29798
|
+
const [hoveringArea, setHoveringArea] = (0, import_react7.useState)(null);
|
29799
|
+
const [hoveringZone, setHoveringZone] = (0, import_react7.useState)(
|
32179
29800
|
rootDroppableId
|
32180
29801
|
);
|
32181
|
-
const [hoveringComponent, setHoveringComponent] = (0,
|
29802
|
+
const [hoveringComponent, setHoveringComponent] = (0, import_react7.useState)();
|
32182
29803
|
const [hoveringAreaDb] = (0, import_use_debounce.useDebounce)(hoveringArea, 75, { leading: false });
|
32183
|
-
const [areasWithZones, setAreasWithZones] = (0,
|
29804
|
+
const [areasWithZones, setAreasWithZones] = (0, import_react7.useState)(
|
32184
29805
|
{}
|
32185
29806
|
);
|
32186
|
-
const [activeZones, setActiveZones] = (0,
|
29807
|
+
const [activeZones, setActiveZones] = (0, import_react7.useState)({});
|
32187
29808
|
const { dispatch = null } = value ? value : {};
|
32188
|
-
const registerZoneArea = (0,
|
29809
|
+
const registerZoneArea = (0, import_react7.useCallback)(
|
32189
29810
|
(area) => {
|
32190
29811
|
setAreasWithZones((latest) => __spreadProps(__spreadValues({}, latest), { [area]: true }));
|
32191
29812
|
},
|
32192
29813
|
[setAreasWithZones]
|
32193
29814
|
);
|
32194
|
-
const registerZone = (0,
|
29815
|
+
const registerZone = (0, import_react7.useCallback)(
|
32195
29816
|
(zoneCompound) => {
|
32196
29817
|
if (!dispatch) {
|
32197
29818
|
return;
|
@@ -32204,7 +29825,7 @@ var DropZoneProvider = ({
|
|
32204
29825
|
},
|
32205
29826
|
[setActiveZones, dispatch]
|
32206
29827
|
);
|
32207
|
-
const unregisterZone = (0,
|
29828
|
+
const unregisterZone = (0, import_react7.useCallback)(
|
32208
29829
|
(zoneCompound) => {
|
32209
29830
|
if (!dispatch) {
|
32210
29831
|
return;
|
@@ -32219,8 +29840,8 @@ var DropZoneProvider = ({
|
|
32219
29840
|
},
|
32220
29841
|
[setActiveZones, dispatch]
|
32221
29842
|
);
|
32222
|
-
const [pathData, setPathData] = (0,
|
32223
|
-
const registerPath = (0,
|
29843
|
+
const [pathData, setPathData] = (0, import_react7.useState)();
|
29844
|
+
const registerPath = (0, import_react7.useCallback)(
|
32224
29845
|
(selector) => {
|
32225
29846
|
if (!(value == null ? void 0 : value.data)) {
|
32226
29847
|
return;
|
@@ -32270,7 +29891,7 @@ var DropZoneProvider = ({
|
|
32270
29891
|
|
32271
29892
|
// components/Puck/context.tsx
|
32272
29893
|
init_react_import();
|
32273
|
-
var
|
29894
|
+
var import_react8 = require("react");
|
32274
29895
|
var defaultAppState = {
|
32275
29896
|
data: { content: [], root: { props: { title: "" } } },
|
32276
29897
|
ui: {
|
@@ -32282,7 +29903,7 @@ var defaultAppState = {
|
|
32282
29903
|
isDragging: false
|
32283
29904
|
}
|
32284
29905
|
};
|
32285
|
-
var appContext = (0,
|
29906
|
+
var appContext = (0, import_react8.createContext)({
|
32286
29907
|
state: defaultAppState,
|
32287
29908
|
dispatch: () => null,
|
32288
29909
|
config: { components: {} },
|
@@ -32290,11 +29911,12 @@ var appContext = (0, import_react27.createContext)({
|
|
32290
29911
|
resolveData: () => {
|
32291
29912
|
},
|
32292
29913
|
plugins: [],
|
32293
|
-
overrides: {}
|
29914
|
+
overrides: {},
|
29915
|
+
history: {}
|
32294
29916
|
});
|
32295
29917
|
var AppProvider = appContext.Provider;
|
32296
|
-
|
32297
|
-
const mainContext = (0,
|
29918
|
+
function useAppContext() {
|
29919
|
+
const mainContext = (0, import_react8.useContext)(appContext);
|
32298
29920
|
const selectedItem = mainContext.state.ui.itemSelector ? getItem(mainContext.state.ui.itemSelector, mainContext.state.data) : void 0;
|
32299
29921
|
return __spreadProps(__spreadValues({}, mainContext), {
|
32300
29922
|
// Helpers
|
@@ -32307,7 +29929,7 @@ var useAppContext = () => {
|
|
32307
29929
|
});
|
32308
29930
|
}
|
32309
29931
|
});
|
32310
|
-
}
|
29932
|
+
}
|
32311
29933
|
|
32312
29934
|
// components/DropZone/index.tsx
|
32313
29935
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
@@ -32315,7 +29937,7 @@ var getClassName5 = get_class_name_factory_default("DropZone", styles_module_def
|
|
32315
29937
|
function DropZoneEdit({ zone, allow, disallow, style }) {
|
32316
29938
|
var _a;
|
32317
29939
|
const appContext2 = useAppContext();
|
32318
|
-
const ctx = (0,
|
29940
|
+
const ctx = (0, import_react9.useContext)(dropZoneContext);
|
32319
29941
|
const {
|
32320
29942
|
// These all need setting via context
|
32321
29943
|
data,
|
@@ -32333,12 +29955,12 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
|
|
32333
29955
|
} = ctx || {};
|
32334
29956
|
let content = data.content || [];
|
32335
29957
|
let zoneCompound = rootDroppableId;
|
32336
|
-
(0,
|
29958
|
+
(0, import_react9.useEffect)(() => {
|
32337
29959
|
if (areaId && registerZoneArea) {
|
32338
29960
|
registerZoneArea(areaId);
|
32339
29961
|
}
|
32340
29962
|
}, [areaId]);
|
32341
|
-
(0,
|
29963
|
+
(0, import_react9.useEffect)(() => {
|
32342
29964
|
if (ctx == null ? void 0 : ctx.registerZone) {
|
32343
29965
|
ctx == null ? void 0 : ctx.registerZone(zoneCompound);
|
32344
29966
|
}
|
@@ -32359,7 +29981,7 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
|
|
32359
29981
|
const draggedDestinationId = draggedItem && ((_a = draggedItem.destination) == null ? void 0 : _a.droppableId);
|
32360
29982
|
const [zoneArea] = getZoneId(zoneCompound);
|
32361
29983
|
const [draggedSourceArea] = getZoneId(draggedSourceId);
|
32362
|
-
const [userWillDrag, setUserWillDrag] = (0,
|
29984
|
+
const [userWillDrag, setUserWillDrag] = (0, import_react9.useState)(false);
|
32363
29985
|
const userIsDragging = !!draggedItem;
|
32364
29986
|
const draggingOverArea = userIsDragging && zoneArea === draggedSourceArea;
|
32365
29987
|
const draggingNewComponent = draggedSourceId == null ? void 0 : draggedSourceId.startsWith("component-list");
|
@@ -32578,7 +30200,7 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
|
|
32578
30200
|
);
|
32579
30201
|
}
|
32580
30202
|
function DropZoneRender({ zone }) {
|
32581
|
-
const ctx = (0,
|
30203
|
+
const ctx = (0, import_react9.useContext)(dropZoneContext);
|
32582
30204
|
const { data, areaId = "root", config } = ctx || {};
|
32583
30205
|
let zoneCompound = rootDroppableId;
|
32584
30206
|
let content = (data == null ? void 0 : data.content) || [];
|
@@ -32610,7 +30232,7 @@ function DropZoneRender({ zone }) {
|
|
32610
30232
|
}) });
|
32611
30233
|
}
|
32612
30234
|
function DropZone(props) {
|
32613
|
-
const ctx = (0,
|
30235
|
+
const ctx = (0, import_react9.useContext)(dropZoneContext);
|
32614
30236
|
if ((ctx == null ? void 0 : ctx.mode) === "edit") {
|
32615
30237
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropZoneEdit, __spreadValues({}, props));
|
32616
30238
|
}
|
@@ -32622,7 +30244,7 @@ init_react_import();
|
|
32622
30244
|
|
32623
30245
|
// components/IconButton/IconButton.tsx
|
32624
30246
|
init_react_import();
|
32625
|
-
var
|
30247
|
+
var import_react10 = require("react");
|
32626
30248
|
|
32627
30249
|
// css-module:/home/runner/work/puck/puck/packages/core/components/IconButton/IconButton.module.css#css-module
|
32628
30250
|
init_react_import();
|
@@ -32644,7 +30266,7 @@ var IconButton = ({
|
|
32644
30266
|
fullWidth,
|
32645
30267
|
title
|
32646
30268
|
}) => {
|
32647
|
-
const [loading, setLoading] = (0,
|
30269
|
+
const [loading, setLoading] = (0, import_react10.useState)(false);
|
32648
30270
|
const ElementType = href ? "a" : "button";
|
32649
30271
|
const el = /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
32650
30272
|
ElementType,
|
@@ -32685,15 +30307,15 @@ var IconButton = ({
|
|
32685
30307
|
|
32686
30308
|
// components/Puck/index.tsx
|
32687
30309
|
init_react_import();
|
32688
|
-
var
|
30310
|
+
var import_react26 = require("react");
|
32689
30311
|
var import_dnd7 = require("@hello-pangea/dnd");
|
32690
30312
|
|
32691
30313
|
// lib/use-placeholder-style.ts
|
32692
30314
|
init_react_import();
|
32693
|
-
var
|
30315
|
+
var import_react11 = require("react");
|
32694
30316
|
var usePlaceholderStyle = () => {
|
32695
30317
|
const queryAttr = "data-rfd-drag-handle-draggable-id";
|
32696
|
-
const [placeholderStyle, setPlaceholderStyle] = (0,
|
30318
|
+
const [placeholderStyle, setPlaceholderStyle] = (0, import_react11.useState)();
|
32697
30319
|
const onDragStartOrUpdate = (draggedItem) => {
|
32698
30320
|
var _a;
|
32699
30321
|
const draggableId = draggedItem.draggableId;
|
@@ -32768,7 +30390,7 @@ var Heading = ({ children, rank, size = "m" }) => {
|
|
32768
30390
|
|
32769
30391
|
// lib/use-breadcrumbs.ts
|
32770
30392
|
init_react_import();
|
32771
|
-
var
|
30393
|
+
var import_react12 = require("react");
|
32772
30394
|
var convertPathDataToBreadcrumbs = (selectedItem, pathData, data) => {
|
32773
30395
|
const id = selectedItem ? selectedItem == null ? void 0 : selectedItem.props.id : "";
|
32774
30396
|
const currentPathData = pathData && id && pathData[id] ? __spreadValues({}, pathData[id]) : { label: "Page", path: [] };
|
@@ -32818,8 +30440,8 @@ var useBreadcrumbs = (renderCount) => {
|
|
32818
30440
|
state: { data },
|
32819
30441
|
selectedItem
|
32820
30442
|
} = useAppContext();
|
32821
|
-
const dzContext = (0,
|
32822
|
-
return (0,
|
30443
|
+
const dzContext = (0, import_react12.useContext)(dropZoneContext);
|
30444
|
+
return (0, import_react12.useMemo)(() => {
|
32823
30445
|
const breadcrumbs = convertPathDataToBreadcrumbs(
|
32824
30446
|
selectedItem,
|
32825
30447
|
dzContext == null ? void 0 : dzContext.pathData,
|
@@ -32863,7 +30485,7 @@ var SidebarSection = ({
|
|
32863
30485
|
children: breadcrumb.label
|
32864
30486
|
}
|
32865
30487
|
),
|
32866
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
30488
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ChevronRight, { size: 16 })
|
32867
30489
|
] }, i)) : null,
|
32868
30490
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: getClassName8("heading"), children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Heading, { rank: 2, size: "xs", children: title }) })
|
32869
30491
|
] }) }),
|
@@ -32877,116 +30499,6 @@ var SidebarSection = ({
|
|
32877
30499
|
// reducer/index.ts
|
32878
30500
|
init_react_import();
|
32879
30501
|
|
32880
|
-
// lib/use-puck-history.ts
|
32881
|
-
init_react_import();
|
32882
|
-
var import_react33 = require("react");
|
32883
|
-
|
32884
|
-
// lib/use-action-history.ts
|
32885
|
-
init_react_import();
|
32886
|
-
var import_react32 = require("react");
|
32887
|
-
|
32888
|
-
// lib/generate-id.ts
|
32889
|
-
init_react_import();
|
32890
|
-
var import_crypto = require("crypto");
|
32891
|
-
var generateId = (type) => `${type}-${(0, import_crypto.randomBytes)(20).toString("hex")}`;
|
32892
|
-
|
32893
|
-
// lib/use-action-history.ts
|
32894
|
-
var EMPTY_HISTORY_INDEX = -1;
|
32895
|
-
function useActionHistory() {
|
32896
|
-
const [histories, setHistories] = (0, import_react32.useState)([]);
|
32897
|
-
const [currentHistoryIndex, setCurrentHistoryIndex] = (0, import_react32.useState)(EMPTY_HISTORY_INDEX);
|
32898
|
-
const currentHistory = histories[currentHistoryIndex];
|
32899
|
-
const canRewind = currentHistoryIndex > EMPTY_HISTORY_INDEX;
|
32900
|
-
const canForward = currentHistoryIndex < histories.length - 1;
|
32901
|
-
const record = (params) => {
|
32902
|
-
const history = __spreadValues({
|
32903
|
-
id: generateId("history")
|
32904
|
-
}, params);
|
32905
|
-
setHistories((prev) => [
|
32906
|
-
...prev.slice(0, currentHistoryIndex + 1),
|
32907
|
-
history
|
32908
|
-
]);
|
32909
|
-
setCurrentHistoryIndex((prev) => prev + 1);
|
32910
|
-
};
|
32911
|
-
const rewind = () => {
|
32912
|
-
if (canRewind) {
|
32913
|
-
currentHistory.rewind();
|
32914
|
-
setCurrentHistoryIndex((prev) => prev - 1);
|
32915
|
-
}
|
32916
|
-
};
|
32917
|
-
const forward = () => {
|
32918
|
-
const forwardHistory = histories[currentHistoryIndex + 1];
|
32919
|
-
if (canForward && forwardHistory) {
|
32920
|
-
forwardHistory.forward();
|
32921
|
-
setCurrentHistoryIndex((prev) => prev + 1);
|
32922
|
-
}
|
32923
|
-
};
|
32924
|
-
return {
|
32925
|
-
currentHistory,
|
32926
|
-
canRewind,
|
32927
|
-
canForward,
|
32928
|
-
record,
|
32929
|
-
rewind,
|
32930
|
-
forward
|
32931
|
-
};
|
32932
|
-
}
|
32933
|
-
|
32934
|
-
// lib/use-puck-history.ts
|
32935
|
-
var import_react_hotkeys_hook = require("react-hotkeys-hook");
|
32936
|
-
var import_event_emitter = __toESM(require("event-emitter"));
|
32937
|
-
var import_use_debounce2 = require("use-debounce");
|
32938
|
-
var DEBOUNCE_TIME = 250;
|
32939
|
-
var RECORD_DIFF = "RECORD_DIFF";
|
32940
|
-
var historyEmitter = (0, import_event_emitter.default)();
|
32941
|
-
var recordDiff = (newAppState) => historyEmitter.emit(RECORD_DIFF, newAppState);
|
32942
|
-
var _recordHistory = ({
|
32943
|
-
snapshot,
|
32944
|
-
newSnapshot,
|
32945
|
-
record,
|
32946
|
-
dispatch
|
32947
|
-
}) => {
|
32948
|
-
if (JSON.stringify(snapshot) === JSON.stringify(newSnapshot))
|
32949
|
-
return;
|
32950
|
-
record({
|
32951
|
-
forward: () => {
|
32952
|
-
dispatch({ type: "set", state: newSnapshot });
|
32953
|
-
},
|
32954
|
-
rewind: () => {
|
32955
|
-
dispatch({ type: "set", state: snapshot });
|
32956
|
-
}
|
32957
|
-
});
|
32958
|
-
};
|
32959
|
-
function usePuckHistory({
|
32960
|
-
appState,
|
32961
|
-
dispatch
|
32962
|
-
}) {
|
32963
|
-
const { canForward, canRewind, rewind, forward, record } = useActionHistory();
|
32964
|
-
(0, import_react_hotkeys_hook.useHotkeys)("meta+z", rewind, { preventDefault: true });
|
32965
|
-
(0, import_react_hotkeys_hook.useHotkeys)("meta+shift+z", forward, { preventDefault: true });
|
32966
|
-
(0, import_react_hotkeys_hook.useHotkeys)("meta+y", forward, { preventDefault: true });
|
32967
|
-
const [snapshot] = (0, import_use_debounce2.useDebounce)(appState, DEBOUNCE_TIME);
|
32968
|
-
const handleRecordDiff = (0, import_use_debounce2.useDebouncedCallback)((newAppState) => {
|
32969
|
-
return _recordHistory({
|
32970
|
-
snapshot,
|
32971
|
-
newSnapshot: newAppState,
|
32972
|
-
record,
|
32973
|
-
dispatch
|
32974
|
-
});
|
32975
|
-
}, DEBOUNCE_TIME);
|
32976
|
-
(0, import_react33.useEffect)(() => {
|
32977
|
-
historyEmitter.on(RECORD_DIFF, handleRecordDiff);
|
32978
|
-
return () => {
|
32979
|
-
historyEmitter.off(RECORD_DIFF, handleRecordDiff);
|
32980
|
-
};
|
32981
|
-
}, [handleRecordDiff]);
|
32982
|
-
return {
|
32983
|
-
canForward,
|
32984
|
-
canRewind,
|
32985
|
-
rewind,
|
32986
|
-
forward
|
32987
|
-
};
|
32988
|
-
}
|
32989
|
-
|
32990
30502
|
// reducer/data.ts
|
32991
30503
|
init_react_import();
|
32992
30504
|
|
@@ -33008,6 +30520,13 @@ var remove = (list, index) => {
|
|
33008
30520
|
|
33009
30521
|
// lib/reduce-related-zones.ts
|
33010
30522
|
init_react_import();
|
30523
|
+
|
30524
|
+
// lib/generate-id.ts
|
30525
|
+
init_react_import();
|
30526
|
+
var import_crypto = require("crypto");
|
30527
|
+
var generateId = (type) => `${type}-${(0, import_crypto.randomBytes)(20).toString("hex")}`;
|
30528
|
+
|
30529
|
+
// lib/reduce-related-zones.ts
|
33011
30530
|
var reduceRelatedZones = (item, data, fn) => {
|
33012
30531
|
return __spreadProps(__spreadValues({}, data), {
|
33013
30532
|
zones: Object.keys(data.zones || {}).reduce(
|
@@ -33283,7 +30802,7 @@ var reduceUi = (ui, action) => {
|
|
33283
30802
|
init_react_import();
|
33284
30803
|
|
33285
30804
|
// reducer/index.ts
|
33286
|
-
var storeInterceptor = (reducer) => {
|
30805
|
+
var storeInterceptor = (reducer, record) => {
|
33287
30806
|
return (state, action) => {
|
33288
30807
|
const newAppState = reducer(state, action);
|
33289
30808
|
const isValidType = ![
|
@@ -33294,7 +30813,8 @@ var storeInterceptor = (reducer) => {
|
|
33294
30813
|
"set"
|
33295
30814
|
].includes(action.type);
|
33296
30815
|
if (typeof action.recordHistory !== "undefined" ? action.recordHistory : isValidType) {
|
33297
|
-
|
30816
|
+
if (record)
|
30817
|
+
record(newAppState);
|
33298
30818
|
}
|
33299
30819
|
return newAppState;
|
33300
30820
|
};
|
@@ -33305,16 +30825,19 @@ var setAction = (state, action) => {
|
|
33305
30825
|
}
|
33306
30826
|
return __spreadValues(__spreadValues({}, state), action.state(state));
|
33307
30827
|
};
|
33308
|
-
|
33309
|
-
config
|
33310
|
-
|
33311
|
-
|
33312
|
-
|
33313
|
-
|
33314
|
-
|
33315
|
-
|
33316
|
-
|
33317
|
-
}
|
30828
|
+
function createReducer({
|
30829
|
+
config,
|
30830
|
+
record
|
30831
|
+
}) {
|
30832
|
+
return storeInterceptor((state, action) => {
|
30833
|
+
const data = reduceData(state.data, action, config);
|
30834
|
+
const ui = reduceUi(state.ui, action);
|
30835
|
+
if (action.type === "set") {
|
30836
|
+
return setAction(state, action);
|
30837
|
+
}
|
30838
|
+
return { data, ui };
|
30839
|
+
}, record);
|
30840
|
+
}
|
33318
30841
|
|
33319
30842
|
// lib/flush-zones.ts
|
33320
30843
|
init_react_import();
|
@@ -33335,7 +30858,7 @@ var flushZones = (appState) => {
|
|
33335
30858
|
|
33336
30859
|
// lib/use-resolved-data.ts
|
33337
30860
|
init_react_import();
|
33338
|
-
var
|
30861
|
+
var import_react13 = require("react");
|
33339
30862
|
|
33340
30863
|
// lib/resolve-component-data.ts
|
33341
30864
|
init_react_import();
|
@@ -33450,13 +30973,13 @@ var resolveRootData = (data, config) => __async(void 0, null, function* () {
|
|
33450
30973
|
|
33451
30974
|
// lib/use-resolved-data.ts
|
33452
30975
|
var useResolvedData = (appState, config, dispatch) => {
|
33453
|
-
const [{ resolverKey, newAppState }, setResolverState] = (0,
|
30976
|
+
const [{ resolverKey, newAppState }, setResolverState] = (0, import_react13.useState)({
|
33454
30977
|
resolverKey: 0,
|
33455
30978
|
newAppState: appState
|
33456
30979
|
});
|
33457
|
-
const [componentState, setComponentState] = (0,
|
30980
|
+
const [componentState, setComponentState] = (0, import_react13.useState)({});
|
33458
30981
|
const deferredSetStates = {};
|
33459
|
-
const setComponentLoading = (0,
|
30982
|
+
const setComponentLoading = (0, import_react13.useCallback)(
|
33460
30983
|
(id, loading, defer = 0) => {
|
33461
30984
|
if (deferredSetStates[id]) {
|
33462
30985
|
clearTimeout(deferredSetStates[id]);
|
@@ -33523,10 +31046,10 @@ var useResolvedData = (appState, config, dispatch) => {
|
|
33523
31046
|
});
|
33524
31047
|
yield Promise.all(promises);
|
33525
31048
|
});
|
33526
|
-
(0,
|
31049
|
+
(0, import_react13.useEffect)(() => {
|
33527
31050
|
runResolvers();
|
33528
31051
|
}, [resolverKey]);
|
33529
|
-
const resolveData = (0,
|
31052
|
+
const resolveData = (0, import_react13.useCallback)((newAppState2 = appState) => {
|
33530
31053
|
setResolverState((curr) => ({
|
33531
31054
|
resolverKey: curr.resolverKey + 1,
|
33532
31055
|
newAppState: newAppState2
|
@@ -33557,10 +31080,10 @@ var MenuBar = ({
|
|
33557
31080
|
renderHeaderActions,
|
33558
31081
|
setMenuOpen
|
33559
31082
|
}) => {
|
33560
|
-
const {
|
33561
|
-
|
33562
|
-
|
33563
|
-
}
|
31083
|
+
const {
|
31084
|
+
history: { back, forward, historyStore }
|
31085
|
+
} = useAppContext();
|
31086
|
+
const { hasFuture = false, hasPast = false } = historyStore || {};
|
33564
31087
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
33565
31088
|
"div",
|
33566
31089
|
{
|
@@ -33577,18 +31100,18 @@ var MenuBar = ({
|
|
33577
31100
|
},
|
33578
31101
|
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: getClassName9("inner"), children: [
|
33579
31102
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: getClassName9("history"), children: [
|
33580
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(IconButton, { title: "undo", disabled: !
|
33581
|
-
|
31103
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(IconButton, { title: "undo", disabled: !hasPast, onClick: back, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
31104
|
+
ChevronLeft,
|
33582
31105
|
{
|
33583
31106
|
size: 21,
|
33584
|
-
stroke:
|
31107
|
+
stroke: hasPast ? "var(--puck-color-black)" : "var(--puck-color-grey-7)"
|
33585
31108
|
}
|
33586
31109
|
) }),
|
33587
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(IconButton, { title: "redo", disabled: !
|
33588
|
-
|
31110
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(IconButton, { title: "redo", disabled: !hasFuture, onClick: forward, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
31111
|
+
ChevronRight,
|
33589
31112
|
{
|
33590
31113
|
size: 21,
|
33591
|
-
stroke:
|
31114
|
+
stroke: hasFuture ? "var(--puck-color-black)" : "var(--puck-color-grey-7)"
|
33592
31115
|
}
|
33593
31116
|
) })
|
33594
31117
|
] }),
|
@@ -33602,7 +31125,7 @@ var MenuBar = ({
|
|
33602
31125
|
onClick: () => {
|
33603
31126
|
onPublish && onPublish(data);
|
33604
31127
|
},
|
33605
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
31128
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Globe, { size: "14px" }),
|
33606
31129
|
children: "Publish"
|
33607
31130
|
}
|
33608
31131
|
) })
|
@@ -33613,7 +31136,7 @@ var MenuBar = ({
|
|
33613
31136
|
|
33614
31137
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/styles.module.css#css-module
|
33615
31138
|
init_react_import();
|
33616
|
-
var styles_module_default8 = { "Puck": "
|
31139
|
+
var styles_module_default8 = { "Puck": "_Puck_17hk3_19", "Puck--leftSideBarVisible": "_Puck--leftSideBarVisible_17hk3_35", "Puck--rightSideBarVisible": "_Puck--rightSideBarVisible_17hk3_41", "Puck-header": "_Puck-header_17hk3_95", "Puck-headerInner": "_Puck-headerInner_17hk3_104", "Puck-headerToggle": "_Puck-headerToggle_17hk3_114", "Puck-rightSideBarToggle": "_Puck-rightSideBarToggle_17hk3_121", "Puck-leftSideBarToggle": "_Puck-leftSideBarToggle_17hk3_122", "Puck-headerTitle": "_Puck-headerTitle_17hk3_126", "Puck-headerPath": "_Puck-headerPath_17hk3_130", "Puck-headerTools": "_Puck-headerTools_17hk3_137", "Puck-menuButton": "_Puck-menuButton_17hk3_143", "Puck--menuOpen": "_Puck--menuOpen_17hk3_148", "Puck-leftSideBar": "_Puck-leftSideBar_17hk3_122", "Puck-frame": "_Puck-frame_17hk3_167", "Puck-root": "_Puck-root_17hk3_175", "Puck-rightSideBar": "_Puck-rightSideBar_17hk3_121" };
|
33617
31140
|
|
33618
31141
|
// components/Puck/components/Fields/index.tsx
|
33619
31142
|
init_react_import();
|
@@ -33627,7 +31150,7 @@ init_react_import();
|
|
33627
31150
|
var styles_module_default9 = { "Input": "_Input_1v7zr_1", "Input-label": "_Input-label_1v7zr_27", "Input-labelIcon": "_Input-labelIcon_1v7zr_35", "Input-disabledIcon": "_Input-disabledIcon_1v7zr_41", "Input-input": "_Input-input_1v7zr_46", "Input--readOnly": "_Input--readOnly_1v7zr_69", "Input-radioGroupItems": "_Input-radioGroupItems_1v7zr_87", "Input-radio": "_Input-radio_1v7zr_87", "Input-radioInner": "_Input-radioInner_1v7zr_104", "Input-radioInput": "_Input-radioInput_1v7zr_126" };
|
33628
31151
|
|
33629
31152
|
// components/InputOrGroup/index.tsx
|
33630
|
-
var
|
31153
|
+
var import_react18 = require("react");
|
33631
31154
|
|
33632
31155
|
// components/InputOrGroup/fields/index.tsx
|
33633
31156
|
init_react_import();
|
@@ -33642,14 +31165,14 @@ var styles_module_default10 = { "ArrayField": "_ArrayField_1auyc_5", "ArrayField
|
|
33642
31165
|
// components/InputOrGroup/fields/ArrayField/index.tsx
|
33643
31166
|
var import_dnd5 = require("@hello-pangea/dnd");
|
33644
31167
|
var import_dnd6 = require("@hello-pangea/dnd");
|
33645
|
-
var
|
31168
|
+
var import_react14 = require("react");
|
33646
31169
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
33647
31170
|
var getClassName10 = get_class_name_factory_default("ArrayField", styles_module_default10);
|
33648
31171
|
var getClassNameItem2 = get_class_name_factory_default("ArrayFieldItem", styles_module_default10);
|
33649
31172
|
var ArrayField = ({
|
33650
31173
|
field,
|
33651
31174
|
onChange,
|
33652
|
-
value,
|
31175
|
+
value: _value,
|
33653
31176
|
name,
|
33654
31177
|
label,
|
33655
31178
|
readOnly,
|
@@ -33657,6 +31180,7 @@ var ArrayField = ({
|
|
33657
31180
|
id
|
33658
31181
|
}) => {
|
33659
31182
|
const { state, setUi } = useAppContext();
|
31183
|
+
const value = _value;
|
33660
31184
|
const arrayState = state.ui.arrayState[id] || {
|
33661
31185
|
items: Array.from(value || []).map((item, idx) => {
|
33662
31186
|
return {
|
@@ -33666,11 +31190,11 @@ var ArrayField = ({
|
|
33666
31190
|
}),
|
33667
31191
|
openId: ""
|
33668
31192
|
};
|
33669
|
-
const [localState, setLocalState] = (0,
|
33670
|
-
(0,
|
31193
|
+
const [localState, setLocalState] = (0, import_react14.useState)({ arrayState, value });
|
31194
|
+
(0, import_react14.useEffect)(() => {
|
33671
31195
|
setLocalState({ arrayState, value });
|
33672
31196
|
}, [value, state.ui.arrayState[id]]);
|
33673
|
-
const mapArrayStateToUi = (0,
|
31197
|
+
const mapArrayStateToUi = (0, import_react14.useCallback)(
|
33674
31198
|
(partialArrayState) => {
|
33675
31199
|
return {
|
33676
31200
|
arrayState: __spreadProps(__spreadValues({}, state.ui.arrayState), {
|
@@ -33680,13 +31204,13 @@ var ArrayField = ({
|
|
33680
31204
|
},
|
33681
31205
|
[arrayState]
|
33682
31206
|
);
|
33683
|
-
const getHighestIndex = (0,
|
31207
|
+
const getHighestIndex = (0, import_react14.useCallback)(() => {
|
33684
31208
|
return arrayState.items.reduce(
|
33685
31209
|
(acc, item) => item._originalIndex > acc ? item._originalIndex : acc,
|
33686
31210
|
-1
|
33687
31211
|
);
|
33688
31212
|
}, [arrayState]);
|
33689
|
-
const regenerateArrayState = (0,
|
31213
|
+
const regenerateArrayState = (0, import_react14.useCallback)(
|
33690
31214
|
(value2) => {
|
33691
31215
|
let highestIndex = getHighestIndex();
|
33692
31216
|
const newItems = Array.from(value2 || []).map((item, idx) => {
|
@@ -33705,10 +31229,10 @@ var ArrayField = ({
|
|
33705
31229
|
},
|
33706
31230
|
[arrayState]
|
33707
31231
|
);
|
33708
|
-
(0,
|
31232
|
+
(0, import_react14.useEffect)(() => {
|
33709
31233
|
setUi(mapArrayStateToUi(arrayState));
|
33710
31234
|
}, []);
|
33711
|
-
const [hovering, setHovering] = (0,
|
31235
|
+
const [hovering, setHovering] = (0, import_react14.useState)(false);
|
33712
31236
|
if (field.type !== "array" || !field.arrayFields) {
|
33713
31237
|
return null;
|
33714
31238
|
}
|
@@ -33716,7 +31240,7 @@ var ArrayField = ({
|
|
33716
31240
|
FieldLabelInternal,
|
33717
31241
|
{
|
33718
31242
|
label: label || name,
|
33719
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
31243
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(List, { size: 16 }),
|
33720
31244
|
el: "div",
|
33721
31245
|
readOnly,
|
33722
31246
|
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
@@ -33766,7 +31290,7 @@ var ArrayField = ({
|
|
33766
31290
|
children: [
|
33767
31291
|
localState.arrayState.items.map((item, i) => {
|
33768
31292
|
const { _arrayId = `${id}-${i}`, _originalIndex = i } = item;
|
33769
|
-
const data = Array.from(localState.value || [])[i];
|
31293
|
+
const data = Array.from(localState.value || [])[i] || {};
|
33770
31294
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
33771
31295
|
Draggable,
|
33772
31296
|
{
|
@@ -33822,7 +31346,7 @@ var ArrayField = ({
|
|
33822
31346
|
);
|
33823
31347
|
},
|
33824
31348
|
title: "Delete",
|
33825
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
31349
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Trash, { size: 16 })
|
33826
31350
|
}
|
33827
31351
|
) }) }),
|
33828
31352
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DragIcon, {}) })
|
@@ -33877,7 +31401,7 @@ var ArrayField = ({
|
|
33877
31401
|
const newArrayState = regenerateArrayState(newValue);
|
33878
31402
|
onChange(newValue, mapArrayStateToUi(newArrayState));
|
33879
31403
|
},
|
33880
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
31404
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Plus, { size: "21" })
|
33881
31405
|
}
|
33882
31406
|
)
|
33883
31407
|
]
|
@@ -33908,8 +31432,8 @@ var DefaultField = ({
|
|
33908
31432
|
{
|
33909
31433
|
label: label || name,
|
33910
31434
|
icon: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
|
33911
|
-
field.type === "text" && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
33912
|
-
field.type === "number" && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
31435
|
+
field.type === "text" && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Type, { size: 16 }),
|
31436
|
+
field.type === "number" && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Hash, { size: 16 })
|
33913
31437
|
] }),
|
33914
31438
|
readOnly,
|
33915
31439
|
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
@@ -33937,11 +31461,11 @@ var DefaultField = ({
|
|
33937
31461
|
|
33938
31462
|
// components/InputOrGroup/fields/ExternalField/index.tsx
|
33939
31463
|
init_react_import();
|
33940
|
-
var
|
31464
|
+
var import_react17 = require("react");
|
33941
31465
|
|
33942
31466
|
// components/ExternalInput/index.tsx
|
33943
31467
|
init_react_import();
|
33944
|
-
var
|
31468
|
+
var import_react16 = require("react");
|
33945
31469
|
|
33946
31470
|
// css-module:/home/runner/work/puck/puck/packages/core/components/ExternalInput/styles.module.css#css-module
|
33947
31471
|
init_react_import();
|
@@ -33949,7 +31473,7 @@ var styles_module_default11 = { "ExternalInput": "_ExternalInput_s6fxy_1", "Exte
|
|
33949
31473
|
|
33950
31474
|
// components/Modal/index.tsx
|
33951
31475
|
init_react_import();
|
33952
|
-
var
|
31476
|
+
var import_react15 = require("react");
|
33953
31477
|
|
33954
31478
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Modal/styles.module.css#css-module
|
33955
31479
|
init_react_import();
|
@@ -33964,8 +31488,8 @@ var Modal = ({
|
|
33964
31488
|
onClose,
|
33965
31489
|
isOpen
|
33966
31490
|
}) => {
|
33967
|
-
const [rootEl, setRootEl] = (0,
|
33968
|
-
(0,
|
31491
|
+
const [rootEl, setRootEl] = (0, import_react15.useState)(null);
|
31492
|
+
(0, import_react15.useEffect)(() => {
|
33969
31493
|
setRootEl(document.getElementById("puck-portal-root"));
|
33970
31494
|
}, []);
|
33971
31495
|
if (!rootEl) {
|
@@ -33998,10 +31522,10 @@ var ExternalInput = ({
|
|
33998
31522
|
id
|
33999
31523
|
}) => {
|
34000
31524
|
const { mapProp = (val) => val } = field || {};
|
34001
|
-
const [data, setData] = (0,
|
34002
|
-
const [isOpen, setOpen] = (0,
|
34003
|
-
const [isLoading, setIsLoading] = (0,
|
34004
|
-
const keys = (0,
|
31525
|
+
const [data, setData] = (0, import_react16.useState)([]);
|
31526
|
+
const [isOpen, setOpen] = (0, import_react16.useState)(false);
|
31527
|
+
const [isLoading, setIsLoading] = (0, import_react16.useState)(true);
|
31528
|
+
const keys = (0, import_react16.useMemo)(() => {
|
34005
31529
|
const validKeys = /* @__PURE__ */ new Set();
|
34006
31530
|
for (const item of data) {
|
34007
31531
|
for (const key of Object.keys(item)) {
|
@@ -34012,8 +31536,8 @@ var ExternalInput = ({
|
|
34012
31536
|
}
|
34013
31537
|
return Array.from(validKeys);
|
34014
31538
|
}, [data]);
|
34015
|
-
const [searchQuery, setSearchQuery] = (0,
|
34016
|
-
const search = (0,
|
31539
|
+
const [searchQuery, setSearchQuery] = (0, import_react16.useState)(field.initialQuery || "");
|
31540
|
+
const search = (0, import_react16.useCallback)(
|
34017
31541
|
(query) => __async(void 0, null, function* () {
|
34018
31542
|
setIsLoading(true);
|
34019
31543
|
const cacheKey = `${id}-${name}-${query}`;
|
@@ -34026,7 +31550,7 @@ var ExternalInput = ({
|
|
34026
31550
|
}),
|
34027
31551
|
[name, field]
|
34028
31552
|
);
|
34029
|
-
(0,
|
31553
|
+
(0, import_react16.useEffect)(() => {
|
34030
31554
|
search(searchQuery);
|
34031
31555
|
}, []);
|
34032
31556
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
@@ -34045,7 +31569,7 @@ var ExternalInput = ({
|
|
34045
31569
|
onClick: () => setOpen(true),
|
34046
31570
|
className: getClassName13("button"),
|
34047
31571
|
children: value ? field.getItemSummary ? field.getItemSummary(value) : "External item" : /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
|
34048
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
31572
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Link, { size: "16" }),
|
34049
31573
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: field.placeholder })
|
34050
31574
|
] })
|
34051
31575
|
}
|
@@ -34057,7 +31581,7 @@ var ExternalInput = ({
|
|
34057
31581
|
onClick: () => {
|
34058
31582
|
onChange(null);
|
34059
31583
|
},
|
34060
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
31584
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Unlock, { size: 16 })
|
34061
31585
|
}
|
34062
31586
|
)
|
34063
31587
|
] }),
|
@@ -34083,7 +31607,7 @@ var ExternalInput = ({
|
|
34083
31607
|
children: [
|
34084
31608
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("label", { className: getClassNameModal("search"), children: [
|
34085
31609
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: getClassNameModal("searchIconText"), children: "Search" }),
|
34086
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: getClassNameModal("searchIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
31610
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: getClassNameModal("searchIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Search, { size: "18" }) }),
|
34087
31611
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
34088
31612
|
"input",
|
34089
31613
|
{
|
@@ -34155,7 +31679,7 @@ var ExternalField = ({
|
|
34155
31679
|
var _a, _b, _c;
|
34156
31680
|
const validField = field;
|
34157
31681
|
const deprecatedField = field;
|
34158
|
-
(0,
|
31682
|
+
(0, import_react17.useEffect)(() => {
|
34159
31683
|
if (deprecatedField.adaptor) {
|
34160
31684
|
console.error(
|
34161
31685
|
"Warning: The `adaptor` API is deprecated. Please use updated APIs on the `external` field instead. This will be a breaking change in a future release."
|
@@ -34169,7 +31693,7 @@ var ExternalField = ({
|
|
34169
31693
|
FieldLabelInternal,
|
34170
31694
|
{
|
34171
31695
|
label: label || name,
|
34172
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
31696
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Link, { size: 16 }),
|
34173
31697
|
el: "div",
|
34174
31698
|
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
34175
31699
|
ExternalInput,
|
@@ -34213,7 +31737,7 @@ var RadioField = ({
|
|
34213
31737
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
34214
31738
|
FieldLabelInternal,
|
34215
31739
|
{
|
34216
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
31740
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CheckCircle, { size: 16 }),
|
34217
31741
|
label: label || name,
|
34218
31742
|
readOnly,
|
34219
31743
|
el: "div",
|
@@ -34269,7 +31793,7 @@ var SelectField = ({
|
|
34269
31793
|
FieldLabelInternal,
|
34270
31794
|
{
|
34271
31795
|
label: label || name,
|
34272
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
31796
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ChevronDown, { size: 16 }),
|
34273
31797
|
readOnly,
|
34274
31798
|
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
34275
31799
|
"select",
|
@@ -34315,7 +31839,7 @@ var TextareaField = ({
|
|
34315
31839
|
FieldLabelInternal,
|
34316
31840
|
{
|
34317
31841
|
label: label || name,
|
34318
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
31842
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Type, { size: 16 }),
|
34319
31843
|
readOnly,
|
34320
31844
|
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
34321
31845
|
"textarea",
|
@@ -34335,7 +31859,7 @@ var TextareaField = ({
|
|
34335
31859
|
};
|
34336
31860
|
|
34337
31861
|
// components/InputOrGroup/index.tsx
|
34338
|
-
var
|
31862
|
+
var import_use_debounce2 = require("use-debounce");
|
34339
31863
|
|
34340
31864
|
// components/InputOrGroup/fields/ObjectField/index.tsx
|
34341
31865
|
init_react_import();
|
@@ -34366,7 +31890,7 @@ var ObjectField = ({
|
|
34366
31890
|
FieldLabelInternal,
|
34367
31891
|
{
|
34368
31892
|
label: label || name,
|
34369
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
31893
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(MoreVertical, { size: 16 }),
|
34370
31894
|
el: "div",
|
34371
31895
|
readOnly,
|
34372
31896
|
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getClassName17(), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("fieldset", { className: getClassName17("fieldset"), children: Object.keys(field.objectFields).map((fieldName) => {
|
@@ -34415,7 +31939,7 @@ var FieldLabel = ({
|
|
34415
31939
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: getClassName18("label"), children: [
|
34416
31940
|
icon ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: getClassName18("labelIcon"), children: icon }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {}),
|
34417
31941
|
label,
|
34418
|
-
readOnly && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: getClassName18("disabledIcon"), title: "Read-only", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
31942
|
+
readOnly && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: getClassName18("disabledIcon"), title: "Read-only", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Lock, { size: "12" }) })
|
34419
31943
|
] }),
|
34420
31944
|
children
|
34421
31945
|
] });
|
@@ -34428,7 +31952,7 @@ var FieldLabelInternal = ({
|
|
34428
31952
|
readOnly
|
34429
31953
|
}) => {
|
34430
31954
|
const { overrides } = useAppContext();
|
34431
|
-
const Wrapper = (0,
|
31955
|
+
const Wrapper = (0, import_react18.useMemo)(
|
34432
31956
|
() => overrides.fieldLabel || FieldLabel,
|
34433
31957
|
[overrides]
|
34434
31958
|
);
|
@@ -34449,19 +31973,19 @@ var InputOrGroup = (_a) => {
|
|
34449
31973
|
var _a2, _b2, _c, _d, _e, _f, _g, _h;
|
34450
31974
|
const { overrides } = useAppContext();
|
34451
31975
|
const { name, field, value, readOnly } = props;
|
34452
|
-
const [localValue, setLocalValue] = (0,
|
34453
|
-
const onChangeDb = (0,
|
31976
|
+
const [localValue, setLocalValue] = (0, import_react18.useState)(value);
|
31977
|
+
const onChangeDb = (0, import_use_debounce2.useDebouncedCallback)(
|
34454
31978
|
(val, ui) => {
|
34455
31979
|
onChange(val, ui);
|
34456
31980
|
},
|
34457
31981
|
50,
|
34458
31982
|
{ leading: true }
|
34459
31983
|
);
|
34460
|
-
const onChangeLocal = (0,
|
31984
|
+
const onChangeLocal = (0, import_react18.useCallback)((val, ui) => {
|
34461
31985
|
setLocalValue(val);
|
34462
31986
|
onChangeDb(val, ui);
|
34463
31987
|
}, []);
|
34464
|
-
(0,
|
31988
|
+
(0, import_react18.useEffect)(() => {
|
34465
31989
|
setLocalValue(value);
|
34466
31990
|
}, [value]);
|
34467
31991
|
const localProps = {
|
@@ -34509,7 +32033,7 @@ init_react_import();
|
|
34509
32033
|
var styles_module_default14 = { "PuckFields": "_PuckFields_1276r_1", "PuckFields-loadingOverlay": "_PuckFields-loadingOverlay_1276r_5" };
|
34510
32034
|
|
34511
32035
|
// components/Puck/components/Fields/index.tsx
|
34512
|
-
var
|
32036
|
+
var import_react19 = require("react");
|
34513
32037
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
34514
32038
|
var getClassName19 = get_class_name_factory_default("PuckFields", styles_module_default14);
|
34515
32039
|
var defaultPageFields = {
|
@@ -34541,7 +32065,7 @@ var Fields = () => {
|
|
34541
32065
|
const fields = selectedItem ? ((_b = config.components[selectedItem.type]) == null ? void 0 : _b.fields) || {} : rootFields;
|
34542
32066
|
const isLoading = selectedItem ? (_c = componentState[selectedItem == null ? void 0 : selectedItem.props.id]) == null ? void 0 : _c.loading : (_d = componentState["puck-root"]) == null ? void 0 : _d.loading;
|
34543
32067
|
const rootProps = data.root.props || data.root;
|
34544
|
-
const Wrapper = (0,
|
32068
|
+
const Wrapper = (0, import_react19.useMemo)(() => overrides.fields || DefaultFields, [overrides]);
|
34545
32069
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
34546
32070
|
"form",
|
34547
32071
|
{
|
@@ -34656,7 +32180,7 @@ init_react_import();
|
|
34656
32180
|
|
34657
32181
|
// lib/use-component-list.tsx
|
34658
32182
|
init_react_import();
|
34659
|
-
var
|
32183
|
+
var import_react20 = require("react");
|
34660
32184
|
|
34661
32185
|
// components/ComponentList/index.tsx
|
34662
32186
|
init_react_import();
|
@@ -34697,7 +32221,7 @@ var ComponentList = ({
|
|
34697
32221
|
title: expanded ? `Collapse${title ? ` ${title}` : ""}` : `Expand${title ? ` ${title}` : ""}`,
|
34698
32222
|
children: [
|
34699
32223
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { children: title }),
|
34700
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: getClassName20("titleIcon"), children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
32224
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: getClassName20("titleIcon"), children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ChevronUp, { size: 12 }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ChevronDown, { size: 12 }) })
|
34701
32225
|
]
|
34702
32226
|
}
|
34703
32227
|
),
|
@@ -34718,8 +32242,8 @@ ComponentList.Item = ComponentListItem;
|
|
34718
32242
|
// lib/use-component-list.tsx
|
34719
32243
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
34720
32244
|
var useComponentList = (config, ui) => {
|
34721
|
-
const [componentList, setComponentList] = (0,
|
34722
|
-
(0,
|
32245
|
+
const [componentList, setComponentList] = (0, import_react20.useState)();
|
32246
|
+
(0, import_react20.useEffect)(() => {
|
34723
32247
|
var _a, _b, _c;
|
34724
32248
|
if (Object.keys(ui.componentList).length > 0) {
|
34725
32249
|
const matchedComponents = [];
|
@@ -34782,22 +32306,22 @@ var useComponentList = (config, ui) => {
|
|
34782
32306
|
};
|
34783
32307
|
|
34784
32308
|
// components/Puck/components/Components/index.tsx
|
34785
|
-
var
|
32309
|
+
var import_react21 = require("react");
|
34786
32310
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
34787
32311
|
var Components = () => {
|
34788
32312
|
const { config, state, overrides } = useAppContext();
|
34789
32313
|
const componentList = useComponentList(config, state.ui);
|
34790
|
-
const Wrapper = (0,
|
32314
|
+
const Wrapper = (0, import_react21.useMemo)(() => overrides.components || "div", [overrides]);
|
34791
32315
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Wrapper, { children: componentList ? componentList : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ComponentList, { id: "all" }) });
|
34792
32316
|
};
|
34793
32317
|
|
34794
32318
|
// components/Puck/components/Preview/index.tsx
|
34795
32319
|
init_react_import();
|
34796
|
-
var
|
32320
|
+
var import_react22 = require("react");
|
34797
32321
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
34798
32322
|
var Preview = ({ id = "puck-preview" }) => {
|
34799
32323
|
const { config, dispatch, state } = useAppContext();
|
34800
|
-
const Page = (0,
|
32324
|
+
const Page = (0, import_react22.useCallback)(
|
34801
32325
|
(pageProps) => {
|
34802
32326
|
var _a, _b;
|
34803
32327
|
return ((_a = config.root) == null ? void 0 : _a.render) ? (_b = config.root) == null ? void 0 : _b.render(__spreadProps(__spreadValues({}, pageProps), { editMode: true })) : pageProps.children;
|
@@ -34805,7 +32329,7 @@ var Preview = ({ id = "puck-preview" }) => {
|
|
34805
32329
|
[config.root]
|
34806
32330
|
);
|
34807
32331
|
const rootProps = state.data.root.props || state.data.root;
|
34808
|
-
const { disableZoom = false } = (0,
|
32332
|
+
const { disableZoom = false } = (0, import_react22.useContext)(dropZoneContext) || {};
|
34809
32333
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
34810
32334
|
"div",
|
34811
32335
|
{
|
@@ -34862,7 +32386,7 @@ var scrollIntoView = (el) => {
|
|
34862
32386
|
};
|
34863
32387
|
|
34864
32388
|
// components/LayerTree/index.tsx
|
34865
|
-
var
|
32389
|
+
var import_react23 = require("react");
|
34866
32390
|
|
34867
32391
|
// lib/is-child-of-zone.ts
|
34868
32392
|
init_react_import();
|
@@ -34888,10 +32412,10 @@ var LayerTree = ({
|
|
34888
32412
|
label
|
34889
32413
|
}) => {
|
34890
32414
|
const zones = data.zones || {};
|
34891
|
-
const ctx = (0,
|
32415
|
+
const ctx = (0, import_react23.useContext)(dropZoneContext);
|
34892
32416
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
|
34893
32417
|
label && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: getClassName21("zoneTitle"), children: [
|
34894
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: getClassName21("zoneIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
32418
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: getClassName21("zoneIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Layers, { size: "16" }) }),
|
34895
32419
|
" ",
|
34896
32420
|
label
|
34897
32421
|
] }),
|
@@ -34957,11 +32481,11 @@ var LayerTree = ({
|
|
34957
32481
|
{
|
34958
32482
|
className: getClassNameLayer("chevron"),
|
34959
32483
|
title: isSelected ? "Collapse" : "Expand",
|
34960
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
32484
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChevronDown, { size: "12" })
|
34961
32485
|
}
|
34962
32486
|
),
|
34963
32487
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: getClassNameLayer("title"), children: [
|
34964
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: getClassNameLayer("icon"), children: item.type === "Text" || item.type === "Heading" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
32488
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: getClassNameLayer("icon"), children: item.type === "Text" || item.type === "Heading" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Type, { size: "16" }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(LayoutGrid, { size: "16" }) }),
|
34965
32489
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: getClassNameLayer("name"), children: item.type })
|
34966
32490
|
] })
|
34967
32491
|
]
|
@@ -34988,13 +32512,13 @@ var LayerTree = ({
|
|
34988
32512
|
};
|
34989
32513
|
|
34990
32514
|
// components/Puck/components/Outline/index.tsx
|
34991
|
-
var
|
32515
|
+
var import_react24 = require("react");
|
34992
32516
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
34993
32517
|
var Outline = () => {
|
34994
32518
|
const { dispatch, state, overrides } = useAppContext();
|
34995
32519
|
const { data, ui } = state;
|
34996
32520
|
const { itemSelector } = ui;
|
34997
|
-
const setItemSelector = (0,
|
32521
|
+
const setItemSelector = (0, import_react24.useCallback)(
|
34998
32522
|
(newItemSelector) => {
|
34999
32523
|
dispatch({
|
35000
32524
|
type: "setUi",
|
@@ -35003,7 +32527,7 @@ var Outline = () => {
|
|
35003
32527
|
},
|
35004
32528
|
[]
|
35005
32529
|
);
|
35006
|
-
const Wrapper = (0,
|
32530
|
+
const Wrapper = (0, import_react24.useMemo)(() => overrides.outline || "div", [overrides]);
|
35007
32531
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(dropZoneContext.Consumer, { children: (ctx) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
35008
32532
|
(ctx == null ? void 0 : ctx.activeZones) && (ctx == null ? void 0 : ctx.activeZones[rootDroppableId]) && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
35009
32533
|
LayerTree,
|
@@ -35065,6 +32589,84 @@ var loadOverrides = ({
|
|
35065
32589
|
return collected;
|
35066
32590
|
};
|
35067
32591
|
|
32592
|
+
// lib/use-puck-history.ts
|
32593
|
+
init_react_import();
|
32594
|
+
var import_react_hotkeys_hook = require("react-hotkeys-hook");
|
32595
|
+
function usePuckHistory({
|
32596
|
+
dispatch,
|
32597
|
+
initialAppState,
|
32598
|
+
historyStore
|
32599
|
+
}) {
|
32600
|
+
const back = () => {
|
32601
|
+
var _a;
|
32602
|
+
if (historyStore.hasPast) {
|
32603
|
+
dispatch({
|
32604
|
+
type: "set",
|
32605
|
+
state: ((_a = historyStore.prevHistory) == null ? void 0 : _a.data) || initialAppState
|
32606
|
+
});
|
32607
|
+
historyStore.back();
|
32608
|
+
}
|
32609
|
+
};
|
32610
|
+
const forward = () => {
|
32611
|
+
if (historyStore.nextHistory) {
|
32612
|
+
dispatch({ type: "set", state: historyStore.nextHistory.data });
|
32613
|
+
historyStore.forward();
|
32614
|
+
}
|
32615
|
+
};
|
32616
|
+
(0, import_react_hotkeys_hook.useHotkeys)("meta+z", back, { preventDefault: true });
|
32617
|
+
(0, import_react_hotkeys_hook.useHotkeys)("meta+shift+z", forward, { preventDefault: true });
|
32618
|
+
(0, import_react_hotkeys_hook.useHotkeys)("meta+y", forward, { preventDefault: true });
|
32619
|
+
return {
|
32620
|
+
back,
|
32621
|
+
forward,
|
32622
|
+
historyStore
|
32623
|
+
};
|
32624
|
+
}
|
32625
|
+
|
32626
|
+
// lib/use-history-store.ts
|
32627
|
+
init_react_import();
|
32628
|
+
var import_react25 = require("react");
|
32629
|
+
var import_use_debounce3 = require("use-debounce");
|
32630
|
+
var EMPTY_HISTORY_INDEX = -1;
|
32631
|
+
function useHistoryStore() {
|
32632
|
+
const [histories, setHistories] = (0, import_react25.useState)([]);
|
32633
|
+
const [index, setIndex] = (0, import_react25.useState)(EMPTY_HISTORY_INDEX);
|
32634
|
+
const hasPast = index > EMPTY_HISTORY_INDEX;
|
32635
|
+
const hasFuture = index < histories.length - 1;
|
32636
|
+
const currentHistory = histories[index];
|
32637
|
+
const nextHistory = hasFuture ? histories[index + 1] : null;
|
32638
|
+
const prevHistory = hasPast ? histories[index - 1] : null;
|
32639
|
+
const record = (0, import_use_debounce3.useDebouncedCallback)((data) => {
|
32640
|
+
const history = {
|
32641
|
+
data,
|
32642
|
+
id: generateId("history")
|
32643
|
+
};
|
32644
|
+
setHistories((prev) => {
|
32645
|
+
const newVal = [...prev.slice(0, index + 1), history];
|
32646
|
+
setIndex(newVal.length - 1);
|
32647
|
+
return newVal;
|
32648
|
+
});
|
32649
|
+
}, 250);
|
32650
|
+
const back = () => {
|
32651
|
+
setIndex(index - 1);
|
32652
|
+
};
|
32653
|
+
const forward = () => {
|
32654
|
+
setIndex(index + 1);
|
32655
|
+
};
|
32656
|
+
return {
|
32657
|
+
index,
|
32658
|
+
currentHistory,
|
32659
|
+
hasPast,
|
32660
|
+
hasFuture,
|
32661
|
+
record,
|
32662
|
+
back,
|
32663
|
+
forward,
|
32664
|
+
nextHistory,
|
32665
|
+
prevHistory,
|
32666
|
+
histories
|
32667
|
+
};
|
32668
|
+
}
|
32669
|
+
|
35068
32670
|
// components/Puck/index.tsx
|
35069
32671
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
35070
32672
|
var getClassName22 = get_class_name_factory_default("Puck", styles_module_default8);
|
@@ -35082,8 +32684,11 @@ function Puck({
|
|
35082
32684
|
headerTitle,
|
35083
32685
|
headerPath
|
35084
32686
|
}) {
|
35085
|
-
const
|
35086
|
-
const [
|
32687
|
+
const historyStore = useHistoryStore();
|
32688
|
+
const [reducer] = (0, import_react26.useState)(
|
32689
|
+
() => createReducer({ config, record: historyStore.record })
|
32690
|
+
);
|
32691
|
+
const [initialAppState] = (0, import_react26.useState)(() => __spreadProps(__spreadValues({}, defaultAppState), {
|
35087
32692
|
data: initialData,
|
35088
32693
|
ui: __spreadProps(__spreadValues(__spreadValues({}, defaultAppState.ui), initialUi), {
|
35089
32694
|
// Store categories under componentList on state to allow render functions and plugins to modify
|
@@ -35102,43 +32707,47 @@ function Puck({
|
|
35102
32707
|
) : {}
|
35103
32708
|
})
|
35104
32709
|
}));
|
35105
|
-
const [appState, dispatch] = (0,
|
32710
|
+
const [appState, dispatch] = (0, import_react26.useReducer)(
|
35106
32711
|
reducer,
|
35107
32712
|
flushZones(initialAppState)
|
35108
32713
|
);
|
35109
32714
|
const { data, ui } = appState;
|
32715
|
+
const history = usePuckHistory({ dispatch, initialAppState, historyStore });
|
35110
32716
|
const { resolveData, componentState } = useResolvedData(
|
35111
32717
|
appState,
|
35112
32718
|
config,
|
35113
32719
|
dispatch
|
35114
32720
|
);
|
35115
|
-
const [menuOpen, setMenuOpen] = (0,
|
32721
|
+
const [menuOpen, setMenuOpen] = (0, import_react26.useState)(false);
|
35116
32722
|
const { itemSelector, leftSideBarVisible, rightSideBarVisible } = ui;
|
35117
|
-
const setItemSelector = (0,
|
32723
|
+
const setItemSelector = (0, import_react26.useCallback)(
|
35118
32724
|
(newItemSelector) => {
|
32725
|
+
if (newItemSelector === itemSelector)
|
32726
|
+
return;
|
35119
32727
|
dispatch({
|
35120
32728
|
type: "setUi",
|
35121
|
-
ui: { itemSelector: newItemSelector }
|
32729
|
+
ui: { itemSelector: newItemSelector },
|
32730
|
+
recordHistory: true
|
35122
32731
|
});
|
35123
32732
|
},
|
35124
|
-
[]
|
32733
|
+
[itemSelector]
|
35125
32734
|
);
|
35126
32735
|
const selectedItem = itemSelector ? getItem(itemSelector, data) : null;
|
35127
|
-
(0,
|
32736
|
+
(0, import_react26.useEffect)(() => {
|
35128
32737
|
if (onChange)
|
35129
32738
|
onChange(data);
|
35130
32739
|
}, [data]);
|
35131
32740
|
const { onDragStartOrUpdate, placeholderStyle } = usePlaceholderStyle();
|
35132
|
-
const [draggedItem, setDraggedItem] = (0,
|
32741
|
+
const [draggedItem, setDraggedItem] = (0, import_react26.useState)();
|
35133
32742
|
const rootProps = data.root.props || data.root;
|
35134
|
-
(0,
|
32743
|
+
(0, import_react26.useEffect)(() => {
|
35135
32744
|
if (Object.keys(data.root).length > 0 && !data.root.props) {
|
35136
32745
|
console.error(
|
35137
32746
|
"Warning: Defining props on `root` is deprecated. Please use `root.props`. This will be a breaking change in a future release."
|
35138
32747
|
);
|
35139
32748
|
}
|
35140
32749
|
}, []);
|
35141
|
-
const toggleSidebars = (0,
|
32750
|
+
const toggleSidebars = (0, import_react26.useCallback)(
|
35142
32751
|
(sidebar) => {
|
35143
32752
|
const widerViewport = window.matchMedia("(min-width: 638px)").matches;
|
35144
32753
|
const sideBarVisible = sidebar === "left" ? leftSideBarVisible : rightSideBarVisible;
|
@@ -35152,7 +32761,7 @@ function Puck({
|
|
35152
32761
|
},
|
35153
32762
|
[dispatch, leftSideBarVisible, rightSideBarVisible]
|
35154
32763
|
);
|
35155
|
-
(0,
|
32764
|
+
(0, import_react26.useEffect)(() => {
|
35156
32765
|
if (!window.matchMedia("(min-width: 638px)").matches) {
|
35157
32766
|
dispatch({
|
35158
32767
|
type: "setUi",
|
@@ -35175,11 +32784,11 @@ function Puck({
|
|
35175
32784
|
window.removeEventListener("resize", handleResize);
|
35176
32785
|
};
|
35177
32786
|
}, []);
|
35178
|
-
const defaultRender = (0,
|
32787
|
+
const defaultRender = (0, import_react26.useMemo)(() => {
|
35179
32788
|
const PuckDefault = ({ children: children2 }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: children2 });
|
35180
32789
|
return PuckDefault;
|
35181
32790
|
}, []);
|
35182
|
-
const defaultHeaderRender = (0,
|
32791
|
+
const defaultHeaderRender = (0, import_react26.useMemo)(() => {
|
35183
32792
|
if (renderHeader) {
|
35184
32793
|
console.warn(
|
35185
32794
|
"`renderHeader` is deprecated. Please use `overrides.header` and the `usePuck` hook instead"
|
@@ -35193,7 +32802,7 @@ function Puck({
|
|
35193
32802
|
}
|
35194
32803
|
return defaultRender;
|
35195
32804
|
}, [renderHeader]);
|
35196
|
-
const defaultHeaderActionsRender = (0,
|
32805
|
+
const defaultHeaderActionsRender = (0, import_react26.useMemo)(() => {
|
35197
32806
|
if (renderHeaderActions) {
|
35198
32807
|
console.warn(
|
35199
32808
|
"`renderHeaderActions` is deprecated. Please use `overrides.headerActions` and the `usePuck` hook instead."
|
@@ -35206,22 +32815,22 @@ function Puck({
|
|
35206
32815
|
}
|
35207
32816
|
return defaultRender;
|
35208
32817
|
}, [renderHeader]);
|
35209
|
-
const loadedOverrides = (0,
|
32818
|
+
const loadedOverrides = (0, import_react26.useMemo)(() => {
|
35210
32819
|
return loadOverrides({ overrides, plugins });
|
35211
32820
|
}, [plugins]);
|
35212
|
-
const CustomPuck = (0,
|
32821
|
+
const CustomPuck = (0, import_react26.useMemo)(
|
35213
32822
|
() => loadedOverrides.puck || defaultRender,
|
35214
32823
|
[loadedOverrides]
|
35215
32824
|
);
|
35216
|
-
const CustomPreview = (0,
|
32825
|
+
const CustomPreview = (0, import_react26.useMemo)(
|
35217
32826
|
() => loadedOverrides.preview || defaultRender,
|
35218
32827
|
[loadedOverrides]
|
35219
32828
|
);
|
35220
|
-
const CustomHeader = (0,
|
32829
|
+
const CustomHeader = (0, import_react26.useMemo)(
|
35221
32830
|
() => loadedOverrides.header || defaultHeaderRender,
|
35222
32831
|
[loadedOverrides]
|
35223
32832
|
);
|
35224
|
-
const CustomHeaderActions = (0,
|
32833
|
+
const CustomHeaderActions = (0, import_react26.useMemo)(
|
35225
32834
|
() => loadedOverrides.headerActions || defaultHeaderActionsRender,
|
35226
32835
|
[loadedOverrides]
|
35227
32836
|
);
|
@@ -35237,7 +32846,8 @@ function Puck({
|
|
35237
32846
|
componentState,
|
35238
32847
|
resolveData,
|
35239
32848
|
plugins,
|
35240
|
-
overrides: loadedOverrides
|
32849
|
+
overrides: loadedOverrides,
|
32850
|
+
history
|
35241
32851
|
},
|
35242
32852
|
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
35243
32853
|
import_dnd7.DragDropContext,
|
@@ -35330,7 +32940,7 @@ function Puck({
|
|
35330
32940
|
onClick: () => {
|
35331
32941
|
onPublish && onPublish(data);
|
35332
32942
|
},
|
35333
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
32943
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Globe, { size: "14px" }),
|
35334
32944
|
children: "Publish"
|
35335
32945
|
}
|
35336
32946
|
)
|
@@ -35344,7 +32954,7 @@ function Puck({
|
|
35344
32954
|
toggleSidebars("left");
|
35345
32955
|
},
|
35346
32956
|
title: "Toggle left sidebar",
|
35347
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
32957
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PanelLeft, { focusable: "false" })
|
35348
32958
|
}
|
35349
32959
|
) }),
|
35350
32960
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: getClassName22("rightSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
@@ -35354,7 +32964,7 @@ function Puck({
|
|
35354
32964
|
toggleSidebars("right");
|
35355
32965
|
},
|
35356
32966
|
title: "Toggle right sidebar",
|
35357
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
32967
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PanelRight, { focusable: "false" })
|
35358
32968
|
}
|
35359
32969
|
) })
|
35360
32970
|
] }),
|
@@ -35373,7 +32983,7 @@ function Puck({
|
|
35373
32983
|
return setMenuOpen(!menuOpen);
|
35374
32984
|
},
|
35375
32985
|
title: "Toggle menu bar",
|
35376
|
-
children: menuOpen ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
32986
|
+
children: menuOpen ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ChevronUp, { focusable: "false" }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ChevronDown, { focusable: "false" })
|
35377
32987
|
}
|
35378
32988
|
) }),
|
35379
32989
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
@@ -35446,10 +33056,7 @@ Puck.Preview = Preview;
|
|
35446
33056
|
// components/Render/index.tsx
|
35447
33057
|
init_react_import();
|
35448
33058
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
35449
|
-
function Render({
|
35450
|
-
config,
|
35451
|
-
data
|
35452
|
-
}) {
|
33059
|
+
function Render({ config, data }) {
|
35453
33060
|
var _a;
|
35454
33061
|
const rootProps = data.root.props || data.root;
|
35455
33062
|
const title = (rootProps == null ? void 0 : rootProps.title) || "";
|
@@ -35585,33 +33192,6 @@ classnames/index.js:
|
|
35585
33192
|
http://jedwatson.github.io/classnames
|
35586
33193
|
*)
|
35587
33194
|
|
35588
|
-
react-is/cjs/react-is.production.min.js:
|
35589
|
-
(** @license React v16.13.1
|
35590
|
-
* react-is.production.min.js
|
35591
|
-
*
|
35592
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
35593
|
-
*
|
35594
|
-
* This source code is licensed under the MIT license found in the
|
35595
|
-
* LICENSE file in the root directory of this source tree.
|
35596
|
-
*)
|
35597
|
-
|
35598
|
-
react-is/cjs/react-is.development.js:
|
35599
|
-
(** @license React v16.13.1
|
35600
|
-
* react-is.development.js
|
35601
|
-
*
|
35602
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
35603
|
-
*
|
35604
|
-
* This source code is licensed under the MIT license found in the
|
35605
|
-
* LICENSE file in the root directory of this source tree.
|
35606
|
-
*)
|
35607
|
-
|
35608
|
-
object-assign/index.js:
|
35609
|
-
(*
|
35610
|
-
object-assign
|
35611
|
-
(c) Sindre Sorhus
|
35612
|
-
@license MIT
|
35613
|
-
*)
|
35614
|
-
|
35615
33195
|
scheduler/cjs/scheduler.production.min.js:
|
35616
33196
|
(**
|
35617
33197
|
* @license React
|
@@ -35668,4 +33248,196 @@ react-dom/cjs/react-dom.development.js:
|
|
35668
33248
|
* @internal
|
35669
33249
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
35670
33250
|
*)
|
33251
|
+
|
33252
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
33253
|
+
(**
|
33254
|
+
* @license lucide-react v0.298.0 - ISC
|
33255
|
+
*
|
33256
|
+
* This source code is licensed under the ISC license.
|
33257
|
+
* See the LICENSE file in the root directory of this source tree.
|
33258
|
+
*)
|
33259
|
+
|
33260
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
33261
|
+
(**
|
33262
|
+
* @license lucide-react v0.298.0 - ISC
|
33263
|
+
*
|
33264
|
+
* This source code is licensed under the ISC license.
|
33265
|
+
* See the LICENSE file in the root directory of this source tree.
|
33266
|
+
*)
|
33267
|
+
|
33268
|
+
lucide-react/dist/esm/icons/check-circle.js:
|
33269
|
+
(**
|
33270
|
+
* @license lucide-react v0.298.0 - ISC
|
33271
|
+
*
|
33272
|
+
* This source code is licensed under the ISC license.
|
33273
|
+
* See the LICENSE file in the root directory of this source tree.
|
33274
|
+
*)
|
33275
|
+
|
33276
|
+
lucide-react/dist/esm/icons/chevron-down.js:
|
33277
|
+
(**
|
33278
|
+
* @license lucide-react v0.298.0 - ISC
|
33279
|
+
*
|
33280
|
+
* This source code is licensed under the ISC license.
|
33281
|
+
* See the LICENSE file in the root directory of this source tree.
|
33282
|
+
*)
|
33283
|
+
|
33284
|
+
lucide-react/dist/esm/icons/chevron-left.js:
|
33285
|
+
(**
|
33286
|
+
* @license lucide-react v0.298.0 - ISC
|
33287
|
+
*
|
33288
|
+
* This source code is licensed under the ISC license.
|
33289
|
+
* See the LICENSE file in the root directory of this source tree.
|
33290
|
+
*)
|
33291
|
+
|
33292
|
+
lucide-react/dist/esm/icons/chevron-right.js:
|
33293
|
+
(**
|
33294
|
+
* @license lucide-react v0.298.0 - ISC
|
33295
|
+
*
|
33296
|
+
* This source code is licensed under the ISC license.
|
33297
|
+
* See the LICENSE file in the root directory of this source tree.
|
33298
|
+
*)
|
33299
|
+
|
33300
|
+
lucide-react/dist/esm/icons/chevron-up.js:
|
33301
|
+
(**
|
33302
|
+
* @license lucide-react v0.298.0 - ISC
|
33303
|
+
*
|
33304
|
+
* This source code is licensed under the ISC license.
|
33305
|
+
* See the LICENSE file in the root directory of this source tree.
|
33306
|
+
*)
|
33307
|
+
|
33308
|
+
lucide-react/dist/esm/icons/copy.js:
|
33309
|
+
(**
|
33310
|
+
* @license lucide-react v0.298.0 - ISC
|
33311
|
+
*
|
33312
|
+
* This source code is licensed under the ISC license.
|
33313
|
+
* See the LICENSE file in the root directory of this source tree.
|
33314
|
+
*)
|
33315
|
+
|
33316
|
+
lucide-react/dist/esm/icons/globe.js:
|
33317
|
+
(**
|
33318
|
+
* @license lucide-react v0.298.0 - ISC
|
33319
|
+
*
|
33320
|
+
* This source code is licensed under the ISC license.
|
33321
|
+
* See the LICENSE file in the root directory of this source tree.
|
33322
|
+
*)
|
33323
|
+
|
33324
|
+
lucide-react/dist/esm/icons/hash.js:
|
33325
|
+
(**
|
33326
|
+
* @license lucide-react v0.298.0 - ISC
|
33327
|
+
*
|
33328
|
+
* This source code is licensed under the ISC license.
|
33329
|
+
* See the LICENSE file in the root directory of this source tree.
|
33330
|
+
*)
|
33331
|
+
|
33332
|
+
lucide-react/dist/esm/icons/layers.js:
|
33333
|
+
(**
|
33334
|
+
* @license lucide-react v0.298.0 - ISC
|
33335
|
+
*
|
33336
|
+
* This source code is licensed under the ISC license.
|
33337
|
+
* See the LICENSE file in the root directory of this source tree.
|
33338
|
+
*)
|
33339
|
+
|
33340
|
+
lucide-react/dist/esm/icons/layout-grid.js:
|
33341
|
+
(**
|
33342
|
+
* @license lucide-react v0.298.0 - ISC
|
33343
|
+
*
|
33344
|
+
* This source code is licensed under the ISC license.
|
33345
|
+
* See the LICENSE file in the root directory of this source tree.
|
33346
|
+
*)
|
33347
|
+
|
33348
|
+
lucide-react/dist/esm/icons/link.js:
|
33349
|
+
(**
|
33350
|
+
* @license lucide-react v0.298.0 - ISC
|
33351
|
+
*
|
33352
|
+
* This source code is licensed under the ISC license.
|
33353
|
+
* See the LICENSE file in the root directory of this source tree.
|
33354
|
+
*)
|
33355
|
+
|
33356
|
+
lucide-react/dist/esm/icons/list.js:
|
33357
|
+
(**
|
33358
|
+
* @license lucide-react v0.298.0 - ISC
|
33359
|
+
*
|
33360
|
+
* This source code is licensed under the ISC license.
|
33361
|
+
* See the LICENSE file in the root directory of this source tree.
|
33362
|
+
*)
|
33363
|
+
|
33364
|
+
lucide-react/dist/esm/icons/lock.js:
|
33365
|
+
(**
|
33366
|
+
* @license lucide-react v0.298.0 - ISC
|
33367
|
+
*
|
33368
|
+
* This source code is licensed under the ISC license.
|
33369
|
+
* See the LICENSE file in the root directory of this source tree.
|
33370
|
+
*)
|
33371
|
+
|
33372
|
+
lucide-react/dist/esm/icons/more-vertical.js:
|
33373
|
+
(**
|
33374
|
+
* @license lucide-react v0.298.0 - ISC
|
33375
|
+
*
|
33376
|
+
* This source code is licensed under the ISC license.
|
33377
|
+
* See the LICENSE file in the root directory of this source tree.
|
33378
|
+
*)
|
33379
|
+
|
33380
|
+
lucide-react/dist/esm/icons/panel-left.js:
|
33381
|
+
(**
|
33382
|
+
* @license lucide-react v0.298.0 - ISC
|
33383
|
+
*
|
33384
|
+
* This source code is licensed under the ISC license.
|
33385
|
+
* See the LICENSE file in the root directory of this source tree.
|
33386
|
+
*)
|
33387
|
+
|
33388
|
+
lucide-react/dist/esm/icons/panel-right.js:
|
33389
|
+
(**
|
33390
|
+
* @license lucide-react v0.298.0 - ISC
|
33391
|
+
*
|
33392
|
+
* This source code is licensed under the ISC license.
|
33393
|
+
* See the LICENSE file in the root directory of this source tree.
|
33394
|
+
*)
|
33395
|
+
|
33396
|
+
lucide-react/dist/esm/icons/plus.js:
|
33397
|
+
(**
|
33398
|
+
* @license lucide-react v0.298.0 - ISC
|
33399
|
+
*
|
33400
|
+
* This source code is licensed under the ISC license.
|
33401
|
+
* See the LICENSE file in the root directory of this source tree.
|
33402
|
+
*)
|
33403
|
+
|
33404
|
+
lucide-react/dist/esm/icons/search.js:
|
33405
|
+
(**
|
33406
|
+
* @license lucide-react v0.298.0 - ISC
|
33407
|
+
*
|
33408
|
+
* This source code is licensed under the ISC license.
|
33409
|
+
* See the LICENSE file in the root directory of this source tree.
|
33410
|
+
*)
|
33411
|
+
|
33412
|
+
lucide-react/dist/esm/icons/trash.js:
|
33413
|
+
(**
|
33414
|
+
* @license lucide-react v0.298.0 - ISC
|
33415
|
+
*
|
33416
|
+
* This source code is licensed under the ISC license.
|
33417
|
+
* See the LICENSE file in the root directory of this source tree.
|
33418
|
+
*)
|
33419
|
+
|
33420
|
+
lucide-react/dist/esm/icons/type.js:
|
33421
|
+
(**
|
33422
|
+
* @license lucide-react v0.298.0 - ISC
|
33423
|
+
*
|
33424
|
+
* This source code is licensed under the ISC license.
|
33425
|
+
* See the LICENSE file in the root directory of this source tree.
|
33426
|
+
*)
|
33427
|
+
|
33428
|
+
lucide-react/dist/esm/icons/unlock.js:
|
33429
|
+
(**
|
33430
|
+
* @license lucide-react v0.298.0 - ISC
|
33431
|
+
*
|
33432
|
+
* This source code is licensed under the ISC license.
|
33433
|
+
* See the LICENSE file in the root directory of this source tree.
|
33434
|
+
*)
|
33435
|
+
|
33436
|
+
lucide-react/dist/esm/lucide-react.js:
|
33437
|
+
(**
|
33438
|
+
* @license lucide-react v0.298.0 - ISC
|
33439
|
+
*
|
33440
|
+
* This source code is licensed under the ISC license.
|
33441
|
+
* See the LICENSE file in the root directory of this source tree.
|
33442
|
+
*)
|
35671
33443
|
*/
|