@powerhousedao/powerhouse-vetra-packages 6.0.0-dev.222 → 6.0.0-dev.224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{connect-D1-pHk6s-OrxJp5Kd.js → connect-Cah5FuAm-d1td1yrj.js} +1805 -3
- package/dist/browser/connect-Cah5FuAm-d1td1yrj.js.map +1 -0
- package/dist/browser/{editor-BCjLU3uJ.js → editor-BVUOwdYa.js} +2 -2
- package/dist/browser/{editor-BCjLU3uJ.js.map → editor-BVUOwdYa.js.map} +1 -1
- package/dist/browser/{editor-Dc4mk366.js → editor-C8L9UXWU.js} +3 -3
- package/dist/browser/{editor-Dc4mk366.js.map → editor-C8L9UXWU.js.map} +1 -1
- package/dist/browser/editors/document-model-editor/module.js +1 -1
- package/dist/browser/editors/generic-drive-explorer/index.js +2 -2
- package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
- package/dist/browser/{folder-view-aEeju4vo.js → folder-view-DMTtWAs_.js} +2 -2
- package/dist/browser/{folder-view-aEeju4vo.js.map → folder-view-DMTtWAs_.js.map} +1 -1
- package/dist/node/{connect-D1-pHk6s-F7GZZnGo.mjs → connect-Cah5FuAm-CHLdCLxo.mjs} +1814 -3
- package/dist/node/connect-Cah5FuAm-CHLdCLxo.mjs.map +1 -0
- package/dist/node/{editor-BZG9PKm9.mjs → editor-Bj7vRXjs.mjs} +2 -2
- package/dist/node/{editor-BZG9PKm9.mjs.map → editor-Bj7vRXjs.mjs.map} +1 -1
- package/dist/node/{editor-FGCnrcM9.mjs → editor-C8i7eujV.mjs} +3 -3
- package/dist/node/{editor-FGCnrcM9.mjs.map → editor-C8i7eujV.mjs.map} +1 -1
- package/dist/node/editors/document-model-editor/module.mjs +1 -1
- package/dist/node/editors/generic-drive-explorer/index.mjs +2 -2
- package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
- package/dist/node/{folder-view-3fDuSRP8.mjs → folder-view-LHLBDUfT.mjs} +2 -2
- package/dist/node/{folder-view-3fDuSRP8.mjs.map → folder-view-LHLBDUfT.mjs.map} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/dist/browser/connect-D1-pHk6s-OrxJp5Kd.js.map +0 -1
- package/dist/node/connect-D1-pHk6s-F7GZZnGo.mjs.map +0 -1
|
@@ -4,7 +4,7 @@ import { t as capitalCase } from "./dist-CTgmb7N2.js";
|
|
|
4
4
|
import { A as twMerge, c as DropdownMenuItem, f as cn, g as __assign, l as DropdownMenuTrigger, o as DropdownMenu, p as mergeClassNameProps, s as DropdownMenuContent, u as Icon } from "./dist-CtRV5RxK.js";
|
|
5
5
|
import { t as parse } from "./parser-CO9mSyAT.js";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
|
-
import React, { Children, Fragment, Suspense, cloneElement, forwardRef, isValidElement, lazy, use, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
7
|
+
import React, { Children, Fragment, Suspense, cloneElement, createContext, forwardRef, isValidElement, lazy, use, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { flushSync } from "react-dom";
|
|
10
10
|
//#region ../reactor-browser/dist/make-ph-event-functions-Cr4GqOTT.js
|
|
@@ -5381,6 +5381,1808 @@ function useOnClickOutside(ref, handler, eventType = "mousedown", eventListenerO
|
|
|
5381
5381
|
}, void 0, eventListenerOptions);
|
|
5382
5382
|
}
|
|
5383
5383
|
//#endregion
|
|
5384
|
+
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
5385
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
5386
|
+
if (null == r) return {};
|
|
5387
|
+
var t = {};
|
|
5388
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
5389
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
5390
|
+
t[n] = r[n];
|
|
5391
|
+
}
|
|
5392
|
+
return t;
|
|
5393
|
+
}
|
|
5394
|
+
//#endregion
|
|
5395
|
+
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
5396
|
+
function _extends() {
|
|
5397
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
5398
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
5399
|
+
var t = arguments[e];
|
|
5400
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
5401
|
+
}
|
|
5402
|
+
return n;
|
|
5403
|
+
}, _extends.apply(null, arguments);
|
|
5404
|
+
}
|
|
5405
|
+
//#endregion
|
|
5406
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/store/ShowTools.js
|
|
5407
|
+
var initialState$5 = {};
|
|
5408
|
+
var Context$5 = /* @__PURE__ */ createContext(initialState$5);
|
|
5409
|
+
var reducer$5 = (state, action) => _extends({}, state, action);
|
|
5410
|
+
var useShowToolsStore = () => {
|
|
5411
|
+
return useContext(Context$5);
|
|
5412
|
+
};
|
|
5413
|
+
var DispatchShowTools = /* @__PURE__ */ createContext(() => {});
|
|
5414
|
+
DispatchShowTools.displayName = "JVR.DispatchShowTools";
|
|
5415
|
+
function useShowTools() {
|
|
5416
|
+
return useReducer(reducer$5, initialState$5);
|
|
5417
|
+
}
|
|
5418
|
+
function useShowToolsDispatch() {
|
|
5419
|
+
return useContext(DispatchShowTools);
|
|
5420
|
+
}
|
|
5421
|
+
var ShowTools = (_ref) => {
|
|
5422
|
+
var { initial, dispatch, children } = _ref;
|
|
5423
|
+
return /* @__PURE__ */ jsx(Context$5.Provider, {
|
|
5424
|
+
value: initial,
|
|
5425
|
+
children: /* @__PURE__ */ jsx(DispatchShowTools.Provider, {
|
|
5426
|
+
value: dispatch,
|
|
5427
|
+
children
|
|
5428
|
+
})
|
|
5429
|
+
});
|
|
5430
|
+
};
|
|
5431
|
+
ShowTools.displayName = "JVR.ShowTools";
|
|
5432
|
+
//#endregion
|
|
5433
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/store/Expands.js
|
|
5434
|
+
var initialState$4 = {};
|
|
5435
|
+
var Context$4 = /* @__PURE__ */ createContext(initialState$4);
|
|
5436
|
+
var reducer$4 = (state, action) => _extends({}, state, action);
|
|
5437
|
+
var useExpandsStore = () => {
|
|
5438
|
+
return useContext(Context$4);
|
|
5439
|
+
};
|
|
5440
|
+
var DispatchExpands = /* @__PURE__ */ createContext(() => {});
|
|
5441
|
+
DispatchExpands.displayName = "JVR.DispatchExpands";
|
|
5442
|
+
function useExpands() {
|
|
5443
|
+
return useReducer(reducer$4, initialState$4);
|
|
5444
|
+
}
|
|
5445
|
+
function useExpandsDispatch() {
|
|
5446
|
+
return useContext(DispatchExpands);
|
|
5447
|
+
}
|
|
5448
|
+
var Expands = (_ref) => {
|
|
5449
|
+
var { initial, dispatch, children } = _ref;
|
|
5450
|
+
return /* @__PURE__ */ jsx(Context$4.Provider, {
|
|
5451
|
+
value: initial,
|
|
5452
|
+
children: /* @__PURE__ */ jsx(DispatchExpands.Provider, {
|
|
5453
|
+
value: dispatch,
|
|
5454
|
+
children
|
|
5455
|
+
})
|
|
5456
|
+
});
|
|
5457
|
+
};
|
|
5458
|
+
Expands.displayName = "JVR.Expands";
|
|
5459
|
+
//#endregion
|
|
5460
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/store/Types.js
|
|
5461
|
+
var initialState$3 = {
|
|
5462
|
+
Str: {
|
|
5463
|
+
as: "span",
|
|
5464
|
+
"data-type": "string",
|
|
5465
|
+
style: { color: "var(--w-rjv-type-string-color, #cb4b16)" },
|
|
5466
|
+
className: "w-rjv-type",
|
|
5467
|
+
children: "string"
|
|
5468
|
+
},
|
|
5469
|
+
Url: {
|
|
5470
|
+
as: "a",
|
|
5471
|
+
style: { color: "var(--w-rjv-type-url-color, #0969da)" },
|
|
5472
|
+
"data-type": "url",
|
|
5473
|
+
className: "w-rjv-type",
|
|
5474
|
+
children: "url"
|
|
5475
|
+
},
|
|
5476
|
+
Undefined: {
|
|
5477
|
+
style: { color: "var(--w-rjv-type-undefined-color, #586e75)" },
|
|
5478
|
+
as: "span",
|
|
5479
|
+
"data-type": "undefined",
|
|
5480
|
+
className: "w-rjv-type",
|
|
5481
|
+
children: "undefined"
|
|
5482
|
+
},
|
|
5483
|
+
Null: {
|
|
5484
|
+
style: { color: "var(--w-rjv-type-null-color, #d33682)" },
|
|
5485
|
+
as: "span",
|
|
5486
|
+
"data-type": "null",
|
|
5487
|
+
className: "w-rjv-type",
|
|
5488
|
+
children: "null"
|
|
5489
|
+
},
|
|
5490
|
+
Map: {
|
|
5491
|
+
style: {
|
|
5492
|
+
color: "var(--w-rjv-type-map-color, #268bd2)",
|
|
5493
|
+
marginRight: 3
|
|
5494
|
+
},
|
|
5495
|
+
as: "span",
|
|
5496
|
+
"data-type": "map",
|
|
5497
|
+
className: "w-rjv-type",
|
|
5498
|
+
children: "Map"
|
|
5499
|
+
},
|
|
5500
|
+
Nan: {
|
|
5501
|
+
style: { color: "var(--w-rjv-type-nan-color, #859900)" },
|
|
5502
|
+
as: "span",
|
|
5503
|
+
"data-type": "nan",
|
|
5504
|
+
className: "w-rjv-type",
|
|
5505
|
+
children: "NaN"
|
|
5506
|
+
},
|
|
5507
|
+
Bigint: {
|
|
5508
|
+
style: { color: "var(--w-rjv-type-bigint-color, #268bd2)" },
|
|
5509
|
+
as: "span",
|
|
5510
|
+
"data-type": "bigint",
|
|
5511
|
+
className: "w-rjv-type",
|
|
5512
|
+
children: "bigint"
|
|
5513
|
+
},
|
|
5514
|
+
Int: {
|
|
5515
|
+
style: { color: "var(--w-rjv-type-int-color, #268bd2)" },
|
|
5516
|
+
as: "span",
|
|
5517
|
+
"data-type": "int",
|
|
5518
|
+
className: "w-rjv-type",
|
|
5519
|
+
children: "int"
|
|
5520
|
+
},
|
|
5521
|
+
Set: {
|
|
5522
|
+
style: {
|
|
5523
|
+
color: "var(--w-rjv-type-set-color, #268bd2)",
|
|
5524
|
+
marginRight: 3
|
|
5525
|
+
},
|
|
5526
|
+
as: "span",
|
|
5527
|
+
"data-type": "set",
|
|
5528
|
+
className: "w-rjv-type",
|
|
5529
|
+
children: "Set"
|
|
5530
|
+
},
|
|
5531
|
+
Float: {
|
|
5532
|
+
style: { color: "var(--w-rjv-type-float-color, #859900)" },
|
|
5533
|
+
as: "span",
|
|
5534
|
+
"data-type": "float",
|
|
5535
|
+
className: "w-rjv-type",
|
|
5536
|
+
children: "float"
|
|
5537
|
+
},
|
|
5538
|
+
True: {
|
|
5539
|
+
style: { color: "var(--w-rjv-type-boolean-color, #2aa198)" },
|
|
5540
|
+
as: "span",
|
|
5541
|
+
"data-type": "bool",
|
|
5542
|
+
className: "w-rjv-type",
|
|
5543
|
+
children: "bool"
|
|
5544
|
+
},
|
|
5545
|
+
False: {
|
|
5546
|
+
style: { color: "var(--w-rjv-type-boolean-color, #2aa198)" },
|
|
5547
|
+
as: "span",
|
|
5548
|
+
"data-type": "bool",
|
|
5549
|
+
className: "w-rjv-type",
|
|
5550
|
+
children: "bool"
|
|
5551
|
+
},
|
|
5552
|
+
Date: {
|
|
5553
|
+
style: { color: "var(--w-rjv-type-date-color, #268bd2)" },
|
|
5554
|
+
as: "span",
|
|
5555
|
+
"data-type": "date",
|
|
5556
|
+
className: "w-rjv-type",
|
|
5557
|
+
children: "date"
|
|
5558
|
+
}
|
|
5559
|
+
};
|
|
5560
|
+
var Context$3 = /* @__PURE__ */ createContext(initialState$3);
|
|
5561
|
+
var reducer$3 = (state, action) => _extends({}, state, action);
|
|
5562
|
+
var useTypesStore = () => {
|
|
5563
|
+
return useContext(Context$3);
|
|
5564
|
+
};
|
|
5565
|
+
var DispatchTypes = /* @__PURE__ */ createContext(() => {});
|
|
5566
|
+
DispatchTypes.displayName = "JVR.DispatchTypes";
|
|
5567
|
+
function useTypes() {
|
|
5568
|
+
return useReducer(reducer$3, initialState$3);
|
|
5569
|
+
}
|
|
5570
|
+
function useTypesDispatch() {
|
|
5571
|
+
return useContext(DispatchTypes);
|
|
5572
|
+
}
|
|
5573
|
+
function Types(_ref) {
|
|
5574
|
+
var { initial, dispatch, children } = _ref;
|
|
5575
|
+
return /* @__PURE__ */ jsx(Context$3.Provider, {
|
|
5576
|
+
value: initial,
|
|
5577
|
+
children: /* @__PURE__ */ jsx(DispatchTypes.Provider, {
|
|
5578
|
+
value: dispatch,
|
|
5579
|
+
children
|
|
5580
|
+
})
|
|
5581
|
+
});
|
|
5582
|
+
}
|
|
5583
|
+
Types.displayName = "JVR.Types";
|
|
5584
|
+
//#endregion
|
|
5585
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.js
|
|
5586
|
+
var _excluded$10 = ["style"];
|
|
5587
|
+
function TriangleArrow(props) {
|
|
5588
|
+
var { style } = props, reset = _objectWithoutPropertiesLoose(props, _excluded$10);
|
|
5589
|
+
return /* @__PURE__ */ jsx("svg", _extends({
|
|
5590
|
+
viewBox: "0 0 24 24",
|
|
5591
|
+
fill: "var(--w-rjv-arrow-color, currentColor)",
|
|
5592
|
+
style: _extends({
|
|
5593
|
+
cursor: "pointer",
|
|
5594
|
+
height: "1em",
|
|
5595
|
+
width: "1em",
|
|
5596
|
+
userSelect: "none",
|
|
5597
|
+
display: "inline-flex"
|
|
5598
|
+
}, style)
|
|
5599
|
+
}, reset, { children: /* @__PURE__ */ jsx("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" }) }));
|
|
5600
|
+
}
|
|
5601
|
+
TriangleArrow.displayName = "JVR.TriangleArrow";
|
|
5602
|
+
//#endregion
|
|
5603
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/store/Symbols.js
|
|
5604
|
+
var initialState$2 = {
|
|
5605
|
+
Arrow: {
|
|
5606
|
+
as: "span",
|
|
5607
|
+
className: "w-rjv-arrow",
|
|
5608
|
+
style: {
|
|
5609
|
+
transform: "rotate(0deg)",
|
|
5610
|
+
transition: "all 0.3s"
|
|
5611
|
+
},
|
|
5612
|
+
children: /* @__PURE__ */ jsx(TriangleArrow, {})
|
|
5613
|
+
},
|
|
5614
|
+
Colon: {
|
|
5615
|
+
as: "span",
|
|
5616
|
+
style: {
|
|
5617
|
+
color: "var(--w-rjv-colon-color, var(--w-rjv-color))",
|
|
5618
|
+
marginLeft: 0,
|
|
5619
|
+
marginRight: 2
|
|
5620
|
+
},
|
|
5621
|
+
className: "w-rjv-colon",
|
|
5622
|
+
children: ":"
|
|
5623
|
+
},
|
|
5624
|
+
Quote: {
|
|
5625
|
+
as: "span",
|
|
5626
|
+
style: { color: "var(--w-rjv-quotes-color, #236a7c)" },
|
|
5627
|
+
className: "w-rjv-quotes",
|
|
5628
|
+
children: "\""
|
|
5629
|
+
},
|
|
5630
|
+
ValueQuote: {
|
|
5631
|
+
as: "span",
|
|
5632
|
+
style: { color: "var(--w-rjv-quotes-string-color, #cb4b16)" },
|
|
5633
|
+
className: "w-rjv-quotes",
|
|
5634
|
+
children: "\""
|
|
5635
|
+
},
|
|
5636
|
+
BracketsLeft: {
|
|
5637
|
+
as: "span",
|
|
5638
|
+
style: { color: "var(--w-rjv-brackets-color, #236a7c)" },
|
|
5639
|
+
className: "w-rjv-brackets-start",
|
|
5640
|
+
children: "["
|
|
5641
|
+
},
|
|
5642
|
+
BracketsRight: {
|
|
5643
|
+
as: "span",
|
|
5644
|
+
style: { color: "var(--w-rjv-brackets-color, #236a7c)" },
|
|
5645
|
+
className: "w-rjv-brackets-end",
|
|
5646
|
+
children: "]"
|
|
5647
|
+
},
|
|
5648
|
+
BraceLeft: {
|
|
5649
|
+
as: "span",
|
|
5650
|
+
style: { color: "var(--w-rjv-curlybraces-color, #236a7c)" },
|
|
5651
|
+
className: "w-rjv-curlybraces-start",
|
|
5652
|
+
children: "{"
|
|
5653
|
+
},
|
|
5654
|
+
BraceRight: {
|
|
5655
|
+
as: "span",
|
|
5656
|
+
style: { color: "var(--w-rjv-curlybraces-color, #236a7c)" },
|
|
5657
|
+
className: "w-rjv-curlybraces-end",
|
|
5658
|
+
children: "}"
|
|
5659
|
+
}
|
|
5660
|
+
};
|
|
5661
|
+
var Context$2 = /* @__PURE__ */ createContext(initialState$2);
|
|
5662
|
+
var reducer$2 = (state, action) => _extends({}, state, action);
|
|
5663
|
+
var useSymbolsStore = () => {
|
|
5664
|
+
return useContext(Context$2);
|
|
5665
|
+
};
|
|
5666
|
+
var DispatchSymbols = /* @__PURE__ */ createContext(() => {});
|
|
5667
|
+
DispatchSymbols.displayName = "JVR.DispatchSymbols";
|
|
5668
|
+
function useSymbols() {
|
|
5669
|
+
return useReducer(reducer$2, initialState$2);
|
|
5670
|
+
}
|
|
5671
|
+
function useSymbolsDispatch() {
|
|
5672
|
+
return useContext(DispatchSymbols);
|
|
5673
|
+
}
|
|
5674
|
+
var Symbols = (_ref) => {
|
|
5675
|
+
var { initial, dispatch, children } = _ref;
|
|
5676
|
+
return /* @__PURE__ */ jsx(Context$2.Provider, {
|
|
5677
|
+
value: initial,
|
|
5678
|
+
children: /* @__PURE__ */ jsx(DispatchSymbols.Provider, {
|
|
5679
|
+
value: dispatch,
|
|
5680
|
+
children
|
|
5681
|
+
})
|
|
5682
|
+
});
|
|
5683
|
+
};
|
|
5684
|
+
Symbols.displayName = "JVR.Symbols";
|
|
5685
|
+
//#endregion
|
|
5686
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/store/Section.js
|
|
5687
|
+
var initialState$1 = {
|
|
5688
|
+
Copied: {
|
|
5689
|
+
className: "w-rjv-copied",
|
|
5690
|
+
style: {
|
|
5691
|
+
height: "1em",
|
|
5692
|
+
width: "1em",
|
|
5693
|
+
cursor: "pointer",
|
|
5694
|
+
verticalAlign: "middle",
|
|
5695
|
+
marginLeft: 5
|
|
5696
|
+
}
|
|
5697
|
+
},
|
|
5698
|
+
CountInfo: {
|
|
5699
|
+
as: "span",
|
|
5700
|
+
className: "w-rjv-object-size",
|
|
5701
|
+
style: {
|
|
5702
|
+
color: "var(--w-rjv-info-color, #0000004d)",
|
|
5703
|
+
paddingLeft: 8,
|
|
5704
|
+
fontStyle: "italic"
|
|
5705
|
+
}
|
|
5706
|
+
},
|
|
5707
|
+
CountInfoExtra: {
|
|
5708
|
+
as: "span",
|
|
5709
|
+
className: "w-rjv-object-extra",
|
|
5710
|
+
style: { paddingLeft: 8 }
|
|
5711
|
+
},
|
|
5712
|
+
Ellipsis: {
|
|
5713
|
+
as: "span",
|
|
5714
|
+
style: {
|
|
5715
|
+
cursor: "pointer",
|
|
5716
|
+
color: "var(--w-rjv-ellipsis-color, #cb4b16)",
|
|
5717
|
+
userSelect: "none"
|
|
5718
|
+
},
|
|
5719
|
+
className: "w-rjv-ellipsis",
|
|
5720
|
+
children: "..."
|
|
5721
|
+
},
|
|
5722
|
+
Row: {
|
|
5723
|
+
as: "div",
|
|
5724
|
+
className: "w-rjv-line"
|
|
5725
|
+
},
|
|
5726
|
+
KeyName: {
|
|
5727
|
+
as: "span",
|
|
5728
|
+
className: "w-rjv-object-key"
|
|
5729
|
+
}
|
|
5730
|
+
};
|
|
5731
|
+
var Context$1 = /* @__PURE__ */ createContext(initialState$1);
|
|
5732
|
+
var reducer$1 = (state, action) => _extends({}, state, action);
|
|
5733
|
+
var useSectionStore = () => {
|
|
5734
|
+
return useContext(Context$1);
|
|
5735
|
+
};
|
|
5736
|
+
var DispatchSection = /* @__PURE__ */ createContext(() => {});
|
|
5737
|
+
DispatchSection.displayName = "JVR.DispatchSection";
|
|
5738
|
+
function useSection() {
|
|
5739
|
+
return useReducer(reducer$1, initialState$1);
|
|
5740
|
+
}
|
|
5741
|
+
function useSectionDispatch() {
|
|
5742
|
+
return useContext(DispatchSection);
|
|
5743
|
+
}
|
|
5744
|
+
var Section = (_ref) => {
|
|
5745
|
+
var { initial, dispatch, children } = _ref;
|
|
5746
|
+
return /* @__PURE__ */ jsx(Context$1.Provider, {
|
|
5747
|
+
value: initial,
|
|
5748
|
+
children: /* @__PURE__ */ jsx(DispatchSection.Provider, {
|
|
5749
|
+
value: dispatch,
|
|
5750
|
+
children
|
|
5751
|
+
})
|
|
5752
|
+
});
|
|
5753
|
+
};
|
|
5754
|
+
Section.displayName = "JVR.Section";
|
|
5755
|
+
//#endregion
|
|
5756
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/store.js
|
|
5757
|
+
var initialState = {
|
|
5758
|
+
objectSortKeys: false,
|
|
5759
|
+
indentWidth: 15
|
|
5760
|
+
};
|
|
5761
|
+
var Context = /* @__PURE__ */ createContext(initialState);
|
|
5762
|
+
Context.displayName = "JVR.Context";
|
|
5763
|
+
var DispatchContext = /* @__PURE__ */ createContext(() => {});
|
|
5764
|
+
DispatchContext.displayName = "JVR.DispatchContext";
|
|
5765
|
+
function reducer(state, action) {
|
|
5766
|
+
return _extends({}, state, action);
|
|
5767
|
+
}
|
|
5768
|
+
var useStore = () => {
|
|
5769
|
+
return useContext(Context);
|
|
5770
|
+
};
|
|
5771
|
+
var Provider = (_ref) => {
|
|
5772
|
+
var { children, initialState: init, initialTypes } = _ref;
|
|
5773
|
+
var [state, dispatch] = useReducer(reducer, Object.assign({}, initialState, init));
|
|
5774
|
+
var [showTools, showToolsDispatch] = useShowTools();
|
|
5775
|
+
var [expands, expandsDispatch] = useExpands();
|
|
5776
|
+
var [types, typesDispatch] = useTypes();
|
|
5777
|
+
var [symbols, symbolsDispatch] = useSymbols();
|
|
5778
|
+
var [section, sectionDispatch] = useSection();
|
|
5779
|
+
useEffect(() => dispatch(_extends({}, init)), [init]);
|
|
5780
|
+
return /* @__PURE__ */ jsx(Context.Provider, {
|
|
5781
|
+
value: state,
|
|
5782
|
+
children: /* @__PURE__ */ jsx(DispatchContext.Provider, {
|
|
5783
|
+
value: dispatch,
|
|
5784
|
+
children: /* @__PURE__ */ jsx(ShowTools, {
|
|
5785
|
+
initial: showTools,
|
|
5786
|
+
dispatch: showToolsDispatch,
|
|
5787
|
+
children: /* @__PURE__ */ jsx(Expands, {
|
|
5788
|
+
initial: expands,
|
|
5789
|
+
dispatch: expandsDispatch,
|
|
5790
|
+
children: /* @__PURE__ */ jsx(Types, {
|
|
5791
|
+
initial: _extends({}, types, initialTypes),
|
|
5792
|
+
dispatch: typesDispatch,
|
|
5793
|
+
children: /* @__PURE__ */ jsx(Symbols, {
|
|
5794
|
+
initial: symbols,
|
|
5795
|
+
dispatch: symbolsDispatch,
|
|
5796
|
+
children: /* @__PURE__ */ jsx(Section, {
|
|
5797
|
+
initial: section,
|
|
5798
|
+
dispatch: sectionDispatch,
|
|
5799
|
+
children
|
|
5800
|
+
})
|
|
5801
|
+
})
|
|
5802
|
+
})
|
|
5803
|
+
})
|
|
5804
|
+
})
|
|
5805
|
+
})
|
|
5806
|
+
});
|
|
5807
|
+
};
|
|
5808
|
+
Provider.displayName = "JVR.Provider";
|
|
5809
|
+
//#endregion
|
|
5810
|
+
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js
|
|
5811
|
+
function _objectDestructuringEmpty(t) {
|
|
5812
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
5813
|
+
}
|
|
5814
|
+
//#endregion
|
|
5815
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/index.js
|
|
5816
|
+
var _excluded$9 = [
|
|
5817
|
+
"isNumber",
|
|
5818
|
+
"value",
|
|
5819
|
+
"parentValue",
|
|
5820
|
+
"keyName",
|
|
5821
|
+
"keys"
|
|
5822
|
+
], _excluded2$5 = ["as", "render"], _excluded3$1 = ["as", "render"], _excluded4$1 = ["as", "render"], _excluded5$1 = [
|
|
5823
|
+
"as",
|
|
5824
|
+
"style",
|
|
5825
|
+
"render"
|
|
5826
|
+
], _excluded6$1 = ["as", "render"], _excluded7$1 = ["as", "render"], _excluded8$1 = ["as", "render"], _excluded9$1 = ["as", "render"];
|
|
5827
|
+
var Quote$1 = (props) => {
|
|
5828
|
+
var { Quote: Comp = {} } = useSymbolsStore();
|
|
5829
|
+
var { isNumber, value, parentValue, keyName, keys } = props, other = _objectWithoutPropertiesLoose(props, _excluded$9);
|
|
5830
|
+
if (isNumber) return null;
|
|
5831
|
+
var { as, render } = Comp, reset = _objectWithoutPropertiesLoose(Comp, _excluded2$5);
|
|
5832
|
+
var Elm = as || "span";
|
|
5833
|
+
var elmProps = _extends({}, other, reset);
|
|
5834
|
+
if (typeof elmProps.children === "string") elmProps.children = elmProps.children.trim() || void 0;
|
|
5835
|
+
var child = render && typeof render === "function" && render(elmProps, {
|
|
5836
|
+
value,
|
|
5837
|
+
parentValue,
|
|
5838
|
+
keyName,
|
|
5839
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
5840
|
+
});
|
|
5841
|
+
if (child) return child;
|
|
5842
|
+
return /* @__PURE__ */ jsx(Elm, _extends({}, elmProps));
|
|
5843
|
+
};
|
|
5844
|
+
Quote$1.displayName = "JVR.Quote";
|
|
5845
|
+
var ValueQuote$1 = (props) => {
|
|
5846
|
+
var { ValueQuote: Comp = {} } = useSymbolsStore();
|
|
5847
|
+
var other = _extends({}, (_objectDestructuringEmpty(props), props));
|
|
5848
|
+
var { as, render } = Comp, reset = _objectWithoutPropertiesLoose(Comp, _excluded3$1);
|
|
5849
|
+
var Elm = as || "span";
|
|
5850
|
+
var elmProps = _extends({}, other, reset);
|
|
5851
|
+
var child = render && typeof render === "function" && render(elmProps, {});
|
|
5852
|
+
if (child) return child;
|
|
5853
|
+
return /* @__PURE__ */ jsx(Elm, _extends({}, elmProps));
|
|
5854
|
+
};
|
|
5855
|
+
ValueQuote$1.displayName = "JVR.ValueQuote";
|
|
5856
|
+
var Colon$1 = (props) => {
|
|
5857
|
+
var { value, parentValue, keyName, keys } = props;
|
|
5858
|
+
var { Colon: Comp = {} } = useSymbolsStore();
|
|
5859
|
+
var { as, render } = Comp, reset = _objectWithoutPropertiesLoose(Comp, _excluded4$1);
|
|
5860
|
+
var Elm = as || "span";
|
|
5861
|
+
var child = render && typeof render === "function" && render(reset, {
|
|
5862
|
+
value,
|
|
5863
|
+
parentValue,
|
|
5864
|
+
keyName,
|
|
5865
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
5866
|
+
});
|
|
5867
|
+
if (child) return child;
|
|
5868
|
+
return /* @__PURE__ */ jsx(Elm, _extends({}, reset));
|
|
5869
|
+
};
|
|
5870
|
+
Colon$1.displayName = "JVR.Colon";
|
|
5871
|
+
var Arrow$1 = (props) => {
|
|
5872
|
+
var { Arrow: Comp = {} } = useSymbolsStore();
|
|
5873
|
+
var expands = useExpandsStore();
|
|
5874
|
+
var { expandKey, style: resetStyle, value, parentValue, keyName, keys } = props;
|
|
5875
|
+
var isExpanded = !!expands[expandKey];
|
|
5876
|
+
var { as, style, render } = Comp, reset = _objectWithoutPropertiesLoose(Comp, _excluded5$1);
|
|
5877
|
+
var Elm = as || "span";
|
|
5878
|
+
var isRender = render && typeof render === "function";
|
|
5879
|
+
var elmProps = _extends({}, reset, {
|
|
5880
|
+
"data-expanded": isExpanded,
|
|
5881
|
+
style: _extends({}, style, resetStyle)
|
|
5882
|
+
});
|
|
5883
|
+
var child = isRender && render(elmProps, {
|
|
5884
|
+
value,
|
|
5885
|
+
parentValue,
|
|
5886
|
+
keyName,
|
|
5887
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
5888
|
+
});
|
|
5889
|
+
if (child) return child;
|
|
5890
|
+
return /* @__PURE__ */ jsx(Elm, _extends({}, reset, { style: _extends({}, style, resetStyle) }));
|
|
5891
|
+
};
|
|
5892
|
+
Arrow$1.displayName = "JVR.Arrow";
|
|
5893
|
+
var BracketsOpen = (props) => {
|
|
5894
|
+
var { isBrackets, value, parentValue, keyName, keys } = props;
|
|
5895
|
+
var { BracketsLeft = {}, BraceLeft = {} } = useSymbolsStore();
|
|
5896
|
+
var result = {
|
|
5897
|
+
value,
|
|
5898
|
+
parentValue,
|
|
5899
|
+
keyName,
|
|
5900
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
5901
|
+
};
|
|
5902
|
+
if (isBrackets) {
|
|
5903
|
+
var { as, render: _render } = BracketsLeft, reset = _objectWithoutPropertiesLoose(BracketsLeft, _excluded6$1);
|
|
5904
|
+
var BracketsLeftComp = as || "span";
|
|
5905
|
+
var _child = _render && typeof _render === "function" && _render(reset, result);
|
|
5906
|
+
if (_child) return _child;
|
|
5907
|
+
return /* @__PURE__ */ jsx(BracketsLeftComp, _extends({}, reset));
|
|
5908
|
+
}
|
|
5909
|
+
var { as: elm, render } = BraceLeft, resetProps = _objectWithoutPropertiesLoose(BraceLeft, _excluded7$1);
|
|
5910
|
+
var BraceLeftComp = elm || "span";
|
|
5911
|
+
var child = render && typeof render === "function" && render(resetProps, result);
|
|
5912
|
+
if (child) return child;
|
|
5913
|
+
return /* @__PURE__ */ jsx(BraceLeftComp, _extends({}, resetProps));
|
|
5914
|
+
};
|
|
5915
|
+
BracketsOpen.displayName = "JVR.BracketsOpen";
|
|
5916
|
+
var BracketsClose = (props) => {
|
|
5917
|
+
var { isBrackets, isVisiable, value, parentValue, keyName, keys } = props;
|
|
5918
|
+
var result = {
|
|
5919
|
+
value,
|
|
5920
|
+
parentValue,
|
|
5921
|
+
keyName,
|
|
5922
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
5923
|
+
};
|
|
5924
|
+
if (!isVisiable) return null;
|
|
5925
|
+
var { BracketsRight = {}, BraceRight = {} } = useSymbolsStore();
|
|
5926
|
+
if (isBrackets) {
|
|
5927
|
+
var { as, render: _render2 } = BracketsRight, _reset = _objectWithoutPropertiesLoose(BracketsRight, _excluded8$1);
|
|
5928
|
+
var BracketsRightComp = as || "span";
|
|
5929
|
+
var _child2 = _render2 && typeof _render2 === "function" && _render2(_reset, result);
|
|
5930
|
+
if (_child2) return _child2;
|
|
5931
|
+
return /* @__PURE__ */ jsx(BracketsRightComp, _extends({}, _reset));
|
|
5932
|
+
}
|
|
5933
|
+
var { as: elm, render } = BraceRight, reset = _objectWithoutPropertiesLoose(BraceRight, _excluded9$1);
|
|
5934
|
+
var BraceRightComp = elm || "span";
|
|
5935
|
+
var child = render && typeof render === "function" && render(reset, result);
|
|
5936
|
+
if (child) return child;
|
|
5937
|
+
return /* @__PURE__ */ jsx(BraceRightComp, _extends({}, reset));
|
|
5938
|
+
};
|
|
5939
|
+
BracketsClose.displayName = "JVR.BracketsClose";
|
|
5940
|
+
//#endregion
|
|
5941
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/comps/NestedClose.js
|
|
5942
|
+
var NestedClose = (props) => {
|
|
5943
|
+
var _expands$expandKey;
|
|
5944
|
+
var { keyName, value, expandKey, parentValue, level, keys = [] } = props;
|
|
5945
|
+
var expands = useExpandsStore();
|
|
5946
|
+
var { collapsed, shouldExpandNodeInitially } = useStore();
|
|
5947
|
+
var defaultExpanded = typeof collapsed === "boolean" ? collapsed : typeof collapsed === "number" ? level > collapsed : false;
|
|
5948
|
+
var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;
|
|
5949
|
+
var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {
|
|
5950
|
+
value,
|
|
5951
|
+
keys,
|
|
5952
|
+
level,
|
|
5953
|
+
keyName,
|
|
5954
|
+
parentValue
|
|
5955
|
+
});
|
|
5956
|
+
if (shouldExpandNodeInitially && collapsed === false) {
|
|
5957
|
+
if (expands[expandKey] === void 0 && !shouldExpand) return null;
|
|
5958
|
+
} else if (expands[expandKey] === void 0 && shouldExpand) return null;
|
|
5959
|
+
var len = Object.keys(value).length;
|
|
5960
|
+
if (isExpanded || len === 0) return null;
|
|
5961
|
+
var style = { paddingLeft: 4 };
|
|
5962
|
+
var compProps = {
|
|
5963
|
+
keyName,
|
|
5964
|
+
value,
|
|
5965
|
+
keys,
|
|
5966
|
+
parentValue
|
|
5967
|
+
};
|
|
5968
|
+
var isArray = Array.isArray(value);
|
|
5969
|
+
var isMySet = value instanceof Set;
|
|
5970
|
+
return /* @__PURE__ */ jsx("div", {
|
|
5971
|
+
style,
|
|
5972
|
+
children: /* @__PURE__ */ jsx(BracketsClose, _extends({ isBrackets: isArray || isMySet }, compProps, { isVisiable: true }))
|
|
5973
|
+
});
|
|
5974
|
+
};
|
|
5975
|
+
NestedClose.displayName = "JVR.NestedClose";
|
|
5976
|
+
//#endregion
|
|
5977
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/index.js
|
|
5978
|
+
var _excluded$8 = ["as", "render"], _excluded2$4 = ["as", "render"], _excluded3 = ["as", "render"], _excluded4 = ["as", "render"], _excluded5 = ["as", "render"], _excluded6 = ["as", "render"], _excluded7 = ["as", "render"], _excluded8 = ["as", "render"], _excluded9 = ["as", "render"], _excluded0 = ["as", "render"], _excluded1 = ["as", "render"], _excluded10 = ["as", "render"], _excluded11 = ["as", "render"];
|
|
5979
|
+
var bigIntToString = (bi) => {
|
|
5980
|
+
if (bi === void 0) return "0n";
|
|
5981
|
+
else if (typeof bi === "string") try {
|
|
5982
|
+
bi = BigInt(bi);
|
|
5983
|
+
} catch (e) {
|
|
5984
|
+
return "0n";
|
|
5985
|
+
}
|
|
5986
|
+
return bi ? bi.toString() + "n" : "0n";
|
|
5987
|
+
};
|
|
5988
|
+
var SetComp = (_ref) => {
|
|
5989
|
+
var { value, keyName } = _ref;
|
|
5990
|
+
var { Set: Comp = {}, displayDataTypes } = useTypesStore();
|
|
5991
|
+
if (!(value instanceof Set) || !displayDataTypes) return null;
|
|
5992
|
+
var { as, render } = Comp, reset = _objectWithoutPropertiesLoose(Comp, _excluded$8);
|
|
5993
|
+
var type = render && typeof render === "function" && render(reset, {
|
|
5994
|
+
type: "type",
|
|
5995
|
+
value,
|
|
5996
|
+
keyName
|
|
5997
|
+
});
|
|
5998
|
+
if (type) return type;
|
|
5999
|
+
return /* @__PURE__ */ jsx(as || "span", _extends({}, reset));
|
|
6000
|
+
};
|
|
6001
|
+
SetComp.displayName = "JVR.SetComp";
|
|
6002
|
+
var MapComp = (_ref2) => {
|
|
6003
|
+
var { value, keyName } = _ref2;
|
|
6004
|
+
var { Map: Comp = {}, displayDataTypes } = useTypesStore();
|
|
6005
|
+
if (!(value instanceof Map) || !displayDataTypes) return null;
|
|
6006
|
+
var { as, render } = Comp, reset = _objectWithoutPropertiesLoose(Comp, _excluded2$4);
|
|
6007
|
+
var type = render && typeof render === "function" && render(reset, {
|
|
6008
|
+
type: "type",
|
|
6009
|
+
value,
|
|
6010
|
+
keyName
|
|
6011
|
+
});
|
|
6012
|
+
if (type) return type;
|
|
6013
|
+
return /* @__PURE__ */ jsx(as || "span", _extends({}, reset));
|
|
6014
|
+
};
|
|
6015
|
+
MapComp.displayName = "JVR.MapComp";
|
|
6016
|
+
var defalutStyle = {
|
|
6017
|
+
opacity: .75,
|
|
6018
|
+
paddingRight: 4
|
|
6019
|
+
};
|
|
6020
|
+
var TypeString = (_ref3) => {
|
|
6021
|
+
var { children = "", keyName, keys } = _ref3;
|
|
6022
|
+
var { Str = {}, displayDataTypes } = useTypesStore();
|
|
6023
|
+
var { shortenTextAfterLength: length = 30, stringEllipsis = "..." } = useStore();
|
|
6024
|
+
var { as, render } = Str, reset = _objectWithoutPropertiesLoose(Str, _excluded3);
|
|
6025
|
+
var childrenStr = children;
|
|
6026
|
+
var [shorten, setShorten] = useState(length && childrenStr.length > length);
|
|
6027
|
+
useEffect(() => setShorten(length && childrenStr.length > length), [length]);
|
|
6028
|
+
var Comp = as || "span";
|
|
6029
|
+
var style = _extends({}, defalutStyle, Str.style || {});
|
|
6030
|
+
if (length > 0) {
|
|
6031
|
+
reset.style = _extends({}, reset.style, { cursor: childrenStr.length <= length ? "initial" : "pointer" });
|
|
6032
|
+
if (childrenStr.length > length) reset.onClick = () => {
|
|
6033
|
+
setShorten(!shorten);
|
|
6034
|
+
};
|
|
6035
|
+
}
|
|
6036
|
+
var text = shorten ? "" + childrenStr.slice(0, length) + stringEllipsis : childrenStr;
|
|
6037
|
+
var isRender = render && typeof render === "function";
|
|
6038
|
+
var type = isRender && render(_extends({}, reset, { style }), {
|
|
6039
|
+
type: "type",
|
|
6040
|
+
value: children,
|
|
6041
|
+
keyName,
|
|
6042
|
+
keys
|
|
6043
|
+
});
|
|
6044
|
+
var cls = shorten ? "w-rjv-value w-rjv-value-short" : "w-rjv-value";
|
|
6045
|
+
var child = isRender && render(_extends({}, reset, {
|
|
6046
|
+
children: text,
|
|
6047
|
+
className: cls
|
|
6048
|
+
}), {
|
|
6049
|
+
type: "value",
|
|
6050
|
+
value: children,
|
|
6051
|
+
keyName,
|
|
6052
|
+
keys
|
|
6053
|
+
});
|
|
6054
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ jsx(Comp, _extends({}, reset, { style }))), child || /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6055
|
+
/* @__PURE__ */ jsx(ValueQuote$1, {}),
|
|
6056
|
+
/* @__PURE__ */ jsx(Comp, _extends({}, reset, {
|
|
6057
|
+
className: cls,
|
|
6058
|
+
children: text
|
|
6059
|
+
})),
|
|
6060
|
+
/* @__PURE__ */ jsx(ValueQuote$1, {})
|
|
6061
|
+
] })] });
|
|
6062
|
+
};
|
|
6063
|
+
TypeString.displayName = "JVR.TypeString";
|
|
6064
|
+
var TypeTrue = (_ref4) => {
|
|
6065
|
+
var { children, keyName, keys } = _ref4;
|
|
6066
|
+
var { True = {}, displayDataTypes } = useTypesStore();
|
|
6067
|
+
var { as, render } = True, reset = _objectWithoutPropertiesLoose(True, _excluded4);
|
|
6068
|
+
var Comp = as || "span";
|
|
6069
|
+
var style = _extends({}, defalutStyle, True.style || {});
|
|
6070
|
+
var isRender = render && typeof render === "function";
|
|
6071
|
+
var type = isRender && render(_extends({}, reset, { style }), {
|
|
6072
|
+
type: "type",
|
|
6073
|
+
value: children,
|
|
6074
|
+
keyName,
|
|
6075
|
+
keys
|
|
6076
|
+
});
|
|
6077
|
+
var child = isRender && render(_extends({}, reset, {
|
|
6078
|
+
children,
|
|
6079
|
+
className: "w-rjv-value"
|
|
6080
|
+
}), {
|
|
6081
|
+
type: "value",
|
|
6082
|
+
value: children,
|
|
6083
|
+
keyName,
|
|
6084
|
+
keys
|
|
6085
|
+
});
|
|
6086
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ jsx(Comp, _extends({}, reset, { style }))), child || /* @__PURE__ */ jsx(Comp, _extends({}, reset, {
|
|
6087
|
+
className: "w-rjv-value",
|
|
6088
|
+
children: children == null ? void 0 : children.toString()
|
|
6089
|
+
}))] });
|
|
6090
|
+
};
|
|
6091
|
+
TypeTrue.displayName = "JVR.TypeTrue";
|
|
6092
|
+
var TypeFalse = (_ref5) => {
|
|
6093
|
+
var { children, keyName, keys } = _ref5;
|
|
6094
|
+
var { False = {}, displayDataTypes } = useTypesStore();
|
|
6095
|
+
var { as, render } = False, reset = _objectWithoutPropertiesLoose(False, _excluded5);
|
|
6096
|
+
var Comp = as || "span";
|
|
6097
|
+
var style = _extends({}, defalutStyle, False.style || {});
|
|
6098
|
+
var isRender = render && typeof render === "function";
|
|
6099
|
+
var type = isRender && render(_extends({}, reset, { style }), {
|
|
6100
|
+
type: "type",
|
|
6101
|
+
value: children,
|
|
6102
|
+
keyName,
|
|
6103
|
+
keys
|
|
6104
|
+
});
|
|
6105
|
+
var child = isRender && render(_extends({}, reset, {
|
|
6106
|
+
children,
|
|
6107
|
+
className: "w-rjv-value"
|
|
6108
|
+
}), {
|
|
6109
|
+
type: "value",
|
|
6110
|
+
value: children,
|
|
6111
|
+
keyName,
|
|
6112
|
+
keys
|
|
6113
|
+
});
|
|
6114
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ jsx(Comp, _extends({}, reset, { style }))), child || /* @__PURE__ */ jsx(Comp, _extends({}, reset, {
|
|
6115
|
+
className: "w-rjv-value",
|
|
6116
|
+
children: children == null ? void 0 : children.toString()
|
|
6117
|
+
}))] });
|
|
6118
|
+
};
|
|
6119
|
+
TypeFalse.displayName = "JVR.TypeFalse";
|
|
6120
|
+
var TypeFloat = (_ref6) => {
|
|
6121
|
+
var { children, keyName, keys } = _ref6;
|
|
6122
|
+
var { Float = {}, displayDataTypes } = useTypesStore();
|
|
6123
|
+
var { as, render } = Float, reset = _objectWithoutPropertiesLoose(Float, _excluded6);
|
|
6124
|
+
var Comp = as || "span";
|
|
6125
|
+
var style = _extends({}, defalutStyle, Float.style || {});
|
|
6126
|
+
var isRender = render && typeof render === "function";
|
|
6127
|
+
var type = isRender && render(_extends({}, reset, { style }), {
|
|
6128
|
+
type: "type",
|
|
6129
|
+
value: children,
|
|
6130
|
+
keyName,
|
|
6131
|
+
keys
|
|
6132
|
+
});
|
|
6133
|
+
var child = isRender && render(_extends({}, reset, {
|
|
6134
|
+
children,
|
|
6135
|
+
className: "w-rjv-value"
|
|
6136
|
+
}), {
|
|
6137
|
+
type: "value",
|
|
6138
|
+
value: children,
|
|
6139
|
+
keyName,
|
|
6140
|
+
keys
|
|
6141
|
+
});
|
|
6142
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ jsx(Comp, _extends({}, reset, { style }))), child || /* @__PURE__ */ jsx(Comp, _extends({}, reset, {
|
|
6143
|
+
className: "w-rjv-value",
|
|
6144
|
+
children: children == null ? void 0 : children.toString()
|
|
6145
|
+
}))] });
|
|
6146
|
+
};
|
|
6147
|
+
TypeFloat.displayName = "JVR.TypeFloat";
|
|
6148
|
+
var TypeInt = (_ref7) => {
|
|
6149
|
+
var { children, keyName, keys } = _ref7;
|
|
6150
|
+
var { Int = {}, displayDataTypes } = useTypesStore();
|
|
6151
|
+
var { as, render } = Int, reset = _objectWithoutPropertiesLoose(Int, _excluded7);
|
|
6152
|
+
var Comp = as || "span";
|
|
6153
|
+
var style = _extends({}, defalutStyle, Int.style || {});
|
|
6154
|
+
var isRender = render && typeof render === "function";
|
|
6155
|
+
var type = isRender && render(_extends({}, reset, { style }), {
|
|
6156
|
+
type: "type",
|
|
6157
|
+
value: children,
|
|
6158
|
+
keyName,
|
|
6159
|
+
keys
|
|
6160
|
+
});
|
|
6161
|
+
var child = isRender && render(_extends({}, reset, {
|
|
6162
|
+
children,
|
|
6163
|
+
className: "w-rjv-value"
|
|
6164
|
+
}), {
|
|
6165
|
+
type: "value",
|
|
6166
|
+
value: children,
|
|
6167
|
+
keyName,
|
|
6168
|
+
keys
|
|
6169
|
+
});
|
|
6170
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ jsx(Comp, _extends({}, reset, { style }))), child || /* @__PURE__ */ jsx(Comp, _extends({}, reset, {
|
|
6171
|
+
className: "w-rjv-value",
|
|
6172
|
+
children: children == null ? void 0 : children.toString()
|
|
6173
|
+
}))] });
|
|
6174
|
+
};
|
|
6175
|
+
TypeInt.displayName = "JVR.TypeInt";
|
|
6176
|
+
var TypeBigint = (_ref8) => {
|
|
6177
|
+
var { children, keyName, keys } = _ref8;
|
|
6178
|
+
var { Bigint: CompBigint = {}, displayDataTypes } = useTypesStore();
|
|
6179
|
+
var { as, render } = CompBigint, reset = _objectWithoutPropertiesLoose(CompBigint, _excluded8);
|
|
6180
|
+
var Comp = as || "span";
|
|
6181
|
+
var style = _extends({}, defalutStyle, CompBigint.style || {});
|
|
6182
|
+
var isRender = render && typeof render === "function";
|
|
6183
|
+
var type = isRender && render(_extends({}, reset, { style }), {
|
|
6184
|
+
type: "type",
|
|
6185
|
+
value: children,
|
|
6186
|
+
keyName,
|
|
6187
|
+
keys
|
|
6188
|
+
});
|
|
6189
|
+
var child = isRender && render(_extends({}, reset, {
|
|
6190
|
+
children,
|
|
6191
|
+
className: "w-rjv-value"
|
|
6192
|
+
}), {
|
|
6193
|
+
type: "value",
|
|
6194
|
+
value: children,
|
|
6195
|
+
keyName,
|
|
6196
|
+
keys
|
|
6197
|
+
});
|
|
6198
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ jsx(Comp, _extends({}, reset, { style }))), child || /* @__PURE__ */ jsx(Comp, _extends({}, reset, {
|
|
6199
|
+
className: "w-rjv-value",
|
|
6200
|
+
children: bigIntToString(children == null ? void 0 : children.toString())
|
|
6201
|
+
}))] });
|
|
6202
|
+
};
|
|
6203
|
+
TypeBigint.displayName = "JVR.TypeFloat";
|
|
6204
|
+
var TypeUrl = (_ref9) => {
|
|
6205
|
+
var { children, keyName, keys } = _ref9;
|
|
6206
|
+
var { Url = {}, displayDataTypes } = useTypesStore();
|
|
6207
|
+
var { as, render } = Url, reset = _objectWithoutPropertiesLoose(Url, _excluded9);
|
|
6208
|
+
var Comp = as || "span";
|
|
6209
|
+
var style = _extends({}, defalutStyle, Url.style);
|
|
6210
|
+
var isRender = render && typeof render === "function";
|
|
6211
|
+
var type = isRender && render(_extends({}, reset, { style }), {
|
|
6212
|
+
type: "type",
|
|
6213
|
+
value: children,
|
|
6214
|
+
keyName,
|
|
6215
|
+
keys
|
|
6216
|
+
});
|
|
6217
|
+
var child = isRender && render(_extends({}, reset, {
|
|
6218
|
+
children: children == null ? void 0 : children.href,
|
|
6219
|
+
className: "w-rjv-value"
|
|
6220
|
+
}), {
|
|
6221
|
+
type: "value",
|
|
6222
|
+
value: children,
|
|
6223
|
+
keyName,
|
|
6224
|
+
keys
|
|
6225
|
+
});
|
|
6226
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ jsx(Comp, _extends({}, reset, { style }))), child || /* @__PURE__ */ jsxs("a", _extends({
|
|
6227
|
+
href: children == null ? void 0 : children.href,
|
|
6228
|
+
target: "_blank"
|
|
6229
|
+
}, reset, {
|
|
6230
|
+
className: "w-rjv-value",
|
|
6231
|
+
children: [
|
|
6232
|
+
/* @__PURE__ */ jsx(ValueQuote$1, {}),
|
|
6233
|
+
children == null ? void 0 : children.href,
|
|
6234
|
+
/* @__PURE__ */ jsx(ValueQuote$1, {})
|
|
6235
|
+
]
|
|
6236
|
+
}))] });
|
|
6237
|
+
};
|
|
6238
|
+
TypeUrl.displayName = "JVR.TypeUrl";
|
|
6239
|
+
var TypeDate = (_ref0) => {
|
|
6240
|
+
var { children, keyName, keys } = _ref0;
|
|
6241
|
+
var { Date: CompData = {}, displayDataTypes } = useTypesStore();
|
|
6242
|
+
var { as, render } = CompData, reset = _objectWithoutPropertiesLoose(CompData, _excluded0);
|
|
6243
|
+
var Comp = as || "span";
|
|
6244
|
+
var style = _extends({}, defalutStyle, CompData.style || {});
|
|
6245
|
+
var isRender = render && typeof render === "function";
|
|
6246
|
+
var type = isRender && render(_extends({}, reset, { style }), {
|
|
6247
|
+
type: "type",
|
|
6248
|
+
value: children,
|
|
6249
|
+
keyName,
|
|
6250
|
+
keys
|
|
6251
|
+
});
|
|
6252
|
+
var childStr = children instanceof Date ? children.toLocaleString() : children;
|
|
6253
|
+
var child = isRender && render(_extends({}, reset, {
|
|
6254
|
+
children: childStr,
|
|
6255
|
+
className: "w-rjv-value"
|
|
6256
|
+
}), {
|
|
6257
|
+
type: "value",
|
|
6258
|
+
value: children,
|
|
6259
|
+
keyName,
|
|
6260
|
+
keys
|
|
6261
|
+
});
|
|
6262
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ jsx(Comp, _extends({}, reset, { style }))), child || /* @__PURE__ */ jsx(Comp, _extends({}, reset, {
|
|
6263
|
+
className: "w-rjv-value",
|
|
6264
|
+
children: childStr
|
|
6265
|
+
}))] });
|
|
6266
|
+
};
|
|
6267
|
+
TypeDate.displayName = "JVR.TypeDate";
|
|
6268
|
+
var TypeUndefined = (_ref1) => {
|
|
6269
|
+
var { children, keyName, keys } = _ref1;
|
|
6270
|
+
var { Undefined = {}, displayDataTypes } = useTypesStore();
|
|
6271
|
+
var { as, render } = Undefined, reset = _objectWithoutPropertiesLoose(Undefined, _excluded1);
|
|
6272
|
+
var Comp = as || "span";
|
|
6273
|
+
var style = _extends({}, defalutStyle, Undefined.style || {});
|
|
6274
|
+
var isRender = render && typeof render === "function";
|
|
6275
|
+
var type = isRender && render(_extends({}, reset, { style }), {
|
|
6276
|
+
type: "type",
|
|
6277
|
+
value: children,
|
|
6278
|
+
keyName,
|
|
6279
|
+
keys
|
|
6280
|
+
});
|
|
6281
|
+
var child = isRender && render(_extends({}, reset, {
|
|
6282
|
+
children,
|
|
6283
|
+
className: "w-rjv-value"
|
|
6284
|
+
}), {
|
|
6285
|
+
type: "value",
|
|
6286
|
+
value: children,
|
|
6287
|
+
keyName,
|
|
6288
|
+
keys
|
|
6289
|
+
});
|
|
6290
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ jsx(Comp, _extends({}, reset, { style }))), child || /* @__PURE__ */ jsx(Comp, _extends({}, reset, {
|
|
6291
|
+
className: "w-rjv-value",
|
|
6292
|
+
children: "undefined"
|
|
6293
|
+
}))] });
|
|
6294
|
+
};
|
|
6295
|
+
TypeUndefined.displayName = "JVR.TypeUndefined";
|
|
6296
|
+
var TypeNull = (_ref10) => {
|
|
6297
|
+
var { children, keyName, keys } = _ref10;
|
|
6298
|
+
var { Null = {}, displayDataTypes } = useTypesStore();
|
|
6299
|
+
var { as, render } = Null, reset = _objectWithoutPropertiesLoose(Null, _excluded10);
|
|
6300
|
+
var Comp = as || "span";
|
|
6301
|
+
var style = _extends({}, defalutStyle, Null.style || {});
|
|
6302
|
+
var isRender = render && typeof render === "function";
|
|
6303
|
+
var type = isRender && render(_extends({}, reset, { style }), {
|
|
6304
|
+
type: "type",
|
|
6305
|
+
value: children,
|
|
6306
|
+
keyName,
|
|
6307
|
+
keys
|
|
6308
|
+
});
|
|
6309
|
+
var child = isRender && render(_extends({}, reset, {
|
|
6310
|
+
children,
|
|
6311
|
+
className: "w-rjv-value"
|
|
6312
|
+
}), {
|
|
6313
|
+
type: "value",
|
|
6314
|
+
value: children,
|
|
6315
|
+
keyName,
|
|
6316
|
+
keys
|
|
6317
|
+
});
|
|
6318
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ jsx(Comp, _extends({}, reset, { style }))), child || /* @__PURE__ */ jsx(Comp, _extends({}, reset, {
|
|
6319
|
+
className: "w-rjv-value",
|
|
6320
|
+
children: "null"
|
|
6321
|
+
}))] });
|
|
6322
|
+
};
|
|
6323
|
+
TypeNull.displayName = "JVR.TypeNull";
|
|
6324
|
+
var TypeNan = (_ref11) => {
|
|
6325
|
+
var { children, keyName, keys } = _ref11;
|
|
6326
|
+
var { Nan = {}, displayDataTypes } = useTypesStore();
|
|
6327
|
+
var { as, render } = Nan, reset = _objectWithoutPropertiesLoose(Nan, _excluded11);
|
|
6328
|
+
var Comp = as || "span";
|
|
6329
|
+
var style = _extends({}, defalutStyle, Nan.style || {});
|
|
6330
|
+
var isRender = render && typeof render === "function";
|
|
6331
|
+
var type = isRender && render(_extends({}, reset, { style }), {
|
|
6332
|
+
type: "type",
|
|
6333
|
+
value: children,
|
|
6334
|
+
keyName,
|
|
6335
|
+
keys
|
|
6336
|
+
});
|
|
6337
|
+
var child = isRender && render(_extends({}, reset, {
|
|
6338
|
+
children: children == null ? void 0 : children.toString(),
|
|
6339
|
+
className: "w-rjv-value"
|
|
6340
|
+
}), {
|
|
6341
|
+
type: "value",
|
|
6342
|
+
value: children,
|
|
6343
|
+
keyName,
|
|
6344
|
+
keys
|
|
6345
|
+
});
|
|
6346
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ jsx(Comp, _extends({}, reset, { style }))), child || /* @__PURE__ */ jsx(Comp, _extends({}, reset, {
|
|
6347
|
+
className: "w-rjv-value",
|
|
6348
|
+
children: "NaN"
|
|
6349
|
+
}))] });
|
|
6350
|
+
};
|
|
6351
|
+
TypeNan.displayName = "JVR.TypeNan";
|
|
6352
|
+
//#endregion
|
|
6353
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/comps/Value.js
|
|
6354
|
+
var isFloat = (n) => Number(n) === n && n % 1 !== 0 || isNaN(n);
|
|
6355
|
+
var Value = (props) => {
|
|
6356
|
+
var { value, keyName, keys } = props;
|
|
6357
|
+
var reset = {
|
|
6358
|
+
keyName,
|
|
6359
|
+
keys
|
|
6360
|
+
};
|
|
6361
|
+
if (value instanceof URL) return /* @__PURE__ */ jsx(TypeUrl, _extends({}, reset, { children: value }));
|
|
6362
|
+
if (typeof value === "string") return /* @__PURE__ */ jsx(TypeString, _extends({}, reset, { children: value }));
|
|
6363
|
+
if (value === true) return /* @__PURE__ */ jsx(TypeTrue, _extends({}, reset, { children: value }));
|
|
6364
|
+
if (value === false) return /* @__PURE__ */ jsx(TypeFalse, _extends({}, reset, { children: value }));
|
|
6365
|
+
if (value === null) return /* @__PURE__ */ jsx(TypeNull, _extends({}, reset, { children: value }));
|
|
6366
|
+
if (value === void 0) return /* @__PURE__ */ jsx(TypeUndefined, _extends({}, reset, { children: value }));
|
|
6367
|
+
if (value instanceof Date) return /* @__PURE__ */ jsx(TypeDate, _extends({}, reset, { children: value }));
|
|
6368
|
+
if (typeof value === "number" && isNaN(value)) return /* @__PURE__ */ jsx(TypeNan, _extends({}, reset, { children: value }));
|
|
6369
|
+
else if (typeof value === "number" && isFloat(value)) return /* @__PURE__ */ jsx(TypeFloat, _extends({}, reset, { children: value }));
|
|
6370
|
+
else if (typeof value === "bigint") return /* @__PURE__ */ jsx(TypeBigint, _extends({}, reset, { children: value }));
|
|
6371
|
+
else if (typeof value === "number") return /* @__PURE__ */ jsx(TypeInt, _extends({}, reset, { children: value }));
|
|
6372
|
+
return null;
|
|
6373
|
+
};
|
|
6374
|
+
Value.displayName = "JVR.Value";
|
|
6375
|
+
//#endregion
|
|
6376
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/utils/useRender.js
|
|
6377
|
+
function useSymbolsRender(currentProps, props, key) {
|
|
6378
|
+
var dispatch = useSymbolsDispatch();
|
|
6379
|
+
var reset = _extends({}, currentProps, props, {
|
|
6380
|
+
className: [currentProps.className, props.className].filter(Boolean).join(" "),
|
|
6381
|
+
style: _extends({}, currentProps.style, props.style),
|
|
6382
|
+
children: props.children || currentProps.children
|
|
6383
|
+
});
|
|
6384
|
+
useEffect(() => dispatch({ [key]: reset }), [props]);
|
|
6385
|
+
}
|
|
6386
|
+
function useTypesRender(currentProps, props, key) {
|
|
6387
|
+
var dispatch = useTypesDispatch();
|
|
6388
|
+
var reset = _extends({}, currentProps, props, {
|
|
6389
|
+
className: [currentProps.className, props.className].filter(Boolean).join(" "),
|
|
6390
|
+
style: _extends({}, currentProps.style, props.style),
|
|
6391
|
+
children: props.children || currentProps.children
|
|
6392
|
+
});
|
|
6393
|
+
useEffect(() => dispatch({ [key]: reset }), [props]);
|
|
6394
|
+
}
|
|
6395
|
+
function useSectionRender(currentProps, props, key) {
|
|
6396
|
+
var dispatch = useSectionDispatch();
|
|
6397
|
+
var reset = _extends({}, currentProps, props, {
|
|
6398
|
+
className: [currentProps.className, props.className].filter(Boolean).join(" "),
|
|
6399
|
+
style: _extends({}, currentProps.style, props.style),
|
|
6400
|
+
children: props.children || currentProps.children
|
|
6401
|
+
});
|
|
6402
|
+
useEffect(() => dispatch({ [key]: reset }), [props]);
|
|
6403
|
+
}
|
|
6404
|
+
//#endregion
|
|
6405
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/section/KeyName.js
|
|
6406
|
+
var _excluded$7 = ["as", "render"];
|
|
6407
|
+
var KeyName = (props) => {
|
|
6408
|
+
var { KeyName: Comp = {} } = useSectionStore();
|
|
6409
|
+
useSectionRender(Comp, props, "KeyName");
|
|
6410
|
+
return null;
|
|
6411
|
+
};
|
|
6412
|
+
KeyName.displayName = "JVR.KeyName";
|
|
6413
|
+
var KeyNameComp = (props) => {
|
|
6414
|
+
var { children, value, parentValue, keyName, keys } = props;
|
|
6415
|
+
var style = { color: typeof children === "number" ? "var(--w-rjv-key-number, #268bd2)" : "var(--w-rjv-key-string, #002b36)" };
|
|
6416
|
+
var { KeyName: Comp = {} } = useSectionStore();
|
|
6417
|
+
var { as, render } = Comp, reset = _objectWithoutPropertiesLoose(Comp, _excluded$7);
|
|
6418
|
+
reset.style = _extends({}, reset.style, style);
|
|
6419
|
+
var Elm = as || "span";
|
|
6420
|
+
var child = render && typeof render === "function" && render(_extends({}, reset, { children }), {
|
|
6421
|
+
value,
|
|
6422
|
+
parentValue,
|
|
6423
|
+
keyName,
|
|
6424
|
+
keys: keys || (keyName ? [keyName] : [])
|
|
6425
|
+
});
|
|
6426
|
+
if (child) return child;
|
|
6427
|
+
return /* @__PURE__ */ jsx(Elm, _extends({}, reset, { children }));
|
|
6428
|
+
};
|
|
6429
|
+
KeyNameComp.displayName = "JVR.KeyNameComp";
|
|
6430
|
+
//#endregion
|
|
6431
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/section/Row.js
|
|
6432
|
+
var _excluded$6 = [
|
|
6433
|
+
"children",
|
|
6434
|
+
"value",
|
|
6435
|
+
"parentValue",
|
|
6436
|
+
"keyName",
|
|
6437
|
+
"keys"
|
|
6438
|
+
], _excluded2$3 = [
|
|
6439
|
+
"as",
|
|
6440
|
+
"render",
|
|
6441
|
+
"children"
|
|
6442
|
+
];
|
|
6443
|
+
var Row = (props) => {
|
|
6444
|
+
var { Row: Comp = {} } = useSectionStore();
|
|
6445
|
+
useSectionRender(Comp, props, "Row");
|
|
6446
|
+
return null;
|
|
6447
|
+
};
|
|
6448
|
+
Row.displayName = "JVR.Row";
|
|
6449
|
+
var RowComp = (props) => {
|
|
6450
|
+
var { children, value, parentValue, keyName, keys } = props, other = _objectWithoutPropertiesLoose(props, _excluded$6);
|
|
6451
|
+
var { Row: Comp = {} } = useSectionStore();
|
|
6452
|
+
var { as, render } = Comp, reset = _objectWithoutPropertiesLoose(Comp, _excluded2$3);
|
|
6453
|
+
var Elm = as || "div";
|
|
6454
|
+
var child = render && typeof render === "function" && render(_extends({}, other, reset, { children }), {
|
|
6455
|
+
value,
|
|
6456
|
+
keyName,
|
|
6457
|
+
parentValue,
|
|
6458
|
+
keys
|
|
6459
|
+
});
|
|
6460
|
+
if (child) return child;
|
|
6461
|
+
return /* @__PURE__ */ jsx(Elm, _extends({}, other, reset, { children }));
|
|
6462
|
+
};
|
|
6463
|
+
RowComp.displayName = "JVR.RowComp";
|
|
6464
|
+
//#endregion
|
|
6465
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/utils/useHighlight.js
|
|
6466
|
+
function usePrevious(value) {
|
|
6467
|
+
var ref = useRef();
|
|
6468
|
+
useEffect(() => {
|
|
6469
|
+
ref.current = value;
|
|
6470
|
+
});
|
|
6471
|
+
return ref.current;
|
|
6472
|
+
}
|
|
6473
|
+
function useHighlight(_ref) {
|
|
6474
|
+
var { value, highlightUpdates, highlightContainer } = _ref;
|
|
6475
|
+
var prevValue = usePrevious(value);
|
|
6476
|
+
var isHighlight = useMemo(() => {
|
|
6477
|
+
if (!highlightUpdates || prevValue === void 0) return false;
|
|
6478
|
+
if (typeof value !== typeof prevValue) return true;
|
|
6479
|
+
if (typeof value === "number") {
|
|
6480
|
+
if (isNaN(value) && isNaN(prevValue)) return false;
|
|
6481
|
+
return value !== prevValue;
|
|
6482
|
+
}
|
|
6483
|
+
if (Array.isArray(value) !== Array.isArray(prevValue)) return true;
|
|
6484
|
+
if (typeof value === "object" || typeof value === "function") return false;
|
|
6485
|
+
if (value !== prevValue) return true;
|
|
6486
|
+
}, [highlightUpdates, value]);
|
|
6487
|
+
useEffect(() => {
|
|
6488
|
+
if (highlightContainer && highlightContainer.current && isHighlight && "animate" in highlightContainer.current) highlightContainer.current.animate([{ backgroundColor: "var(--w-rjv-update-color, #ebcb8b)" }, { backgroundColor: "" }], {
|
|
6489
|
+
duration: 1e3,
|
|
6490
|
+
easing: "ease-in"
|
|
6491
|
+
});
|
|
6492
|
+
}, [
|
|
6493
|
+
isHighlight,
|
|
6494
|
+
value,
|
|
6495
|
+
highlightContainer
|
|
6496
|
+
]);
|
|
6497
|
+
}
|
|
6498
|
+
//#endregion
|
|
6499
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/comps/Copied.js
|
|
6500
|
+
var _excluded$5 = [
|
|
6501
|
+
"keyName",
|
|
6502
|
+
"value",
|
|
6503
|
+
"parentValue",
|
|
6504
|
+
"expandKey",
|
|
6505
|
+
"keys",
|
|
6506
|
+
"beforeCopy"
|
|
6507
|
+
], _excluded2$2 = ["as", "render"];
|
|
6508
|
+
var Copied$1 = (props) => {
|
|
6509
|
+
var { keyName, value, parentValue, expandKey, keys, beforeCopy } = props, other = _objectWithoutPropertiesLoose(props, _excluded$5);
|
|
6510
|
+
var { onCopied, enableClipboard, beforeCopy: globalBeforeCopy } = useStore();
|
|
6511
|
+
var isShowTools = useShowToolsStore()[expandKey];
|
|
6512
|
+
var [copied, setCopied] = useState(false);
|
|
6513
|
+
var { Copied: Comp = {} } = useSectionStore();
|
|
6514
|
+
var sectionBeforeCopy = Comp == null ? void 0 : Comp.beforeCopy;
|
|
6515
|
+
if (enableClipboard === false || !isShowTools) return null;
|
|
6516
|
+
var click = (event) => {
|
|
6517
|
+
event.stopPropagation();
|
|
6518
|
+
var copyText = "";
|
|
6519
|
+
if (typeof value === "number" && value === Infinity) copyText = "Infinity";
|
|
6520
|
+
else if (typeof value === "number" && isNaN(value)) copyText = "NaN";
|
|
6521
|
+
else if (typeof value === "bigint") copyText = bigIntToString(value);
|
|
6522
|
+
else if (value instanceof Date) copyText = value.toLocaleString();
|
|
6523
|
+
else copyText = JSON.stringify(value, (_, v) => typeof v === "bigint" ? bigIntToString(v) : v, 2);
|
|
6524
|
+
var finalBeforeCopy = beforeCopy || sectionBeforeCopy || globalBeforeCopy;
|
|
6525
|
+
if (finalBeforeCopy && typeof finalBeforeCopy === "function") copyText = finalBeforeCopy(copyText, keyName, value, parentValue, expandKey, keys);
|
|
6526
|
+
onCopied && onCopied(copyText, value);
|
|
6527
|
+
setCopied(true);
|
|
6528
|
+
(navigator.clipboard || { writeText(text) {
|
|
6529
|
+
return new Promise((reslove, reject) => {
|
|
6530
|
+
var textarea = document.createElement("textarea");
|
|
6531
|
+
textarea.style.position = "absolute";
|
|
6532
|
+
textarea.style.opacity = "0";
|
|
6533
|
+
textarea.style.left = "-99999999px";
|
|
6534
|
+
textarea.value = text;
|
|
6535
|
+
document.body.appendChild(textarea);
|
|
6536
|
+
textarea.select();
|
|
6537
|
+
if (!document.execCommand("copy")) reject();
|
|
6538
|
+
else reslove();
|
|
6539
|
+
textarea.remove();
|
|
6540
|
+
});
|
|
6541
|
+
} }).writeText(copyText).then(() => {
|
|
6542
|
+
var timer = setTimeout(() => {
|
|
6543
|
+
setCopied(false);
|
|
6544
|
+
clearTimeout(timer);
|
|
6545
|
+
}, 3e3);
|
|
6546
|
+
}).catch((error) => {});
|
|
6547
|
+
};
|
|
6548
|
+
var svgProps = {
|
|
6549
|
+
style: { display: "inline-flex" },
|
|
6550
|
+
fill: copied ? "var(--w-rjv-copied-success-color, #28a745)" : "var(--w-rjv-copied-color, currentColor)",
|
|
6551
|
+
onClick: click
|
|
6552
|
+
};
|
|
6553
|
+
var { render } = Comp, reset = _objectWithoutPropertiesLoose(Comp, _excluded2$2);
|
|
6554
|
+
var elmProps = _extends({}, reset, other, svgProps, { style: _extends({}, reset.style, other.style, svgProps.style) });
|
|
6555
|
+
var child = render && typeof render === "function" && render(_extends({}, elmProps, { "data-copied": copied }), {
|
|
6556
|
+
value,
|
|
6557
|
+
keyName,
|
|
6558
|
+
keys,
|
|
6559
|
+
parentValue
|
|
6560
|
+
});
|
|
6561
|
+
if (child) return child;
|
|
6562
|
+
if (copied) return /* @__PURE__ */ jsx("svg", _extends({ viewBox: "0 0 32 36" }, elmProps, { children: /* @__PURE__ */ jsx("path", { d: "M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z" }) }));
|
|
6563
|
+
return /* @__PURE__ */ jsx("svg", _extends({ viewBox: "0 0 32 36" }, elmProps, { children: /* @__PURE__ */ jsx("path", { d: "M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z" }) }));
|
|
6564
|
+
};
|
|
6565
|
+
Copied$1.displayName = "JVR.Copied";
|
|
6566
|
+
//#endregion
|
|
6567
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.js
|
|
6568
|
+
function useIdCompat() {
|
|
6569
|
+
var idRef = useRef(null);
|
|
6570
|
+
if (idRef.current === null) idRef.current = "custom-id-" + Math.random().toString(36).substr(2, 9);
|
|
6571
|
+
return idRef.current;
|
|
6572
|
+
}
|
|
6573
|
+
//#endregion
|
|
6574
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/comps/KeyValues.js
|
|
6575
|
+
var KeyValues = (props) => {
|
|
6576
|
+
var _expands$expandKey;
|
|
6577
|
+
var { keyName, value, expandKey = "", level, keys = [], parentValue } = props;
|
|
6578
|
+
var expands = useExpandsStore();
|
|
6579
|
+
var { objectSortKeys, indentWidth, collapsed, shouldExpandNodeInitially } = useStore();
|
|
6580
|
+
var defaultExpanded = typeof collapsed === "boolean" ? collapsed : typeof collapsed === "number" ? level > collapsed : false;
|
|
6581
|
+
var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;
|
|
6582
|
+
var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {
|
|
6583
|
+
value,
|
|
6584
|
+
keys,
|
|
6585
|
+
level,
|
|
6586
|
+
keyName,
|
|
6587
|
+
parentValue
|
|
6588
|
+
});
|
|
6589
|
+
if (shouldExpandNodeInitially && collapsed === false) {
|
|
6590
|
+
if (expands[expandKey] === void 0 && !shouldExpand) return null;
|
|
6591
|
+
} else if (expands[expandKey] === void 0 && shouldExpand) return null;
|
|
6592
|
+
if (isExpanded) return null;
|
|
6593
|
+
var entries = Array.isArray(value) ? Object.entries(value).map((m) => [Number(m[0]), m[1]]) : Object.entries(value);
|
|
6594
|
+
if (objectSortKeys) entries = objectSortKeys === true ? entries.sort((_ref, _ref2) => {
|
|
6595
|
+
var [a] = _ref;
|
|
6596
|
+
var [b] = _ref2;
|
|
6597
|
+
return typeof a === "string" && typeof b === "string" ? a.localeCompare(b) : 0;
|
|
6598
|
+
}) : entries.sort((_ref3, _ref4) => {
|
|
6599
|
+
var [a, valA] = _ref3;
|
|
6600
|
+
var [b, valB] = _ref4;
|
|
6601
|
+
return typeof a === "string" && typeof b === "string" ? objectSortKeys(a, b, valA, valB) : 0;
|
|
6602
|
+
});
|
|
6603
|
+
return /* @__PURE__ */ jsx("div", {
|
|
6604
|
+
className: "w-rjv-wrap",
|
|
6605
|
+
style: {
|
|
6606
|
+
borderLeft: "var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",
|
|
6607
|
+
paddingLeft: indentWidth,
|
|
6608
|
+
marginLeft: 6
|
|
6609
|
+
},
|
|
6610
|
+
children: entries.map((_ref5, idx) => {
|
|
6611
|
+
var [key, val] = _ref5;
|
|
6612
|
+
return /* @__PURE__ */ jsx(KeyValuesItem, {
|
|
6613
|
+
parentValue: value,
|
|
6614
|
+
keyName: key,
|
|
6615
|
+
keys: [...keys, key],
|
|
6616
|
+
value: val,
|
|
6617
|
+
level
|
|
6618
|
+
}, idx);
|
|
6619
|
+
})
|
|
6620
|
+
});
|
|
6621
|
+
};
|
|
6622
|
+
KeyValues.displayName = "JVR.KeyValues";
|
|
6623
|
+
var KayName = (props) => {
|
|
6624
|
+
var { keyName, parentValue, keys, value } = props;
|
|
6625
|
+
var { highlightUpdates } = useStore();
|
|
6626
|
+
var isNumber = typeof keyName === "number";
|
|
6627
|
+
var highlightContainer = useRef(null);
|
|
6628
|
+
useHighlight({
|
|
6629
|
+
value,
|
|
6630
|
+
highlightUpdates,
|
|
6631
|
+
highlightContainer
|
|
6632
|
+
});
|
|
6633
|
+
var compProps = {
|
|
6634
|
+
keyName,
|
|
6635
|
+
value,
|
|
6636
|
+
keys,
|
|
6637
|
+
parentValue
|
|
6638
|
+
};
|
|
6639
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("span", {
|
|
6640
|
+
ref: highlightContainer,
|
|
6641
|
+
children: [
|
|
6642
|
+
/* @__PURE__ */ jsx(Quote$1, _extends({
|
|
6643
|
+
isNumber,
|
|
6644
|
+
"data-placement": "left"
|
|
6645
|
+
}, compProps)),
|
|
6646
|
+
/* @__PURE__ */ jsx(KeyNameComp, _extends({}, compProps, { children: keyName })),
|
|
6647
|
+
/* @__PURE__ */ jsx(Quote$1, _extends({
|
|
6648
|
+
isNumber,
|
|
6649
|
+
"data-placement": "right"
|
|
6650
|
+
}, compProps))
|
|
6651
|
+
]
|
|
6652
|
+
}), /* @__PURE__ */ jsx(Colon$1, _extends({}, compProps))] });
|
|
6653
|
+
};
|
|
6654
|
+
KayName.displayName = "JVR.KayName";
|
|
6655
|
+
var KeyValuesItem = (props) => {
|
|
6656
|
+
var { keyName, value, parentValue, level = 0, keys = [] } = props;
|
|
6657
|
+
var dispatch = useShowToolsDispatch();
|
|
6658
|
+
var subkeyid = useIdCompat();
|
|
6659
|
+
var isMyArray = Array.isArray(value);
|
|
6660
|
+
var isMySet = value instanceof Set;
|
|
6661
|
+
var isMyMap = value instanceof Map;
|
|
6662
|
+
var isDate = value instanceof Date;
|
|
6663
|
+
var isUrl = value instanceof URL;
|
|
6664
|
+
if (value && typeof value === "object" && !isMyArray && !isMySet && !isMyMap && !isDate && !isUrl || isMyArray || isMySet || isMyMap) return /* @__PURE__ */ jsx(Container, {
|
|
6665
|
+
keyName,
|
|
6666
|
+
value: isMySet ? Array.from(value) : isMyMap ? Object.fromEntries(value) : value,
|
|
6667
|
+
parentValue,
|
|
6668
|
+
initialValue: value,
|
|
6669
|
+
keys,
|
|
6670
|
+
level: level + 1
|
|
6671
|
+
});
|
|
6672
|
+
return /* @__PURE__ */ jsxs(RowComp, _extends({
|
|
6673
|
+
className: "w-rjv-line",
|
|
6674
|
+
value,
|
|
6675
|
+
keyName,
|
|
6676
|
+
keys,
|
|
6677
|
+
parentValue
|
|
6678
|
+
}, {
|
|
6679
|
+
onMouseEnter: () => dispatch({ [subkeyid]: true }),
|
|
6680
|
+
onMouseLeave: () => dispatch({ [subkeyid]: false })
|
|
6681
|
+
}, { children: [
|
|
6682
|
+
/* @__PURE__ */ jsx(KayName, {
|
|
6683
|
+
keyName,
|
|
6684
|
+
value,
|
|
6685
|
+
keys,
|
|
6686
|
+
parentValue
|
|
6687
|
+
}),
|
|
6688
|
+
/* @__PURE__ */ jsx(Value, {
|
|
6689
|
+
keyName,
|
|
6690
|
+
value,
|
|
6691
|
+
keys
|
|
6692
|
+
}),
|
|
6693
|
+
/* @__PURE__ */ jsx(Copied$1, {
|
|
6694
|
+
keyName,
|
|
6695
|
+
value,
|
|
6696
|
+
keys,
|
|
6697
|
+
parentValue,
|
|
6698
|
+
expandKey: subkeyid
|
|
6699
|
+
})
|
|
6700
|
+
] }));
|
|
6701
|
+
};
|
|
6702
|
+
KeyValuesItem.displayName = "JVR.KeyValuesItem";
|
|
6703
|
+
//#endregion
|
|
6704
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.js
|
|
6705
|
+
var _excluded$4 = ["value", "keyName"], _excluded2$1 = ["as", "render"];
|
|
6706
|
+
var CountInfoExtra = (props) => {
|
|
6707
|
+
var { CountInfoExtra: Comp = {} } = useSectionStore();
|
|
6708
|
+
useSectionRender(Comp, props, "CountInfoExtra");
|
|
6709
|
+
return null;
|
|
6710
|
+
};
|
|
6711
|
+
CountInfoExtra.displayName = "JVR.CountInfoExtra";
|
|
6712
|
+
var CountInfoExtraComps = (props) => {
|
|
6713
|
+
var { value = {}, keyName } = props, other = _objectWithoutPropertiesLoose(props, _excluded$4);
|
|
6714
|
+
var { CountInfoExtra: Comp = {} } = useSectionStore();
|
|
6715
|
+
var { as, render } = Comp, reset = _objectWithoutPropertiesLoose(Comp, _excluded2$1);
|
|
6716
|
+
if (!render && !reset.children) return null;
|
|
6717
|
+
var Elm = as || "span";
|
|
6718
|
+
var isRender = render && typeof render === "function";
|
|
6719
|
+
var elmProps = _extends({}, reset, other);
|
|
6720
|
+
var child = isRender && render(elmProps, {
|
|
6721
|
+
value,
|
|
6722
|
+
keyName
|
|
6723
|
+
});
|
|
6724
|
+
if (child) return child;
|
|
6725
|
+
return /* @__PURE__ */ jsx(Elm, _extends({}, elmProps));
|
|
6726
|
+
};
|
|
6727
|
+
CountInfoExtraComps.displayName = "JVR.CountInfoExtraComps";
|
|
6728
|
+
//#endregion
|
|
6729
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/section/CountInfo.js
|
|
6730
|
+
var _excluded$3 = ["value", "keyName"], _excluded2 = ["as", "render"];
|
|
6731
|
+
var CountInfo = (props) => {
|
|
6732
|
+
var { CountInfo: Comp = {} } = useSectionStore();
|
|
6733
|
+
useSectionRender(Comp, props, "CountInfo");
|
|
6734
|
+
return null;
|
|
6735
|
+
};
|
|
6736
|
+
CountInfo.displayName = "JVR.CountInfo";
|
|
6737
|
+
var CountInfoComp = (props) => {
|
|
6738
|
+
var { value = {}, keyName } = props, other = _objectWithoutPropertiesLoose(props, _excluded$3);
|
|
6739
|
+
var { displayObjectSize } = useStore();
|
|
6740
|
+
var { CountInfo: Comp = {} } = useSectionStore();
|
|
6741
|
+
if (!displayObjectSize) return null;
|
|
6742
|
+
var { as, render } = Comp, reset = _objectWithoutPropertiesLoose(Comp, _excluded2);
|
|
6743
|
+
var Elm = as || "span";
|
|
6744
|
+
reset.style = _extends({}, reset.style, props.style);
|
|
6745
|
+
var len = Object.keys(value).length;
|
|
6746
|
+
if (!reset.children) reset.children = len + " item" + (len === 1 ? "" : "s");
|
|
6747
|
+
var elmProps = _extends({}, reset, other);
|
|
6748
|
+
var child = render && typeof render === "function" && render(_extends({}, elmProps, { "data-length": len }), {
|
|
6749
|
+
value,
|
|
6750
|
+
keyName
|
|
6751
|
+
});
|
|
6752
|
+
if (child) return child;
|
|
6753
|
+
return /* @__PURE__ */ jsx(Elm, _extends({}, elmProps));
|
|
6754
|
+
};
|
|
6755
|
+
CountInfoComp.displayName = "JVR.CountInfoComp";
|
|
6756
|
+
//#endregion
|
|
6757
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/section/Ellipsis.js
|
|
6758
|
+
var _excluded$2 = ["as", "render"];
|
|
6759
|
+
var Ellipsis = (props) => {
|
|
6760
|
+
var { Ellipsis: Comp = {} } = useSectionStore();
|
|
6761
|
+
useSectionRender(Comp, props, "Ellipsis");
|
|
6762
|
+
return null;
|
|
6763
|
+
};
|
|
6764
|
+
Ellipsis.displayName = "JVR.Ellipsis";
|
|
6765
|
+
var EllipsisComp = (_ref) => {
|
|
6766
|
+
var { isExpanded, value, keyName } = _ref;
|
|
6767
|
+
var { Ellipsis: Comp = {} } = useSectionStore();
|
|
6768
|
+
var { as, render } = Comp, reset = _objectWithoutPropertiesLoose(Comp, _excluded$2);
|
|
6769
|
+
var Elm = as || "span";
|
|
6770
|
+
var child = render && typeof render === "function" && render(_extends({}, reset, { "data-expanded": isExpanded }), {
|
|
6771
|
+
value,
|
|
6772
|
+
keyName
|
|
6773
|
+
});
|
|
6774
|
+
if (child) return child;
|
|
6775
|
+
if (!isExpanded || typeof value === "object" && Object.keys(value).length == 0) return null;
|
|
6776
|
+
return /* @__PURE__ */ jsx(Elm, _extends({}, reset));
|
|
6777
|
+
};
|
|
6778
|
+
EllipsisComp.displayName = "JVR.EllipsisComp";
|
|
6779
|
+
//#endregion
|
|
6780
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.js
|
|
6781
|
+
var NestedOpen = (props) => {
|
|
6782
|
+
var _expands$expandKey;
|
|
6783
|
+
var { keyName, expandKey, keys = [], initialValue, value, parentValue, level } = props;
|
|
6784
|
+
var expands = useExpandsStore();
|
|
6785
|
+
var dispatchExpands = useExpandsDispatch();
|
|
6786
|
+
var { onExpand, collapsed, shouldExpandNodeInitially } = useStore();
|
|
6787
|
+
var defaultExpanded = typeof collapsed === "boolean" ? collapsed : typeof collapsed === "number" ? level > collapsed : false;
|
|
6788
|
+
var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;
|
|
6789
|
+
var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {
|
|
6790
|
+
value,
|
|
6791
|
+
keys,
|
|
6792
|
+
level,
|
|
6793
|
+
keyName,
|
|
6794
|
+
parentValue
|
|
6795
|
+
});
|
|
6796
|
+
if (expands[expandKey] === void 0 && shouldExpandNodeInitially) isExpanded = !shouldExpand;
|
|
6797
|
+
var click = () => {
|
|
6798
|
+
var opt = {
|
|
6799
|
+
expand: !isExpanded,
|
|
6800
|
+
value,
|
|
6801
|
+
keyid: expandKey,
|
|
6802
|
+
keyName
|
|
6803
|
+
};
|
|
6804
|
+
onExpand && onExpand(opt);
|
|
6805
|
+
dispatchExpands({ [expandKey]: opt.expand });
|
|
6806
|
+
};
|
|
6807
|
+
var style = {
|
|
6808
|
+
display: "inline-flex",
|
|
6809
|
+
alignItems: "center"
|
|
6810
|
+
};
|
|
6811
|
+
var arrowStyle = {
|
|
6812
|
+
transform: "rotate(" + (!isExpanded ? "0" : "-90") + "deg)",
|
|
6813
|
+
transition: "all 0.3s"
|
|
6814
|
+
};
|
|
6815
|
+
var len = Object.keys(value).length;
|
|
6816
|
+
var isObject = typeof value === "object";
|
|
6817
|
+
var isArray = Array.isArray(value);
|
|
6818
|
+
var isMySet = value instanceof Set;
|
|
6819
|
+
var showArrow = len !== 0 && (isArray || isMySet || isObject);
|
|
6820
|
+
var reset = { style };
|
|
6821
|
+
if (showArrow) reset.onClick = click;
|
|
6822
|
+
var compProps = {
|
|
6823
|
+
keyName,
|
|
6824
|
+
value,
|
|
6825
|
+
keys,
|
|
6826
|
+
parentValue
|
|
6827
|
+
};
|
|
6828
|
+
return /* @__PURE__ */ jsxs("span", _extends({}, reset, { children: [
|
|
6829
|
+
showArrow && /* @__PURE__ */ jsx(Arrow$1, _extends({
|
|
6830
|
+
style: arrowStyle,
|
|
6831
|
+
expandKey
|
|
6832
|
+
}, compProps)),
|
|
6833
|
+
(keyName || typeof keyName === "number") && /* @__PURE__ */ jsx(KayName, _extends({}, compProps)),
|
|
6834
|
+
/* @__PURE__ */ jsx(SetComp, {
|
|
6835
|
+
value: initialValue,
|
|
6836
|
+
keyName
|
|
6837
|
+
}),
|
|
6838
|
+
/* @__PURE__ */ jsx(MapComp, {
|
|
6839
|
+
value: initialValue,
|
|
6840
|
+
keyName
|
|
6841
|
+
}),
|
|
6842
|
+
/* @__PURE__ */ jsx(BracketsOpen, _extends({ isBrackets: isArray || isMySet }, compProps)),
|
|
6843
|
+
/* @__PURE__ */ jsx(EllipsisComp, {
|
|
6844
|
+
keyName,
|
|
6845
|
+
value,
|
|
6846
|
+
isExpanded
|
|
6847
|
+
}),
|
|
6848
|
+
/* @__PURE__ */ jsx(BracketsClose, _extends({
|
|
6849
|
+
isVisiable: isExpanded || !showArrow,
|
|
6850
|
+
isBrackets: isArray || isMySet
|
|
6851
|
+
}, compProps)),
|
|
6852
|
+
/* @__PURE__ */ jsx(CountInfoComp, {
|
|
6853
|
+
value,
|
|
6854
|
+
keyName
|
|
6855
|
+
}),
|
|
6856
|
+
/* @__PURE__ */ jsx(CountInfoExtraComps, {
|
|
6857
|
+
value,
|
|
6858
|
+
keyName
|
|
6859
|
+
}),
|
|
6860
|
+
/* @__PURE__ */ jsx(Copied$1, {
|
|
6861
|
+
keyName,
|
|
6862
|
+
value,
|
|
6863
|
+
expandKey,
|
|
6864
|
+
parentValue,
|
|
6865
|
+
keys
|
|
6866
|
+
})
|
|
6867
|
+
] }));
|
|
6868
|
+
};
|
|
6869
|
+
NestedOpen.displayName = "JVR.NestedOpen";
|
|
6870
|
+
//#endregion
|
|
6871
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/Container.js
|
|
6872
|
+
var _excluded$1 = [
|
|
6873
|
+
"className",
|
|
6874
|
+
"children",
|
|
6875
|
+
"parentValue",
|
|
6876
|
+
"keyid",
|
|
6877
|
+
"level",
|
|
6878
|
+
"value",
|
|
6879
|
+
"initialValue",
|
|
6880
|
+
"keys",
|
|
6881
|
+
"keyName"
|
|
6882
|
+
];
|
|
6883
|
+
var Container = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
6884
|
+
var { className = "", parentValue, level = 1, value, initialValue, keys, keyName } = props, elmProps = _objectWithoutPropertiesLoose(props, _excluded$1);
|
|
6885
|
+
var dispatch = useShowToolsDispatch();
|
|
6886
|
+
var subkeyid = useIdCompat();
|
|
6887
|
+
return /* @__PURE__ */ jsxs("div", _extends({
|
|
6888
|
+
className: [className, "w-rjv-inner"].filter(Boolean).join(" "),
|
|
6889
|
+
ref
|
|
6890
|
+
}, elmProps, {
|
|
6891
|
+
onMouseEnter: () => dispatch({ [subkeyid]: true }),
|
|
6892
|
+
onMouseLeave: () => dispatch({ [subkeyid]: false })
|
|
6893
|
+
}, { children: [
|
|
6894
|
+
/* @__PURE__ */ jsx(NestedOpen, {
|
|
6895
|
+
expandKey: subkeyid,
|
|
6896
|
+
value,
|
|
6897
|
+
level,
|
|
6898
|
+
keys,
|
|
6899
|
+
parentValue,
|
|
6900
|
+
keyName,
|
|
6901
|
+
initialValue
|
|
6902
|
+
}),
|
|
6903
|
+
/* @__PURE__ */ jsx(KeyValues, {
|
|
6904
|
+
expandKey: subkeyid,
|
|
6905
|
+
value,
|
|
6906
|
+
level,
|
|
6907
|
+
keys,
|
|
6908
|
+
parentValue,
|
|
6909
|
+
keyName
|
|
6910
|
+
}),
|
|
6911
|
+
/* @__PURE__ */ jsx(NestedClose, {
|
|
6912
|
+
expandKey: subkeyid,
|
|
6913
|
+
value,
|
|
6914
|
+
level,
|
|
6915
|
+
keys,
|
|
6916
|
+
parentValue,
|
|
6917
|
+
keyName
|
|
6918
|
+
})
|
|
6919
|
+
] }));
|
|
6920
|
+
});
|
|
6921
|
+
Container.displayName = "JVR.Container";
|
|
6922
|
+
//#endregion
|
|
6923
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/BraceLeft.js
|
|
6924
|
+
var BraceLeft = (props) => {
|
|
6925
|
+
var { BraceLeft: Comp = {} } = useSymbolsStore();
|
|
6926
|
+
useSymbolsRender(Comp, props, "BraceLeft");
|
|
6927
|
+
return null;
|
|
6928
|
+
};
|
|
6929
|
+
BraceLeft.displayName = "JVR.BraceLeft";
|
|
6930
|
+
//#endregion
|
|
6931
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/BraceRight.js
|
|
6932
|
+
var BraceRight = (props) => {
|
|
6933
|
+
var { BraceRight: Comp = {} } = useSymbolsStore();
|
|
6934
|
+
useSymbolsRender(Comp, props, "BraceRight");
|
|
6935
|
+
return null;
|
|
6936
|
+
};
|
|
6937
|
+
BraceRight.displayName = "JVR.BraceRight";
|
|
6938
|
+
//#endregion
|
|
6939
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/BracketsLeft.js
|
|
6940
|
+
var BracketsLeft = (props) => {
|
|
6941
|
+
var { BracketsLeft: Comp = {} } = useSymbolsStore();
|
|
6942
|
+
useSymbolsRender(Comp, props, "BracketsLeft");
|
|
6943
|
+
return null;
|
|
6944
|
+
};
|
|
6945
|
+
BracketsLeft.displayName = "JVR.BracketsLeft";
|
|
6946
|
+
//#endregion
|
|
6947
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/BracketsRight.js
|
|
6948
|
+
var BracketsRight = (props) => {
|
|
6949
|
+
var { BracketsRight: Comp = {} } = useSymbolsStore();
|
|
6950
|
+
useSymbolsRender(Comp, props, "BracketsRight");
|
|
6951
|
+
return null;
|
|
6952
|
+
};
|
|
6953
|
+
BracketsRight.displayName = "JVR.BracketsRight";
|
|
6954
|
+
//#endregion
|
|
6955
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/Arrow.js
|
|
6956
|
+
var Arrow = (props) => {
|
|
6957
|
+
var { Arrow: Comp = {} } = useSymbolsStore();
|
|
6958
|
+
useSymbolsRender(Comp, props, "Arrow");
|
|
6959
|
+
return null;
|
|
6960
|
+
};
|
|
6961
|
+
Arrow.displayName = "JVR.Arrow";
|
|
6962
|
+
//#endregion
|
|
6963
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/Colon.js
|
|
6964
|
+
var Colon = (props) => {
|
|
6965
|
+
var { Colon: Comp = {} } = useSymbolsStore();
|
|
6966
|
+
useSymbolsRender(Comp, props, "Colon");
|
|
6967
|
+
return null;
|
|
6968
|
+
};
|
|
6969
|
+
Colon.displayName = "JVR.Colon";
|
|
6970
|
+
//#endregion
|
|
6971
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/Quote.js
|
|
6972
|
+
var Quote = (props) => {
|
|
6973
|
+
var { Quote: Comp = {} } = useSymbolsStore();
|
|
6974
|
+
useSymbolsRender(Comp, props, "Quote");
|
|
6975
|
+
return null;
|
|
6976
|
+
};
|
|
6977
|
+
Quote.displayName = "JVR.Quote";
|
|
6978
|
+
//#endregion
|
|
6979
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/ValueQuote.js
|
|
6980
|
+
var ValueQuote = (props) => {
|
|
6981
|
+
var { ValueQuote: Comp = {} } = useSymbolsStore();
|
|
6982
|
+
useSymbolsRender(Comp, props, "ValueQuote");
|
|
6983
|
+
return null;
|
|
6984
|
+
};
|
|
6985
|
+
ValueQuote.displayName = "JVR.ValueQuote";
|
|
6986
|
+
//#endregion
|
|
6987
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Bigint.js
|
|
6988
|
+
var Bigint = (props) => {
|
|
6989
|
+
var { Bigint: Comp = {} } = useTypesStore();
|
|
6990
|
+
useTypesRender(Comp, props, "Bigint");
|
|
6991
|
+
return null;
|
|
6992
|
+
};
|
|
6993
|
+
Bigint.displayName = "JVR.Bigint";
|
|
6994
|
+
//#endregion
|
|
6995
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Date.js
|
|
6996
|
+
var Date$1 = (props) => {
|
|
6997
|
+
var { Date: Comp = {} } = useTypesStore();
|
|
6998
|
+
useTypesRender(Comp, props, "Date");
|
|
6999
|
+
return null;
|
|
7000
|
+
};
|
|
7001
|
+
Date$1.displayName = "JVR.Date";
|
|
7002
|
+
//#endregion
|
|
7003
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/False.js
|
|
7004
|
+
var False = (props) => {
|
|
7005
|
+
var { False: Comp = {} } = useTypesStore();
|
|
7006
|
+
useTypesRender(Comp, props, "False");
|
|
7007
|
+
return null;
|
|
7008
|
+
};
|
|
7009
|
+
False.displayName = "JVR.False";
|
|
7010
|
+
//#endregion
|
|
7011
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Float.js
|
|
7012
|
+
var Float = (props) => {
|
|
7013
|
+
var { Float: Comp = {} } = useTypesStore();
|
|
7014
|
+
useTypesRender(Comp, props, "Float");
|
|
7015
|
+
return null;
|
|
7016
|
+
};
|
|
7017
|
+
Float.displayName = "JVR.Float";
|
|
7018
|
+
//#endregion
|
|
7019
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Int.js
|
|
7020
|
+
var Int = (props) => {
|
|
7021
|
+
var { Int: Comp = {} } = useTypesStore();
|
|
7022
|
+
useTypesRender(Comp, props, "Int");
|
|
7023
|
+
return null;
|
|
7024
|
+
};
|
|
7025
|
+
Int.displayName = "JVR.Int";
|
|
7026
|
+
//#endregion
|
|
7027
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Map.js
|
|
7028
|
+
var Map$1 = (props) => {
|
|
7029
|
+
var { Map: Comp = {} } = useTypesStore();
|
|
7030
|
+
useTypesRender(Comp, props, "Map");
|
|
7031
|
+
return null;
|
|
7032
|
+
};
|
|
7033
|
+
Map$1.displayName = "JVR.Map";
|
|
7034
|
+
//#endregion
|
|
7035
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Nan.js
|
|
7036
|
+
var Nan = (props) => {
|
|
7037
|
+
var { Nan: Comp = {} } = useTypesStore();
|
|
7038
|
+
useTypesRender(Comp, props, "Nan");
|
|
7039
|
+
return null;
|
|
7040
|
+
};
|
|
7041
|
+
Nan.displayName = "JVR.Nan";
|
|
7042
|
+
//#endregion
|
|
7043
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Null.js
|
|
7044
|
+
var Null = (props) => {
|
|
7045
|
+
var { Null: Comp = {} } = useTypesStore();
|
|
7046
|
+
useTypesRender(Comp, props, "Null");
|
|
7047
|
+
return null;
|
|
7048
|
+
};
|
|
7049
|
+
Null.displayName = "JVR.Null";
|
|
7050
|
+
//#endregion
|
|
7051
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Set.js
|
|
7052
|
+
var Set$1 = (props) => {
|
|
7053
|
+
var { Set: Comp = {} } = useTypesStore();
|
|
7054
|
+
useTypesRender(Comp, props, "Set");
|
|
7055
|
+
return null;
|
|
7056
|
+
};
|
|
7057
|
+
Set$1.displayName = "JVR.Set";
|
|
7058
|
+
//#endregion
|
|
7059
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/String.js
|
|
7060
|
+
var StringText = (props) => {
|
|
7061
|
+
var { Str: Comp = {} } = useTypesStore();
|
|
7062
|
+
useTypesRender(Comp, props, "Str");
|
|
7063
|
+
return null;
|
|
7064
|
+
};
|
|
7065
|
+
StringText.displayName = "JVR.StringText";
|
|
7066
|
+
//#endregion
|
|
7067
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/True.js
|
|
7068
|
+
var True = (props) => {
|
|
7069
|
+
var { True: Comp = {} } = useTypesStore();
|
|
7070
|
+
useTypesRender(Comp, props, "True");
|
|
7071
|
+
return null;
|
|
7072
|
+
};
|
|
7073
|
+
True.displayName = "JVR.True";
|
|
7074
|
+
//#endregion
|
|
7075
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Undefined.js
|
|
7076
|
+
var Undefined = (props) => {
|
|
7077
|
+
var { Undefined: Comp = {} } = useTypesStore();
|
|
7078
|
+
useTypesRender(Comp, props, "Undefined");
|
|
7079
|
+
return null;
|
|
7080
|
+
};
|
|
7081
|
+
Undefined.displayName = "JVR.Undefined";
|
|
7082
|
+
//#endregion
|
|
7083
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Url.js
|
|
7084
|
+
var Url = (props) => {
|
|
7085
|
+
var { Url: Comp = {} } = useTypesStore();
|
|
7086
|
+
useTypesRender(Comp, props, "Url");
|
|
7087
|
+
return null;
|
|
7088
|
+
};
|
|
7089
|
+
Url.displayName = "JVR.Url";
|
|
7090
|
+
//#endregion
|
|
7091
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/section/Copied.js
|
|
7092
|
+
var Copied = (props) => {
|
|
7093
|
+
var { Copied: Comp = {} } = useSectionStore();
|
|
7094
|
+
useSectionRender(Comp, props, "Copied");
|
|
7095
|
+
return null;
|
|
7096
|
+
};
|
|
7097
|
+
Copied.displayName = "JVR.Copied";
|
|
7098
|
+
//#endregion
|
|
7099
|
+
//#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.42_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/index.js
|
|
7100
|
+
var _excluded = [
|
|
7101
|
+
"className",
|
|
7102
|
+
"style",
|
|
7103
|
+
"value",
|
|
7104
|
+
"children",
|
|
7105
|
+
"collapsed",
|
|
7106
|
+
"shouldExpandNodeInitially",
|
|
7107
|
+
"indentWidth",
|
|
7108
|
+
"displayObjectSize",
|
|
7109
|
+
"shortenTextAfterLength",
|
|
7110
|
+
"stringEllipsis",
|
|
7111
|
+
"highlightUpdates",
|
|
7112
|
+
"enableClipboard",
|
|
7113
|
+
"displayDataTypes",
|
|
7114
|
+
"objectSortKeys",
|
|
7115
|
+
"onExpand",
|
|
7116
|
+
"onCopied",
|
|
7117
|
+
"beforeCopy"
|
|
7118
|
+
];
|
|
7119
|
+
var JsonView = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
7120
|
+
var { className = "", style, value, children, collapsed = false, shouldExpandNodeInitially, indentWidth = 15, displayObjectSize = true, shortenTextAfterLength = 30, stringEllipsis, highlightUpdates = true, enableClipboard = true, displayDataTypes = true, objectSortKeys = false, onExpand, onCopied, beforeCopy } = props, elmProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
7121
|
+
var defaultStyle = _extends({
|
|
7122
|
+
lineHeight: 1.4,
|
|
7123
|
+
fontFamily: "var(--w-rjv-font-family, Menlo, monospace)",
|
|
7124
|
+
color: "var(--w-rjv-color, #002b36)",
|
|
7125
|
+
backgroundColor: "var(--w-rjv-background-color, #00000000)",
|
|
7126
|
+
fontSize: 13
|
|
7127
|
+
}, style);
|
|
7128
|
+
var cls = [
|
|
7129
|
+
"w-json-view-container",
|
|
7130
|
+
"w-rjv",
|
|
7131
|
+
className
|
|
7132
|
+
].filter(Boolean).join(" ");
|
|
7133
|
+
return /* @__PURE__ */ jsxs(Provider, {
|
|
7134
|
+
initialState: {
|
|
7135
|
+
value,
|
|
7136
|
+
objectSortKeys,
|
|
7137
|
+
indentWidth,
|
|
7138
|
+
shouldExpandNodeInitially: collapsed === false ? shouldExpandNodeInitially : void 0,
|
|
7139
|
+
displayObjectSize,
|
|
7140
|
+
collapsed,
|
|
7141
|
+
enableClipboard,
|
|
7142
|
+
shortenTextAfterLength,
|
|
7143
|
+
stringEllipsis,
|
|
7144
|
+
highlightUpdates,
|
|
7145
|
+
onCopied,
|
|
7146
|
+
onExpand,
|
|
7147
|
+
beforeCopy
|
|
7148
|
+
},
|
|
7149
|
+
initialTypes: { displayDataTypes },
|
|
7150
|
+
children: [/* @__PURE__ */ jsx(Container, _extends({ value }, elmProps, {
|
|
7151
|
+
ref,
|
|
7152
|
+
className: cls,
|
|
7153
|
+
style: defaultStyle
|
|
7154
|
+
})), children]
|
|
7155
|
+
});
|
|
7156
|
+
});
|
|
7157
|
+
JsonView.Bigint = Bigint;
|
|
7158
|
+
JsonView.Date = Date$1;
|
|
7159
|
+
JsonView.False = False;
|
|
7160
|
+
JsonView.Float = Float;
|
|
7161
|
+
JsonView.Int = Int;
|
|
7162
|
+
JsonView.Map = Map$1;
|
|
7163
|
+
JsonView.Nan = Nan;
|
|
7164
|
+
JsonView.Null = Null;
|
|
7165
|
+
JsonView.Set = Set$1;
|
|
7166
|
+
JsonView.String = StringText;
|
|
7167
|
+
JsonView.True = True;
|
|
7168
|
+
JsonView.Undefined = Undefined;
|
|
7169
|
+
JsonView.Url = Url;
|
|
7170
|
+
JsonView.ValueQuote = ValueQuote;
|
|
7171
|
+
JsonView.Arrow = Arrow;
|
|
7172
|
+
JsonView.Colon = Colon;
|
|
7173
|
+
JsonView.Quote = Quote;
|
|
7174
|
+
JsonView.Ellipsis = Ellipsis;
|
|
7175
|
+
JsonView.BraceLeft = BraceLeft;
|
|
7176
|
+
JsonView.BraceRight = BraceRight;
|
|
7177
|
+
JsonView.BracketsLeft = BracketsLeft;
|
|
7178
|
+
JsonView.BracketsRight = BracketsRight;
|
|
7179
|
+
JsonView.Copied = Copied;
|
|
7180
|
+
JsonView.CountInfo = CountInfo;
|
|
7181
|
+
JsonView.CountInfoExtra = CountInfoExtra;
|
|
7182
|
+
JsonView.KeyName = KeyName;
|
|
7183
|
+
JsonView.Row = Row;
|
|
7184
|
+
JsonView.displayName = "JVR.JsonView";
|
|
7185
|
+
//#endregion
|
|
5384
7186
|
//#region ../../node_modules/.pnpm/@tanstack+virtual-core@3.13.19/node_modules/@tanstack/virtual-core/dist/esm/utils.js
|
|
5385
7187
|
function memo$1(getDeps, fn, opts) {
|
|
5386
7188
|
let deps = opts.initialDeps ?? [];
|
|
@@ -6103,7 +7905,7 @@ function useVirtualizer(options) {
|
|
|
6103
7905
|
});
|
|
6104
7906
|
}
|
|
6105
7907
|
//#endregion
|
|
6106
|
-
//#region ../design-system/dist/connect-
|
|
7908
|
+
//#region ../design-system/dist/connect-Cah5FuAm.js
|
|
6107
7909
|
function NodeInput(props) {
|
|
6108
7910
|
const { onSubmit, onCancel, defaultValue, className, minLength = 1, ...inputProps } = props;
|
|
6109
7911
|
const [value, setValue] = useState(defaultValue ?? "");
|
|
@@ -6971,4 +8773,4 @@ const ConnectSearchBar = (props) => {
|
|
|
6971
8773
|
//#endregion
|
|
6972
8774
|
export { useSetPHAppConfig as C, useSelectedFolder as S, useUserPermissions as T, showCreateDocumentModal as _, FolderItem as a, usePHToast as b, Controller as c, get as d, set as f, isFolderNodeKind as g, isFileNodeKind as h, FileItem as i, FormProvider as l, useFormContext as m, ConnectSearchBar as n, useDrop as o, useForm as p, DocumentToolbar as r, useVirtualizer as s, Breadcrumbs as t, appendErrors as u, useDocumentModelModules as v, useSetPHDocumentEditorConfig as w, useSelectedDocumentOfType as x, useNodesInSelectedDriveOrFolder as y };
|
|
6973
8775
|
|
|
6974
|
-
//# sourceMappingURL=connect-
|
|
8776
|
+
//# sourceMappingURL=connect-Cah5FuAm-d1td1yrj.js.map
|